@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.cjs
CHANGED
|
@@ -3315,6 +3315,7 @@ var EnumFoodFlavor = /* @__PURE__ */ ((EnumFoodFlavor22) => {
|
|
|
3315
3315
|
return EnumFoodFlavor22;
|
|
3316
3316
|
})(EnumFoodFlavor || {});
|
|
3317
3317
|
var EnumResourceType = /* @__PURE__ */ ((EnumResourceType22) => {
|
|
3318
|
+
EnumResourceType22["AFFILIATE"] = "affiliate";
|
|
3318
3319
|
EnumResourceType22["EVENT"] = "event";
|
|
3319
3320
|
EnumResourceType22["VENDOR"] = "vendor";
|
|
3320
3321
|
EnumResourceType22["PARTNER"] = "partner";
|
|
@@ -7454,6 +7455,7 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = gql`
|
|
|
7454
7455
|
var AFFILIATE_FIELDS_FRAGMENT = gql`
|
|
7455
7456
|
fragment AffiliateFields on AffiliateType {
|
|
7456
7457
|
_id
|
|
7458
|
+
active
|
|
7457
7459
|
affiliateCode
|
|
7458
7460
|
affiliateResources {
|
|
7459
7461
|
...AffiliateResourceFields
|
|
@@ -8346,7 +8348,7 @@ schema4.index({ isRead: 1, userId: 1 });
|
|
|
8346
8348
|
schema4.index({ createdAt: -1, userId: 1 });
|
|
8347
8349
|
var NotificationModel = import_mongoose8.default.models.Notification || import_mongoose8.default.model("Notification", schema4);
|
|
8348
8350
|
|
|
8349
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
8351
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-HNH5YY54.mjs
|
|
8350
8352
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
8351
8353
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
8352
8354
|
EnumOSPlatform22["IOS"] = "ios";
|
|
@@ -9237,6 +9239,7 @@ var affiliateResourceSchema = new MongooseSchema25(
|
|
|
9237
9239
|
);
|
|
9238
9240
|
var schema17 = new MongooseSchema25(
|
|
9239
9241
|
{
|
|
9242
|
+
active: { default: true, required: true, type: Boolean },
|
|
9240
9243
|
affiliateCode: { required: true, type: String },
|
|
9241
9244
|
affiliateResources: {
|
|
9242
9245
|
default: [],
|
|
@@ -9255,7 +9258,7 @@ var schema17 = new MongooseSchema25(
|
|
|
9255
9258
|
schema17.index(
|
|
9256
9259
|
{ affiliateCode: 1 },
|
|
9257
9260
|
{
|
|
9258
|
-
partialFilterExpression: { deletedAt: null },
|
|
9261
|
+
partialFilterExpression: { active: true, deletedAt: null },
|
|
9259
9262
|
unique: true
|
|
9260
9263
|
}
|
|
9261
9264
|
);
|