@unchainedshop/api 4.8.0 → 4.8.2
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/createBulkImportMiddleware.js +3 -2
- package/lib/express/createMCPMiddleware.js +1 -1
- package/lib/fastify/bulkImportHandler.js +3 -2
- 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/lib/resolvers/mutations/worker/addWork.js +2 -2
- package/lib/resolvers/queries/events/registeredEventTypes.d.ts +1 -0
- package/lib/resolvers/queries/events/registeredEventTypes.js +4 -0
- package/lib/resolvers/queries/index.d.ts +1 -0
- package/lib/resolvers/queries/index.js +2 -0
- package/lib/schema/query.js +5 -0
- package/package.json +1 -1
|
@@ -1,261 +1,140 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { PaginationSchema, SortingSchema, SearchSchema, DateRangeSchema, } from "../../utils/sharedSchemas.js";
|
|
1
|
+
import { z } from 'zod/v4-mini';
|
|
2
|
+
import { PaginationSchema, SortingSchema, SearchSchema, DateRangeSchema, createManagementSchemaFromValidators, } from "../../utils/sharedSchemas.js";
|
|
3
3
|
import { WorkStatus } from '@unchainedshop/core-worker';
|
|
4
4
|
export const WorkStatusKeys = Object.keys(WorkStatus);
|
|
5
5
|
export const ActiveWorkTypesSchema = z.object({});
|
|
6
6
|
export const actionValidators = {
|
|
7
7
|
SHOP_INFO: z
|
|
8
8
|
.object({})
|
|
9
|
-
.describe('Get shop configuration including default locale settings. No parameters expected - returns system-wide defaults.'),
|
|
9
|
+
.check(z.describe('Get shop configuration including default locale settings. No parameters expected - returns system-wide defaults.')),
|
|
10
10
|
WORKER_ADD: z.object({
|
|
11
11
|
type: z
|
|
12
12
|
.string()
|
|
13
|
-
.
|
|
14
|
-
.describe('Work type key that determines which worker/handler will process the job. Must match a registered worker type in the system.'),
|
|
13
|
+
.check(z.minLength(1), z.describe('Work type key that determines which worker/handler will process the job. Must match a registered worker type in the system.')),
|
|
15
14
|
priority: z
|
|
16
|
-
.
|
|
17
|
-
.
|
|
18
|
-
.default(0)
|
|
19
|
-
.describe('Job priority for queue ordering. Higher values are processed first. Default is 0. Negative values allowed for lower priority.'),
|
|
15
|
+
._default(z.int(), 0)
|
|
16
|
+
.check(z.describe('Job priority for queue ordering. Higher values are processed first. Default is 0. Negative values allowed for lower priority.')),
|
|
20
17
|
input: z
|
|
21
|
-
.any()
|
|
22
|
-
.
|
|
23
|
-
.describe('Arbitrary JSON payload passed to the worker. The structure depends on the work type and should be validated by the worker implementation.'),
|
|
18
|
+
.optional(z.any())
|
|
19
|
+
.check(z.describe('Arbitrary JSON payload passed to the worker. The structure depends on the work type and should be validated by the worker implementation.')),
|
|
24
20
|
originalWorkId: z
|
|
25
|
-
.string()
|
|
26
|
-
.
|
|
27
|
-
.describe('Reference to the original work item ID. Useful for tracking retries, parent-child relationships, or audit trails.'),
|
|
21
|
+
.optional(z.string())
|
|
22
|
+
.check(z.describe('Reference to the original work item ID. Useful for tracking retries, parent-child relationships, or audit trails.')),
|
|
28
23
|
scheduled: z
|
|
29
|
-
.
|
|
30
|
-
.
|
|
31
|
-
.optional()
|
|
32
|
-
.describe('ISO 8601 timestamp when the job should be executed. If omitted, the job is immediately available for processing.'),
|
|
24
|
+
.optional(z.iso.datetime())
|
|
25
|
+
.check(z.describe('ISO 8601 timestamp when the job should be executed. If omitted, the job is immediately available for processing.')),
|
|
33
26
|
retries: z
|
|
34
|
-
.
|
|
35
|
-
.
|
|
36
|
-
.min(0)
|
|
37
|
-
.max(1000)
|
|
38
|
-
.default(20)
|
|
39
|
-
.describe('Maximum number of retry attempts allowed for this job. Default: 20.'),
|
|
27
|
+
._default(z.int().check(z.gte(0), z.lte(1000)), 20)
|
|
28
|
+
.check(z.describe('Maximum number of retry attempts allowed for this job. Default: 20.')),
|
|
40
29
|
worker: z
|
|
41
|
-
.string()
|
|
42
|
-
.
|
|
43
|
-
.describe('Specific worker identifier to assign this job to. If provided, only that worker can process this job.'),
|
|
30
|
+
.optional(z.string())
|
|
31
|
+
.check(z.describe('Specific worker identifier to assign this job to. If provided, only that worker can process this job.')),
|
|
44
32
|
}),
|
|
45
|
-
WORKER_ACTIVE_WORK_TYPES: ActiveWorkTypesSchema.describe('Current active work types in the system. This includes all registered worker types that can process jobs. The list is dynamically generated based on the workers currently available. No parameters expected.'),
|
|
33
|
+
WORKER_ACTIVE_WORK_TYPES: ActiveWorkTypesSchema.check(z.describe('Current active work types in the system. This includes all registered worker types that can process jobs. The list is dynamically generated based on the workers currently available. No parameters expected.')),
|
|
46
34
|
WORKER_ALLOCATE: z.object({
|
|
47
35
|
types: z
|
|
48
|
-
.array(z.string())
|
|
49
|
-
.
|
|
50
|
-
.optional()
|
|
51
|
-
.describe('Must match a registered worker type in the system, When provided, the worker will take precedence in the queue and be allocated'),
|
|
36
|
+
.optional(z.array(z.string()).check(z.minLength(1)))
|
|
37
|
+
.check(z.describe('Must match a registered worker type in the system, When provided, the worker will take precedence in the queue and be allocated')),
|
|
52
38
|
worker: z
|
|
53
|
-
.string()
|
|
54
|
-
.
|
|
55
|
-
.describe('Worker identifier that will process the allocated task. Used for tracking and locking the work item to this worker.'),
|
|
39
|
+
.optional(z.string())
|
|
40
|
+
.check(z.describe('Worker identifier that will process the allocated task. Used for tracking and locking the work item to this worker.')),
|
|
56
41
|
}),
|
|
57
42
|
WORKER_REMOVE: z.object({
|
|
58
43
|
workId: z
|
|
59
44
|
.string()
|
|
60
|
-
.describe('Unique identifier of the work item to remove from the queue. only NEW worker that is not deleted, allocated or finished'),
|
|
45
|
+
.check(z.describe('Unique identifier of the work item to remove from the queue. only NEW worker that is not deleted, allocated or finished')),
|
|
61
46
|
}),
|
|
62
47
|
WORKER_GET: z.object({
|
|
63
|
-
workId: z
|
|
48
|
+
workId: z
|
|
49
|
+
.string()
|
|
50
|
+
.check(z.minLength(1), z.describe('Unique identifier of the work item to retrieve')),
|
|
64
51
|
}),
|
|
65
52
|
WORKER_LIST: z.object({
|
|
66
53
|
...PaginationSchema,
|
|
67
54
|
...SortingSchema,
|
|
68
55
|
...SearchSchema,
|
|
69
56
|
created: z
|
|
70
|
-
.object(DateRangeSchema)
|
|
71
|
-
.
|
|
72
|
-
.describe('Date range filter for when work items were created'),
|
|
57
|
+
.optional(z.object(DateRangeSchema))
|
|
58
|
+
.check(z.describe('Date range filter for when work items were created')),
|
|
73
59
|
status: z
|
|
74
|
-
.array(z.enum(WorkStatusKeys))
|
|
75
|
-
.
|
|
76
|
-
|
|
77
|
-
types: z.array(z.string()).optional().describe('Filter by specific work types'),
|
|
60
|
+
.optional(z.array(z.enum(WorkStatusKeys)))
|
|
61
|
+
.check(z.describe('Filter by work item status (NEW, ALLOCATED, SUCCESS, FAILED, DELETED)')),
|
|
62
|
+
types: z.optional(z.array(z.string())).check(z.describe('Filter by specific work types')),
|
|
78
63
|
}),
|
|
79
64
|
WORKER_COUNT: z.object({
|
|
80
65
|
...SearchSchema,
|
|
81
66
|
created: z
|
|
82
|
-
.object(DateRangeSchema)
|
|
83
|
-
.
|
|
84
|
-
.describe('Date range filter for when work items were created'),
|
|
67
|
+
.optional(z.object(DateRangeSchema))
|
|
68
|
+
.check(z.describe('Date range filter for when work items were created')),
|
|
85
69
|
status: z
|
|
86
|
-
.array(z.enum(WorkStatusKeys))
|
|
87
|
-
.
|
|
88
|
-
|
|
89
|
-
types: z.array(z.string()).optional().describe('Filter by specific work types'),
|
|
70
|
+
.optional(z.array(z.enum(WorkStatusKeys)))
|
|
71
|
+
.check(z.describe('Filter by work item status (NEW, ALLOCATED, SUCCESS, FAILED, DELETED)')),
|
|
72
|
+
types: z.optional(z.array(z.string())).check(z.describe('Filter by specific work types')),
|
|
90
73
|
}),
|
|
91
74
|
WORKER_FINISH_WORK: z.object({
|
|
92
|
-
workId: z.string().describe('Unique identifier of the work item to mark as completed.'),
|
|
75
|
+
workId: z.string().check(z.describe('Unique identifier of the work item to mark as completed.')),
|
|
93
76
|
result: z
|
|
94
|
-
.any()
|
|
95
|
-
.
|
|
96
|
-
.describe('JSON result data produced by the work execution. Can be any valid JSON value.'),
|
|
77
|
+
.optional(z.any())
|
|
78
|
+
.check(z.describe('JSON result data produced by the work execution. Can be any valid JSON value.')),
|
|
97
79
|
error: z
|
|
98
|
-
.any()
|
|
99
|
-
.
|
|
100
|
-
.describe('Error information if the work failed. Can be an error message, stack trace, or error object.'),
|
|
80
|
+
.optional(z.any())
|
|
81
|
+
.check(z.describe('Error information if the work failed. Can be an error message, stack trace, or error object.')),
|
|
101
82
|
success: z
|
|
102
83
|
.boolean()
|
|
103
|
-
.describe('Whether the work completed successfully. Required to mark work as finished.'),
|
|
84
|
+
.check(z.describe('Whether the work completed successfully. Required to mark work as finished.')),
|
|
104
85
|
worker: z
|
|
105
|
-
.string()
|
|
106
|
-
.
|
|
107
|
-
.describe('Identifier of the worker that completed the task. Used for logging and tracking purposes.'),
|
|
86
|
+
.optional(z.string())
|
|
87
|
+
.check(z.describe('Identifier of the worker that completed the task. Used for logging and tracking purposes.')),
|
|
108
88
|
started: z
|
|
109
|
-
.
|
|
110
|
-
.
|
|
111
|
-
.optional()
|
|
112
|
-
.describe('ISO 8601 timestamp when the worker began executing this work item.'),
|
|
89
|
+
.optional(z.iso.datetime())
|
|
90
|
+
.check(z.describe('ISO 8601 timestamp when the worker began executing this work item.')),
|
|
113
91
|
finished: z
|
|
114
|
-
.
|
|
115
|
-
.
|
|
116
|
-
.optional()
|
|
117
|
-
.describe('ISO 8601 timestamp when the work execution completed (success or failure).'),
|
|
92
|
+
.optional(z.iso.datetime())
|
|
93
|
+
.check(z.describe('ISO 8601 timestamp when the work execution completed (success or failure).')),
|
|
118
94
|
}),
|
|
119
95
|
WORKER_PROCESS_NEXT: z.object({
|
|
120
96
|
worker: z
|
|
121
|
-
.string()
|
|
122
|
-
.
|
|
123
|
-
.describe('Worker identifier for task allocation. If provided, assigns the next available task to this specific worker.'),
|
|
97
|
+
.optional(z.string())
|
|
98
|
+
.check(z.describe('Worker identifier for task allocation. If provided, assigns the next available task to this specific worker.')),
|
|
124
99
|
}),
|
|
125
100
|
WORKER_STATISTICS: z.object({
|
|
126
|
-
types: z.array(z.string()).
|
|
127
|
-
dateRange: z
|
|
101
|
+
types: z.optional(z.array(z.string())).check(z.describe('Filter statistics by specific work types')),
|
|
102
|
+
dateRange: z
|
|
103
|
+
.optional(z.object(DateRangeSchema))
|
|
104
|
+
.check(z.describe('Date range to filter work statistics')),
|
|
128
105
|
}),
|
|
129
106
|
EVENT_GET: z.object({
|
|
130
107
|
eventId: z
|
|
131
108
|
.string()
|
|
132
|
-
.
|
|
133
|
-
.describe('Unique identifier of the event to retrieve from the event history'),
|
|
109
|
+
.check(z.minLength(1), z.describe('Unique identifier of the event to retrieve from the event history')),
|
|
134
110
|
}),
|
|
135
111
|
EVENT_LIST: z.object({
|
|
136
112
|
...PaginationSchema,
|
|
137
113
|
...SortingSchema,
|
|
138
114
|
...SearchSchema,
|
|
139
115
|
types: z
|
|
140
|
-
.array(z.string())
|
|
141
|
-
.
|
|
142
|
-
.describe('Filter events by specific event types (e.g., USER_CREATED, ORDER_PLACED)'),
|
|
116
|
+
.optional(z.array(z.string()))
|
|
117
|
+
.check(z.describe('Filter events by specific event types (e.g., USER_CREATED, ORDER_PLACED)')),
|
|
143
118
|
created: z
|
|
144
|
-
.object(DateRangeSchema)
|
|
145
|
-
.
|
|
146
|
-
.describe('Date range filter for when events are emitted/created'),
|
|
119
|
+
.optional(z.object(DateRangeSchema))
|
|
120
|
+
.check(z.describe('Date range filter for when events are emitted/created')),
|
|
147
121
|
}),
|
|
148
122
|
EVENT_COUNT: z.object({
|
|
149
123
|
...SearchSchema,
|
|
150
124
|
types: z
|
|
151
|
-
.array(z.string())
|
|
152
|
-
.
|
|
153
|
-
.describe('Filter events by specific event types (e.g., USER_CREATED, ORDER_PLACED)'),
|
|
125
|
+
.optional(z.array(z.string()))
|
|
126
|
+
.check(z.describe('Filter events by specific event types (e.g., USER_CREATED, ORDER_PLACED)')),
|
|
154
127
|
created: z
|
|
155
|
-
.object(DateRangeSchema)
|
|
156
|
-
.
|
|
157
|
-
.describe('Date range filter for when events are emitted/created'),
|
|
128
|
+
.optional(z.object(DateRangeSchema))
|
|
129
|
+
.check(z.describe('Date range filter for when events are emitted/created')),
|
|
158
130
|
}),
|
|
159
131
|
EVENT_STATISTICS: z.object({
|
|
160
132
|
types: z
|
|
161
|
-
.array(z.string())
|
|
162
|
-
.
|
|
163
|
-
.describe('Filter statistics by specific event types. If not provided, includes all event types'),
|
|
133
|
+
.optional(z.array(z.string()))
|
|
134
|
+
.check(z.describe('Filter statistics by specific event types. If not provided, includes all event types')),
|
|
164
135
|
dateRange: z
|
|
165
|
-
.object(DateRangeSchema)
|
|
166
|
-
.
|
|
167
|
-
.describe('Date range to filter event statistics. Includes start and/or end dates'),
|
|
136
|
+
.optional(z.object(DateRangeSchema))
|
|
137
|
+
.check(z.describe('Date range to filter event statistics. Includes start and/or end dates')),
|
|
168
138
|
}),
|
|
169
139
|
};
|
|
170
|
-
export const SystemManagementSchema =
|
|
171
|
-
action: z
|
|
172
|
-
.enum([
|
|
173
|
-
'SHOP_INFO',
|
|
174
|
-
'WORKER_ADD',
|
|
175
|
-
'WORKER_REMOVE',
|
|
176
|
-
'WORKER_COUNT',
|
|
177
|
-
'WORKER_GET',
|
|
178
|
-
'WORKER_LIST',
|
|
179
|
-
'WORKER_STATISTICS',
|
|
180
|
-
'WORKER_PROCESS_NEXT',
|
|
181
|
-
'WORKER_ALLOCATE',
|
|
182
|
-
'WORKER_FINISH_WORK',
|
|
183
|
-
'WORKER_ACTIVE_WORK_TYPES',
|
|
184
|
-
'EVENT_GET',
|
|
185
|
-
'EVENT_LIST',
|
|
186
|
-
'EVENT_COUNT',
|
|
187
|
-
'EVENT_STATISTICS',
|
|
188
|
-
])
|
|
189
|
-
.describe('Action to perform on the system. System actions: SHOP_INFO (get shop configuration). Worker actions: WORKER_ADD (add work), WORKER_ALLOCATE (assign work), WORKER_REMOVE (delete work), WORKER_GET (retrieve work), WORKER_LIST (search work), WORKER_COUNT (count work), WORKER_FINISH_WORK (complete work), WORKER_PROCESS_NEXT (get next work), WORKER_STATISTICS (work stats), WORKER_ACTIVE_WORK_TYPES (get active work types). Event actions: EVENT_GET (retrieve event), EVENT_LIST (search events), EVENT_COUNT (count events), EVENT_STATISTICS (event stats).'),
|
|
190
|
-
type: z
|
|
191
|
-
.string()
|
|
192
|
-
.min(1)
|
|
193
|
-
.optional()
|
|
194
|
-
.describe('Work type key for WORKER_ADD action. Determines which worker/handler will process the job.'),
|
|
195
|
-
priority: z
|
|
196
|
-
.number()
|
|
197
|
-
.int()
|
|
198
|
-
.optional()
|
|
199
|
-
.describe('Job priority for WORKER_ADD action. Higher values processed first. Default: 0.'),
|
|
200
|
-
originalWorkId: z
|
|
201
|
-
.string()
|
|
202
|
-
.optional()
|
|
203
|
-
.describe('Reference to original work item ID for WORKER_ADD action. For tracking retries/relationships.'),
|
|
204
|
-
scheduled: z
|
|
205
|
-
.string()
|
|
206
|
-
.datetime()
|
|
207
|
-
.optional()
|
|
208
|
-
.describe('ISO 8601 timestamp for WORKER_ADD action. When job should be executed.'),
|
|
209
|
-
retries: z
|
|
210
|
-
.number()
|
|
211
|
-
.int()
|
|
212
|
-
.optional()
|
|
213
|
-
.describe('Maximum retry attempts for WORKER_ADD action. Default: 20.'),
|
|
214
|
-
worker: z
|
|
215
|
-
.string()
|
|
216
|
-
.optional()
|
|
217
|
-
.describe('Worker identifier. Used in WORKER_ADD, WORKER_ALLOCATE, WORKER_FINISH_WORK, WORKER_PROCESS_NEXT actions.'),
|
|
218
|
-
workId: z
|
|
219
|
-
.string()
|
|
220
|
-
.optional()
|
|
221
|
-
.describe('Unique work identifier. Required for WORKER_GET, WORKER_REMOVE, WORKER_FINISH_WORK actions.'),
|
|
222
|
-
success: z
|
|
223
|
-
.boolean()
|
|
224
|
-
.optional()
|
|
225
|
-
.describe('Success status for WORKER_FINISH_WORK action. Required to mark work as finished.'),
|
|
226
|
-
started: z
|
|
227
|
-
.string()
|
|
228
|
-
.datetime()
|
|
229
|
-
.optional()
|
|
230
|
-
.describe('ISO 8601 start timestamp for WORKER_FINISH_WORK action. When worker began execution.'),
|
|
231
|
-
finished: z
|
|
232
|
-
.string()
|
|
233
|
-
.datetime()
|
|
234
|
-
.optional()
|
|
235
|
-
.describe('ISO 8601 finish timestamp for WORKER_FINISH_WORK action. When work completed.'),
|
|
236
|
-
status: z
|
|
237
|
-
.array(z.enum(WorkStatusKeys))
|
|
238
|
-
.optional()
|
|
239
|
-
.describe('Status filter for WORKER_LIST/WORKER_COUNT actions. Work item statuses to include.'),
|
|
240
|
-
eventId: z
|
|
241
|
-
.string()
|
|
242
|
-
.optional()
|
|
243
|
-
.describe('Unique event identifier. Required for EVENT_GET action to retrieve a specific event.'),
|
|
244
|
-
created: z
|
|
245
|
-
.string()
|
|
246
|
-
.datetime()
|
|
247
|
-
.optional()
|
|
248
|
-
.describe('ISO 8601 timestamp filter for EVENT_LIST/EVENT_COUNT actions. Shows events created on or after this date/time.'),
|
|
249
|
-
types: z
|
|
250
|
-
.array(z.string())
|
|
251
|
-
.optional()
|
|
252
|
-
.describe('Filter by specific types. For worker actions: use in WORKER_LIST, WORKER_ALLOCATE work types. For event actions: event types (e.g., USER_CREATED, ORDER_PLACED).'),
|
|
253
|
-
...PaginationSchema,
|
|
254
|
-
...SortingSchema,
|
|
255
|
-
...SearchSchema,
|
|
256
|
-
dateRange: z
|
|
257
|
-
.object(DateRangeSchema)
|
|
258
|
-
.optional()
|
|
259
|
-
.describe('Date range filter for WORKER_STATISTICS/EVENT_STATISTICS actions. Filter statistics by date range.'),
|
|
260
|
-
};
|
|
261
|
-
export const SystemManagementZodSchema = z.object(SystemManagementSchema);
|
|
140
|
+
export const SystemManagementSchema = createManagementSchemaFromValidators(actionValidators);
|
|
@@ -6,5 +6,5 @@ export declare function systemManagement(context: Context, params: SystemManagem
|
|
|
6
6
|
text: string;
|
|
7
7
|
}[];
|
|
8
8
|
}>;
|
|
9
|
-
export { SystemManagementSchema
|
|
9
|
+
export { SystemManagementSchema } from './schemas.ts';
|
|
10
10
|
export type { SystemManagementParams } from './schemas.ts';
|