@timardex/cluemart-shared 1.2.5 → 1.2.6

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.
@@ -32,6 +32,7 @@ type UserFormData = {
32
32
  platform?: EnumOSPlatform;
33
33
  preferredRegion: string;
34
34
  role: EnumUserRole;
35
+ termsAgreement?: TermsAgreement | null;
35
36
  };
36
37
  type CreateUserFormData = CreateFormData<UserFormData>;
37
38
  interface UserType {
@@ -60,8 +61,9 @@ interface UserType {
60
61
  };
61
62
  refreshToken: string | null;
62
63
  role: EnumUserRole;
63
- vendor: string | null;
64
+ termsAgreement?: TermsAgreement | null;
64
65
  updatedAt: string;
66
+ vendor: string | null;
65
67
  }
66
68
 
67
69
  declare enum EnumAdShowOn {
@@ -111,4 +113,51 @@ interface AdType extends AdFormData {
111
113
  updatedAt: Date;
112
114
  }
113
115
 
114
- 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 };
116
+ type TermsAgreement = {
117
+ appBuildNumber: string;
118
+ appId: string;
119
+ appVersion: string;
120
+ brand: string;
121
+ deviceName: string;
122
+ installationId: string;
123
+ manufacturer: string;
124
+ modelName: string;
125
+ osName: string;
126
+ osVersion: string;
127
+ termVersion: string;
128
+ timestamp: string;
129
+ };
130
+ type LoginFormData = {
131
+ email: string;
132
+ isAdminPage?: boolean;
133
+ password: string;
134
+ platform?: EnumOSPlatform;
135
+ };
136
+ type CreateLoginFormData = CreateFormData<LoginFormData>;
137
+ type RegisterFormData = {
138
+ email: string;
139
+ firstName: string;
140
+ lastName: string;
141
+ password: string;
142
+ platform?: EnumOSPlatform;
143
+ preferredRegion: string;
144
+ termsAgreement?: TermsAgreement | null;
145
+ };
146
+ type CreateRegisterFormData = CreateFormData<RegisterFormData>;
147
+ type RequestPasswordResetFormData = {
148
+ email: string;
149
+ };
150
+ type CreateRequestPasswordResetFormData = CreateFormData<RequestPasswordResetFormData>;
151
+ type ResetPasswordFormData = {
152
+ confirmPassword: string;
153
+ email: string;
154
+ password: string;
155
+ };
156
+ type CreateResetPasswordFormData = CreateFormData<ResetPasswordFormData>;
157
+ type ValidateVerificationTokenFormData = {
158
+ email: string;
159
+ verificationToken: string;
160
+ };
161
+ type CreateValidateVerificationTokenFormData = CreateFormData<ValidateVerificationTokenFormData>;
162
+
163
+ export { type AdType as A, type CreateUserFormData as C, EnumAdStatus as E, type LoginFormData as L, type RegisterFormData as R, type TesterType as T, type UserType as U, type ValidateVerificationTokenFormData as V, type UserFormData as a, type CreateLoginFormData as b, type CreateRegisterFormData as c, type CreateRequestPasswordResetFormData as d, type CreateValidateVerificationTokenFormData as e, type CreateResetPasswordFormData as f, type TestersFormData as g, type CreateTestersFormData as h, type AdFormData as i, type CreateAdFormData as j, type TermsAgreement as k, type RequestPasswordResetFormData as l, type ResetPasswordFormData as m, EnumAdShowOn as n, EnumAdType as o, EnumAdStyle as p };
@@ -32,6 +32,7 @@ type UserFormData = {
32
32
  platform?: EnumOSPlatform;
33
33
  preferredRegion: string;
34
34
  role: EnumUserRole;
35
+ termsAgreement?: TermsAgreement | null;
35
36
  };
36
37
  type CreateUserFormData = CreateFormData<UserFormData>;
37
38
  interface UserType {
@@ -60,8 +61,9 @@ interface UserType {
60
61
  };
61
62
  refreshToken: string | null;
62
63
  role: EnumUserRole;
63
- vendor: string | null;
64
+ termsAgreement?: TermsAgreement | null;
64
65
  updatedAt: string;
66
+ vendor: string | null;
65
67
  }
66
68
 
67
69
  declare enum EnumAdShowOn {
@@ -111,4 +113,51 @@ interface AdType extends AdFormData {
111
113
  updatedAt: Date;
112
114
  }
113
115
 
114
- 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 };
116
+ type TermsAgreement = {
117
+ appBuildNumber: string;
118
+ appId: string;
119
+ appVersion: string;
120
+ brand: string;
121
+ deviceName: string;
122
+ installationId: string;
123
+ manufacturer: string;
124
+ modelName: string;
125
+ osName: string;
126
+ osVersion: string;
127
+ termVersion: string;
128
+ timestamp: string;
129
+ };
130
+ type LoginFormData = {
131
+ email: string;
132
+ isAdminPage?: boolean;
133
+ password: string;
134
+ platform?: EnumOSPlatform;
135
+ };
136
+ type CreateLoginFormData = CreateFormData<LoginFormData>;
137
+ type RegisterFormData = {
138
+ email: string;
139
+ firstName: string;
140
+ lastName: string;
141
+ password: string;
142
+ platform?: EnumOSPlatform;
143
+ preferredRegion: string;
144
+ termsAgreement?: TermsAgreement | null;
145
+ };
146
+ type CreateRegisterFormData = CreateFormData<RegisterFormData>;
147
+ type RequestPasswordResetFormData = {
148
+ email: string;
149
+ };
150
+ type CreateRequestPasswordResetFormData = CreateFormData<RequestPasswordResetFormData>;
151
+ type ResetPasswordFormData = {
152
+ confirmPassword: string;
153
+ email: string;
154
+ password: string;
155
+ };
156
+ type CreateResetPasswordFormData = CreateFormData<ResetPasswordFormData>;
157
+ type ValidateVerificationTokenFormData = {
158
+ email: string;
159
+ verificationToken: string;
160
+ };
161
+ type CreateValidateVerificationTokenFormData = CreateFormData<ValidateVerificationTokenFormData>;
162
+
163
+ export { type AdType as A, type CreateUserFormData as C, EnumAdStatus as E, type LoginFormData as L, type RegisterFormData as R, type TesterType as T, type UserType as U, type ValidateVerificationTokenFormData as V, type UserFormData as a, type CreateLoginFormData as b, type CreateRegisterFormData as c, type CreateRequestPasswordResetFormData as d, type CreateValidateVerificationTokenFormData as e, type CreateResetPasswordFormData as f, type TestersFormData as g, type CreateTestersFormData as h, type AdFormData as i, type CreateAdFormData as j, type TermsAgreement as k, type RequestPasswordResetFormData as l, type ResetPasswordFormData as m, EnumAdShowOn as n, EnumAdType as o, EnumAdStyle as p };
@@ -0,0 +1,11 @@
1
+ import { v as CreateFormData } from './global-CNiNcYkF.mjs';
2
+
3
+ type ContactUsFormData = {
4
+ email: string;
5
+ firstName: string;
6
+ lastName: string;
7
+ message: string;
8
+ };
9
+ type CreateContactUsFormData = CreateFormData<ContactUsFormData>;
10
+
11
+ export type { ContactUsFormData as C, CreateContactUsFormData as a };
@@ -0,0 +1,11 @@
1
+ import { v as CreateFormData } from './global-Clh5l5eo.js';
2
+
3
+ type ContactUsFormData = {
4
+ email: string;
5
+ firstName: string;
6
+ lastName: string;
7
+ message: string;
8
+ };
9
+ type CreateContactUsFormData = CreateFormData<ContactUsFormData>;
10
+
11
+ export type { ContactUsFormData as C, CreateContactUsFormData as a };
@@ -195,6 +195,20 @@ var USER_FIELDS_FRAGMENT = import_client2.gql`
195
195
  }
196
196
  refreshToken
197
197
  role
198
+ termsAgreement {
199
+ appBuildNumber
200
+ appId
201
+ appVersion
202
+ brand
203
+ deviceName
204
+ installationId
205
+ manufacturer
206
+ modelName
207
+ osName
208
+ osVersion
209
+ termVersion
210
+ timestamp
211
+ }
198
212
  vendor
199
213
  updatedAt
200
214
  }