@kosdev-code/kos-freestyle-sdk 3.0.21 → 3.0.23
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-Cq7rNoBR.js → extension-utils-BJAnNxer.js} +2 -2
- package/{extension-utils-Cq7rNoBR.js.map → extension-utils-BJAnNxer.js.map} +1 -1
- package/{extension-utils-BgIVPDP-.cjs → extension-utils-oabjo9KD.cjs} +2 -2
- package/{extension-utils-BgIVPDP-.cjs.map → extension-utils-oabjo9KD.cjs.map} +1 -1
- package/index.cjs +3 -3
- package/index.js +3 -3
- package/models/utils/openapi-index.d.ts +1 -1
- package/models/utils/openapi-index.d.ts.map +1 -1
- package/models/utils/services/{kos.ext.freestyle → freestyle}/daily/openapi.d.ts +516 -516
- package/models/utils/services/{kos.ext.freestyle → freestyle}/daily/service.d.ts +43 -11
- package/models/utils/services/freestyle/daily/service.d.ts.map +1 -0
- package/models/utils/services/handle/daily/openapi.d.ts +28 -28
- package/models/utils/services/handle/daily/service.d.ts +32 -0
- package/models/utils/services/handle/daily/service.d.ts.map +1 -1
- package/models/utils/services-index.d.ts +1 -1
- package/models/utils/services-index.d.ts.map +1 -1
- package/models.cjs +2 -2
- package/models.js +2 -2
- package/package.json +2 -2
- package/{service-BdkksbW6.cjs → service-D4aX0z2P.cjs} +52 -34
- package/service-D4aX0z2P.cjs.map +1 -0
- package/{service-CbUm_Gcm.js → service-eFbVjaFu.js} +52 -34
- package/service-eFbVjaFu.js.map +1 -0
- package/ui.cjs +1 -1
- package/ui.js +1 -1
- package/{use-nutrition-info-BI7ksS5l.js → use-nutrition-info-DaIOuGK6.js} +2 -2
- package/{use-nutrition-info-BI7ksS5l.js.map → use-nutrition-info-DaIOuGK6.js.map} +1 -1
- package/{use-nutrition-info-CuKAenv8.cjs → use-nutrition-info-aDjHqQeW.cjs} +2 -2
- package/{use-nutrition-info-CuKAenv8.cjs.map → use-nutrition-info-aDjHqQeW.cjs.map} +1 -1
- package/models/utils/services/kos.ext.freestyle/daily/service.d.ts.map +0 -1
- package/service-BdkksbW6.cjs.map +0 -1
- package/service-CbUm_Gcm.js.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ClientResponse, HttpMethod, IKosServiceRequestParams, KosExecutionContext, PathsByMethod } from '@kosdev-code/kos-ui-sdk';
|
|
2
2
|
import { paths } from './openapi';
|
|
3
3
|
/**
|
|
4
|
-
* Type aliases for
|
|
4
|
+
* Type aliases for freestyle API
|
|
5
5
|
*/
|
|
6
6
|
export type Api = paths;
|
|
7
7
|
export type ApiPath = keyof paths;
|
|
@@ -13,22 +13,22 @@ export type ValidPaths = PathsByMethod<paths>;
|
|
|
13
13
|
*/
|
|
14
14
|
export type SupportedMethod = "get" | "post" | "put" | "delete" | "patch";
|
|
15
15
|
/**
|
|
16
|
-
* Get client response type for
|
|
16
|
+
* Get client response type for freestyle API
|
|
17
17
|
*/
|
|
18
18
|
export type ApiResponse<Path extends ApiPath, Method extends SupportedMethod = "get"> = ClientResponse<paths, Path, Method>;
|
|
19
19
|
/**
|
|
20
|
-
* Get execution context type for
|
|
20
|
+
* Get execution context type for freestyle API
|
|
21
21
|
*/
|
|
22
22
|
export type ExecutionContext<Path extends ApiPath = ApiPath, Method extends HttpMethod = "get", Transformed = ApiResponse<Path, SupportedMethod & Method>> = KosExecutionContext<paths, Path, Method, Transformed>;
|
|
23
23
|
/**
|
|
24
|
-
* Typed decorator factory for @kosServiceRequest with
|
|
24
|
+
* Typed decorator factory for @kosServiceRequest with freestyle API types
|
|
25
25
|
*
|
|
26
26
|
* Provides full IntelliSense and type safety for path, query params, and body
|
|
27
|
-
* based on the
|
|
27
|
+
* based on the freestyle OpenAPI schema.
|
|
28
28
|
*
|
|
29
29
|
* @example
|
|
30
30
|
* ```typescript
|
|
31
|
-
* import { kosServiceRequest } from '../../utils/services/
|
|
31
|
+
* import { kosServiceRequest } from '../../utils/services/freestyle/daily/service';
|
|
32
32
|
* import { DependencyLifecycle } from '@kosdev-code/kos-ui-sdk';
|
|
33
33
|
*
|
|
34
34
|
* @kosServiceRequest({
|
|
@@ -37,13 +37,13 @@ export type ExecutionContext<Path extends ApiPath = ApiPath, Method extends Http
|
|
|
37
37
|
* lifecycle: DependencyLifecycle.LOAD
|
|
38
38
|
* })
|
|
39
39
|
* private onDataLoaded(): void {
|
|
40
|
-
* // Fully typed based on
|
|
40
|
+
* // Fully typed based on freestyle API
|
|
41
41
|
* }
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
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
45
|
/**
|
|
46
|
-
* One endpoint of the
|
|
46
|
+
* One endpoint of the freestyle API: a path and the method it is called with.
|
|
47
47
|
*/
|
|
48
48
|
export interface Endpoint {
|
|
49
49
|
path: ApiPath;
|
|
@@ -96,10 +96,42 @@ export type EndpointResponse<E extends Endpoint> = ApiResponse<E["path"], E["met
|
|
|
96
96
|
*/
|
|
97
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;
|
|
98
98
|
/**
|
|
99
|
-
*
|
|
99
|
+
* `serviceRequest` for an endpoint the generated types do not declare yet.
|
|
100
|
+
*
|
|
101
|
+
* There is no `paths` entry to derive anything from, so the response shape is
|
|
102
|
+
* supplied by hand instead: `Raw` is what the backend is expected to serve (the
|
|
103
|
+
* UNWRAPPED `data` payload — the client strips the `{status, data}` envelope
|
|
104
|
+
* before `transform` runs) and `Transformed` is what `transform` returns. Path
|
|
105
|
+
* and query params are untyped for the same reason.
|
|
106
|
+
*
|
|
107
|
+
* Every use is a debt, and the name is there to be grepped. When the endpoint
|
|
108
|
+
* lands: re-run `api:generate`, drop the `as ApiPath` cast on its `endpoint(...)`
|
|
109
|
+
* entry, point the raw type at `EndpointResponse<...>`, and switch back to
|
|
110
|
+
* `serviceRequest`. The transform survives all of it unchanged.
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* ```typescript
|
|
114
|
+
* export const BoardApi = {
|
|
115
|
+
* // PROVISIONAL — no /api/board/grants in the generated types yet.
|
|
116
|
+
* loadGrants: endpoint("/api/board/grants" as ApiPath, "get"),
|
|
117
|
+
* } as const;
|
|
118
|
+
*
|
|
119
|
+
* @provisionalServiceRequest<GrantBean[], Grant[]>(BoardApi.loadGrants, {
|
|
120
|
+
* lifecycle: DependencyLifecycle.LOAD,
|
|
121
|
+
* transform: toGrants,
|
|
122
|
+
* })
|
|
123
|
+
* onGrantsLoaded(error: string | null, grants: Grant[]) {}
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
126
|
+
export declare function provisionalServiceRequest<Raw, Transformed = Raw>(ep: {
|
|
127
|
+
readonly path: string;
|
|
128
|
+
readonly method: string;
|
|
129
|
+
}, opts?: Partial<IKosServiceRequestParams<Record<string, any>, string, HttpMethod, Raw, Transformed>>): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
130
|
+
/**
|
|
131
|
+
* Create an API client for freestyle
|
|
100
132
|
*/
|
|
101
133
|
export declare const api: {
|
|
102
|
-
get: <K extends "/api/ext/
|
|
134
|
+
get: <K extends "/api/ext/freestyle/can/read/float/{boardPath}/{index}/{subIndex}" | "/api/ext/freestyle/can/read/int/{boardPath}/{index}/{subIndex}" | "/api/ext/freestyle/can/stats" | "/api/ext/freestyle/can/stats/raw" | "/api/ext/freestyle/microCalibration/report/{board}" | "/api/ext/freestyle/microCalibration/history/{pump}" | "/api/ext/freestyle/microCalibration/cal/{pump}" | "/api/ext/freestyle/brandset/nutrition/{bevId}" | "/api/ext/freestyle/brandset/grantProperties" | "/api/ext/freestyle/fcm/calibration/{pump}/baseline" | "/api/ext/freestyle/fuelGauges/{holder}" | "/api/ext/freestyle/cartridges" | "/api/ext/freestyle/cartridges/{id}" | "/api/ext/freestyle/studio/rfid/blanks" | "/api/ext/freestyle/studio/rfid/tags">(endpoint: K, params?: (paths[K]["get"] extends {
|
|
103
135
|
parameters: infer P;
|
|
104
136
|
} ? P : never) | undefined, options?: {
|
|
105
137
|
ordered?: boolean | undefined;
|
|
@@ -115,7 +147,7 @@ export declare const api: {
|
|
|
115
147
|
responseType?: "text" | "json" | "arraybuffer" | "blob" | undefined;
|
|
116
148
|
retry?: (boolean | import('@kosdev-code/kos-ui-sdk').RetryConfig) | undefined;
|
|
117
149
|
}) => Promise<import('@kosdev-code/kos-ui-sdk').ServiceResponse<ClientResponse<paths, K, "get">>>;
|
|
118
|
-
post: <K extends "/api/ext/
|
|
150
|
+
post: <K extends "/api/ext/freestyle/can/stats" | "/api/ext/freestyle/can/write/byte/{boardPath}/{index}/{subIndex}/{val}" | "/api/ext/freestyle/can/write/short/{boardPath}/{index}/{subIndex}/{val}" | "/api/ext/freestyle/can/write/float/{boardPath}/{index}/{subIndex}/{val}" | "/api/ext/freestyle/can/write/int/{boardPath}/{index}/{subIndex}/{val}" | "/api/ext/freestyle/fcm/diagnostics/{pump}/pressureTest" | "/api/ext/freestyle/fcm/diagnostics/{pump}/opennessTest" | "/api/ext/freestyle/fcm/diagnostics/{pump}/flowTest" | "/api/ext/freestyle/fcm/diagnostics/{pump}/electricalTest" | "/api/ext/freestyle/microCalibration/cal/{pump}/running/{val}" | "/api/ext/freestyle/microCalibration/cal/{pump}/code/{code}" | "/api/ext/freestyle/microCalibration/cal/{pump}/baseline/{val}" | "/api/ext/freestyle/microCalibration/cal/{pump}/both/{val}" | "/api/ext/freestyle/brandset/grantProperties" | "/api/ext/freestyle/fcm/calibration/{pump}/calibrate" | "/api/ext/freestyle/fcm/calibration/{pump}/preCalibrate" | "/api/ext/freestyle/fcm/calibration/{pump}/verify/{calVolume}" | "/api/ext/freestyle/fcm/calibration/{pump}/baseline/{value}" | "/api/ext/freestyle/fcm/calibration/{pump}/complete/{calVolume}/{verifyVolume}" | "/api/ext/freestyle/microCalibration/pour/{pump}/calibrate" | "/api/ext/freestyle/microCalibration/pour/{pump}/preCalibrate" | "/api/ext/freestyle/microCalibration/pour/{pump}/verify" | "/api/ext/freestyle/microCalibration/pour/{pump}/complete" | "/api/ext/freestyle/fuelGauges/{holder}/{val}" | "/api/ext/freestyle/studio/rfid/update/{holder}" | "/api/ext/freestyle/studio/rfid/initialize/{holder}">(endpoint: K, params?: (paths[K]["post"] extends {
|
|
119
151
|
parameters: infer P;
|
|
120
152
|
} ? P : never) | undefined, body?: (paths[K]["post"] extends {
|
|
121
153
|
requestBody: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/kos-freestyle-sdk/src/models/utils/services/freestyle/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,CA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ClB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,WAAW,GAAG,GAAG,EAC9D,EAAE,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,EACtD,IAAI,CAAC,EAAE,OAAO,CACZ,wBAAwB,CACtB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EACnB,MAAM,EACN,UAAU,EACV,GAAG,EACH,WAAW,CACZ,CACF,4FAcF;AAED;;GAEG;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwB,CAAC;AAEzC,eAAe,GAAG,CAAC"}
|
|
@@ -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"]["e6dbca22-ae4e-4544-a474-a3640a0b4b80"];
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
};
|
|
@@ -60,7 +60,7 @@ export interface paths {
|
|
|
60
60
|
[name: string]: unknown;
|
|
61
61
|
};
|
|
62
62
|
content: {
|
|
63
|
-
"application/json": components["schemas"]["
|
|
63
|
+
"application/json": components["schemas"]["c696049c-492c-45eb-bf0e-c0711a5d4636"];
|
|
64
64
|
};
|
|
65
65
|
};
|
|
66
66
|
};
|
|
@@ -96,7 +96,7 @@ export interface paths {
|
|
|
96
96
|
[name: string]: unknown;
|
|
97
97
|
};
|
|
98
98
|
content: {
|
|
99
|
-
"application/json": components["schemas"]["
|
|
99
|
+
"application/json": components["schemas"]["c696049c-492c-45eb-bf0e-c0711a5d4636"];
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
102
|
};
|
|
@@ -132,7 +132,7 @@ export interface paths {
|
|
|
132
132
|
[name: string]: unknown;
|
|
133
133
|
};
|
|
134
134
|
content: {
|
|
135
|
-
"application/json": components["schemas"]["
|
|
135
|
+
"application/json": components["schemas"]["c696049c-492c-45eb-bf0e-c0711a5d4636"];
|
|
136
136
|
};
|
|
137
137
|
};
|
|
138
138
|
};
|
|
@@ -206,7 +206,7 @@ export interface paths {
|
|
|
206
206
|
[name: string]: unknown;
|
|
207
207
|
};
|
|
208
208
|
content: {
|
|
209
|
-
"application/json": components["schemas"]["
|
|
209
|
+
"application/json": components["schemas"]["fbf3a7bf-d3a5-4bdb-9bc2-6565f61fef04"];
|
|
210
210
|
};
|
|
211
211
|
};
|
|
212
212
|
};
|
|
@@ -278,7 +278,7 @@ export interface paths {
|
|
|
278
278
|
[name: string]: unknown;
|
|
279
279
|
};
|
|
280
280
|
content: {
|
|
281
|
-
"application/json": components["schemas"]["
|
|
281
|
+
"application/json": components["schemas"]["c696049c-492c-45eb-bf0e-c0711a5d4636"];
|
|
282
282
|
};
|
|
283
283
|
};
|
|
284
284
|
};
|
|
@@ -312,7 +312,7 @@ export interface paths {
|
|
|
312
312
|
[name: string]: unknown;
|
|
313
313
|
};
|
|
314
314
|
content: {
|
|
315
|
-
"application/json": components["schemas"]["
|
|
315
|
+
"application/json": components["schemas"]["af6b2491-abc1-49f3-b75c-9a28b8d91e33"];
|
|
316
316
|
};
|
|
317
317
|
};
|
|
318
318
|
};
|
|
@@ -329,14 +329,14 @@ export interface paths {
|
|
|
329
329
|
export type webhooks = Record<string, never>;
|
|
330
330
|
export interface components {
|
|
331
331
|
schemas: {
|
|
332
|
-
"
|
|
333
|
-
"
|
|
332
|
+
"e6dbca22-ae4e-4544-a474-a3640a0b4b80": string[];
|
|
333
|
+
"c696049c-492c-45eb-bf0e-c0711a5d4636": {
|
|
334
334
|
reason?: string;
|
|
335
335
|
note?: string;
|
|
336
336
|
/** @description (typeName=com.kosdev.kos.commons.util.ReasonData) */
|
|
337
|
-
reasonData?: components["schemas"]["
|
|
337
|
+
reasonData?: components["schemas"]["a3d76e5d-ac91-4e10-b74d-d5f31a031b3e"];
|
|
338
338
|
/** @description (typeName=com.kosdev.kos.commons.util.concurrent.future.FutureWork) */
|
|
339
|
-
rootFuture?: components["schemas"]["
|
|
339
|
+
rootFuture?: components["schemas"]["c696049c-492c-45eb-bf0e-c0711a5d4636"];
|
|
340
340
|
tracker?: string;
|
|
341
341
|
/** Format: int64 */
|
|
342
342
|
remainingTimeMs?: number;
|
|
@@ -344,54 +344,54 @@ export interface components {
|
|
|
344
344
|
/** Format: int32 */
|
|
345
345
|
progress?: number;
|
|
346
346
|
/** @description (typeName=java.util.Map<java.lang.String, com.kosdev.kos.commons.util.json.JsonViewWrapper>) */
|
|
347
|
-
clientAttributes?: components["schemas"]["
|
|
347
|
+
clientAttributes?: components["schemas"]["8682a312-d949-4d05-86ba-33d00fb60653"];
|
|
348
348
|
/** Format: int32 */
|
|
349
349
|
id?: number;
|
|
350
350
|
/** Format: int32 */
|
|
351
351
|
abortAbandonedTimeoutMs?: number;
|
|
352
352
|
/** @description (typeName=com.kosdev.kos.commons.util.json.JsonViewWrapper) */
|
|
353
|
-
clientData?: components["schemas"]["
|
|
353
|
+
clientData?: components["schemas"]["770d8f94-6438-461c-8b40-b8bae6e64e66"];
|
|
354
354
|
};
|
|
355
|
-
"
|
|
355
|
+
"a3d76e5d-ac91-4e10-b74d-d5f31a031b3e": {
|
|
356
356
|
/** @description (typeName=java.lang.Class<?>) */
|
|
357
|
-
view?: components["schemas"]["
|
|
357
|
+
view?: components["schemas"]["06799842-9abc-4984-8093-c04ccbf2631f"];
|
|
358
358
|
data?: Record<string, never>;
|
|
359
359
|
};
|
|
360
|
-
"
|
|
360
|
+
"06799842-9abc-4984-8093-c04ccbf2631f": unknown;
|
|
361
361
|
/** @description (typeName=com.kosdev.kos.commons.util.json.JsonViewWrapper) */
|
|
362
|
-
"
|
|
363
|
-
"
|
|
362
|
+
"8682a312-d949-4d05-86ba-33d00fb60653": components["schemas"]["770d8f94-6438-461c-8b40-b8bae6e64e66"];
|
|
363
|
+
"770d8f94-6438-461c-8b40-b8bae6e64e66": {
|
|
364
364
|
/** @description (typeName=java.lang.Class<?>) */
|
|
365
|
-
view?: components["schemas"]["
|
|
365
|
+
view?: components["schemas"]["06799842-9abc-4984-8093-c04ccbf2631f"];
|
|
366
366
|
data?: Record<string, never>;
|
|
367
367
|
};
|
|
368
368
|
/** @description (typeName=com.tccc.kos.ext.freestyle.service.cartridgeagitation.AgitationTracker) */
|
|
369
|
-
"
|
|
370
|
-
"
|
|
369
|
+
"fbf3a7bf-d3a5-4bdb-9bc2-6565f61fef04": components["schemas"]["09c6a984-9ec9-408d-8be6-1185edbb96df"];
|
|
370
|
+
"09c6a984-9ec9-408d-8be6-1185edbb96df": {
|
|
371
371
|
/** @description (typeName=com.tccc.kos.ext.freestyle.service.cartridgeagitation.AgitationAction) */
|
|
372
|
-
action?: components["schemas"]["
|
|
372
|
+
action?: components["schemas"]["af6b2491-abc1-49f3-b75c-9a28b8d91e33"];
|
|
373
373
|
/** Format: int32 */
|
|
374
374
|
state?: number;
|
|
375
375
|
/** @description (typeName=java.util.List<com.tccc.kos.ext.freestyle.service.cartridgeagitation.Agitation>) */
|
|
376
|
-
agitations?: components["schemas"]["
|
|
376
|
+
agitations?: components["schemas"]["6bbd1b5f-b0ab-4dae-858b-7b80e50e99b0"];
|
|
377
377
|
};
|
|
378
|
-
"
|
|
378
|
+
"af6b2491-abc1-49f3-b75c-9a28b8d91e33": {
|
|
379
379
|
/** Format: int32 */
|
|
380
380
|
delayMs?: number;
|
|
381
381
|
holderPath?: string;
|
|
382
382
|
/** Format: int32 */
|
|
383
383
|
state?: number;
|
|
384
384
|
/** @description (typeName=com.tccc.kos.ext.freestyle.service.cartridgeagitation.AgitationAction$Type) */
|
|
385
|
-
type?: components["schemas"]["
|
|
385
|
+
type?: components["schemas"]["0dd8fcbe-2134-4f12-b0ea-393b8b874126"];
|
|
386
386
|
containerId?: string;
|
|
387
387
|
/** Format: int32 */
|
|
388
388
|
durationMs?: number;
|
|
389
389
|
/** Format: int32 */
|
|
390
390
|
rpm?: number;
|
|
391
391
|
};
|
|
392
|
-
"
|
|
393
|
-
"
|
|
394
|
-
"
|
|
392
|
+
"0dd8fcbe-2134-4f12-b0ea-393b8b874126": unknown;
|
|
393
|
+
"6bbd1b5f-b0ab-4dae-858b-7b80e50e99b0": components["schemas"]["9a63ddeb-ba08-4ffd-ab78-ccd8d2eaa0d6"][];
|
|
394
|
+
"9a63ddeb-ba08-4ffd-ab78-ccd8d2eaa0d6": {
|
|
395
395
|
/** Format: int32 */
|
|
396
396
|
duration?: number;
|
|
397
397
|
/** Format: int64 */
|
|
@@ -95,6 +95,38 @@ export type EndpointResponse<E extends Endpoint> = ApiResponse<E["path"], E["met
|
|
|
95
95
|
* ```
|
|
96
96
|
*/
|
|
97
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;
|
|
98
|
+
/**
|
|
99
|
+
* `serviceRequest` for an endpoint the generated types do not declare yet.
|
|
100
|
+
*
|
|
101
|
+
* There is no `paths` entry to derive anything from, so the response shape is
|
|
102
|
+
* supplied by hand instead: `Raw` is what the backend is expected to serve (the
|
|
103
|
+
* UNWRAPPED `data` payload — the client strips the `{status, data}` envelope
|
|
104
|
+
* before `transform` runs) and `Transformed` is what `transform` returns. Path
|
|
105
|
+
* and query params are untyped for the same reason.
|
|
106
|
+
*
|
|
107
|
+
* Every use is a debt, and the name is there to be grepped. When the endpoint
|
|
108
|
+
* lands: re-run `api:generate`, drop the `as ApiPath` cast on its `endpoint(...)`
|
|
109
|
+
* entry, point the raw type at `EndpointResponse<...>`, and switch back to
|
|
110
|
+
* `serviceRequest`. The transform survives all of it unchanged.
|
|
111
|
+
*
|
|
112
|
+
* @example
|
|
113
|
+
* ```typescript
|
|
114
|
+
* export const BoardApi = {
|
|
115
|
+
* // PROVISIONAL — no /api/board/grants in the generated types yet.
|
|
116
|
+
* loadGrants: endpoint("/api/board/grants" as ApiPath, "get"),
|
|
117
|
+
* } as const;
|
|
118
|
+
*
|
|
119
|
+
* @provisionalServiceRequest<GrantBean[], Grant[]>(BoardApi.loadGrants, {
|
|
120
|
+
* lifecycle: DependencyLifecycle.LOAD,
|
|
121
|
+
* transform: toGrants,
|
|
122
|
+
* })
|
|
123
|
+
* onGrantsLoaded(error: string | null, grants: Grant[]) {}
|
|
124
|
+
* ```
|
|
125
|
+
*/
|
|
126
|
+
export declare function provisionalServiceRequest<Raw, Transformed = Raw>(ep: {
|
|
127
|
+
readonly path: string;
|
|
128
|
+
readonly method: string;
|
|
129
|
+
}, opts?: Partial<IKosServiceRequestParams<Record<string, any>, string, HttpMethod, Raw, Transformed>>): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;
|
|
98
130
|
/**
|
|
99
131
|
* Create an API client for handle
|
|
100
132
|
*/
|
|
@@ -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,CA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M,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"}
|
|
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,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SERVICE_1_6_5 from './services/freestyle/1.6.5/service';
|
|
3
3
|
export * as FREESTYLE_SERVICE_1_8_1 from './services/freestyle/1.8.1/service';
|
|
4
4
|
export * as HANDLE_SERVICE from './services/handle/daily/service';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"services-index.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-freestyle-sdk/src/models/utils/services-index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,iBAAiB,MAAM,
|
|
1
|
+
{"version":3,"file":"services-index.d.ts","sourceRoot":"","sources":["../../../../../packages/kos-freestyle-sdk/src/models/utils/services-index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,iBAAiB,MAAM,oCAAoC,CAAC;AACxE,OAAO,KAAK,uBAAuB,MAAM,oCAAoC,CAAC;AAC9E,OAAO,KAAK,uBAAuB,MAAM,oCAAoC,CAAC;AAC9E,OAAO,KAAK,cAAc,MAAM,iCAAiC,CAAC;AAClE,OAAO,KAAK,oBAAoB,MAAM,iCAAiC,CAAC"}
|
package/models.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const service = require("./service-
|
|
4
|
-
const extensionUtils = require("./extension-utils-
|
|
3
|
+
const service = require("./service-D4aX0z2P.cjs");
|
|
4
|
+
const extensionUtils = require("./extension-utils-oabjo9KD.cjs");
|
|
5
5
|
exports.AGITATION_REQUIRED_TROUBLE = service.AGITATION_REQUIRED_TROUBLE;
|
|
6
6
|
exports.AgitationRequiredTrouble = service.AgitationRequiredTrouble;
|
|
7
7
|
exports.CarbAgitator = service.CarbAgitator;
|
package/models.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A, a, C, b, c, d, e, s, f, g, F, h, i, j, k, l, m, I, n, K, L, S, r } from "./service-
|
|
2
|
-
import { E, i as i2, F as F2, a as a2, b as b2, K as K2, c as c2 } from "./extension-utils-
|
|
1
|
+
import { A, a, C, b, c, d, e, s, f, g, F, h, i, j, k, l, m, I, n, K, L, S, r } from "./service-eFbVjaFu.js";
|
|
2
|
+
import { E, i as i2, F as F2, a as a2, b as b2, K as K2, c as c2 } from "./extension-utils-BJAnNxer.js";
|
|
3
3
|
export {
|
|
4
4
|
A as AGITATION_REQUIRED_TROUBLE,
|
|
5
5
|
a as AgitationRequiredTrouble,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kosdev-code/kos-freestyle-sdk",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.23",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"types": "./index.d.ts",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"kos": {
|
|
33
33
|
"build": {
|
|
34
|
-
"gitHash": "
|
|
34
|
+
"gitHash": "78a2bbd25c176cfbcb4add6ee11dd660941657c2"
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
}
|