@kosdev-code/kos-freestyle-sdk 2.1.27 → 2.1.28

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.
Files changed (44) hide show
  1. package/{extension-utils-DABHO8qx.cjs → extension-utils-CbiToj2v.cjs} +2 -2
  2. package/{extension-utils-DABHO8qx.cjs.map → extension-utils-CbiToj2v.cjs.map} +1 -1
  3. package/{extension-utils-CARIyqNK.js → extension-utils-DP5eulYE.js} +11 -11
  4. package/{extension-utils-CARIyqNK.js.map → extension-utils-DP5eulYE.js.map} +1 -1
  5. package/index.cjs +1 -1
  6. package/index.js +36 -33
  7. package/models/models/agitation-required-trouble/agitation-required-trouble-model.d.ts +195 -5
  8. package/models/models/agitation-required-trouble/agitation-required-trouble-model.d.ts.map +1 -1
  9. package/models/models/agitation-required-trouble/index.d.ts +4 -2
  10. package/models/models/agitation-required-trouble/index.d.ts.map +1 -1
  11. package/models/models/carb-agitator/carb-agitator-model.d.ts +258 -0
  12. package/models/models/carb-agitator/carb-agitator-model.d.ts.map +1 -1
  13. package/models/models/carb-agitator/services/carb-tank-services.d.ts +25 -0
  14. package/models/models/carb-agitator/services/carb-tank-services.d.ts.map +1 -1
  15. package/models/utils/freestyle-registration-manager.d.ts.map +1 -1
  16. package/models/utils/openapi-index.d.ts +2 -2
  17. package/models/utils/services/freestyle/1.6.5/openapi.d.ts +1462 -0
  18. package/models/utils/services/freestyle/1.6.5/service.d.ts +118 -0
  19. package/models/utils/services/freestyle/1.6.5/service.d.ts.map +1 -0
  20. package/models/utils/services/freestyle/1.8.1/openapi.d.ts +1656 -0
  21. package/models/utils/services/freestyle/1.8.1/service.d.ts +118 -0
  22. package/models/utils/services/freestyle/1.8.1/service.d.ts.map +1 -0
  23. package/models/utils/services/handle/1.8.1/openapi.d.ts +237 -0
  24. package/models/utils/services/handle/1.8.1/service.d.ts +118 -0
  25. package/models/utils/services/handle/1.8.1/service.d.ts.map +1 -0
  26. package/models/utils/services-index.d.ts +3 -0
  27. package/models/utils/services-index.d.ts.map +1 -1
  28. package/models.cjs +1 -1
  29. package/models.js +30 -27
  30. package/package.json +2 -2
  31. package/{service-VUszslQD.cjs → service-BYZ3LYEa.cjs} +2 -2
  32. package/service-BYZ3LYEa.cjs.map +1 -0
  33. package/{service-C0WOCTr1.js → service-_jG-Kd3m.js} +634 -478
  34. package/service-_jG-Kd3m.js.map +1 -0
  35. package/ui.cjs +1 -1
  36. package/ui.js +2 -2
  37. package/{use-nutrition-info-BWyJAXF6.js → use-nutrition-info-B9ybCLwb.js} +2 -2
  38. package/{use-nutrition-info-BWyJAXF6.js.map → use-nutrition-info-B9ybCLwb.js.map} +1 -1
  39. package/{use-nutrition-info-BRX7H5o6.cjs → use-nutrition-info-C-RDcG4S.cjs} +2 -2
  40. package/{use-nutrition-info-BRX7H5o6.cjs.map → use-nutrition-info-C-RDcG4S.cjs.map} +1 -1
  41. package/models/models/agitation-required-trouble/agitation-required-trouble-registration.d.ts +0 -87
  42. package/models/models/agitation-required-trouble/agitation-required-trouble-registration.d.ts.map +0 -1
  43. package/service-C0WOCTr1.js.map +0 -1
  44. package/service-VUszslQD.cjs.map +0 -1
@@ -0,0 +1,118 @@
1
+ import { paths } from './openapi';
2
+ import { ClientResponse, HttpMethod, IKosServiceRequestParams, KosExecutionContext, PathsByMethod } from '@kosdev-code/kos-ui-sdk';
3
+
4
+ /**
5
+ * Type aliases for freestyle API
6
+ */
7
+ export type Api = paths;
8
+ export type ApiPath = keyof paths;
9
+ export type ValidPaths = PathsByMethod<paths>;
10
+ /**
11
+ * Get client response type for freestyle API
12
+ */
13
+ export type ApiResponse<Path extends ApiPath, Method extends "get" | "post" | "put" | "delete" = "get"> = ClientResponse<paths, Path, Method>;
14
+ /**
15
+ * Get execution context type for freestyle API
16
+ */
17
+ export type ExecutionContext<Path extends ApiPath = ApiPath, Method extends HttpMethod = "get"> = KosExecutionContext<paths, Path, Method>;
18
+ /**
19
+ * Typed decorator factory for @kosServiceRequest with freestyle API types
20
+ *
21
+ * Provides full IntelliSense and type safety for path, query params, and body
22
+ * based on the freestyle OpenAPI schema.
23
+ *
24
+ * @example
25
+ * ```typescript
26
+ * import { kosServiceRequest } from '../../utils/services/freestyle/1.8.1/service';
27
+ * import { DependencyLifecycle } from '@kosdev-code/kos-ui-sdk';
28
+ *
29
+ * @kosServiceRequest({
30
+ * path: '/api/...',
31
+ * method: 'get',
32
+ * lifecycle: DependencyLifecycle.LOAD
33
+ * })
34
+ * private onDataLoaded(): void {
35
+ * // Fully typed based on freestyle API
36
+ * }
37
+ * ```
38
+ */
39
+ 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;
40
+ /**
41
+ * Create an API client for freestyle
42
+ */
43
+ export declare const api: {
44
+ 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}">(endpoint: K, params?: (paths[K]["get"] extends {
45
+ parameters: infer P;
46
+ } ? P : never) | undefined, options?: {
47
+ ordered?: boolean | undefined;
48
+ tracker?: string | undefined;
49
+ timeout?: number | undefined;
50
+ headers?: Record<string, string> | undefined;
51
+ fos?: boolean | undefined;
52
+ bridge?: boolean | undefined;
53
+ destinationAddress?: string | undefined;
54
+ studio?: boolean | undefined;
55
+ signal?: AbortSignal | undefined;
56
+ stream?: boolean | undefined;
57
+ responseType?: "text" | "json" | "arraybuffer" | "blob" | undefined;
58
+ } | undefined) => Promise<import('@kosdev-code/kos-ui-sdk').ServiceResponse<ClientResponse<paths, K, "get">>>;
59
+ post: <K_1 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}">(endpoint: K_1, params?: (paths[K_1]["post"] extends {
60
+ parameters: infer P_1;
61
+ } ? P_1 : never) | undefined, body?: (paths[K_1]["post"] extends {
62
+ requestBody: {
63
+ content: infer B;
64
+ };
65
+ } ? B[keyof B] : never) | undefined, options?: {
66
+ ordered?: boolean | undefined;
67
+ tracker?: string | undefined;
68
+ timeout?: number | undefined;
69
+ headers?: Record<string, string> | undefined;
70
+ fos?: boolean | undefined;
71
+ bridge?: boolean | undefined;
72
+ destinationAddress?: string | undefined;
73
+ studio?: boolean | undefined;
74
+ signal?: AbortSignal | undefined;
75
+ stream?: boolean | undefined;
76
+ responseType?: "text" | "json" | "arraybuffer" | "blob" | undefined;
77
+ } | undefined) => Promise<import('@kosdev-code/kos-ui-sdk').ServiceResponse<ClientResponse<paths, K_1, "post">>>;
78
+ put: <K_2 extends never>(endpoint: K_2, params?: (paths[K_2]["put"] extends {
79
+ parameters: infer P_2;
80
+ } ? P_2 : never) | undefined, body?: (paths[K_2]["put"] extends {
81
+ requestBody: {
82
+ content: infer B_1;
83
+ };
84
+ } ? B_1[keyof B_1] : never) | undefined, options?: {
85
+ ordered?: boolean | undefined;
86
+ tracker?: string | undefined;
87
+ timeout?: number | undefined;
88
+ headers?: Record<string, string> | undefined;
89
+ fos?: boolean | undefined;
90
+ bridge?: boolean | undefined;
91
+ destinationAddress?: string | undefined;
92
+ studio?: boolean | undefined;
93
+ signal?: AbortSignal | undefined;
94
+ stream?: boolean | undefined;
95
+ responseType?: "text" | "json" | "arraybuffer" | "blob" | undefined;
96
+ } | undefined) => Promise<import('@kosdev-code/kos-ui-sdk').ServiceResponse<ClientResponse<paths, K_2, "put">>>;
97
+ delete: <K_3 extends never>(endpoint: K_3, params?: (paths[K_3]["delete"] extends {
98
+ parameters: infer P_3;
99
+ } ? P_3 : never) | undefined, body?: (paths[K_3]["put"] extends {
100
+ requestBody: {
101
+ content: infer B_1;
102
+ };
103
+ } ? B_1[keyof B_1] : never) | undefined, options?: {
104
+ ordered?: boolean | undefined;
105
+ tracker?: string | undefined;
106
+ timeout?: number | undefined;
107
+ headers?: Record<string, string> | undefined;
108
+ fos?: boolean | undefined;
109
+ bridge?: boolean | undefined;
110
+ destinationAddress?: string | undefined;
111
+ studio?: boolean | undefined;
112
+ signal?: AbortSignal | undefined;
113
+ stream?: boolean | undefined;
114
+ responseType?: "text" | "json" | "arraybuffer" | "blob" | undefined;
115
+ } | undefined) => Promise<import('@kosdev-code/kos-ui-sdk').ServiceResponse<ClientResponse<paths, K_3, "delete">>>;
116
+ };
117
+ export default api;
118
+ //# sourceMappingURL=service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/services/freestyle/1.8.1/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,aAAa,EACnB,MAAM,yBAAyB,CAAC;AACjC,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,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,KAAK,IACtD,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,IAC/B,mBAAmB,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;;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,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwB,CAAC;AAEzC,eAAe,GAAG,CAAC"}
@@ -0,0 +1,237 @@
1
+ export interface paths {
2
+ "/api/handle/assembly:core:board:macro:agit:agit/trackers": {
3
+ parameters: {
4
+ query?: never;
5
+ header?: never;
6
+ path?: never;
7
+ cookie?: never;
8
+ };
9
+ /** Return tracker state for each holder associted with the agitator. (v1.0) */
10
+ get: {
11
+ parameters: {
12
+ query?: never;
13
+ header?: never;
14
+ path?: never;
15
+ cookie?: never;
16
+ };
17
+ requestBody?: never;
18
+ responses: {
19
+ /** @description OK */
20
+ 200: {
21
+ headers: {
22
+ [name: string]: unknown;
23
+ };
24
+ content: {
25
+ "application/json": components["schemas"]["9542e65b-eefd-4ae3-a055-24f1d32a185d"];
26
+ };
27
+ };
28
+ };
29
+ };
30
+ put?: never;
31
+ post?: never;
32
+ delete?: never;
33
+ options?: never;
34
+ head?: never;
35
+ patch?: never;
36
+ trace?: never;
37
+ };
38
+ "/api/handle/assembly:core:board:macro:agit:agit/trackers/prune": {
39
+ parameters: {
40
+ query?: never;
41
+ header?: never;
42
+ path?: never;
43
+ cookie?: never;
44
+ };
45
+ /** Prune tracker data that is beyond the retention period. (v1.0) */
46
+ get: {
47
+ parameters: {
48
+ query?: never;
49
+ header?: never;
50
+ path?: never;
51
+ cookie?: never;
52
+ };
53
+ requestBody?: never;
54
+ responses: {
55
+ /** @description OK */
56
+ 200: {
57
+ headers: {
58
+ [name: string]: unknown;
59
+ };
60
+ content?: never;
61
+ };
62
+ };
63
+ };
64
+ put?: never;
65
+ post?: never;
66
+ delete?: never;
67
+ options?: never;
68
+ head?: never;
69
+ patch?: never;
70
+ trace?: never;
71
+ };
72
+ "/api/handle/assembly:core:board:macro:agit:agit/test": {
73
+ parameters: {
74
+ query?: never;
75
+ header?: never;
76
+ path?: never;
77
+ cookie?: never;
78
+ };
79
+ get?: never;
80
+ put?: never;
81
+ /** Run an agitation test. (v1.0) */
82
+ post: {
83
+ parameters: {
84
+ query?: never;
85
+ header?: never;
86
+ path?: never;
87
+ cookie?: never;
88
+ };
89
+ requestBody?: never;
90
+ responses: {
91
+ /** @description OK */
92
+ 200: {
93
+ headers: {
94
+ [name: string]: unknown;
95
+ };
96
+ content: {
97
+ "application/json": components["schemas"]["dd8fef17-6f85-418f-9989-d77353caa0f7"];
98
+ };
99
+ };
100
+ };
101
+ };
102
+ delete?: never;
103
+ options?: never;
104
+ head?: never;
105
+ patch?: never;
106
+ trace?: never;
107
+ };
108
+ "/api/handle/assembly:core:board:macro:agit:agit/action": {
109
+ parameters: {
110
+ query?: never;
111
+ header?: never;
112
+ path?: never;
113
+ cookie?: never;
114
+ };
115
+ /** Return the currently running agitation action. (v1.0) */
116
+ get: {
117
+ parameters: {
118
+ query?: never;
119
+ header?: never;
120
+ path?: never;
121
+ cookie?: never;
122
+ };
123
+ requestBody?: never;
124
+ responses: {
125
+ /** @description OK */
126
+ 200: {
127
+ headers: {
128
+ [name: string]: unknown;
129
+ };
130
+ content: {
131
+ "application/json": components["schemas"]["66251c4a-f6cb-42e3-abb7-6b71ffef9910"];
132
+ };
133
+ };
134
+ };
135
+ };
136
+ put?: never;
137
+ post?: never;
138
+ delete?: never;
139
+ options?: never;
140
+ head?: never;
141
+ patch?: never;
142
+ trace?: never;
143
+ };
144
+ }
145
+ export type webhooks = Record<string, never>;
146
+ export interface components {
147
+ schemas: {
148
+ /** @description (typeName=com.tccc.kos.ext.freestyle.service.cartridgeagitation.AgitationTracker) */
149
+ "9542e65b-eefd-4ae3-a055-24f1d32a185d": components["schemas"]["3085fa9e-87f0-4df7-9c8d-754df7f9d967"];
150
+ "3085fa9e-87f0-4df7-9c8d-754df7f9d967": {
151
+ /** @description (typeName=com.tccc.kos.ext.freestyle.service.cartridgeagitation.AgitationAction) */
152
+ action?: components["schemas"]["66251c4a-f6cb-42e3-abb7-6b71ffef9910"];
153
+ /** Format: int32 */
154
+ state?: number;
155
+ /** @description (typeName=java.util.List<com.tccc.kos.ext.freestyle.service.cartridgeagitation.Agitation>) */
156
+ agitations?: components["schemas"]["172be3da-a58e-4f2b-b1b4-ae0695a14a25"];
157
+ };
158
+ "66251c4a-f6cb-42e3-abb7-6b71ffef9910": {
159
+ /** Format: int32 */
160
+ delayMs?: number;
161
+ holderPath?: string;
162
+ /** Format: int32 */
163
+ state?: number;
164
+ /** @description (typeName=com.tccc.kos.ext.freestyle.service.cartridgeagitation.AgitationAction$Type) */
165
+ type?: components["schemas"]["9c9fce87-4243-464b-b5ed-b8af2403f1c5"];
166
+ containerId?: string;
167
+ /** Format: int32 */
168
+ durationMs?: number;
169
+ /** Format: int32 */
170
+ rpm?: number;
171
+ };
172
+ "9c9fce87-4243-464b-b5ed-b8af2403f1c5": unknown;
173
+ "172be3da-a58e-4f2b-b1b4-ae0695a14a25": components["schemas"]["5c4509dd-f011-4629-ad15-51be65043ffc"][];
174
+ "5c4509dd-f011-4629-ad15-51be65043ffc": {
175
+ /** Format: int32 */
176
+ duration?: number;
177
+ /** Format: int64 */
178
+ startTime?: number;
179
+ /** Format: int32 */
180
+ state?: number;
181
+ /** Format: int64 */
182
+ endTime?: number;
183
+ };
184
+ "dd8fef17-6f85-418f-9989-d77353caa0f7": {
185
+ reason?: string;
186
+ note?: string;
187
+ /** @description (typeName=com.tccc.kos.commons.util.ReasonData) */
188
+ reasonData?: components["schemas"]["c8fb632c-e000-4f9d-bc72-d38c9e4425b0"];
189
+ /** @description (typeName=com.tccc.kos.commons.util.concurrent.future.FutureWork) */
190
+ rootFuture?: components["schemas"]["dd8fef17-6f85-418f-9989-d77353caa0f7"];
191
+ /** @description (typeName=com.tccc.kos.commons.util.concurrent.future.FutureState) */
192
+ endState?: components["schemas"]["ebc81db6-47a7-4f42-83d7-2fa15b98aaff"];
193
+ tracker?: string;
194
+ /** Format: int64 */
195
+ remainingTimeMs?: number;
196
+ name?: string;
197
+ /** Format: int32 */
198
+ progress?: number;
199
+ /** Format: int32 */
200
+ id?: number;
201
+ /** Format: int32 */
202
+ abortAbandonedTimeoutMs?: number;
203
+ /** @description (typeName=com.tccc.kos.commons.util.json.JsonViewWrapper) */
204
+ clientData?: components["schemas"]["8a8288c5-491c-4bc8-9efc-0c6904945dfc"];
205
+ };
206
+ "c8fb632c-e000-4f9d-bc72-d38c9e4425b0": {
207
+ /** @description (typeName=java.lang.Class<?>) */
208
+ view?: components["schemas"]["2618f39d-b9b4-4b0f-9c02-26f2d874727e"];
209
+ data?: Record<string, never>;
210
+ };
211
+ "2618f39d-b9b4-4b0f-9c02-26f2d874727e": unknown;
212
+ "ebc81db6-47a7-4f42-83d7-2fa15b98aaff": {
213
+ cancel?: boolean;
214
+ fail?: boolean;
215
+ abort?: boolean;
216
+ success?: boolean;
217
+ unsuccess?: boolean;
218
+ /** @description (typeName=com.tccc.kos.commons.util.concurrent.future.FutureEvent) */
219
+ futureEvent?: components["schemas"]["0b90078a-e45a-4df9-af14-58e0b6da85ce"];
220
+ terminate?: boolean;
221
+ done?: boolean;
222
+ };
223
+ "0b90078a-e45a-4df9-af14-58e0b6da85ce": unknown;
224
+ "8a8288c5-491c-4bc8-9efc-0c6904945dfc": {
225
+ /** @description (typeName=java.lang.Class<?>) */
226
+ view?: components["schemas"]["2618f39d-b9b4-4b0f-9c02-26f2d874727e"];
227
+ data?: Record<string, never>;
228
+ };
229
+ };
230
+ responses: never;
231
+ parameters: never;
232
+ requestBodies: never;
233
+ headers: never;
234
+ pathItems: never;
235
+ }
236
+ export type $defs = Record<string, never>;
237
+ export type operations = Record<string, never>;
@@ -0,0 +1,118 @@
1
+ import { paths } from './openapi';
2
+ import { ClientResponse, HttpMethod, IKosServiceRequestParams, KosExecutionContext, PathsByMethod } from '@kosdev-code/kos-ui-sdk';
3
+
4
+ /**
5
+ * Type aliases for handle API
6
+ */
7
+ export type Api = paths;
8
+ export type ApiPath = keyof paths;
9
+ export type ValidPaths = PathsByMethod<paths>;
10
+ /**
11
+ * Get client response type for handle API
12
+ */
13
+ export type ApiResponse<Path extends ApiPath, Method extends "get" | "post" | "put" | "delete" = "get"> = ClientResponse<paths, Path, Method>;
14
+ /**
15
+ * Get execution context type for handle API
16
+ */
17
+ export type ExecutionContext<Path extends ApiPath = ApiPath, Method extends HttpMethod = "get"> = KosExecutionContext<paths, Path, Method>;
18
+ /**
19
+ * Typed decorator factory for @kosServiceRequest with handle API types
20
+ *
21
+ * Provides full IntelliSense and type safety for path, query params, and body
22
+ * based on the handle OpenAPI schema.
23
+ *
24
+ * @example
25
+ * ```typescript
26
+ * import { kosServiceRequest } from '../../utils/services/handle/1.8.1/service';
27
+ * import { DependencyLifecycle } from '@kosdev-code/kos-ui-sdk';
28
+ *
29
+ * @kosServiceRequest({
30
+ * path: '/api/...',
31
+ * method: 'get',
32
+ * lifecycle: DependencyLifecycle.LOAD
33
+ * })
34
+ * private onDataLoaded(): void {
35
+ * // Fully typed based on handle API
36
+ * }
37
+ * ```
38
+ */
39
+ 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;
40
+ /**
41
+ * Create an API client for handle
42
+ */
43
+ export declare const api: {
44
+ get: <K extends "/api/handle/assembly:core:board:macro:agit:agit/trackers" | "/api/handle/assembly:core:board:macro:agit:agit/trackers/prune" | "/api/handle/assembly:core:board:macro:agit:agit/action">(endpoint: K, params?: (paths[K]["get"] extends {
45
+ parameters: infer P;
46
+ } ? P : never) | undefined, options?: {
47
+ ordered?: boolean | undefined;
48
+ tracker?: string | undefined;
49
+ timeout?: number | undefined;
50
+ headers?: Record<string, string> | undefined;
51
+ fos?: boolean | undefined;
52
+ bridge?: boolean | undefined;
53
+ destinationAddress?: string | undefined;
54
+ studio?: boolean | undefined;
55
+ signal?: AbortSignal | undefined;
56
+ stream?: boolean | undefined;
57
+ responseType?: "text" | "json" | "arraybuffer" | "blob" | undefined;
58
+ } | undefined) => Promise<import('@kosdev-code/kos-ui-sdk').ServiceResponse<ClientResponse<paths, K, "get">>>;
59
+ post: <K_1 extends "/api/handle/assembly:core:board:macro:agit:agit/test">(endpoint: K_1, params?: (paths[K_1]["post"] extends {
60
+ parameters: infer P_1;
61
+ } ? P_1 : never) | undefined, body?: (paths[K_1]["post"] extends {
62
+ requestBody: {
63
+ content: infer B;
64
+ };
65
+ } ? B[keyof B] : never) | undefined, options?: {
66
+ ordered?: boolean | undefined;
67
+ tracker?: string | undefined;
68
+ timeout?: number | undefined;
69
+ headers?: Record<string, string> | undefined;
70
+ fos?: boolean | undefined;
71
+ bridge?: boolean | undefined;
72
+ destinationAddress?: string | undefined;
73
+ studio?: boolean | undefined;
74
+ signal?: AbortSignal | undefined;
75
+ stream?: boolean | undefined;
76
+ responseType?: "text" | "json" | "arraybuffer" | "blob" | undefined;
77
+ } | undefined) => Promise<import('@kosdev-code/kos-ui-sdk').ServiceResponse<ClientResponse<paths, K_1, "post">>>;
78
+ put: <K_2 extends never>(endpoint: K_2, params?: (paths[K_2]["put"] extends {
79
+ parameters: infer P_2;
80
+ } ? P_2 : never) | undefined, body?: (paths[K_2]["put"] extends {
81
+ requestBody: {
82
+ content: infer B_1;
83
+ };
84
+ } ? B_1[keyof B_1] : never) | undefined, options?: {
85
+ ordered?: boolean | undefined;
86
+ tracker?: string | undefined;
87
+ timeout?: number | undefined;
88
+ headers?: Record<string, string> | undefined;
89
+ fos?: boolean | undefined;
90
+ bridge?: boolean | undefined;
91
+ destinationAddress?: string | undefined;
92
+ studio?: boolean | undefined;
93
+ signal?: AbortSignal | undefined;
94
+ stream?: boolean | undefined;
95
+ responseType?: "text" | "json" | "arraybuffer" | "blob" | undefined;
96
+ } | undefined) => Promise<import('@kosdev-code/kos-ui-sdk').ServiceResponse<ClientResponse<paths, K_2, "put">>>;
97
+ delete: <K_3 extends never>(endpoint: K_3, params?: (paths[K_3]["delete"] extends {
98
+ parameters: infer P_3;
99
+ } ? P_3 : never) | undefined, body?: (paths[K_3]["put"] extends {
100
+ requestBody: {
101
+ content: infer B_1;
102
+ };
103
+ } ? B_1[keyof B_1] : never) | undefined, options?: {
104
+ ordered?: boolean | undefined;
105
+ tracker?: string | undefined;
106
+ timeout?: number | undefined;
107
+ headers?: Record<string, string> | undefined;
108
+ fos?: boolean | undefined;
109
+ bridge?: boolean | undefined;
110
+ destinationAddress?: string | undefined;
111
+ studio?: boolean | undefined;
112
+ signal?: AbortSignal | undefined;
113
+ stream?: boolean | undefined;
114
+ responseType?: "text" | "json" | "arraybuffer" | "blob" | undefined;
115
+ } | undefined) => Promise<import('@kosdev-code/kos-ui-sdk').ServiceResponse<ClientResponse<paths, K_3, "delete">>>;
116
+ };
117
+ export default api;
118
+ //# sourceMappingURL=service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/services/handle/1.8.1/service.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,KAAK,wBAAwB,EAC7B,KAAK,mBAAmB,EACxB,KAAK,aAAa,EACnB,MAAM,yBAAyB,CAAC;AACjC,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,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,KAAK,IACtD,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,IAC/B,mBAAmB,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAE7C;;;;;;;;;;;;;;;;;;;;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,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwB,CAAC;AAEzC,eAAe,GAAG,CAAC"}
@@ -1,3 +1,6 @@
1
+ export * as FREESTYLE_SERVICE_1_6_5 from './services/freestyle/1.6.5/service';
2
+ export * as FREESTYLE_SERVICE_1_8_1 from './services/freestyle/1.8.1/service';
1
3
  export * as FREESTYLE_SERVICE from './services/freestyle/daily/service';
4
+ export * as HANDLE_SERVICE_1_8_1 from './services/handle/1.8.1/service';
2
5
  export * as HANDLE_SERVICE from './services/handle/daily/service';
3
6
  //# sourceMappingURL=services-index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"services-index.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/services-index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,iBAAiB,MAAM,oCAAoC,CAAC;AACxE,OAAO,KAAK,cAAc,MAAM,iCAAiC,CAAC"}
1
+ {"version":3,"file":"services-index.d.ts","sourceRoot":"","sources":["../../../../../../packages/sdk/kos-freestyle-sdk/src/models/utils/services-index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,uBAAuB,MAAM,oCAAoC,CAAC;AAC9E,OAAO,KAAK,uBAAuB,MAAM,oCAAoC,CAAC;AAC9E,OAAO,KAAK,iBAAiB,MAAM,oCAAoC,CAAC;AACxE,OAAO,KAAK,oBAAoB,MAAM,iCAAiC,CAAC;AACxE,OAAO,KAAK,cAAc,MAAM,iCAAiC,CAAC"}
package/models.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./service-VUszslQD.cjs"),r=require("./extension-utils-DABHO8qx.cjs");require("@kosdev-code/kos-ui-sdk");require("@kosdev-code/kos-dispense-sdk");exports.AGITATION_REQUIRED_TROUBLE=e.AGITATION_REQUIRED_TROUBLE;exports.AgitationRequiredTrouble=e.AgitationRequiredTrouble;exports.CarbAgitator=e.CarbAgitator;exports.CartridgeAgitator=e.CartridgeAgitator;exports.CartridgeAgitatorContainer=e.CartridgeAgitatorContainer;exports.CartridgeAgitatorEvents=e.CartridgeAgitatorEvents;exports.CgpPump=e.CgpPump;exports.FREESTYLE_SERVICE=e.service;exports.FcmPump=e.FcmPump;exports.FreestyleAssembly=e.FreestyleAssembly;exports.FreestyleHolder=e.FreestyleHolder;exports.FreestyleNozzle=e.FreestyleNozzle;exports.FreestylePump=e.FreestylePump;exports.HANDLE_SERVICE=e.service$1;exports.IceAgitator=e.IceAgitator;exports.IceAgitatorEvents=e.IceAgitatorEvents;exports.KosModelRegistry=e.KosModelRegistry;exports.LfcvPump=e.LfcvPump;exports.SpmPump=e.SpmPump;exports.registerFreestyleModels=e.registerFreestyleModels;exports.EXTENSION_PLUGIN_VISIBILITY=r.EXTENSION_PLUGIN_VISIBILITY;exports.FcmPumpServices=r.index;exports.FreestyleExtensionManager=r.FreestyleExtensionManager;exports.FreestyleNozzleServices=r.index$1;exports.FreestylePumpServices=r.index$2;exports.KosExtensionManager=r.KosExtensionManager;exports.LfcvPumpServices=r.index$3;exports.SpmPumpServices=r.index$4;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./service-BYZ3LYEa.cjs"),r=require("./extension-utils-CbiToj2v.cjs");require("@kosdev-code/kos-ui-sdk");require("@kosdev-code/kos-dispense-sdk");exports.AGITATION_REQUIRED_TROUBLE=e.AGITATION_REQUIRED_TROUBLE;exports.AgitationRequiredTrouble=e.AgitationRequiredTrouble;exports.CarbAgitator=e.CarbAgitator;exports.CartridgeAgitator=e.CartridgeAgitator;exports.CartridgeAgitatorContainer=e.CartridgeAgitatorContainer;exports.CartridgeAgitatorEvents=e.CartridgeAgitatorEvents;exports.CgpPump=e.CgpPump;exports.FREESTYLE_SERVICE=e.service$2;exports.FREESTYLE_SERVICE_1_6_5=e.service;exports.FREESTYLE_SERVICE_1_8_1=e.service$1;exports.FcmPump=e.FcmPump;exports.FreestyleAssembly=e.FreestyleAssembly;exports.FreestyleHolder=e.FreestyleHolder;exports.FreestyleNozzle=e.FreestyleNozzle;exports.FreestylePump=e.FreestylePump;exports.HANDLE_SERVICE=e.service$4;exports.HANDLE_SERVICE_1_8_1=e.service$3;exports.IceAgitator=e.IceAgitator;exports.IceAgitatorEvents=e.IceAgitatorEvents;exports.KosModelRegistry=e.KosModelRegistry;exports.LfcvPump=e.LfcvPump;exports.SpmPump=e.SpmPump;exports.registerFreestyleModels=e.registerFreestyleModels;exports.EXTENSION_PLUGIN_VISIBILITY=r.EXTENSION_PLUGIN_VISIBILITY;exports.FcmPumpServices=r.index;exports.FreestyleExtensionManager=r.FreestyleExtensionManager;exports.FreestyleNozzleServices=r.index$1;exports.FreestylePumpServices=r.index$2;exports.KosExtensionManager=r.KosExtensionManager;exports.LfcvPumpServices=r.index$3;exports.SpmPumpServices=r.index$4;
2
2
  //# sourceMappingURL=models.cjs.map
package/models.js CHANGED
@@ -1,35 +1,38 @@
1
- import { A as t, j as i, C as o, c as m, a as E, b as g, d as p, s as l, F as I, e as c, f as F, g as S, h as A, k as n, i as u, I as y, K as P, L as d, S as v, r as C } from "./service-C0WOCTr1.js";
2
- import { E as R, i as N, F as T, a as _, b, K as f, c as x, d as z } from "./extension-utils-CARIyqNK.js";
1
+ import { A as t, j as E, C as i, c as o, a as m, b as S, d as _, l as I, s as g, k as l, F as p, e as F, f as c, g as A, h as R, n, m as C, i as u, I as L, K as y, L as P, S as d, r as v } from "./service-_jG-Kd3m.js";
2
+ import { E as N, i as V, F as b, a as f, b as x, K as z, c as K, d as M } from "./extension-utils-DP5eulYE.js";
3
3
  import "@kosdev-code/kos-ui-sdk";
4
4
  import "@kosdev-code/kos-dispense-sdk";
5
5
  export {
6
6
  t as AGITATION_REQUIRED_TROUBLE,
7
- i as AgitationRequiredTrouble,
8
- o as CarbAgitator,
9
- m as CartridgeAgitator,
10
- E as CartridgeAgitatorContainer,
11
- g as CartridgeAgitatorEvents,
12
- p as CgpPump,
13
- R as EXTENSION_PLUGIN_VISIBILITY,
14
- l as FREESTYLE_SERVICE,
15
- I as FcmPump,
16
- N as FcmPumpServices,
17
- c as FreestyleAssembly,
18
- T as FreestyleExtensionManager,
19
- F as FreestyleHolder,
20
- S as FreestyleNozzle,
21
- _ as FreestyleNozzleServices,
22
- A as FreestylePump,
23
- b as FreestylePumpServices,
7
+ E as AgitationRequiredTrouble,
8
+ i as CarbAgitator,
9
+ o as CartridgeAgitator,
10
+ m as CartridgeAgitatorContainer,
11
+ S as CartridgeAgitatorEvents,
12
+ _ as CgpPump,
13
+ N as EXTENSION_PLUGIN_VISIBILITY,
14
+ I as FREESTYLE_SERVICE,
15
+ g as FREESTYLE_SERVICE_1_6_5,
16
+ l as FREESTYLE_SERVICE_1_8_1,
17
+ p as FcmPump,
18
+ V as FcmPumpServices,
19
+ F as FreestyleAssembly,
20
+ b as FreestyleExtensionManager,
21
+ c as FreestyleHolder,
22
+ A as FreestyleNozzle,
23
+ f as FreestyleNozzleServices,
24
+ R as FreestylePump,
25
+ x as FreestylePumpServices,
24
26
  n as HANDLE_SERVICE,
27
+ C as HANDLE_SERVICE_1_8_1,
25
28
  u as IceAgitator,
26
- y as IceAgitatorEvents,
27
- f as KosExtensionManager,
28
- P as KosModelRegistry,
29
- d as LfcvPump,
30
- x as LfcvPumpServices,
31
- v as SpmPump,
32
- z as SpmPumpServices,
33
- C as registerFreestyleModels
29
+ L as IceAgitatorEvents,
30
+ z as KosExtensionManager,
31
+ y as KosModelRegistry,
32
+ P as LfcvPump,
33
+ K as LfcvPumpServices,
34
+ d as SpmPump,
35
+ M as SpmPumpServices,
36
+ v as registerFreestyleModels
34
37
  };
35
38
  //# sourceMappingURL=models.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosdev-code/kos-freestyle-sdk",
3
- "version": "2.1.27",
3
+ "version": "2.1.28",
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": "361c8b5d3fa5b8def66e859070650ddd69dfcdae"
34
+ "gitHash": "de3ec24ed2fd4a39115ae0c10eeb3876aedb2c22"
35
35
  }
36
36
  }
37
37
  }