@timardex/cluemart-shared 2.0.18 → 2.1.1

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 (85) hide show
  1. package/dist/{ad-ZwLtQn9a.d.ts → ad-CUckkB7I.d.ts} +2 -2
  2. package/dist/{ad-xO8ltnGA.d.mts → ad-sqc3JME-.d.mts} +2 -2
  3. package/dist/{affiliate-Bv4PXBXC.d.mts → affiliate-7SDCo04C.d.mts} +2 -2
  4. package/dist/{affiliate-xDFlLdJI.d.ts → affiliate-C03r7ssL.d.ts} +2 -2
  5. package/dist/auth/index.d.mts +3 -3
  6. package/dist/auth/index.d.ts +3 -3
  7. package/dist/auth/index.mjs +5 -16
  8. package/dist/auth/index.mjs.map +1 -1
  9. package/dist/{chunk-ZUXHEXJU.mjs → chunk-6ZH75TAT.mjs} +3 -3
  10. package/dist/{chunk-3DYFIY72.mjs → chunk-7TZDJXYL.mjs} +1 -2
  11. package/dist/chunk-7TZDJXYL.mjs.map +1 -0
  12. package/dist/{chunk-UH6POK3Y.mjs → chunk-7XIDMA4Z.mjs} +2 -2
  13. package/dist/chunk-N46DFZ3R.mjs +20 -0
  14. package/dist/chunk-N46DFZ3R.mjs.map +1 -0
  15. package/dist/{chunk-JESR7H4R.mjs → chunk-PIEXGXTD.mjs} +1 -1
  16. package/dist/chunk-PIEXGXTD.mjs.map +1 -0
  17. package/dist/chunk-RE4NZPYY.mjs +43 -0
  18. package/dist/chunk-RE4NZPYY.mjs.map +1 -0
  19. package/dist/{chunk-5G3MQXQX.mjs → chunk-UHZHNJHO.mjs} +4 -4
  20. package/dist/{chunk-KUC252SN.mjs → chunk-YMLEIEZD.mjs} +5 -27
  21. package/dist/chunk-YMLEIEZD.mjs.map +1 -0
  22. package/dist/{chunk-PNKTKJ47.mjs → chunk-Z4FML4VL.mjs} +2 -2
  23. package/dist/{contactUs-DtKFwekV.d.ts → contactUs-BG3sJ6gc.d.ts} +1 -1
  24. package/dist/{contactUs-0IhAsiDW.d.mts → contactUs-CWFP59_0.d.mts} +1 -1
  25. package/dist/enums/index.cjs +0 -1
  26. package/dist/enums/index.cjs.map +1 -1
  27. package/dist/enums/index.d.mts +1 -2
  28. package/dist/enums/index.d.ts +1 -2
  29. package/dist/enums/index.mjs +1 -1
  30. package/dist/formFields/index.cjs.map +1 -1
  31. package/dist/formFields/index.d.mts +1 -1
  32. package/dist/formFields/index.d.ts +1 -1
  33. package/dist/formFields/index.mjs +6 -5
  34. package/dist/{global-C6w0hQ5Y.d.mts → global-BqeTWrvk.d.ts} +4 -1
  35. package/dist/{global-Coz5Jgi2.d.ts → global-CWo-hWKZ.d.mts} +4 -1
  36. package/dist/graphql/index.cjs +4 -27
  37. package/dist/graphql/index.cjs.map +1 -1
  38. package/dist/graphql/index.d.mts +6 -14
  39. package/dist/graphql/index.d.ts +6 -14
  40. package/dist/graphql/index.mjs +2 -4
  41. package/dist/hooks/index.cjs +0 -8
  42. package/dist/hooks/index.cjs.map +1 -1
  43. package/dist/hooks/index.d.mts +5 -5
  44. package/dist/hooks/index.d.ts +5 -5
  45. package/dist/hooks/index.mjs +8 -7
  46. package/dist/hooks/index.mjs.map +1 -1
  47. package/dist/index.cjs +47 -28
  48. package/dist/index.cjs.map +1 -1
  49. package/dist/index.d.mts +9 -11
  50. package/dist/index.d.ts +9 -11
  51. package/dist/index.mjs +44 -27
  52. package/dist/index.mjs.map +1 -1
  53. package/dist/map/index.d.mts +1 -1
  54. package/dist/map/index.d.ts +1 -1
  55. package/dist/region/index.cjs +290 -0
  56. package/dist/region/index.cjs.map +1 -0
  57. package/dist/region/index.d.mts +36 -0
  58. package/dist/region/index.d.ts +36 -0
  59. package/dist/region/index.mjs +220 -0
  60. package/dist/region/index.mjs.map +1 -0
  61. package/dist/{resourceActivities-DScv6fiM.d.ts → resourceActivities-BbhGFtZA.d.ts} +1 -1
  62. package/dist/{resourceActivities-DIK3bwZg.d.mts → resourceActivities-D81u7Mu0.d.mts} +1 -1
  63. package/dist/sharing/index.cjs.map +1 -1
  64. package/dist/sharing/index.d.mts +1 -1
  65. package/dist/sharing/index.d.ts +1 -1
  66. package/dist/sharing/index.mjs +3 -3
  67. package/dist/types/index.cjs.map +1 -1
  68. package/dist/types/index.d.mts +7 -7
  69. package/dist/types/index.d.ts +7 -7
  70. package/dist/types/index.mjs +2 -2
  71. package/dist/{user-DhxdbFT7.d.ts → user-2peJoOeK.d.ts} +1 -1
  72. package/dist/{user-BwcVKK-h.d.mts → user-DKcyf8gn.d.mts} +1 -1
  73. package/dist/utils/index.cjs +43 -0
  74. package/dist/utils/index.cjs.map +1 -1
  75. package/dist/utils/index.d.mts +8 -4
  76. package/dist/utils/index.d.ts +8 -4
  77. package/dist/utils/index.mjs +12 -4
  78. package/package.json +6 -1
  79. package/dist/chunk-3DYFIY72.mjs.map +0 -1
  80. package/dist/chunk-JESR7H4R.mjs.map +0 -1
  81. package/dist/chunk-KUC252SN.mjs.map +0 -1
  82. /package/dist/{chunk-ZUXHEXJU.mjs.map → chunk-6ZH75TAT.mjs.map} +0 -0
  83. /package/dist/{chunk-UH6POK3Y.mjs.map → chunk-7XIDMA4Z.mjs.map} +0 -0
  84. /package/dist/{chunk-5G3MQXQX.mjs.map → chunk-UHZHNJHO.mjs.map} +0 -0
  85. /package/dist/{chunk-PNKTKJ47.mjs.map → chunk-Z4FML4VL.mjs.map} +0 -0
@@ -1,4 +1,4 @@
1
- import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category, c as CategoryColorType } from '../global-C6w0hQ5Y.mjs';
1
+ import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category, c as CategoryColorType } from '../global-CWo-hWKZ.mjs';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.mjs';
4
4
 
@@ -1,4 +1,4 @@
1
- import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category, c as CategoryColorType } from '../global-Coz5Jgi2.js';
1
+ import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category, c as CategoryColorType } from '../global-BqeTWrvk.js';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.js';
4
4
 
@@ -42,17 +42,18 @@ import {
42
42
  vendorStallSize,
43
43
  vendorStartDateFields,
44
44
  vendorTable
45
- } from "../chunk-ZUXHEXJU.mjs";
45
+ } from "../chunk-6ZH75TAT.mjs";
46
46
  import {
47
47
  availableCategories,
48
48
  categoryColors
49
- } from "../chunk-5G3MQXQX.mjs";
50
- import "../chunk-UH6POK3Y.mjs";
51
- import "../chunk-JESR7H4R.mjs";
49
+ } from "../chunk-UHZHNJHO.mjs";
50
+ import "../chunk-RE4NZPYY.mjs";
51
+ import "../chunk-7XIDMA4Z.mjs";
52
+ import "../chunk-PIEXGXTD.mjs";
52
53
  import "../chunk-RAYUJODN.mjs";
53
54
  import "../chunk-DQ7ZHIXW.mjs";
54
55
  import "../chunk-7DQBUZXY.mjs";
55
- import "../chunk-3DYFIY72.mjs";
56
+ import "../chunk-7TZDJXYL.mjs";
56
57
  export {
57
58
  availableCategories,
58
59
  availableTagTypes,
@@ -1,5 +1,5 @@
1
1
  import { FieldValues, Control, FormState, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch, UseFormGetValues } from 'react-hook-form';
2
- import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumUserLicence, EnumEventDateStatus, EnumSocialMedia, EnumPartnerType, EnumUserRole } from './enums/index.mjs';
2
+ import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumUserLicence, EnumEventDateStatus, EnumSocialMedia, EnumRegions, EnumPartnerType, EnumUserRole } from './enums/index.js';
3
3
 
4
4
  type RelationDate = {
5
5
  dateTime: DateTimeType & {
@@ -847,17 +847,20 @@ interface UserListFilter {
847
847
  interface PartnerListFilter {
848
848
  active?: boolean | null;
849
849
  partnerType?: EnumPartnerType | null;
850
+ region?: EnumRegions | null;
850
851
  search?: string | null;
851
852
  }
852
853
  /** Server-side filter input for the admin vendors list query. */
853
854
  interface VendorListFilter {
854
855
  active?: boolean | null;
856
+ region?: EnumRegions | null;
855
857
  search?: string | null;
856
858
  }
857
859
  /** Server-side filter input for the admin events list query. */
858
860
  interface EventListFilter {
859
861
  active?: boolean | null;
860
862
  claimed?: boolean | null;
863
+ region?: EnumRegions | null;
861
864
  search?: string | null;
862
865
  }
863
866
  /** Server-side filter input for the admin posts list query. */
@@ -1,5 +1,5 @@
1
1
  import { FieldValues, Control, FormState, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch, UseFormGetValues } from 'react-hook-form';
2
- import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumUserLicence, EnumEventDateStatus, EnumSocialMedia, EnumPartnerType, EnumUserRole } from './enums/index.js';
2
+ import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumUserLicence, EnumEventDateStatus, EnumSocialMedia, EnumRegions, EnumPartnerType, EnumUserRole } from './enums/index.mjs';
3
3
 
4
4
  type RelationDate = {
5
5
  dateTime: DateTimeType & {
@@ -847,17 +847,20 @@ interface UserListFilter {
847
847
  interface PartnerListFilter {
848
848
  active?: boolean | null;
849
849
  partnerType?: EnumPartnerType | null;
850
+ region?: EnumRegions | null;
850
851
  search?: string | null;
851
852
  }
852
853
  /** Server-side filter input for the admin vendors list query. */
853
854
  interface VendorListFilter {
854
855
  active?: boolean | null;
856
+ region?: EnumRegions | null;
855
857
  search?: string | null;
856
858
  }
857
859
  /** Server-side filter input for the admin events list query. */
858
860
  interface EventListFilter {
859
861
  active?: boolean | null;
860
862
  claimed?: boolean | null;
863
+ region?: EnumRegions | null;
861
864
  search?: string | null;
862
865
  }
863
866
  /** Server-side filter input for the admin posts list query. */
@@ -133,7 +133,6 @@ __export(graphql_exports, {
133
133
  useGetPrivateChats: () => useGetPrivateChats,
134
134
  useGetRelation: () => useGetRelation,
135
135
  useGetRelationByEventAndVendor: () => useGetRelationByEventAndVendor,
136
- useGetRelationChats: () => useGetRelationChats,
137
136
  useGetReportedChatUsers: () => useGetReportedChatUsers,
138
137
  useGetResourceActivity: () => useGetResourceActivity,
139
138
  useGetResourceConnections: () => useGetResourceConnections,
@@ -1947,14 +1946,6 @@ var PRIVATE_CHATS = import_client16.gql`
1947
1946
  }
1948
1947
  ${CHAT_FIELDS_FRAGMENT}
1949
1948
  `;
1950
- var RELATION_CHATS = import_client16.gql`
1951
- query relationChats {
1952
- relationChats {
1953
- ...ChatFields
1954
- }
1955
- }
1956
- ${CHAT_FIELDS_FRAGMENT}
1957
- `;
1958
1949
  var GET_CHATS_BY_REGION = import_client16.gql`
1959
1950
  query getChatsByRegion($region: String!) {
1960
1951
  chatsByRegion(region: $region) {
@@ -2100,7 +2091,7 @@ var useSendChatMessage = () => {
2100
2091
  var useDeleteChat = () => {
2101
2092
  const [deleteChat, { loading, error }] = (0, import_client18.useMutation)(DELETE_CHAT_MUTATION, {
2102
2093
  awaitRefetchQueries: true,
2103
- refetchQueries: [{ query: PRIVATE_CHATS }, { query: RELATION_CHATS }]
2094
+ refetchQueries: [{ query: PRIVATE_CHATS }]
2104
2095
  });
2105
2096
  return { deleteChat, error, loading };
2106
2097
  };
@@ -2116,9 +2107,6 @@ var useAddParticipantToChat = () => {
2116
2107
  },
2117
2108
  {
2118
2109
  query: PRIVATE_CHATS
2119
- },
2120
- {
2121
- query: RELATION_CHATS
2122
2110
  }
2123
2111
  ];
2124
2112
  }
@@ -2130,10 +2118,7 @@ var useRemoveParticipantFromChat = () => {
2130
2118
  awaitRefetchQueries: true,
2131
2119
  refetchQueries: (mutationResult) => {
2132
2120
  const region = mutationResult?.data?.removeParticipantFromChat?.data?.region;
2133
- const queries = [
2134
- { query: PRIVATE_CHATS },
2135
- { query: RELATION_CHATS }
2136
- ];
2121
+ const queries = [{ query: PRIVATE_CHATS }];
2137
2122
  if (region && region.trim() !== "") {
2138
2123
  queries.push({
2139
2124
  query: GET_CHATS_BY_REGION,
@@ -2211,13 +2196,6 @@ var useGetPrivateChats = () => {
2211
2196
  const privateChats = data?.privateChats || [];
2212
2197
  return { error, loading, privateChats, refetch };
2213
2198
  };
2214
- var useGetRelationChats = () => {
2215
- const { loading, error, data, refetch } = (0, import_client20.useQuery)(RELATION_CHATS, {
2216
- fetchPolicy: "network-only"
2217
- });
2218
- const relationChats = data?.relationChats || [];
2219
- return { error, loading, refetch, relationChats };
2220
- };
2221
2199
  var useGetChatSubscription = () => {
2222
2200
  const { data, loading, error } = (0, import_client20.useSubscription)(
2223
2201
  GET_CHAT_MESSAGE
@@ -2848,7 +2826,7 @@ var useCreateRelation = () => {
2848
2826
  variables: { resourceId, resourceType }
2849
2827
  },
2850
2828
  {
2851
- query: RELATION_CHATS
2829
+ query: PRIVATE_CHATS
2852
2830
  }
2853
2831
  ];
2854
2832
  }
@@ -2929,7 +2907,7 @@ var useDeleteRelation = () => {
2929
2907
  variables: { resourceId, resourceType }
2930
2908
  },
2931
2909
  {
2932
- query: RELATION_CHATS
2910
+ query: PRIVATE_CHATS
2933
2911
  }
2934
2912
  ];
2935
2913
  }
@@ -5726,7 +5704,6 @@ function usePaginatedList({
5726
5704
  useGetPrivateChats,
5727
5705
  useGetRelation,
5728
5706
  useGetRelationByEventAndVendor,
5729
- useGetRelationChats,
5730
5707
  useGetReportedChatUsers,
5731
5708
  useGetResourceActivity,
5732
5709
  useGetResourceConnections,