@timardex/cluemart-shared 1.4.60 → 1.4.61

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.
Files changed (41) hide show
  1. package/dist/{auth-CjykW2Lr.d.ts → auth-9vFYJSW2.d.ts} +1 -1
  2. package/dist/{auth-DNycVvkZ.d.mts → auth-GnL6pUzz.d.mts} +1 -1
  3. package/dist/{chunk-UZZR2DDI.mjs → chunk-ONMJIUN6.mjs} +18 -1
  4. package/dist/chunk-ONMJIUN6.mjs.map +1 -0
  5. package/dist/{chunk-KIWJIODL.mjs → chunk-XV4RAQLF.mjs} +23 -1
  6. package/dist/chunk-XV4RAQLF.mjs.map +1 -0
  7. package/dist/formFields/index.cjs +23 -0
  8. package/dist/formFields/index.cjs.map +1 -1
  9. package/dist/formFields/index.d.mts +3 -2
  10. package/dist/formFields/index.d.ts +3 -2
  11. package/dist/formFields/index.mjs +3 -1
  12. package/dist/{global-BCkL-Bpy.d.mts → global-D_UhEob6.d.mts} +2 -1
  13. package/dist/{global-CPPLdm4G.d.ts → global-VjBJNe7n.d.ts} +2 -1
  14. package/dist/graphql/index.cjs +18 -0
  15. package/dist/graphql/index.cjs.map +1 -1
  16. package/dist/graphql/index.d.mts +17 -4
  17. package/dist/graphql/index.d.ts +17 -4
  18. package/dist/graphql/index.mjs +3 -1
  19. package/dist/hooks/index.cjs +13 -7
  20. package/dist/hooks/index.cjs.map +1 -1
  21. package/dist/hooks/index.d.mts +3 -3
  22. package/dist/hooks/index.d.ts +3 -3
  23. package/dist/hooks/index.mjs +6 -9
  24. package/dist/hooks/index.mjs.map +1 -1
  25. package/dist/index.cjs +45 -7
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.mts +17 -2
  28. package/dist/index.d.ts +17 -2
  29. package/dist/index.mjs +43 -7
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/{post-B8oSaRx5.d.ts → post-DjGTbKYj.d.ts} +1 -1
  32. package/dist/{post-_XBrGUY2.d.mts → post-mzVNdX-7.d.mts} +1 -1
  33. package/dist/{resourceActivities-CndYlMM-.d.mts → resourceActivities-ByN_-57i.d.mts} +1 -1
  34. package/dist/{resourceActivities-CxDUeNpr.d.ts → resourceActivities-DP_nnVG5.d.ts} +1 -1
  35. package/dist/types/index.d.mts +5 -5
  36. package/dist/types/index.d.ts +5 -5
  37. package/dist/utils/index.d.mts +1 -1
  38. package/dist/utils/index.d.ts +1 -1
  39. package/package.json +1 -1
  40. package/dist/chunk-KIWJIODL.mjs.map +0 -1
  41. package/dist/chunk-UZZR2DDI.mjs.map +0 -1
@@ -1,4 +1,4 @@
1
- import { F as FormField, a as FormDateField, O as OptionItem, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-CPPLdm4G.js';
1
+ import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-VjBJNe7n.js';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.js';
4
4
 
@@ -16,6 +16,7 @@ declare const productLabelGroups: {
16
16
  fullName: string;
17
17
  }[];
18
18
  }[];
19
+ declare const priceUnits: OptionItem[];
19
20
 
20
21
  declare const vendorElectricity: {
21
22
  details: FormField;
@@ -80,4 +81,4 @@ declare const companyContactFields: FormField[];
80
81
 
81
82
  declare const partnerBasicInfoFields: FormField[];
82
83
 
83
- export { availableCategories, availableTagTypes, categoryColors, companyContactFields, contactUsFields, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, foodFlavourOptions, loginFields, packagingOptions, partnerBasicInfoFields, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, stallTypeOptions, tagOptions, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
84
+ export { availableCategories, availableTagTypes, categoryColors, companyContactFields, contactUsFields, emailField, eventBasicInfoFields, eventEndDateFields, eventInfo, eventInfoPaymentInfo, eventStartDateFields, foodFlavourOptions, loginFields, packagingOptions, partnerBasicInfoFields, priceUnits, producedIngOptions, productLabelGroups, profileFields, refundPolicyOptions, registerFields, requestPasswordResetFields, requirementsOptions, resetPasswordFields, socialMediaFields, stallTypeOptions, tagOptions, validateVerificationTokenFields, vendorAvailability, vendorBasicInfoFields, vendorCompliance, vendorElectricity, vendorEndDateFields, vendorFoodFlavour, vendorFullAddress, vendorGazebo, vendorLocationDescription, vendorMenuFields, vendorPackaging, vendorPriceRange, vendorProducedIn, vendorStallSize, vendorStartDateFields, vendorTable };
@@ -14,6 +14,7 @@ import {
14
14
  loginFields,
15
15
  packagingOptions,
16
16
  partnerBasicInfoFields,
17
+ priceUnits,
17
18
  producedIngOptions,
18
19
  productLabelGroups,
19
20
  profileFields,
@@ -42,7 +43,7 @@ import {
42
43
  vendorStallSize,
43
44
  vendorStartDateFields,
44
45
  vendorTable
45
- } from "../chunk-KIWJIODL.mjs";
46
+ } from "../chunk-XV4RAQLF.mjs";
46
47
  import "../chunk-5V6JNIPQ.mjs";
47
48
  import "../chunk-LDO4DRWY.mjs";
48
49
  export {
@@ -61,6 +62,7 @@ export {
61
62
  loginFields,
62
63
  packagingOptions,
63
64
  partnerBasicInfoFields,
65
+ priceUnits,
64
66
  producedIngOptions,
65
67
  productLabelGroups,
66
68
  profileFields,
@@ -128,9 +128,10 @@ type VendorCalendarData = Omit<ResourceDetails, "dateTime" | "eventStatus"> & {
128
128
  dateTime: DateTimeType;
129
129
  };
130
130
  type VendorProductList = {
131
- description: string | null;
131
+ description?: string | null;
132
132
  name: string | null;
133
133
  price: number | null;
134
+ priceUnit: string | null;
134
135
  productGroups: string[] | null;
135
136
  };
136
137
  interface VendorFormData extends BaseResourceTypeFormData {
@@ -128,9 +128,10 @@ type VendorCalendarData = Omit<ResourceDetails, "dateTime" | "eventStatus"> & {
128
128
  dateTime: DateTimeType;
129
129
  };
130
130
  type VendorProductList = {
131
- description: string | null;
131
+ description?: string | null;
132
132
  name: string | null;
133
133
  price: number | null;
134
+ priceUnit: string | null;
134
135
  productGroups: string[] | null;
135
136
  };
136
137
  interface VendorFormData extends BaseResourceTypeFormData {
@@ -40,6 +40,7 @@ __export(graphql_exports, {
40
40
  useCreatePartner: () => useCreatePartner,
41
41
  useCreatePost: () => useCreatePost,
42
42
  useCreatePoster: () => useCreatePoster,
43
+ useCreatePrivateChat: () => useCreatePrivateChat,
43
44
  useCreatePushToken: () => useCreatePushToken,
44
45
  useCreateRelation: () => useCreateRelation,
45
46
  useCreateResourceActivity: () => useCreateResourceActivity,
@@ -621,6 +622,7 @@ var VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT = import_client4.gql`
621
622
  description
622
623
  name
623
624
  price
625
+ priceUnit
624
626
  productGroups
625
627
  }
626
628
  `;
@@ -1113,6 +1115,14 @@ var GET_REPORTED_CHAT_USERS = import_client8.gql`
1113
1115
  `;
1114
1116
 
1115
1117
  // src/graphql/mutations/chat.ts
1118
+ var CREATE_PRIVATE_CHAT_MUTATION = import_client9.gql`
1119
+ mutation createPrivateChat($userId: ID!) {
1120
+ createPrivateChat(userId: $userId) {
1121
+ ...ChatFields
1122
+ }
1123
+ }
1124
+ ${CHAT_FIELDS_FRAGMENT}
1125
+ `;
1116
1126
  var SEND_CHAT_MESSAGE_MUTATION = import_client9.gql`
1117
1127
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
1118
1128
  sendChatMessage(_id: $_id, input: $input) {
@@ -1168,6 +1178,13 @@ var REPORT_CHAT_USER_MUTATION = import_client9.gql`
1168
1178
  `;
1169
1179
 
1170
1180
  // src/graphql/hooks/chat/hooksMutation.ts
1181
+ var useCreatePrivateChat = () => {
1182
+ const [createPrivateChat, { loading, error }] = (0, import_client10.useMutation)(CREATE_PRIVATE_CHAT_MUTATION, {
1183
+ awaitRefetchQueries: true,
1184
+ refetchQueries: [{ query: USER_CHATS }]
1185
+ });
1186
+ return { createPrivateChat, error, loading };
1187
+ };
1171
1188
  var useSendChatMessage = () => {
1172
1189
  const [sendChatMessage, { loading, error }] = (0, import_client10.useMutation)(SEND_CHAT_MESSAGE_MUTATION, {
1173
1190
  awaitRefetchQueries: true,
@@ -3563,6 +3580,7 @@ var useGetAppSettings = () => {
3563
3580
  useCreatePartner,
3564
3581
  useCreatePost,
3565
3582
  useCreatePoster,
3583
+ useCreatePrivateChat,
3566
3584
  useCreatePushToken,
3567
3585
  useCreateRelation,
3568
3586
  useCreateResourceActivity,