@timardex/cluemart-shared 1.2.60 → 1.2.61
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/{ad-DSADn76s.d.mts → ad-5KC7r-i4.d.mts} +1 -1
- package/dist/{ad-CZPQz-Bx.d.ts → ad-DDPQcDOS.d.ts} +1 -1
- package/dist/{auth-CvLyedZM.d.ts → auth-BwtjPUgO.d.ts} +1 -1
- package/dist/{auth-Cea2ytrt.d.mts → auth-DaiySFU6.d.mts} +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/{global-Fgweq_ct.d.ts → global-BY8seqWN.d.ts} +4 -0
- package/dist/{global-RAEmLq2G.d.mts → global-CKf55A-q.d.mts} +4 -0
- package/dist/graphql/index.cjs +1 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +2 -2
- package/dist/graphql/index.d.ts +2 -2
- package/dist/graphql/index.mjs +1 -0
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +5 -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 +5 -0
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.d.ts +3 -3
- 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
|
@@ -274,6 +274,7 @@ type VendorLocation = {
|
|
|
274
274
|
resourceId?: MapMultiLocation["resourceId"];
|
|
275
275
|
resourceName?: MapMultiLocation["resourceName"];
|
|
276
276
|
resourceType?: MapMultiLocation["resourceType"];
|
|
277
|
+
resourceLogo?: MapMultiLocation["resourceLogo"];
|
|
277
278
|
};
|
|
278
279
|
type VendorMenuType = {
|
|
279
280
|
description?: string | null;
|
|
@@ -288,6 +289,7 @@ interface VendorFormData extends BaseResourceTypeFormData {
|
|
|
288
289
|
corporate: boolean;
|
|
289
290
|
};
|
|
290
291
|
categories: Category[];
|
|
292
|
+
foodTruck: boolean;
|
|
291
293
|
locations?: VendorLocation[] | null;
|
|
292
294
|
multiLocation: boolean;
|
|
293
295
|
products?: VendorMenuType[] | null;
|
|
@@ -336,6 +338,7 @@ interface VendorType extends BaseResourceType {
|
|
|
336
338
|
corporate: boolean;
|
|
337
339
|
};
|
|
338
340
|
categories: VendorFormData["categories"];
|
|
341
|
+
foodTruck: boolean;
|
|
339
342
|
locations: VendorLocation[] | null;
|
|
340
343
|
multiLocation: boolean;
|
|
341
344
|
products: VendorMenuType[] | null;
|
|
@@ -455,6 +458,7 @@ type MapMultiLocation = {
|
|
|
455
458
|
resourceId?: string;
|
|
456
459
|
resourceName?: string;
|
|
457
460
|
resourceType?: EnumResourceType;
|
|
461
|
+
resourceLogo?: ResourceImageType | null;
|
|
458
462
|
};
|
|
459
463
|
interface FormField {
|
|
460
464
|
disabled?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -274,6 +274,7 @@ type VendorLocation = {
|
|
|
274
274
|
resourceId?: MapMultiLocation["resourceId"];
|
|
275
275
|
resourceName?: MapMultiLocation["resourceName"];
|
|
276
276
|
resourceType?: MapMultiLocation["resourceType"];
|
|
277
|
+
resourceLogo?: MapMultiLocation["resourceLogo"];
|
|
277
278
|
};
|
|
278
279
|
type VendorMenuType = {
|
|
279
280
|
description?: string | null;
|
|
@@ -288,6 +289,7 @@ interface VendorFormData extends BaseResourceTypeFormData {
|
|
|
288
289
|
corporate: boolean;
|
|
289
290
|
};
|
|
290
291
|
categories: Category[];
|
|
292
|
+
foodTruck: boolean;
|
|
291
293
|
locations?: VendorLocation[] | null;
|
|
292
294
|
multiLocation: boolean;
|
|
293
295
|
products?: VendorMenuType[] | null;
|
|
@@ -336,6 +338,7 @@ interface VendorType extends BaseResourceType {
|
|
|
336
338
|
corporate: boolean;
|
|
337
339
|
};
|
|
338
340
|
categories: VendorFormData["categories"];
|
|
341
|
+
foodTruck: boolean;
|
|
339
342
|
locations: VendorLocation[] | null;
|
|
340
343
|
multiLocation: boolean;
|
|
341
344
|
products: VendorMenuType[] | null;
|
|
@@ -455,6 +458,7 @@ type MapMultiLocation = {
|
|
|
455
458
|
resourceId?: string;
|
|
456
459
|
resourceName?: string;
|
|
457
460
|
resourceType?: EnumResourceType;
|
|
461
|
+
resourceLogo?: ResourceImageType | null;
|
|
458
462
|
};
|
|
459
463
|
interface FormField {
|
|
460
464
|
disabled?: boolean;
|
package/dist/index.mjs
CHANGED
|
@@ -2435,6 +2435,7 @@ var VENDOR = gql4`
|
|
|
2435
2435
|
createdAt
|
|
2436
2436
|
description
|
|
2437
2437
|
deletedAt
|
|
2438
|
+
foodTruck
|
|
2438
2439
|
images {
|
|
2439
2440
|
...ResourceImageFields
|
|
2440
2441
|
}
|
|
@@ -5178,6 +5179,7 @@ var vendroMenuSchema = yup3.object().shape({
|
|
|
5178
5179
|
});
|
|
5179
5180
|
var vendorSchema = globalResourceSchema.shape({
|
|
5180
5181
|
categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
|
|
5182
|
+
foodTruck: yup3.boolean().label("Food Truck").required("Please specify if the vendor is a food truck"),
|
|
5181
5183
|
multiLocation: yup3.boolean().required("Multi location is required"),
|
|
5182
5184
|
products: yup3.array().of(vendroMenuSchema).optional().nullable(),
|
|
5183
5185
|
specialties: yup3.array().of(vendroMenuSchema).optional().nullable(),
|
|
@@ -5451,6 +5453,7 @@ var defaultVendorFormValues = {
|
|
|
5451
5453
|
school: false
|
|
5452
5454
|
},
|
|
5453
5455
|
categories: [],
|
|
5456
|
+
foodTruck: false,
|
|
5454
5457
|
locations: null,
|
|
5455
5458
|
multiLocation: false,
|
|
5456
5459
|
products: null,
|
|
@@ -5518,6 +5521,7 @@ function useVendorForm(data) {
|
|
|
5518
5521
|
...mapBaseResourceTypeToFormData(data),
|
|
5519
5522
|
availability: data.availability,
|
|
5520
5523
|
categories: data.categories,
|
|
5524
|
+
foodTruck: data.foodTruck,
|
|
5521
5525
|
locations: data.locations,
|
|
5522
5526
|
multiLocation: data.multiLocation,
|
|
5523
5527
|
products: data.products,
|
|
@@ -5535,6 +5539,7 @@ function useVendorForm(data) {
|
|
|
5535
5539
|
categories,
|
|
5536
5540
|
cover,
|
|
5537
5541
|
coverUpload,
|
|
5542
|
+
foodTruck,
|
|
5538
5543
|
description,
|
|
5539
5544
|
images,
|
|
5540
5545
|
imagesUpload,
|
|
@@ -5562,6 +5567,7 @@ function useVendorForm(data) {
|
|
|
5562
5567
|
cover,
|
|
5563
5568
|
coverUpload,
|
|
5564
5569
|
description,
|
|
5570
|
+
foodTruck,
|
|
5565
5571
|
images,
|
|
5566
5572
|
imagesUpload,
|
|
5567
5573
|
locations,
|