@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.mjs
CHANGED
package/dist/service/index.cjs
CHANGED
|
@@ -3353,6 +3353,7 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
|
|
|
3353
3353
|
EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_PARTNER"] = "added_as_associate_partner";
|
|
3354
3354
|
EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_VENDOR"] = "added_as_associate_vendor";
|
|
3355
3355
|
EnumNotificationResourceType22["APPROVED_AFFILIATE"] = "approved_affiliate";
|
|
3356
|
+
EnumNotificationResourceType22["AFFILIATE_REWARD_RECEIVED"] = "affiliate_reward_received";
|
|
3356
3357
|
EnumNotificationResourceType22["APPROVED_EVENT"] = "approved_event";
|
|
3357
3358
|
EnumNotificationResourceType22["APPROVED_PARTNER"] = "approved_partner";
|
|
3358
3359
|
EnumNotificationResourceType22["APPROVED_SCHOOL"] = "approved_school";
|
|
@@ -7689,7 +7690,7 @@ async function saveNotificationsInDb(payload) {
|
|
|
7689
7690
|
// src/service/sendPushNotifications.ts
|
|
7690
7691
|
var import_expo_server_sdk = require("expo-server-sdk");
|
|
7691
7692
|
|
|
7692
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
7693
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-LETM2YHF.mjs
|
|
7693
7694
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
7694
7695
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
7695
7696
|
EnumOSPlatform22["IOS"] = "ios";
|
|
@@ -8660,6 +8661,11 @@ var schema7 = new MongooseSchema11(
|
|
|
8660
8661
|
},
|
|
8661
8662
|
deletedAt: { default: null, required: false, type: Date },
|
|
8662
8663
|
email: { required: true, type: String },
|
|
8664
|
+
emailSentFor: {
|
|
8665
|
+
enum: Object.values(EnumNotificationResourceType),
|
|
8666
|
+
required: false,
|
|
8667
|
+
type: [String]
|
|
8668
|
+
},
|
|
8663
8669
|
events: {
|
|
8664
8670
|
ref: "Event",
|
|
8665
8671
|
required: false,
|
|
@@ -9307,7 +9313,7 @@ var campaignsSchema = new MongooseSchema24(
|
|
|
9307
9313
|
var schema16 = new MongooseSchema24(
|
|
9308
9314
|
{
|
|
9309
9315
|
// New schools are active by default
|
|
9310
|
-
active: { default:
|
|
9316
|
+
active: { default: false, required: true, type: Boolean },
|
|
9311
9317
|
campaigns: { required: false, type: [campaignsSchema] },
|
|
9312
9318
|
contactDetails: { required: false, type: ContactDetailsSchema },
|
|
9313
9319
|
deletedAt: { default: null, required: false, type: Date },
|
|
@@ -9381,7 +9387,7 @@ var affiliateResourceSchema = new MongooseSchema25(
|
|
|
9381
9387
|
);
|
|
9382
9388
|
var schema17 = new MongooseSchema25(
|
|
9383
9389
|
{
|
|
9384
|
-
active: { default:
|
|
9390
|
+
active: { default: false, required: true, type: Boolean },
|
|
9385
9391
|
affiliateCode: { required: true, type: String },
|
|
9386
9392
|
affiliateResources: {
|
|
9387
9393
|
default: [],
|