@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/index.cjs
CHANGED
|
@@ -3329,6 +3329,7 @@ var EnumFoodFlavor = /* @__PURE__ */ ((EnumFoodFlavor22) => {
|
|
|
3329
3329
|
return EnumFoodFlavor22;
|
|
3330
3330
|
})(EnumFoodFlavor || {});
|
|
3331
3331
|
var EnumResourceType = /* @__PURE__ */ ((EnumResourceType22) => {
|
|
3332
|
+
EnumResourceType22["AFFILIATE"] = "affiliate";
|
|
3332
3333
|
EnumResourceType22["EVENT"] = "event";
|
|
3333
3334
|
EnumResourceType22["VENDOR"] = "vendor";
|
|
3334
3335
|
EnumResourceType22["PARTNER"] = "partner";
|
|
@@ -7470,6 +7471,7 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = gql`
|
|
|
7470
7471
|
var AFFILIATE_FIELDS_FRAGMENT = gql`
|
|
7471
7472
|
fragment AffiliateFields on AffiliateType {
|
|
7472
7473
|
_id
|
|
7474
|
+
active
|
|
7473
7475
|
affiliateCode
|
|
7474
7476
|
affiliateResources {
|
|
7475
7477
|
...AffiliateResourceFields
|
|
@@ -8362,7 +8364,7 @@ schema4.index({ isRead: 1, userId: 1 });
|
|
|
8362
8364
|
schema4.index({ createdAt: -1, userId: 1 });
|
|
8363
8365
|
var NotificationModel = import_mongoose8.default.models.Notification || import_mongoose8.default.model("Notification", schema4);
|
|
8364
8366
|
|
|
8365
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
8367
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-HNH5YY54.mjs
|
|
8366
8368
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
8367
8369
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
8368
8370
|
EnumOSPlatform22["IOS"] = "ios";
|
|
@@ -9253,6 +9255,7 @@ var affiliateResourceSchema = new MongooseSchema25(
|
|
|
9253
9255
|
);
|
|
9254
9256
|
var schema17 = new MongooseSchema25(
|
|
9255
9257
|
{
|
|
9258
|
+
active: { default: true, required: true, type: Boolean },
|
|
9256
9259
|
affiliateCode: { required: true, type: String },
|
|
9257
9260
|
affiliateResources: {
|
|
9258
9261
|
default: [],
|
|
@@ -9271,7 +9274,7 @@ var schema17 = new MongooseSchema25(
|
|
|
9271
9274
|
schema17.index(
|
|
9272
9275
|
{ affiliateCode: 1 },
|
|
9273
9276
|
{
|
|
9274
|
-
partialFilterExpression: { deletedAt: null },
|
|
9277
|
+
partialFilterExpression: { active: true, deletedAt: null },
|
|
9275
9278
|
unique: true
|
|
9276
9279
|
}
|
|
9277
9280
|
);
|