@timardex/cluemart-shared 1.4.47 → 1.4.49
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-Dn--6hv6.d.ts → auth-D8UFPzrV.d.ts} +1 -1
- package/dist/{auth-B4xQkspX.d.mts → auth-DjhyuSc4.d.mts} +1 -1
- package/dist/{chunk-YVLKDO3W.mjs → chunk-KIWJIODL.mjs} +1 -7
- package/dist/chunk-KIWJIODL.mjs.map +1 -0
- package/dist/{chunk-KWA2LDKT.mjs → chunk-WEZAIHRP.mjs} +20 -15
- package/dist/chunk-WEZAIHRP.mjs.map +1 -0
- package/dist/formFields/index.cjs +0 -7
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +2 -3
- package/dist/formFields/index.d.ts +2 -3
- package/dist/formFields/index.mjs +1 -3
- package/dist/{global-BaRkbNJY.d.mts → global-B0Dwutyj.d.mts} +13 -9
- package/dist/{global-BaQqe4tO.d.ts → global-S6dWKuAO.d.ts} +13 -9
- package/dist/graphql/index.cjs +19 -14
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +3 -3
- package/dist/graphql/index.d.ts +3 -3
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +25 -24
- 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 -12
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +25 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +13 -10
- package/dist/index.d.ts +13 -10
- package/dist/index.mjs +25 -30
- package/dist/index.mjs.map +1 -1
- package/dist/{post-DdO574BP.d.mts → post-Ca65D14n.d.mts} +1 -1
- package/dist/{post-BNREQyX4.d.ts → post-YKX0RPhh.d.ts} +1 -1
- package/dist/{resourceActivities-74LABQJf.d.ts → resourceActivities-BdyamlH1.d.ts} +1 -1
- package/dist/{resourceActivities-sCfrMmT_.d.mts → resourceActivities-CUAw8UJq.d.mts} +1 -1
- package/dist/types/index.d.mts +5 -5
- package/dist/types/index.d.ts +5 -5
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-KWA2LDKT.mjs.map +0 -1
- package/dist/chunk-YVLKDO3W.mjs.map +0 -1
package/dist/graphql/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { EnumResourceType } from '../enums/index.mjs';
|
|
3
|
-
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-
|
|
4
|
-
import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-
|
|
5
|
-
import { U as UserType, P as PartnerType, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-
|
|
3
|
+
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-CUAw8UJq.mjs';
|
|
4
|
+
import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-B0Dwutyj.mjs';
|
|
5
|
+
import { U as UserType, P as PartnerType, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-Ca65D14n.mjs';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
declare const useAdminUpdateResourceType: () => {
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { EnumResourceType } from '../enums/index.js';
|
|
3
|
-
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-
|
|
4
|
-
import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-
|
|
5
|
-
import { U as UserType, P as PartnerType, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-
|
|
3
|
+
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-BdyamlH1.js';
|
|
4
|
+
import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-S6dWKuAO.js';
|
|
5
|
+
import { U as UserType, P as PartnerType, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-YKX0RPhh.js';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
declare const useAdminUpdateResourceType: () => {
|
package/dist/graphql/index.mjs
CHANGED
package/dist/hooks/index.cjs
CHANGED
|
@@ -657,8 +657,9 @@ var vendroMenuSchema = yup3.object().shape({
|
|
|
657
657
|
var vendorSchema = globalResourceSchema.shape({
|
|
658
658
|
categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
|
|
659
659
|
foodTruck: yup3.boolean().label("Food Truck").required("Please specify if the vendor is a food truck"),
|
|
660
|
-
|
|
661
|
-
|
|
660
|
+
products: yup3.object().shape({
|
|
661
|
+
productsData: yup3.array().of(vendroMenuSchema).nullable().optional()
|
|
662
|
+
}).nullable().optional(),
|
|
662
663
|
vendorType: yup3.mixed().oneOf(Object.values(EnumVendorType)).required("Please select a Vendor type")
|
|
663
664
|
});
|
|
664
665
|
var unregisteredVendorSchema = yup3.object().shape({
|
|
@@ -2629,8 +2630,8 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
|
|
|
2629
2630
|
startTime
|
|
2630
2631
|
}
|
|
2631
2632
|
`;
|
|
2632
|
-
var
|
|
2633
|
-
fragment
|
|
2633
|
+
var VENDOR_PRODUCT_FIELDS_FRAGMENT = import_client4.gql`
|
|
2634
|
+
fragment VendorProductFields on VendorProductType {
|
|
2634
2635
|
description
|
|
2635
2636
|
name
|
|
2636
2637
|
price
|
|
@@ -2654,6 +2655,18 @@ var VENDOR = import_client4.gql`
|
|
|
2654
2655
|
categories {
|
|
2655
2656
|
...CategoryFields
|
|
2656
2657
|
}
|
|
2658
|
+
calendar {
|
|
2659
|
+
active
|
|
2660
|
+
calendarData {
|
|
2661
|
+
dateTime {
|
|
2662
|
+
...VendorDateTimeFields
|
|
2663
|
+
}
|
|
2664
|
+
description
|
|
2665
|
+
location {
|
|
2666
|
+
...LocationFields
|
|
2667
|
+
}
|
|
2668
|
+
}
|
|
2669
|
+
}
|
|
2657
2670
|
contactDetails {
|
|
2658
2671
|
...ContactDetailsFields
|
|
2659
2672
|
}
|
|
@@ -2667,25 +2680,18 @@ var VENDOR = import_client4.gql`
|
|
|
2667
2680
|
images {
|
|
2668
2681
|
...ResourceImageFields
|
|
2669
2682
|
}
|
|
2670
|
-
locations {
|
|
2671
|
-
dateTime {
|
|
2672
|
-
...VendorDateTimeFields
|
|
2673
|
-
}
|
|
2674
|
-
description
|
|
2675
|
-
location {
|
|
2676
|
-
...LocationFields
|
|
2677
|
-
}
|
|
2678
|
-
}
|
|
2679
2683
|
logo {
|
|
2680
2684
|
...ResourceImageFields
|
|
2681
2685
|
}
|
|
2682
|
-
multiLocation
|
|
2683
2686
|
name
|
|
2684
2687
|
owner {
|
|
2685
2688
|
...OwnerFields
|
|
2686
2689
|
}
|
|
2687
2690
|
products {
|
|
2688
|
-
|
|
2691
|
+
active
|
|
2692
|
+
productsData {
|
|
2693
|
+
...VendorProductFields
|
|
2694
|
+
}
|
|
2689
2695
|
}
|
|
2690
2696
|
promoCodes
|
|
2691
2697
|
posterUsage {
|
|
@@ -2717,7 +2723,7 @@ var VENDOR = import_client4.gql`
|
|
|
2717
2723
|
${SOCIAL_MEDIA_FIELDS_FRAGMENT}
|
|
2718
2724
|
${POSTER_USAGE_FIELDS_FRAGMENT}
|
|
2719
2725
|
${ASSOCIATES_FIELDS_FRAGMENT}
|
|
2720
|
-
${
|
|
2726
|
+
${VENDOR_PRODUCT_FIELDS_FRAGMENT}
|
|
2721
2727
|
${CONTACT_DETAILS_FIELDS_FRAGMENT}
|
|
2722
2728
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
2723
2729
|
${RELATION_DATES_FRAGMENT}
|
|
@@ -4315,8 +4321,6 @@ var defaultVendorFormValues = {
|
|
|
4315
4321
|
},
|
|
4316
4322
|
categories: [],
|
|
4317
4323
|
foodTruck: false,
|
|
4318
|
-
locations: null,
|
|
4319
|
-
multiLocation: false,
|
|
4320
4324
|
products: null,
|
|
4321
4325
|
vendorType: "Stallholder" /* STALLHOLDER */
|
|
4322
4326
|
};
|
|
@@ -4388,10 +4392,9 @@ function useVendorForm(data) {
|
|
|
4388
4392
|
reset({
|
|
4389
4393
|
...mapBaseResourceTypeToFormData(data),
|
|
4390
4394
|
availability: data.availability,
|
|
4395
|
+
calendar: data.calendar,
|
|
4391
4396
|
categories: data.categories,
|
|
4392
4397
|
foodTruck: data.foodTruck,
|
|
4393
|
-
locations: data.locations,
|
|
4394
|
-
multiLocation: data.multiLocation,
|
|
4395
4398
|
products: data.products,
|
|
4396
4399
|
vendorType: data.vendorType
|
|
4397
4400
|
});
|
|
@@ -4405,6 +4408,7 @@ function useVendorForm(data) {
|
|
|
4405
4408
|
associates,
|
|
4406
4409
|
availability,
|
|
4407
4410
|
categories,
|
|
4411
|
+
calendar,
|
|
4408
4412
|
contactDetails,
|
|
4409
4413
|
cover,
|
|
4410
4414
|
coverUpload,
|
|
@@ -4412,10 +4416,8 @@ function useVendorForm(data) {
|
|
|
4412
4416
|
description,
|
|
4413
4417
|
images,
|
|
4414
4418
|
imagesUpload,
|
|
4415
|
-
locations,
|
|
4416
4419
|
logo,
|
|
4417
4420
|
logoUpload,
|
|
4418
|
-
multiLocation,
|
|
4419
4421
|
name,
|
|
4420
4422
|
owner,
|
|
4421
4423
|
products,
|
|
@@ -4432,6 +4434,7 @@ function useVendorForm(data) {
|
|
|
4432
4434
|
active,
|
|
4433
4435
|
associates,
|
|
4434
4436
|
availability,
|
|
4437
|
+
calendar,
|
|
4435
4438
|
categories,
|
|
4436
4439
|
contactDetails,
|
|
4437
4440
|
cover,
|
|
@@ -4440,10 +4443,8 @@ function useVendorForm(data) {
|
|
|
4440
4443
|
foodTruck,
|
|
4441
4444
|
images,
|
|
4442
4445
|
imagesUpload,
|
|
4443
|
-
locations,
|
|
4444
4446
|
logo,
|
|
4445
4447
|
logoUpload,
|
|
4446
|
-
multiLocation,
|
|
4447
4448
|
name,
|
|
4448
4449
|
owner,
|
|
4449
4450
|
products,
|