@timardex/cluemart-shared 1.2.4 → 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 };
@@ -45,6 +45,7 @@ __export(formFields_exports, {
45
45
  loginFields: () => loginFields,
46
46
  packagingOptions: () => packagingOptions,
47
47
  producedIngOptions: () => producedIngOptions,
48
+ productLabelGroups: () => productLabelGroups,
48
49
  profileFields: () => profileFields,
49
50
  registerFields: () => registerFields,
50
51
  requestPasswordResetFields: () => requestPasswordResetFields,
@@ -246,6 +247,73 @@ var availableCityTypes = [
246
247
  "Wellington"
247
248
  ];
248
249
  var availableCityOptions = mapArrayToOptions(availableCityTypes);
250
+ var productLabelGroups = [
251
+ {
252
+ category: "Food Sensitivity",
253
+ items: [
254
+ { abbreviation: "DF", fullName: "Dairy-Free" },
255
+ { abbreviation: "EF", fullName: "Egg-Free" },
256
+ { abbreviation: "GF", fullName: "Gluten-Free" },
257
+ { abbreviation: "NF", fullName: "Nut-Free" }
258
+ ]
259
+ },
260
+ {
261
+ category: "Lifestyle",
262
+ items: [
263
+ { abbreviation: "KETO", fullName: "Keto-Friendly" },
264
+ { abbreviation: "P", fullName: "Paleo" },
265
+ { abbreviation: "V", fullName: "Vegan" },
266
+ { abbreviation: "VG", fullName: "Vegetarian" }
267
+ ]
268
+ },
269
+ {
270
+ category: "Natural",
271
+ items: [
272
+ { abbreviation: "ECO", fullName: "Eco-Friendly" },
273
+ { abbreviation: "ORGANIC", fullName: "Organic Product" }
274
+ ]
275
+ },
276
+ {
277
+ category: "Market Character",
278
+ items: [
279
+ { abbreviation: "HM", fullName: "Handmade" },
280
+ { abbreviation: "LOC", fullName: "Local Product" }
281
+ ]
282
+ },
283
+ {
284
+ category: "Cosmetic / Natural",
285
+ items: [
286
+ { abbreviation: "AROM", fullName: "Aromatherapy" },
287
+ { abbreviation: "CRF", fullName: "Cruelty-Free" },
288
+ { abbreviation: "HYPO", fullName: "Hypoallergenic" }
289
+ ]
290
+ },
291
+ {
292
+ category: "Animal Related",
293
+ items: [
294
+ { abbreviation: "GF-PET", fullName: "Grain-Free (Pet)" },
295
+ { abbreviation: "PF", fullName: "Pet-Friendly" }
296
+ ]
297
+ },
298
+ {
299
+ category: "Plant / Natural",
300
+ items: [
301
+ { abbreviation: "NPF", fullName: "Non-Pesticide / Chemical-Free" },
302
+ { abbreviation: "PLN", fullName: "Plant-Based" }
303
+ ]
304
+ },
305
+ {
306
+ category: "Gift / Design",
307
+ items: [
308
+ { abbreviation: "ART", fullName: "Artisan" },
309
+ { abbreviation: "LTD", fullName: "Limited Edition" }
310
+ ]
311
+ },
312
+ {
313
+ category: "Sustainability",
314
+ items: [{ abbreviation: "ZWP", fullName: "Zero-Waste Product" }]
315
+ }
316
+ ];
249
317
 
250
318
  // src/formFields/vendor/vendorInfo.ts
251
319
  var vendorElectricity = {
@@ -1799,6 +1867,7 @@ var companyContactFields = [
1799
1867
  loginFields,
1800
1868
  packagingOptions,
1801
1869
  producedIngOptions,
1870
+ productLabelGroups,
1802
1871
  profileFields,
1803
1872
  registerFields,
1804
1873
  requestPasswordResetFields,