@timardex/cluemart-shared 1.2.6 → 1.2.7

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.
@@ -55,10 +55,6 @@ interface UserType {
55
55
  platform: EnumOSPlatform | null;
56
56
  preferredRegion: string;
57
57
  partners?: PartnerType[] | null;
58
- refreshTokenExpiry: {
59
- token: string;
60
- expiresAt: string;
61
- };
62
58
  refreshToken: string | null;
63
59
  role: EnumUserRole;
64
60
  termsAgreement?: TermsAgreement | null;
@@ -113,7 +109,7 @@ interface AdType extends AdFormData {
113
109
  updatedAt: Date;
114
110
  }
115
111
 
116
- type TermsAgreement = {
112
+ type DeviceInfo = {
117
113
  appBuildNumber: string;
118
114
  appId: string;
119
115
  appVersion: string;
@@ -124,9 +120,11 @@ type TermsAgreement = {
124
120
  modelName: string;
125
121
  osName: string;
126
122
  osVersion: string;
127
- termVersion: string;
128
123
  timestamp: string;
129
124
  };
125
+ type TermsAgreement = DeviceInfo & {
126
+ termVersion: string;
127
+ };
130
128
  type LoginFormData = {
131
129
  email: string;
132
130
  isAdminPage?: boolean;
@@ -160,4 +158,4 @@ type ValidateVerificationTokenFormData = {
160
158
  };
161
159
  type CreateValidateVerificationTokenFormData = CreateFormData<ValidateVerificationTokenFormData>;
162
160
 
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 };
161
+ export { type AdType as A, type CreateUserFormData as C, type DeviceInfo as D, 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 };
@@ -55,10 +55,6 @@ interface UserType {
55
55
  platform: EnumOSPlatform | null;
56
56
  preferredRegion: string;
57
57
  partners?: PartnerType[] | null;
58
- refreshTokenExpiry: {
59
- token: string;
60
- expiresAt: string;
61
- };
62
58
  refreshToken: string | null;
63
59
  role: EnumUserRole;
64
60
  termsAgreement?: TermsAgreement | null;
@@ -113,7 +109,7 @@ interface AdType extends AdFormData {
113
109
  updatedAt: Date;
114
110
  }
115
111
 
116
- type TermsAgreement = {
112
+ type DeviceInfo = {
117
113
  appBuildNumber: string;
118
114
  appId: string;
119
115
  appVersion: string;
@@ -124,9 +120,11 @@ type TermsAgreement = {
124
120
  modelName: string;
125
121
  osName: string;
126
122
  osVersion: string;
127
- termVersion: string;
128
123
  timestamp: string;
129
124
  };
125
+ type TermsAgreement = DeviceInfo & {
126
+ termVersion: string;
127
+ };
130
128
  type LoginFormData = {
131
129
  email: string;
132
130
  isAdminPage?: boolean;
@@ -160,4 +158,4 @@ type ValidateVerificationTokenFormData = {
160
158
  };
161
159
  type CreateValidateVerificationTokenFormData = CreateFormData<ValidateVerificationTokenFormData>;
162
160
 
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 };
161
+ export { type AdType as A, type CreateUserFormData as C, type DeviceInfo as D, 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 };
@@ -2,7 +2,7 @@ import * as _apollo_client from '@apollo/client';
2
2
  import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceViewsType } from '../resourceViews-B-u5nH1M.mjs';
3
3
  import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType } from '../global-CNiNcYkF.mjs';
4
4
  import { EnumResourceType } from '../enums/index.mjs';
5
- import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus } from '../auth-NEJeIZp5.mjs';
5
+ import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus } from '../auth-Dcif6SZD.mjs';
6
6
  import 'react-hook-form';
7
7
 
8
8
  declare const useAdminUpdateResourceType: () => {
@@ -2,7 +2,7 @@ import * as _apollo_client from '@apollo/client';
2
2
  import { C as ChatType, N as NotificationType, a as NotificationCount, R as ResourceViewsType } from '../resourceViews-BZZt3kvl.js';
3
3
  import { E as EventType, b as EventInfoType, c as RelationType, d as ResourceConnectionsType, V as VendorType, e as VendorInfoType } from '../global-Clh5l5eo.js';
4
4
  import { EnumResourceType } from '../enums/index.js';
5
- import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus } from '../auth-AfM4Q2Zl.js';
5
+ import { T as TesterType, U as UserType, A as AdType, E as EnumAdStatus } from '../auth-BS0Z8xN3.js';
6
6
  import 'react-hook-form';
7
7
 
8
8
  declare const useAdminUpdateResourceType: () => {
@@ -1195,7 +1195,8 @@ function useUserForm(data) {
1195
1195
  lastName: data.lastName,
1196
1196
  password: data.password,
1197
1197
  preferredRegion: data.preferredRegion,
1198
- role: data.role
1198
+ role: data.role,
1199
+ termsAgreement: data.termsAgreement
1199
1200
  });
1200
1201
  } else {
1201
1202
  reset(defaultValues);
@@ -1212,7 +1213,8 @@ function useUserForm(data) {
1212
1213
  lastName,
1213
1214
  password,
1214
1215
  preferredRegion,
1215
- role
1216
+ role,
1217
+ termsAgreement
1216
1218
  } = getValues();
1217
1219
  return {
1218
1220
  control,
@@ -1227,7 +1229,8 @@ function useUserForm(data) {
1227
1229
  lastName,
1228
1230
  password,
1229
1231
  preferredRegion,
1230
- role
1232
+ role,
1233
+ termsAgreement
1231
1234
  },
1232
1235
  formState: { errors },
1233
1236
  handleSubmit,