@timardex/cluemart-shared 1.1.28 → 1.1.30

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 (42) hide show
  1. package/dist/ad-CJzmTWSn.d.mts +123 -0
  2. package/dist/ad-p-iMUyA7.d.ts +123 -0
  3. package/dist/auth-BWdfPzae.d.ts +44 -0
  4. package/dist/auth-BiazhMfX.d.mts +44 -0
  5. package/dist/chunk-RNCMM53N.mjs +18 -0
  6. package/dist/chunk-RNCMM53N.mjs.map +1 -0
  7. package/dist/formFields/index.d.mts +2 -2
  8. package/dist/formFields/index.d.ts +2 -2
  9. package/dist/{global-BWyNs7d9.d.ts → global-3BBlxnva.d.ts} +18 -46
  10. package/dist/{global-44_9bbnH.d.mts → global-DPGWQCsT.d.mts} +18 -46
  11. package/dist/graphql/index.cjs +184 -0
  12. package/dist/graphql/index.cjs.map +1 -1
  13. package/dist/graphql/index.d.mts +45 -4
  14. package/dist/graphql/index.d.ts +45 -4
  15. package/dist/graphql/index.mjs +178 -0
  16. package/dist/graphql/index.mjs.map +1 -1
  17. package/dist/hooks/index.cjs +176 -5
  18. package/dist/hooks/index.cjs.map +1 -1
  19. package/dist/hooks/index.d.mts +7 -5
  20. package/dist/hooks/index.d.ts +7 -5
  21. package/dist/hooks/index.mjs +164 -5
  22. package/dist/hooks/index.mjs.map +1 -1
  23. package/dist/index.cjs +364 -5
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.d.mts +128 -134
  26. package/dist/index.d.ts +128 -134
  27. package/dist/index.mjs +355 -5
  28. package/dist/index.mjs.map +1 -1
  29. package/dist/{notification-BdeLHjVo.d.mts → notification-BCTdNYCc.d.mts} +1 -1
  30. package/dist/{notification-0bjZIx2v.d.ts → notification-Bg5iTdb5.d.ts} +1 -1
  31. package/dist/types/index.cjs +26 -0
  32. package/dist/types/index.cjs.map +1 -1
  33. package/dist/types/index.d.mts +4 -4
  34. package/dist/types/index.d.ts +4 -4
  35. package/dist/types/index.mjs +8 -0
  36. package/dist/utils/index.d.mts +1 -1
  37. package/dist/utils/index.d.ts +1 -1
  38. package/package.json +1 -1
  39. package/dist/auth-D13Gd2TA.d.ts +0 -104
  40. package/dist/auth-D8fGJCGz.d.mts +0 -104
  41. package/dist/user-D_ji1aP6.d.mts +0 -85
  42. package/dist/user-nZ_jJwZp.d.ts +0 -85
@@ -1,5 +1,5 @@
1
1
  import { EnumChatType, EnumNotificationType, EnumNotificationResourceType } from './enums/index.mjs';
2
- import { q as OwnerType } from './global-44_9bbnH.mjs';
2
+ import { q as OwnerType } from './global-DPGWQCsT.mjs';
3
3
 
4
4
  type ParticipantType = Omit<OwnerType, "licences"> & {
5
5
  active: boolean;
@@ -1,5 +1,5 @@
1
1
  import { EnumChatType, EnumNotificationType, EnumNotificationResourceType } from './enums/index.js';
2
- import { q as OwnerType } from './global-BWyNs7d9.js';
2
+ import { q as OwnerType } from './global-3BBlxnva.js';
3
3
 
4
4
  type ParticipantType = Omit<OwnerType, "licences"> & {
5
5
  active: boolean;
@@ -3,6 +3,10 @@ var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
6
10
  var __copyProps = (to, from, except, desc) => {
7
11
  if (from && typeof from === "object" || typeof from === "function") {
8
12
  for (let key of __getOwnPropNames(from))
@@ -15,5 +19,27 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
15
19
 
16
20
  // src/types/index.ts
17
21
  var types_exports = {};
22
+ __export(types_exports, {
23
+ EnumAdMediaType: () => EnumAdMediaType,
24
+ EnumAdStatus: () => EnumAdStatus
25
+ });
18
26
  module.exports = __toCommonJS(types_exports);
27
+
28
+ // src/types/ad.ts
29
+ var EnumAdStatus = /* @__PURE__ */ ((EnumAdStatus2) => {
30
+ EnumAdStatus2["ACTIVE"] = "active";
31
+ EnumAdStatus2["PAUSED"] = "paused";
32
+ EnumAdStatus2["EXPIRED"] = "expired";
33
+ return EnumAdStatus2;
34
+ })(EnumAdStatus || {});
35
+ var EnumAdMediaType = /* @__PURE__ */ ((EnumAdMediaType2) => {
36
+ EnumAdMediaType2["IMAGE"] = "image";
37
+ EnumAdMediaType2["VIDEO"] = "video";
38
+ return EnumAdMediaType2;
39
+ })(EnumAdMediaType || {});
40
+ // Annotate the CommonJS export names for ESM import in node:
41
+ 0 && (module.exports = {
42
+ EnumAdMediaType,
43
+ EnumAdStatus
44
+ });
19
45
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/types/index.ts"],"sourcesContent":["export * from \"./admin\";\nexport * from \"./auth\";\nexport * from \"./chat\";\nexport * from \"./contactUs\";\nexport * from \"./global\";\nexport * from \"./market\";\nexport * from \"./notification\";\nexport * from \"./poster\";\nexport * from \"./relation\";\nexport * from \"./stallholder\";\nexport * from \"./testers\";\nexport * from \"./user\";\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../../src/types/index.ts","../../src/types/ad.ts"],"sourcesContent":["export * from \"./admin\";\nexport * from \"./auth\";\nexport * from \"./chat\";\nexport * from \"./contactUs\";\nexport * from \"./global\";\nexport * from \"./market\";\nexport * from \"./notification\";\nexport * from \"./poster\";\nexport * from \"./relation\";\nexport * from \"./stallholder\";\nexport * from \"./testers\";\nexport * from \"./user\";\nexport * from \"./ad\";\n","import { EnumResourceType } from \"src/enums\";\n\nimport { CreateFormData, SocialMediaType } from \"./global\";\n\nexport enum EnumAdStatus {\n ACTIVE = \"active\",\n PAUSED = \"paused\",\n EXPIRED = \"expired\",\n}\n\nexport enum EnumAdMediaType {\n IMAGE = \"image\",\n VIDEO = \"video\",\n}\n\nexport interface AdFormData {\n _id?: string;\n ctaText?: string | null;\n ctaUrl?: string | null;\n end: string; // ISO date string\n media?: { type: EnumAdMediaType; url: string }[] | null;\n resourceCover: string;\n resourceDescription: string;\n resourceId: string;\n resourceLogo?: string | null;\n resourceName: string;\n resourceRegion: string;\n resourceType: EnumResourceType;\n socialMedia?: SocialMediaType[] | null;\n start: string; // ISO date string\n status: EnumAdStatus;\n targetRegion: string; // same format as resourceRegion\n}\n\nexport type CreateAdFormData = CreateFormData<AdFormData>;\n\nexport interface AdType {\n _id?: string;\n clicks?: number; // How many times the ad was clicked\n clui?: string;\n createdAt?: Date;\n ctaText?: string; // e.g., \"Visit Stall\"\n ctaUrl?: string; // link the ad directs to\n end: Date;\n impressions?: number; // How often the ad was seen\n media?: { type: EnumAdMediaType; url: string }[] | null;\n resourceCover: string;\n resourceDescription: string;\n resourceId: string;\n resourceLogo: string | null;\n resourceName: string;\n resourceRegion: string;\n resourceType: EnumResourceType;\n socialMedia: SocialMediaType[];\n start: Date;\n status: EnumAdStatus;\n targetInterests?: string[]; // e.g., [\"organic food\", \"crafts\"]\n targetRegion?: string; // same format as resourceRegion\n updatedAt?: Date;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACIO,IAAK,eAAL,kBAAKA,kBAAL;AACL,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,aAAU;AAHA,SAAAA;AAAA,GAAA;AAML,IAAK,kBAAL,kBAAKC,qBAAL;AACL,EAAAA,iBAAA,WAAQ;AACR,EAAAA,iBAAA,WAAQ;AAFE,SAAAA;AAAA,GAAA;","names":["EnumAdStatus","EnumAdMediaType"]}
@@ -1,8 +1,8 @@
1
1
  import { EnumResourceType } from '../enums/index.mjs';
2
- export { e as ContactUsFormData, f as CreateContactUsFormData, C as CreateLoginFormData, a as CreateRegisterFormData, b as CreateRequestPasswordResetFormData, d as CreateResetPasswordFormData, c as CreateValidateVerificationTokenFormData, L as LoginFormData, R as RegisterFormData, g as RequestPasswordResetFormData, h as ResetPasswordFormData, V as ValidateVerificationTokenFormData } from '../auth-D8fGJCGz.mjs';
3
- export { b as ChatMessageInput, c as ChatMessageType, C as ChatType, e as CreateBulkNotificationInput, a as NotificationCount, d as NotificationDataType, N as NotificationType, P as ParticipantType } from '../notification-BdeLHjVo.mjs';
4
- export { r as BaseResourceType, B as BaseResourceTypeFormData, C as Category, l as CreateMarketFormData, n as CreateMarketInfoFormData, h as CreateStallholderFormData, j as CreateStallholderInfoFormData, D as DateTimeType, w as DateTimeWithPriceType, a as FormDateField, F as FormField, G as GeocodeLocation, I as ImageObjectType, L as LocationType, t as MapMultiLocation, k as MarketFormData, m as MarketInfoFormData, b as MarketInfoType, M as MarketType, x as MarketWithConnectionDatesType, N as Nullable, O as OptionItem, q as OwnerType, P as PaymentInfoType, s as Region, y as RelationDate, c as RelationType, R as Requirement, d as ResourceConnectionsType, o as ResourceImageType, E as SatllholderWithConnectionDatesType, p as SocialMediaType, S as StallType, A as StallholderAttributes, g as StallholderFormData, i as StallholderInfoFormData, f as StallholderInfoType, z as StallholderLocation, e as StallholderType, v as Subcategory, u as SubcategoryItems } from '../global-44_9bbnH.mjs';
5
- export { c as CreateTestersFormData, C as CreateUserFormData, T as TesterType, b as TestersFormData, a as UserFormData, U as UserType } from '../user-D_ji1aP6.mjs';
2
+ export { e as ContactUsFormData, f as CreateContactUsFormData, C as CreateLoginFormData, a as CreateRegisterFormData, b as CreateRequestPasswordResetFormData, d as CreateResetPasswordFormData, c as CreateValidateVerificationTokenFormData, L as LoginFormData, R as RegisterFormData, g as RequestPasswordResetFormData, h as ResetPasswordFormData, V as ValidateVerificationTokenFormData } from '../auth-BiazhMfX.mjs';
3
+ export { b as ChatMessageInput, c as ChatMessageType, C as ChatType, e as CreateBulkNotificationInput, a as NotificationCount, d as NotificationDataType, N as NotificationType, P as ParticipantType } from '../notification-BCTdNYCc.mjs';
4
+ export { r as BaseResourceType, B as BaseResourceTypeFormData, C as Category, w as CreateFormData, l as CreateMarketFormData, n as CreateMarketInfoFormData, h as CreateStallholderFormData, j as CreateStallholderInfoFormData, D as DateTimeType, x as DateTimeWithPriceType, a as FormDateField, F as FormField, G as GeocodeLocation, I as ImageObjectType, L as LocationType, t as MapMultiLocation, k as MarketFormData, m as MarketInfoFormData, b as MarketInfoType, M as MarketType, y as MarketWithConnectionDatesType, N as Nullable, O as OptionItem, q as OwnerType, P as PaymentInfoType, s as Region, z as RelationDate, c as RelationType, R as Requirement, d as ResourceConnectionsType, o as ResourceImageType, H as SatllholderWithConnectionDatesType, p as SocialMediaType, S as StallType, E as StallholderAttributes, g as StallholderFormData, i as StallholderInfoFormData, f as StallholderInfoType, A as StallholderLocation, e as StallholderType, v as Subcategory, u as SubcategoryItems } from '../global-DPGWQCsT.mjs';
5
+ export { d as AdFormData, A as AdType, e as CreateAdFormData, c as CreateTestersFormData, C as CreateUserFormData, f as EnumAdMediaType, E as EnumAdStatus, T as TesterType, b as TestersFormData, a as UserFormData, U as UserType } from '../ad-CJzmTWSn.mjs';
6
6
  import 'react-hook-form';
7
7
 
8
8
  interface AdminUpdateResourceType {
@@ -1,8 +1,8 @@
1
1
  import { EnumResourceType } from '../enums/index.js';
2
- export { e as ContactUsFormData, f as CreateContactUsFormData, C as CreateLoginFormData, a as CreateRegisterFormData, b as CreateRequestPasswordResetFormData, d as CreateResetPasswordFormData, c as CreateValidateVerificationTokenFormData, L as LoginFormData, R as RegisterFormData, g as RequestPasswordResetFormData, h as ResetPasswordFormData, V as ValidateVerificationTokenFormData } from '../auth-D13Gd2TA.js';
3
- export { b as ChatMessageInput, c as ChatMessageType, C as ChatType, e as CreateBulkNotificationInput, a as NotificationCount, d as NotificationDataType, N as NotificationType, P as ParticipantType } from '../notification-0bjZIx2v.js';
4
- export { r as BaseResourceType, B as BaseResourceTypeFormData, C as Category, l as CreateMarketFormData, n as CreateMarketInfoFormData, h as CreateStallholderFormData, j as CreateStallholderInfoFormData, D as DateTimeType, w as DateTimeWithPriceType, a as FormDateField, F as FormField, G as GeocodeLocation, I as ImageObjectType, L as LocationType, t as MapMultiLocation, k as MarketFormData, m as MarketInfoFormData, b as MarketInfoType, M as MarketType, x as MarketWithConnectionDatesType, N as Nullable, O as OptionItem, q as OwnerType, P as PaymentInfoType, s as Region, y as RelationDate, c as RelationType, R as Requirement, d as ResourceConnectionsType, o as ResourceImageType, E as SatllholderWithConnectionDatesType, p as SocialMediaType, S as StallType, A as StallholderAttributes, g as StallholderFormData, i as StallholderInfoFormData, f as StallholderInfoType, z as StallholderLocation, e as StallholderType, v as Subcategory, u as SubcategoryItems } from '../global-BWyNs7d9.js';
5
- export { c as CreateTestersFormData, C as CreateUserFormData, T as TesterType, b as TestersFormData, a as UserFormData, U as UserType } from '../user-nZ_jJwZp.js';
2
+ export { e as ContactUsFormData, f as CreateContactUsFormData, C as CreateLoginFormData, a as CreateRegisterFormData, b as CreateRequestPasswordResetFormData, d as CreateResetPasswordFormData, c as CreateValidateVerificationTokenFormData, L as LoginFormData, R as RegisterFormData, g as RequestPasswordResetFormData, h as ResetPasswordFormData, V as ValidateVerificationTokenFormData } from '../auth-BWdfPzae.js';
3
+ export { b as ChatMessageInput, c as ChatMessageType, C as ChatType, e as CreateBulkNotificationInput, a as NotificationCount, d as NotificationDataType, N as NotificationType, P as ParticipantType } from '../notification-Bg5iTdb5.js';
4
+ export { r as BaseResourceType, B as BaseResourceTypeFormData, C as Category, w as CreateFormData, l as CreateMarketFormData, n as CreateMarketInfoFormData, h as CreateStallholderFormData, j as CreateStallholderInfoFormData, D as DateTimeType, x as DateTimeWithPriceType, a as FormDateField, F as FormField, G as GeocodeLocation, I as ImageObjectType, L as LocationType, t as MapMultiLocation, k as MarketFormData, m as MarketInfoFormData, b as MarketInfoType, M as MarketType, y as MarketWithConnectionDatesType, N as Nullable, O as OptionItem, q as OwnerType, P as PaymentInfoType, s as Region, z as RelationDate, c as RelationType, R as Requirement, d as ResourceConnectionsType, o as ResourceImageType, H as SatllholderWithConnectionDatesType, p as SocialMediaType, S as StallType, E as StallholderAttributes, g as StallholderFormData, i as StallholderInfoFormData, f as StallholderInfoType, A as StallholderLocation, e as StallholderType, v as Subcategory, u as SubcategoryItems } from '../global-3BBlxnva.js';
5
+ export { d as AdFormData, A as AdType, e as CreateAdFormData, c as CreateTestersFormData, C as CreateUserFormData, f as EnumAdMediaType, E as EnumAdStatus, T as TesterType, b as TestersFormData, a as UserFormData, U as UserType } from '../ad-p-iMUyA7.js';
6
6
  import 'react-hook-form';
7
7
 
8
8
  interface AdminUpdateResourceType {
@@ -1 +1,9 @@
1
+ import {
2
+ EnumAdMediaType,
3
+ EnumAdStatus
4
+ } from "../chunk-RNCMM53N.mjs";
5
+ export {
6
+ EnumAdMediaType,
7
+ EnumAdStatus
8
+ };
1
9
  //# sourceMappingURL=index.mjs.map
@@ -1,5 +1,5 @@
1
1
  import { EnumInviteStatus, EnumRegions } from '../enums/index.mjs';
2
- import { s as Region, O as OptionItem } from '../global-44_9bbnH.mjs';
2
+ import { s as Region, O as OptionItem } from '../global-DPGWQCsT.mjs';
3
3
  import 'react-hook-form';
4
4
 
5
5
  declare const dateFormat = "DD-MM-YYYY";
@@ -1,5 +1,5 @@
1
1
  import { EnumInviteStatus, EnumRegions } from '../enums/index.js';
2
- import { s as Region, O as OptionItem } from '../global-BWyNs7d9.js';
2
+ import { s as Region, O as OptionItem } from '../global-3BBlxnva.js';
3
3
  import 'react-hook-form';
4
4
 
5
5
  declare const dateFormat = "DD-MM-YYYY";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timardex/cluemart-shared",
3
- "version": "1.1.28",
3
+ "version": "1.1.30",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -1,104 +0,0 @@
1
- import { Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
2
- import { EnumOSPlatform } from './enums/index.js';
3
-
4
- type ContactUsFormData = {
5
- email: string;
6
- firstName: string;
7
- lastName: string;
8
- message: string;
9
- };
10
- interface CreateContactUsFormData {
11
- control: Control<ContactUsFormData, any>;
12
- fields: ContactUsFormData;
13
- formState: {
14
- errors: FieldErrors<ContactUsFormData>;
15
- };
16
- handleSubmit: UseFormHandleSubmit<ContactUsFormData, any>;
17
- reset: UseFormReset<ContactUsFormData>;
18
- setValue: UseFormSetValue<ContactUsFormData>;
19
- watch: UseFormWatch<ContactUsFormData>;
20
- }
21
-
22
- type LoginFormData = {
23
- email: string;
24
- isAdminPage?: boolean;
25
- password: string;
26
- platform?: EnumOSPlatform;
27
- };
28
- interface CreateLoginFormData {
29
- control: Control<LoginFormData, any, LoginFormData>;
30
- fields: LoginFormData;
31
- formState: {
32
- errors: FieldErrors<LoginFormData>;
33
- };
34
- handleSubmit: UseFormHandleSubmit<LoginFormData, any>;
35
- reset: UseFormReset<LoginFormData>;
36
- setValue: UseFormSetValue<LoginFormData>;
37
- watch: UseFormWatch<LoginFormData>;
38
- }
39
- type RegisterFormData = {
40
- email: string;
41
- firstName: string;
42
- lastName: string;
43
- password: string;
44
- platform?: EnumOSPlatform;
45
- preferredRegion: string;
46
- };
47
- interface CreateRegisterFormData {
48
- control: Control<RegisterFormData, any>;
49
- fields: RegisterFormData;
50
- formState: {
51
- errors: FieldErrors<RegisterFormData>;
52
- };
53
- handleSubmit: UseFormHandleSubmit<RegisterFormData, any>;
54
- reset: UseFormReset<RegisterFormData>;
55
- setValue: UseFormSetValue<RegisterFormData>;
56
- watch: UseFormWatch<RegisterFormData>;
57
- }
58
- type RequestPasswordResetFormData = {
59
- email: string;
60
- };
61
- interface CreateRequestPasswordResetFormData {
62
- control: Control<RequestPasswordResetFormData, any>;
63
- fields: RequestPasswordResetFormData;
64
- formState: {
65
- errors: FieldErrors<RequestPasswordResetFormData>;
66
- };
67
- handleSubmit: UseFormHandleSubmit<RequestPasswordResetFormData, any>;
68
- reset: UseFormReset<RequestPasswordResetFormData>;
69
- setValue: UseFormSetValue<RequestPasswordResetFormData>;
70
- watch: UseFormWatch<RequestPasswordResetFormData>;
71
- }
72
- type ResetPasswordFormData = {
73
- confirmPassword: string;
74
- email: string;
75
- password: string;
76
- };
77
- interface CreateResetPasswordFormData {
78
- control: Control<ResetPasswordFormData, any>;
79
- fields: ResetPasswordFormData;
80
- formState: {
81
- errors: FieldErrors<ResetPasswordFormData>;
82
- };
83
- handleSubmit: UseFormHandleSubmit<ResetPasswordFormData, any>;
84
- reset: UseFormReset<ResetPasswordFormData>;
85
- setValue: UseFormSetValue<ResetPasswordFormData>;
86
- watch: UseFormWatch<ResetPasswordFormData>;
87
- }
88
- type ValidateVerificationTokenFormData = {
89
- email: string;
90
- verificationToken: string;
91
- };
92
- interface CreateValidateVerificationTokenFormData {
93
- control: Control<ValidateVerificationTokenFormData, any>;
94
- fields: ValidateVerificationTokenFormData;
95
- formState: {
96
- errors: FieldErrors<ValidateVerificationTokenFormData>;
97
- };
98
- handleSubmit: UseFormHandleSubmit<ValidateVerificationTokenFormData, any>;
99
- reset: UseFormReset<ValidateVerificationTokenFormData>;
100
- setValue: UseFormSetValue<ValidateVerificationTokenFormData>;
101
- watch: UseFormWatch<ValidateVerificationTokenFormData>;
102
- }
103
-
104
- export type { CreateLoginFormData as C, LoginFormData as L, RegisterFormData as R, ValidateVerificationTokenFormData as V, CreateRegisterFormData as a, CreateRequestPasswordResetFormData as b, CreateValidateVerificationTokenFormData as c, CreateResetPasswordFormData as d, ContactUsFormData as e, CreateContactUsFormData as f, RequestPasswordResetFormData as g, ResetPasswordFormData as h };
@@ -1,104 +0,0 @@
1
- import { Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
2
- import { EnumOSPlatform } from './enums/index.mjs';
3
-
4
- type ContactUsFormData = {
5
- email: string;
6
- firstName: string;
7
- lastName: string;
8
- message: string;
9
- };
10
- interface CreateContactUsFormData {
11
- control: Control<ContactUsFormData, any>;
12
- fields: ContactUsFormData;
13
- formState: {
14
- errors: FieldErrors<ContactUsFormData>;
15
- };
16
- handleSubmit: UseFormHandleSubmit<ContactUsFormData, any>;
17
- reset: UseFormReset<ContactUsFormData>;
18
- setValue: UseFormSetValue<ContactUsFormData>;
19
- watch: UseFormWatch<ContactUsFormData>;
20
- }
21
-
22
- type LoginFormData = {
23
- email: string;
24
- isAdminPage?: boolean;
25
- password: string;
26
- platform?: EnumOSPlatform;
27
- };
28
- interface CreateLoginFormData {
29
- control: Control<LoginFormData, any, LoginFormData>;
30
- fields: LoginFormData;
31
- formState: {
32
- errors: FieldErrors<LoginFormData>;
33
- };
34
- handleSubmit: UseFormHandleSubmit<LoginFormData, any>;
35
- reset: UseFormReset<LoginFormData>;
36
- setValue: UseFormSetValue<LoginFormData>;
37
- watch: UseFormWatch<LoginFormData>;
38
- }
39
- type RegisterFormData = {
40
- email: string;
41
- firstName: string;
42
- lastName: string;
43
- password: string;
44
- platform?: EnumOSPlatform;
45
- preferredRegion: string;
46
- };
47
- interface CreateRegisterFormData {
48
- control: Control<RegisterFormData, any>;
49
- fields: RegisterFormData;
50
- formState: {
51
- errors: FieldErrors<RegisterFormData>;
52
- };
53
- handleSubmit: UseFormHandleSubmit<RegisterFormData, any>;
54
- reset: UseFormReset<RegisterFormData>;
55
- setValue: UseFormSetValue<RegisterFormData>;
56
- watch: UseFormWatch<RegisterFormData>;
57
- }
58
- type RequestPasswordResetFormData = {
59
- email: string;
60
- };
61
- interface CreateRequestPasswordResetFormData {
62
- control: Control<RequestPasswordResetFormData, any>;
63
- fields: RequestPasswordResetFormData;
64
- formState: {
65
- errors: FieldErrors<RequestPasswordResetFormData>;
66
- };
67
- handleSubmit: UseFormHandleSubmit<RequestPasswordResetFormData, any>;
68
- reset: UseFormReset<RequestPasswordResetFormData>;
69
- setValue: UseFormSetValue<RequestPasswordResetFormData>;
70
- watch: UseFormWatch<RequestPasswordResetFormData>;
71
- }
72
- type ResetPasswordFormData = {
73
- confirmPassword: string;
74
- email: string;
75
- password: string;
76
- };
77
- interface CreateResetPasswordFormData {
78
- control: Control<ResetPasswordFormData, any>;
79
- fields: ResetPasswordFormData;
80
- formState: {
81
- errors: FieldErrors<ResetPasswordFormData>;
82
- };
83
- handleSubmit: UseFormHandleSubmit<ResetPasswordFormData, any>;
84
- reset: UseFormReset<ResetPasswordFormData>;
85
- setValue: UseFormSetValue<ResetPasswordFormData>;
86
- watch: UseFormWatch<ResetPasswordFormData>;
87
- }
88
- type ValidateVerificationTokenFormData = {
89
- email: string;
90
- verificationToken: string;
91
- };
92
- interface CreateValidateVerificationTokenFormData {
93
- control: Control<ValidateVerificationTokenFormData, any>;
94
- fields: ValidateVerificationTokenFormData;
95
- formState: {
96
- errors: FieldErrors<ValidateVerificationTokenFormData>;
97
- };
98
- handleSubmit: UseFormHandleSubmit<ValidateVerificationTokenFormData, any>;
99
- reset: UseFormReset<ValidateVerificationTokenFormData>;
100
- setValue: UseFormSetValue<ValidateVerificationTokenFormData>;
101
- watch: UseFormWatch<ValidateVerificationTokenFormData>;
102
- }
103
-
104
- export type { CreateLoginFormData as C, LoginFormData as L, RegisterFormData as R, ValidateVerificationTokenFormData as V, CreateRegisterFormData as a, CreateRequestPasswordResetFormData as b, CreateValidateVerificationTokenFormData as c, CreateResetPasswordFormData as d, ContactUsFormData as e, CreateContactUsFormData as f, RequestPasswordResetFormData as g, ResetPasswordFormData as h };
@@ -1,85 +0,0 @@
1
- import { Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
2
- import { EnumOSPlatform, EnumResourceType, EnumUserLicence, EnumUserRole } from './enums/index.mjs';
3
- import { C as Category, o as ResourceImageType } from './global-44_9bbnH.mjs';
4
-
5
- type TestersFormData = {
6
- email: string;
7
- firstName: string;
8
- lastName: string;
9
- osType: EnumOSPlatform;
10
- resourceType: EnumResourceType;
11
- categories: Category[] | null;
12
- };
13
- interface CreateTestersFormData {
14
- control: Control<TestersFormData, any>;
15
- fields: TestersFormData;
16
- formState: {
17
- errors: FieldErrors<TestersFormData>;
18
- };
19
- handleSubmit: UseFormHandleSubmit<TestersFormData, any>;
20
- reset: UseFormReset<TestersFormData>;
21
- setValue: UseFormSetValue<TestersFormData>;
22
- watch: UseFormWatch<TestersFormData>;
23
- }
24
- type TesterType = {
25
- _id: string;
26
- active: boolean;
27
- categories: Category[] | null;
28
- createdAt: string;
29
- email: string;
30
- firstName: string;
31
- lastName: string;
32
- osType: EnumOSPlatform;
33
- resourceType: EnumResourceType;
34
- updatedAt: string;
35
- };
36
-
37
- type UserFormData = {
38
- _id?: string;
39
- active: boolean;
40
- avatar?: ResourceImageType | null;
41
- avatarUpload?: ResourceImageType | null;
42
- confirmPassword: string;
43
- email: string;
44
- firstName: string;
45
- lastName: string;
46
- password: string;
47
- platform?: EnumOSPlatform;
48
- preferredRegion: string;
49
- role: EnumUserRole;
50
- };
51
- interface CreateUserFormData {
52
- control: Control<UserFormData, any>;
53
- fields: UserFormData;
54
- formState: {
55
- errors: FieldErrors<UserFormData>;
56
- };
57
- handleSubmit: UseFormHandleSubmit<UserFormData, any>;
58
- reset: UseFormReset<UserFormData>;
59
- setValue: UseFormSetValue<UserFormData>;
60
- watch: UseFormWatch<UserFormData>;
61
- }
62
- interface UserType {
63
- _id: string;
64
- active: boolean;
65
- avatar: ResourceImageType | null;
66
- createdAt: string;
67
- email: string;
68
- favourites: {
69
- markets: string[];
70
- stallholders: string[];
71
- };
72
- firstName: string;
73
- lastName: string;
74
- licences: EnumUserLicence[] | null;
75
- markets: string[] | null;
76
- password: string;
77
- platform: EnumOSPlatform | null;
78
- preferredRegion: string;
79
- refreshToken: string | null;
80
- role: EnumUserRole;
81
- stallholder: string | null;
82
- updatedAt: string;
83
- }
84
-
85
- export type { CreateUserFormData as C, TesterType as T, UserType as U, UserFormData as a, TestersFormData as b, CreateTestersFormData as c };
@@ -1,85 +0,0 @@
1
- import { Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
2
- import { EnumOSPlatform, EnumResourceType, EnumUserLicence, EnumUserRole } from './enums/index.js';
3
- import { C as Category, o as ResourceImageType } from './global-BWyNs7d9.js';
4
-
5
- type TestersFormData = {
6
- email: string;
7
- firstName: string;
8
- lastName: string;
9
- osType: EnumOSPlatform;
10
- resourceType: EnumResourceType;
11
- categories: Category[] | null;
12
- };
13
- interface CreateTestersFormData {
14
- control: Control<TestersFormData, any>;
15
- fields: TestersFormData;
16
- formState: {
17
- errors: FieldErrors<TestersFormData>;
18
- };
19
- handleSubmit: UseFormHandleSubmit<TestersFormData, any>;
20
- reset: UseFormReset<TestersFormData>;
21
- setValue: UseFormSetValue<TestersFormData>;
22
- watch: UseFormWatch<TestersFormData>;
23
- }
24
- type TesterType = {
25
- _id: string;
26
- active: boolean;
27
- categories: Category[] | null;
28
- createdAt: string;
29
- email: string;
30
- firstName: string;
31
- lastName: string;
32
- osType: EnumOSPlatform;
33
- resourceType: EnumResourceType;
34
- updatedAt: string;
35
- };
36
-
37
- type UserFormData = {
38
- _id?: string;
39
- active: boolean;
40
- avatar?: ResourceImageType | null;
41
- avatarUpload?: ResourceImageType | null;
42
- confirmPassword: string;
43
- email: string;
44
- firstName: string;
45
- lastName: string;
46
- password: string;
47
- platform?: EnumOSPlatform;
48
- preferredRegion: string;
49
- role: EnumUserRole;
50
- };
51
- interface CreateUserFormData {
52
- control: Control<UserFormData, any>;
53
- fields: UserFormData;
54
- formState: {
55
- errors: FieldErrors<UserFormData>;
56
- };
57
- handleSubmit: UseFormHandleSubmit<UserFormData, any>;
58
- reset: UseFormReset<UserFormData>;
59
- setValue: UseFormSetValue<UserFormData>;
60
- watch: UseFormWatch<UserFormData>;
61
- }
62
- interface UserType {
63
- _id: string;
64
- active: boolean;
65
- avatar: ResourceImageType | null;
66
- createdAt: string;
67
- email: string;
68
- favourites: {
69
- markets: string[];
70
- stallholders: string[];
71
- };
72
- firstName: string;
73
- lastName: string;
74
- licences: EnumUserLicence[] | null;
75
- markets: string[] | null;
76
- password: string;
77
- platform: EnumOSPlatform | null;
78
- preferredRegion: string;
79
- refreshToken: string | null;
80
- role: EnumUserRole;
81
- stallholder: string | null;
82
- updatedAt: string;
83
- }
84
-
85
- export type { CreateUserFormData as C, TesterType as T, UserType as U, UserFormData as a, TestersFormData as b, CreateTestersFormData as c };