@timardex/cluemart-shared 1.2.49 → 1.2.51

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 (53) hide show
  1. package/dist/{ad-DPP5n_ZS.d.mts → ad-C98yzFdy.d.mts} +19 -6
  2. package/dist/{ad-BBJMdfCl.d.ts → ad-CPL59gj7.d.ts} +19 -6
  3. package/dist/{auth-CQPRj4DB.d.mts → auth-D636FFnJ.d.mts} +1 -1
  4. package/dist/{auth-OLWCR6Zr.d.ts → auth-D6Rg-cEc.d.ts} +1 -1
  5. package/dist/{chunk-HFYQRL77.mjs → chunk-IRQ365TO.mjs} +2 -2
  6. package/dist/{chunk-XXZPSRMS.mjs → chunk-N625BZKR.mjs} +3 -2
  7. package/dist/chunk-N625BZKR.mjs.map +1 -0
  8. package/dist/{chunk-WNRV4DSZ.mjs → chunk-V3BTJQHJ.mjs} +11 -4
  9. package/dist/chunk-V3BTJQHJ.mjs.map +1 -0
  10. package/dist/enums/index.cjs +11 -3
  11. package/dist/enums/index.cjs.map +1 -1
  12. package/dist/enums/index.d.mts +11 -6
  13. package/dist/enums/index.d.ts +11 -6
  14. package/dist/enums/index.mjs +3 -1
  15. package/dist/formFields/index.cjs +94 -82
  16. package/dist/formFields/index.cjs.map +1 -1
  17. package/dist/formFields/index.d.mts +4 -3
  18. package/dist/formFields/index.d.ts +4 -3
  19. package/dist/formFields/index.mjs +24 -10
  20. package/dist/formFields/index.mjs.map +1 -1
  21. package/dist/{global-qg1lwtYo.d.mts → global-Czf4z7aN.d.mts} +3 -3
  22. package/dist/{global-Be5v6emI.d.ts → global-dQyePynY.d.ts} +3 -3
  23. package/dist/graphql/index.cjs +393 -189
  24. package/dist/graphql/index.cjs.map +1 -1
  25. package/dist/graphql/index.d.mts +44 -3
  26. package/dist/graphql/index.d.ts +44 -3
  27. package/dist/graphql/index.mjs +292 -95
  28. package/dist/graphql/index.mjs.map +1 -1
  29. package/dist/hooks/index.cjs +135 -28
  30. package/dist/hooks/index.cjs.map +1 -1
  31. package/dist/hooks/index.d.mts +13 -4
  32. package/dist/hooks/index.d.ts +13 -4
  33. package/dist/hooks/index.mjs +128 -29
  34. package/dist/hooks/index.mjs.map +1 -1
  35. package/dist/index.cjs +688 -361
  36. package/dist/index.cjs.map +1 -1
  37. package/dist/index.d.mts +81 -12
  38. package/dist/index.d.ts +81 -12
  39. package/dist/index.mjs +562 -245
  40. package/dist/index.mjs.map +1 -1
  41. package/dist/types/index.cjs +2 -1
  42. package/dist/types/index.cjs.map +1 -1
  43. package/dist/types/index.d.mts +3 -3
  44. package/dist/types/index.d.ts +3 -3
  45. package/dist/types/index.mjs +1 -1
  46. package/dist/utils/index.cjs.map +1 -1
  47. package/dist/utils/index.d.mts +1 -1
  48. package/dist/utils/index.d.ts +1 -1
  49. package/dist/utils/index.mjs +2 -2
  50. package/package.json +1 -1
  51. package/dist/chunk-WNRV4DSZ.mjs.map +0 -1
  52. package/dist/chunk-XXZPSRMS.mjs.map +0 -1
  53. /package/dist/{chunk-HFYQRL77.mjs.map → chunk-IRQ365TO.mjs.map} +0 -0
@@ -31,7 +31,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  var formFields_exports = {};
32
32
  __export(formFields_exports, {
33
33
  availableCategories: () => availableCategories,
34
- availableCityOptions: () => availableCityOptions,
35
34
  availableTagTypes: () => availableTagTypes,
36
35
  categoryColors: () => categoryColors,
37
36
  companyContactFields: () => companyContactFields,
@@ -45,6 +44,7 @@ __export(formFields_exports, {
45
44
  foodFlavourOptions: () => foodFlavourOptions,
46
45
  loginFields: () => loginFields,
47
46
  packagingOptions: () => packagingOptions,
47
+ partnerBasicInfoFields: () => partnerBasicInfoFields,
48
48
  producedIngOptions: () => producedIngOptions,
49
49
  productLabelGroups: () => productLabelGroups,
50
50
  profileFields: () => profileFields,
@@ -77,79 +77,6 @@ __export(formFields_exports, {
77
77
  });
78
78
  module.exports = __toCommonJS(formFields_exports);
79
79
 
80
- // src/utils/index.ts
81
- var import_dayjs = __toESM(require("dayjs"));
82
- var import_customParseFormat = __toESM(require("dayjs/plugin/customParseFormat.js"));
83
- var import_isSameOrAfter = __toESM(require("dayjs/plugin/isSameOrAfter.js"));
84
- var import_timezone = __toESM(require("dayjs/plugin/timezone.js"));
85
- var import_utc = __toESM(require("dayjs/plugin/utc.js"));
86
-
87
- // src/enums/index.ts
88
- var EnumInviteStatus = /* @__PURE__ */ ((EnumInviteStatus2) => {
89
- EnumInviteStatus2["ACCEPTED"] = "Accepted";
90
- EnumInviteStatus2["COMPLETED"] = "Completed";
91
- EnumInviteStatus2["EXPIRED"] = "Expired";
92
- EnumInviteStatus2["NO_STATUS"] = "No_Status";
93
- EnumInviteStatus2["PAID"] = "Paid";
94
- EnumInviteStatus2["PENDING"] = "Pending";
95
- EnumInviteStatus2["REJECTED"] = "Rejected";
96
- EnumInviteStatus2["UNAVAILABLE"] = "Unavailable";
97
- EnumInviteStatus2["WAITING"] = "Waiting";
98
- return EnumInviteStatus2;
99
- })(EnumInviteStatus || {});
100
- var EnumPaymentMethod = /* @__PURE__ */ ((EnumPaymentMethod2) => {
101
- EnumPaymentMethod2["CASH"] = "cash";
102
- EnumPaymentMethod2["EFTPOS"] = "eftpos";
103
- EnumPaymentMethod2["BANK_TRANSFER"] = "bank_transfer";
104
- EnumPaymentMethod2["PAYPAL"] = "paypal";
105
- EnumPaymentMethod2["STRIPE"] = "stripe";
106
- return EnumPaymentMethod2;
107
- })(EnumPaymentMethod || {});
108
- var EnumFoodFlavor = /* @__PURE__ */ ((EnumFoodFlavor2) => {
109
- EnumFoodFlavor2["SALTY"] = "Salty";
110
- EnumFoodFlavor2["SAVOURY"] = "Savoury";
111
- EnumFoodFlavor2["SPICY"] = "Spicy";
112
- EnumFoodFlavor2["SWEET"] = "Sweet";
113
- return EnumFoodFlavor2;
114
- })(EnumFoodFlavor || {});
115
- var EnumRegions = /* @__PURE__ */ ((EnumRegions2) => {
116
- EnumRegions2["Auckland"] = "Auckland";
117
- EnumRegions2["BayOfPlentyGisborne"] = "Bay of Plenty & Gisborne";
118
- EnumRegions2["CanterburyWestCoast"] = "Canterbury & West Coast";
119
- EnumRegions2["HawkesBay"] = "Hawke's Bay";
120
- EnumRegions2["ManawatuWanganui"] = "Manawatu-Wanganui";
121
- EnumRegions2["MarlboroughNelsonTasman"] = "Marlborough & Nelson & Tasman";
122
- EnumRegions2["Northland"] = "Northland";
123
- EnumRegions2["Otago"] = "Otago";
124
- EnumRegions2["Southland"] = "Southland";
125
- EnumRegions2["Taranaki"] = "Taranaki";
126
- EnumRegions2["Waikato"] = "Waikato";
127
- EnumRegions2["Wellington"] = "Wellington";
128
- return EnumRegions2;
129
- })(EnumRegions || {});
130
-
131
- // src/utils/index.ts
132
- import_dayjs.default.extend(import_customParseFormat.default);
133
- import_dayjs.default.extend(import_utc.default);
134
- import_dayjs.default.extend(import_timezone.default);
135
- import_dayjs.default.extend(import_isSameOrAfter.default);
136
- var mapArrayToOptions = (items) => items.map((item) => ({
137
- label: item,
138
- value: item
139
- }));
140
- var statusOptions = [
141
- ...Object.values(EnumInviteStatus).map((status) => ({
142
- label: status,
143
- value: status
144
- })).sort((a, b) => a.label.localeCompare(b.label))
145
- // Sort the options alphabetically
146
- ];
147
- var availableRegionTypes = Object.values(EnumRegions);
148
- var availableRegionOptions = mapArrayToOptions(availableRegionTypes);
149
- var paymentMethodOptions = mapArrayToOptions(
150
- Object.values(EnumPaymentMethod)
151
- );
152
-
153
80
  // src/formFields/vendor/vendor.ts
154
81
  var vendorBasicInfoFields = [
155
82
  {
@@ -241,13 +168,6 @@ var vendorMenuFields = [
241
168
  placeholder: "Price"
242
169
  }
243
170
  ];
244
- var availableCityTypes = [
245
- "Auckland",
246
- "Christchurch",
247
- "Hamilton",
248
- "Wellington"
249
- ];
250
- var availableCityOptions = mapArrayToOptions(availableCityTypes);
251
171
  var productLabelGroups = [
252
172
  {
253
173
  category: "Food Sensitivity",
@@ -316,6 +236,77 @@ var productLabelGroups = [
316
236
  }
317
237
  ];
318
238
 
239
+ // src/enums/index.ts
240
+ var EnumInviteStatus = /* @__PURE__ */ ((EnumInviteStatus2) => {
241
+ EnumInviteStatus2["ACCEPTED"] = "Accepted";
242
+ EnumInviteStatus2["COMPLETED"] = "Completed";
243
+ EnumInviteStatus2["EXPIRED"] = "Expired";
244
+ EnumInviteStatus2["NO_STATUS"] = "No_Status";
245
+ EnumInviteStatus2["PAID"] = "Paid";
246
+ EnumInviteStatus2["PENDING"] = "Pending";
247
+ EnumInviteStatus2["REJECTED"] = "Rejected";
248
+ EnumInviteStatus2["UNAVAILABLE"] = "Unavailable";
249
+ EnumInviteStatus2["WAITING"] = "Waiting";
250
+ return EnumInviteStatus2;
251
+ })(EnumInviteStatus || {});
252
+ var EnumPaymentMethod = /* @__PURE__ */ ((EnumPaymentMethod2) => {
253
+ EnumPaymentMethod2["CASH"] = "cash";
254
+ EnumPaymentMethod2["EFTPOS"] = "eftpos";
255
+ EnumPaymentMethod2["BANK_TRANSFER"] = "bank_transfer";
256
+ EnumPaymentMethod2["PAYPAL"] = "paypal";
257
+ EnumPaymentMethod2["STRIPE"] = "stripe";
258
+ return EnumPaymentMethod2;
259
+ })(EnumPaymentMethod || {});
260
+ var EnumFoodFlavor = /* @__PURE__ */ ((EnumFoodFlavor2) => {
261
+ EnumFoodFlavor2["SALTY"] = "Salty";
262
+ EnumFoodFlavor2["SAVOURY"] = "Savoury";
263
+ EnumFoodFlavor2["SPICY"] = "Spicy";
264
+ EnumFoodFlavor2["SWEET"] = "Sweet";
265
+ return EnumFoodFlavor2;
266
+ })(EnumFoodFlavor || {});
267
+ var EnumRegions = /* @__PURE__ */ ((EnumRegions2) => {
268
+ EnumRegions2["Auckland"] = "Auckland";
269
+ EnumRegions2["BayOfPlentyGisborne"] = "Bay of Plenty & Gisborne";
270
+ EnumRegions2["CanterburyWestCoast"] = "Canterbury & West Coast";
271
+ EnumRegions2["HawkesBay"] = "Hawke's Bay";
272
+ EnumRegions2["ManawatuWanganui"] = "Manawatu-Wanganui";
273
+ EnumRegions2["MarlboroughNelsonTasman"] = "Marlborough & Nelson & Tasman";
274
+ EnumRegions2["Northland"] = "Northland";
275
+ EnumRegions2["Otago"] = "Otago";
276
+ EnumRegions2["Southland"] = "Southland";
277
+ EnumRegions2["Taranaki"] = "Taranaki";
278
+ EnumRegions2["Waikato"] = "Waikato";
279
+ EnumRegions2["Wellington"] = "Wellington";
280
+ return EnumRegions2;
281
+ })(EnumRegions || {});
282
+
283
+ // src/utils/index.ts
284
+ var import_dayjs = __toESM(require("dayjs"));
285
+ var import_customParseFormat = __toESM(require("dayjs/plugin/customParseFormat.js"));
286
+ var import_isSameOrAfter = __toESM(require("dayjs/plugin/isSameOrAfter.js"));
287
+ var import_timezone = __toESM(require("dayjs/plugin/timezone.js"));
288
+ var import_utc = __toESM(require("dayjs/plugin/utc.js"));
289
+ import_dayjs.default.extend(import_customParseFormat.default);
290
+ import_dayjs.default.extend(import_utc.default);
291
+ import_dayjs.default.extend(import_timezone.default);
292
+ import_dayjs.default.extend(import_isSameOrAfter.default);
293
+ var mapArrayToOptions = (items) => items.map((item) => ({
294
+ label: item,
295
+ value: item
296
+ }));
297
+ var statusOptions = [
298
+ ...Object.values(EnumInviteStatus).map((status) => ({
299
+ label: status,
300
+ value: status
301
+ })).sort((a, b) => a.label.localeCompare(b.label))
302
+ // Sort the options alphabetically
303
+ ];
304
+ var availableRegionTypes = Object.values(EnumRegions);
305
+ var availableRegionOptions = mapArrayToOptions(availableRegionTypes);
306
+ var paymentMethodOptions = mapArrayToOptions(
307
+ Object.values(EnumPaymentMethod)
308
+ );
309
+
319
310
  // src/formFields/vendor/vendorInfo.ts
320
311
  var vendorElectricity = {
321
312
  details: {
@@ -1839,10 +1830,30 @@ var contactUsFields = [
1839
1830
  placeholder: "Message"
1840
1831
  }
1841
1832
  ];
1833
+
1834
+ // src/formFields/partner.ts
1835
+ var partnerBasicInfoFields = [
1836
+ {
1837
+ helperText: "Business Name *",
1838
+ name: "name",
1839
+ placeholder: "Business Name"
1840
+ },
1841
+ {
1842
+ helperText: "NZBN number (required \u2013 ClueMart only accepts events with valid NZBN number) *",
1843
+ keyboardType: "number-pad",
1844
+ name: "nzbn",
1845
+ placeholder: "NZBN number"
1846
+ },
1847
+ {
1848
+ helperText: "Description *",
1849
+ isTextArea: true,
1850
+ name: "description",
1851
+ placeholder: "Description"
1852
+ }
1853
+ ];
1842
1854
  // Annotate the CommonJS export names for ESM import in node:
1843
1855
  0 && (module.exports = {
1844
1856
  availableCategories,
1845
- availableCityOptions,
1846
1857
  availableTagTypes,
1847
1858
  categoryColors,
1848
1859
  companyContactFields,
@@ -1856,6 +1867,7 @@ var contactUsFields = [
1856
1867
  foodFlavourOptions,
1857
1868
  loginFields,
1858
1869
  packagingOptions,
1870
+ partnerBasicInfoFields,
1859
1871
  producedIngOptions,
1860
1872
  productLabelGroups,
1861
1873
  profileFields,