@timardex/cluemart-shared 1.4.25 → 1.4.27

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.
package/dist/index.cjs CHANGED
@@ -30,6 +30,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
30
30
  // src/index.ts
31
31
  var index_exports = {};
32
32
  __export(index_exports, {
33
+ ANDROID_URL: () => ANDROID_URL,
33
34
  EnumActivity: () => EnumActivity,
34
35
  EnumAdShowOn: () => EnumAdShowOn,
35
36
  EnumAdStatus: () => EnumAdStatus,
@@ -59,6 +60,7 @@ __export(index_exports, {
59
60
  EnumUserRole: () => EnumUserRole,
60
61
  EnumVendorType: () => EnumVendorType,
61
62
  EnumVerificationType: () => EnumVerificationType,
63
+ IOS_URL: () => IOS_URL,
62
64
  ImageTypeEnum: () => ImageTypeEnum,
63
65
  OrganizedMarketCount: () => OrganizedMarketCount,
64
66
  OrganizerMarketFrequency: () => OrganizerMarketFrequency,
@@ -82,12 +84,12 @@ __export(index_exports, {
82
84
  defaultEventFormValues: () => defaultEventFormValues,
83
85
  defaultEventInfoFormValues: () => defaultEventInfoFormValues,
84
86
  defaultPartnerFormValues: () => defaultPartnerFormValues,
85
- defaultRegion: () => defaultRegion,
86
87
  defaultUnregisteredVendorFormValues: () => defaultUnregisteredVendorFormValues,
87
88
  defaultVendorFormValues: () => defaultVendorFormValues,
88
89
  defaultVendorInfoFormValues: () => defaultVendorInfoFormValues,
89
90
  emailField: () => emailField,
90
91
  eventBasicInfoFields: () => eventBasicInfoFields,
92
+ eventCancellationOptions: () => eventCancellationOptions,
91
93
  eventEndDateFields: () => eventEndDateFields,
92
94
  eventInfo: () => eventInfo,
93
95
  eventInfoPaymentInfo: () => eventInfoPaymentInfo,
@@ -119,6 +121,7 @@ __export(index_exports, {
119
121
  socialMediaFields: () => socialMediaFields,
120
122
  sortDatesChronologically: () => sortDatesChronologically,
121
123
  stallTypeOptions: () => stallTypeOptions,
124
+ stallholderCancellationOptions: () => stallholderCancellationOptions,
122
125
  statusOptions: () => statusOptions,
123
126
  tagOptions: () => tagOptions,
124
127
  testersFields: () => testersFields,
@@ -760,13 +763,6 @@ var formatTimestamp = (timestamp) => {
760
763
  const formattedTime = (0, import_dayjs.default)(timestamp).tz("Pacific/Auckland").format(timeFormat);
761
764
  return formatDate(formattedDate, "date");
762
765
  };
763
- var defaultRegion = {
764
- latitude: -36.8624942,
765
- // Default: New Zealand
766
- latitudeDelta: 5,
767
- longitude: 174.7450494,
768
- longitudeDelta: 5
769
- };
770
766
  var isIsoDateString = (value) => {
771
767
  return typeof value === "string" && !isNaN(Date.parse(value));
772
768
  };
@@ -858,6 +854,8 @@ var cluemartSocialMedia = [
858
854
  name: "youtube" /* YOUTUBE */
859
855
  }
860
856
  ];
857
+ var IOS_URL = "https://apps.apple.com/nz/app/cluemart/id6747251008";
858
+ var ANDROID_URL = "https://play.google.com/store/apps/details?id=com.timardex.cluemart";
861
859
 
862
860
  // src/formFields/vendor/vendorInfo.ts
863
861
  var vendorElectricity = {
@@ -1274,6 +1272,34 @@ var stallTypeOptions = stallTypes.map((type) => ({
1274
1272
  price: 0,
1275
1273
  stallCapacity: 0
1276
1274
  }));
1275
+ var stallholderCancellationOptions = [
1276
+ {
1277
+ label: "Full refund if cancelled 30+ days before the event.",
1278
+ value: "full_refund_30_days"
1279
+ },
1280
+ {
1281
+ label: "50% refund if cancelled 14\u201329 days before the event.",
1282
+ value: "half_refund_14_29_days"
1283
+ },
1284
+ {
1285
+ label: "No refund if cancelled less than 14 days before the event.",
1286
+ value: "no_refund_less_than_14_days"
1287
+ }
1288
+ ];
1289
+ var eventCancellationOptions = [
1290
+ {
1291
+ label: "Full refund if the event is cancelled by the organiser.",
1292
+ value: "event_full_refund"
1293
+ },
1294
+ {
1295
+ label: "Credit towards a future event if cancelled by the organiser.",
1296
+ value: "event_credit_only"
1297
+ },
1298
+ {
1299
+ label: "Refund only in cases of force majeure (e.g., natural disasters, government restrictions).",
1300
+ value: "event_force_majeure_only"
1301
+ }
1302
+ ];
1277
1303
 
1278
1304
  // src/formFields/global.ts
1279
1305
  var emailField = {
@@ -3578,8 +3604,8 @@ var GET_CHATS_BY_REGION = import_client9.gql`
3578
3604
  ${CHAT_FIELDS_FRAGMENT}
3579
3605
  `;
3580
3606
  var CHAT_REPORT_FIELDS_FRAGMENT = import_client9.gql`
3581
- fragment ChatReportFields on ChatReportType {
3582
- id
3607
+ fragment ChatReportFields on ReportChatUserType {
3608
+ _id
3583
3609
  chatId
3584
3610
  createdAt
3585
3611
  reason {
@@ -6449,6 +6475,11 @@ var eventInfoSchema = yup2.object().shape({
6449
6475
  }
6450
6476
  ),
6451
6477
  paymentInfo: yup2.array().of(paymentInfoSchema).min(1, "At least one payment method is required").required("Payment info is required")
6478
+ /* refundPolicy: yup
6479
+ .array()
6480
+ .of(yup.string().trim().required("Refund policy item cannot be empty"))
6481
+ .min(1, "At least one refund policy item is required")
6482
+ .required("Refund policy is required"), */
6452
6483
  });
6453
6484
 
6454
6485
  // src/yupSchema/vendor.ts
@@ -6916,6 +6947,7 @@ var defaultEventInfoFormValues = {
6916
6947
  // e.g., 2 hours before event opens
6917
6948
  paymentDueHours: 12,
6918
6949
  paymentInfo: [],
6950
+ //refundPolicy: [],
6919
6951
  requirements: []
6920
6952
  };
6921
6953
  var defaultVendorFormValues = {
@@ -7264,6 +7296,7 @@ function useEventInfoForm(data) {
7264
7296
  packInTime: data.packInTime,
7265
7297
  paymentDueHours: data.paymentDueHours,
7266
7298
  paymentInfo: data.paymentInfo,
7299
+ //refundPolicy: data.refundPolicy,
7267
7300
  requirements: data.requirements
7268
7301
  });
7269
7302
  } else {
@@ -7278,6 +7311,7 @@ function useEventInfoForm(data) {
7278
7311
  packInTime,
7279
7312
  paymentDueHours,
7280
7313
  paymentInfo,
7314
+ //refundPolicy,
7281
7315
  requirements
7282
7316
  } = getValues();
7283
7317
  return {
@@ -7290,6 +7324,7 @@ function useEventInfoForm(data) {
7290
7324
  packInTime,
7291
7325
  paymentDueHours,
7292
7326
  paymentInfo,
7327
+ //refundPolicy,
7293
7328
  requirements
7294
7329
  },
7295
7330
  formState,
@@ -8084,6 +8119,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
8084
8119
  })(EnumActivity || {});
8085
8120
  // Annotate the CommonJS export names for ESM import in node:
8086
8121
  0 && (module.exports = {
8122
+ ANDROID_URL,
8087
8123
  EnumActivity,
8088
8124
  EnumAdShowOn,
8089
8125
  EnumAdStatus,
@@ -8113,6 +8149,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
8113
8149
  EnumUserRole,
8114
8150
  EnumVendorType,
8115
8151
  EnumVerificationType,
8152
+ IOS_URL,
8116
8153
  ImageTypeEnum,
8117
8154
  OrganizedMarketCount,
8118
8155
  OrganizerMarketFrequency,
@@ -8136,12 +8173,12 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
8136
8173
  defaultEventFormValues,
8137
8174
  defaultEventInfoFormValues,
8138
8175
  defaultPartnerFormValues,
8139
- defaultRegion,
8140
8176
  defaultUnregisteredVendorFormValues,
8141
8177
  defaultVendorFormValues,
8142
8178
  defaultVendorInfoFormValues,
8143
8179
  emailField,
8144
8180
  eventBasicInfoFields,
8181
+ eventCancellationOptions,
8145
8182
  eventEndDateFields,
8146
8183
  eventInfo,
8147
8184
  eventInfoPaymentInfo,
@@ -8173,6 +8210,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
8173
8210
  socialMediaFields,
8174
8211
  sortDatesChronologically,
8175
8212
  stallTypeOptions,
8213
+ stallholderCancellationOptions,
8176
8214
  statusOptions,
8177
8215
  tagOptions,
8178
8216
  testersFields,