@timardex/cluemart-shared 1.0.93 → 1.0.94

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.
@@ -1,11 +1,8 @@
1
- interface ChatParticipantType {
2
- userId: string;
3
- userName: string;
4
- userAvatar: string | null;
5
- }
1
+ import { q as OwnerType } from './global-NGrcgZDJ.js';
2
+
6
3
  interface ChatInput {
7
4
  name: string;
8
- participants: ChatParticipantType[];
5
+ participants: OwnerType[];
9
6
  }
10
7
  interface ChatMessageInput {
11
8
  content: string;
@@ -25,7 +22,7 @@ interface ChatType {
25
22
  createdAt: string;
26
23
  messages: ChatMessageType[];
27
24
  name: string;
28
- participants: ChatParticipantType[];
25
+ participants: OwnerType[];
29
26
  updatedAt: string;
30
27
  }
31
28
 
@@ -59,4 +56,4 @@ type CreateBulkNotificationInput = {
59
56
  data?: Record<string, unknown>;
60
57
  };
61
58
 
62
- export { type ChatType as C, EnumNotificationType as E, type NotificationType as N, type NotificationCount as a, type ChatParticipantType as b, type ChatInput as c, type ChatMessageInput as d, type ChatMessageType as e, type CreateBulkNotificationInput as f };
59
+ export { type ChatType as C, EnumNotificationType as E, type NotificationType as N, type NotificationCount as a, type ChatInput as b, type ChatMessageInput as c, type ChatMessageType as d, type CreateBulkNotificationInput as e };
@@ -1,11 +1,8 @@
1
- interface ChatParticipantType {
2
- userId: string;
3
- userName: string;
4
- userAvatar: string | null;
5
- }
1
+ import { q as OwnerType } from './global-D5MQQdDQ.mjs';
2
+
6
3
  interface ChatInput {
7
4
  name: string;
8
- participants: ChatParticipantType[];
5
+ participants: OwnerType[];
9
6
  }
10
7
  interface ChatMessageInput {
11
8
  content: string;
@@ -25,7 +22,7 @@ interface ChatType {
25
22
  createdAt: string;
26
23
  messages: ChatMessageType[];
27
24
  name: string;
28
- participants: ChatParticipantType[];
25
+ participants: OwnerType[];
29
26
  updatedAt: string;
30
27
  }
31
28
 
@@ -59,4 +56,4 @@ type CreateBulkNotificationInput = {
59
56
  data?: Record<string, unknown>;
60
57
  };
61
58
 
62
- export { type ChatType as C, EnumNotificationType as E, type NotificationType as N, type NotificationCount as a, type ChatParticipantType as b, type ChatInput as c, type ChatMessageInput as d, type ChatMessageType as e, type CreateBulkNotificationInput as f };
59
+ export { type ChatType as C, EnumNotificationType as E, type NotificationType as N, type NotificationCount as a, type ChatInput as b, type ChatMessageInput as c, type ChatMessageType as d, type CreateBulkNotificationInput as e };
@@ -1,8 +1,8 @@
1
1
  import { EnumResourceType } from '../enums/index.mjs';
2
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 '../contactUs-CQ9xTjlE.mjs';
3
- export { c as ChatInput, d as ChatMessageInput, e as ChatMessageType, b as ChatParticipantType, C as ChatType, f as CreateBulkNotificationInput, E as EnumNotificationType, a as NotificationCount, N as NotificationType } from '../notification-CO9QuKEw.mjs';
4
- export { s as BaseResourceType, B as BaseResourceTypeFormData, C as Category, l as CreateMarketFormData, n as CreateMarketInfoFormData, h as CreateStallholderFormData, j as CreateStallholderInfoFormData, p as CreateUserFormData, D as DateTimeType, x as DateTimeWithPriceType, a as FormDateField, F as FormField, G as GeocodeLocation, I as ImageObjectType, L as LocationType, u as MapMultiLocation, k as MarketFormData, m as MarketInfoFormData, b as MarketInfoType, M as MarketType, y as MarketWithConnectionDatesType, N as Nullable, O as OptionItem, P as PaymentInfoType, t as Region, z as RelationDate, c as RelationType, R as Requirement, d as ResourceConnectionsType, q as ResourceImageType, H as SatllholderWithConnectionDatesType, r as SocialMediaType, S as StallType, E as StallholderAttributes, g as StallholderFormData, i as StallholderInfoFormData, f as StallholderInfoType, A as StallholderLocation, e as StallholderType, w as Subcategory, v as SubcategoryItems, o as UserFormData, U as UserType } from '../global-Bieh1fh8.mjs';
5
- export { C as CreateTestersFormData, T as TesterType, a as TestersFormData } from '../testers-74J9OA2P.mjs';
3
+ export { b as ChatInput, c as ChatMessageInput, d as ChatMessageType, C as ChatType, e as CreateBulkNotificationInput, E as EnumNotificationType, a as NotificationCount, N as NotificationType } from '../notification-DPb0sP6j.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-D5MQQdDQ.mjs';
5
+ export { c as CreateTestersFormData, C as CreateUserFormData, T as TesterType, b as TestersFormData, a as UserFormData, U as UserType } from '../user-Bbsechq8.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
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 '../contactUs-CQ9xTjlE.js';
3
- export { c as ChatInput, d as ChatMessageInput, e as ChatMessageType, b as ChatParticipantType, C as ChatType, f as CreateBulkNotificationInput, E as EnumNotificationType, a as NotificationCount, N as NotificationType } from '../notification-CO9QuKEw.js';
4
- export { s as BaseResourceType, B as BaseResourceTypeFormData, C as Category, l as CreateMarketFormData, n as CreateMarketInfoFormData, h as CreateStallholderFormData, j as CreateStallholderInfoFormData, p as CreateUserFormData, D as DateTimeType, x as DateTimeWithPriceType, a as FormDateField, F as FormField, G as GeocodeLocation, I as ImageObjectType, L as LocationType, u as MapMultiLocation, k as MarketFormData, m as MarketInfoFormData, b as MarketInfoType, M as MarketType, y as MarketWithConnectionDatesType, N as Nullable, O as OptionItem, P as PaymentInfoType, t as Region, z as RelationDate, c as RelationType, R as Requirement, d as ResourceConnectionsType, q as ResourceImageType, H as SatllholderWithConnectionDatesType, r as SocialMediaType, S as StallType, E as StallholderAttributes, g as StallholderFormData, i as StallholderInfoFormData, f as StallholderInfoType, A as StallholderLocation, e as StallholderType, w as Subcategory, v as SubcategoryItems, o as UserFormData, U as UserType } from '../global-By7aHQ1y.js';
5
- export { C as CreateTestersFormData, T as TesterType, a as TestersFormData } from '../testers-CqYqJvlZ.js';
3
+ export { b as ChatInput, c as ChatMessageInput, d as ChatMessageType, C as ChatType, e as CreateBulkNotificationInput, E as EnumNotificationType, a as NotificationCount, N as NotificationType } from '../notification-5IqfgUMx.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-NGrcgZDJ.js';
5
+ export { c as CreateTestersFormData, C as CreateUserFormData, T as TesterType, b as TestersFormData, a as UserFormData, U as UserType } from '../user-BkHn186j.js';
6
6
  import 'react-hook-form';
7
7
 
8
8
  interface AdminUpdateResourceType {
@@ -0,0 +1,81 @@
1
+ import { Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
2
+ import { EnumOSType, EnumResourceType, EnumUserLicence, EnumUserRole } from './enums/index.mjs';
3
+ import { o as ResourceImageType } from './global-D5MQQdDQ.mjs';
4
+
5
+ type TestersFormData = {
6
+ email: string;
7
+ firstName: string;
8
+ lastName: string;
9
+ osType: EnumOSType;
10
+ resourceType: EnumResourceType;
11
+ };
12
+ interface CreateTestersFormData {
13
+ control: Control<TestersFormData, any>;
14
+ fields: TestersFormData;
15
+ formState: {
16
+ errors: FieldErrors<TestersFormData>;
17
+ };
18
+ handleSubmit: UseFormHandleSubmit<TestersFormData, any>;
19
+ reset: UseFormReset<TestersFormData>;
20
+ setValue: UseFormSetValue<TestersFormData>;
21
+ watch: UseFormWatch<TestersFormData>;
22
+ }
23
+ type TesterType = {
24
+ _id: string;
25
+ active: boolean;
26
+ createdAt: string;
27
+ email: string;
28
+ firstName: string;
29
+ lastName: string;
30
+ osType: EnumOSType;
31
+ resourceType: EnumResourceType;
32
+ updatedAt: string;
33
+ };
34
+
35
+ type UserFormData = {
36
+ _id?: string;
37
+ active: boolean;
38
+ avatar?: ResourceImageType | null;
39
+ avatarUpload?: ResourceImageType | null;
40
+ confirmPassword: string;
41
+ email: string;
42
+ firstName: string;
43
+ lastName: string;
44
+ password: string;
45
+ preferredRegion: string;
46
+ role: EnumUserRole;
47
+ };
48
+ interface CreateUserFormData {
49
+ control: Control<UserFormData, any>;
50
+ fields: UserFormData;
51
+ formState: {
52
+ errors: FieldErrors<UserFormData>;
53
+ };
54
+ handleSubmit: UseFormHandleSubmit<UserFormData, any>;
55
+ reset: UseFormReset<UserFormData>;
56
+ setValue: UseFormSetValue<UserFormData>;
57
+ watch: UseFormWatch<UserFormData>;
58
+ }
59
+ interface UserType {
60
+ _id: string;
61
+ active: boolean;
62
+ avatar: ResourceImageType | null;
63
+ createdAt: string;
64
+ email: string;
65
+ favourites: {
66
+ markets: string[];
67
+ stallholders: string[];
68
+ };
69
+ firstName: string;
70
+ lastName: string;
71
+ licences: EnumUserLicence[] | null;
72
+ markets: string[] | null;
73
+ password: string;
74
+ preferredRegion: string;
75
+ refreshToken: string | null;
76
+ role: EnumUserRole;
77
+ stallholder: string | null;
78
+ updatedAt: string;
79
+ }
80
+
81
+ export type { CreateUserFormData as C, TesterType as T, UserType as U, UserFormData as a, TestersFormData as b, CreateTestersFormData as c };
@@ -0,0 +1,81 @@
1
+ import { Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
2
+ import { EnumOSType, EnumResourceType, EnumUserLicence, EnumUserRole } from './enums/index.js';
3
+ import { o as ResourceImageType } from './global-NGrcgZDJ.js';
4
+
5
+ type TestersFormData = {
6
+ email: string;
7
+ firstName: string;
8
+ lastName: string;
9
+ osType: EnumOSType;
10
+ resourceType: EnumResourceType;
11
+ };
12
+ interface CreateTestersFormData {
13
+ control: Control<TestersFormData, any>;
14
+ fields: TestersFormData;
15
+ formState: {
16
+ errors: FieldErrors<TestersFormData>;
17
+ };
18
+ handleSubmit: UseFormHandleSubmit<TestersFormData, any>;
19
+ reset: UseFormReset<TestersFormData>;
20
+ setValue: UseFormSetValue<TestersFormData>;
21
+ watch: UseFormWatch<TestersFormData>;
22
+ }
23
+ type TesterType = {
24
+ _id: string;
25
+ active: boolean;
26
+ createdAt: string;
27
+ email: string;
28
+ firstName: string;
29
+ lastName: string;
30
+ osType: EnumOSType;
31
+ resourceType: EnumResourceType;
32
+ updatedAt: string;
33
+ };
34
+
35
+ type UserFormData = {
36
+ _id?: string;
37
+ active: boolean;
38
+ avatar?: ResourceImageType | null;
39
+ avatarUpload?: ResourceImageType | null;
40
+ confirmPassword: string;
41
+ email: string;
42
+ firstName: string;
43
+ lastName: string;
44
+ password: string;
45
+ preferredRegion: string;
46
+ role: EnumUserRole;
47
+ };
48
+ interface CreateUserFormData {
49
+ control: Control<UserFormData, any>;
50
+ fields: UserFormData;
51
+ formState: {
52
+ errors: FieldErrors<UserFormData>;
53
+ };
54
+ handleSubmit: UseFormHandleSubmit<UserFormData, any>;
55
+ reset: UseFormReset<UserFormData>;
56
+ setValue: UseFormSetValue<UserFormData>;
57
+ watch: UseFormWatch<UserFormData>;
58
+ }
59
+ interface UserType {
60
+ _id: string;
61
+ active: boolean;
62
+ avatar: ResourceImageType | null;
63
+ createdAt: string;
64
+ email: string;
65
+ favourites: {
66
+ markets: string[];
67
+ stallholders: string[];
68
+ };
69
+ firstName: string;
70
+ lastName: string;
71
+ licences: EnumUserLicence[] | null;
72
+ markets: string[] | null;
73
+ password: string;
74
+ preferredRegion: string;
75
+ refreshToken: string | null;
76
+ role: EnumUserRole;
77
+ stallholder: string | null;
78
+ updatedAt: string;
79
+ }
80
+
81
+ export type { CreateUserFormData as C, TesterType as T, UserType as U, UserFormData as a, TestersFormData as b, CreateTestersFormData as c };
@@ -1,5 +1,5 @@
1
1
  import { EnumInviteStatus, EnumRegions } from '../enums/index.mjs';
2
- import { t as Region, O as OptionItem } from '../global-Bieh1fh8.mjs';
2
+ import { s as Region, O as OptionItem } from '../global-D5MQQdDQ.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 { t as Region, O as OptionItem } from '../global-By7aHQ1y.js';
2
+ import { s as Region, O as OptionItem } from '../global-NGrcgZDJ.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.0.93",
3
+ "version": "1.0.94",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -1,34 +0,0 @@
1
- import { Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
2
- import { EnumOSType, EnumResourceType } from './enums/index.mjs';
3
-
4
- type TestersFormData = {
5
- email: string;
6
- firstName: string;
7
- lastName: string;
8
- osType: EnumOSType;
9
- resourceType: EnumResourceType;
10
- };
11
- interface CreateTestersFormData {
12
- control: Control<TestersFormData, any>;
13
- fields: TestersFormData;
14
- formState: {
15
- errors: FieldErrors<TestersFormData>;
16
- };
17
- handleSubmit: UseFormHandleSubmit<TestersFormData, any>;
18
- reset: UseFormReset<TestersFormData>;
19
- setValue: UseFormSetValue<TestersFormData>;
20
- watch: UseFormWatch<TestersFormData>;
21
- }
22
- type TesterType = {
23
- _id: string;
24
- active: boolean;
25
- createdAt: string;
26
- email: string;
27
- firstName: string;
28
- lastName: string;
29
- osType: EnumOSType;
30
- resourceType: EnumResourceType;
31
- updatedAt: string;
32
- };
33
-
34
- export type { CreateTestersFormData as C, TesterType as T, TestersFormData as a };
@@ -1,34 +0,0 @@
1
- import { Control, FieldErrors, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch } from 'react-hook-form';
2
- import { EnumOSType, EnumResourceType } from './enums/index.js';
3
-
4
- type TestersFormData = {
5
- email: string;
6
- firstName: string;
7
- lastName: string;
8
- osType: EnumOSType;
9
- resourceType: EnumResourceType;
10
- };
11
- interface CreateTestersFormData {
12
- control: Control<TestersFormData, any>;
13
- fields: TestersFormData;
14
- formState: {
15
- errors: FieldErrors<TestersFormData>;
16
- };
17
- handleSubmit: UseFormHandleSubmit<TestersFormData, any>;
18
- reset: UseFormReset<TestersFormData>;
19
- setValue: UseFormSetValue<TestersFormData>;
20
- watch: UseFormWatch<TestersFormData>;
21
- }
22
- type TesterType = {
23
- _id: string;
24
- active: boolean;
25
- createdAt: string;
26
- email: string;
27
- firstName: string;
28
- lastName: string;
29
- osType: EnumOSType;
30
- resourceType: EnumResourceType;
31
- updatedAt: string;
32
- };
33
-
34
- export type { CreateTestersFormData as C, TesterType as T, TestersFormData as a };