@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.
@@ -8604,6 +8604,7 @@ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = gql`
8604
8604
  description
8605
8605
  name
8606
8606
  price
8607
+ priceUnit
8607
8608
  productGroups
8608
8609
  }
8609
8610
  `;
@@ -8996,6 +8997,14 @@ var GET_REPORTED_CHAT_USERS = gql`
8996
8997
  }
8997
8998
  ${CHAT_REPORT_FIELDS_FRAGMENT}
8998
8999
  `;
9000
+ var CREATE_PRIVATE_CHAT_MUTATION = gql`
9001
+ mutation createPrivateChat($userId: ID!) {
9002
+ createPrivateChat(userId: $userId) {
9003
+ ...ChatFields
9004
+ }
9005
+ }
9006
+ ${CHAT_FIELDS_FRAGMENT}
9007
+ `;
8999
9008
  var SEND_CHAT_MESSAGE_MUTATION = gql`
9000
9009
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
9001
9010
  sendChatMessage(_id: $_id, input: $input) {
@@ -10280,19 +10289,16 @@ var eventInfoSchema = create$3().shape({
10280
10289
  ).required("Refund policy is required")
10281
10290
  });
10282
10291
  var vendroMenuSchema = create$3().shape({
10283
- description: create$6().trim().nullable().defined().test(
10284
- "description-required",
10285
- "Product description is required",
10286
- function(value) {
10287
- return value !== null && value !== void 0 && value.trim().length > 0;
10288
- }
10289
- ),
10292
+ description: create$6().trim().nullable(),
10290
10293
  name: create$6().trim().nullable().defined().test("name-required", "Product name is required", function(value) {
10291
10294
  return value !== null && value !== void 0 && value.trim().length > 0;
10292
10295
  }),
10293
10296
  price: create$5().transform((value, originalValue) => originalValue === "" ? null : value).min(0).nullable().defined().test("price-required", "Product price is required", function(value) {
10294
10297
  return value !== null && value !== void 0;
10295
10298
  }),
10299
+ priceUnit: create$6().trim().nullable().defined().test("unit-required", "Product unit is required", function(value) {
10300
+ return value !== null && value !== void 0 && value.trim().length > 0;
10301
+ }),
10296
10302
  productGroups: create$2().of(create$6().defined()).transform(
10297
10303
  (value, originalValue) => originalValue === void 0 ? null : value
10298
10304
  ).nullable().test(
@@ -11606,6 +11612,7 @@ var productTypeSchema = new MongooseSchema13(
11606
11612
  description: { required: false, type: String },
11607
11613
  name: { required: false, type: String },
11608
11614
  price: { required: false, type: Number },
11615
+ priceUnit: { required: false, type: String },
11609
11616
  productGroups: { required: false, type: [String] }
11610
11617
  },
11611
11618
  { _id: false }