@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/index.mjs CHANGED
@@ -8558,6 +8558,7 @@ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = gql`
8558
8558
  description
8559
8559
  name
8560
8560
  price
8561
+ priceUnit
8561
8562
  productGroups
8562
8563
  }
8563
8564
  `;
@@ -8950,6 +8951,14 @@ var GET_REPORTED_CHAT_USERS = gql`
8950
8951
  }
8951
8952
  ${CHAT_REPORT_FIELDS_FRAGMENT}
8952
8953
  `;
8954
+ var CREATE_PRIVATE_CHAT_MUTATION = gql`
8955
+ mutation createPrivateChat($userId: ID!) {
8956
+ createPrivateChat(userId: $userId) {
8957
+ ...ChatFields
8958
+ }
8959
+ }
8960
+ ${CHAT_FIELDS_FRAGMENT}
8961
+ `;
8953
8962
  var SEND_CHAT_MESSAGE_MUTATION = gql`
8954
8963
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
8955
8964
  sendChatMessage(_id: $_id, input: $input) {
@@ -10234,19 +10243,16 @@ var eventInfoSchema = create$3().shape({
10234
10243
  ).required("Refund policy is required")
10235
10244
  });
10236
10245
  var vendroMenuSchema = create$3().shape({
10237
- description: create$6().trim().nullable().defined().test(
10238
- "description-required",
10239
- "Product description is required",
10240
- function(value) {
10241
- return value !== null && value !== void 0 && value.trim().length > 0;
10242
- }
10243
- ),
10246
+ description: create$6().trim().nullable(),
10244
10247
  name: create$6().trim().nullable().defined().test("name-required", "Product name is required", function(value) {
10245
10248
  return value !== null && value !== void 0 && value.trim().length > 0;
10246
10249
  }),
10247
10250
  price: create$5().transform((value, originalValue) => originalValue === "" ? null : value).min(0).nullable().defined().test("price-required", "Product price is required", function(value) {
10248
10251
  return value !== null && value !== void 0;
10249
10252
  }),
10253
+ priceUnit: create$6().trim().nullable().defined().test("unit-required", "Product unit is required", function(value) {
10254
+ return value !== null && value !== void 0 && value.trim().length > 0;
10255
+ }),
10250
10256
  productGroups: create$2().of(create$6().defined()).transform(
10251
10257
  (value, originalValue) => originalValue === void 0 ? null : value
10252
10258
  ).nullable().test(
@@ -11560,6 +11566,7 @@ var productTypeSchema = new MongooseSchema13(
11560
11566
  description: { required: false, type: String },
11561
11567
  name: { required: false, type: String },
11562
11568
  price: { required: false, type: Number },
11569
+ priceUnit: { required: false, type: String },
11563
11570
  productGroups: { required: false, type: [String] }
11564
11571
  },
11565
11572
  { _id: false }