@timardex/cluemart-server-shared 1.0.273 → 1.0.275
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-FU5WYLJ6.mjs → chunk-C4VZFFEU.mjs} +6 -9
- package/dist/chunk-C4VZFFEU.mjs.map +1 -0
- package/dist/index.cjs +5 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +5 -8
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +5 -8
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +5 -8
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-FU5WYLJ6.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -3282,6 +3282,7 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
|
|
|
3282
3282
|
EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_PARTNER"] = "added_as_associate_partner";
|
|
3283
3283
|
EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_VENDOR"] = "added_as_associate_vendor";
|
|
3284
3284
|
EnumNotificationResourceType22["APPROVED_AFFILIATE"] = "approved_affiliate";
|
|
3285
|
+
EnumNotificationResourceType22["AFFILIATE_REWARD_RECEIVED"] = "affiliate_reward_received";
|
|
3285
3286
|
EnumNotificationResourceType22["APPROVED_EVENT"] = "approved_event";
|
|
3286
3287
|
EnumNotificationResourceType22["APPROVED_PARTNER"] = "approved_partner";
|
|
3287
3288
|
EnumNotificationResourceType22["APPROVED_SCHOOL"] = "approved_school";
|
|
@@ -7363,12 +7364,10 @@ var REQUEST_MARKETING_MATERIAL_MUTATION = gql`
|
|
|
7363
7364
|
var AFFILIATE_REWARD_FIELDS_FRAGMENT = gql`
|
|
7364
7365
|
fragment AffiliateRewardFields on AffiliateRewardType {
|
|
7365
7366
|
createdAt
|
|
7366
|
-
deletedAt
|
|
7367
7367
|
redeemedAt
|
|
7368
7368
|
rewardDescription
|
|
7369
7369
|
rewardType
|
|
7370
7370
|
rewardValue
|
|
7371
|
-
updatedAt
|
|
7372
7371
|
}
|
|
7373
7372
|
`;
|
|
7374
7373
|
var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = gql`
|
|
@@ -8283,7 +8282,7 @@ schema4.index({ isRead: 1, userId: 1 });
|
|
|
8283
8282
|
schema4.index({ createdAt: -1, userId: 1 });
|
|
8284
8283
|
var NotificationModel = mongoose8.models.Notification || mongoose8.model("Notification", schema4);
|
|
8285
8284
|
|
|
8286
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
8285
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-LETM2YHF.mjs
|
|
8287
8286
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
8288
8287
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
8289
8288
|
EnumOSPlatform22["IOS"] = "ios";
|
|
@@ -9106,7 +9105,7 @@ var campaignsSchema = new MongooseSchema24(
|
|
|
9106
9105
|
var schema16 = new MongooseSchema24(
|
|
9107
9106
|
{
|
|
9108
9107
|
// New schools are active by default
|
|
9109
|
-
active: { default:
|
|
9108
|
+
active: { default: false, required: true, type: Boolean },
|
|
9110
9109
|
campaigns: { required: false, type: [campaignsSchema] },
|
|
9111
9110
|
contactDetails: { required: false, type: ContactDetailsSchema },
|
|
9112
9111
|
deletedAt: { default: null, required: false, type: Date },
|
|
@@ -9144,7 +9143,6 @@ var MongooseSchema25 = mongoose25.Schema;
|
|
|
9144
9143
|
var affiliateRewardSchema = new MongooseSchema25(
|
|
9145
9144
|
{
|
|
9146
9145
|
createdAt: { required: true, type: Date },
|
|
9147
|
-
deletedAt: { default: null, required: false, type: Date },
|
|
9148
9146
|
redeemedAt: { default: null, required: false, type: Date },
|
|
9149
9147
|
rewardDescription: { required: true, type: String },
|
|
9150
9148
|
rewardType: {
|
|
@@ -9152,8 +9150,7 @@ var affiliateRewardSchema = new MongooseSchema25(
|
|
|
9152
9150
|
required: true,
|
|
9153
9151
|
type: String
|
|
9154
9152
|
},
|
|
9155
|
-
rewardValue: { required: true, type: Number }
|
|
9156
|
-
updatedAt: { default: null, required: false, type: Date }
|
|
9153
|
+
rewardValue: { required: true, type: Number }
|
|
9157
9154
|
},
|
|
9158
9155
|
{ _id: false }
|
|
9159
9156
|
);
|
|
@@ -9180,7 +9177,7 @@ var affiliateResourceSchema = new MongooseSchema25(
|
|
|
9180
9177
|
);
|
|
9181
9178
|
var schema17 = new MongooseSchema25(
|
|
9182
9179
|
{
|
|
9183
|
-
active: { default:
|
|
9180
|
+
active: { default: false, required: true, type: Boolean },
|
|
9184
9181
|
affiliateCode: { required: true, type: String },
|
|
9185
9182
|
affiliateResources: {
|
|
9186
9183
|
default: [],
|