@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/mongoose/index.cjs
CHANGED
|
@@ -3358,6 +3358,7 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
|
|
|
3358
3358
|
EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_PARTNER"] = "added_as_associate_partner";
|
|
3359
3359
|
EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_VENDOR"] = "added_as_associate_vendor";
|
|
3360
3360
|
EnumNotificationResourceType22["APPROVED_AFFILIATE"] = "approved_affiliate";
|
|
3361
|
+
EnumNotificationResourceType22["AFFILIATE_REWARD_RECEIVED"] = "affiliate_reward_received";
|
|
3361
3362
|
EnumNotificationResourceType22["APPROVED_EVENT"] = "approved_event";
|
|
3362
3363
|
EnumNotificationResourceType22["APPROVED_PARTNER"] = "approved_partner";
|
|
3363
3364
|
EnumNotificationResourceType22["APPROVED_SCHOOL"] = "approved_school";
|
|
@@ -7437,12 +7438,10 @@ var REQUEST_MARKETING_MATERIAL_MUTATION = gql`
|
|
|
7437
7438
|
var AFFILIATE_REWARD_FIELDS_FRAGMENT = gql`
|
|
7438
7439
|
fragment AffiliateRewardFields on AffiliateRewardType {
|
|
7439
7440
|
createdAt
|
|
7440
|
-
deletedAt
|
|
7441
7441
|
redeemedAt
|
|
7442
7442
|
rewardDescription
|
|
7443
7443
|
rewardType
|
|
7444
7444
|
rewardValue
|
|
7445
|
-
updatedAt
|
|
7446
7445
|
}
|
|
7447
7446
|
`;
|
|
7448
7447
|
var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = gql`
|
|
@@ -8357,7 +8356,7 @@ schema4.index({ isRead: 1, userId: 1 });
|
|
|
8357
8356
|
schema4.index({ createdAt: -1, userId: 1 });
|
|
8358
8357
|
var NotificationModel = import_mongoose8.default.models.Notification || import_mongoose8.default.model("Notification", schema4);
|
|
8359
8358
|
|
|
8360
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
8359
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-LETM2YHF.mjs
|
|
8361
8360
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
8362
8361
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
8363
8362
|
EnumOSPlatform22["IOS"] = "ios";
|
|
@@ -9180,7 +9179,7 @@ var campaignsSchema = new MongooseSchema24(
|
|
|
9180
9179
|
var schema16 = new MongooseSchema24(
|
|
9181
9180
|
{
|
|
9182
9181
|
// New schools are active by default
|
|
9183
|
-
active: { default:
|
|
9182
|
+
active: { default: false, required: true, type: Boolean },
|
|
9184
9183
|
campaigns: { required: false, type: [campaignsSchema] },
|
|
9185
9184
|
contactDetails: { required: false, type: ContactDetailsSchema },
|
|
9186
9185
|
deletedAt: { default: null, required: false, type: Date },
|
|
@@ -9218,7 +9217,6 @@ var MongooseSchema25 = import_mongoose25.default.Schema;
|
|
|
9218
9217
|
var affiliateRewardSchema = new MongooseSchema25(
|
|
9219
9218
|
{
|
|
9220
9219
|
createdAt: { required: true, type: Date },
|
|
9221
|
-
deletedAt: { default: null, required: false, type: Date },
|
|
9222
9220
|
redeemedAt: { default: null, required: false, type: Date },
|
|
9223
9221
|
rewardDescription: { required: true, type: String },
|
|
9224
9222
|
rewardType: {
|
|
@@ -9226,8 +9224,7 @@ var affiliateRewardSchema = new MongooseSchema25(
|
|
|
9226
9224
|
required: true,
|
|
9227
9225
|
type: String
|
|
9228
9226
|
},
|
|
9229
|
-
rewardValue: { required: true, type: Number }
|
|
9230
|
-
updatedAt: { default: null, required: false, type: Date }
|
|
9227
|
+
rewardValue: { required: true, type: Number }
|
|
9231
9228
|
},
|
|
9232
9229
|
{ _id: false }
|
|
9233
9230
|
);
|
|
@@ -9254,7 +9251,7 @@ var affiliateResourceSchema = new MongooseSchema25(
|
|
|
9254
9251
|
);
|
|
9255
9252
|
var schema17 = new MongooseSchema25(
|
|
9256
9253
|
{
|
|
9257
|
-
active: { default:
|
|
9254
|
+
active: { default: false, required: true, type: Boolean },
|
|
9258
9255
|
affiliateCode: { required: true, type: String },
|
|
9259
9256
|
affiliateResources: {
|
|
9260
9257
|
default: [],
|