@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/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
|
|
@@ -7595,7 +7597,8 @@ var RESOURCE_SHARE_TYPES = [
|
|
|
7595
7597
|
"market",
|
|
7596
7598
|
"stallholder",
|
|
7597
7599
|
"partner",
|
|
7598
|
-
"affiliate"
|
|
7600
|
+
"affiliate",
|
|
7601
|
+
"school"
|
|
7599
7602
|
];
|
|
7600
7603
|
var POST_SHARE_RESOURCE_TYPES = [
|
|
7601
7604
|
"market_faces",
|
|
@@ -7611,7 +7614,8 @@ var SHARE_RESOURCE_LABEL = {
|
|
|
7611
7614
|
market: "Market",
|
|
7612
7615
|
partner: "Partner",
|
|
7613
7616
|
stallholder: "Stallholder",
|
|
7614
|
-
affiliate: "Affiliate"
|
|
7617
|
+
affiliate: "Affiliate",
|
|
7618
|
+
school: "School"
|
|
7615
7619
|
};
|
|
7616
7620
|
var PUBLIC_SHARE_PATH_TYPES = [
|
|
7617
7621
|
...RESOURCE_SHARE_TYPES,
|
|
@@ -7685,7 +7689,7 @@ async function saveNotificationsInDb(payload) {
|
|
|
7685
7689
|
// src/service/sendPushNotifications.ts
|
|
7686
7690
|
var import_expo_server_sdk = require("expo-server-sdk");
|
|
7687
7691
|
|
|
7688
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
7692
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-6N32BPAG.mjs
|
|
7689
7693
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
7690
7694
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
7691
7695
|
EnumOSPlatform22["IOS"] = "ios";
|
|
@@ -9361,6 +9365,7 @@ var affiliateResourceSchema = new MongooseSchema25(
|
|
|
9361
9365
|
required: true,
|
|
9362
9366
|
type: import_mongoose26.default.Schema.Types.ObjectId
|
|
9363
9367
|
},
|
|
9368
|
+
resourceName: { required: true, type: String },
|
|
9364
9369
|
resourceType: {
|
|
9365
9370
|
enum: Object.values(EnumResourceType),
|
|
9366
9371
|
required: true,
|