@timardex/cluemart-shared 1.4.67 → 1.4.68

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,4 +1,4 @@
1
- import { u as CreateFormData, Y as TermsAgreement } from './global-GMlnFp7I.mjs';
1
+ import { s as CreateFormData, Y as TermsAgreement } from './global-FOUmnU7B.mjs';
2
2
  import { EnumOSPlatform } from './enums/index.mjs';
3
3
 
4
4
  type ContactUsFormData = {
@@ -1,4 +1,4 @@
1
- import { u as CreateFormData, Y as TermsAgreement } from './global-Cdcu76UE.js';
1
+ import { s as CreateFormData, Y as TermsAgreement } from './global-D7zAQcn2.js';
2
2
  import { EnumOSPlatform } from './enums/index.js';
3
3
 
4
4
  type ContactUsFormData = {
@@ -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-GMlnFp7I.mjs';
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-FOUmnU7B.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-Cdcu76UE.js';
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-D7zAQcn2.js';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.js';
4
4
 
@@ -95,31 +95,7 @@ interface EventType extends BaseResourceType {
95
95
  relationDates: RelationDate[] | null;
96
96
  }[] | null;
97
97
  }
98
- interface EventListItemType {
99
- _id: string;
100
- active: boolean;
101
- claimed: boolean;
102
- cover?: ResourceImageType | null;
103
- createdAt: Date;
104
- dateTime: DateTimeType[];
105
- deletedAt: Date | null;
106
- description: string | null;
107
- eventType: EnumEventType;
108
- googlePlaceId?: string | null;
109
- images?: ResourceImageType[] | null;
110
- location: LocationType;
111
- logo?: ResourceImageType | null;
112
- name: string;
113
- rainOrShine: boolean;
114
- rating?: number | null;
115
- region: string;
116
- relations: {
117
- relationId: string | null;
118
- relationDates: RelationDate[] | null;
119
- }[] | null;
120
- reviewCount?: number | null;
121
- updatedAt: Date | null;
122
- }
98
+ type EventListItemType = Pick<EventType, "_id" | "active" | "claimed" | "cover" | "createdAt" | "dateTime" | "deletedAt" | "description" | "eventType" | "googlePlaceId" | "images" | "location" | "logo" | "name" | "rainOrShine" | "rating" | "region" | "relations" | "reviewCount" | "updatedAt">;
123
99
  type EventInfoType = Omit<EventInfoFormData, "_id"> & {
124
100
  _id: string;
125
101
  };
@@ -408,4 +384,4 @@ interface CreateFormData<T extends FieldValues> {
408
384
  watch: UseFormWatch<T>;
409
385
  }
410
386
 
411
- export type { VendorCalendarData as $, AssociateType as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventType as E, FormField as F, GeocodeLocation as G, OwnerType as H, ImageObjectType as I, PosterUsageType as J, Region as K, LocationType as L, ResourceContactDetailsType as M, Nullable as N, OptionItem as O, PaymentInfoType as P, ResourceDetails as Q, RefundPolicy as R, StallType as S, SocialMediaType as T, UnregisteredVendorType as U, VendorType as V, Subcategory as W, SubcategoryItems as X, TermsAgreement as Y, UnregisteredVendorInvitationType as Z, VendorAttributes as _, FormDateField as a, VendorProductList as a0, Requirement as b, EventListItemType as c, EventInfoType as d, RelationType as e, ResourceConnectionsType as f, VendorInfoType as g, UserLicenceType as h, VendorFormData as i, CreateVendorFormData as j, VendorInfoFormData as k, CreateVendorInfoFormData as l, EventFormData as m, CreateEventFormData as n, EventInfoFormData as o, CreateEventInfoFormData as p, UnregisteredVendorFormData as q, ResourceImageType as r, RelationDate as s, BaseResourceType as t, CreateFormData as u, CreateUnregisteredVendorFormData as v, DateTimeWithPriceType as w, DeviceInfo as x, EventStatusType as y, LocationGeoType as z };
387
+ export type { VendorCalendarData as $, AssociateType as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventType as E, FormField as F, GeocodeLocation as G, Region as H, ImageObjectType as I, RelationDate as J, ResourceContactDetailsType as K, LocationType as L, ResourceDetails as M, Nullable as N, OptionItem as O, PaymentInfoType as P, ResourceImageType as Q, RefundPolicy as R, StallType as S, SocialMediaType as T, UnregisteredVendorType as U, VendorType as V, Subcategory as W, SubcategoryItems as X, TermsAgreement as Y, UnregisteredVendorInvitationType as Z, VendorAttributes as _, FormDateField as a, VendorProductList as a0, Requirement as b, EventListItemType as c, EventInfoType as d, RelationType as e, ResourceConnectionsType as f, VendorInfoType as g, UserLicenceType as h, VendorFormData as i, CreateVendorFormData as j, VendorInfoFormData as k, CreateVendorInfoFormData as l, EventFormData as m, CreateEventFormData as n, EventInfoFormData as o, CreateEventInfoFormData as p, UnregisteredVendorFormData as q, BaseResourceType as r, CreateFormData as s, CreateUnregisteredVendorFormData as t, DateTimeWithPriceType as u, DeviceInfo as v, EventStatusType as w, LocationGeoType as x, OwnerType as y, PosterUsageType as z };
@@ -95,31 +95,7 @@ interface EventType extends BaseResourceType {
95
95
  relationDates: RelationDate[] | null;
96
96
  }[] | null;
97
97
  }
98
- interface EventListItemType {
99
- _id: string;
100
- active: boolean;
101
- claimed: boolean;
102
- cover?: ResourceImageType | null;
103
- createdAt: Date;
104
- dateTime: DateTimeType[];
105
- deletedAt: Date | null;
106
- description: string | null;
107
- eventType: EnumEventType;
108
- googlePlaceId?: string | null;
109
- images?: ResourceImageType[] | null;
110
- location: LocationType;
111
- logo?: ResourceImageType | null;
112
- name: string;
113
- rainOrShine: boolean;
114
- rating?: number | null;
115
- region: string;
116
- relations: {
117
- relationId: string | null;
118
- relationDates: RelationDate[] | null;
119
- }[] | null;
120
- reviewCount?: number | null;
121
- updatedAt: Date | null;
122
- }
98
+ type EventListItemType = Pick<EventType, "_id" | "active" | "claimed" | "cover" | "createdAt" | "dateTime" | "deletedAt" | "description" | "eventType" | "googlePlaceId" | "images" | "location" | "logo" | "name" | "rainOrShine" | "rating" | "region" | "relations" | "reviewCount" | "updatedAt">;
123
99
  type EventInfoType = Omit<EventInfoFormData, "_id"> & {
124
100
  _id: string;
125
101
  };
@@ -408,4 +384,4 @@ interface CreateFormData<T extends FieldValues> {
408
384
  watch: UseFormWatch<T>;
409
385
  }
410
386
 
411
- export type { VendorCalendarData as $, AssociateType as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventType as E, FormField as F, GeocodeLocation as G, OwnerType as H, ImageObjectType as I, PosterUsageType as J, Region as K, LocationType as L, ResourceContactDetailsType as M, Nullable as N, OptionItem as O, PaymentInfoType as P, ResourceDetails as Q, RefundPolicy as R, StallType as S, SocialMediaType as T, UnregisteredVendorType as U, VendorType as V, Subcategory as W, SubcategoryItems as X, TermsAgreement as Y, UnregisteredVendorInvitationType as Z, VendorAttributes as _, FormDateField as a, VendorProductList as a0, Requirement as b, EventListItemType as c, EventInfoType as d, RelationType as e, ResourceConnectionsType as f, VendorInfoType as g, UserLicenceType as h, VendorFormData as i, CreateVendorFormData as j, VendorInfoFormData as k, CreateVendorInfoFormData as l, EventFormData as m, CreateEventFormData as n, EventInfoFormData as o, CreateEventInfoFormData as p, UnregisteredVendorFormData as q, ResourceImageType as r, RelationDate as s, BaseResourceType as t, CreateFormData as u, CreateUnregisteredVendorFormData as v, DateTimeWithPriceType as w, DeviceInfo as x, EventStatusType as y, LocationGeoType as z };
387
+ export type { VendorCalendarData as $, AssociateType as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventType as E, FormField as F, GeocodeLocation as G, Region as H, ImageObjectType as I, RelationDate as J, ResourceContactDetailsType as K, LocationType as L, ResourceDetails as M, Nullable as N, OptionItem as O, PaymentInfoType as P, ResourceImageType as Q, RefundPolicy as R, StallType as S, SocialMediaType as T, UnregisteredVendorType as U, VendorType as V, Subcategory as W, SubcategoryItems as X, TermsAgreement as Y, UnregisteredVendorInvitationType as Z, VendorAttributes as _, FormDateField as a, VendorProductList as a0, Requirement as b, EventListItemType as c, EventInfoType as d, RelationType as e, ResourceConnectionsType as f, VendorInfoType as g, UserLicenceType as h, VendorFormData as i, CreateVendorFormData as j, VendorInfoFormData as k, CreateVendorInfoFormData as l, EventFormData as m, CreateEventFormData as n, EventInfoFormData as o, CreateEventInfoFormData as p, UnregisteredVendorFormData as q, BaseResourceType as r, CreateFormData as s, CreateUnregisteredVendorFormData as t, DateTimeWithPriceType as u, DeviceInfo as v, EventStatusType as w, LocationGeoType as x, OwnerType as y, PosterUsageType as z };
@@ -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-sdIDFwub.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-GMlnFp7I.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-Bs27AkGC.mjs';
3
+ import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-C4-l6iF9.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-FOUmnU7B.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-D5luLIWV.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 { EnumResourceType } from '../enums/index.js';
3
- import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-Qpi5PTJD.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-Cdcu76UE.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-CdeU5KyV.js';
3
+ import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-DoZpH1Fu.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-D7zAQcn2.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-Dpp6_lCR.js';
6
6
  import 'react-hook-form';
7
7
 
8
8
  declare const useAdminUpdateResourceType: () => {
@@ -826,7 +826,7 @@ var adResourceSchema = yup6.object({
826
826
  adDescription: yup6.string().nullable().trim().required("Ad description is required").max(100, "Ad description must be at most 100 characters"),
827
827
  adImage: yup6.string().nullable().required("Ad image is required"),
828
828
  adStyle: yup6.mixed().nullable().oneOf(Object.values(EnumAdStyle), "Please select a valid ad style").required("Ad style is required"),
829
- adTitle: yup6.string().nullable().trim().required("Ad title is required").max(50, "Ad title must be at most 50 characters"),
829
+ adTitle: yup6.string().nullable().trim().required("Ad title is required").max(25, "Ad title must be at most 25 characters"),
830
830
  adType: yup6.mixed().nullable().oneOf(Object.values(EnumAdType), "Please select a valid ad type").required("Ad type is required"),
831
831
  resourceId: yup6.string().nullable().required("Resource ID is required"),
832
832
  resourceName: yup6.string().nullable().required("Resource name is required"),