@timardex/cluemart-server-shared 1.0.56 → 1.0.58
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-GJ3TTBMN.mjs → chunk-2W6GLZ2Z.mjs} +33 -14
- package/dist/chunk-2W6GLZ2Z.mjs.map +1 -0
- package/dist/index.cjs +32 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +32 -13
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +32 -13
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +32 -13
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-GJ3TTBMN.mjs.map +0 -1
package/dist/mongoose/index.mjs
CHANGED
package/dist/service/index.cjs
CHANGED
|
@@ -6850,6 +6850,7 @@ var EnumFoodFlavor = /* @__PURE__ */ ((EnumFoodFlavor3) => {
|
|
|
6850
6850
|
EnumFoodFlavor3["SAVOURY"] = "Savoury";
|
|
6851
6851
|
EnumFoodFlavor3["SPICY"] = "Spicy";
|
|
6852
6852
|
EnumFoodFlavor3["SWEET"] = "Sweet";
|
|
6853
|
+
EnumFoodFlavor3["OTHER"] = "Other";
|
|
6853
6854
|
return EnumFoodFlavor3;
|
|
6854
6855
|
})(EnumFoodFlavor || {});
|
|
6855
6856
|
var EnumResourceType = /* @__PURE__ */ ((EnumResourceType22) => {
|
|
@@ -6897,6 +6898,7 @@ var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceTyp
|
|
|
6897
6898
|
EnumNotificationResourceType22["EVENT_INVITE_VENDOR"] = "event_invite_vendor";
|
|
6898
6899
|
EnumNotificationResourceType22["EVENT_STARTING_SOON"] = "event_starting_soon";
|
|
6899
6900
|
EnumNotificationResourceType22["NEW_CHAT_MESSAGE"] = "new_chat_message";
|
|
6901
|
+
EnumNotificationResourceType22["SYSTEM_ALERT"] = "system_alert";
|
|
6900
6902
|
EnumNotificationResourceType22["VENDOR_APPLICATION_TO_EVENT"] = "vendor_application_to_event";
|
|
6901
6903
|
return EnumNotificationResourceType22;
|
|
6902
6904
|
})(EnumNotificationResourceType || {});
|
|
@@ -8277,6 +8279,11 @@ var ADMIN_RESEND_TESTER_VERIFICATION_EMAIL_MUTATION = gql`
|
|
|
8277
8279
|
adminResendTesterVerificationEmail(testerId: $testerId)
|
|
8278
8280
|
}
|
|
8279
8281
|
`;
|
|
8282
|
+
var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = gql`
|
|
8283
|
+
mutation adminResendUserVerificationEmail($userId: ID!) {
|
|
8284
|
+
adminResendUserVerificationEmail(userId: $userId)
|
|
8285
|
+
}
|
|
8286
|
+
`;
|
|
8280
8287
|
var POSTER_USAGE_FIELDS_FRAGMENT = gql`
|
|
8281
8288
|
fragment PosterUsageFields on PosterUsageType {
|
|
8282
8289
|
month
|
|
@@ -10285,7 +10292,7 @@ var paymentInfoSchema = create$3({
|
|
|
10285
10292
|
otherwise: (schema13) => schema13.notRequired()
|
|
10286
10293
|
}),
|
|
10287
10294
|
link: create$6().when("paymentMethod", {
|
|
10288
|
-
is: (val) => val
|
|
10295
|
+
is: (val) => val === "paypal" || val === "stripe",
|
|
10289
10296
|
then: () => normalizedUrlTransform().url("Link must be a valid URL").required("Link is required for PayPal/Stripe"),
|
|
10290
10297
|
otherwise: (schema13) => schema13.notRequired()
|
|
10291
10298
|
})
|
|
@@ -10351,21 +10358,33 @@ var vendorInfoSchema = create$3().shape({
|
|
|
10351
10358
|
}),
|
|
10352
10359
|
requirements: create$3().shape({
|
|
10353
10360
|
electricity: create$3().shape({
|
|
10354
|
-
details: create$6().trim().test(
|
|
10355
|
-
|
|
10356
|
-
|
|
10361
|
+
details: create$6().trim().test(
|
|
10362
|
+
"details-required",
|
|
10363
|
+
"Please add electricity details",
|
|
10364
|
+
function(value) {
|
|
10365
|
+
return !this.parent?.isRequired || (value?.trim().length ?? 0) > 0;
|
|
10366
|
+
}
|
|
10367
|
+
).nullable(),
|
|
10357
10368
|
isRequired: create$7().required("Electricity requirement is required")
|
|
10358
10369
|
}),
|
|
10359
10370
|
gazebo: create$3().shape({
|
|
10360
|
-
details: create$6().trim().test(
|
|
10361
|
-
|
|
10362
|
-
|
|
10371
|
+
details: create$6().trim().test(
|
|
10372
|
+
"details-required",
|
|
10373
|
+
"Please add gazebo details",
|
|
10374
|
+
function(value) {
|
|
10375
|
+
return !this.parent?.isRequired || (value?.trim().length ?? 0) > 0;
|
|
10376
|
+
}
|
|
10377
|
+
).nullable(),
|
|
10363
10378
|
isRequired: create$7().required("Gazebo requirement is required")
|
|
10364
10379
|
}),
|
|
10365
10380
|
table: create$3().shape({
|
|
10366
|
-
details: create$6().trim().test(
|
|
10367
|
-
|
|
10368
|
-
|
|
10381
|
+
details: create$6().trim().test(
|
|
10382
|
+
"details-required",
|
|
10383
|
+
"Please add table details",
|
|
10384
|
+
function(value) {
|
|
10385
|
+
return !this.parent?.isRequired || (value?.trim().length ?? 0) > 0;
|
|
10386
|
+
}
|
|
10387
|
+
).nullable(),
|
|
10369
10388
|
isRequired: create$7().required("Table requirement is required")
|
|
10370
10389
|
})
|
|
10371
10390
|
}).optional(),
|
|
@@ -10494,7 +10513,7 @@ var testerEventSchema = create$3().shape({
|
|
|
10494
10513
|
inviteStallholders: create$7().required("This field is required").oneOf([true], "This field is required"),
|
|
10495
10514
|
manageApplicationsAndCommunication: create$7().required("This field is required").oneOf([true], "This field is required"),
|
|
10496
10515
|
organizerExpectations: create$6().trim().optional(),
|
|
10497
|
-
spaceForClueMart: create$7().
|
|
10516
|
+
spaceForClueMart: create$7().optional(),
|
|
10498
10517
|
uploadStallList: create$7().required("This field is required").oneOf([true], "This field is required")
|
|
10499
10518
|
}).required("Questionary is required")
|
|
10500
10519
|
});
|
|
@@ -10782,7 +10801,7 @@ async function saveNotificationsInDb(payload) {
|
|
|
10782
10801
|
// src/service/sendPushNotifications.ts
|
|
10783
10802
|
var import_expo_server_sdk = require("expo-server-sdk");
|
|
10784
10803
|
|
|
10785
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
10804
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-OBQRGWV3.mjs
|
|
10786
10805
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
10787
10806
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
10788
10807
|
EnumOSPlatform22["IOS"] = "ios";
|
|
@@ -11515,7 +11534,7 @@ var TesterEventQuestionarySchema = new MongooseSchema9(
|
|
|
11515
11534
|
type: Boolean
|
|
11516
11535
|
},
|
|
11517
11536
|
organizerExpectations: { required: false, type: String },
|
|
11518
|
-
spaceForClueMart: { default:
|
|
11537
|
+
spaceForClueMart: { default: false, required: false, type: Boolean },
|
|
11519
11538
|
uploadStallList: { default: true, required: true, type: Boolean }
|
|
11520
11539
|
},
|
|
11521
11540
|
{ _id: false }
|