@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/index.cjs
CHANGED
|
@@ -6730,7 +6730,6 @@ var EnumInviteStatus = /* @__PURE__ */ ((EnumInviteStatus22) => {
|
|
|
6730
6730
|
EnumInviteStatus22["PENDING"] = "Pending";
|
|
6731
6731
|
EnumInviteStatus22["REJECTED"] = "Rejected";
|
|
6732
6732
|
EnumInviteStatus22["UNAVAILABLE"] = "Unavailable";
|
|
6733
|
-
EnumInviteStatus22["WAITING"] = "Waiting";
|
|
6734
6733
|
return EnumInviteStatus22;
|
|
6735
6734
|
})(EnumInviteStatus || {});
|
|
6736
6735
|
var EnumChatReportReason = /* @__PURE__ */ ((EnumChatReportReason22) => {
|
|
@@ -6995,10 +6994,6 @@ var stallTypes = [
|
|
|
6995
6994
|
"Workshop/seating area"
|
|
6996
6995
|
];
|
|
6997
6996
|
var stallTypeOptions = stallTypes.map((type) => ({
|
|
6998
|
-
electricity: {
|
|
6999
|
-
price: null,
|
|
7000
|
-
selected: false
|
|
7001
|
-
},
|
|
7002
6997
|
label: type,
|
|
7003
6998
|
price: 0,
|
|
7004
6999
|
stallCapacity: 0
|
|
@@ -8353,10 +8348,6 @@ var STALL_TYPE_FIELDS_FRAGMENT = gql`
|
|
|
8353
8348
|
label
|
|
8354
8349
|
price
|
|
8355
8350
|
stallCapacity
|
|
8356
|
-
electricity {
|
|
8357
|
-
price
|
|
8358
|
-
selected
|
|
8359
|
-
}
|
|
8360
8351
|
}
|
|
8361
8352
|
`;
|
|
8362
8353
|
var RELATION_DATES_FRAGMENT = gql`
|
|
@@ -10152,17 +10143,7 @@ var stallTypesSchema = create$3({
|
|
|
10152
10143
|
"",
|
|
10153
10144
|
noLeadingZeros("Stall price", { allowDecimal: true })
|
|
10154
10145
|
),
|
|
10155
|
-
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"))
|
|
10156
|
-
electricity: create$3({
|
|
10157
|
-
selected: create$7().nullable().optional().label("Electricity Available"),
|
|
10158
|
-
price: create$5().transform(
|
|
10159
|
-
(value, originalValue) => originalValue === "" ? null : value
|
|
10160
|
-
).integer("Electricity price must be a whole number").test(
|
|
10161
|
-
"no-leading-zeros",
|
|
10162
|
-
"",
|
|
10163
|
-
noLeadingZeros("Electricity price", { allowDecimal: true })
|
|
10164
|
-
).nullable().optional()
|
|
10165
|
-
}).nullable().optional().label("Electricity Information")
|
|
10146
|
+
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"))
|
|
10166
10147
|
});
|
|
10167
10148
|
var dateTimeWithPriceSchema = dateTimeSchema.shape({
|
|
10168
10149
|
stallTypes: create$2().of(stallTypesSchema).min(1, "At least one stall type is required").required("Stall types are required")
|
|
@@ -10874,10 +10855,6 @@ var import_mongoose4 = __toESM(require("mongoose"));
|
|
|
10874
10855
|
var MongooseSchema4 = import_mongoose4.default.Schema;
|
|
10875
10856
|
var StallTypeSchema = new MongooseSchema4(
|
|
10876
10857
|
{
|
|
10877
|
-
electricity: {
|
|
10878
|
-
price: { required: false, type: Number },
|
|
10879
|
-
selected: { required: false, type: Boolean }
|
|
10880
|
-
},
|
|
10881
10858
|
label: { required: false, type: String },
|
|
10882
10859
|
price: { required: false, type: Number },
|
|
10883
10860
|
stallCapacity: { required: false, type: Number }
|
|
@@ -11360,7 +11337,7 @@ schema4.index({ isRead: 1, userId: 1 });
|
|
|
11360
11337
|
schema4.index({ createdAt: -1, userId: 1 });
|
|
11361
11338
|
var NotificationModel = import_mongoose8.default.models.Notification || import_mongoose8.default.model("Notification", schema4);
|
|
11362
11339
|
|
|
11363
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
11340
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-USQKKCIA.mjs
|
|
11364
11341
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
11365
11342
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
11366
11343
|
EnumOSPlatform22["IOS"] = "ios";
|