@timardex/cluemart-server-shared 1.0.264 → 1.0.266
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-REX574WV.mjs → chunk-OZZRI2C2.mjs} +6 -3
- package/dist/chunk-OZZRI2C2.mjs.map +1 -0
- package/dist/index.cjs +5 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +5 -2
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +5 -2
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-REX574WV.mjs.map +0 -1
package/dist/mongoose/index.mjs
CHANGED
package/dist/service/index.cjs
CHANGED
|
@@ -3310,6 +3310,7 @@ var EnumFoodFlavor = /* @__PURE__ */ ((EnumFoodFlavor22) => {
|
|
|
3310
3310
|
return EnumFoodFlavor22;
|
|
3311
3311
|
})(EnumFoodFlavor || {});
|
|
3312
3312
|
var EnumResourceType = /* @__PURE__ */ ((EnumResourceType22) => {
|
|
3313
|
+
EnumResourceType22["AFFILIATE"] = "affiliate";
|
|
3313
3314
|
EnumResourceType22["EVENT"] = "event";
|
|
3314
3315
|
EnumResourceType22["VENDOR"] = "vendor";
|
|
3315
3316
|
EnumResourceType22["PARTNER"] = "partner";
|
|
@@ -7451,6 +7452,7 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = gql`
|
|
|
7451
7452
|
var AFFILIATE_FIELDS_FRAGMENT = gql`
|
|
7452
7453
|
fragment AffiliateFields on AffiliateType {
|
|
7453
7454
|
_id
|
|
7455
|
+
active
|
|
7454
7456
|
affiliateCode
|
|
7455
7457
|
affiliateResources {
|
|
7456
7458
|
...AffiliateResourceFields
|
|
@@ -7678,7 +7680,7 @@ async function saveNotificationsInDb(payload) {
|
|
|
7678
7680
|
// src/service/sendPushNotifications.ts
|
|
7679
7681
|
var import_expo_server_sdk = require("expo-server-sdk");
|
|
7680
7682
|
|
|
7681
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
7683
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-HNH5YY54.mjs
|
|
7682
7684
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
7683
7685
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
7684
7686
|
EnumOSPlatform22["IOS"] = "ios";
|
|
@@ -9369,6 +9371,7 @@ var affiliateResourceSchema = new MongooseSchema25(
|
|
|
9369
9371
|
);
|
|
9370
9372
|
var schema17 = new MongooseSchema25(
|
|
9371
9373
|
{
|
|
9374
|
+
active: { default: true, required: true, type: Boolean },
|
|
9372
9375
|
affiliateCode: { required: true, type: String },
|
|
9373
9376
|
affiliateResources: {
|
|
9374
9377
|
default: [],
|
|
@@ -9387,7 +9390,7 @@ var schema17 = new MongooseSchema25(
|
|
|
9387
9390
|
schema17.index(
|
|
9388
9391
|
{ affiliateCode: 1 },
|
|
9389
9392
|
{
|
|
9390
|
-
partialFilterExpression: { deletedAt: null },
|
|
9393
|
+
partialFilterExpression: { active: true, deletedAt: null },
|
|
9391
9394
|
unique: true
|
|
9392
9395
|
}
|
|
9393
9396
|
);
|