@timardex/cluemart-shared 1.3.81 → 1.3.83
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/{auth-BwA7zQEM.d.mts → auth-C1qKOUp8.d.mts} +1 -1
- package/dist/{auth-D0tGBZgU.d.ts → auth-DOEpzxHT.d.ts} +1 -1
- package/dist/formFields/index.cjs +48 -19
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/formFields/index.mjs +48 -19
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/{global-DMAIQx9a.d.ts → global-CnAaM_PF.d.ts} +4 -1
- package/dist/{global-CJAeZ3ul.d.mts → global-Dv9q0tt9.d.mts} +4 -1
- package/dist/graphql/index.d.mts +2 -2
- package/dist/graphql/index.d.ts +2 -2
- package/dist/hooks/index.cjs +8 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +3 -3
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.mjs +8 -0
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +56 -19
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.mjs +56 -19
- package/dist/index.mjs.map +1 -1
- package/dist/{post-BG1GAi2V.d.mts → post-DmxMsfXG.d.mts} +1 -1
- package/dist/{post-B_L_VZ_v.d.ts → post-JtNQUMC3.d.ts} +1 -1
- package/dist/types/index.d.mts +4 -4
- package/dist/types/index.d.ts +4 -4
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
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,10 +511,11 @@ 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;
|
|
515
|
-
resourceCover?:
|
|
518
|
+
resourceCover?: ResourceImageType | null;
|
|
516
519
|
resourceId?: string;
|
|
517
520
|
resourceLogo?: ResourceImageType | null;
|
|
518
521
|
resourceName?: string;
|
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,10 +511,11 @@ 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;
|
|
515
|
-
resourceCover?:
|
|
518
|
+
resourceCover?: ResourceImageType | null;
|
|
516
519
|
resourceId?: string;
|
|
517
520
|
resourceLogo?: ResourceImageType | null;
|
|
518
521
|
resourceName?: string;
|
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: "
|
|
355
|
+
category: "Wellbeing",
|
|
344
356
|
items: [
|
|
345
|
-
{ abbreviation: "
|
|
346
|
-
|
|
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: "
|
|
370
|
+
category: "Tech & Digital",
|
|
351
371
|
items: [
|
|
352
|
-
{ abbreviation: "
|
|
353
|
-
|
|
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: "
|
|
379
|
+
category: "Practical & Home",
|
|
358
380
|
items: [
|
|
359
|
-
{ abbreviation: "
|
|
360
|
-
|
|
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: [
|
|
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
|
-
"
|
|
613
|
-
"Reusable",
|
|
614
|
-
"Single-use",
|
|
640
|
+
"Fabric",
|
|
615
641
|
"Glass",
|
|
642
|
+
"Other",
|
|
616
643
|
"Paper",
|
|
617
644
|
"Plastic",
|
|
618
|
-
"
|
|
619
|
-
"
|
|
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: false,
|
|
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,
|