@timardex/cluemart-server-shared 1.0.273 → 1.0.274
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-VW2V67YM.mjs} +5 -4
- package/dist/chunk-VW2V67YM.mjs.map +1 -0
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +4 -3
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +4 -3
- 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";
|
|
@@ -8357,7 +8358,7 @@ schema4.index({ isRead: 1, userId: 1 });
|
|
|
8357
8358
|
schema4.index({ createdAt: -1, userId: 1 });
|
|
8358
8359
|
var NotificationModel = import_mongoose8.default.models.Notification || import_mongoose8.default.model("Notification", schema4);
|
|
8359
8360
|
|
|
8360
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
8361
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-LETM2YHF.mjs
|
|
8361
8362
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
8362
8363
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
8363
8364
|
EnumOSPlatform22["IOS"] = "ios";
|
|
@@ -9180,7 +9181,7 @@ var campaignsSchema = new MongooseSchema24(
|
|
|
9180
9181
|
var schema16 = new MongooseSchema24(
|
|
9181
9182
|
{
|
|
9182
9183
|
// New schools are active by default
|
|
9183
|
-
active: { default:
|
|
9184
|
+
active: { default: false, required: true, type: Boolean },
|
|
9184
9185
|
campaigns: { required: false, type: [campaignsSchema] },
|
|
9185
9186
|
contactDetails: { required: false, type: ContactDetailsSchema },
|
|
9186
9187
|
deletedAt: { default: null, required: false, type: Date },
|
|
@@ -9254,7 +9255,7 @@ var affiliateResourceSchema = new MongooseSchema25(
|
|
|
9254
9255
|
);
|
|
9255
9256
|
var schema17 = new MongooseSchema25(
|
|
9256
9257
|
{
|
|
9257
|
-
active: { default:
|
|
9258
|
+
active: { default: false, required: true, type: Boolean },
|
|
9258
9259
|
affiliateCode: { required: true, type: String },
|
|
9259
9260
|
affiliateResources: {
|
|
9260
9261
|
default: [],
|