@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.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";
|
|
@@ -9312,7 +9313,7 @@ var campaignsSchema = new MongooseSchema24(
|
|
|
9312
9313
|
var schema16 = new MongooseSchema24(
|
|
9313
9314
|
{
|
|
9314
9315
|
// New schools are active by default
|
|
9315
|
-
active: { default:
|
|
9316
|
+
active: { default: false, required: true, type: Boolean },
|
|
9316
9317
|
campaigns: { required: false, type: [campaignsSchema] },
|
|
9317
9318
|
contactDetails: { required: false, type: ContactDetailsSchema },
|
|
9318
9319
|
deletedAt: { default: null, required: false, type: Date },
|
|
@@ -9386,7 +9387,7 @@ var affiliateResourceSchema = new MongooseSchema25(
|
|
|
9386
9387
|
);
|
|
9387
9388
|
var schema17 = new MongooseSchema25(
|
|
9388
9389
|
{
|
|
9389
|
-
active: { default:
|
|
9390
|
+
active: { default: false, required: true, type: Boolean },
|
|
9390
9391
|
affiliateCode: { required: true, type: String },
|
|
9391
9392
|
affiliateResources: {
|
|
9392
9393
|
default: [],
|