@timardex/cluemart-shared 1.4.61 → 1.4.62
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-9vFYJSW2.d.ts → auth-n3P2BSCb.d.ts} +1 -1
- package/dist/{auth-GnL6pUzz.d.mts → auth-tx3-QbA9.d.mts} +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/{global-D_UhEob6.d.mts → global-BCvKcmiT.d.mts} +4 -4
- package/dist/{global-VjBJNe7n.d.ts → global-DVDoQmBT.d.ts} +4 -4
- package/dist/graphql/index.d.mts +3 -3
- package/dist/graphql/index.d.ts +3 -3
- package/dist/hooks/index.cjs +8 -21
- 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 -21
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +8 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.mjs +8 -21
- package/dist/index.mjs.map +1 -1
- package/dist/{post-DjGTbKYj.d.ts → post-ByxIVi36.d.ts} +1 -1
- package/dist/{post-mzVNdX-7.d.mts → post-CvS5wUjm.d.mts} +1 -1
- package/dist/{resourceActivities-ByN_-57i.d.mts → resourceActivities-BKd6q2ey.d.mts} +1 -1
- package/dist/{resourceActivities-DP_nnVG5.d.ts → resourceActivities-UOB8Bo7j.d.ts} +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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-
|
|
1
|
+
import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-BCvKcmiT.mjs';
|
|
2
2
|
import 'react-hook-form';
|
|
3
3
|
import '../enums/index.mjs';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-
|
|
1
|
+
import { O as OptionItem, F as FormField, a as FormDateField, R as RefundPolicy, b as Requirement, S as StallType, C as Category } from '../global-DVDoQmBT.js';
|
|
2
2
|
import 'react-hook-form';
|
|
3
3
|
import '../enums/index.js';
|
|
4
4
|
|
|
@@ -129,10 +129,10 @@ type VendorCalendarData = Omit<ResourceDetails, "dateTime" | "eventStatus"> & {
|
|
|
129
129
|
};
|
|
130
130
|
type VendorProductList = {
|
|
131
131
|
description?: string | null;
|
|
132
|
-
name: string
|
|
133
|
-
price: number
|
|
134
|
-
priceUnit: string
|
|
135
|
-
productGroups: string[]
|
|
132
|
+
name: string;
|
|
133
|
+
price: number;
|
|
134
|
+
priceUnit: string;
|
|
135
|
+
productGroups: string[];
|
|
136
136
|
};
|
|
137
137
|
interface VendorFormData extends BaseResourceTypeFormData {
|
|
138
138
|
availability?: {
|
|
@@ -129,10 +129,10 @@ type VendorCalendarData = Omit<ResourceDetails, "dateTime" | "eventStatus"> & {
|
|
|
129
129
|
};
|
|
130
130
|
type VendorProductList = {
|
|
131
131
|
description?: string | null;
|
|
132
|
-
name: string
|
|
133
|
-
price: number
|
|
134
|
-
priceUnit: string
|
|
135
|
-
productGroups: string[]
|
|
132
|
+
name: string;
|
|
133
|
+
price: number;
|
|
134
|
+
priceUnit: string;
|
|
135
|
+
productGroups: string[];
|
|
136
136
|
};
|
|
137
137
|
interface VendorFormData extends BaseResourceTypeFormData {
|
|
138
138
|
availability?: {
|
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, R as ResourceByUser, 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-BKd6q2ey.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-BCvKcmiT.mjs';
|
|
5
|
+
import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-CvS5wUjm.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, R as ResourceByUser, 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-UOB8Bo7j.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-DVDoQmBT.js';
|
|
5
|
+
import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType } from '../post-ByxIVi36.js';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
declare const useAdminUpdateResourceType: () => {
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -630,32 +630,19 @@ var eventInfoSchema = yup2.object().shape({
|
|
|
630
630
|
|
|
631
631
|
// src/yupSchema/vendor.ts
|
|
632
632
|
var yup3 = __toESM(require("yup"));
|
|
633
|
-
var
|
|
634
|
-
description: yup3.string().
|
|
635
|
-
name: yup3.string().
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
return value !== null && value !== void 0;
|
|
640
|
-
}),
|
|
641
|
-
priceUnit: yup3.string().trim().nullable().defined().test("unit-required", "Product unit is required", function(value) {
|
|
642
|
-
return value !== null && value !== void 0 && value.trim().length > 0;
|
|
643
|
-
}),
|
|
644
|
-
productGroups: yup3.array().of(yup3.string().defined()).transform(
|
|
645
|
-
(value, originalValue) => originalValue === void 0 ? null : value
|
|
646
|
-
).nullable().test(
|
|
647
|
-
"productGroups-required",
|
|
648
|
-
"Product groups are required",
|
|
649
|
-
function(value) {
|
|
650
|
-
return value !== null && Array.isArray(value) && value.length > 0;
|
|
651
|
-
}
|
|
652
|
-
).defined()
|
|
633
|
+
var vendorMenuSchema = yup3.object({
|
|
634
|
+
description: yup3.string().nullable().optional(),
|
|
635
|
+
name: yup3.string().nullable().required("Product name is required"),
|
|
636
|
+
price: yup3.number().transform((v, o) => o === "" ? null : v).min(1, "Product price must be greater than 0").required("Product price is required"),
|
|
637
|
+
priceUnit: yup3.string().required("Product unit is required"),
|
|
638
|
+
productGroups: yup3.array().of(yup3.string().defined()).min(1, "Product groups are required").required("Product groups are required")
|
|
653
639
|
});
|
|
654
640
|
var vendorSchema = globalResourceSchema.shape({
|
|
655
641
|
categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
|
|
656
642
|
foodTruck: yup3.boolean().label("Food Truck").required("Please specify if the vendor is a food truck"),
|
|
657
643
|
products: yup3.object().shape({
|
|
658
|
-
|
|
644
|
+
active: yup3.boolean().nullable().optional(),
|
|
645
|
+
productsList: yup3.array().of(vendorMenuSchema).nullable().optional()
|
|
659
646
|
}).nullable().optional(),
|
|
660
647
|
vendorType: yup3.mixed().oneOf(Object.values(EnumVendorType)).required("Please select a Vendor type")
|
|
661
648
|
});
|