@timardex/cluemart-shared 1.5.813 → 1.5.822

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.
Files changed (88) hide show
  1. package/dist/{ad-0muFV6oH.d.ts → ad-BFGA6SrQ.d.ts} +4 -123
  2. package/dist/{ad-Dlk9SFLw.d.mts → ad-BRC6KNgv.d.mts} +4 -123
  3. package/dist/apollo/index.cjs +1362 -0
  4. package/dist/apollo/index.cjs.map +1 -0
  5. package/dist/apollo/index.d.mts +337 -0
  6. package/dist/apollo/index.d.ts +337 -0
  7. package/dist/apollo/index.mjs +1273 -0
  8. package/dist/apollo/index.mjs.map +1 -0
  9. package/dist/auth/index.cjs +1425 -0
  10. package/dist/auth/index.cjs.map +1 -0
  11. package/dist/auth/index.d.mts +119 -0
  12. package/dist/auth/index.d.ts +119 -0
  13. package/dist/auth/index.mjs +317 -0
  14. package/dist/auth/index.mjs.map +1 -0
  15. package/dist/{chunk-LETM2YHF.mjs → chunk-D33VEY7Q.mjs} +3 -1
  16. package/dist/chunk-D33VEY7Q.mjs.map +1 -0
  17. package/dist/chunk-DQ7ZHIXW.mjs +26 -0
  18. package/dist/chunk-DQ7ZHIXW.mjs.map +1 -0
  19. package/dist/{chunk-LKMJ75YV.mjs → chunk-EUOLQ7SS.mjs} +2 -2
  20. package/dist/{chunk-GJO7X2Y4.mjs → chunk-IREUJYMR.mjs} +3 -3
  21. package/dist/{chunk-POXARN2X.mjs → chunk-KMLUQVNM.mjs} +1 -24
  22. package/dist/chunk-KMLUQVNM.mjs.map +1 -0
  23. package/dist/chunk-MIDSLTUJ.mjs +1214 -0
  24. package/dist/chunk-MIDSLTUJ.mjs.map +1 -0
  25. package/dist/{chunk-DLPDX4EH.mjs → chunk-N7KENXCS.mjs} +10 -49
  26. package/dist/chunk-N7KENXCS.mjs.map +1 -0
  27. package/dist/chunk-RAYUJODN.mjs +45 -0
  28. package/dist/chunk-RAYUJODN.mjs.map +1 -0
  29. package/dist/{chunk-4TP57ZL7.mjs → chunk-UHDYJBIX.mjs} +2 -2
  30. package/dist/{chunk-4ICKZHQA.mjs → chunk-WZPKYUSX.mjs} +361 -2328
  31. package/dist/chunk-WZPKYUSX.mjs.map +1 -0
  32. package/dist/{contactUs-CiXFYse5.d.ts → contactUs-Bwxzw-cB.d.ts} +1 -1
  33. package/dist/{contactUs-HPydW6BR.d.mts → contactUs-b5SfvqmJ.d.mts} +1 -1
  34. package/dist/enums/index.cjs +2 -0
  35. package/dist/enums/index.cjs.map +1 -1
  36. package/dist/enums/index.d.mts +3 -1
  37. package/dist/enums/index.d.ts +3 -1
  38. package/dist/enums/index.mjs +1 -1
  39. package/dist/formFields/index.cjs.map +1 -1
  40. package/dist/formFields/index.d.mts +1 -1
  41. package/dist/formFields/index.d.ts +1 -1
  42. package/dist/formFields/index.mjs +7 -5
  43. package/dist/{global-Dq6A7pNV.d.mts → global-959zf6qy.d.mts} +1 -1
  44. package/dist/{global-B2jacmZB.d.ts → global-wVC9VaCx.d.ts} +1 -1
  45. package/dist/graphql/index.cjs +2 -844
  46. package/dist/graphql/index.cjs.map +1 -1
  47. package/dist/graphql/index.d.mts +4 -3
  48. package/dist/graphql/index.d.ts +4 -3
  49. package/dist/graphql/index.mjs +23 -21
  50. package/dist/hooks/index.cjs +5 -0
  51. package/dist/hooks/index.cjs.map +1 -1
  52. package/dist/hooks/index.d.mts +4 -3
  53. package/dist/hooks/index.d.ts +4 -3
  54. package/dist/hooks/index.mjs +15 -12
  55. package/dist/hooks/index.mjs.map +1 -1
  56. package/dist/index.cjs +4 -844
  57. package/dist/index.cjs.map +1 -1
  58. package/dist/index.d.mts +3 -1
  59. package/dist/index.d.ts +3 -1
  60. package/dist/index.mjs +3 -843
  61. package/dist/index.mjs.map +1 -1
  62. package/dist/map/index.d.mts +1 -1
  63. package/dist/map/index.d.ts +1 -1
  64. package/dist/{resourceActivities-DUR5JaaB.d.ts → resourceActivities-ChZcl5wJ.d.ts} +1 -1
  65. package/dist/{resourceActivities-BCZ6HU7U.d.mts → resourceActivities-ZPT9JlfH.d.mts} +1 -1
  66. package/dist/sharing/index.cjs.map +1 -1
  67. package/dist/sharing/index.d.mts +1 -1
  68. package/dist/sharing/index.d.ts +1 -1
  69. package/dist/sharing/index.mjs +3 -3
  70. package/dist/subscription-BU8GvH2K.d.ts +12 -0
  71. package/dist/subscription-bmAdrnfi.d.mts +12 -0
  72. package/dist/types/index.d.mts +9 -16
  73. package/dist/types/index.d.ts +9 -16
  74. package/dist/types/index.mjs +7 -5
  75. package/dist/user-CCN2IPDV.d.ts +124 -0
  76. package/dist/user-CadKvubI.d.mts +124 -0
  77. package/dist/utils/index.cjs.map +1 -1
  78. package/dist/utils/index.d.mts +1 -1
  79. package/dist/utils/index.d.ts +1 -1
  80. package/dist/utils/index.mjs +8 -5
  81. package/package.json +25 -9
  82. package/dist/chunk-4ICKZHQA.mjs.map +0 -1
  83. package/dist/chunk-DLPDX4EH.mjs.map +0 -1
  84. package/dist/chunk-LETM2YHF.mjs.map +0 -1
  85. package/dist/chunk-POXARN2X.mjs.map +0 -1
  86. /package/dist/{chunk-LKMJ75YV.mjs.map → chunk-EUOLQ7SS.mjs.map} +0 -0
  87. /package/dist/{chunk-GJO7X2Y4.mjs.map → chunk-IREUJYMR.mjs.map} +0 -0
  88. /package/dist/{chunk-4TP57ZL7.mjs.map → chunk-UHDYJBIX.mjs.map} +0 -0
@@ -1,126 +1,7 @@
1
- import { EnumOSPlatform, EnumUserRole, EnumReward, EnumSubscriptionStatus, EnumUserLicence, EnumNotificationResourceType, EnumResourceType, EnumPartnerType } from './enums/index.js';
2
- import { av as ResourceImageType, L as LocationType, aA as TermsAgreement, A as AssociateType, i as UserLicenceType, ak as PromoCodeType, K as DateTimeType, H as CreateFormData, D as BaseResourceType, ax as SocialShareResourceType, B as BaseResourceTypeFormData, at as ResourceContactDetailsType, aw as SocialMediaType, a6 as OwnerType } from './global-B2jacmZB.js';
1
+ import { EnumPartnerType, EnumResourceType, EnumOSPlatform } from './enums/index.js';
2
+ import { D as BaseResourceType, L as LocationType, ax as SocialShareResourceType, B as BaseResourceTypeFormData, H as CreateFormData, at as ResourceContactDetailsType, av as ResourceImageType, aw as SocialMediaType, aA as TermsAgreement, a6 as OwnerType, ak as PromoCodeType } from './global-wVC9VaCx.js';
3
3
  import { PosterAssetId } from './images/index.js';
4
-
5
- type UserFormData = {
6
- _id?: string;
7
- active: boolean;
8
- avatar?: ResourceImageType | null;
9
- avatarUpload?: ResourceImageType | null;
10
- confirmPassword?: string | null;
11
- email: string;
12
- firstName: string;
13
- isTester: boolean;
14
- lastName: string;
15
- location?: LocationType | null;
16
- password?: string | null;
17
- platform?: EnumOSPlatform;
18
- preferredRegion: string;
19
- role: EnumUserRole;
20
- termsAgreement?: TermsAgreement | null;
21
- };
22
- type CreateUserFormData = CreateFormData<UserFormData>;
23
- type UserActivityEvent = {
24
- resourceId: string;
25
- dateTime: DateTimeType;
26
- };
27
- type StripeSubscription = {
28
- customerId?: string;
29
- subscriptionId?: string;
30
- status?: EnumSubscriptionStatus;
31
- currentPlan?: EnumUserLicence;
32
- startDate?: string;
33
- endDate?: string;
34
- };
35
- type SubscriptionStatusData = {
36
- subscriptionId: string | null;
37
- status: EnumSubscriptionStatus;
38
- priceId: string | null;
39
- currentPlan: EnumUserLicence | null;
40
- };
41
- type SubscriptionPricingData = {
42
- basePrice: number;
43
- discountedPrice: number | null;
44
- hasDiscount: boolean;
45
- discountPercent: number | null;
46
- discountAmount: number | null;
47
- currency: string;
48
- formattedBasePrice: string;
49
- formattedDiscountedPrice: string | null;
50
- };
51
- type SubscriptionPlanData = {
52
- name: string;
53
- description: string | null;
54
- licenceType: EnumUserLicence;
55
- billingPeriod: string;
56
- stripeProductId: string;
57
- stripePriceId: string;
58
- isEligibleForDiscount: boolean;
59
- pricing: SubscriptionPricingData;
60
- };
61
- type SubscriptionPlansResponse = {
62
- plans: SubscriptionPlanData[];
63
- isNewUser: boolean;
64
- isTester: boolean;
65
- appliedDiscountType: string;
66
- };
67
- type UserActivity = {
68
- favourites: {
69
- events: string[];
70
- vendors: string[];
71
- partners: string[];
72
- };
73
- going: {
74
- events: UserActivityEvent[];
75
- };
76
- interested: {
77
- events: UserActivityEvent[];
78
- };
79
- present: {
80
- events: UserActivityEvent[];
81
- };
82
- };
83
- type RedeemRewardInput = {
84
- reward: EnumReward;
85
- };
86
- type RedeemRewardResponse = {
87
- userId: string;
88
- message: string;
89
- };
90
- type RedeemedReward = {
91
- name: EnumReward;
92
- pointsUsed: number;
93
- redeemedAt: Date;
94
- };
95
- type UserType = Omit<UserFormData, "confirmPassword" | "avatarUpload" | "_id"> & {
96
- _id: string;
97
- affiliate?: string | null;
98
- associates?: AssociateType[] | null;
99
- createdAt: Date;
100
- deletedAt: Date | null;
101
- events: string[] | null;
102
- game: string | null;
103
- licences: UserLicenceType[] | null;
104
- overallPoints: number | null;
105
- partner: string | null;
106
- promoCodes?: PromoCodeType[] | null;
107
- redeemedRewards?: RedeemedReward[] | null;
108
- refreshToken: string | null;
109
- school: string | null;
110
- stripe?: StripeSubscription;
111
- updatedAt: Date | null;
112
- userActivity: UserActivity | null;
113
- vendor: string | null;
114
- emailSentFor?: EnumNotificationResourceType[] | null;
115
- };
116
- type SafeUserType = Omit<UserType, "password" | "refreshToken">;
117
- type ResourceByUser = {
118
- _id: string;
119
- active: boolean;
120
- logo: string;
121
- name: string;
122
- resourceType: EnumResourceType;
123
- };
4
+ import { S as SafeUserType, U as UserFormData } from './user-CCN2IPDV.js';
124
5
 
125
6
  interface PartnerFormData extends BaseResourceTypeFormData {
126
7
  location: LocationType;
@@ -362,4 +243,4 @@ interface AdType extends AdFormData {
362
243
  updatedAt: Date | null;
363
244
  }
364
245
 
365
- export { type RequestPasswordResetFormData as $, type AuthPayloadType as A, type AffiliateBankAccountDetailsType as B, type CreateUserFormData as C, type AffiliateContactDetails as D, EnumAdStatus as E, type AffiliateDetailsType as F, type AffiliateResourceType as G, type AffiliateRewardType as H, type AffiliateUserDefaultFields as I, type CreateAdFormData as J, EnumAdShowOn as K, EnumAdStyle as L, EnumAdType as M, EnumAffiliateParticipantType as N, EnumAffiliateRewardType as O, type PartnerType as P, EnumVerificationType as Q, type RefreshTokenPayloadType as R, type SafeUserType as S, type LoginFormData as T, type UserFormData as U, type MarketingMaterialRequestInputType as V, type PosterInputType as W, type RedeemHistoryType as X, type RedeemRewardInput as Y, type RedeemedReward as Z, type RegisterFormData as _, type RedeemRewardResponse as a, type ResetPasswordFormData as a0, type SchoolCampaignType as a1, type SchoolRegisteredUserType as a2, type StripeSubscription as a3, type SubscriptionPlanData as a4, type SubscriptionPricingData as a5, type UserActivity as a6, type UserActivityEvent as a7, type UserType as a8, type ValidateVerificationTokenFormData as a9, type ResourceByUser as b, type AdType as c, type SubscriptionPlansResponse as d, type SubscriptionStatusData as e, type AppSettingsType as f, type SchoolReturnType as g, type SchoolType as h, type AffiliateType as i, type CreateLoginFormData as j, type CreateRegisterFormData as k, type CreateRequestPasswordResetFormData as l, type CreateValidateVerificationTokenFormData as m, type CreateResetPasswordFormData as n, type AffiliateFormData as o, type PartnerFormData as p, type AdFormData as q, type CreateAdFormState as r, type CreatePartnerFormData as s, type AppSettingsFormData as t, type CreateAppSettingsFormData as u, type SchoolFormData as v, type CreateSchoolFormData as w, type CreateAffiliateFormData as x, type AdFormState as y, type AdResource as z };
246
+ export { type AuthPayloadType as A, type CreateAdFormData as B, type CreateLoginFormData as C, EnumAdShowOn as D, EnumAdStatus as E, EnumAdStyle as F, EnumAdType as G, EnumAffiliateParticipantType as H, EnumAffiliateRewardType as I, EnumVerificationType as J, type PosterInputType as K, type LoginFormData as L, type MarketingMaterialRequestInputType as M, type RedeemHistoryType as N, type RegisterFormData as O, type PartnerType as P, type RequestPasswordResetFormData as Q, type RefreshTokenPayloadType as R, type SchoolReturnType as S, type ResetPasswordFormData as T, type SchoolCampaignType as U, type SchoolRegisteredUserType as V, type ValidateVerificationTokenFormData as W, type AdType as a, type AppSettingsType as b, type SchoolType as c, type AffiliateType as d, type CreateRegisterFormData as e, type CreateRequestPasswordResetFormData as f, type CreateValidateVerificationTokenFormData as g, type CreateResetPasswordFormData as h, type AffiliateFormData as i, type PartnerFormData as j, type AdFormData as k, type CreateAdFormState as l, type CreatePartnerFormData as m, type AppSettingsFormData as n, type CreateAppSettingsFormData as o, type SchoolFormData as p, type CreateSchoolFormData as q, type CreateAffiliateFormData as r, type AdFormState as s, type AdResource as t, type AffiliateBankAccountDetailsType as u, type AffiliateContactDetails as v, type AffiliateDetailsType as w, type AffiliateResourceType as x, type AffiliateRewardType as y, type AffiliateUserDefaultFields as z };
@@ -1,126 +1,7 @@
1
- import { EnumOSPlatform, EnumUserRole, EnumReward, EnumSubscriptionStatus, EnumUserLicence, EnumNotificationResourceType, EnumResourceType, EnumPartnerType } from './enums/index.mjs';
2
- import { av as ResourceImageType, L as LocationType, aA as TermsAgreement, A as AssociateType, i as UserLicenceType, ak as PromoCodeType, K as DateTimeType, H as CreateFormData, D as BaseResourceType, ax as SocialShareResourceType, B as BaseResourceTypeFormData, at as ResourceContactDetailsType, aw as SocialMediaType, a6 as OwnerType } from './global-Dq6A7pNV.mjs';
1
+ import { EnumPartnerType, EnumResourceType, EnumOSPlatform } from './enums/index.mjs';
2
+ import { D as BaseResourceType, L as LocationType, ax as SocialShareResourceType, B as BaseResourceTypeFormData, H as CreateFormData, at as ResourceContactDetailsType, av as ResourceImageType, aw as SocialMediaType, aA as TermsAgreement, a6 as OwnerType, ak as PromoCodeType } from './global-959zf6qy.mjs';
3
3
  import { PosterAssetId } from './images/index.mjs';
4
-
5
- type UserFormData = {
6
- _id?: string;
7
- active: boolean;
8
- avatar?: ResourceImageType | null;
9
- avatarUpload?: ResourceImageType | null;
10
- confirmPassword?: string | null;
11
- email: string;
12
- firstName: string;
13
- isTester: boolean;
14
- lastName: string;
15
- location?: LocationType | null;
16
- password?: string | null;
17
- platform?: EnumOSPlatform;
18
- preferredRegion: string;
19
- role: EnumUserRole;
20
- termsAgreement?: TermsAgreement | null;
21
- };
22
- type CreateUserFormData = CreateFormData<UserFormData>;
23
- type UserActivityEvent = {
24
- resourceId: string;
25
- dateTime: DateTimeType;
26
- };
27
- type StripeSubscription = {
28
- customerId?: string;
29
- subscriptionId?: string;
30
- status?: EnumSubscriptionStatus;
31
- currentPlan?: EnumUserLicence;
32
- startDate?: string;
33
- endDate?: string;
34
- };
35
- type SubscriptionStatusData = {
36
- subscriptionId: string | null;
37
- status: EnumSubscriptionStatus;
38
- priceId: string | null;
39
- currentPlan: EnumUserLicence | null;
40
- };
41
- type SubscriptionPricingData = {
42
- basePrice: number;
43
- discountedPrice: number | null;
44
- hasDiscount: boolean;
45
- discountPercent: number | null;
46
- discountAmount: number | null;
47
- currency: string;
48
- formattedBasePrice: string;
49
- formattedDiscountedPrice: string | null;
50
- };
51
- type SubscriptionPlanData = {
52
- name: string;
53
- description: string | null;
54
- licenceType: EnumUserLicence;
55
- billingPeriod: string;
56
- stripeProductId: string;
57
- stripePriceId: string;
58
- isEligibleForDiscount: boolean;
59
- pricing: SubscriptionPricingData;
60
- };
61
- type SubscriptionPlansResponse = {
62
- plans: SubscriptionPlanData[];
63
- isNewUser: boolean;
64
- isTester: boolean;
65
- appliedDiscountType: string;
66
- };
67
- type UserActivity = {
68
- favourites: {
69
- events: string[];
70
- vendors: string[];
71
- partners: string[];
72
- };
73
- going: {
74
- events: UserActivityEvent[];
75
- };
76
- interested: {
77
- events: UserActivityEvent[];
78
- };
79
- present: {
80
- events: UserActivityEvent[];
81
- };
82
- };
83
- type RedeemRewardInput = {
84
- reward: EnumReward;
85
- };
86
- type RedeemRewardResponse = {
87
- userId: string;
88
- message: string;
89
- };
90
- type RedeemedReward = {
91
- name: EnumReward;
92
- pointsUsed: number;
93
- redeemedAt: Date;
94
- };
95
- type UserType = Omit<UserFormData, "confirmPassword" | "avatarUpload" | "_id"> & {
96
- _id: string;
97
- affiliate?: string | null;
98
- associates?: AssociateType[] | null;
99
- createdAt: Date;
100
- deletedAt: Date | null;
101
- events: string[] | null;
102
- game: string | null;
103
- licences: UserLicenceType[] | null;
104
- overallPoints: number | null;
105
- partner: string | null;
106
- promoCodes?: PromoCodeType[] | null;
107
- redeemedRewards?: RedeemedReward[] | null;
108
- refreshToken: string | null;
109
- school: string | null;
110
- stripe?: StripeSubscription;
111
- updatedAt: Date | null;
112
- userActivity: UserActivity | null;
113
- vendor: string | null;
114
- emailSentFor?: EnumNotificationResourceType[] | null;
115
- };
116
- type SafeUserType = Omit<UserType, "password" | "refreshToken">;
117
- type ResourceByUser = {
118
- _id: string;
119
- active: boolean;
120
- logo: string;
121
- name: string;
122
- resourceType: EnumResourceType;
123
- };
4
+ import { S as SafeUserType, U as UserFormData } from './user-CadKvubI.mjs';
124
5
 
125
6
  interface PartnerFormData extends BaseResourceTypeFormData {
126
7
  location: LocationType;
@@ -362,4 +243,4 @@ interface AdType extends AdFormData {
362
243
  updatedAt: Date | null;
363
244
  }
364
245
 
365
- export { type RequestPasswordResetFormData as $, type AuthPayloadType as A, type AffiliateBankAccountDetailsType as B, type CreateUserFormData as C, type AffiliateContactDetails as D, EnumAdStatus as E, type AffiliateDetailsType as F, type AffiliateResourceType as G, type AffiliateRewardType as H, type AffiliateUserDefaultFields as I, type CreateAdFormData as J, EnumAdShowOn as K, EnumAdStyle as L, EnumAdType as M, EnumAffiliateParticipantType as N, EnumAffiliateRewardType as O, type PartnerType as P, EnumVerificationType as Q, type RefreshTokenPayloadType as R, type SafeUserType as S, type LoginFormData as T, type UserFormData as U, type MarketingMaterialRequestInputType as V, type PosterInputType as W, type RedeemHistoryType as X, type RedeemRewardInput as Y, type RedeemedReward as Z, type RegisterFormData as _, type RedeemRewardResponse as a, type ResetPasswordFormData as a0, type SchoolCampaignType as a1, type SchoolRegisteredUserType as a2, type StripeSubscription as a3, type SubscriptionPlanData as a4, type SubscriptionPricingData as a5, type UserActivity as a6, type UserActivityEvent as a7, type UserType as a8, type ValidateVerificationTokenFormData as a9, type ResourceByUser as b, type AdType as c, type SubscriptionPlansResponse as d, type SubscriptionStatusData as e, type AppSettingsType as f, type SchoolReturnType as g, type SchoolType as h, type AffiliateType as i, type CreateLoginFormData as j, type CreateRegisterFormData as k, type CreateRequestPasswordResetFormData as l, type CreateValidateVerificationTokenFormData as m, type CreateResetPasswordFormData as n, type AffiliateFormData as o, type PartnerFormData as p, type AdFormData as q, type CreateAdFormState as r, type CreatePartnerFormData as s, type AppSettingsFormData as t, type CreateAppSettingsFormData as u, type SchoolFormData as v, type CreateSchoolFormData as w, type CreateAffiliateFormData as x, type AdFormState as y, type AdResource as z };
246
+ export { type AuthPayloadType as A, type CreateAdFormData as B, type CreateLoginFormData as C, EnumAdShowOn as D, EnumAdStatus as E, EnumAdStyle as F, EnumAdType as G, EnumAffiliateParticipantType as H, EnumAffiliateRewardType as I, EnumVerificationType as J, type PosterInputType as K, type LoginFormData as L, type MarketingMaterialRequestInputType as M, type RedeemHistoryType as N, type RegisterFormData as O, type PartnerType as P, type RequestPasswordResetFormData as Q, type RefreshTokenPayloadType as R, type SchoolReturnType as S, type ResetPasswordFormData as T, type SchoolCampaignType as U, type SchoolRegisteredUserType as V, type ValidateVerificationTokenFormData as W, type AdType as a, type AppSettingsType as b, type SchoolType as c, type AffiliateType as d, type CreateRegisterFormData as e, type CreateRequestPasswordResetFormData as f, type CreateValidateVerificationTokenFormData as g, type CreateResetPasswordFormData as h, type AffiliateFormData as i, type PartnerFormData as j, type AdFormData as k, type CreateAdFormState as l, type CreatePartnerFormData as m, type AppSettingsFormData as n, type CreateAppSettingsFormData as o, type SchoolFormData as p, type CreateSchoolFormData as q, type CreateAffiliateFormData as r, type AdFormState as s, type AdResource as t, type AffiliateBankAccountDetailsType as u, type AffiliateContactDetails as v, type AffiliateDetailsType as w, type AffiliateResourceType as x, type AffiliateRewardType as y, type AffiliateUserDefaultFields as z };