@timardex/cluemart-shared 1.2.68 → 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.
@@ -1,5 +1,5 @@
1
1
  import { EnumOSPlatform, EnumResourceType, EnumPartnerType } from './enums/index.mjs';
2
- import { C as Category, H as CreateFormData, v as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, s as SocialMediaType } from './global-Q8FB4ZfD.mjs';
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, H as CreateFormData, v as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, s as SocialMediaType } from './global-X7Gs8dR2.js';
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 { H as CreateFormData, T as TermsAgreement } from './global-Q8FB4ZfD.mjs';
1
+ import { z as CreateFormData, T as TermsAgreement } from './global-CfX05e2q.mjs';
2
2
  import { EnumOSPlatform } from './enums/index.mjs';
3
3
 
4
4
  type ContactUsFormData = {
@@ -1,4 +1,4 @@
1
- import { H as CreateFormData, T as TermsAgreement } from './global-X7Gs8dR2.js';
1
+ import { z as CreateFormData, T as TermsAgreement } from './global-flZOvt2w.js';
2
2
  import { EnumOSPlatform } from './enums/index.js';
3
3
 
4
4
  type ContactUsFormData = {
@@ -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-Q8FB4ZfD.mjs';
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-X7Gs8dR2.js';
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 | null;
146
- issuedDate: Date | null;
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?: AssociateTypeFormData[] | null;
306
+ associates?: AssociateType[] | null;
313
307
  contactDetails?: ResourceContactDetailsType | null;
314
308
  cover: ResourceImageType;
315
309
  coverUpload?: ResourceImageType | null;
@@ -329,9 +323,10 @@ type PosterUsageType = {
329
323
  month: string;
330
324
  count: number;
331
325
  };
332
- type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload" | "owner"> & {
326
+ type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload" | "owner" | "associates"> & {
333
327
  _id: string;
334
328
  adIds?: string[] | null;
329
+ associates?: AssociateType[] | null;
335
330
  chatIds?: string[] | null;
336
331
  createdAt: Date;
337
332
  deletedAt: Date | null;
@@ -428,4 +423,4 @@ interface CreateFormData<T extends FieldValues> {
428
423
  watch: UseFormWatch<T>;
429
424
  }
430
425
 
431
- export type { UserActivity as $, AssociateType as A, BaseResourceTypeFormData as B, Category as C, DeviceInfo as D, EventType as E, FormField as F, GeocodeLocation as G, CreateFormData as H, ImageObjectType as I, DateTimeWithPriceType as J, PaymentInfoType as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, RelationDate as Q, Requirement as R, StallType as S, TermsAgreement as T, UserType as U, VendorType as V, VendorLocation as W, VendorMenuType as X, VendorAttributes as Y, UserActivityEvent as Z, StripeSubscription as _, FormDateField as a, UserLicenceType as a0, 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, AssociateTypeFormData as t, OwnerType as u, BaseResourceType as v, DateTimeType as w, Region as x, SubcategoryItems as y, Subcategory as z };
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 | null;
146
- issuedDate: Date | null;
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?: AssociateTypeFormData[] | null;
306
+ associates?: AssociateType[] | null;
313
307
  contactDetails?: ResourceContactDetailsType | null;
314
308
  cover: ResourceImageType;
315
309
  coverUpload?: ResourceImageType | null;
@@ -329,9 +323,10 @@ type PosterUsageType = {
329
323
  month: string;
330
324
  count: number;
331
325
  };
332
- type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload" | "owner"> & {
326
+ type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload" | "owner" | "associates"> & {
333
327
  _id: string;
334
328
  adIds?: string[] | null;
329
+ associates?: AssociateType[] | null;
335
330
  chatIds?: string[] | null;
336
331
  createdAt: Date;
337
332
  deletedAt: Date | null;
@@ -428,4 +423,4 @@ interface CreateFormData<T extends FieldValues> {
428
423
  watch: UseFormWatch<T>;
429
424
  }
430
425
 
431
- export type { UserActivity as $, AssociateType as A, BaseResourceTypeFormData as B, Category as C, DeviceInfo as D, EventType as E, FormField as F, GeocodeLocation as G, CreateFormData as H, ImageObjectType as I, DateTimeWithPriceType as J, PaymentInfoType as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, RelationDate as Q, Requirement as R, StallType as S, TermsAgreement as T, UserType as U, VendorType as V, VendorLocation as W, VendorMenuType as X, VendorAttributes as Y, UserActivityEvent as Z, StripeSubscription as _, FormDateField as a, UserLicenceType as a0, 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, AssociateTypeFormData as t, OwnerType as u, BaseResourceType as v, DateTimeType as w, Region as x, SubcategoryItems as y, Subcategory as z };
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 };
@@ -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-Q8FB4ZfD.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-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-ByXz9Km3.mjs';
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: () => {
@@ -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-X7Gs8dR2.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-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--4RgHfBN.js';
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: () => {
@@ -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
- licenceType: yup.mixed().oneOf(Object.values(EnumUserLicence)).label("Licence Type").required("Licence Type is required")
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
  });