@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
|
@@ -8537,6 +8537,7 @@ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = gql`
|
|
|
8537
8537
|
description
|
|
8538
8538
|
name
|
|
8539
8539
|
price
|
|
8540
|
+
priceUnit
|
|
8540
8541
|
productGroups
|
|
8541
8542
|
}
|
|
8542
8543
|
`;
|
|
@@ -8929,6 +8930,14 @@ var GET_REPORTED_CHAT_USERS = gql`
|
|
|
8929
8930
|
}
|
|
8930
8931
|
${CHAT_REPORT_FIELDS_FRAGMENT}
|
|
8931
8932
|
`;
|
|
8933
|
+
var CREATE_PRIVATE_CHAT_MUTATION = gql`
|
|
8934
|
+
mutation createPrivateChat($userId: ID!) {
|
|
8935
|
+
createPrivateChat(userId: $userId) {
|
|
8936
|
+
...ChatFields
|
|
8937
|
+
}
|
|
8938
|
+
}
|
|
8939
|
+
${CHAT_FIELDS_FRAGMENT}
|
|
8940
|
+
`;
|
|
8932
8941
|
var SEND_CHAT_MESSAGE_MUTATION = gql`
|
|
8933
8942
|
mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
|
|
8934
8943
|
sendChatMessage(_id: $_id, input: $input) {
|
|
@@ -10213,19 +10222,16 @@ var eventInfoSchema = create$3().shape({
|
|
|
10213
10222
|
).required("Refund policy is required")
|
|
10214
10223
|
});
|
|
10215
10224
|
var vendroMenuSchema = create$3().shape({
|
|
10216
|
-
description: create$6().trim().nullable()
|
|
10217
|
-
"description-required",
|
|
10218
|
-
"Product description is required",
|
|
10219
|
-
function(value) {
|
|
10220
|
-
return value !== null && value !== void 0 && value.trim().length > 0;
|
|
10221
|
-
}
|
|
10222
|
-
),
|
|
10225
|
+
description: create$6().trim().nullable(),
|
|
10223
10226
|
name: create$6().trim().nullable().defined().test("name-required", "Product name is required", function(value) {
|
|
10224
10227
|
return value !== null && value !== void 0 && value.trim().length > 0;
|
|
10225
10228
|
}),
|
|
10226
10229
|
price: create$5().transform((value, originalValue) => originalValue === "" ? null : value).min(0).nullable().defined().test("price-required", "Product price is required", function(value) {
|
|
10227
10230
|
return value !== null && value !== void 0;
|
|
10228
10231
|
}),
|
|
10232
|
+
priceUnit: create$6().trim().nullable().defined().test("unit-required", "Product unit is required", function(value) {
|
|
10233
|
+
return value !== null && value !== void 0 && value.trim().length > 0;
|
|
10234
|
+
}),
|
|
10229
10235
|
productGroups: create$2().of(create$6().defined()).transform(
|
|
10230
10236
|
(value, originalValue) => originalValue === void 0 ? null : value
|
|
10231
10237
|
).nullable().test(
|
|
@@ -11539,6 +11545,7 @@ var productTypeSchema = new MongooseSchema13(
|
|
|
11539
11545
|
description: { required: false, type: String },
|
|
11540
11546
|
name: { required: false, type: String },
|
|
11541
11547
|
price: { required: false, type: Number },
|
|
11548
|
+
priceUnit: { required: false, type: String },
|
|
11542
11549
|
productGroups: { required: false, type: [String] }
|
|
11543
11550
|
},
|
|
11544
11551
|
{ _id: false }
|
|
@@ -11882,4 +11889,4 @@ react/cjs/react.development.js:
|
|
|
11882
11889
|
* LICENSE file in the root directory of this source tree.
|
|
11883
11890
|
*)
|
|
11884
11891
|
*/
|
|
11885
|
-
//# sourceMappingURL=chunk-
|
|
11892
|
+
//# sourceMappingURL=chunk-UXSMDLHK.mjs.map
|