@timardex/cluemart-shared 1.3.82 → 1.3.84

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.d.mts CHANGED
@@ -248,8 +248,10 @@ interface EventInfoFormData {
248
248
  requirements?: Requirement[];
249
249
  }
250
250
  interface EventFormData extends BaseResourceTypeFormData {
251
+ claimed?: boolean;
251
252
  dateTime: DateTimeType[];
252
253
  eventType: EnumEventType;
254
+ googlePlaceId?: string | null;
253
255
  location: LocationType;
254
256
  nzbn: string;
255
257
  provider?: string | null;
@@ -509,6 +511,7 @@ type Region = {
509
511
  };
510
512
  type GeocodeLocation = Pick<LocationType, "latitude" | "longitude">;
511
513
  type MapMultiLocation = {
514
+ claimed: boolean;
512
515
  dateTime: DateTimeType | null;
513
516
  googlePlaceId?: string | null;
514
517
  location: LocationType | null;
@@ -1052,11 +1055,14 @@ type GoogleImportedMarket = {
1052
1055
  allowsDogs?: boolean;
1053
1056
  businessStatus?: string;
1054
1057
  claimed: boolean;
1058
+ claimedAt?: Date;
1059
+ claimedByUserId?: string;
1055
1060
  cover: ResourceImageType | null;
1056
1061
  createdAt: Date;
1057
1062
  dateTime: DateTimeType[];
1058
1063
  deletedAt: Date | null;
1059
1064
  description: string;
1065
+ eventId?: string;
1060
1066
  eventType: EnumEventType;
1061
1067
  goodForChildren?: boolean;
1062
1068
  goodForGroups?: boolean;
package/dist/index.d.ts CHANGED
@@ -248,8 +248,10 @@ interface EventInfoFormData {
248
248
  requirements?: Requirement[];
249
249
  }
250
250
  interface EventFormData extends BaseResourceTypeFormData {
251
+ claimed?: boolean;
251
252
  dateTime: DateTimeType[];
252
253
  eventType: EnumEventType;
254
+ googlePlaceId?: string | null;
253
255
  location: LocationType;
254
256
  nzbn: string;
255
257
  provider?: string | null;
@@ -509,6 +511,7 @@ type Region = {
509
511
  };
510
512
  type GeocodeLocation = Pick<LocationType, "latitude" | "longitude">;
511
513
  type MapMultiLocation = {
514
+ claimed: boolean;
512
515
  dateTime: DateTimeType | null;
513
516
  googlePlaceId?: string | null;
514
517
  location: LocationType | null;
@@ -1052,11 +1055,14 @@ type GoogleImportedMarket = {
1052
1055
  allowsDogs?: boolean;
1053
1056
  businessStatus?: string;
1054
1057
  claimed: boolean;
1058
+ claimedAt?: Date;
1059
+ claimedByUserId?: string;
1055
1060
  cover: ResourceImageType | null;
1056
1061
  createdAt: Date;
1057
1062
  dateTime: DateTimeType[];
1058
1063
  deletedAt: Date | null;
1059
1064
  description: string;
1065
+ eventId?: string;
1060
1066
  eventType: EnumEventType;
1061
1067
  goodForChildren?: boolean;
1062
1068
  goodForGroups?: boolean;
package/dist/index.mjs CHANGED
@@ -314,21 +314,31 @@ var productLabelGroups = [
314
314
  { abbreviation: "KETO", fullName: "Keto-Friendly" },
315
315
  { abbreviation: "P", fullName: "Paleo" },
316
316
  { abbreviation: "V", fullName: "Vegan" },
317
- { abbreviation: "VG", fullName: "Vegetarian" }
317
+ { abbreviation: "VG", fullName: "Vegetarian" },
318
+ { abbreviation: "KID", fullName: "Kid-Friendly" },
319
+ // Gyerekbarát
320
+ { abbreviation: "PET", fullName: "Pet-Friendly Product" }
321
+ // Állatok
318
322
  ]
319
323
  },
320
324
  {
321
325
  category: "Natural",
322
326
  items: [
323
327
  { abbreviation: "ECO", fullName: "Eco-Friendly" },
324
- { abbreviation: "ORGANIC", fullName: "Organic Product" }
328
+ { abbreviation: "ORGANIC", fullName: "Organic Product" },
329
+ { abbreviation: "NAT", fullName: "Natural Product" },
330
+ // Természetesség
331
+ { abbreviation: "NPF", fullName: "Non-Pesticide / Chemical-Free" },
332
+ { abbreviation: "PLN", fullName: "Plant-Based" }
325
333
  ]
326
334
  },
327
335
  {
328
336
  category: "Market Character",
329
337
  items: [
330
338
  { abbreviation: "HM", fullName: "Handmade" },
331
- { abbreviation: "LOC", fullName: "Local Product" }
339
+ { abbreviation: "LOC", fullName: "Local Product" },
340
+ { abbreviation: "ART", fullName: "Artisan" },
341
+ { abbreviation: "LTD", fullName: "Limited Edition" }
332
342
  ]
333
343
  },
334
344
  {
@@ -336,33 +346,51 @@ var productLabelGroups = [
336
346
  items: [
337
347
  { abbreviation: "AROM", fullName: "Aromatherapy" },
338
348
  { abbreviation: "CRF", fullName: "Cruelty-Free" },
339
- { abbreviation: "HYPO", fullName: "Hypoallergenic" }
349
+ { abbreviation: "HYPO", fullName: "Hypoallergenic" },
350
+ { abbreviation: "BODY", fullName: "Body Care" }
351
+ // Testápolás
340
352
  ]
341
353
  },
342
354
  {
343
- category: "Animal Related",
355
+ category: "Wellbeing",
344
356
  items: [
345
- { abbreviation: "GF-PET", fullName: "Grain-Free (Pet)" },
346
- { abbreviation: "PF", fullName: "Pet-Friendly" }
357
+ { abbreviation: "CARE", fullName: "Health Support Product" },
358
+ // Egészség / testi jóllét
359
+ { abbreviation: "PHYS", fullName: "Physical Wellbeing" },
360
+ // Fizikai jóllét
361
+ { abbreviation: "MENTAL", fullName: "Mental Wellbeing" },
362
+ // Mentális jóllét
363
+ { abbreviation: "RELAX", fullName: "Relaxation Product" },
364
+ // Relaxáció / lazítás
365
+ { abbreviation: "SPIRIT", fullName: "Spiritual Wellbeing" }
366
+ // Lelki jóllét
347
367
  ]
348
368
  },
349
369
  {
350
- category: "Plant / Natural",
370
+ category: "Tech & Digital",
351
371
  items: [
352
- { abbreviation: "NPF", fullName: "Non-Pesticide / Chemical-Free" },
353
- { abbreviation: "PLN", fullName: "Plant-Based" }
372
+ { abbreviation: "TECH", fullName: "Technology Product" },
373
+ // Technológia
374
+ { abbreviation: "DIGI", fullName: "Digital Technology" }
375
+ // Digitális technológia
354
376
  ]
355
377
  },
356
378
  {
357
- category: "Gift / Design",
379
+ category: "Practical & Home",
358
380
  items: [
359
- { abbreviation: "ART", fullName: "Artisan" },
360
- { abbreviation: "LTD", fullName: "Limited Edition" }
381
+ { abbreviation: "PRAC", fullName: "Practical Solution" },
382
+ // Praktikum
383
+ { abbreviation: "HOME", fullName: "Home & Living" }
384
+ // Otthon / lakókörnyezet
361
385
  ]
362
386
  },
363
387
  {
364
388
  category: "Sustainability",
365
- items: [{ abbreviation: "ZWP", fullName: "Zero-Waste Product" }]
389
+ items: [
390
+ { abbreviation: "ZWP", fullName: "Zero-Waste Product" },
391
+ { abbreviation: "SUST", fullName: "Sustainable Product" }
392
+ // Fenntarthatóság
393
+ ]
366
394
  }
367
395
  ];
368
396
 
@@ -609,14 +637,15 @@ var vendorCompliance = [
609
637
  var packagingTypes = [
610
638
  "Biodegradable",
611
639
  "Compostable",
612
- "Recyclable",
613
- "Reusable",
614
- "Single-use",
640
+ "Fabric",
615
641
  "Glass",
642
+ "Other",
616
643
  "Paper",
617
644
  "Plastic",
618
- "Wood",
619
- "Other"
645
+ "Recyclable",
646
+ "Reusable",
647
+ "Single-use",
648
+ "Wood"
620
649
  ];
621
650
  var producedIngTypes = [
622
651
  "Commercial Kitchen",
@@ -6315,8 +6344,10 @@ var defaultPartnerFormValues = {
6315
6344
  };
6316
6345
  var defaultEventFormValues = {
6317
6346
  ...globalDefaultValues,
6347
+ claimed: true,
6318
6348
  dateTime: [],
6319
6349
  eventType: "Market" /* MARKET */,
6350
+ googlePlaceId: null,
6320
6351
  location: defaultLocation,
6321
6352
  nzbn: "",
6322
6353
  provider: null,
@@ -6572,8 +6603,10 @@ function useEventForm(data) {
6572
6603
  if (data) {
6573
6604
  reset({
6574
6605
  ...mapBaseResourceTypeToFormData(data),
6606
+ claimed: data.claimed ?? false,
6575
6607
  dateTime: data.dateTime,
6576
6608
  eventType: data.eventType,
6609
+ googlePlaceId: data.googlePlaceId,
6577
6610
  location: data.location,
6578
6611
  nzbn: data.nzbn,
6579
6612
  provider: data.provider,
@@ -6588,12 +6621,14 @@ function useEventForm(data) {
6588
6621
  _id,
6589
6622
  active,
6590
6623
  associates,
6624
+ claimed,
6591
6625
  contactDetails,
6592
6626
  cover,
6593
6627
  coverUpload,
6594
6628
  dateTime,
6595
6629
  description,
6596
6630
  eventType,
6631
+ googlePlaceId,
6597
6632
  images,
6598
6633
  imagesUpload,
6599
6634
  location,
@@ -6616,12 +6651,14 @@ function useEventForm(data) {
6616
6651
  _id,
6617
6652
  active,
6618
6653
  associates,
6654
+ claimed,
6619
6655
  contactDetails,
6620
6656
  cover,
6621
6657
  coverUpload,
6622
6658
  dateTime,
6623
6659
  description,
6624
6660
  eventType,
6661
+ googlePlaceId,
6625
6662
  images,
6626
6663
  imagesUpload,
6627
6664
  location,