@timardex/cluemart-server-shared 1.0.108 → 1.0.110
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-JIMDRWCH.mjs → chunk-7RUK3JKI.mjs} +9 -27
- package/dist/chunk-7RUK3JKI.mjs.map +1 -0
- package/dist/index.cjs +8 -26
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +8 -26
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +8 -26
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +8 -26
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-JIMDRWCH.mjs.map +0 -1
|
@@ -6917,10 +6917,6 @@ var stallTypes = [
|
|
|
6917
6917
|
"Workshop/seating area"
|
|
6918
6918
|
];
|
|
6919
6919
|
var stallTypeOptions = stallTypes.map((type) => ({
|
|
6920
|
-
electricity: {
|
|
6921
|
-
price: null,
|
|
6922
|
-
selected: false
|
|
6923
|
-
},
|
|
6924
6920
|
label: type,
|
|
6925
6921
|
price: 0,
|
|
6926
6922
|
stallCapacity: 0
|
|
@@ -8200,6 +8196,7 @@ var USER_ACTIVITY_FIELDS_FRAGMENT = gql`
|
|
|
8200
8196
|
fragment UserActivityFields on UserActivityType {
|
|
8201
8197
|
favourites {
|
|
8202
8198
|
events
|
|
8199
|
+
partners
|
|
8203
8200
|
vendors
|
|
8204
8201
|
}
|
|
8205
8202
|
going {
|
|
@@ -8275,10 +8272,6 @@ var STALL_TYPE_FIELDS_FRAGMENT = gql`
|
|
|
8275
8272
|
label
|
|
8276
8273
|
price
|
|
8277
8274
|
stallCapacity
|
|
8278
|
-
electricity {
|
|
8279
|
-
price
|
|
8280
|
-
selected
|
|
8281
|
-
}
|
|
8282
8275
|
}
|
|
8283
8276
|
`;
|
|
8284
8277
|
var RELATION_DATES_FRAGMENT = gql`
|
|
@@ -9191,6 +9184,9 @@ var GET_USER_ACTIVITIES = gql`
|
|
|
9191
9184
|
events {
|
|
9192
9185
|
...EventListItemFields
|
|
9193
9186
|
}
|
|
9187
|
+
partners {
|
|
9188
|
+
...PartnerFields
|
|
9189
|
+
}
|
|
9194
9190
|
vendors {
|
|
9195
9191
|
...VendorFields
|
|
9196
9192
|
}
|
|
@@ -9214,6 +9210,7 @@ var GET_USER_ACTIVITIES = gql`
|
|
|
9214
9210
|
}
|
|
9215
9211
|
${EVENT_LIST_ITEM}
|
|
9216
9212
|
${VENDOR}
|
|
9213
|
+
${PARTNER}
|
|
9217
9214
|
`;
|
|
9218
9215
|
var GET_USER_RESOURCES = gql`
|
|
9219
9216
|
query getUserResources($userId: ID!) {
|
|
@@ -10074,17 +10071,7 @@ var stallTypesSchema = create$3({
|
|
|
10074
10071
|
"",
|
|
10075
10072
|
noLeadingZeros("Stall price", { allowDecimal: true })
|
|
10076
10073
|
),
|
|
10077
|
-
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"))
|
|
10078
|
-
electricity: create$3({
|
|
10079
|
-
selected: create$7().nullable().optional().label("Electricity Available"),
|
|
10080
|
-
price: create$5().transform(
|
|
10081
|
-
(value, originalValue) => originalValue === "" ? null : value
|
|
10082
|
-
).integer("Electricity price must be a whole number").test(
|
|
10083
|
-
"no-leading-zeros",
|
|
10084
|
-
"",
|
|
10085
|
-
noLeadingZeros("Electricity price", { allowDecimal: true })
|
|
10086
|
-
).nullable().optional()
|
|
10087
|
-
}).nullable().optional().label("Electricity Information")
|
|
10074
|
+
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"))
|
|
10088
10075
|
});
|
|
10089
10076
|
var dateTimeWithPriceSchema = dateTimeSchema.shape({
|
|
10090
10077
|
stallTypes: create$2().of(stallTypesSchema).min(1, "At least one stall type is required").required("Stall types are required")
|
|
@@ -10237,8 +10224,7 @@ var vendorMenuSchema = create$3({
|
|
|
10237
10224
|
description: create$6().nullable().optional(),
|
|
10238
10225
|
name: create$6().nullable().required("Product name is required"),
|
|
10239
10226
|
price: create$5().transform((v, o3) => o3 === "" ? null : v).min(1, "Product price must be greater than 0").required("Product price is required"),
|
|
10240
|
-
priceUnit: create$6().required("Product unit is required")
|
|
10241
|
-
productGroups: create$2().of(create$6().defined()).min(1, "Product groups are required").required("Product groups are required")
|
|
10227
|
+
priceUnit: create$6().required("Product unit is required")
|
|
10242
10228
|
});
|
|
10243
10229
|
var vendorSchema = globalResourceSchema.shape({
|
|
10244
10230
|
categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
|
|
@@ -10463,7 +10449,7 @@ var partnerSchema = globalResourceSchema.shape({
|
|
|
10463
10449
|
var EnumPostType = /* @__PURE__ */ ((EnumPostType2) => {
|
|
10464
10450
|
EnumPostType2["DAILY_MEETS"] = "daily_meets";
|
|
10465
10451
|
EnumPostType2["DAILY_TIPS"] = "daily_tips";
|
|
10466
|
-
EnumPostType2["
|
|
10452
|
+
EnumPostType2["DAILY_GAMES"] = "daily_games";
|
|
10467
10453
|
return EnumPostType2;
|
|
10468
10454
|
})(EnumPostType || {});
|
|
10469
10455
|
var EnumPostContentType = /* @__PURE__ */ ((EnumPostContentType2) => {
|
|
@@ -10796,10 +10782,6 @@ import mongoose4 from "mongoose";
|
|
|
10796
10782
|
var MongooseSchema4 = mongoose4.Schema;
|
|
10797
10783
|
var StallTypeSchema = new MongooseSchema4(
|
|
10798
10784
|
{
|
|
10799
|
-
electricity: {
|
|
10800
|
-
price: { required: false, type: Number },
|
|
10801
|
-
selected: { required: false, type: Boolean }
|
|
10802
|
-
},
|
|
10803
10785
|
label: { required: false, type: String },
|
|
10804
10786
|
price: { required: false, type: Number },
|
|
10805
10787
|
stallCapacity: { required: false, type: Number }
|
|
@@ -11878,4 +11860,4 @@ react/cjs/react.development.js:
|
|
|
11878
11860
|
* LICENSE file in the root directory of this source tree.
|
|
11879
11861
|
*)
|
|
11880
11862
|
*/
|
|
11881
|
-
//# sourceMappingURL=chunk-
|
|
11863
|
+
//# sourceMappingURL=chunk-7RUK3JKI.mjs.map
|