@unchainedshop/api 4.8.0 → 4.8.1
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/lib/chat/generateImageHandler.js +5 -6
- package/lib/express/createMCPMiddleware.js +1 -1
- package/lib/fastify/mcpHandler.js +1 -1
- package/lib/loaders/buildTextMap.js +13 -15
- package/lib/mcp/tools/assortment/assortmentManagement.d.ts +2 -2
- package/lib/mcp/tools/assortment/assortmentManagement.js +2 -2
- package/lib/mcp/tools/assortment/handlers/getAssortment.js +1 -1
- package/lib/mcp/tools/assortment/schemas.d.ts +141 -322
- package/lib/mcp/tools/assortment/schemas.js +96 -179
- package/lib/mcp/tools/filter/filterManagement.d.ts +2 -2
- package/lib/mcp/tools/filter/filterManagement.js +2 -2
- package/lib/mcp/tools/filter/schemas.d.ts +75 -184
- package/lib/mcp/tools/filter/schemas.js +51 -87
- package/lib/mcp/tools/localization/localizationManagement.d.ts +2 -2
- package/lib/mcp/tools/localization/localizationManagement.js +2 -2
- package/lib/mcp/tools/localization/schemas.d.ts +47 -110
- package/lib/mcp/tools/localization/schemas.js +36 -51
- package/lib/mcp/tools/order/orderManagement.d.ts +2 -2
- package/lib/mcp/tools/order/orderManagement.js +2 -2
- package/lib/mcp/tools/order/schemas.d.ts +75 -184
- package/lib/mcp/tools/order/schemas.js +51 -113
- package/lib/mcp/tools/product/handlers/getProduct.js +1 -1
- package/lib/mcp/tools/product/productManagement.d.ts +2 -2
- package/lib/mcp/tools/product/productManagement.js +2 -2
- package/lib/mcp/tools/product/schemas.d.ts +317 -642
- package/lib/mcp/tools/product/schemas.js +191 -287
- package/lib/mcp/tools/provider/providerManagement.d.ts +2 -2
- package/lib/mcp/tools/provider/providerManagement.js +2 -2
- package/lib/mcp/tools/provider/schemas.d.ts +47 -142
- package/lib/mcp/tools/provider/schemas.js +32 -67
- package/lib/mcp/tools/quotation/quotationManagement.d.ts +2 -2
- package/lib/mcp/tools/quotation/quotationManagement.js +2 -2
- package/lib/mcp/tools/quotation/schemas.d.ts +40 -111
- package/lib/mcp/tools/quotation/schemas.js +29 -54
- package/lib/mcp/tools/system/schemas.d.ts +84 -179
- package/lib/mcp/tools/system/schemas.js +67 -188
- package/lib/mcp/tools/system/systemManagement.d.ts +1 -1
- package/lib/mcp/tools/system/systemManagement.js +1 -1
- package/lib/mcp/tools/users/schemas.d.ts +163 -296
- package/lib/mcp/tools/users/schemas.js +71 -152
- package/lib/mcp/tools/users/usersManagement.d.ts +2 -2
- package/lib/mcp/tools/users/usersManagement.js +2 -2
- package/lib/mcp/utils/sharedSchemas.d.ts +39 -28
- package/lib/mcp/utils/sharedSchemas.js +47 -28
- package/lib/resolvers/mutations/accounts/changePassword.js +1 -4
- package/package.json +1 -1
|
@@ -1,342 +1,209 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const UserProfileSchema: z.
|
|
3
|
-
displayName: z.
|
|
4
|
-
birthday: z.
|
|
5
|
-
phoneMobile: z.
|
|
6
|
-
address: z.
|
|
7
|
-
firstName: z.
|
|
8
|
-
lastName: z.
|
|
9
|
-
addressLine: z.
|
|
10
|
-
addressLine2: z.
|
|
11
|
-
postalCode: z.
|
|
12
|
-
city: z.
|
|
13
|
-
regionCode: z.
|
|
14
|
-
countryCode: z.
|
|
1
|
+
import { z } from 'zod/v4-mini';
|
|
2
|
+
export declare const UserProfileSchema: z.ZodMiniObject<{
|
|
3
|
+
displayName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
4
|
+
birthday: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
5
|
+
phoneMobile: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
6
|
+
address: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
7
|
+
firstName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
8
|
+
lastName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
9
|
+
addressLine: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
10
|
+
addressLine2: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
11
|
+
postalCode: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
12
|
+
city: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
13
|
+
regionCode: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
14
|
+
countryCode: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
15
15
|
}, z.core.$strip>>;
|
|
16
16
|
}, z.core.$strip>;
|
|
17
17
|
export declare const actionValidators: {
|
|
18
|
-
readonly LIST: z.
|
|
19
|
-
includeGuests: z.
|
|
20
|
-
emailVerified: z.
|
|
21
|
-
lastLogin: z.
|
|
22
|
-
start: z.
|
|
23
|
-
end: z.
|
|
18
|
+
readonly LIST: z.ZodMiniObject<{
|
|
19
|
+
includeGuests: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
20
|
+
emailVerified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
21
|
+
lastLogin: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
22
|
+
start: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
23
|
+
end: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
24
24
|
}, z.core.$strip>>;
|
|
25
|
-
queryString: z.
|
|
26
|
-
includeInactive: z.
|
|
27
|
-
sort: z.
|
|
28
|
-
key: z.
|
|
29
|
-
value: z.
|
|
25
|
+
queryString: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
26
|
+
includeInactive: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
27
|
+
sort: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
28
|
+
key: z.ZodMiniString<string>;
|
|
29
|
+
value: z.ZodMiniEnum<{
|
|
30
30
|
[x: string]: string;
|
|
31
31
|
}>;
|
|
32
32
|
}, z.core.$strip>>>;
|
|
33
|
-
limit: z.
|
|
34
|
-
offset: z.
|
|
35
|
-
}, z.core.$strip>;
|
|
36
|
-
readonly COUNT: z.
|
|
37
|
-
includeGuests: z.
|
|
38
|
-
emailVerified: z.
|
|
39
|
-
lastLogin: z.
|
|
40
|
-
start: z.
|
|
41
|
-
end: z.
|
|
33
|
+
limit: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
34
|
+
offset: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
readonly COUNT: z.ZodMiniObject<{
|
|
37
|
+
includeGuests: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
38
|
+
emailVerified: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
39
|
+
lastLogin: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
40
|
+
start: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
41
|
+
end: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
42
42
|
}, z.core.$strip>>;
|
|
43
|
-
queryString: z.
|
|
44
|
-
includeInactive: z.
|
|
45
|
-
}, z.core.$strip>;
|
|
46
|
-
readonly GET: z.
|
|
47
|
-
userId: z.
|
|
48
|
-
}, z.core.$strip>;
|
|
49
|
-
readonly CREATE: z.
|
|
50
|
-
username: z.
|
|
51
|
-
email: z.
|
|
52
|
-
password: z.
|
|
53
|
-
profile: z.
|
|
54
|
-
displayName: z.
|
|
55
|
-
birthday: z.
|
|
56
|
-
phoneMobile: z.
|
|
57
|
-
address: z.
|
|
58
|
-
firstName: z.
|
|
59
|
-
lastName: z.
|
|
60
|
-
addressLine: z.
|
|
61
|
-
addressLine2: z.
|
|
62
|
-
postalCode: z.
|
|
63
|
-
city: z.
|
|
64
|
-
regionCode: z.
|
|
65
|
-
countryCode: z.
|
|
43
|
+
queryString: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
44
|
+
includeInactive: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
readonly GET: z.ZodMiniObject<{
|
|
47
|
+
userId: z.ZodMiniString<string>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
readonly CREATE: z.ZodMiniObject<{
|
|
50
|
+
username: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
51
|
+
email: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
52
|
+
password: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
53
|
+
profile: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
54
|
+
displayName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
55
|
+
birthday: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
56
|
+
phoneMobile: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
57
|
+
address: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
58
|
+
firstName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
59
|
+
lastName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
60
|
+
addressLine: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
61
|
+
addressLine2: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
62
|
+
postalCode: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
63
|
+
city: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
64
|
+
regionCode: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
65
|
+
countryCode: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
66
66
|
}, z.core.$strip>>;
|
|
67
67
|
}, z.core.$strip>>;
|
|
68
68
|
}, z.core.$strip>;
|
|
69
|
-
readonly UPDATE: z.
|
|
70
|
-
userId: z.
|
|
71
|
-
profile: z.
|
|
72
|
-
displayName: z.
|
|
73
|
-
birthday: z.
|
|
74
|
-
phoneMobile: z.
|
|
75
|
-
address: z.
|
|
76
|
-
firstName: z.
|
|
77
|
-
lastName: z.
|
|
78
|
-
addressLine: z.
|
|
79
|
-
addressLine2: z.
|
|
80
|
-
postalCode: z.
|
|
81
|
-
city: z.
|
|
82
|
-
regionCode: z.
|
|
83
|
-
countryCode: z.
|
|
69
|
+
readonly UPDATE: z.ZodMiniObject<{
|
|
70
|
+
userId: z.ZodMiniString<string>;
|
|
71
|
+
profile: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
72
|
+
displayName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
73
|
+
birthday: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
74
|
+
phoneMobile: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
75
|
+
address: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
76
|
+
firstName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
77
|
+
lastName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
78
|
+
addressLine: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
79
|
+
addressLine2: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
80
|
+
postalCode: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
81
|
+
city: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
82
|
+
regionCode: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
83
|
+
countryCode: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
84
84
|
}, z.core.$strip>>;
|
|
85
85
|
}, z.core.$strip>>;
|
|
86
|
-
meta: z.
|
|
87
|
-
}, z.core.$strip>;
|
|
88
|
-
readonly REMOVE: z.
|
|
89
|
-
userId: z.
|
|
90
|
-
removeUserReviews: z.
|
|
91
|
-
}, z.core.$strip>;
|
|
92
|
-
readonly ENROLL: z.
|
|
93
|
-
email: z.
|
|
94
|
-
profile: z.
|
|
95
|
-
displayName: z.
|
|
96
|
-
birthday: z.
|
|
97
|
-
phoneMobile: z.
|
|
98
|
-
address: z.
|
|
99
|
-
firstName: z.
|
|
100
|
-
lastName: z.
|
|
101
|
-
addressLine: z.
|
|
102
|
-
addressLine2: z.
|
|
103
|
-
postalCode: z.
|
|
104
|
-
city: z.
|
|
105
|
-
regionCode: z.
|
|
106
|
-
countryCode: z.
|
|
86
|
+
meta: z.ZodMiniOptional<z.ZodMiniAny>;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
readonly REMOVE: z.ZodMiniObject<{
|
|
89
|
+
userId: z.ZodMiniString<string>;
|
|
90
|
+
removeUserReviews: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
readonly ENROLL: z.ZodMiniObject<{
|
|
93
|
+
email: z.ZodMiniString<string>;
|
|
94
|
+
profile: z.ZodMiniObject<{
|
|
95
|
+
displayName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
96
|
+
birthday: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
97
|
+
phoneMobile: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
98
|
+
address: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
99
|
+
firstName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
100
|
+
lastName: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
101
|
+
addressLine: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
102
|
+
addressLine2: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
103
|
+
postalCode: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
104
|
+
city: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
105
|
+
regionCode: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
106
|
+
countryCode: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
107
107
|
}, z.core.$strip>>;
|
|
108
108
|
}, z.core.$strip>;
|
|
109
|
-
password: z.
|
|
109
|
+
password: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
110
110
|
}, z.core.$strip>;
|
|
111
|
-
readonly SET_TAGS: z.
|
|
112
|
-
userId: z.
|
|
113
|
-
tags: z.
|
|
111
|
+
readonly SET_TAGS: z.ZodMiniObject<{
|
|
112
|
+
userId: z.ZodMiniString<string>;
|
|
113
|
+
tags: z.ZodMiniArray<z.ZodMiniString<string>>;
|
|
114
114
|
}, z.core.$strip>;
|
|
115
|
-
readonly SET_USERNAME: z.
|
|
116
|
-
userId: z.
|
|
117
|
-
username: z.
|
|
115
|
+
readonly SET_USERNAME: z.ZodMiniObject<{
|
|
116
|
+
userId: z.ZodMiniString<string>;
|
|
117
|
+
username: z.ZodMiniString<string>;
|
|
118
118
|
}, z.core.$strip>;
|
|
119
|
-
readonly ADD_EMAIL: z.
|
|
120
|
-
userId: z.
|
|
121
|
-
email: z.
|
|
119
|
+
readonly ADD_EMAIL: z.ZodMiniObject<{
|
|
120
|
+
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
121
|
+
email: z.ZodMiniString<string>;
|
|
122
122
|
}, z.core.$strip>;
|
|
123
|
-
readonly REMOVE_EMAIL: z.
|
|
124
|
-
userId: z.
|
|
125
|
-
email: z.
|
|
123
|
+
readonly REMOVE_EMAIL: z.ZodMiniObject<{
|
|
124
|
+
userId: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
125
|
+
email: z.ZodMiniString<string>;
|
|
126
126
|
}, z.core.$strip>;
|
|
127
|
-
readonly SEND_ENROLLMENT_EMAIL: z.
|
|
128
|
-
email: z.
|
|
127
|
+
readonly SEND_ENROLLMENT_EMAIL: z.ZodMiniObject<{
|
|
128
|
+
email: z.ZodMiniString<string>;
|
|
129
129
|
}, z.core.$strip>;
|
|
130
|
-
readonly SEND_VERIFICATION_EMAIL: z.
|
|
131
|
-
email: z.
|
|
130
|
+
readonly SEND_VERIFICATION_EMAIL: z.ZodMiniObject<{
|
|
131
|
+
email: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
132
132
|
}, z.core.$strip>;
|
|
133
|
-
readonly REMOVE_PRODUCT_REVIEWS: z.
|
|
134
|
-
userId: z.
|
|
133
|
+
readonly REMOVE_PRODUCT_REVIEWS: z.ZodMiniObject<{
|
|
134
|
+
userId: z.ZodMiniString<string>;
|
|
135
135
|
}, z.core.$strip>;
|
|
136
|
-
readonly GET_ORDERS: z.
|
|
137
|
-
includeCarts: z.
|
|
138
|
-
status: z.
|
|
139
|
-
queryString: z.
|
|
140
|
-
includeInactive: z.
|
|
141
|
-
sort: z.
|
|
142
|
-
key: z.
|
|
143
|
-
value: z.
|
|
136
|
+
readonly GET_ORDERS: z.ZodMiniObject<{
|
|
137
|
+
includeCarts: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
138
|
+
status: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
139
|
+
queryString: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
140
|
+
includeInactive: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
141
|
+
sort: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
142
|
+
key: z.ZodMiniString<string>;
|
|
143
|
+
value: z.ZodMiniEnum<{
|
|
144
144
|
[x: string]: string;
|
|
145
145
|
}>;
|
|
146
146
|
}, z.core.$strip>>>;
|
|
147
|
-
limit: z.
|
|
148
|
-
offset: z.
|
|
149
|
-
userId: z.
|
|
150
|
-
}, z.core.$strip>;
|
|
151
|
-
readonly GET_ENROLLMENTS: z.
|
|
152
|
-
status: z.
|
|
153
|
-
queryString: z.
|
|
154
|
-
includeInactive: z.
|
|
155
|
-
sort: z.
|
|
156
|
-
key: z.
|
|
157
|
-
value: z.
|
|
147
|
+
limit: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
148
|
+
offset: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
149
|
+
userId: z.ZodMiniString<string>;
|
|
150
|
+
}, z.core.$strip>;
|
|
151
|
+
readonly GET_ENROLLMENTS: z.ZodMiniObject<{
|
|
152
|
+
status: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
153
|
+
queryString: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
154
|
+
includeInactive: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
155
|
+
sort: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
156
|
+
key: z.ZodMiniString<string>;
|
|
157
|
+
value: z.ZodMiniEnum<{
|
|
158
158
|
[x: string]: string;
|
|
159
159
|
}>;
|
|
160
160
|
}, z.core.$strip>>>;
|
|
161
|
-
limit: z.
|
|
162
|
-
offset: z.
|
|
163
|
-
userId: z.
|
|
164
|
-
}, z.core.$strip>;
|
|
165
|
-
readonly GET_QUOTATIONS: z.
|
|
166
|
-
queryString: z.
|
|
167
|
-
includeInactive: z.
|
|
168
|
-
sort: z.
|
|
169
|
-
key: z.
|
|
170
|
-
value: z.
|
|
161
|
+
limit: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
162
|
+
offset: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
163
|
+
userId: z.ZodMiniString<string>;
|
|
164
|
+
}, z.core.$strip>;
|
|
165
|
+
readonly GET_QUOTATIONS: z.ZodMiniObject<{
|
|
166
|
+
queryString: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
167
|
+
includeInactive: z.ZodMiniDefault<z.ZodMiniBoolean<boolean>>;
|
|
168
|
+
sort: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
169
|
+
key: z.ZodMiniString<string>;
|
|
170
|
+
value: z.ZodMiniEnum<{
|
|
171
171
|
[x: string]: string;
|
|
172
172
|
}>;
|
|
173
173
|
}, z.core.$strip>>>;
|
|
174
|
-
limit: z.
|
|
175
|
-
offset: z.
|
|
176
|
-
userId: z.
|
|
174
|
+
limit: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
175
|
+
offset: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
176
|
+
userId: z.ZodMiniString<string>;
|
|
177
177
|
}, z.core.$strip>;
|
|
178
|
-
readonly GET_BOOKMARKS: z.
|
|
179
|
-
userId: z.
|
|
178
|
+
readonly GET_BOOKMARKS: z.ZodMiniObject<{
|
|
179
|
+
userId: z.ZodMiniString<string>;
|
|
180
180
|
}, z.core.$strip>;
|
|
181
|
-
readonly GET_CURRENT_USER: z.
|
|
182
|
-
readonly GET_PAYMENT_CREDENTIALS: z.
|
|
183
|
-
userId: z.
|
|
181
|
+
readonly GET_CURRENT_USER: z.ZodMiniObject<{}, z.core.$strip>;
|
|
182
|
+
readonly GET_PAYMENT_CREDENTIALS: z.ZodMiniObject<{
|
|
183
|
+
userId: z.ZodMiniString<string>;
|
|
184
184
|
}, z.core.$strip>;
|
|
185
|
-
readonly GET_AVATAR: z.
|
|
186
|
-
userId: z.
|
|
185
|
+
readonly GET_AVATAR: z.ZodMiniObject<{
|
|
186
|
+
userId: z.ZodMiniString<string>;
|
|
187
187
|
}, z.core.$strip>;
|
|
188
|
-
readonly GET_REVIEWS: z.
|
|
189
|
-
sort: z.
|
|
190
|
-
key: z.
|
|
191
|
-
value: z.
|
|
188
|
+
readonly GET_REVIEWS: z.ZodMiniObject<{
|
|
189
|
+
sort: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniObject<{
|
|
190
|
+
key: z.ZodMiniString<string>;
|
|
191
|
+
value: z.ZodMiniEnum<{
|
|
192
192
|
[x: string]: string;
|
|
193
193
|
}>;
|
|
194
194
|
}, z.core.$strip>>>;
|
|
195
|
-
limit: z.
|
|
196
|
-
offset: z.
|
|
197
|
-
userId: z.
|
|
195
|
+
limit: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
196
|
+
offset: z.ZodMiniOptional<z.ZodMiniNumberFormat>;
|
|
197
|
+
userId: z.ZodMiniString<string>;
|
|
198
198
|
}, z.core.$strip>;
|
|
199
|
-
readonly GET_REVIEWS_COUNT: z.
|
|
200
|
-
userId: z.
|
|
199
|
+
readonly GET_REVIEWS_COUNT: z.ZodMiniObject<{
|
|
200
|
+
userId: z.ZodMiniString<string>;
|
|
201
201
|
}, z.core.$strip>;
|
|
202
202
|
};
|
|
203
203
|
export declare const UsersManagementSchema: {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
start: z.ZodOptional<z.ZodString>;
|
|
208
|
-
end: z.ZodOptional<z.ZodString>;
|
|
209
|
-
}, z.core.$strip>>;
|
|
210
|
-
includeCarts: z.ZodOptional<z.ZodBoolean>;
|
|
211
|
-
status: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
212
|
-
from: z.ZodOptional<z.ZodString>;
|
|
213
|
-
to: z.ZodOptional<z.ZodString>;
|
|
214
|
-
queryString: z.ZodOptional<z.ZodString>;
|
|
215
|
-
includeInactive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
216
|
-
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
217
|
-
key: z.ZodString;
|
|
218
|
-
value: z.ZodEnum<{
|
|
219
|
-
[x: string]: string;
|
|
220
|
-
}>;
|
|
221
|
-
}, z.core.$strip>>>;
|
|
222
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
223
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
224
|
-
action: z.ZodEnum<{
|
|
225
|
-
GET: "GET";
|
|
226
|
-
CREATE: "CREATE";
|
|
227
|
-
UPDATE: "UPDATE";
|
|
228
|
-
REMOVE: "REMOVE";
|
|
229
|
-
LIST: "LIST";
|
|
230
|
-
COUNT: "COUNT";
|
|
231
|
-
GET_REVIEWS: "GET_REVIEWS";
|
|
232
|
-
ENROLL: "ENROLL";
|
|
233
|
-
SET_TAGS: "SET_TAGS";
|
|
234
|
-
SET_USERNAME: "SET_USERNAME";
|
|
235
|
-
ADD_EMAIL: "ADD_EMAIL";
|
|
236
|
-
REMOVE_EMAIL: "REMOVE_EMAIL";
|
|
237
|
-
SEND_ENROLLMENT_EMAIL: "SEND_ENROLLMENT_EMAIL";
|
|
238
|
-
SEND_VERIFICATION_EMAIL: "SEND_VERIFICATION_EMAIL";
|
|
239
|
-
REMOVE_PRODUCT_REVIEWS: "REMOVE_PRODUCT_REVIEWS";
|
|
240
|
-
GET_ORDERS: "GET_ORDERS";
|
|
241
|
-
GET_ENROLLMENTS: "GET_ENROLLMENTS";
|
|
242
|
-
GET_QUOTATIONS: "GET_QUOTATIONS";
|
|
243
|
-
GET_BOOKMARKS: "GET_BOOKMARKS";
|
|
244
|
-
GET_PAYMENT_CREDENTIALS: "GET_PAYMENT_CREDENTIALS";
|
|
245
|
-
GET_AVATAR: "GET_AVATAR";
|
|
246
|
-
GET_REVIEWS_COUNT: "GET_REVIEWS_COUNT";
|
|
247
|
-
GET_CURRENT_USER: "GET_CURRENT_USER";
|
|
248
|
-
}>;
|
|
249
|
-
userId: z.ZodOptional<z.ZodString>;
|
|
250
|
-
username: z.ZodOptional<z.ZodString>;
|
|
251
|
-
email: z.ZodOptional<z.ZodString>;
|
|
252
|
-
password: z.ZodOptional<z.ZodString>;
|
|
253
|
-
profile: z.ZodOptional<z.ZodObject<{
|
|
254
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
255
|
-
birthday: z.ZodOptional<z.ZodString>;
|
|
256
|
-
phoneMobile: z.ZodOptional<z.ZodString>;
|
|
257
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
258
|
-
firstName: z.ZodOptional<z.ZodString>;
|
|
259
|
-
lastName: z.ZodOptional<z.ZodString>;
|
|
260
|
-
addressLine: z.ZodOptional<z.ZodString>;
|
|
261
|
-
addressLine2: z.ZodOptional<z.ZodString>;
|
|
262
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
263
|
-
city: z.ZodOptional<z.ZodString>;
|
|
264
|
-
regionCode: z.ZodOptional<z.ZodString>;
|
|
265
|
-
countryCode: z.ZodOptional<z.ZodString>;
|
|
266
|
-
}, z.core.$strip>>;
|
|
267
|
-
}, z.core.$strip>>;
|
|
268
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
269
|
-
removeUserReviews: z.ZodOptional<z.ZodBoolean>;
|
|
270
|
-
};
|
|
271
|
-
export declare const UsersManagementZodSchema: z.ZodObject<{
|
|
272
|
-
includeGuests: z.ZodOptional<z.ZodBoolean>;
|
|
273
|
-
emailVerified: z.ZodOptional<z.ZodBoolean>;
|
|
274
|
-
lastLogin: z.ZodOptional<z.ZodObject<{
|
|
275
|
-
start: z.ZodOptional<z.ZodString>;
|
|
276
|
-
end: z.ZodOptional<z.ZodString>;
|
|
277
|
-
}, z.core.$strip>>;
|
|
278
|
-
includeCarts: z.ZodOptional<z.ZodBoolean>;
|
|
279
|
-
status: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
280
|
-
from: z.ZodOptional<z.ZodString>;
|
|
281
|
-
to: z.ZodOptional<z.ZodString>;
|
|
282
|
-
queryString: z.ZodOptional<z.ZodString>;
|
|
283
|
-
includeInactive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
284
|
-
sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
285
|
-
key: z.ZodString;
|
|
286
|
-
value: z.ZodEnum<{
|
|
287
|
-
[x: string]: string;
|
|
288
|
-
}>;
|
|
289
|
-
}, z.core.$strip>>>;
|
|
290
|
-
limit: z.ZodOptional<z.ZodNumber>;
|
|
291
|
-
offset: z.ZodOptional<z.ZodNumber>;
|
|
292
|
-
action: z.ZodEnum<{
|
|
293
|
-
GET: "GET";
|
|
294
|
-
CREATE: "CREATE";
|
|
295
|
-
UPDATE: "UPDATE";
|
|
296
|
-
REMOVE: "REMOVE";
|
|
297
|
-
LIST: "LIST";
|
|
298
|
-
COUNT: "COUNT";
|
|
299
|
-
GET_REVIEWS: "GET_REVIEWS";
|
|
300
|
-
ENROLL: "ENROLL";
|
|
301
|
-
SET_TAGS: "SET_TAGS";
|
|
302
|
-
SET_USERNAME: "SET_USERNAME";
|
|
303
|
-
ADD_EMAIL: "ADD_EMAIL";
|
|
304
|
-
REMOVE_EMAIL: "REMOVE_EMAIL";
|
|
305
|
-
SEND_ENROLLMENT_EMAIL: "SEND_ENROLLMENT_EMAIL";
|
|
306
|
-
SEND_VERIFICATION_EMAIL: "SEND_VERIFICATION_EMAIL";
|
|
307
|
-
REMOVE_PRODUCT_REVIEWS: "REMOVE_PRODUCT_REVIEWS";
|
|
308
|
-
GET_ORDERS: "GET_ORDERS";
|
|
309
|
-
GET_ENROLLMENTS: "GET_ENROLLMENTS";
|
|
310
|
-
GET_QUOTATIONS: "GET_QUOTATIONS";
|
|
311
|
-
GET_BOOKMARKS: "GET_BOOKMARKS";
|
|
312
|
-
GET_PAYMENT_CREDENTIALS: "GET_PAYMENT_CREDENTIALS";
|
|
313
|
-
GET_AVATAR: "GET_AVATAR";
|
|
314
|
-
GET_REVIEWS_COUNT: "GET_REVIEWS_COUNT";
|
|
315
|
-
GET_CURRENT_USER: "GET_CURRENT_USER";
|
|
316
|
-
}>;
|
|
317
|
-
userId: z.ZodOptional<z.ZodString>;
|
|
318
|
-
username: z.ZodOptional<z.ZodString>;
|
|
319
|
-
email: z.ZodOptional<z.ZodString>;
|
|
320
|
-
password: z.ZodOptional<z.ZodString>;
|
|
321
|
-
profile: z.ZodOptional<z.ZodObject<{
|
|
322
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
323
|
-
birthday: z.ZodOptional<z.ZodString>;
|
|
324
|
-
phoneMobile: z.ZodOptional<z.ZodString>;
|
|
325
|
-
address: z.ZodOptional<z.ZodObject<{
|
|
326
|
-
firstName: z.ZodOptional<z.ZodString>;
|
|
327
|
-
lastName: z.ZodOptional<z.ZodString>;
|
|
328
|
-
addressLine: z.ZodOptional<z.ZodString>;
|
|
329
|
-
addressLine2: z.ZodOptional<z.ZodString>;
|
|
330
|
-
postalCode: z.ZodOptional<z.ZodString>;
|
|
331
|
-
city: z.ZodOptional<z.ZodString>;
|
|
332
|
-
regionCode: z.ZodOptional<z.ZodString>;
|
|
333
|
-
countryCode: z.ZodOptional<z.ZodString>;
|
|
334
|
-
}, z.core.$strip>>;
|
|
335
|
-
}, z.core.$strip>>;
|
|
336
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
337
|
-
removeUserReviews: z.ZodOptional<z.ZodBoolean>;
|
|
338
|
-
}, z.core.$strip>;
|
|
339
|
-
export type UsersManagementParams = z.infer<typeof UsersManagementZodSchema>;
|
|
204
|
+
action: z.core.$ZodType<string>;
|
|
205
|
+
} & Record<string, z.core.$ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
206
|
+
export type { ManagementParams as UsersManagementParams } from '../../utils/sharedSchemas.ts';
|
|
340
207
|
export type ActionName = keyof typeof actionValidators;
|
|
341
208
|
export type Params<T extends ActionName> = z.infer<(typeof actionValidators)[T]>;
|
|
342
209
|
export type Handler<T extends ActionName> = (usersModule: any, params: Params<T>) => Promise<unknown>;
|