@timardex/cluemart-server-shared 1.0.271 → 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-LV2G5CMJ.mjs → chunk-D6C7HNAQ.mjs} +6 -3
- package/dist/chunk-D6C7HNAQ.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-LV2G5CMJ.mjs.map +0 -1
package/dist/mongoose/index.mjs
CHANGED
package/dist/service/index.cjs
CHANGED
|
@@ -3352,8 +3352,10 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
|
|
|
3352
3352
|
EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_EVENT"] = "added_as_associate_event";
|
|
3353
3353
|
EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_PARTNER"] = "added_as_associate_partner";
|
|
3354
3354
|
EnumNotificationResourceType22["ADDED_AS_ASSOCIATE_VENDOR"] = "added_as_associate_vendor";
|
|
3355
|
+
EnumNotificationResourceType22["APPROVED_AFFILIATE"] = "approved_affiliate";
|
|
3355
3356
|
EnumNotificationResourceType22["APPROVED_EVENT"] = "approved_event";
|
|
3356
3357
|
EnumNotificationResourceType22["APPROVED_PARTNER"] = "approved_partner";
|
|
3358
|
+
EnumNotificationResourceType22["APPROVED_SCHOOL"] = "approved_school";
|
|
3357
3359
|
EnumNotificationResourceType22["APPROVED_VENDOR"] = "approved_vendor";
|
|
3358
3360
|
EnumNotificationResourceType22["CREATED_EVENT"] = "created_event";
|
|
3359
3361
|
EnumNotificationResourceType22["CREATED_PARTNER"] = "created_partner";
|
|
@@ -3617,7 +3619,6 @@ var EnumGameType = /* @__PURE__ */ ((EnumGameType2) => {
|
|
|
3617
3619
|
var EnumAffiliateRewardType = /* @__PURE__ */ ((EnumAffiliateRewardType2) => {
|
|
3618
3620
|
EnumAffiliateRewardType2["NEW_EVENT_REGISTRATION"] = "NEW_EVENT_REGISTRATION";
|
|
3619
3621
|
EnumAffiliateRewardType2["NEW_VENDOR_REGISTRATION"] = "NEW_VENDOR_REGISTRATION";
|
|
3620
|
-
EnumAffiliateRewardType2["NEW_PARTNER_REGISTRATION"] = "NEW_PARTNER_REGISTRATION";
|
|
3621
3622
|
return EnumAffiliateRewardType2;
|
|
3622
3623
|
})(EnumAffiliateRewardType || {});
|
|
3623
3624
|
var mapArrayToOptions = (items) => items.map((item) => ({
|
|
@@ -7445,6 +7446,7 @@ var AFFILIATE_RESOURCE_FIELDS_FRAGMENT = gql`
|
|
|
7445
7446
|
fragment AffiliateResourceFields on AffiliateResourceType {
|
|
7446
7447
|
resourceActive
|
|
7447
7448
|
resourceId
|
|
7449
|
+
resourceName
|
|
7448
7450
|
resourceType
|
|
7449
7451
|
rewards {
|
|
7450
7452
|
...AffiliateRewardFields
|
|
@@ -7687,7 +7689,7 @@ async function saveNotificationsInDb(payload) {
|
|
|
7687
7689
|
// src/service/sendPushNotifications.ts
|
|
7688
7690
|
var import_expo_server_sdk = require("expo-server-sdk");
|
|
7689
7691
|
|
|
7690
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
7692
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-6N32BPAG.mjs
|
|
7691
7693
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
7692
7694
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
7693
7695
|
EnumOSPlatform22["IOS"] = "ios";
|
|
@@ -9363,6 +9365,7 @@ var affiliateResourceSchema = new MongooseSchema25(
|
|
|
9363
9365
|
required: true,
|
|
9364
9366
|
type: import_mongoose26.default.Schema.Types.ObjectId
|
|
9365
9367
|
},
|
|
9368
|
+
resourceName: { required: true, type: String },
|
|
9366
9369
|
resourceType: {
|
|
9367
9370
|
enum: Object.values(EnumResourceType),
|
|
9368
9371
|
required: true,
|