@timardex/cluemart-server-shared 1.0.270 → 1.0.272
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-IHDFNJDY.mjs → chunk-D6C7HNAQ.mjs} +10 -5
- package/dist/chunk-D6C7HNAQ.mjs.map +1 -0
- package/dist/index.cjs +9 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +9 -4
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +9 -4
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +9 -4
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-IHDFNJDY.mjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -3371,8 +3371,10 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
|
|
|
3371
3371
|
EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_EVENT"] = "added_as_associate_event";
|
|
3372
3372
|
EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_PARTNER"] = "added_as_associate_partner";
|
|
3373
3373
|
EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_VENDOR"] = "added_as_associate_vendor";
|
|
3374
|
+
EnumNotificationResourceType22["APPROVED_AFFILIATE"] = "approved_affiliate";
|
|
3374
3375
|
EnumNotificationResourceType22["APPROVED_EVENT"] = "approved_event";
|
|
3375
3376
|
EnumNotificationResourceType22["APPROVED_PARTNER"] = "approved_partner";
|
|
3377
|
+
EnumNotificationResourceType22["APPROVED_SCHOOL"] = "approved_school";
|
|
3376
3378
|
EnumNotificationResourceType22["APPROVED_VENDOR"] = "approved_vendor";
|
|
3377
3379
|
EnumNotificationResourceType22["CREATED_EVENT"] = "created_event";
|
|
3378
3380
|
EnumNotificationResourceType22["CREATED_PARTNER"] = "created_partner";
|
|
@@ -3636,7 +3638,6 @@ var EnumGameType = /* @__PURE__ */ ((EnumGameType2) => {
|
|
|
3636
3638
|
var EnumAffiliateRewardType = /* @__PURE__ */ ((EnumAffiliateRewardType2) => {
|
|
3637
3639
|
EnumAffiliateRewardType2["NEW_EVENT_REGISTRATION"] = "NEW_EVENT_REGISTRATION";
|
|
3638
3640
|
EnumAffiliateRewardType2["NEW_VENDOR_REGISTRATION"] = "NEW_VENDOR_REGISTRATION";
|
|
3639
|
-
EnumAffiliateRewardType2["NEW_PARTNER_REGISTRATION"] = "NEW_PARTNER_REGISTRATION";
|
|
3640
3641
|
return EnumAffiliateRewardType2;
|
|
3641
3642
|
})(EnumAffiliateRewardType || {});
|
|
3642
3643
|
var mapArrayToOptions = (items) => items.map((item) => ({
|
|
@@ -7464,6 +7465,7 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = gql`
|
|
|
7464
7465
|
fragment AffiliateResourceFields on AffiliateResourceType {
|
|
7465
7466
|
resourceActive
|
|
7466
7467
|
resourceId
|
|
7468
|
+
resourceName
|
|
7467
7469
|
resourceType
|
|
7468
7470
|
rewards {
|
|
7469
7471
|
...AffiliateRewardFields
|
|
@@ -7614,7 +7616,8 @@ var RESOURCE_SHARE_TYPES = [
|
|
|
7614
7616
|
"market",
|
|
7615
7617
|
"stallholder",
|
|
7616
7618
|
"partner",
|
|
7617
|
-
"affiliate"
|
|
7619
|
+
"affiliate",
|
|
7620
|
+
"school"
|
|
7618
7621
|
];
|
|
7619
7622
|
var POST_SHARE_RESOURCE_TYPES = [
|
|
7620
7623
|
"market_faces",
|
|
@@ -7630,7 +7633,8 @@ var SHARE_RESOURCE_LABEL = {
|
|
|
7630
7633
|
market: "Market",
|
|
7631
7634
|
partner: "Partner",
|
|
7632
7635
|
stallholder: "Stallholder",
|
|
7633
|
-
affiliate: "Affiliate"
|
|
7636
|
+
affiliate: "Affiliate",
|
|
7637
|
+
school: "School"
|
|
7634
7638
|
};
|
|
7635
7639
|
var PUBLIC_SHARE_PATH_TYPES = [
|
|
7636
7640
|
...RESOURCE_SHARE_TYPES,
|
|
@@ -8369,7 +8373,7 @@ schema4.index({ isRead: 1, userId: 1 });
|
|
|
8369
8373
|
schema4.index({ createdAt: -1, userId: 1 });
|
|
8370
8374
|
var NotificationModel = import_mongoose8.default.models.Notification || import_mongoose8.default.model("Notification", schema4);
|
|
8371
8375
|
|
|
8372
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
8376
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-6N32BPAG.mjs
|
|
8373
8377
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
8374
8378
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
8375
8379
|
EnumOSPlatform22["IOS"] = "ios";
|
|
@@ -9245,6 +9249,7 @@ var affiliateResourceSchema = new MongooseSchema25(
|
|
|
9245
9249
|
required: true,
|
|
9246
9250
|
type: import_mongoose25.default.Schema.Types.ObjectId
|
|
9247
9251
|
},
|
|
9252
|
+
resourceName: { required: true, type: String },
|
|
9248
9253
|
resourceType: {
|
|
9249
9254
|
enum: Object.values(EnumResourceType),
|
|
9250
9255
|
required: true,
|