@timardex/cluemart-shared 1.3.78 → 1.3.80

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 { z as CreateFormData, T as TermsAgreement } from './global-ZW2_JxF5.mjs';
1
+ import { H as CreateFormData, T as TermsAgreement } from './global-E8ve8XPP.mjs';
2
2
  import { EnumOSPlatform } from './enums/index.mjs';
3
3
 
4
4
  type ContactUsFormData = {
@@ -1,4 +1,4 @@
1
- import { z as CreateFormData, T as TermsAgreement } from './global-BJbi-2I6.js';
1
+ import { H as CreateFormData, T as TermsAgreement } from './global-BsFcXLgV.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-ZW2_JxF5.mjs';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-E8ve8XPP.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-BJbi-2I6.js';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-BsFcXLgV.js';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.js';
4
4
 
@@ -116,14 +116,10 @@ type EventInfoType = Omit<EventInfoFormData, "_id"> & {
116
116
  _id: string;
117
117
  };
118
118
 
119
- type VendorLocation = {
119
+ type VendorLocation = Pick<MapMultiLocation, "resourceId" | "resourceName" | "resourceType" | "resourceLogo"> & {
120
120
  dateTime: Nullable<DateTimeType> | null;
121
121
  description?: string | null;
122
122
  location: Nullable<LocationType> | null;
123
- resourceId?: MapMultiLocation["resourceId"];
124
- resourceName?: MapMultiLocation["resourceName"];
125
- resourceType?: MapMultiLocation["resourceType"];
126
- resourceLogo?: MapMultiLocation["resourceLogo"];
127
123
  };
128
124
  type VendorMenuType = {
129
125
  description?: string | null;
@@ -327,11 +323,12 @@ type Region = {
327
323
  type GeocodeLocation = Pick<LocationType, "latitude" | "longitude">;
328
324
  type MapMultiLocation = {
329
325
  dateTime: DateTimeType | null;
326
+ googlePlaceId?: string | null;
330
327
  location: LocationType | null;
331
328
  resourceId?: string;
329
+ resourceLogo?: ResourceImageType | null;
332
330
  resourceName?: string;
333
331
  resourceType?: EnumResourceType;
334
- resourceLogo?: ResourceImageType | null;
335
332
  };
336
333
  interface FormField {
337
334
  disabled?: boolean;
@@ -388,4 +385,4 @@ interface CreateFormData<T extends FieldValues> {
388
385
  watch: UseFormWatch<T>;
389
386
  }
390
387
 
391
- export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventListItemType 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, UnregisteredVendorType as U, VendorType as V, VendorMenuType as W, VendorAttributes as X, UnregisteredVendorInvitationType as Y, CreateUnregisteredVendorFormData as Z, FormDateField as a, EventType as b, EventInfoType as c, RelationType as d, ResourceConnectionsType as e, VendorInfoType as f, UserLicenceType as g, VendorFormData as h, CreateVendorFormData as i, VendorInfoFormData as j, CreateVendorInfoFormData as k, EventFormData as l, CreateEventFormData as m, EventInfoFormData as n, CreateEventInfoFormData as o, UnregisteredVendorFormData as p, ResourceImageType as q, DeviceInfo as r, ResourceContactDetailsType as s, SocialMediaType as t, OwnerType as u, BaseResourceType as v, Region as w, SubcategoryItems as x, Subcategory as y, CreateFormData as z };
388
+ export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventListItemType 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, VendorLocation as Q, Requirement as R, StallType as S, TermsAgreement as T, UnregisteredVendorType as U, VendorType as V, VendorMenuType as W, VendorAttributes as X, UnregisteredVendorInvitationType as Y, CreateUnregisteredVendorFormData as Z, FormDateField as a, EventType as b, EventInfoType as c, RelationType as d, ResourceConnectionsType as e, VendorInfoType as f, UserLicenceType as g, VendorFormData as h, CreateVendorFormData as i, VendorInfoFormData as j, CreateVendorInfoFormData as k, EventFormData as l, CreateEventFormData as m, EventInfoFormData as n, CreateEventInfoFormData as o, UnregisteredVendorFormData as p, ResourceImageType as q, RelationDate as r, DeviceInfo as s, ResourceContactDetailsType as t, SocialMediaType as u, OwnerType as v, BaseResourceType as w, Region as x, SubcategoryItems as y, Subcategory as z };
@@ -116,14 +116,10 @@ type EventInfoType = Omit<EventInfoFormData, "_id"> & {
116
116
  _id: string;
117
117
  };
118
118
 
119
- type VendorLocation = {
119
+ type VendorLocation = Pick<MapMultiLocation, "resourceId" | "resourceName" | "resourceType" | "resourceLogo"> & {
120
120
  dateTime: Nullable<DateTimeType> | null;
121
121
  description?: string | null;
122
122
  location: Nullable<LocationType> | null;
123
- resourceId?: MapMultiLocation["resourceId"];
124
- resourceName?: MapMultiLocation["resourceName"];
125
- resourceType?: MapMultiLocation["resourceType"];
126
- resourceLogo?: MapMultiLocation["resourceLogo"];
127
123
  };
128
124
  type VendorMenuType = {
129
125
  description?: string | null;
@@ -327,11 +323,12 @@ type Region = {
327
323
  type GeocodeLocation = Pick<LocationType, "latitude" | "longitude">;
328
324
  type MapMultiLocation = {
329
325
  dateTime: DateTimeType | null;
326
+ googlePlaceId?: string | null;
330
327
  location: LocationType | null;
331
328
  resourceId?: string;
329
+ resourceLogo?: ResourceImageType | null;
332
330
  resourceName?: string;
333
331
  resourceType?: EnumResourceType;
334
- resourceLogo?: ResourceImageType | null;
335
332
  };
336
333
  interface FormField {
337
334
  disabled?: boolean;
@@ -388,4 +385,4 @@ interface CreateFormData<T extends FieldValues> {
388
385
  watch: UseFormWatch<T>;
389
386
  }
390
387
 
391
- export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventListItemType 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, UnregisteredVendorType as U, VendorType as V, VendorMenuType as W, VendorAttributes as X, UnregisteredVendorInvitationType as Y, CreateUnregisteredVendorFormData as Z, FormDateField as a, EventType as b, EventInfoType as c, RelationType as d, ResourceConnectionsType as e, VendorInfoType as f, UserLicenceType as g, VendorFormData as h, CreateVendorFormData as i, VendorInfoFormData as j, CreateVendorInfoFormData as k, EventFormData as l, CreateEventFormData as m, EventInfoFormData as n, CreateEventInfoFormData as o, UnregisteredVendorFormData as p, ResourceImageType as q, DeviceInfo as r, ResourceContactDetailsType as s, SocialMediaType as t, OwnerType as u, BaseResourceType as v, Region as w, SubcategoryItems as x, Subcategory as y, CreateFormData as z };
388
+ export type { AssociateType as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventListItemType 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, VendorLocation as Q, Requirement as R, StallType as S, TermsAgreement as T, UnregisteredVendorType as U, VendorType as V, VendorMenuType as W, VendorAttributes as X, UnregisteredVendorInvitationType as Y, CreateUnregisteredVendorFormData as Z, FormDateField as a, EventType as b, EventInfoType as c, RelationType as d, ResourceConnectionsType as e, VendorInfoType as f, UserLicenceType as g, VendorFormData as h, CreateVendorFormData as i, VendorInfoFormData as j, CreateVendorInfoFormData as k, EventFormData as l, CreateEventFormData as m, EventInfoFormData as n, CreateEventInfoFormData as o, UnregisteredVendorFormData as p, ResourceImageType as q, RelationDate as r, DeviceInfo as s, ResourceContactDetailsType as t, SocialMediaType as u, OwnerType as v, BaseResourceType as w, Region as x, SubcategoryItems as y, Subcategory as z };
@@ -1,8 +1,8 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.mjs';
3
3
  import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-CJRTZROh.mjs';
4
- import { E as EventListItemType, b as EventType, c as EventInfoType, d as RelationType, e as ResourceConnectionsType, V as VendorType, f as VendorInfoType, U as UnregisteredVendorType, g as UserLicenceType } from '../global-ZW2_JxF5.mjs';
5
- import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType, c as AppSettingsType } from '../post-BsN99WIF.mjs';
4
+ import { E as EventListItemType, b as EventType, c as EventInfoType, d as RelationType, e as ResourceConnectionsType, V as VendorType, f as VendorInfoType, U as UnregisteredVendorType, g as UserLicenceType } from '../global-E8ve8XPP.mjs';
5
+ import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType, c as AppSettingsType } from '../post-C5EZIi9r.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
3
  import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceActivityType } from '../resourceActivities-CVwxvGeC.js';
4
- import { E as EventListItemType, b as EventType, c as EventInfoType, d as RelationType, e as ResourceConnectionsType, V as VendorType, f as VendorInfoType, U as UnregisteredVendorType, g as UserLicenceType } from '../global-BJbi-2I6.js';
5
- import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType, c as AppSettingsType } from '../post-DPNd79g3.js';
4
+ import { E as EventListItemType, b as EventType, c as EventInfoType, d as RelationType, e as ResourceConnectionsType, V as VendorType, f as VendorInfoType, U as UnregisteredVendorType, g as UserLicenceType } from '../global-BsFcXLgV.js';
5
+ import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus, S as SubscriptionStatusData, P as PartnerType, a as PostType, b as EnumPostType, c as AppSettingsType } from '../post-BZFDbJZT.js';
6
6
  import 'react-hook-form';
7
7
 
8
8
  declare const useAdminUpdateResourceType: () => {
@@ -616,9 +616,9 @@ var eventInfoSchema = yup2.object().shape({
616
616
  // src/yupSchema/vendor.ts
617
617
  var yup3 = __toESM(require("yup"));
618
618
  var vendroMenuSchema = yup3.object().shape({
619
- description: yup3.string().trim().max(100).optional().nullable(),
619
+ description: yup3.string().trim().optional().nullable(),
620
620
  price: yup3.number().transform((value, originalValue) => originalValue === "" ? null : value).min(0).optional().nullable(),
621
- title: yup3.string().trim().max(50).optional().nullable()
621
+ title: yup3.string().trim().optional().nullable()
622
622
  });
623
623
  var vendorSchema = globalResourceSchema.shape({
624
624
  categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),