@timardex/cluemart-shared 1.2.64 → 1.2.66
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/ad-BChCn4Ka.d.ts +82 -0
- package/dist/ad-DC4CQ8Gp.d.mts +82 -0
- package/dist/{auth-DaiySFU6.d.mts → auth-BBzFtZee.d.mts} +1 -1
- package/dist/{auth-BwtjPUgO.d.ts → auth-DqNTAngW.d.ts} +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/{global-BY8seqWN.d.ts → global-JXYCto5-.d.ts} +89 -5
- package/dist/{global-CKf55A-q.d.mts → global-WNM-jttW.d.mts} +89 -5
- package/dist/graphql/index.d.mts +2 -2
- package/dist/graphql/index.d.ts +2 -2
- package/dist/hooks/index.cjs +6 -19
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +3 -3
- package/dist/hooks/index.d.ts +3 -3
- package/dist/hooks/index.mjs +1 -5
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +15 -18
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +87 -87
- package/dist/index.d.ts +87 -87
- package/dist/index.mjs +15 -18
- package/dist/index.mjs.map +1 -1
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/ad-3a_BuhYm.d.mts +0 -166
- package/dist/ad-Dmry8CLr.d.ts +0 -166
package/dist/index.d.mts
CHANGED
|
@@ -267,6 +267,90 @@ type EventInfoType = Omit<EventInfoFormData, "_id"> & {
|
|
|
267
267
|
_id: string;
|
|
268
268
|
};
|
|
269
269
|
|
|
270
|
+
type UserFormData = {
|
|
271
|
+
_id?: string;
|
|
272
|
+
active: boolean;
|
|
273
|
+
avatar?: ResourceImageType | null;
|
|
274
|
+
avatarUpload?: ResourceImageType | null;
|
|
275
|
+
confirmPassword?: string | null;
|
|
276
|
+
email: string;
|
|
277
|
+
firstName: string;
|
|
278
|
+
isTester: boolean;
|
|
279
|
+
lastName: string;
|
|
280
|
+
password?: string | null;
|
|
281
|
+
platform?: EnumOSPlatform;
|
|
282
|
+
preferredRegion: string;
|
|
283
|
+
role: EnumUserRole;
|
|
284
|
+
termsAgreement?: TermsAgreement | null;
|
|
285
|
+
};
|
|
286
|
+
type CreateUserFormData = CreateFormData<UserFormData>;
|
|
287
|
+
type UserActivityEvent = {
|
|
288
|
+
dateStatus: EnumEventDateStatus;
|
|
289
|
+
resourceId: string;
|
|
290
|
+
startDate: string;
|
|
291
|
+
startTime: string;
|
|
292
|
+
};
|
|
293
|
+
type StripeSubscription = {
|
|
294
|
+
customerId?: string;
|
|
295
|
+
subscriptionId?: string;
|
|
296
|
+
status?: EnumSubscriptionStatus;
|
|
297
|
+
currentPlan?: EnumUserLicence;
|
|
298
|
+
startDate?: string;
|
|
299
|
+
endDate?: string;
|
|
300
|
+
};
|
|
301
|
+
type SubscriptionStatusData = {
|
|
302
|
+
subscriptionId: string | null;
|
|
303
|
+
status: EnumSubscriptionStatus;
|
|
304
|
+
priceId: string | null;
|
|
305
|
+
currentPlan: EnumUserLicence | null;
|
|
306
|
+
};
|
|
307
|
+
type UserActivity = {
|
|
308
|
+
favourites: {
|
|
309
|
+
events: string[];
|
|
310
|
+
vendors: string[];
|
|
311
|
+
partners: string[];
|
|
312
|
+
};
|
|
313
|
+
going: {
|
|
314
|
+
events: UserActivityEvent[];
|
|
315
|
+
};
|
|
316
|
+
interested: {
|
|
317
|
+
events: UserActivityEvent[];
|
|
318
|
+
};
|
|
319
|
+
present: {
|
|
320
|
+
events: UserActivityEvent[];
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
type UserLicenceType = {
|
|
324
|
+
expiryDate?: string | null;
|
|
325
|
+
issuedDate?: string | null;
|
|
326
|
+
licenceType: EnumUserLicence;
|
|
327
|
+
};
|
|
328
|
+
interface UserType {
|
|
329
|
+
_id: string;
|
|
330
|
+
active: boolean;
|
|
331
|
+
associates?: AssociateType[] | null;
|
|
332
|
+
avatar: ResourceImageType | null;
|
|
333
|
+
createdAt: string;
|
|
334
|
+
deletedAt: string | null;
|
|
335
|
+
email: string;
|
|
336
|
+
events: string[] | null;
|
|
337
|
+
firstName: string;
|
|
338
|
+
isTester: boolean;
|
|
339
|
+
lastName: string;
|
|
340
|
+
licences: UserLicenceType[] | null;
|
|
341
|
+
partner: string | null;
|
|
342
|
+
password: string;
|
|
343
|
+
platform: EnumOSPlatform | null;
|
|
344
|
+
preferredRegion: string;
|
|
345
|
+
refreshToken: string | null;
|
|
346
|
+
role: EnumUserRole;
|
|
347
|
+
stripe?: StripeSubscription;
|
|
348
|
+
termsAgreement?: TermsAgreement | null;
|
|
349
|
+
updatedAt: string;
|
|
350
|
+
userActivity: UserActivity | null;
|
|
351
|
+
vendor: string | null;
|
|
352
|
+
}
|
|
353
|
+
|
|
270
354
|
type VendorLocation = {
|
|
271
355
|
dateTime: Nullable<DateTimeType> | null;
|
|
272
356
|
description?: string | null;
|
|
@@ -387,9 +471,9 @@ type SocialMediaType = {
|
|
|
387
471
|
};
|
|
388
472
|
type AssociateType = {
|
|
389
473
|
email: string;
|
|
390
|
-
resourceId
|
|
391
|
-
resourceType
|
|
392
|
-
licence
|
|
474
|
+
resourceId?: string;
|
|
475
|
+
resourceType?: EnumResourceType;
|
|
476
|
+
licence?: UserLicenceType;
|
|
393
477
|
};
|
|
394
478
|
type OwnerType = {
|
|
395
479
|
email: string;
|
|
@@ -668,90 +752,6 @@ interface TesterType extends TestersFormData {
|
|
|
668
752
|
updatedAt: string;
|
|
669
753
|
}
|
|
670
754
|
|
|
671
|
-
type UserFormData = {
|
|
672
|
-
_id?: string;
|
|
673
|
-
active: boolean;
|
|
674
|
-
avatar?: ResourceImageType | null;
|
|
675
|
-
avatarUpload?: ResourceImageType | null;
|
|
676
|
-
confirmPassword?: string | null;
|
|
677
|
-
email: string;
|
|
678
|
-
firstName: string;
|
|
679
|
-
isTester: boolean;
|
|
680
|
-
lastName: string;
|
|
681
|
-
password?: string | null;
|
|
682
|
-
platform?: EnumOSPlatform;
|
|
683
|
-
preferredRegion: string;
|
|
684
|
-
role: EnumUserRole;
|
|
685
|
-
termsAgreement?: TermsAgreement | null;
|
|
686
|
-
};
|
|
687
|
-
type CreateUserFormData = CreateFormData<UserFormData>;
|
|
688
|
-
type UserActivityEvent = {
|
|
689
|
-
dateStatus: EnumEventDateStatus;
|
|
690
|
-
resourceId: string;
|
|
691
|
-
startDate: string;
|
|
692
|
-
startTime: string;
|
|
693
|
-
};
|
|
694
|
-
type StripeSubscription = {
|
|
695
|
-
customerId?: string;
|
|
696
|
-
subscriptionId?: string;
|
|
697
|
-
status?: EnumSubscriptionStatus;
|
|
698
|
-
currentPlan?: EnumUserLicence;
|
|
699
|
-
startDate?: string;
|
|
700
|
-
endDate?: string;
|
|
701
|
-
};
|
|
702
|
-
type SubscriptionStatusData = {
|
|
703
|
-
subscriptionId: string | null;
|
|
704
|
-
status: EnumSubscriptionStatus;
|
|
705
|
-
priceId: string | null;
|
|
706
|
-
currentPlan: EnumUserLicence | null;
|
|
707
|
-
};
|
|
708
|
-
type UserActivity = {
|
|
709
|
-
favourites: {
|
|
710
|
-
events: string[];
|
|
711
|
-
vendors: string[];
|
|
712
|
-
partners: string[];
|
|
713
|
-
};
|
|
714
|
-
going: {
|
|
715
|
-
events: UserActivityEvent[];
|
|
716
|
-
};
|
|
717
|
-
interested: {
|
|
718
|
-
events: UserActivityEvent[];
|
|
719
|
-
};
|
|
720
|
-
present: {
|
|
721
|
-
events: UserActivityEvent[];
|
|
722
|
-
};
|
|
723
|
-
};
|
|
724
|
-
type UserLicenceType = {
|
|
725
|
-
expiryDate: string;
|
|
726
|
-
issuedDate: string;
|
|
727
|
-
licenceType: EnumUserLicence;
|
|
728
|
-
};
|
|
729
|
-
interface UserType {
|
|
730
|
-
_id: string;
|
|
731
|
-
active: boolean;
|
|
732
|
-
associates?: AssociateType[] | null;
|
|
733
|
-
avatar: ResourceImageType | null;
|
|
734
|
-
createdAt: string;
|
|
735
|
-
deletedAt: string | null;
|
|
736
|
-
email: string;
|
|
737
|
-
events: string[] | null;
|
|
738
|
-
firstName: string;
|
|
739
|
-
isTester: boolean;
|
|
740
|
-
lastName: string;
|
|
741
|
-
licences: UserLicenceType[] | null;
|
|
742
|
-
partner: string | null;
|
|
743
|
-
password: string;
|
|
744
|
-
platform: EnumOSPlatform | null;
|
|
745
|
-
preferredRegion: string;
|
|
746
|
-
refreshToken: string | null;
|
|
747
|
-
role: EnumUserRole;
|
|
748
|
-
stripe?: StripeSubscription;
|
|
749
|
-
termsAgreement?: TermsAgreement | null;
|
|
750
|
-
updatedAt: string;
|
|
751
|
-
userActivity: UserActivity | null;
|
|
752
|
-
vendor: string | null;
|
|
753
|
-
}
|
|
754
|
-
|
|
755
755
|
declare enum EnumAdShowOn {
|
|
756
756
|
EVENTS_PAGE = "Events_page",
|
|
757
757
|
FRONT_PAGE = "Front_page",
|
package/dist/index.d.ts
CHANGED
|
@@ -267,6 +267,90 @@ type EventInfoType = Omit<EventInfoFormData, "_id"> & {
|
|
|
267
267
|
_id: string;
|
|
268
268
|
};
|
|
269
269
|
|
|
270
|
+
type UserFormData = {
|
|
271
|
+
_id?: string;
|
|
272
|
+
active: boolean;
|
|
273
|
+
avatar?: ResourceImageType | null;
|
|
274
|
+
avatarUpload?: ResourceImageType | null;
|
|
275
|
+
confirmPassword?: string | null;
|
|
276
|
+
email: string;
|
|
277
|
+
firstName: string;
|
|
278
|
+
isTester: boolean;
|
|
279
|
+
lastName: string;
|
|
280
|
+
password?: string | null;
|
|
281
|
+
platform?: EnumOSPlatform;
|
|
282
|
+
preferredRegion: string;
|
|
283
|
+
role: EnumUserRole;
|
|
284
|
+
termsAgreement?: TermsAgreement | null;
|
|
285
|
+
};
|
|
286
|
+
type CreateUserFormData = CreateFormData<UserFormData>;
|
|
287
|
+
type UserActivityEvent = {
|
|
288
|
+
dateStatus: EnumEventDateStatus;
|
|
289
|
+
resourceId: string;
|
|
290
|
+
startDate: string;
|
|
291
|
+
startTime: string;
|
|
292
|
+
};
|
|
293
|
+
type StripeSubscription = {
|
|
294
|
+
customerId?: string;
|
|
295
|
+
subscriptionId?: string;
|
|
296
|
+
status?: EnumSubscriptionStatus;
|
|
297
|
+
currentPlan?: EnumUserLicence;
|
|
298
|
+
startDate?: string;
|
|
299
|
+
endDate?: string;
|
|
300
|
+
};
|
|
301
|
+
type SubscriptionStatusData = {
|
|
302
|
+
subscriptionId: string | null;
|
|
303
|
+
status: EnumSubscriptionStatus;
|
|
304
|
+
priceId: string | null;
|
|
305
|
+
currentPlan: EnumUserLicence | null;
|
|
306
|
+
};
|
|
307
|
+
type UserActivity = {
|
|
308
|
+
favourites: {
|
|
309
|
+
events: string[];
|
|
310
|
+
vendors: string[];
|
|
311
|
+
partners: string[];
|
|
312
|
+
};
|
|
313
|
+
going: {
|
|
314
|
+
events: UserActivityEvent[];
|
|
315
|
+
};
|
|
316
|
+
interested: {
|
|
317
|
+
events: UserActivityEvent[];
|
|
318
|
+
};
|
|
319
|
+
present: {
|
|
320
|
+
events: UserActivityEvent[];
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
type UserLicenceType = {
|
|
324
|
+
expiryDate?: string | null;
|
|
325
|
+
issuedDate?: string | null;
|
|
326
|
+
licenceType: EnumUserLicence;
|
|
327
|
+
};
|
|
328
|
+
interface UserType {
|
|
329
|
+
_id: string;
|
|
330
|
+
active: boolean;
|
|
331
|
+
associates?: AssociateType[] | null;
|
|
332
|
+
avatar: ResourceImageType | null;
|
|
333
|
+
createdAt: string;
|
|
334
|
+
deletedAt: string | null;
|
|
335
|
+
email: string;
|
|
336
|
+
events: string[] | null;
|
|
337
|
+
firstName: string;
|
|
338
|
+
isTester: boolean;
|
|
339
|
+
lastName: string;
|
|
340
|
+
licences: UserLicenceType[] | null;
|
|
341
|
+
partner: string | null;
|
|
342
|
+
password: string;
|
|
343
|
+
platform: EnumOSPlatform | null;
|
|
344
|
+
preferredRegion: string;
|
|
345
|
+
refreshToken: string | null;
|
|
346
|
+
role: EnumUserRole;
|
|
347
|
+
stripe?: StripeSubscription;
|
|
348
|
+
termsAgreement?: TermsAgreement | null;
|
|
349
|
+
updatedAt: string;
|
|
350
|
+
userActivity: UserActivity | null;
|
|
351
|
+
vendor: string | null;
|
|
352
|
+
}
|
|
353
|
+
|
|
270
354
|
type VendorLocation = {
|
|
271
355
|
dateTime: Nullable<DateTimeType> | null;
|
|
272
356
|
description?: string | null;
|
|
@@ -387,9 +471,9 @@ type SocialMediaType = {
|
|
|
387
471
|
};
|
|
388
472
|
type AssociateType = {
|
|
389
473
|
email: string;
|
|
390
|
-
resourceId
|
|
391
|
-
resourceType
|
|
392
|
-
licence
|
|
474
|
+
resourceId?: string;
|
|
475
|
+
resourceType?: EnumResourceType;
|
|
476
|
+
licence?: UserLicenceType;
|
|
393
477
|
};
|
|
394
478
|
type OwnerType = {
|
|
395
479
|
email: string;
|
|
@@ -668,90 +752,6 @@ interface TesterType extends TestersFormData {
|
|
|
668
752
|
updatedAt: string;
|
|
669
753
|
}
|
|
670
754
|
|
|
671
|
-
type UserFormData = {
|
|
672
|
-
_id?: string;
|
|
673
|
-
active: boolean;
|
|
674
|
-
avatar?: ResourceImageType | null;
|
|
675
|
-
avatarUpload?: ResourceImageType | null;
|
|
676
|
-
confirmPassword?: string | null;
|
|
677
|
-
email: string;
|
|
678
|
-
firstName: string;
|
|
679
|
-
isTester: boolean;
|
|
680
|
-
lastName: string;
|
|
681
|
-
password?: string | null;
|
|
682
|
-
platform?: EnumOSPlatform;
|
|
683
|
-
preferredRegion: string;
|
|
684
|
-
role: EnumUserRole;
|
|
685
|
-
termsAgreement?: TermsAgreement | null;
|
|
686
|
-
};
|
|
687
|
-
type CreateUserFormData = CreateFormData<UserFormData>;
|
|
688
|
-
type UserActivityEvent = {
|
|
689
|
-
dateStatus: EnumEventDateStatus;
|
|
690
|
-
resourceId: string;
|
|
691
|
-
startDate: string;
|
|
692
|
-
startTime: string;
|
|
693
|
-
};
|
|
694
|
-
type StripeSubscription = {
|
|
695
|
-
customerId?: string;
|
|
696
|
-
subscriptionId?: string;
|
|
697
|
-
status?: EnumSubscriptionStatus;
|
|
698
|
-
currentPlan?: EnumUserLicence;
|
|
699
|
-
startDate?: string;
|
|
700
|
-
endDate?: string;
|
|
701
|
-
};
|
|
702
|
-
type SubscriptionStatusData = {
|
|
703
|
-
subscriptionId: string | null;
|
|
704
|
-
status: EnumSubscriptionStatus;
|
|
705
|
-
priceId: string | null;
|
|
706
|
-
currentPlan: EnumUserLicence | null;
|
|
707
|
-
};
|
|
708
|
-
type UserActivity = {
|
|
709
|
-
favourites: {
|
|
710
|
-
events: string[];
|
|
711
|
-
vendors: string[];
|
|
712
|
-
partners: string[];
|
|
713
|
-
};
|
|
714
|
-
going: {
|
|
715
|
-
events: UserActivityEvent[];
|
|
716
|
-
};
|
|
717
|
-
interested: {
|
|
718
|
-
events: UserActivityEvent[];
|
|
719
|
-
};
|
|
720
|
-
present: {
|
|
721
|
-
events: UserActivityEvent[];
|
|
722
|
-
};
|
|
723
|
-
};
|
|
724
|
-
type UserLicenceType = {
|
|
725
|
-
expiryDate: string;
|
|
726
|
-
issuedDate: string;
|
|
727
|
-
licenceType: EnumUserLicence;
|
|
728
|
-
};
|
|
729
|
-
interface UserType {
|
|
730
|
-
_id: string;
|
|
731
|
-
active: boolean;
|
|
732
|
-
associates?: AssociateType[] | null;
|
|
733
|
-
avatar: ResourceImageType | null;
|
|
734
|
-
createdAt: string;
|
|
735
|
-
deletedAt: string | null;
|
|
736
|
-
email: string;
|
|
737
|
-
events: string[] | null;
|
|
738
|
-
firstName: string;
|
|
739
|
-
isTester: boolean;
|
|
740
|
-
lastName: string;
|
|
741
|
-
licences: UserLicenceType[] | null;
|
|
742
|
-
partner: string | null;
|
|
743
|
-
password: string;
|
|
744
|
-
platform: EnumOSPlatform | null;
|
|
745
|
-
preferredRegion: string;
|
|
746
|
-
refreshToken: string | null;
|
|
747
|
-
role: EnumUserRole;
|
|
748
|
-
stripe?: StripeSubscription;
|
|
749
|
-
termsAgreement?: TermsAgreement | null;
|
|
750
|
-
updatedAt: string;
|
|
751
|
-
userActivity: UserActivity | null;
|
|
752
|
-
vendor: string | null;
|
|
753
|
-
}
|
|
754
|
-
|
|
755
755
|
declare enum EnumAdShowOn {
|
|
756
756
|
EVENTS_PAGE = "Events_page",
|
|
757
757
|
FRONT_PAGE = "Front_page",
|
package/dist/index.mjs
CHANGED
|
@@ -70,11 +70,11 @@ var EnumFoodType = /* @__PURE__ */ ((EnumFoodType2) => {
|
|
|
70
70
|
EnumFoodType2["VEGETARIAN"] = "Vegetarian";
|
|
71
71
|
return EnumFoodType2;
|
|
72
72
|
})(EnumFoodType || {});
|
|
73
|
-
var EnumResourceType = /* @__PURE__ */ ((
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
return
|
|
73
|
+
var EnumResourceType = /* @__PURE__ */ ((EnumResourceType3) => {
|
|
74
|
+
EnumResourceType3["EVENT"] = "event";
|
|
75
|
+
EnumResourceType3["VENDOR"] = "vendor";
|
|
76
|
+
EnumResourceType3["PARTNER"] = "partner";
|
|
77
|
+
return EnumResourceType3;
|
|
78
78
|
})(EnumResourceType || {});
|
|
79
79
|
var EnumEventType = /* @__PURE__ */ ((EnumEventType2) => {
|
|
80
80
|
EnumEventType2["MARKET"] = "Market";
|
|
@@ -148,15 +148,15 @@ var ImageTypeEnum = /* @__PURE__ */ ((ImageTypeEnum2) => {
|
|
|
148
148
|
ImageTypeEnum2["LOGO"] = "logo";
|
|
149
149
|
return ImageTypeEnum2;
|
|
150
150
|
})(ImageTypeEnum || {});
|
|
151
|
-
var EnumUserLicence = /* @__PURE__ */ ((
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
return
|
|
151
|
+
var EnumUserLicence = /* @__PURE__ */ ((EnumUserLicence3) => {
|
|
152
|
+
EnumUserLicence3["PRO_EVENT"] = "pro_event";
|
|
153
|
+
EnumUserLicence3["PRO_PLUS_EVENT"] = "pro_plus_event";
|
|
154
|
+
EnumUserLicence3["PRO_PLUS_VENDOR"] = "pro_plus_vendor";
|
|
155
|
+
EnumUserLicence3["PRO_VENDOR"] = "pro_vendor";
|
|
156
|
+
EnumUserLicence3["STANDARD_EVENT"] = "standard_event";
|
|
157
|
+
EnumUserLicence3["STANDARD_VENDOR"] = "standard_vendor";
|
|
158
|
+
EnumUserLicence3["STANDARD_PARTNER"] = "standard_partner";
|
|
159
|
+
return EnumUserLicence3;
|
|
160
160
|
})(EnumUserLicence || {});
|
|
161
161
|
var EnumUserRole = /* @__PURE__ */ ((EnumUserRole2) => {
|
|
162
162
|
EnumUserRole2["ADMIN"] = "admin";
|
|
@@ -5088,10 +5088,7 @@ var globalResourceSchema = yup.object().shape({
|
|
|
5088
5088
|
socialMedia: yup.array().of(socialMediaSchema).nullable().optional(),
|
|
5089
5089
|
associates: yup.array().of(
|
|
5090
5090
|
yup.object().shape({
|
|
5091
|
-
email: emailRequiredSchema
|
|
5092
|
-
resourceId: yup.string().required(),
|
|
5093
|
-
resourceType: yup.mixed().oneOf(Object.values(EnumResourceType)).required(),
|
|
5094
|
-
licence: yup.mixed().oneOf(Object.values(EnumUserLicence)).required()
|
|
5091
|
+
email: emailRequiredSchema
|
|
5095
5092
|
})
|
|
5096
5093
|
).nullable().optional()
|
|
5097
5094
|
});
|