+
+
+
+
+
+
+
+ Win $100 by Giving Back during Black Friday and Cyber Monday
+
+
+
+ Expand your giving this holiday season by using{' '}
+
+ Shop for a Cause
+
+ , allowing you to make a positive impact with every purchase,
+ and double the joy of giving back while you shop. As a bonus,
+ everyone who activates Shop for a Cause on one of our over
+ 10,000 partner shops in November will be entered into a drawing
+ for two $100 Visa gift cards (
+
+ promo details
+
+ ).
+
+
+
+
+
+
+ {/* November No Shop User 2023 Promo */}
+ {user.userId && !user.shopSignupTimestamp && (
+
+ )}
+
+
{/* Prime day 2023 Promo */}
{/* {user.userId && notif && } */}
diff --git a/src/schema/schema.graphql b/src/schema/schema.graphql
index 3281a143..89ed2733 100644
--- a/src/schema/schema.graphql
+++ b/src/schema/schema.graphql
@@ -981,11 +981,17 @@ type User implements Node {
"""whether or not the user has opted into searching for extra impact"""
yahooPaidSearchRewardOptIn: Boolean!
+ """ISO datetime string of when this Shop Signup Timestamp was started"""
+ shopSignupTimestamp: String
+
"""Current UserGroupImpactMetric"""
userGroupImpactMetric: UserGroupImpactMetric
"""Current UserGroupImpactMetrics leaderboard"""
leaderboard: [leaderboardEntry]
+
+ """User historical data related to group impacts"""
+ groupImpactHistory: [UserGroupImpactMetricLog]
}
"""a user's charity specific impact"""
@@ -1331,6 +1337,45 @@ type leaderboardEntry {
user: User
}
+"""
+A historical view of a specific users contribution to a GroupImpactMetric
+"""
+type UserGroupImpactMetricLog implements Node {
+ """The ID of an object"""
+ id: ID!
+
+ """The ID of the user which the UserGroupImpactMetric belongs to"""
+ userId: String!
+
+ """
+ The micro USD amount raised for this instance of GroupImpactMetric so far by this user
+ """
+ dollarContribution: Int!
+
+ """
+ The micro USD amount raised for this instance of GroupImpactMetric so far by this user from tabs
+ """
+ tabDollarContribution: Int!
+
+ """
+ The micro USD amount raised for this instance of GroupImpactMetric so far by this user from search
+ """
+ searchDollarContribution: Int!
+
+ """
+ The micro USD amount raised for this instance of GroupImpactMetric so far by this user from shopping
+ """
+ shopDollarContribution: Int!
+
+ """
+ The micro USD amount raised for this instance of GroupImpactMetric so far by this user from referrals
+ """
+ referralDollarContribution: Int!
+
+ """Date the group impact metric started"""
+ dateStarted: String!
+}
+
"""The Wildfire object"""
type Wildfire {
causeName: String
@@ -1698,6 +1743,7 @@ input CreateNewUserInput {
v4BetaEnabled: Boolean
missionId: String
causeId: String
+ campaignId: String
clientMutationId: String
}
diff --git a/yarn.lock b/yarn.lock
index 400fc5a0..068fb214 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -15315,10 +15315,10 @@ synchronous-promise@^2.0.15:
resolved "https://registry.yarnpkg.com/synchronous-promise/-/synchronous-promise-2.0.16.tgz#669b75e86b4295fdcc1bb0498de9ac1af6fd51a9"
integrity sha512-qImOD23aDfnIDNqlG1NOehdB9IYsn1V9oByPjKY1nakv2MQYCEMyX033/q+aEtYCpmYK1cv2+NTmlH+ra6GA5A==
-tab-ads@^1.1.20:
- version "1.1.20"
- resolved "https://registry.yarnpkg.com/tab-ads/-/tab-ads-1.1.20.tgz#b3ef70a03127f746171daf81fa7d6461c9767977"
- integrity sha512-dagHnOnf4827hQRmDZ+thvldFac5CuY7pEVSsVO/iJ+02xYc7/g2wn3d4wyQUifXjwf8AJBVCpEerckZAKANgA==
+tab-ads@^1.1.23:
+ version "1.1.23"
+ resolved "https://registry.yarnpkg.com/tab-ads/-/tab-ads-1.1.23.tgz#aa02b7ce727d42ef0310cbb56b56e1b982090cc1"
+ integrity sha512-hhWhLGoUiuZDokqMG37yDzgfUMZUuDh9K/AlU2yLSBWL/1ZIif5jqCISHp3P9NG6u8TGS1L/Lt/pBCF6oav3EA==
dependencies:
lodash "^4.17.21"