@timardex/cluemart-server-shared 1.0.106 → 1.0.109
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-P4C6EB4V.mjs → chunk-VQOH37OR.mjs} +3 -26
- package/dist/chunk-VQOH37OR.mjs.map +1 -0
- package/dist/index.cjs +2 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -25
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +2 -25
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +2 -25
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-P4C6EB4V.mjs.map +0 -1
package/dist/mongoose/index.mjs
CHANGED
package/dist/service/index.cjs
CHANGED
|
@@ -6718,7 +6718,6 @@ var EnumInviteStatus = /* @__PURE__ */ ((EnumInviteStatus22) => {
|
|
|
6718
6718
|
EnumInviteStatus22["PENDING"] = "Pending";
|
|
6719
6719
|
EnumInviteStatus22["REJECTED"] = "Rejected";
|
|
6720
6720
|
EnumInviteStatus22["UNAVAILABLE"] = "Unavailable";
|
|
6721
|
-
EnumInviteStatus22["WAITING"] = "Waiting";
|
|
6722
6721
|
return EnumInviteStatus22;
|
|
6723
6722
|
})(EnumInviteStatus || {});
|
|
6724
6723
|
var EnumChatReportReason = /* @__PURE__ */ ((EnumChatReportReason22) => {
|
|
@@ -6983,10 +6982,6 @@ var stallTypes = [
|
|
|
6983
6982
|
"Workshop/seating area"
|
|
6984
6983
|
];
|
|
6985
6984
|
var stallTypeOptions = stallTypes.map((type) => ({
|
|
6986
|
-
electricity: {
|
|
6987
|
-
price: null,
|
|
6988
|
-
selected: false
|
|
6989
|
-
},
|
|
6990
6985
|
label: type,
|
|
6991
6986
|
price: 0,
|
|
6992
6987
|
stallCapacity: 0
|
|
@@ -8341,10 +8336,6 @@ var STALL_TYPE_FIELDS_FRAGMENT = gql`
|
|
|
8341
8336
|
label
|
|
8342
8337
|
price
|
|
8343
8338
|
stallCapacity
|
|
8344
|
-
electricity {
|
|
8345
|
-
price
|
|
8346
|
-
selected
|
|
8347
|
-
}
|
|
8348
8339
|
}
|
|
8349
8340
|
`;
|
|
8350
8341
|
var RELATION_DATES_FRAGMENT = gql`
|
|
@@ -10140,17 +10131,7 @@ var stallTypesSchema = create$3({
|
|
|
10140
10131
|
"",
|
|
10141
10132
|
noLeadingZeros("Stall price", { allowDecimal: true })
|
|
10142
10133
|
),
|
|
10143
|
-
stallCapacity: create$5().label("Stall Capacity").typeError("Stall capacity must be a number").min(1, "Stall capacity must be at least 1").integer("Stall capacity must be a whole number").required("Stall capacity is required").test("no-leading-zeros", "", noLeadingZeros("Stall capacity"))
|
|
10144
|
-
electricity: create$3({
|
|
10145
|
-
selected: create$7().nullable().optional().label("Electricity Available"),
|
|
10146
|
-
price: create$5().transform(
|
|
10147
|
-
(value, originalValue) => originalValue === "" ? null : value
|
|
10148
|
-
).integer("Electricity price must be a whole number").test(
|
|
10149
|
-
"no-leading-zeros",
|
|
10150
|
-
"",
|
|
10151
|
-
noLeadingZeros("Electricity price", { allowDecimal: true })
|
|
10152
|
-
).nullable().optional()
|
|
10153
|
-
}).nullable().optional().label("Electricity Information")
|
|
10134
|
+
stallCapacity: create$5().label("Stall Capacity").typeError("Stall capacity must be a number").min(1, "Stall capacity must be at least 1").integer("Stall capacity must be a whole number").required("Stall capacity is required").test("no-leading-zeros", "", noLeadingZeros("Stall capacity"))
|
|
10154
10135
|
});
|
|
10155
10136
|
var dateTimeWithPriceSchema = dateTimeSchema.shape({
|
|
10156
10137
|
stallTypes: create$2().of(stallTypesSchema).min(1, "At least one stall type is required").required("Stall types are required")
|
|
@@ -10711,7 +10692,7 @@ async function saveNotificationsInDb(payload) {
|
|
|
10711
10692
|
// src/service/sendPushNotifications.ts
|
|
10712
10693
|
var import_expo_server_sdk = require("expo-server-sdk");
|
|
10713
10694
|
|
|
10714
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
10695
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-USQKKCIA.mjs
|
|
10715
10696
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
10716
10697
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
10717
10698
|
EnumOSPlatform22["IOS"] = "ios";
|
|
@@ -11056,10 +11037,6 @@ var import_mongoose7 = __toESM(require("mongoose"));
|
|
|
11056
11037
|
var MongooseSchema6 = import_mongoose7.default.Schema;
|
|
11057
11038
|
var StallTypeSchema = new MongooseSchema6(
|
|
11058
11039
|
{
|
|
11059
|
-
electricity: {
|
|
11060
|
-
price: { required: false, type: Number },
|
|
11061
|
-
selected: { required: false, type: Boolean }
|
|
11062
|
-
},
|
|
11063
11040
|
label: { required: false, type: String },
|
|
11064
11041
|
price: { required: false, type: Number },
|
|
11065
11042
|
stallCapacity: { required: false, type: Number }
|