@timardex/cluemart-shared 1.2.7 → 1.2.8

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, EnumUserLicence, EnumUserRole } from './enums/index.js';
2
- import { C as Category, v as CreateFormData, n as ResourceImageType, P as PartnerType, o as SocialMediaType } from './global-Clh5l5eo.js';
2
+ import { C as Category, w as CreateFormData, o as ResourceImageType, P as PartnerType, p as SocialMediaType } from './global-B42Tds9R.js';
3
3
 
4
4
  interface TestersFormData {
5
5
  categories?: Category[] | null;
@@ -1,5 +1,5 @@
1
1
  import { EnumOSPlatform, EnumResourceType, EnumUserLicence, EnumUserRole } from './enums/index.mjs';
2
- import { C as Category, v as CreateFormData, n as ResourceImageType, P as PartnerType, o as SocialMediaType } from './global-CNiNcYkF.mjs';
2
+ import { C as Category, w as CreateFormData, o as ResourceImageType, P as PartnerType, p as SocialMediaType } from './global-B87BDXpD.mjs';
3
3
 
4
4
  interface TestersFormData {
5
5
  categories?: Category[] | null;
@@ -1,4 +1,4 @@
1
- import { v as CreateFormData } from './global-CNiNcYkF.mjs';
1
+ import { w as CreateFormData } from './global-B87BDXpD.mjs';
2
2
 
3
3
  type ContactUsFormData = {
4
4
  email: string;
@@ -1,4 +1,4 @@
1
- import { v as CreateFormData } from './global-Clh5l5eo.js';
1
+ import { w as CreateFormData } from './global-B42Tds9R.js';
2
2
 
3
3
  type ContactUsFormData = {
4
4
  email: string;
@@ -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-CNiNcYkF.mjs';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-B87BDXpD.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-Clh5l5eo.js';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-B42Tds9R.js';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.js';
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { FieldValues, Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
2
- import { EnumResourceType, EnumInviteStatus, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumSocialMedia, EnumUserLicence } from './enums/index.js';
2
+ import { EnumResourceType, EnumInviteStatus, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumUserLicence, EnumSocialMedia } from './enums/index.js';
3
3
 
4
4
  type RelationDate = {
5
5
  lastUpdateBy: {
@@ -53,7 +53,6 @@ type Requirement = {
53
53
  interface EventInfoFormData {
54
54
  _id?: string;
55
55
  applicationDeadlineHours: number;
56
- contactDetails?: ResourceContactDetailsType | null;
57
56
  dateTime: DateTimeWithPriceType[];
58
57
  eventId: string;
59
58
  packInTime: number;
@@ -126,7 +125,6 @@ type VendorInfoFormData = {
126
125
  liabilityInsurance: boolean;
127
126
  foodBeverageLicense: boolean;
128
127
  };
129
- contactDetails?: ResourceContactDetailsType | null;
130
128
  documents?: ResourceImageType[] | null;
131
129
  documentsUpload?: ResourceImageType[] | null;
132
130
  product: {
@@ -175,6 +173,11 @@ interface VendorWithConnectionDatesType extends VendorType {
175
173
  type Nullable<T> = {
176
174
  [K in keyof T]: T[K] | null | undefined;
177
175
  };
176
+ type ResourceContactDetailsType = {
177
+ email?: string | null;
178
+ landlinePhone?: string | null;
179
+ mobilePhone?: string | null;
180
+ };
178
181
  type ResourceImageType = {
179
182
  source: string;
180
183
  title: string;
@@ -196,6 +199,7 @@ type OwnerType = {
196
199
  interface BaseResourceTypeFormData {
197
200
  _id?: string;
198
201
  active: boolean;
202
+ contactDetails?: ResourceContactDetailsType | null;
199
203
  cover: ResourceImageType;
200
204
  coverUpload?: ResourceImageType | null;
201
205
  description: string;
@@ -204,11 +208,11 @@ interface BaseResourceTypeFormData {
204
208
  logo?: ResourceImageType | null;
205
209
  logoUpload?: ResourceImageType | null;
206
210
  name: string;
211
+ owner?: OwnerType | null;
212
+ partners?: PartnerType[] | null;
207
213
  promoCodes?: string[] | null;
208
214
  region: string;
209
215
  socialMedia?: SocialMediaType[] | null;
210
- partners?: PartnerType[] | null;
211
- owner?: OwnerType | null;
212
216
  }
213
217
  type PosterUsageType = {
214
218
  month: string;
@@ -310,10 +314,5 @@ interface CreateFormData<T extends FieldValues> {
310
314
  setValue: UseFormSetValue<T>;
311
315
  watch: UseFormWatch<T>;
312
316
  }
313
- type ResourceContactDetailsType = {
314
- email?: string | null;
315
- landlinePhone?: string | null;
316
- mobilePhone?: string | null;
317
- };
318
317
 
319
- export type { RelationDate as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventType as E, FormField as F, GeocodeLocation as G, VendorLocation as H, ImageObjectType as I, VendorMenuType as J, VendorAttributes as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PartnerType as P, VendorWithConnectionDatesType as Q, Requirement as R, StallType as S, VendorType as V, FormDateField as a, EventInfoType as b, RelationType as c, ResourceConnectionsType as d, VendorInfoType as e, VendorFormData as f, CreateVendorFormData as g, VendorInfoFormData as h, CreateVendorInfoFormData as i, EventFormData as j, CreateEventFormData as k, EventInfoFormData as l, CreateEventInfoFormData as m, ResourceImageType as n, SocialMediaType as o, OwnerType as p, PosterUsageType as q, BaseResourceType as r, Region as s, SubcategoryItems as t, Subcategory as u, CreateFormData as v, ResourceContactDetailsType as w, DateTimeWithPriceType as x, PaymentInfoType as y, EventWithConnectionDatesType as z };
318
+ export type { RelationDate as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventType as E, FormField as F, GeocodeLocation as G, VendorLocation as H, ImageObjectType as I, VendorMenuType as J, VendorAttributes as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PartnerType as P, VendorWithConnectionDatesType as Q, Requirement as R, StallType as S, VendorType as V, FormDateField as a, EventInfoType as b, RelationType as c, ResourceConnectionsType as d, VendorInfoType as e, VendorFormData as f, CreateVendorFormData as g, VendorInfoFormData as h, CreateVendorInfoFormData as i, EventFormData as j, CreateEventFormData as k, EventInfoFormData as l, CreateEventInfoFormData as m, ResourceContactDetailsType as n, ResourceImageType as o, SocialMediaType as p, OwnerType as q, PosterUsageType as r, BaseResourceType as s, Region as t, SubcategoryItems as u, Subcategory as v, CreateFormData as w, DateTimeWithPriceType as x, PaymentInfoType as y, EventWithConnectionDatesType as z };
@@ -1,5 +1,5 @@
1
1
  import { FieldValues, Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
2
- import { EnumResourceType, EnumInviteStatus, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumSocialMedia, EnumUserLicence } from './enums/index.mjs';
2
+ import { EnumResourceType, EnumInviteStatus, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumUserLicence, EnumSocialMedia } from './enums/index.mjs';
3
3
 
4
4
  type RelationDate = {
5
5
  lastUpdateBy: {
@@ -53,7 +53,6 @@ type Requirement = {
53
53
  interface EventInfoFormData {
54
54
  _id?: string;
55
55
  applicationDeadlineHours: number;
56
- contactDetails?: ResourceContactDetailsType | null;
57
56
  dateTime: DateTimeWithPriceType[];
58
57
  eventId: string;
59
58
  packInTime: number;
@@ -126,7 +125,6 @@ type VendorInfoFormData = {
126
125
  liabilityInsurance: boolean;
127
126
  foodBeverageLicense: boolean;
128
127
  };
129
- contactDetails?: ResourceContactDetailsType | null;
130
128
  documents?: ResourceImageType[] | null;
131
129
  documentsUpload?: ResourceImageType[] | null;
132
130
  product: {
@@ -175,6 +173,11 @@ interface VendorWithConnectionDatesType extends VendorType {
175
173
  type Nullable<T> = {
176
174
  [K in keyof T]: T[K] | null | undefined;
177
175
  };
176
+ type ResourceContactDetailsType = {
177
+ email?: string | null;
178
+ landlinePhone?: string | null;
179
+ mobilePhone?: string | null;
180
+ };
178
181
  type ResourceImageType = {
179
182
  source: string;
180
183
  title: string;
@@ -196,6 +199,7 @@ type OwnerType = {
196
199
  interface BaseResourceTypeFormData {
197
200
  _id?: string;
198
201
  active: boolean;
202
+ contactDetails?: ResourceContactDetailsType | null;
199
203
  cover: ResourceImageType;
200
204
  coverUpload?: ResourceImageType | null;
201
205
  description: string;
@@ -204,11 +208,11 @@ interface BaseResourceTypeFormData {
204
208
  logo?: ResourceImageType | null;
205
209
  logoUpload?: ResourceImageType | null;
206
210
  name: string;
211
+ owner?: OwnerType | null;
212
+ partners?: PartnerType[] | null;
207
213
  promoCodes?: string[] | null;
208
214
  region: string;
209
215
  socialMedia?: SocialMediaType[] | null;
210
- partners?: PartnerType[] | null;
211
- owner?: OwnerType | null;
212
216
  }
213
217
  type PosterUsageType = {
214
218
  month: string;
@@ -310,10 +314,5 @@ interface CreateFormData<T extends FieldValues> {
310
314
  setValue: UseFormSetValue<T>;
311
315
  watch: UseFormWatch<T>;
312
316
  }
313
- type ResourceContactDetailsType = {
314
- email?: string | null;
315
- landlinePhone?: string | null;
316
- mobilePhone?: string | null;
317
- };
318
317
 
319
- export type { RelationDate as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventType as E, FormField as F, GeocodeLocation as G, VendorLocation as H, ImageObjectType as I, VendorMenuType as J, VendorAttributes as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PartnerType as P, VendorWithConnectionDatesType as Q, Requirement as R, StallType as S, VendorType as V, FormDateField as a, EventInfoType as b, RelationType as c, ResourceConnectionsType as d, VendorInfoType as e, VendorFormData as f, CreateVendorFormData as g, VendorInfoFormData as h, CreateVendorInfoFormData as i, EventFormData as j, CreateEventFormData as k, EventInfoFormData as l, CreateEventInfoFormData as m, ResourceImageType as n, SocialMediaType as o, OwnerType as p, PosterUsageType as q, BaseResourceType as r, Region as s, SubcategoryItems as t, Subcategory as u, CreateFormData as v, ResourceContactDetailsType as w, DateTimeWithPriceType as x, PaymentInfoType as y, EventWithConnectionDatesType as z };
318
+ export type { RelationDate as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventType as E, FormField as F, GeocodeLocation as G, VendorLocation as H, ImageObjectType as I, VendorMenuType as J, VendorAttributes as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PartnerType as P, VendorWithConnectionDatesType as Q, Requirement as R, StallType as S, VendorType as V, FormDateField as a, EventInfoType as b, RelationType as c, ResourceConnectionsType as d, VendorInfoType as e, VendorFormData as f, CreateVendorFormData as g, VendorInfoFormData as h, CreateVendorInfoFormData as i, EventFormData as j, CreateEventFormData as k, EventInfoFormData as l, CreateEventInfoFormData as m, ResourceContactDetailsType as n, ResourceImageType as o, SocialMediaType as p, OwnerType as q, PosterUsageType as r, BaseResourceType as s, Region as t, SubcategoryItems as u, Subcategory as v, CreateFormData as w, DateTimeWithPriceType as x, PaymentInfoType as y, EventWithConnectionDatesType as z };
@@ -226,6 +226,13 @@ var STALL_TYPE_FIELDS_FRAGMENT = import_client2.gql`
226
226
  }
227
227
  }
228
228
  `;
229
+ var CONTACT_DETAILS_FIELDS_FRAGMENT = import_client2.gql`
230
+ fragment ContactDetailsFields on ContactDetailsType {
231
+ email
232
+ landlinePhone
233
+ mobilePhone
234
+ }
235
+ `;
229
236
 
230
237
  // src/graphql/queries/event.ts
231
238
  var EVENT_DATETIME_FIELDS_FRAGMENT = import_client3.gql`
@@ -252,11 +259,6 @@ var EVENT_INFO = import_client3.gql`
252
259
  fragment EventInfoFields on EventInfoType {
253
260
  _id
254
261
  applicationDeadlineHours
255
- contactDetails {
256
- email
257
- landlinePhone
258
- mobilePhone
259
- }
260
262
  dateTime {
261
263
  endDate
262
264
  endTime
@@ -292,6 +294,9 @@ var EVENT = import_client3.gql`
292
294
  ...ResourceImageFields
293
295
  }
294
296
  createdAt
297
+ contactDetails {
298
+ ...ContactDetailsFields
299
+ }
295
300
  dateTime {
296
301
  ...EventDateTimeFields
297
302
  }
@@ -337,6 +342,7 @@ var EVENT = import_client3.gql`
337
342
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
338
343
  ${POSTER_USAGE_FIELDS_FRAGMENT}
339
344
  ${PARTNER_FIELDS_FRAGMENT}
345
+ ${CONTACT_DETAILS_FIELDS_FRAGMENT}
340
346
  `;
341
347
  var GET_EVENTS = import_client3.gql`
342
348
  query getEvents {
@@ -431,6 +437,9 @@ var VENDOR = import_client4.gql`
431
437
  categories {
432
438
  ...CategoryFields
433
439
  }
440
+ contactDetails {
441
+ ...ContactDetailsFields
442
+ }
434
443
  cover {
435
444
  ...ResourceImageFields
436
445
  }
@@ -484,6 +493,7 @@ var VENDOR = import_client4.gql`
484
493
  ${POSTER_USAGE_FIELDS_FRAGMENT}
485
494
  ${PARTNER_FIELDS_FRAGMENT}
486
495
  ${VENDOR_MENU_FIELDS_FRAGMENT}
496
+ ${CONTACT_DETAILS_FIELDS_FRAGMENT}
487
497
  `;
488
498
  var VENDOR_ATTRIBUTES_FRAGMENT = import_client4.gql`
489
499
  fragment VendorAttributesFields on VendorAttributesType {
@@ -498,11 +508,6 @@ var VENDOR_INFO = import_client4.gql`
498
508
  foodBeverageLicense
499
509
  liabilityInsurance
500
510
  }
501
- contactDetails {
502
- email
503
- landlinePhone
504
- mobilePhone
505
- }
506
511
  documents {
507
512
  ...ResourceImageFields
508
513
  }
@@ -1522,6 +1527,9 @@ var GET_RESOURCE_CONNECTIONS = import_client29.gql`
1522
1527
  cover {
1523
1528
  ...ResourceImageFields
1524
1529
  }
1530
+ contactDetails {
1531
+ ...ContactDetailsFields
1532
+ }
1525
1533
  createdAt
1526
1534
  dateTime {
1527
1535
  ...EventDateTimeFields
@@ -1577,6 +1585,9 @@ var GET_RESOURCE_CONNECTIONS = import_client29.gql`
1577
1585
  categories {
1578
1586
  ...CategoryFields
1579
1587
  }
1588
+ contactDetails {
1589
+ ...ContactDetailsFields
1590
+ }
1580
1591
  cover {
1581
1592
  ...ResourceImageFields
1582
1593
  }
@@ -1638,6 +1649,7 @@ var GET_RESOURCE_CONNECTIONS = import_client29.gql`
1638
1649
  ${POSTER_USAGE_FIELDS_FRAGMENT}
1639
1650
  ${PARTNER_FIELDS_FRAGMENT}
1640
1651
  ${VENDOR_MENU_FIELDS_FRAGMENT}
1652
+ ${CONTACT_DETAILS_FIELDS_FRAGMENT}
1641
1653
  `;
1642
1654
 
1643
1655
  // src/graphql/mutations/relation.ts