@timardex/cluemart-shared 1.1.88 → 1.1.90

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, u as CreateFormData, n as ResourceImageType, o as SocialMediaType } from './global-wedhnwEi.js';
2
+ import { C as Category, v as CreateFormData, n as ResourceImageType, P as PartnerType, o as SocialMediaType } from './global-CpzUMd9V.js';
3
3
 
4
4
  interface TestersFormData {
5
5
  categories: Category[] | null;
@@ -33,11 +33,6 @@ type UserFormData = {
33
33
  role: EnumUserRole;
34
34
  };
35
35
  type CreateUserFormData = CreateFormData<UserFormData>;
36
- type UserPartnerType = {
37
- resourceId: string;
38
- resourceType: EnumUserRole;
39
- licence: EnumUserLicence;
40
- };
41
36
  interface UserType {
42
37
  _id: string;
43
38
  active: boolean;
@@ -57,7 +52,7 @@ interface UserType {
57
52
  password: string;
58
53
  platform: EnumOSPlatform | null;
59
54
  preferredRegion: string;
60
- partners?: UserPartnerType[] | null;
55
+ partners?: PartnerType[] | null;
61
56
  refreshTokenExpiry: {
62
57
  token: string;
63
58
  expiresAt: string;
@@ -115,4 +110,4 @@ interface AdType extends AdFormData {
115
110
  updatedAt: Date;
116
111
  }
117
112
 
118
- export { type AdType as A, type CreateUserFormData as C, EnumAdStatus as E, type TesterType as T, type UserType as U, type UserFormData as a, type TestersFormData as b, type CreateTestersFormData as c, type AdFormData as d, type CreateAdFormData as e, type UserPartnerType as f, EnumAdShowOn as g, EnumAdType as h, EnumAdStyle as i };
113
+ export { type AdType as A, type CreateUserFormData as C, EnumAdStatus as E, type TesterType as T, type UserType as U, type UserFormData as a, type TestersFormData as b, type CreateTestersFormData as c, type AdFormData as d, type CreateAdFormData as e, EnumAdShowOn as f, EnumAdType as g, EnumAdStyle as h };
@@ -1,5 +1,5 @@
1
1
  import { EnumOSPlatform, EnumResourceType, EnumUserLicence, EnumUserRole } from './enums/index.mjs';
2
- import { C as Category, u as CreateFormData, n as ResourceImageType, o as SocialMediaType } from './global-BFw_3JRE.mjs';
2
+ import { C as Category, v as CreateFormData, n as ResourceImageType, P as PartnerType, o as SocialMediaType } from './global-DM2y8vJE.mjs';
3
3
 
4
4
  interface TestersFormData {
5
5
  categories: Category[] | null;
@@ -33,11 +33,6 @@ type UserFormData = {
33
33
  role: EnumUserRole;
34
34
  };
35
35
  type CreateUserFormData = CreateFormData<UserFormData>;
36
- type UserPartnerType = {
37
- resourceId: string;
38
- resourceType: EnumUserRole;
39
- licence: EnumUserLicence;
40
- };
41
36
  interface UserType {
42
37
  _id: string;
43
38
  active: boolean;
@@ -57,7 +52,7 @@ interface UserType {
57
52
  password: string;
58
53
  platform: EnumOSPlatform | null;
59
54
  preferredRegion: string;
60
- partners?: UserPartnerType[] | null;
55
+ partners?: PartnerType[] | null;
61
56
  refreshTokenExpiry: {
62
57
  token: string;
63
58
  expiresAt: string;
@@ -115,4 +110,4 @@ interface AdType extends AdFormData {
115
110
  updatedAt: Date;
116
111
  }
117
112
 
118
- export { type AdType as A, type CreateUserFormData as C, EnumAdStatus as E, type TesterType as T, type UserType as U, type UserFormData as a, type TestersFormData as b, type CreateTestersFormData as c, type AdFormData as d, type CreateAdFormData as e, type UserPartnerType as f, EnumAdShowOn as g, EnumAdType as h, EnumAdStyle as i };
113
+ export { type AdType as A, type CreateUserFormData as C, EnumAdStatus as E, type TesterType as T, type UserType as U, type UserFormData as a, type TestersFormData as b, type CreateTestersFormData as c, type AdFormData as d, type CreateAdFormData as e, EnumAdShowOn as f, EnumAdType as g, EnumAdStyle as h };
@@ -1,4 +1,4 @@
1
- import { u as CreateFormData } from './global-wedhnwEi.js';
1
+ import { v as CreateFormData } from './global-CpzUMd9V.js';
2
2
  import { EnumOSPlatform } from './enums/index.js';
3
3
 
4
4
  type ContactUsFormData = {
@@ -1,4 +1,4 @@
1
- import { u as CreateFormData } from './global-BFw_3JRE.mjs';
1
+ import { v as CreateFormData } from './global-DM2y8vJE.mjs';
2
2
  import { EnumOSPlatform } from './enums/index.mjs';
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-BFw_3JRE.mjs';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-DM2y8vJE.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-wedhnwEi.js';
1
+ import { F as FormField, a as FormDateField, O as OptionItem, R as Requirement, S as StallType, C as Category } from '../global-CpzUMd9V.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, EnumSocialMedia } from './enums/index.mjs';
2
+ import { EnumResourceType, EnumInviteStatus, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumSocialMedia, EnumUserLicence } from './enums/index.js';
3
3
 
4
4
  type RelationDate = {
5
5
  lastUpdateBy: {
@@ -158,6 +158,12 @@ type SocialMediaType = {
158
158
  name?: EnumSocialMedia;
159
159
  link?: string;
160
160
  };
161
+ type PartnerType = {
162
+ email: string;
163
+ resourceId: string;
164
+ resourceType: EnumResourceType;
165
+ licence: EnumUserLicence;
166
+ };
161
167
  interface BaseResourceTypeFormData {
162
168
  _id?: string;
163
169
  active: boolean;
@@ -172,9 +178,7 @@ interface BaseResourceTypeFormData {
172
178
  promoCode?: string | null;
173
179
  region: string;
174
180
  socialMedia?: SocialMediaType[] | null;
175
- partners?: {
176
- email: string;
177
- }[] | null;
181
+ partners?: PartnerType[] | null;
178
182
  }
179
183
  type OwnerType = {
180
184
  email: string;
@@ -286,4 +290,4 @@ type ResourceContactDetailsType = {
286
290
  mobilePhone?: string | null;
287
291
  };
288
292
 
289
- export type { VendorLocation as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventType as E, FormField as F, GeocodeLocation as G, VendorAttributes as H, ImageObjectType as I, VendorWithConnectionDatesType as J, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, 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, BaseResourceType as q, Region as r, SubcategoryItems as s, Subcategory as t, CreateFormData as u, ResourceContactDetailsType as v, DateTimeWithPriceType as w, PaymentInfoType as x, EventWithConnectionDatesType as y, RelationDate as z };
293
+ 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, VendorAttributes as J, VendorWithConnectionDatesType as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PartnerType as P, 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 };
@@ -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, EnumSocialMedia } from './enums/index.js';
2
+ import { EnumResourceType, EnumInviteStatus, EnumRelationResource, EnumEventType, EnumPaymentMethod, EnumVendorType, EnumSocialMedia, EnumUserLicence } from './enums/index.mjs';
3
3
 
4
4
  type RelationDate = {
5
5
  lastUpdateBy: {
@@ -158,6 +158,12 @@ type SocialMediaType = {
158
158
  name?: EnumSocialMedia;
159
159
  link?: string;
160
160
  };
161
+ type PartnerType = {
162
+ email: string;
163
+ resourceId: string;
164
+ resourceType: EnumResourceType;
165
+ licence: EnumUserLicence;
166
+ };
161
167
  interface BaseResourceTypeFormData {
162
168
  _id?: string;
163
169
  active: boolean;
@@ -172,9 +178,7 @@ interface BaseResourceTypeFormData {
172
178
  promoCode?: string | null;
173
179
  region: string;
174
180
  socialMedia?: SocialMediaType[] | null;
175
- partners?: {
176
- email: string;
177
- }[] | null;
181
+ partners?: PartnerType[] | null;
178
182
  }
179
183
  type OwnerType = {
180
184
  email: string;
@@ -286,4 +290,4 @@ type ResourceContactDetailsType = {
286
290
  mobilePhone?: string | null;
287
291
  };
288
292
 
289
- export type { VendorLocation as A, BaseResourceTypeFormData as B, Category as C, DateTimeType as D, EventType as E, FormField as F, GeocodeLocation as G, VendorAttributes as H, ImageObjectType as I, VendorWithConnectionDatesType as J, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PosterUsageType as P, 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, BaseResourceType as q, Region as r, SubcategoryItems as s, Subcategory as t, CreateFormData as u, ResourceContactDetailsType as v, DateTimeWithPriceType as w, PaymentInfoType as x, EventWithConnectionDatesType as y, RelationDate as z };
293
+ 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, VendorAttributes as J, VendorWithConnectionDatesType as K, LocationType as L, MapMultiLocation as M, Nullable as N, OptionItem as O, PartnerType as P, 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 };
@@ -161,6 +161,14 @@ var CATEGORY_FIELDS_FRAGMENT = import_client2.gql`
161
161
  }
162
162
  }
163
163
  `;
164
+ var PARTNER_FIELDS_FRAGMENT = import_client2.gql`
165
+ fragment PartnerFields on PartnerType {
166
+ email
167
+ resourceId
168
+ resourceType
169
+ licence
170
+ }
171
+ `;
164
172
  var USER_FIELDS_FRAGMENT = import_client2.gql`
165
173
  fragment UserFields on UserType {
166
174
  _id
@@ -183,9 +191,7 @@ var USER_FIELDS_FRAGMENT = import_client2.gql`
183
191
  platform
184
192
  preferredRegion
185
193
  partners {
186
- resourceId
187
- resourceType
188
- licence
194
+ ...PartnerFields
189
195
  }
190
196
  refreshToken
191
197
  role
@@ -193,6 +199,7 @@ var USER_FIELDS_FRAGMENT = import_client2.gql`
193
199
  updatedAt
194
200
  }
195
201
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
202
+ ${PARTNER_FIELDS_FRAGMENT}
196
203
  `;
197
204
  var STALL_TYPE_FIELDS_FRAGMENT = import_client2.gql`
198
205
  fragment StallTypeFields on StallTypeType {
@@ -293,7 +300,7 @@ var EVENT = import_client3.gql`
293
300
  ...OwnerFields
294
301
  }
295
302
  partners {
296
- email
303
+ ...PartnerFields
297
304
  }
298
305
  promoCode
299
306
  provider
@@ -315,6 +322,7 @@ var EVENT = import_client3.gql`
315
322
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
316
323
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
317
324
  ${POSTER_USAGE_FIELDS_FRAGMENT}
325
+ ${PARTNER_FIELDS_FRAGMENT}
318
326
  `;
319
327
  var GET_EVENTS = import_client3.gql`
320
328
  query getEvents {
@@ -423,7 +431,7 @@ var VENDOR = import_client4.gql`
423
431
  ...OwnerFields
424
432
  }
425
433
  partners {
426
- email
434
+ ...PartnerFields
427
435
  }
428
436
  products
429
437
  promoCode
@@ -446,6 +454,7 @@ var VENDOR = import_client4.gql`
446
454
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
447
455
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
448
456
  ${POSTER_USAGE_FIELDS_FRAGMENT}
457
+ ${PARTNER_FIELDS_FRAGMENT}
449
458
  `;
450
459
  var VENDOR_INFO = import_client4.gql`
451
460
  fragment VendorInfoFields on VendorInfoType {
@@ -1465,9 +1474,6 @@ var GET_RESOURCE_CONNECTIONS = import_client29.gql`
1465
1474
  events {
1466
1475
  _id
1467
1476
  active
1468
- partners {
1469
- email
1470
- }
1471
1477
  adIds
1472
1478
  cover {
1473
1479
  ...ResourceImageFields
@@ -1494,6 +1500,9 @@ var GET_RESOURCE_CONNECTIONS = import_client29.gql`
1494
1500
  owner {
1495
1501
  ...OwnerFields
1496
1502
  }
1503
+ partners {
1504
+ ...PartnerFields
1505
+ }
1497
1506
  promoCode
1498
1507
  provider
1499
1508
  posterUsage {
@@ -1514,9 +1523,6 @@ var GET_RESOURCE_CONNECTIONS = import_client29.gql`
1514
1523
  vendors {
1515
1524
  _id
1516
1525
  active
1517
- partners {
1518
- email
1519
- }
1520
1526
  adIds
1521
1527
  vendorInfoId
1522
1528
  categories {
@@ -1548,6 +1554,9 @@ var GET_RESOURCE_CONNECTIONS = import_client29.gql`
1548
1554
  owner {
1549
1555
  ...OwnerFields
1550
1556
  }
1557
+ partners {
1558
+ ...PartnerFields
1559
+ }
1551
1560
  products
1552
1561
  promoCode
1553
1562
  posterUsage {
@@ -1577,6 +1586,7 @@ var GET_RESOURCE_CONNECTIONS = import_client29.gql`
1577
1586
  ${RELATION_DATES_FRAGMENT}
1578
1587
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
1579
1588
  ${POSTER_USAGE_FIELDS_FRAGMENT}
1589
+ ${PARTNER_FIELDS_FRAGMENT}
1580
1590
  `;
1581
1591
 
1582
1592
  // src/graphql/mutations/relation.ts