@timardex/cluemart-shared 1.2.69 → 1.2.70
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-DITy2OMe.d.mts → ad-BdK9N1Fw.d.mts} +1 -1
- package/dist/{ad-BijiW7Nn.d.ts → ad-CJBWZnb9.d.ts} +1 -1
- package/dist/{auth-DCIrfDwB.d.mts → auth-BKpylbaZ.d.mts} +1 -1
- package/dist/{auth-iE9sd_mq.d.ts → auth-Dxb3_Ak-.d.ts} +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/{global-DhZY519g.d.mts → global-CfX05e2q.d.mts} +4 -10
- package/dist/{global-08vcDEuE.d.ts → global-flZOvt2w.d.ts} +4 -10
- package/dist/graphql/index.d.mts +2 -2
- package/dist/graphql/index.d.ts +2 -2
- package/dist/hooks/index.cjs +5 -1
- 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 -1
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +7 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +4 -10
- package/dist/index.d.ts +4 -10
- package/dist/index.mjs +7 -3
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EnumOSPlatform, EnumResourceType, EnumPartnerType } from './enums/index.mjs';
|
|
2
|
-
import { C as Category,
|
|
2
|
+
import { C as Category, z as CreateFormData, u as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, s as SocialMediaType } from './global-CfX05e2q.mjs';
|
|
3
3
|
|
|
4
4
|
interface TesterFormData {
|
|
5
5
|
approved: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EnumOSPlatform, EnumResourceType, EnumPartnerType } from './enums/index.js';
|
|
2
|
-
import { C as Category,
|
|
2
|
+
import { C as Category, z as CreateFormData, u as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, s as SocialMediaType } from './global-flZOvt2w.js';
|
|
3
3
|
|
|
4
4
|
interface TesterFormData {
|
|
5
5
|
approved: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-
|
|
1
|
+
import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-CfX05e2q.mjs';
|
|
2
2
|
import 'react-hook-form';
|
|
3
3
|
import '../enums/index.mjs';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-
|
|
1
|
+
import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-flZOvt2w.js';
|
|
2
2
|
import 'react-hook-form';
|
|
3
3
|
import '../enums/index.js';
|
|
4
4
|
|
|
@@ -142,8 +142,8 @@ type UserActivity = {
|
|
|
142
142
|
};
|
|
143
143
|
};
|
|
144
144
|
type UserLicenceType = {
|
|
145
|
-
expiryDate: Date
|
|
146
|
-
issuedDate: Date
|
|
145
|
+
expiryDate: Date;
|
|
146
|
+
issuedDate: Date;
|
|
147
147
|
licenceType: EnumUserLicence;
|
|
148
148
|
};
|
|
149
149
|
interface UserType {
|
|
@@ -296,12 +296,6 @@ type AssociateType = {
|
|
|
296
296
|
resourceType: EnumResourceType;
|
|
297
297
|
licence: UserLicenceType;
|
|
298
298
|
};
|
|
299
|
-
type AssociateTypeFormData = {
|
|
300
|
-
email: string;
|
|
301
|
-
resourceId: string;
|
|
302
|
-
resourceType: EnumResourceType;
|
|
303
|
-
licenceType: EnumUserLicence;
|
|
304
|
-
};
|
|
305
299
|
type OwnerType = {
|
|
306
300
|
email: string;
|
|
307
301
|
userId: string;
|
|
@@ -309,7 +303,7 @@ type OwnerType = {
|
|
|
309
303
|
interface BaseResourceTypeFormData {
|
|
310
304
|
_id?: string;
|
|
311
305
|
active: boolean;
|
|
312
|
-
associates?:
|
|
306
|
+
associates?: AssociateType[] | null;
|
|
313
307
|
contactDetails?: ResourceContactDetailsType | null;
|
|
314
308
|
cover: ResourceImageType;
|
|
315
309
|
coverUpload?: ResourceImageType | null;
|
|
@@ -429,4 +423,4 @@ interface CreateFormData<T extends FieldValues> {
|
|
|
429
423
|
watch: UseFormWatch<T>;
|
|
430
424
|
}
|
|
431
425
|
|
|
432
|
-
export type {
|
|
426
|
+
export type { UserLicenceType as $, AssociateType as A, BaseResourceTypeFormData as B, Category as C, DeviceInfo as D, EventType as E, FormField as F, GeocodeLocation as G, DateTimeWithPriceType as H, ImageObjectType as I, PaymentInfoType as J, RelationDate as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, VendorLocation as Q, Requirement as R, StallType as S, TermsAgreement as T, UserType as U, VendorType as V, VendorMenuType as W, VendorAttributes as X, UserActivityEvent as Y, StripeSubscription as Z, UserActivity as _, FormDateField as a, EventInfoType as b, RelationType as c, ResourceConnectionsType as d, VendorInfoType as e, SubscriptionStatusData as f, VendorFormData as g, CreateVendorFormData as h, VendorInfoFormData as i, CreateVendorInfoFormData as j, EventFormData as k, CreateEventFormData as l, EventInfoFormData as m, CreateEventInfoFormData as n, UserFormData as o, CreateUserFormData as p, ResourceContactDetailsType as q, ResourceImageType as r, SocialMediaType as s, OwnerType as t, BaseResourceType as u, DateTimeType as v, Region as w, SubcategoryItems as x, Subcategory as y, CreateFormData as z };
|
|
@@ -142,8 +142,8 @@ type UserActivity = {
|
|
|
142
142
|
};
|
|
143
143
|
};
|
|
144
144
|
type UserLicenceType = {
|
|
145
|
-
expiryDate: Date
|
|
146
|
-
issuedDate: Date
|
|
145
|
+
expiryDate: Date;
|
|
146
|
+
issuedDate: Date;
|
|
147
147
|
licenceType: EnumUserLicence;
|
|
148
148
|
};
|
|
149
149
|
interface UserType {
|
|
@@ -296,12 +296,6 @@ type AssociateType = {
|
|
|
296
296
|
resourceType: EnumResourceType;
|
|
297
297
|
licence: UserLicenceType;
|
|
298
298
|
};
|
|
299
|
-
type AssociateTypeFormData = {
|
|
300
|
-
email: string;
|
|
301
|
-
resourceId: string;
|
|
302
|
-
resourceType: EnumResourceType;
|
|
303
|
-
licenceType: EnumUserLicence;
|
|
304
|
-
};
|
|
305
299
|
type OwnerType = {
|
|
306
300
|
email: string;
|
|
307
301
|
userId: string;
|
|
@@ -309,7 +303,7 @@ type OwnerType = {
|
|
|
309
303
|
interface BaseResourceTypeFormData {
|
|
310
304
|
_id?: string;
|
|
311
305
|
active: boolean;
|
|
312
|
-
associates?:
|
|
306
|
+
associates?: AssociateType[] | null;
|
|
313
307
|
contactDetails?: ResourceContactDetailsType | null;
|
|
314
308
|
cover: ResourceImageType;
|
|
315
309
|
coverUpload?: ResourceImageType | null;
|
|
@@ -429,4 +423,4 @@ interface CreateFormData<T extends FieldValues> {
|
|
|
429
423
|
watch: UseFormWatch<T>;
|
|
430
424
|
}
|
|
431
425
|
|
|
432
|
-
export type {
|
|
426
|
+
export type { UserLicenceType as $, AssociateType as A, BaseResourceTypeFormData as B, Category as C, DeviceInfo as D, EventType as E, FormField as F, GeocodeLocation as G, DateTimeWithPriceType as H, ImageObjectType as I, PaymentInfoType as J, RelationDate as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, VendorLocation as Q, Requirement as R, StallType as S, TermsAgreement as T, UserType as U, VendorType as V, VendorMenuType as W, VendorAttributes as X, UserActivityEvent as Y, StripeSubscription as Z, UserActivity as _, FormDateField as a, EventInfoType as b, RelationType as c, ResourceConnectionsType as d, VendorInfoType as e, SubscriptionStatusData as f, VendorFormData as g, CreateVendorFormData as h, VendorInfoFormData as i, CreateVendorInfoFormData as j, EventFormData as k, CreateEventFormData as l, EventInfoFormData as m, CreateEventInfoFormData as n, UserFormData as o, CreateUserFormData as p, ResourceContactDetailsType as q, ResourceImageType as r, SocialMediaType as s, OwnerType as t, BaseResourceType as u, DateTimeType as v, Region as w, SubcategoryItems as x, Subcategory as y, CreateFormData as z };
|
package/dist/graphql/index.d.mts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as _apollo_client from '@apollo/client';
|
|
2
2
|
import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-DB-fx51l.mjs';
|
|
3
|
-
import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UserType, f as SubscriptionStatusData } from '../global-
|
|
3
|
+
import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UserType, f as SubscriptionStatusData } from '../global-CfX05e2q.mjs';
|
|
4
4
|
import { EnumResourceType } from '../enums/index.mjs';
|
|
5
|
-
import { T as TesterType, A as AdType, E as EnumAdStatus, P as PartnerType } from '../ad-
|
|
5
|
+
import { T as TesterType, A as AdType, E as EnumAdStatus, P as PartnerType } from '../ad-BdK9N1Fw.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 { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-Ezt7CDPH.js';
|
|
3
|
-
import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UserType, f as SubscriptionStatusData } from '../global-
|
|
3
|
+
import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType, U as UserType, f as SubscriptionStatusData } from '../global-flZOvt2w.js';
|
|
4
4
|
import { EnumResourceType } from '../enums/index.js';
|
|
5
|
-
import { T as TesterType, A as AdType, E as EnumAdStatus, P as PartnerType } from '../ad-
|
|
5
|
+
import { T as TesterType, A as AdType, E as EnumAdStatus, P as PartnerType } from '../ad-CJBWZnb9.js';
|
|
6
6
|
import 'react-hook-form';
|
|
7
7
|
|
|
8
8
|
declare const useAdminUpdateResourceType: () => {
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -461,7 +461,11 @@ var globalResourceSchema = yup.object().shape({
|
|
|
461
461
|
email: emailRequiredSchema,
|
|
462
462
|
resourceId: yup.string().label("Resource ID").required("Resource ID is required"),
|
|
463
463
|
resourceType: yup.mixed().oneOf(Object.values(EnumResourceType)).label("Resource Type").required("Resource Type is required"),
|
|
464
|
-
|
|
464
|
+
licence: yup.object({
|
|
465
|
+
expiryDate: yup.date().required("Expiry Date is required"),
|
|
466
|
+
issuedDate: yup.date().required("Issued Date is required"),
|
|
467
|
+
licenceType: yup.mixed().oneOf(Object.values(EnumUserLicence)).label("Licence Type").required("Licence Type is required")
|
|
468
|
+
})
|
|
465
469
|
})
|
|
466
470
|
).nullable().optional()
|
|
467
471
|
});
|