@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.
@@ -33,7 +33,7 @@ import {
33
33
  resourceRelationsSchema,
34
34
  termsAgreementSchema,
35
35
  userLicenseSchema
36
- } from "../chunk-ZB6VYDYP.mjs";
36
+ } from "../chunk-UXSMDLHK.mjs";
37
37
  import "../chunk-3QS3WKRC.mjs";
38
38
  export {
39
39
  APP_SETTINGS_ID,
@@ -8602,6 +8602,7 @@ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = gql`
8602
8602
  description
8603
8603
  name
8604
8604
  price
8605
+ priceUnit
8605
8606
  productGroups
8606
8607
  }
8607
8608
  `;
@@ -8994,6 +8995,14 @@ var GET_REPORTED_CHAT_USERS = gql`
8994
8995
  }
8995
8996
  ${CHAT_REPORT_FIELDS_FRAGMENT}
8996
8997
  `;
8998
+ var CREATE_PRIVATE_CHAT_MUTATION = gql`
8999
+ mutation createPrivateChat($userId: ID!) {
9000
+ createPrivateChat(userId: $userId) {
9001
+ ...ChatFields
9002
+ }
9003
+ }
9004
+ ${CHAT_FIELDS_FRAGMENT}
9005
+ `;
8997
9006
  var SEND_CHAT_MESSAGE_MUTATION = gql`
8998
9007
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
8999
9008
  sendChatMessage(_id: $_id, input: $input) {
@@ -10278,19 +10287,16 @@ var eventInfoSchema = create$3().shape({
10278
10287
  ).required("Refund policy is required")
10279
10288
  });
10280
10289
  var vendroMenuSchema = create$3().shape({
10281
- description: create$6().trim().nullable().defined().test(
10282
- "description-required",
10283
- "Product description is required",
10284
- function(value) {
10285
- return value !== null && value !== void 0 && value.trim().length > 0;
10286
- }
10287
- ),
10290
+ description: create$6().trim().nullable(),
10288
10291
  name: create$6().trim().nullable().defined().test("name-required", "Product name is required", function(value) {
10289
10292
  return value !== null && value !== void 0 && value.trim().length > 0;
10290
10293
  }),
10291
10294
  price: create$5().transform((value, originalValue) => originalValue === "" ? null : value).min(0).nullable().defined().test("price-required", "Product price is required", function(value) {
10292
10295
  return value !== null && value !== void 0;
10293
10296
  }),
10297
+ priceUnit: create$6().trim().nullable().defined().test("unit-required", "Product unit is required", function(value) {
10298
+ return value !== null && value !== void 0 && value.trim().length > 0;
10299
+ }),
10294
10300
  productGroups: create$2().of(create$6().defined()).transform(
10295
10301
  (value, originalValue) => originalValue === void 0 ? null : value
10296
10302
  ).nullable().test(
@@ -11738,6 +11744,7 @@ var productTypeSchema = new MongooseSchema13(
11738
11744
  description: { required: false, type: String },
11739
11745
  name: { required: false, type: String },
11740
11746
  price: { required: false, type: Number },
11747
+ priceUnit: { required: false, type: String },
11741
11748
  productGroups: { required: false, type: [String] }
11742
11749
  },
11743
11750
  { _id: false }