@timardex/cluemart-server-shared 1.0.272 → 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-D6C7HNAQ.mjs → chunk-VW2V67YM.mjs} +10 -4
- package/dist/chunk-VW2V67YM.mjs.map +1 -0
- package/dist/index.cjs +9 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +9 -3
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +9 -3
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +9 -3
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-D6C7HNAQ.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";
|
|
@@ -8528,6 +8529,11 @@ var schema7 = new MongooseSchema11(
|
|
|
8528
8529
|
},
|
|
8529
8530
|
deletedAt: { default: null, required: false, type: Date },
|
|
8530
8531
|
email: { required: true, type: String },
|
|
8532
|
+
emailSentFor: {
|
|
8533
|
+
enum: Object.values(EnumNotificationResourceType),
|
|
8534
|
+
required: false,
|
|
8535
|
+
type: [String]
|
|
8536
|
+
},
|
|
8531
8537
|
events: {
|
|
8532
8538
|
ref: "Event",
|
|
8533
8539
|
required: false,
|
|
@@ -9175,7 +9181,7 @@ var campaignsSchema = new MongooseSchema24(
|
|
|
9175
9181
|
var schema16 = new MongooseSchema24(
|
|
9176
9182
|
{
|
|
9177
9183
|
// New schools are active by default
|
|
9178
|
-
active: { default:
|
|
9184
|
+
active: { default: false, required: true, type: Boolean },
|
|
9179
9185
|
campaigns: { required: false, type: [campaignsSchema] },
|
|
9180
9186
|
contactDetails: { required: false, type: ContactDetailsSchema },
|
|
9181
9187
|
deletedAt: { default: null, required: false, type: Date },
|
|
@@ -9249,7 +9255,7 @@ var affiliateResourceSchema = new MongooseSchema25(
|
|
|
9249
9255
|
);
|
|
9250
9256
|
var schema17 = new MongooseSchema25(
|
|
9251
9257
|
{
|
|
9252
|
-
active: { default:
|
|
9258
|
+
active: { default: false, required: true, type: Boolean },
|
|
9253
9259
|
affiliateCode: { required: true, type: String },
|
|
9254
9260
|
affiliateResources: {
|
|
9255
9261
|
default: [],
|