@timardex/cluemart-server-shared 1.0.100 → 1.0.101
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-ZB6VYDYP.mjs → chunk-UXSMDLHK.mjs} +15 -8
- package/dist/chunk-UXSMDLHK.mjs.map +1 -0
- package/dist/index.cjs +14 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +14 -7
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +14 -7
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +14 -7
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-ZB6VYDYP.mjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -8614,6 +8614,7 @@ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = gql`
|
|
|
8614
8614
|
description
|
|
8615
8615
|
name
|
|
8616
8616
|
price
|
|
8617
|
+
priceUnit
|
|
8617
8618
|
productGroups
|
|
8618
8619
|
}
|
|
8619
8620
|
`;
|
|
@@ -9006,6 +9007,14 @@ var GET_REPORTED_CHAT_USERS = gql`
|
|
|
9006
9007
|
}
|
|
9007
9008
|
${CHAT_REPORT_FIELDS_FRAGMENT}
|
|
9008
9009
|
`;
|
|
9010
|
+
var CREATE_PRIVATE_CHAT_MUTATION = gql`
|
|
9011
|
+
mutation createPrivateChat($userId: ID!) {
|
|
9012
|
+
createPrivateChat(userId: $userId) {
|
|
9013
|
+
...ChatFields
|
|
9014
|
+
}
|
|
9015
|
+
}
|
|
9016
|
+
${CHAT_FIELDS_FRAGMENT}
|
|
9017
|
+
`;
|
|
9009
9018
|
var SEND_CHAT_MESSAGE_MUTATION = gql`
|
|
9010
9019
|
mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
|
|
9011
9020
|
sendChatMessage(_id: $_id, input: $input) {
|
|
@@ -10290,19 +10299,16 @@ var eventInfoSchema = create$3().shape({
|
|
|
10290
10299
|
).required("Refund policy is required")
|
|
10291
10300
|
});
|
|
10292
10301
|
var vendroMenuSchema = create$3().shape({
|
|
10293
|
-
description: create$6().trim().nullable()
|
|
10294
|
-
"description-required",
|
|
10295
|
-
"Product description is required",
|
|
10296
|
-
function(value) {
|
|
10297
|
-
return value !== null && value !== void 0 && value.trim().length > 0;
|
|
10298
|
-
}
|
|
10299
|
-
),
|
|
10302
|
+
description: create$6().trim().nullable(),
|
|
10300
10303
|
name: create$6().trim().nullable().defined().test("name-required", "Product name is required", function(value) {
|
|
10301
10304
|
return value !== null && value !== void 0 && value.trim().length > 0;
|
|
10302
10305
|
}),
|
|
10303
10306
|
price: create$5().transform((value, originalValue) => originalValue === "" ? null : value).min(0).nullable().defined().test("price-required", "Product price is required", function(value) {
|
|
10304
10307
|
return value !== null && value !== void 0;
|
|
10305
10308
|
}),
|
|
10309
|
+
priceUnit: create$6().trim().nullable().defined().test("unit-required", "Product unit is required", function(value) {
|
|
10310
|
+
return value !== null && value !== void 0 && value.trim().length > 0;
|
|
10311
|
+
}),
|
|
10306
10312
|
productGroups: create$2().of(create$6().defined()).transform(
|
|
10307
10313
|
(value, originalValue) => originalValue === void 0 ? null : value
|
|
10308
10314
|
).nullable().test(
|
|
@@ -11616,6 +11622,7 @@ var productTypeSchema = new MongooseSchema13(
|
|
|
11616
11622
|
description: { required: false, type: String },
|
|
11617
11623
|
name: { required: false, type: String },
|
|
11618
11624
|
price: { required: false, type: Number },
|
|
11625
|
+
priceUnit: { required: false, type: String },
|
|
11619
11626
|
productGroups: { required: false, type: [String] }
|
|
11620
11627
|
},
|
|
11621
11628
|
{ _id: false }
|