@kosdev-code/kos-freestyle-sdk 3.0.20 → 3.0.21
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/{extension-utils-DvWo8Wwj.cjs → extension-utils-BgIVPDP-.cjs} +2 -2
- package/{extension-utils-DvWo8Wwj.cjs.map → extension-utils-BgIVPDP-.cjs.map} +1 -1
- package/{extension-utils-bj0mQLHO.js → extension-utils-Cq7rNoBR.js} +2 -2
- package/{extension-utils-bj0mQLHO.js.map → extension-utils-Cq7rNoBR.js.map} +1 -1
- package/index.cjs +5 -9
- package/index.cjs.map +1 -1
- package/index.js +5 -9
- package/models/utils/openapi-index.d.ts +2 -2
- package/models/utils/openapi-index.d.ts.map +1 -1
- package/models/utils/services/handle/daily/openapi.d.ts +102 -110
- package/models/utils/services/handle/daily/service.d.ts +63 -4
- package/models/utils/services/handle/daily/service.d.ts.map +1 -1
- package/models/utils/services/{freestyle → kos.ext.freestyle}/daily/openapi.d.ts +506 -504
- package/models/utils/services/kos.ext.freestyle/daily/service.d.ts +180 -0
- package/models/utils/services/kos.ext.freestyle/daily/service.d.ts.map +1 -0
- package/models/utils/services-index.d.ts +2 -6
- package/models/utils/services-index.d.ts.map +1 -1
- package/models.cjs +4 -8
- package/models.cjs.map +1 -1
- package/models.js +4 -8
- package/package.json +2 -2
- package/{service-CrLXO3JN.cjs → service-BdkksbW6.cjs} +62 -36
- package/service-BdkksbW6.cjs.map +1 -0
- package/{service-DTTiFLN1.js → service-CbUm_Gcm.js} +62 -36
- package/service-CbUm_Gcm.js.map +1 -0
- package/ui.cjs +1 -1
- package/ui.js +1 -1
- package/{use-nutrition-info-D-mCexBF.js → use-nutrition-info-BI7ksS5l.js} +2 -2
- package/{use-nutrition-info-D-mCexBF.js.map → use-nutrition-info-BI7ksS5l.js.map} +1 -1
- package/{use-nutrition-info-CpEcV_TV.cjs → use-nutrition-info-CuKAenv8.cjs} +2 -2
- package/{use-nutrition-info-CpEcV_TV.cjs.map → use-nutrition-info-CuKAenv8.cjs.map} +1 -1
- package/models/utils/services/freestyle/daily/service.d.ts +0 -121
- package/models/utils/services/freestyle/daily/service.d.ts.map +0 -1
- package/service-CrLXO3JN.cjs.map +0 -1
- package/service-DTTiFLN1.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export interface paths {
|
|
2
|
-
"/api/handle/assembly:core:board:macro:
|
|
2
|
+
"/api/handle/assembly:core:board:macro:iceAgitator:ice/types": {
|
|
3
3
|
parameters: {
|
|
4
4
|
query?: never;
|
|
5
5
|
header?: never;
|
|
6
6
|
path?: never;
|
|
7
7
|
cookie?: never;
|
|
8
8
|
};
|
|
9
|
-
/**
|
|
9
|
+
/** Returns a list of availble ice types (v1.0) */
|
|
10
10
|
get: {
|
|
11
11
|
parameters: {
|
|
12
12
|
query?: never;
|
|
@@ -22,7 +22,7 @@ export interface paths {
|
|
|
22
22
|
[name: string]: unknown;
|
|
23
23
|
};
|
|
24
24
|
content: {
|
|
25
|
-
"application/json": components["schemas"]["
|
|
25
|
+
"application/json": components["schemas"]["39828b9e-3345-484d-a0e1-6ec4e87b667e"];
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
};
|
|
@@ -35,15 +35,17 @@ export interface paths {
|
|
|
35
35
|
patch?: never;
|
|
36
36
|
trace?: never;
|
|
37
37
|
};
|
|
38
|
-
"/api/handle/assembly:core:board:macro:
|
|
38
|
+
"/api/handle/assembly:core:board:macro:iceAgitator:ice/test/agitation": {
|
|
39
39
|
parameters: {
|
|
40
40
|
query?: never;
|
|
41
41
|
header?: never;
|
|
42
42
|
path?: never;
|
|
43
43
|
cookie?: never;
|
|
44
44
|
};
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
get?: never;
|
|
46
|
+
put?: never;
|
|
47
|
+
/** Test the ice agitator by running it for a short duration. (v1.0) */
|
|
48
|
+
post: {
|
|
47
49
|
parameters: {
|
|
48
50
|
query?: never;
|
|
49
51
|
header?: never;
|
|
@@ -57,19 +59,19 @@ export interface paths {
|
|
|
57
59
|
headers: {
|
|
58
60
|
[name: string]: unknown;
|
|
59
61
|
};
|
|
60
|
-
content
|
|
62
|
+
content: {
|
|
63
|
+
"application/json": components["schemas"]["d72bcc25-786e-4cfe-aa6b-ccd9591f0b75"];
|
|
64
|
+
};
|
|
61
65
|
};
|
|
62
66
|
};
|
|
63
67
|
};
|
|
64
|
-
put?: never;
|
|
65
|
-
post?: never;
|
|
66
68
|
delete?: never;
|
|
67
69
|
options?: never;
|
|
68
70
|
head?: never;
|
|
69
71
|
patch?: never;
|
|
70
72
|
trace?: never;
|
|
71
73
|
};
|
|
72
|
-
"/api/handle/assembly:core:board:macro:
|
|
74
|
+
"/api/handle/assembly:core:board:macro:iceAgitator:ice/test/gate": {
|
|
73
75
|
parameters: {
|
|
74
76
|
query?: never;
|
|
75
77
|
header?: never;
|
|
@@ -78,7 +80,7 @@ export interface paths {
|
|
|
78
80
|
};
|
|
79
81
|
get?: never;
|
|
80
82
|
put?: never;
|
|
81
|
-
/**
|
|
83
|
+
/** Test the ice gate by opening it for a short duration. (v1.0) */
|
|
82
84
|
post: {
|
|
83
85
|
parameters: {
|
|
84
86
|
query?: never;
|
|
@@ -94,7 +96,7 @@ export interface paths {
|
|
|
94
96
|
[name: string]: unknown;
|
|
95
97
|
};
|
|
96
98
|
content: {
|
|
97
|
-
"application/json": components["schemas"]["
|
|
99
|
+
"application/json": components["schemas"]["d72bcc25-786e-4cfe-aa6b-ccd9591f0b75"];
|
|
98
100
|
};
|
|
99
101
|
};
|
|
100
102
|
};
|
|
@@ -105,15 +107,17 @@ export interface paths {
|
|
|
105
107
|
patch?: never;
|
|
106
108
|
trace?: never;
|
|
107
109
|
};
|
|
108
|
-
"/api/handle/assembly:core:board:macro:
|
|
110
|
+
"/api/handle/assembly:core:board:macro:iceAgitator:ice/pour": {
|
|
109
111
|
parameters: {
|
|
110
112
|
query?: never;
|
|
111
113
|
header?: never;
|
|
112
114
|
path?: never;
|
|
113
115
|
cookie?: never;
|
|
114
116
|
};
|
|
115
|
-
|
|
116
|
-
|
|
117
|
+
get?: never;
|
|
118
|
+
put?: never;
|
|
119
|
+
/** Dispense ice from the ice chute for the configured max duration. (v1.0) */
|
|
120
|
+
post: {
|
|
117
121
|
parameters: {
|
|
118
122
|
query?: never;
|
|
119
123
|
header?: never;
|
|
@@ -128,32 +132,38 @@ export interface paths {
|
|
|
128
132
|
[name: string]: unknown;
|
|
129
133
|
};
|
|
130
134
|
content: {
|
|
131
|
-
"application/json": components["schemas"]["
|
|
135
|
+
"application/json": components["schemas"]["d72bcc25-786e-4cfe-aa6b-ccd9591f0b75"];
|
|
132
136
|
};
|
|
133
137
|
};
|
|
134
138
|
};
|
|
135
139
|
};
|
|
136
|
-
put?: never;
|
|
137
|
-
post?: never;
|
|
138
140
|
delete?: never;
|
|
139
141
|
options?: never;
|
|
140
142
|
head?: never;
|
|
141
143
|
patch?: never;
|
|
142
144
|
trace?: never;
|
|
143
145
|
};
|
|
144
|
-
"/api/handle/assembly:core:board:macro:iceAgitator:ice/
|
|
146
|
+
"/api/handle/assembly:core:board:macro:iceAgitator:ice/type/{type}": {
|
|
145
147
|
parameters: {
|
|
146
148
|
query?: never;
|
|
147
149
|
header?: never;
|
|
148
150
|
path?: never;
|
|
149
151
|
cookie?: never;
|
|
150
152
|
};
|
|
151
|
-
|
|
152
|
-
|
|
153
|
+
get?: never;
|
|
154
|
+
put?: never;
|
|
155
|
+
/**
|
|
156
|
+
* Set the ice type for this agitator. This will set the type as well as apply
|
|
157
|
+
* all the default settings for that type to the agitator configuration. (v1.0)
|
|
158
|
+
*/
|
|
159
|
+
post: {
|
|
153
160
|
parameters: {
|
|
154
161
|
query?: never;
|
|
155
162
|
header?: never;
|
|
156
|
-
path
|
|
163
|
+
path: {
|
|
164
|
+
/** @description Ice type for the agitator. */
|
|
165
|
+
type: string;
|
|
166
|
+
};
|
|
157
167
|
cookie?: never;
|
|
158
168
|
};
|
|
159
169
|
requestBody?: never;
|
|
@@ -163,31 +173,25 @@ export interface paths {
|
|
|
163
173
|
headers: {
|
|
164
174
|
[name: string]: unknown;
|
|
165
175
|
};
|
|
166
|
-
content
|
|
167
|
-
"application/json": components["schemas"]["5edb62f3-d260-4852-8b8f-f52098ff41b1"];
|
|
168
|
-
};
|
|
176
|
+
content?: never;
|
|
169
177
|
};
|
|
170
178
|
};
|
|
171
179
|
};
|
|
172
|
-
put?: never;
|
|
173
|
-
post?: never;
|
|
174
180
|
delete?: never;
|
|
175
181
|
options?: never;
|
|
176
182
|
head?: never;
|
|
177
183
|
patch?: never;
|
|
178
184
|
trace?: never;
|
|
179
185
|
};
|
|
180
|
-
"/api/handle/assembly:core:board:macro:
|
|
186
|
+
"/api/handle/assembly:core:board:macro:cartridgeAgitator:agit/trackers": {
|
|
181
187
|
parameters: {
|
|
182
188
|
query?: never;
|
|
183
189
|
header?: never;
|
|
184
190
|
path?: never;
|
|
185
191
|
cookie?: never;
|
|
186
192
|
};
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
/** Test the ice agitator by running it for a short duration. (v1.0) */
|
|
190
|
-
post: {
|
|
193
|
+
/** Return tracker state for each holder associted with the agitator. (v1.0) */
|
|
194
|
+
get: {
|
|
191
195
|
parameters: {
|
|
192
196
|
query?: never;
|
|
193
197
|
header?: never;
|
|
@@ -202,28 +206,28 @@ export interface paths {
|
|
|
202
206
|
[name: string]: unknown;
|
|
203
207
|
};
|
|
204
208
|
content: {
|
|
205
|
-
"application/json": components["schemas"]["
|
|
209
|
+
"application/json": components["schemas"]["21b48331-b86e-49a4-bae5-a91a7bd68e35"];
|
|
206
210
|
};
|
|
207
211
|
};
|
|
208
212
|
};
|
|
209
213
|
};
|
|
214
|
+
put?: never;
|
|
215
|
+
post?: never;
|
|
210
216
|
delete?: never;
|
|
211
217
|
options?: never;
|
|
212
218
|
head?: never;
|
|
213
219
|
patch?: never;
|
|
214
220
|
trace?: never;
|
|
215
221
|
};
|
|
216
|
-
"/api/handle/assembly:core:board:macro:
|
|
222
|
+
"/api/handle/assembly:core:board:macro:cartridgeAgitator:agit/trackers/prune": {
|
|
217
223
|
parameters: {
|
|
218
224
|
query?: never;
|
|
219
225
|
header?: never;
|
|
220
226
|
path?: never;
|
|
221
227
|
cookie?: never;
|
|
222
228
|
};
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
/** Test the ice gate by opening it for a short duration. (v1.0) */
|
|
226
|
-
post: {
|
|
229
|
+
/** Prune tracker data that is beyond the retention period. (v1.0) */
|
|
230
|
+
get: {
|
|
227
231
|
parameters: {
|
|
228
232
|
query?: never;
|
|
229
233
|
header?: never;
|
|
@@ -237,19 +241,19 @@ export interface paths {
|
|
|
237
241
|
headers: {
|
|
238
242
|
[name: string]: unknown;
|
|
239
243
|
};
|
|
240
|
-
content
|
|
241
|
-
"application/json": components["schemas"]["cb60ef05-e7d7-4b54-82b9-5a0b3c3b3434"];
|
|
242
|
-
};
|
|
244
|
+
content?: never;
|
|
243
245
|
};
|
|
244
246
|
};
|
|
245
247
|
};
|
|
248
|
+
put?: never;
|
|
249
|
+
post?: never;
|
|
246
250
|
delete?: never;
|
|
247
251
|
options?: never;
|
|
248
252
|
head?: never;
|
|
249
253
|
patch?: never;
|
|
250
254
|
trace?: never;
|
|
251
255
|
};
|
|
252
|
-
"/api/handle/assembly:core:board:macro:
|
|
256
|
+
"/api/handle/assembly:core:board:macro:cartridgeAgitator:agit/test": {
|
|
253
257
|
parameters: {
|
|
254
258
|
query?: never;
|
|
255
259
|
header?: never;
|
|
@@ -258,7 +262,7 @@ export interface paths {
|
|
|
258
262
|
};
|
|
259
263
|
get?: never;
|
|
260
264
|
put?: never;
|
|
261
|
-
/**
|
|
265
|
+
/** Run an agitation test. (v1.0) */
|
|
262
266
|
post: {
|
|
263
267
|
parameters: {
|
|
264
268
|
query?: never;
|
|
@@ -274,7 +278,7 @@ export interface paths {
|
|
|
274
278
|
[name: string]: unknown;
|
|
275
279
|
};
|
|
276
280
|
content: {
|
|
277
|
-
"application/json": components["schemas"]["
|
|
281
|
+
"application/json": components["schemas"]["d72bcc25-786e-4cfe-aa6b-ccd9591f0b75"];
|
|
278
282
|
};
|
|
279
283
|
};
|
|
280
284
|
};
|
|
@@ -285,25 +289,19 @@ export interface paths {
|
|
|
285
289
|
patch?: never;
|
|
286
290
|
trace?: never;
|
|
287
291
|
};
|
|
288
|
-
"/api/handle/assembly:core:board:macro:
|
|
292
|
+
"/api/handle/assembly:core:board:macro:cartridgeAgitator:agit/action": {
|
|
289
293
|
parameters: {
|
|
290
294
|
query?: never;
|
|
291
295
|
header?: never;
|
|
292
296
|
path?: never;
|
|
293
297
|
cookie?: never;
|
|
294
298
|
};
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
/** Set the ice type for this agitator. This will set the type as well as apply
|
|
298
|
-
* all the default settings for that type to the agitator configuration. (v1.0) */
|
|
299
|
-
post: {
|
|
299
|
+
/** Return the currently running agitation action. (v1.0) */
|
|
300
|
+
get: {
|
|
300
301
|
parameters: {
|
|
301
302
|
query?: never;
|
|
302
303
|
header?: never;
|
|
303
|
-
path
|
|
304
|
-
/** @description Ice type for the agitator. */
|
|
305
|
-
type: string;
|
|
306
|
-
};
|
|
304
|
+
path?: never;
|
|
307
305
|
cookie?: never;
|
|
308
306
|
};
|
|
309
307
|
requestBody?: never;
|
|
@@ -313,10 +311,14 @@ export interface paths {
|
|
|
313
311
|
headers: {
|
|
314
312
|
[name: string]: unknown;
|
|
315
313
|
};
|
|
316
|
-
content
|
|
314
|
+
content: {
|
|
315
|
+
"application/json": components["schemas"]["fdfbaa4d-5b93-4610-943e-e87fb52fc50e"];
|
|
316
|
+
};
|
|
317
317
|
};
|
|
318
318
|
};
|
|
319
319
|
};
|
|
320
|
+
put?: never;
|
|
321
|
+
post?: never;
|
|
320
322
|
delete?: never;
|
|
321
323
|
options?: never;
|
|
322
324
|
head?: never;
|
|
@@ -327,33 +329,69 @@ export interface paths {
|
|
|
327
329
|
export type webhooks = Record<string, never>;
|
|
328
330
|
export interface components {
|
|
329
331
|
schemas: {
|
|
332
|
+
"39828b9e-3345-484d-a0e1-6ec4e87b667e": string[];
|
|
333
|
+
"d72bcc25-786e-4cfe-aa6b-ccd9591f0b75": {
|
|
334
|
+
reason?: string;
|
|
335
|
+
note?: string;
|
|
336
|
+
/** @description (typeName=com.kosdev.kos.commons.util.ReasonData) */
|
|
337
|
+
reasonData?: components["schemas"]["36b7150d-aafa-4f88-9feb-8ba47b4778ee"];
|
|
338
|
+
/** @description (typeName=com.kosdev.kos.commons.util.concurrent.future.FutureWork) */
|
|
339
|
+
rootFuture?: components["schemas"]["d72bcc25-786e-4cfe-aa6b-ccd9591f0b75"];
|
|
340
|
+
tracker?: string;
|
|
341
|
+
/** Format: int64 */
|
|
342
|
+
remainingTimeMs?: number;
|
|
343
|
+
name?: string;
|
|
344
|
+
/** Format: int32 */
|
|
345
|
+
progress?: number;
|
|
346
|
+
/** @description (typeName=java.util.Map<java.lang.String, com.kosdev.kos.commons.util.json.JsonViewWrapper>) */
|
|
347
|
+
clientAttributes?: components["schemas"]["00bfb95a-1677-4a31-b1ed-b229a2cd257b"];
|
|
348
|
+
/** Format: int32 */
|
|
349
|
+
id?: number;
|
|
350
|
+
/** Format: int32 */
|
|
351
|
+
abortAbandonedTimeoutMs?: number;
|
|
352
|
+
/** @description (typeName=com.kosdev.kos.commons.util.json.JsonViewWrapper) */
|
|
353
|
+
clientData?: components["schemas"]["7ce965e4-1283-4832-b758-ddff1e1c45c3"];
|
|
354
|
+
};
|
|
355
|
+
"36b7150d-aafa-4f88-9feb-8ba47b4778ee": {
|
|
356
|
+
/** @description (typeName=java.lang.Class<?>) */
|
|
357
|
+
view?: components["schemas"]["6a79c1a3-037d-4bf4-b0ce-b1b5bdbb7a79"];
|
|
358
|
+
data?: Record<string, never>;
|
|
359
|
+
};
|
|
360
|
+
"6a79c1a3-037d-4bf4-b0ce-b1b5bdbb7a79": unknown;
|
|
361
|
+
/** @description (typeName=com.kosdev.kos.commons.util.json.JsonViewWrapper) */
|
|
362
|
+
"00bfb95a-1677-4a31-b1ed-b229a2cd257b": components["schemas"]["7ce965e4-1283-4832-b758-ddff1e1c45c3"];
|
|
363
|
+
"7ce965e4-1283-4832-b758-ddff1e1c45c3": {
|
|
364
|
+
/** @description (typeName=java.lang.Class<?>) */
|
|
365
|
+
view?: components["schemas"]["6a79c1a3-037d-4bf4-b0ce-b1b5bdbb7a79"];
|
|
366
|
+
data?: Record<string, never>;
|
|
367
|
+
};
|
|
330
368
|
/** @description (typeName=com.tccc.kos.ext.freestyle.service.cartridgeagitation.AgitationTracker) */
|
|
331
|
-
"
|
|
332
|
-
"
|
|
369
|
+
"21b48331-b86e-49a4-bae5-a91a7bd68e35": components["schemas"]["389070a3-4f74-4b30-a65c-84c688878780"];
|
|
370
|
+
"389070a3-4f74-4b30-a65c-84c688878780": {
|
|
333
371
|
/** @description (typeName=com.tccc.kos.ext.freestyle.service.cartridgeagitation.AgitationAction) */
|
|
334
|
-
action?: components["schemas"]["
|
|
372
|
+
action?: components["schemas"]["fdfbaa4d-5b93-4610-943e-e87fb52fc50e"];
|
|
335
373
|
/** Format: int32 */
|
|
336
374
|
state?: number;
|
|
337
375
|
/** @description (typeName=java.util.List<com.tccc.kos.ext.freestyle.service.cartridgeagitation.Agitation>) */
|
|
338
|
-
agitations?: components["schemas"]["
|
|
376
|
+
agitations?: components["schemas"]["d20757ef-6df3-4137-9cfa-8b905c43e138"];
|
|
339
377
|
};
|
|
340
|
-
"
|
|
378
|
+
"fdfbaa4d-5b93-4610-943e-e87fb52fc50e": {
|
|
341
379
|
/** Format: int32 */
|
|
342
380
|
delayMs?: number;
|
|
343
381
|
holderPath?: string;
|
|
344
382
|
/** Format: int32 */
|
|
345
383
|
state?: number;
|
|
346
384
|
/** @description (typeName=com.tccc.kos.ext.freestyle.service.cartridgeagitation.AgitationAction$Type) */
|
|
347
|
-
type?: components["schemas"]["
|
|
385
|
+
type?: components["schemas"]["d9c8d0f8-471d-40cc-bc8c-de19e49bedf7"];
|
|
348
386
|
containerId?: string;
|
|
349
387
|
/** Format: int32 */
|
|
350
388
|
durationMs?: number;
|
|
351
389
|
/** Format: int32 */
|
|
352
390
|
rpm?: number;
|
|
353
391
|
};
|
|
354
|
-
"
|
|
355
|
-
"
|
|
356
|
-
"
|
|
392
|
+
"d9c8d0f8-471d-40cc-bc8c-de19e49bedf7": unknown;
|
|
393
|
+
"d20757ef-6df3-4137-9cfa-8b905c43e138": components["schemas"]["117b7114-663a-4c7e-88b6-d42b5d64ef2c"][];
|
|
394
|
+
"117b7114-663a-4c7e-88b6-d42b5d64ef2c": {
|
|
357
395
|
/** Format: int32 */
|
|
358
396
|
duration?: number;
|
|
359
397
|
/** Format: int64 */
|
|
@@ -363,52 +401,6 @@ export interface components {
|
|
|
363
401
|
/** Format: int64 */
|
|
364
402
|
endTime?: number;
|
|
365
403
|
};
|
|
366
|
-
"cb60ef05-e7d7-4b54-82b9-5a0b3c3b3434": {
|
|
367
|
-
reason?: string;
|
|
368
|
-
note?: string;
|
|
369
|
-
/** @description (typeName=com.tccc.kos.commons.util.ReasonData) */
|
|
370
|
-
reasonData?: components["schemas"]["6d6cb74c-cb5c-403f-bc38-4922b29c10ca"];
|
|
371
|
-
/** @description (typeName=com.tccc.kos.commons.util.concurrent.future.FutureWork) */
|
|
372
|
-
rootFuture?: components["schemas"]["cb60ef05-e7d7-4b54-82b9-5a0b3c3b3434"];
|
|
373
|
-
/** @description (typeName=com.tccc.kos.commons.util.concurrent.future.FutureState) */
|
|
374
|
-
endState?: components["schemas"]["4eb9cc02-cf23-4bb3-80b7-ec62b4b879b8"];
|
|
375
|
-
tracker?: string;
|
|
376
|
-
/** Format: int64 */
|
|
377
|
-
remainingTimeMs?: number;
|
|
378
|
-
name?: string;
|
|
379
|
-
/** Format: int32 */
|
|
380
|
-
progress?: number;
|
|
381
|
-
/** Format: int32 */
|
|
382
|
-
id?: number;
|
|
383
|
-
/** Format: int32 */
|
|
384
|
-
abortAbandonedTimeoutMs?: number;
|
|
385
|
-
/** @description (typeName=com.tccc.kos.commons.util.json.JsonViewWrapper) */
|
|
386
|
-
clientData?: components["schemas"]["9f7586c7-f377-469a-9755-c4b116de94db"];
|
|
387
|
-
};
|
|
388
|
-
"6d6cb74c-cb5c-403f-bc38-4922b29c10ca": {
|
|
389
|
-
/** @description (typeName=java.lang.Class<?>) */
|
|
390
|
-
view?: components["schemas"]["8d9c737d-f67d-4dba-94c6-64af5f9ae802"];
|
|
391
|
-
data?: Record<string, never>;
|
|
392
|
-
};
|
|
393
|
-
"8d9c737d-f67d-4dba-94c6-64af5f9ae802": unknown;
|
|
394
|
-
"4eb9cc02-cf23-4bb3-80b7-ec62b4b879b8": {
|
|
395
|
-
cancel?: boolean;
|
|
396
|
-
fail?: boolean;
|
|
397
|
-
abort?: boolean;
|
|
398
|
-
success?: boolean;
|
|
399
|
-
unsuccess?: boolean;
|
|
400
|
-
/** @description (typeName=com.tccc.kos.commons.util.concurrent.future.FutureEvent) */
|
|
401
|
-
futureEvent?: components["schemas"]["4ae3e943-99c9-4018-ae75-38d3e21686e6"];
|
|
402
|
-
terminate?: boolean;
|
|
403
|
-
done?: boolean;
|
|
404
|
-
};
|
|
405
|
-
"4ae3e943-99c9-4018-ae75-38d3e21686e6": unknown;
|
|
406
|
-
"9f7586c7-f377-469a-9755-c4b116de94db": {
|
|
407
|
-
/** @description (typeName=java.lang.Class<?>) */
|
|
408
|
-
view?: components["schemas"]["8d9c737d-f67d-4dba-94c6-64af5f9ae802"];
|
|
409
|
-
data?: Record<string, never>;
|
|
410
|
-
};
|
|
411
|
-
"5edb62f3-d260-4852-8b8f-f52098ff41b1": string[];
|
|
412
404
|
};
|
|
413
405
|
responses: never;
|
|
414
406
|
parameters: never;
|
|
@@ -6,14 +6,20 @@ import { paths } from './openapi';
|
|
|
6
6
|
export type Api = paths;
|
|
7
7
|
export type ApiPath = keyof paths;
|
|
8
8
|
export type ValidPaths = PathsByMethod<paths>;
|
|
9
|
+
/**
|
|
10
|
+
* Methods a response type can be derived for — the lowercase subset of
|
|
11
|
+
* HttpMethod. The uppercase spellings HttpMethod also permits do not match the
|
|
12
|
+
* keys of an OpenAPI `paths` object, so they would silently yield `unknown`.
|
|
13
|
+
*/
|
|
14
|
+
export type SupportedMethod = "get" | "post" | "put" | "delete" | "patch";
|
|
9
15
|
/**
|
|
10
16
|
* Get client response type for handle API
|
|
11
17
|
*/
|
|
12
|
-
export type ApiResponse<Path extends ApiPath, Method extends
|
|
18
|
+
export type ApiResponse<Path extends ApiPath, Method extends SupportedMethod = "get"> = ClientResponse<paths, Path, Method>;
|
|
13
19
|
/**
|
|
14
20
|
* Get execution context type for handle API
|
|
15
21
|
*/
|
|
16
|
-
export type ExecutionContext<Path extends ApiPath = ApiPath, Method extends HttpMethod = "get"
|
|
22
|
+
export type ExecutionContext<Path extends ApiPath = ApiPath, Method extends HttpMethod = "get", Transformed = ApiResponse<Path, SupportedMethod & Method>> = KosExecutionContext<paths, Path, Method, Transformed>;
|
|
17
23
|
/**
|
|
18
24
|
* Typed decorator factory for @kosServiceRequest with handle API types
|
|
19
25
|
*
|
|
@@ -36,11 +42,64 @@ export type ExecutionContext<Path extends ApiPath = ApiPath, Method extends Http
|
|
|
36
42
|
* ```
|
|
37
43
|
*/
|
|
38
44
|
export declare function kosServiceRequest<Path extends ApiPath, Method extends HttpMethod = "get", Response = any, TransformedResponse = Response>(params: IKosServiceRequestParams<paths, Path, Method, Response, TransformedResponse>): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
45
|
+
/**
|
|
46
|
+
* One endpoint of the handle API: a path and the method it is called with.
|
|
47
|
+
*/
|
|
48
|
+
export interface Endpoint {
|
|
49
|
+
path: ApiPath;
|
|
50
|
+
method: SupportedMethod;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Declare an endpoint once. The decorator config, the execution context type
|
|
54
|
+
* and the response type are all derived from the result, so a path string is
|
|
55
|
+
* never restated — and never drifts between the three.
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```typescript
|
|
59
|
+
* export const BoardApi = {
|
|
60
|
+
* list: endpoint("/api/board", "get"),
|
|
61
|
+
* update: endpoint("/api/board/{id}", "put"),
|
|
62
|
+
* } as const;
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function endpoint<Path extends ApiPath, Method extends SupportedMethod>(path: Path, method: Method): {
|
|
66
|
+
readonly path: Path;
|
|
67
|
+
readonly method: Method;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Execution context for an endpoint — the method-driven `$ctx` parameter type.
|
|
71
|
+
* Pass `Transformed` when the decorator declares a `transform`, so what the
|
|
72
|
+
* method receives is typed as the mapper's output rather than the raw response.
|
|
73
|
+
*/
|
|
74
|
+
export type EndpointCtx<E extends Endpoint, Transformed = EndpointResponse<E>> = ExecutionContext<E["path"], E["method"], Transformed>;
|
|
75
|
+
/** Response body type for an endpoint. */
|
|
76
|
+
export type EndpointResponse<E extends Endpoint> = ApiResponse<E["path"], E["method"]>;
|
|
77
|
+
/**
|
|
78
|
+
* @kosServiceRequest preconfigured from an endpoint descriptor, defaulting to
|
|
79
|
+
* log-and-continue error handling. Pass overrides (lifecycle, errorHandler,
|
|
80
|
+
* cache, …) as the second argument.
|
|
81
|
+
*
|
|
82
|
+
* A `transform` narrows what the model receives: its return type becomes the
|
|
83
|
+
* handler's data type, so the raw response shape stops at the mapper.
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```typescript
|
|
87
|
+
* @serviceRequest(BoardApi.update)
|
|
88
|
+
* async renameBoard(name: string, $ctx?: EndpointCtx<typeof BoardApi.update>) {
|
|
89
|
+
* const data = await executeServiceRequest(this, $ctx, {
|
|
90
|
+
* pathParams: { id: this.id },
|
|
91
|
+
* body: { name },
|
|
92
|
+
* });
|
|
93
|
+
* if (!data) return;
|
|
94
|
+
* }
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
export declare function serviceRequest<E extends Endpoint, Transformed = EndpointResponse<E>>(ep: E, opts?: Partial<IKosServiceRequestParams<paths, E["path"], E["method"], EndpointResponse<E>, Transformed>>): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
39
98
|
/**
|
|
40
99
|
* Create an API client for handle
|
|
41
100
|
*/
|
|
42
101
|
export declare const api: {
|
|
43
|
-
get: <K extends "/api/handle/assembly:core:board:macro:
|
|
102
|
+
get: <K extends "/api/handle/assembly:core:board:macro:iceAgitator:ice/types" | "/api/handle/assembly:core:board:macro:cartridgeAgitator:agit/trackers" | "/api/handle/assembly:core:board:macro:cartridgeAgitator:agit/trackers/prune" | "/api/handle/assembly:core:board:macro:cartridgeAgitator:agit/action">(endpoint: K, params?: (paths[K]["get"] extends {
|
|
44
103
|
parameters: infer P;
|
|
45
104
|
} ? P : never) | undefined, options?: {
|
|
46
105
|
ordered?: boolean | undefined;
|
|
@@ -56,7 +115,7 @@ export declare const api: {
|
|
|
56
115
|
responseType?: "text" | "json" | "arraybuffer" | "blob" | undefined;
|
|
57
116
|
retry?: (boolean | import('@kosdev-code/kos-ui-sdk').RetryConfig) | undefined;
|
|
58
117
|
}) => Promise<import('@kosdev-code/kos-ui-sdk').ServiceResponse<ClientResponse<paths, K, "get">>>;
|
|
59
|
-
post: <K extends "/api/handle/assembly:core:board:macro:
|
|
118
|
+
post: <K extends "/api/handle/assembly:core:board:macro:iceAgitator:ice/test/agitation" | "/api/handle/assembly:core:board:macro:iceAgitator:ice/test/gate" | "/api/handle/assembly:core:board:macro:iceAgitator:ice/pour" | "/api/handle/assembly:core:board:macro:iceAgitator:ice/type/{type}" | "/api/handle/assembly:core:board:macro:cartridgeAgitator:agit/test">(endpoint: K, params?: (paths[K]["post"] extends {
|
|
60
119
|
parameters: infer P;
|
|
61
120
|
} ? P : never) | undefined, body?: (paths[K]["post"] extends {
|
|
62
121
|
requestBody: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/kos-freestyle-sdk/src/models/utils/services/handle/daily/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,aAAa,EACnB,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,GAAG,GAAG,KAAK,CAAC;AACxB,MAAM,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC;AAClC,MAAM,MAAM,UAAU,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,WAAW,CACrB,IAAI,SAAS,OAAO,EACpB,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/kos-freestyle-sdk/src/models/utils/services/handle/daily/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,aAAa,EACnB,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,GAAG,GAAG,KAAK,CAAC;AACxB,MAAM,MAAM,OAAO,GAAG,MAAM,KAAK,CAAC;AAClC,MAAM,MAAM,UAAU,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;AAE9C;;;;GAIG;AACH,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,CAAC;AAE1E;;GAEG;AACH,MAAM,MAAM,WAAW,CACrB,IAAI,SAAS,OAAO,EACpB,MAAM,SAAS,eAAe,GAAG,KAAK,IACpC,cAAc,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,gBAAgB,CAC1B,IAAI,SAAS,OAAO,GAAG,OAAO,EAC9B,MAAM,SAAS,UAAU,GAAG,KAAK,EACjC,WAAW,GAAG,WAAW,CAAC,IAAI,EAAE,eAAe,GAAG,MAAM,CAAC,IACvD,mBAAmB,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;AAE1D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,SAAS,OAAO,EACpB,MAAM,SAAS,UAAU,GAAG,KAAK,EACjC,QAAQ,GAAG,GAAG,EACd,mBAAmB,GAAG,QAAQ,EAE9B,MAAM,EAAE,wBAAwB,CAC9B,KAAK,EACL,IAAI,EACJ,MAAM,EACN,QAAQ,EACR,mBAAmB,CACpB,4FASF;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,OAAO,CAAC;IACd,MAAM,EAAE,eAAe,CAAC;CACzB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,QAAQ,CAAC,IAAI,SAAS,OAAO,EAAE,MAAM,SAAS,eAAe,EAC3E,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,MAAM;;;EAGf;AAED;;;;GAIG;AACH,MAAM,MAAM,WAAW,CACrB,CAAC,SAAS,QAAQ,EAClB,WAAW,GAAG,gBAAgB,CAAC,CAAC,CAAC,IAC/B,gBAAgB,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,EAAE,WAAW,CAAC,CAAC;AAE1D,0CAA0C;AAC1C,MAAM,MAAM,gBAAgB,CAAC,CAAC,SAAS,QAAQ,IAAI,WAAW,CAC5D,CAAC,CAAC,MAAM,CAAC,EACT,CAAC,CAAC,QAAQ,CAAC,CACZ,CAAC;AAEF;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,cAAc,CAC5B,CAAC,SAAS,QAAQ,EAClB,WAAW,GAAG,gBAAgB,CAAC,CAAC,CAAC,EAEjC,EAAE,EAAE,CAAC,EACL,IAAI,CAAC,EAAE,OAAO,CACZ,wBAAwB,CACtB,KAAK,EACL,CAAC,CAAC,MAAM,CAAC,EACT,CAAC,CAAC,QAAQ,CAAC,EACX,gBAAgB,CAAC,CAAC,CAAC,EACnB,WAAW,CACZ,CACF,4FAaF;AAED;;GAEG;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwB,CAAC;AAEzC,eAAe,GAAG,CAAC"}
|