@timardex/cluemart-shared 1.1.99 → 1.2.0

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
@@ -77,6 +77,7 @@ __export(index_exports, {
77
77
  eventInfoPaymentInfo: () => eventInfoPaymentInfo,
78
78
  eventStartDateFields: () => eventStartDateFields,
79
79
  fonts: () => fonts,
80
+ foodFlavourOptions: () => foodFlavourOptions,
80
81
  formatDate: () => formatDate,
81
82
  formatTimestamp: () => formatTimestamp,
82
83
  getCurrentAndFutureDates: () => getCurrentAndFutureDates,
@@ -199,9 +200,12 @@ __export(index_exports, {
199
200
  useVendorForm: () => useVendorForm,
200
201
  useVendorInfoForm: () => useVendorInfoForm,
201
202
  validateVerificationTokenFields: () => validateVerificationTokenFields,
203
+ vendorAvailability: () => vendorAvailability,
202
204
  vendorBasicInfoFields: () => vendorBasicInfoFields,
205
+ vendorCompliance: () => vendorCompliance,
203
206
  vendorElectricity: () => vendorElectricity,
204
207
  vendorEndDateFields: () => vendorEndDateFields,
208
+ vendorFoodFlavour: () => vendorFoodFlavour,
205
209
  vendorFullAddress: () => vendorFullAddress,
206
210
  vendorGazebo: () => vendorGazebo,
207
211
  vendorLocationDescription: () => vendorLocationDescription,
@@ -243,10 +247,10 @@ var EnumPaymentMethod = /* @__PURE__ */ ((EnumPaymentMethod2) => {
243
247
  return EnumPaymentMethod2;
244
248
  })(EnumPaymentMethod || {});
245
249
  var EnumFoodFlavor = /* @__PURE__ */ ((EnumFoodFlavor3) => {
246
- EnumFoodFlavor3["SALTY"] = "salty";
247
- EnumFoodFlavor3["SAVOURY"] = "savoury";
248
- EnumFoodFlavor3["SPICY"] = "spicy";
249
- EnumFoodFlavor3["SWEET"] = "sweet";
250
+ EnumFoodFlavor3["SALTY"] = "Salty";
251
+ EnumFoodFlavor3["SAVOURY"] = "Savoury";
252
+ EnumFoodFlavor3["SPICY"] = "Spicy";
253
+ EnumFoodFlavor3["SWEET"] = "Sweet";
250
254
  return EnumFoodFlavor3;
251
255
  })(EnumFoodFlavor || {});
252
256
  var EnumResourceType = /* @__PURE__ */ ((EnumResourceType2) => {
@@ -599,6 +603,35 @@ var vendorProducedIn = {
599
603
  name: "product.producedIn",
600
604
  placeholder: "Produced type"
601
605
  };
606
+ var vendorFoodFlavour = {
607
+ helperText: "You can select more than one food flavour",
608
+ name: "product.foodFlavors",
609
+ placeholder: "Food flavours"
610
+ };
611
+ var vendorAvailability = [
612
+ {
613
+ name: "availability.school",
614
+ placeholder: "School events"
615
+ },
616
+ {
617
+ name: "availability.private",
618
+ placeholder: "Private events"
619
+ },
620
+ {
621
+ name: "availability.corporate",
622
+ placeholder: "Corporate events"
623
+ }
624
+ ];
625
+ var vendorCompliance = [
626
+ {
627
+ name: "compliance.liabilityInsurance",
628
+ placeholder: "Liability Insurance"
629
+ },
630
+ {
631
+ name: "compliance.foodBeverageLicense",
632
+ placeholder: "Food and Beverage License"
633
+ }
634
+ ];
602
635
  var packagingTypes = [
603
636
  "Biodegradable",
604
637
  "Compostable",
@@ -620,6 +653,9 @@ var producedIngTypes = [
620
653
  ];
621
654
  var packagingOptions = mapArrayToOptions(packagingTypes);
622
655
  var producedIngOptions = mapArrayToOptions(producedIngTypes);
656
+ var foodFlavourOptions = mapArrayToOptions(
657
+ Object.values(EnumFoodFlavor)
658
+ );
623
659
 
624
660
  // src/formFields/event/event.ts
625
661
  var eventBasicInfoFields = [
@@ -2424,7 +2460,9 @@ var VENDOR_INFO = import_client4.gql`
2424
2460
  landlinePhone
2425
2461
  mobilePhone
2426
2462
  }
2427
- documents
2463
+ documents {
2464
+ ...ResourceImageFields
2465
+ }
2428
2466
  requirements {
2429
2467
  electricity {
2430
2468
  ...VendorAttributesFields
@@ -2454,6 +2492,7 @@ var VENDOR_INFO = import_client4.gql`
2454
2492
  vendorId
2455
2493
  }
2456
2494
  ${VENDOR_ATTRIBUTES_FRAGMENT}
2495
+ ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2457
2496
  `;
2458
2497
  var GET_VENDORS = import_client4.gql`
2459
2498
  query getVendors {
@@ -6057,6 +6096,7 @@ var fonts = {
6057
6096
  eventInfoPaymentInfo,
6058
6097
  eventStartDateFields,
6059
6098
  fonts,
6099
+ foodFlavourOptions,
6060
6100
  formatDate,
6061
6101
  formatTimestamp,
6062
6102
  getCurrentAndFutureDates,
@@ -6179,9 +6219,12 @@ var fonts = {
6179
6219
  useVendorForm,
6180
6220
  useVendorInfoForm,
6181
6221
  validateVerificationTokenFields,
6222
+ vendorAvailability,
6182
6223
  vendorBasicInfoFields,
6224
+ vendorCompliance,
6183
6225
  vendorElectricity,
6184
6226
  vendorEndDateFields,
6227
+ vendorFoodFlavour,
6185
6228
  vendorFullAddress,
6186
6229
  vendorGazebo,
6187
6230
  vendorLocationDescription,