@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.
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/{global-Bieh1fh8.d.mts → global-D5MQQdDQ.d.mts} +10 -49
- package/dist/{global-By7aHQ1y.d.ts → global-NGrcgZDJ.d.ts} +10 -49
- package/dist/graphql/index.cjs +2 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +3 -3
- package/dist/graphql/index.d.ts +3 -3
- package/dist/graphql/index.mjs +2 -0
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +57 -55
- package/dist/index.d.ts +57 -55
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -1
- package/dist/{notification-CO9QuKEw.d.mts → notification-5IqfgUMx.d.ts} +5 -8
- package/dist/{notification-CO9QuKEw.d.ts → notification-DPb0sP6j.d.mts} +5 -8
- package/dist/types/index.d.mts +3 -3
- package/dist/types/index.d.ts +3 -3
- package/dist/user-Bbsechq8.d.mts +81 -0
- package/dist/user-BkHn186j.d.ts +81 -0
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/testers-74J9OA2P.d.mts +0 -34
- package/dist/testers-CqYqJvlZ.d.ts +0 -34
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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:
|
|
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:
|
|
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
|
|
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
|
-
|
|
2
|
-
|
|
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:
|
|
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:
|
|
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
|
|
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 };
|
package/dist/types/index.d.mts
CHANGED
|
@@ -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 {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
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 {
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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 {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
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 };
|
package/dist/utils/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EnumInviteStatus, EnumRegions } from '../enums/index.mjs';
|
|
2
|
-
import {
|
|
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";
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EnumInviteStatus, EnumRegions } from '../enums/index.js';
|
|
2
|
-
import {
|
|
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,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 };
|