@timardex/cluemart-shared 1.4.11 → 1.4.12

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,4 @@
1
- import { K as CreateFormData, T as TermsAgreement } from './global-x5DE08tD.js';
2
- import { EnumOSPlatform } from './enums/index.js';
1
+ import { K as CreateFormData, Q as AppMetaDataType, T as TermsAgreement } from './global-DhBPsOLv.mjs';
3
2
 
4
3
  type ContactUsFormData = {
5
4
  email: string;
@@ -18,7 +17,7 @@ type LoginFormData = {
18
17
  email: string;
19
18
  isAdminPage?: boolean;
20
19
  password: string;
21
- platform?: EnumOSPlatform;
20
+ appMetadata?: AppMetaDataType | null;
22
21
  };
23
22
  type CreateLoginFormData = CreateFormData<LoginFormData>;
24
23
  type RegisterFormData = {
@@ -26,7 +25,7 @@ type RegisterFormData = {
26
25
  firstName: string;
27
26
  lastName: string;
28
27
  password: string;
29
- platform?: EnumOSPlatform;
28
+ appMetadata?: AppMetaDataType | null;
30
29
  preferredRegion: string;
31
30
  termsAgreement?: TermsAgreement | null;
32
31
  };
@@ -1,5 +1,4 @@
1
- import { K as CreateFormData, T as TermsAgreement } from './global-D5dNxa5e.mjs';
2
- import { EnumOSPlatform } from './enums/index.mjs';
1
+ import { K as CreateFormData, Q as AppMetaDataType, T as TermsAgreement } from './global-DdNUoIKL.js';
3
2
 
4
3
  type ContactUsFormData = {
5
4
  email: string;
@@ -18,7 +17,7 @@ type LoginFormData = {
18
17
  email: string;
19
18
  isAdminPage?: boolean;
20
19
  password: string;
21
- platform?: EnumOSPlatform;
20
+ appMetadata?: AppMetaDataType | null;
22
21
  };
23
22
  type CreateLoginFormData = CreateFormData<LoginFormData>;
24
23
  type RegisterFormData = {
@@ -26,7 +25,7 @@ type RegisterFormData = {
26
25
  firstName: string;
27
26
  lastName: string;
28
27
  password: string;
29
- platform?: EnumOSPlatform;
28
+ appMetadata?: AppMetaDataType | null;
30
29
  preferredRegion: string;
31
30
  termsAgreement?: TermsAgreement | null;
32
31
  };
@@ -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-D5dNxa5e.mjs';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-DhBPsOLv.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-x5DE08tD.js';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-DdNUoIKL.js';
2
2
  import 'react-hook-form';
3
3
  import '../enums/index.js';
4
4
 
@@ -1,5 +1,5 @@
1
1
  import { FieldValues, Control, FormState, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
2
- import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumEventDateStatus, EnumUserLicence, EnumSocialMedia } from './enums/index.mjs';
2
+ import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumEventDateStatus, EnumUserLicence, EnumSocialMedia, EnumOSPlatform } from './enums/index.js';
3
3
 
4
4
  type RelationDate = {
5
5
  dateTime: DateTimeType & {
@@ -394,5 +394,10 @@ interface CreateFormData<T extends FieldValues> {
394
394
  setValue: UseFormSetValue<T>;
395
395
  watch: UseFormWatch<T>;
396
396
  }
397
+ type AppMetaDataType = {
398
+ appVersion: string | null;
399
+ platform: EnumOSPlatform | null;
400
+ buildNumber: string | null;
401
+ };
397
402
 
398
- export type { CreateUnregisteredVendorFormData as $, AssociateType as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventListItemType as E, FormField as F, GeocodeLocation as G, SubcategoryItems as H, Subcategory as I, ImageObjectType as J, CreateFormData as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, DateTimeWithPriceType as Q, Requirement as R, StallType as S, TermsAgreement as T, UnregisteredVendorType as U, VendorType as V, PaymentInfoType as W, VendorLocation as X, VendorMenuType as Y, VendorAttributes as Z, UnregisteredVendorInvitationType as _, 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, LocationGeoType as x, Region as y, EventStatusType as z };
403
+ export type { UnregisteredVendorInvitationType as $, AssociateType as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventListItemType as E, FormField as F, GeocodeLocation as G, SubcategoryItems as H, Subcategory as I, ImageObjectType as J, CreateFormData as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, AppMetaDataType as Q, Requirement as R, StallType as S, TermsAgreement as T, UnregisteredVendorType as U, VendorType as V, DateTimeWithPriceType as W, PaymentInfoType as X, VendorLocation as Y, VendorMenuType as Z, VendorAttributes as _, FormDateField as a, CreateUnregisteredVendorFormData as a0, 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, LocationGeoType as x, Region as y, EventStatusType as z };
@@ -1,5 +1,5 @@
1
1
  import { FieldValues, Control, FormState, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
2
- import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumEventDateStatus, EnumUserLicence, EnumSocialMedia } from './enums/index.js';
2
+ import { EnumInviteStatus, EnumResourceType, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumFoodFlavor, EnumEventDateStatus, EnumUserLicence, EnumSocialMedia, EnumOSPlatform } from './enums/index.mjs';
3
3
 
4
4
  type RelationDate = {
5
5
  dateTime: DateTimeType & {
@@ -394,5 +394,10 @@ interface CreateFormData<T extends FieldValues> {
394
394
  setValue: UseFormSetValue<T>;
395
395
  watch: UseFormWatch<T>;
396
396
  }
397
+ type AppMetaDataType = {
398
+ appVersion: string | null;
399
+ platform: EnumOSPlatform | null;
400
+ buildNumber: string | null;
401
+ };
397
402
 
398
- export type { CreateUnregisteredVendorFormData as $, AssociateType as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventListItemType as E, FormField as F, GeocodeLocation as G, SubcategoryItems as H, Subcategory as I, ImageObjectType as J, CreateFormData as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, DateTimeWithPriceType as Q, Requirement as R, StallType as S, TermsAgreement as T, UnregisteredVendorType as U, VendorType as V, PaymentInfoType as W, VendorLocation as X, VendorMenuType as Y, VendorAttributes as Z, UnregisteredVendorInvitationType as _, 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, LocationGeoType as x, Region as y, EventStatusType as z };
403
+ export type { UnregisteredVendorInvitationType as $, AssociateType as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventListItemType as E, FormField as F, GeocodeLocation as G, SubcategoryItems as H, Subcategory as I, ImageObjectType as J, CreateFormData as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, AppMetaDataType as Q, Requirement as R, StallType as S, TermsAgreement as T, UnregisteredVendorType as U, VendorType as V, DateTimeWithPriceType as W, PaymentInfoType as X, VendorLocation as Y, VendorMenuType as Z, VendorAttributes as _, FormDateField as a, CreateUnregisteredVendorFormData as a0, 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, LocationGeoType as x, Region as y, EventStatusType as z };
@@ -300,35 +300,44 @@ var USER_FIELDS_FRAGMENT = import_client2.gql`
300
300
  fragment UserFields on UserType {
301
301
  _id
302
302
  active
303
+ appMetadata {
304
+ appVersion
305
+ platform
306
+ buildNumber
307
+ }
303
308
  associates {
304
309
  ...AssociatesFields
305
310
  }
306
- avatar {
307
- ...ResourceImageFields
308
- }
309
311
  createdAt
310
312
  deletedAt
311
- email
312
- events
313
- firstName
314
313
  isTester
315
- lastName
316
314
  licences {
317
315
  ...LicenceFields
318
316
  }
319
- partner
320
- platform
321
- preferredRegion
322
317
  refreshToken
323
- role
318
+ resources {
319
+ events
320
+ partner
321
+ vendor
322
+ }
324
323
  termsAgreement {
325
324
  ...TermsAgreementFields
326
325
  }
326
+ updatedAt
327
327
  userActivity {
328
328
  ...UserActivityFields
329
329
  }
330
- vendor
331
- updatedAt
330
+ userDetails {
331
+ avatar {
332
+ ...ResourceImageFields
333
+ }
334
+ email
335
+ firstName
336
+ lastName
337
+ password
338
+ preferredRegion
339
+ role
340
+ }
332
341
  }
333
342
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
334
343
  ${ASSOCIATES_FIELDS_FRAGMENT}