@timardex/cluemart-shared 1.2.95 → 1.2.97

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.
package/dist/index.d.mts CHANGED
@@ -268,88 +268,6 @@ type EventInfoType = Omit<EventInfoFormData, "_id"> & {
268
268
  _id: string;
269
269
  };
270
270
 
271
- type UserFormData = {
272
- _id?: string;
273
- active: boolean;
274
- avatar?: ResourceImageType | null;
275
- avatarUpload?: ResourceImageType | null;
276
- confirmPassword?: string | null;
277
- email: string;
278
- firstName: string;
279
- isTester: boolean;
280
- lastName: string;
281
- password?: string | null;
282
- platform?: EnumOSPlatform;
283
- preferredRegion: string;
284
- role: EnumUserRole;
285
- termsAgreement?: TermsAgreement | null;
286
- };
287
- type CreateUserFormData = CreateFormData<UserFormData>;
288
- type UserActivityEvent = {
289
- resourceId: string;
290
- dateTime: DateTimeType;
291
- };
292
- type StripeSubscription = {
293
- customerId?: string;
294
- subscriptionId?: string;
295
- status?: EnumSubscriptionStatus;
296
- currentPlan?: EnumUserLicence;
297
- startDate?: string;
298
- endDate?: string;
299
- };
300
- type SubscriptionStatusData = {
301
- subscriptionId: string | null;
302
- status: EnumSubscriptionStatus;
303
- priceId: string | null;
304
- currentPlan: EnumUserLicence | null;
305
- };
306
- type UserActivity = {
307
- favourites: {
308
- events: string[];
309
- vendors: string[];
310
- partners: string[];
311
- };
312
- going: {
313
- events: UserActivityEvent[];
314
- };
315
- interested: {
316
- events: UserActivityEvent[];
317
- };
318
- present: {
319
- events: UserActivityEvent[];
320
- };
321
- };
322
- type UserLicenceType = {
323
- expiryDate: Date;
324
- issuedDate: Date;
325
- licenceType: EnumUserLicence;
326
- };
327
- interface UserType {
328
- _id: string;
329
- active: boolean;
330
- associates?: AssociateType[] | null;
331
- avatar: ResourceImageType | null;
332
- createdAt: Date;
333
- deletedAt: Date | null;
334
- email: string;
335
- events: string[] | null;
336
- firstName: string;
337
- isTester: boolean;
338
- lastName: string;
339
- licences: UserLicenceType[] | null;
340
- partner: string | null;
341
- password: string;
342
- platform: EnumOSPlatform | null;
343
- preferredRegion: string;
344
- refreshToken: string | null;
345
- role: EnumUserRole;
346
- stripe?: StripeSubscription;
347
- termsAgreement?: TermsAgreement | null;
348
- updatedAt: Date | null;
349
- userActivity: UserActivity | null;
350
- vendor: string | null;
351
- }
352
-
353
271
  type VendorLocation = {
354
272
  dateTime: Nullable<DateTimeType> | null;
355
273
  description?: string | null;
@@ -468,6 +386,11 @@ type SocialMediaType = {
468
386
  name?: EnumSocialMedia;
469
387
  link?: string;
470
388
  };
389
+ type UserLicenceType = {
390
+ expiryDate: Date;
391
+ issuedDate: Date;
392
+ licenceType: EnumUserLicence;
393
+ };
471
394
  type AssociateType = {
472
395
  email: string;
473
396
  resourceId: string;
@@ -814,6 +737,83 @@ interface TesterType extends TesterFormData {
814
737
  updatedAt: Date | null;
815
738
  }
816
739
 
740
+ type UserFormData = {
741
+ _id?: string;
742
+ active: boolean;
743
+ avatar?: ResourceImageType | null;
744
+ avatarUpload?: ResourceImageType | null;
745
+ confirmPassword?: string | null;
746
+ email: string;
747
+ firstName: string;
748
+ isTester: boolean;
749
+ lastName: string;
750
+ password?: string | null;
751
+ platform?: EnumOSPlatform;
752
+ preferredRegion: string;
753
+ role: EnumUserRole;
754
+ termsAgreement?: TermsAgreement | null;
755
+ };
756
+ type CreateUserFormData = CreateFormData<UserFormData>;
757
+ type UserActivityEvent = {
758
+ resourceId: string;
759
+ dateTime: DateTimeType;
760
+ };
761
+ type StripeSubscription = {
762
+ customerId?: string;
763
+ subscriptionId?: string;
764
+ status?: EnumSubscriptionStatus;
765
+ currentPlan?: EnumUserLicence;
766
+ startDate?: string;
767
+ endDate?: string;
768
+ };
769
+ type SubscriptionStatusData = {
770
+ subscriptionId: string | null;
771
+ status: EnumSubscriptionStatus;
772
+ priceId: string | null;
773
+ currentPlan: EnumUserLicence | null;
774
+ };
775
+ type UserActivity = {
776
+ favourites: {
777
+ events: string[];
778
+ vendors: string[];
779
+ partners: string[];
780
+ };
781
+ going: {
782
+ events: UserActivityEvent[];
783
+ };
784
+ interested: {
785
+ events: UserActivityEvent[];
786
+ };
787
+ present: {
788
+ events: UserActivityEvent[];
789
+ };
790
+ };
791
+ interface UserType {
792
+ _id: string;
793
+ active: boolean;
794
+ associates?: AssociateType[] | null;
795
+ avatar: ResourceImageType | null;
796
+ createdAt: Date;
797
+ deletedAt: Date | null;
798
+ email: string;
799
+ events: string[] | null;
800
+ firstName: string;
801
+ isTester: boolean;
802
+ lastName: string;
803
+ licences: UserLicenceType[] | null;
804
+ partner: string | null;
805
+ password: string;
806
+ platform: EnumOSPlatform | null;
807
+ preferredRegion: string;
808
+ refreshToken: string | null;
809
+ role: EnumUserRole;
810
+ stripe?: StripeSubscription;
811
+ termsAgreement?: TermsAgreement | null;
812
+ updatedAt: Date | null;
813
+ userActivity: UserActivity | null;
814
+ vendor: string | null;
815
+ }
816
+
817
817
  declare enum EnumAdShowOn {
818
818
  EVENTS_PAGE = "Events_page",
819
819
  FRONT_PAGE = "Front_page",
package/dist/index.d.ts CHANGED
@@ -268,88 +268,6 @@ type EventInfoType = Omit<EventInfoFormData, "_id"> & {
268
268
  _id: string;
269
269
  };
270
270
 
271
- type UserFormData = {
272
- _id?: string;
273
- active: boolean;
274
- avatar?: ResourceImageType | null;
275
- avatarUpload?: ResourceImageType | null;
276
- confirmPassword?: string | null;
277
- email: string;
278
- firstName: string;
279
- isTester: boolean;
280
- lastName: string;
281
- password?: string | null;
282
- platform?: EnumOSPlatform;
283
- preferredRegion: string;
284
- role: EnumUserRole;
285
- termsAgreement?: TermsAgreement | null;
286
- };
287
- type CreateUserFormData = CreateFormData<UserFormData>;
288
- type UserActivityEvent = {
289
- resourceId: string;
290
- dateTime: DateTimeType;
291
- };
292
- type StripeSubscription = {
293
- customerId?: string;
294
- subscriptionId?: string;
295
- status?: EnumSubscriptionStatus;
296
- currentPlan?: EnumUserLicence;
297
- startDate?: string;
298
- endDate?: string;
299
- };
300
- type SubscriptionStatusData = {
301
- subscriptionId: string | null;
302
- status: EnumSubscriptionStatus;
303
- priceId: string | null;
304
- currentPlan: EnumUserLicence | null;
305
- };
306
- type UserActivity = {
307
- favourites: {
308
- events: string[];
309
- vendors: string[];
310
- partners: string[];
311
- };
312
- going: {
313
- events: UserActivityEvent[];
314
- };
315
- interested: {
316
- events: UserActivityEvent[];
317
- };
318
- present: {
319
- events: UserActivityEvent[];
320
- };
321
- };
322
- type UserLicenceType = {
323
- expiryDate: Date;
324
- issuedDate: Date;
325
- licenceType: EnumUserLicence;
326
- };
327
- interface UserType {
328
- _id: string;
329
- active: boolean;
330
- associates?: AssociateType[] | null;
331
- avatar: ResourceImageType | null;
332
- createdAt: Date;
333
- deletedAt: Date | null;
334
- email: string;
335
- events: string[] | null;
336
- firstName: string;
337
- isTester: boolean;
338
- lastName: string;
339
- licences: UserLicenceType[] | null;
340
- partner: string | null;
341
- password: string;
342
- platform: EnumOSPlatform | null;
343
- preferredRegion: string;
344
- refreshToken: string | null;
345
- role: EnumUserRole;
346
- stripe?: StripeSubscription;
347
- termsAgreement?: TermsAgreement | null;
348
- updatedAt: Date | null;
349
- userActivity: UserActivity | null;
350
- vendor: string | null;
351
- }
352
-
353
271
  type VendorLocation = {
354
272
  dateTime: Nullable<DateTimeType> | null;
355
273
  description?: string | null;
@@ -468,6 +386,11 @@ type SocialMediaType = {
468
386
  name?: EnumSocialMedia;
469
387
  link?: string;
470
388
  };
389
+ type UserLicenceType = {
390
+ expiryDate: Date;
391
+ issuedDate: Date;
392
+ licenceType: EnumUserLicence;
393
+ };
471
394
  type AssociateType = {
472
395
  email: string;
473
396
  resourceId: string;
@@ -814,6 +737,83 @@ interface TesterType extends TesterFormData {
814
737
  updatedAt: Date | null;
815
738
  }
816
739
 
740
+ type UserFormData = {
741
+ _id?: string;
742
+ active: boolean;
743
+ avatar?: ResourceImageType | null;
744
+ avatarUpload?: ResourceImageType | null;
745
+ confirmPassword?: string | null;
746
+ email: string;
747
+ firstName: string;
748
+ isTester: boolean;
749
+ lastName: string;
750
+ password?: string | null;
751
+ platform?: EnumOSPlatform;
752
+ preferredRegion: string;
753
+ role: EnumUserRole;
754
+ termsAgreement?: TermsAgreement | null;
755
+ };
756
+ type CreateUserFormData = CreateFormData<UserFormData>;
757
+ type UserActivityEvent = {
758
+ resourceId: string;
759
+ dateTime: DateTimeType;
760
+ };
761
+ type StripeSubscription = {
762
+ customerId?: string;
763
+ subscriptionId?: string;
764
+ status?: EnumSubscriptionStatus;
765
+ currentPlan?: EnumUserLicence;
766
+ startDate?: string;
767
+ endDate?: string;
768
+ };
769
+ type SubscriptionStatusData = {
770
+ subscriptionId: string | null;
771
+ status: EnumSubscriptionStatus;
772
+ priceId: string | null;
773
+ currentPlan: EnumUserLicence | null;
774
+ };
775
+ type UserActivity = {
776
+ favourites: {
777
+ events: string[];
778
+ vendors: string[];
779
+ partners: string[];
780
+ };
781
+ going: {
782
+ events: UserActivityEvent[];
783
+ };
784
+ interested: {
785
+ events: UserActivityEvent[];
786
+ };
787
+ present: {
788
+ events: UserActivityEvent[];
789
+ };
790
+ };
791
+ interface UserType {
792
+ _id: string;
793
+ active: boolean;
794
+ associates?: AssociateType[] | null;
795
+ avatar: ResourceImageType | null;
796
+ createdAt: Date;
797
+ deletedAt: Date | null;
798
+ email: string;
799
+ events: string[] | null;
800
+ firstName: string;
801
+ isTester: boolean;
802
+ lastName: string;
803
+ licences: UserLicenceType[] | null;
804
+ partner: string | null;
805
+ password: string;
806
+ platform: EnumOSPlatform | null;
807
+ preferredRegion: string;
808
+ refreshToken: string | null;
809
+ role: EnumUserRole;
810
+ stripe?: StripeSubscription;
811
+ termsAgreement?: TermsAgreement | null;
812
+ updatedAt: Date | null;
813
+ userActivity: UserActivity | null;
814
+ vendor: string | null;
815
+ }
816
+
817
817
  declare enum EnumAdShowOn {
818
818
  EVENTS_PAGE = "Events_page",
819
819
  FRONT_PAGE = "Front_page",
package/dist/index.mjs CHANGED
@@ -2200,13 +2200,23 @@ var CATEGORY_FIELDS_FRAGMENT = gql2`
2200
2200
  }
2201
2201
  }
2202
2202
  `;
2203
+ var LICENCE_FIELDS_FRAGMENT = gql2`
2204
+ fragment LicenceFields on UserLicenceType {
2205
+ expiryDate
2206
+ issuedDate
2207
+ licenceType
2208
+ }
2209
+ `;
2203
2210
  var ASSOCIATES_FIELDS_FRAGMENT = gql2`
2204
2211
  fragment AssociatesFields on AssociateType {
2205
2212
  email
2206
2213
  resourceId
2207
2214
  resourceType
2208
- licence
2215
+ licence {
2216
+ ...LicenceFields
2217
+ }
2209
2218
  }
2219
+ ${LICENCE_FIELDS_FRAGMENT}
2210
2220
  `;
2211
2221
  var TERMS_AGREEMENT_FIELDS_FRAGMENT = gql2`
2212
2222
  fragment TermsAgreementFields on TermsAgreementType {
@@ -2224,13 +2234,6 @@ var TERMS_AGREEMENT_FIELDS_FRAGMENT = gql2`
2224
2234
  timestamp
2225
2235
  }
2226
2236
  `;
2227
- var LICENCE_FIELDS_FRAGMENT = gql2`
2228
- fragment LicenceFields on UserLicenceType {
2229
- expiryDate
2230
- issuedDate
2231
- licenceType
2232
- }
2233
- `;
2234
2237
  var EVENT_DATETIME_FIELDS_FRAGMENT = gql2`
2235
2238
  fragment EventDateTimeFields on EventDateTimeType {
2236
2239
  dateStatus