@kosdev-code/kos-freestyle-sdk 3.0.20 → 3.0.22
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
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { ClientResponse, HttpMethod, IKosServiceRequestParams, KosExecutionContext, PathsByMethod } from '@kosdev-code/kos-ui-sdk';
|
|
2
|
+
import { paths } from './openapi';
|
|
3
|
+
/**
|
|
4
|
+
* Type aliases for kos.ext.freestyle API
|
|
5
|
+
*/
|
|
6
|
+
export type Api = paths;
|
|
7
|
+
export type ApiPath = keyof paths;
|
|
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";
|
|
15
|
+
/**
|
|
16
|
+
* Get client response type for kos.ext.freestyle API
|
|
17
|
+
*/
|
|
18
|
+
export type ApiResponse<Path extends ApiPath, Method extends SupportedMethod = "get"> = ClientResponse<paths, Path, Method>;
|
|
19
|
+
/**
|
|
20
|
+
* Get execution context type for kos.ext.freestyle API
|
|
21
|
+
*/
|
|
22
|
+
export type ExecutionContext<Path extends ApiPath = ApiPath, Method extends HttpMethod = "get", Transformed = ApiResponse<Path, SupportedMethod & Method>> = KosExecutionContext<paths, Path, Method, Transformed>;
|
|
23
|
+
/**
|
|
24
|
+
* Typed decorator factory for @kosServiceRequest with kos.ext.freestyle API types
|
|
25
|
+
*
|
|
26
|
+
* Provides full IntelliSense and type safety for path, query params, and body
|
|
27
|
+
* based on the kos.ext.freestyle OpenAPI schema.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```typescript
|
|
31
|
+
* import { kosServiceRequest } from '../../utils/services/kos.ext.freestyle/daily/service';
|
|
32
|
+
* import { DependencyLifecycle } from '@kosdev-code/kos-ui-sdk';
|
|
33
|
+
*
|
|
34
|
+
* @kosServiceRequest({
|
|
35
|
+
* path: '/api/...',
|
|
36
|
+
* method: 'get',
|
|
37
|
+
* lifecycle: DependencyLifecycle.LOAD
|
|
38
|
+
* })
|
|
39
|
+
* private onDataLoaded(): void {
|
|
40
|
+
* // Fully typed based on kos.ext.freestyle API
|
|
41
|
+
* }
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
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 kos.ext.freestyle 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;
|
|
98
|
+
/**
|
|
99
|
+
* Create an API client for kos.ext.freestyle
|
|
100
|
+
*/
|
|
101
|
+
export declare const api: {
|
|
102
|
+
get: <K extends "/api/ext/kos.ext.freestyle/studio/rfid/blanks" | "/api/ext/kos.ext.freestyle/studio/rfid/tags" | "/api/ext/kos.ext.freestyle/cartridges" | "/api/ext/kos.ext.freestyle/cartridges/{id}" | "/api/ext/kos.ext.freestyle/fuelGauges/{holder}" | "/api/ext/kos.ext.freestyle/brandset/nutrition/{bevId}" | "/api/ext/kos.ext.freestyle/brandset/grantProperties" | "/api/ext/kos.ext.freestyle/fcm/calibration/{pump}/baseline" | "/api/ext/kos.ext.freestyle/can/read/float/{boardPath}/{index}/{subIndex}" | "/api/ext/kos.ext.freestyle/can/read/int/{boardPath}/{index}/{subIndex}" | "/api/ext/kos.ext.freestyle/can/stats" | "/api/ext/kos.ext.freestyle/can/stats/raw" | "/api/ext/kos.ext.freestyle/microCalibration/report/{board}" | "/api/ext/kos.ext.freestyle/microCalibration/history/{pump}" | "/api/ext/kos.ext.freestyle/microCalibration/cal/{pump}">(endpoint: K, params?: (paths[K]["get"] extends {
|
|
103
|
+
parameters: infer P;
|
|
104
|
+
} ? P : never) | undefined, options?: {
|
|
105
|
+
ordered?: boolean | undefined;
|
|
106
|
+
tracker?: string | undefined;
|
|
107
|
+
destinationAddress?: string | undefined;
|
|
108
|
+
bridge?: boolean | undefined;
|
|
109
|
+
headers?: Record<string, string> | undefined;
|
|
110
|
+
signal?: AbortSignal | undefined;
|
|
111
|
+
studio?: boolean | undefined;
|
|
112
|
+
fos?: boolean | undefined;
|
|
113
|
+
timeout?: number | undefined;
|
|
114
|
+
stream?: boolean | undefined;
|
|
115
|
+
responseType?: "text" | "json" | "arraybuffer" | "blob" | undefined;
|
|
116
|
+
retry?: (boolean | import('@kosdev-code/kos-ui-sdk').RetryConfig) | undefined;
|
|
117
|
+
}) => Promise<import('@kosdev-code/kos-ui-sdk').ServiceResponse<ClientResponse<paths, K, "get">>>;
|
|
118
|
+
post: <K extends "/api/ext/kos.ext.freestyle/studio/rfid/update/{holder}" | "/api/ext/kos.ext.freestyle/studio/rfid/initialize/{holder}" | "/api/ext/kos.ext.freestyle/fuelGauges/{holder}/{val}" | "/api/ext/kos.ext.freestyle/microCalibration/pour/{pump}/calibrate" | "/api/ext/kos.ext.freestyle/microCalibration/pour/{pump}/preCalibrate" | "/api/ext/kos.ext.freestyle/microCalibration/pour/{pump}/verify" | "/api/ext/kos.ext.freestyle/microCalibration/pour/{pump}/complete" | "/api/ext/kos.ext.freestyle/brandset/grantProperties" | "/api/ext/kos.ext.freestyle/fcm/calibration/{pump}/calibrate" | "/api/ext/kos.ext.freestyle/fcm/calibration/{pump}/preCalibrate" | "/api/ext/kos.ext.freestyle/fcm/calibration/{pump}/verify/{calVolume}" | "/api/ext/kos.ext.freestyle/fcm/calibration/{pump}/baseline/{value}" | "/api/ext/kos.ext.freestyle/fcm/calibration/{pump}/complete/{calVolume}/{verifyVolume}" | "/api/ext/kos.ext.freestyle/can/stats" | "/api/ext/kos.ext.freestyle/can/write/byte/{boardPath}/{index}/{subIndex}/{val}" | "/api/ext/kos.ext.freestyle/can/write/short/{boardPath}/{index}/{subIndex}/{val}" | "/api/ext/kos.ext.freestyle/can/write/float/{boardPath}/{index}/{subIndex}/{val}" | "/api/ext/kos.ext.freestyle/can/write/int/{boardPath}/{index}/{subIndex}/{val}" | "/api/ext/kos.ext.freestyle/microCalibration/cal/{pump}/running/{val}" | "/api/ext/kos.ext.freestyle/microCalibration/cal/{pump}/code/{code}" | "/api/ext/kos.ext.freestyle/microCalibration/cal/{pump}/baseline/{val}" | "/api/ext/kos.ext.freestyle/microCalibration/cal/{pump}/both/{val}" | "/api/ext/kos.ext.freestyle/fcm/diagnostics/{pump}/pressureTest" | "/api/ext/kos.ext.freestyle/fcm/diagnostics/{pump}/opennessTest" | "/api/ext/kos.ext.freestyle/fcm/diagnostics/{pump}/flowTest" | "/api/ext/kos.ext.freestyle/fcm/diagnostics/{pump}/electricalTest">(endpoint: K, params?: (paths[K]["post"] extends {
|
|
119
|
+
parameters: infer P;
|
|
120
|
+
} ? P : never) | undefined, body?: (paths[K]["post"] extends {
|
|
121
|
+
requestBody: {
|
|
122
|
+
content: infer B;
|
|
123
|
+
};
|
|
124
|
+
} ? B[keyof B] : never) | undefined, options?: {
|
|
125
|
+
ordered?: boolean | undefined;
|
|
126
|
+
tracker?: string | undefined;
|
|
127
|
+
destinationAddress?: string | undefined;
|
|
128
|
+
bridge?: boolean | undefined;
|
|
129
|
+
headers?: Record<string, string> | undefined;
|
|
130
|
+
signal?: AbortSignal | undefined;
|
|
131
|
+
studio?: boolean | undefined;
|
|
132
|
+
fos?: boolean | undefined;
|
|
133
|
+
timeout?: number | undefined;
|
|
134
|
+
stream?: boolean | undefined;
|
|
135
|
+
responseType?: "text" | "json" | "arraybuffer" | "blob" | undefined;
|
|
136
|
+
retry?: (boolean | import('@kosdev-code/kos-ui-sdk').RetryConfig) | undefined;
|
|
137
|
+
}) => Promise<import('@kosdev-code/kos-ui-sdk').ServiceResponse<ClientResponse<paths, K, "post">>>;
|
|
138
|
+
put: <K extends never>(endpoint: K, params?: (paths[K]["put"] extends {
|
|
139
|
+
parameters: infer P;
|
|
140
|
+
} ? P : never) | undefined, body?: (paths[K]["put"] extends {
|
|
141
|
+
requestBody: {
|
|
142
|
+
content: infer B;
|
|
143
|
+
};
|
|
144
|
+
} ? B[keyof B] : never) | undefined, options?: {
|
|
145
|
+
ordered?: boolean | undefined;
|
|
146
|
+
tracker?: string | undefined;
|
|
147
|
+
destinationAddress?: string | undefined;
|
|
148
|
+
bridge?: boolean | undefined;
|
|
149
|
+
headers?: Record<string, string> | undefined;
|
|
150
|
+
signal?: AbortSignal | undefined;
|
|
151
|
+
studio?: boolean | undefined;
|
|
152
|
+
fos?: boolean | undefined;
|
|
153
|
+
timeout?: number | undefined;
|
|
154
|
+
stream?: boolean | undefined;
|
|
155
|
+
responseType?: "text" | "json" | "arraybuffer" | "blob" | undefined;
|
|
156
|
+
retry?: (boolean | import('@kosdev-code/kos-ui-sdk').RetryConfig) | undefined;
|
|
157
|
+
}) => Promise<import('@kosdev-code/kos-ui-sdk').ServiceResponse<ClientResponse<paths, K, "put">>>;
|
|
158
|
+
delete: <K extends never>(endpoint: K, params?: (paths[K]["delete"] extends {
|
|
159
|
+
parameters: infer P;
|
|
160
|
+
} ? P : never) | undefined, body?: (paths[K]["put"] extends {
|
|
161
|
+
requestBody: {
|
|
162
|
+
content: infer B;
|
|
163
|
+
};
|
|
164
|
+
} ? B[keyof B] : never) | undefined, options?: {
|
|
165
|
+
ordered?: boolean | undefined;
|
|
166
|
+
tracker?: string | undefined;
|
|
167
|
+
destinationAddress?: string | undefined;
|
|
168
|
+
bridge?: boolean | undefined;
|
|
169
|
+
headers?: Record<string, string> | undefined;
|
|
170
|
+
signal?: AbortSignal | undefined;
|
|
171
|
+
studio?: boolean | undefined;
|
|
172
|
+
fos?: boolean | undefined;
|
|
173
|
+
timeout?: number | undefined;
|
|
174
|
+
stream?: boolean | undefined;
|
|
175
|
+
responseType?: "text" | "json" | "arraybuffer" | "blob" | undefined;
|
|
176
|
+
retry?: (boolean | import('@kosdev-code/kos-ui-sdk').RetryConfig) | undefined;
|
|
177
|
+
}) => Promise<import('@kosdev-code/kos-ui-sdk').ServiceResponse<ClientResponse<paths, K, "delete">>>;
|
|
178
|
+
};
|
|
179
|
+
export default api;
|
|
180
|
+
//# sourceMappingURL=service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/kos-freestyle-sdk/src/models/utils/services/kos.ext.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,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"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
export * as FREESTYLE_SERVICE from './services/
|
|
1
|
+
export * as FREESTYLE_SERVICE from './services/kos.ext.freestyle/daily/service';
|
|
2
2
|
export * as FREESTYLE_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
|
-
export * as
|
|
5
|
-
export * as FREESTYLE_SERVICE_LATEST from './services/freestyle/daily/service';
|
|
6
|
-
export * as HANDLE_SERVICE from './services/handle/1.8.1/service';
|
|
4
|
+
export * as HANDLE_SERVICE from './services/handle/daily/service';
|
|
7
5
|
export * as HANDLE_SERVICE_1_8_1 from './services/handle/1.8.1/service';
|
|
8
|
-
export * as HANDLE_SERVICE_DAILY from './services/handle/daily/service';
|
|
9
|
-
export * as HANDLE_SERVICE_LATEST from './services/handle/daily/service';
|
|
10
6
|
//# sourceMappingURL=services-index.d.ts.map
|
|
@@ -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,4CAA4C,CAAC;AAChF,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-BdkksbW6.cjs");
|
|
4
|
+
const extensionUtils = require("./extension-utils-BgIVPDP-.cjs");
|
|
5
5
|
exports.AGITATION_REQUIRED_TROUBLE = service.AGITATION_REQUIRED_TROUBLE;
|
|
6
6
|
exports.AgitationRequiredTrouble = service.AgitationRequiredTrouble;
|
|
7
7
|
exports.CarbAgitator = service.CarbAgitator;
|
|
@@ -11,18 +11,14 @@ exports.CartridgeAgitatorEvents = service.CartridgeAgitatorEvents;
|
|
|
11
11
|
exports.CgpPump = service.CgpPump;
|
|
12
12
|
exports.FREESTYLE_SERVICE = service.service;
|
|
13
13
|
exports.FREESTYLE_SERVICE_1_6_5 = service.service$1;
|
|
14
|
-
exports.FREESTYLE_SERVICE_1_8_1 = service.service;
|
|
15
|
-
exports.FREESTYLE_SERVICE_DAILY = service.service$2;
|
|
16
|
-
exports.FREESTYLE_SERVICE_LATEST = service.service$2;
|
|
14
|
+
exports.FREESTYLE_SERVICE_1_8_1 = service.service$2;
|
|
17
15
|
exports.FcmPump = service.FcmPump;
|
|
18
16
|
exports.FreestyleAssembly = service.FreestyleAssembly;
|
|
19
17
|
exports.FreestyleHolder = service.FreestyleHolder;
|
|
20
18
|
exports.FreestyleNozzle = service.FreestyleNozzle;
|
|
21
19
|
exports.FreestylePump = service.FreestylePump;
|
|
22
20
|
exports.HANDLE_SERVICE = service.service$3;
|
|
23
|
-
exports.HANDLE_SERVICE_1_8_1 = service.service$
|
|
24
|
-
exports.HANDLE_SERVICE_DAILY = service.service$4;
|
|
25
|
-
exports.HANDLE_SERVICE_LATEST = service.service$4;
|
|
21
|
+
exports.HANDLE_SERVICE_1_8_1 = service.service$4;
|
|
26
22
|
exports.IceAgitator = service.IceAgitator;
|
|
27
23
|
exports.IceAgitatorEvents = service.IceAgitatorEvents;
|
|
28
24
|
exports.KosModelRegistry = service.KosModelRegistry;
|
package/models.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"models.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"models.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/models.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A, a, C, b, c, d, e, s, f,
|
|
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-CbUm_Gcm.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-Cq7rNoBR.js";
|
|
3
3
|
export {
|
|
4
4
|
A as AGITATION_REQUIRED_TROUBLE,
|
|
5
5
|
a as AgitationRequiredTrouble,
|
|
@@ -11,9 +11,7 @@ export {
|
|
|
11
11
|
E as EXTENSION_PLUGIN_VISIBILITY,
|
|
12
12
|
s as FREESTYLE_SERVICE,
|
|
13
13
|
f as FREESTYLE_SERVICE_1_6_5,
|
|
14
|
-
|
|
15
|
-
g as FREESTYLE_SERVICE_DAILY,
|
|
16
|
-
g2 as FREESTYLE_SERVICE_LATEST,
|
|
14
|
+
g as FREESTYLE_SERVICE_1_8_1,
|
|
17
15
|
F as FcmPump,
|
|
18
16
|
i2 as FcmPumpServices,
|
|
19
17
|
h as FreestyleAssembly,
|
|
@@ -24,9 +22,7 @@ export {
|
|
|
24
22
|
k as FreestylePump,
|
|
25
23
|
b2 as FreestylePumpServices,
|
|
26
24
|
l as HANDLE_SERVICE,
|
|
27
|
-
|
|
28
|
-
m as HANDLE_SERVICE_DAILY,
|
|
29
|
-
m2 as HANDLE_SERVICE_LATEST,
|
|
25
|
+
m as HANDLE_SERVICE_1_8_1,
|
|
30
26
|
I as IceAgitator,
|
|
31
27
|
n as IceAgitatorEvents,
|
|
32
28
|
K2 as KosExtensionManager,
|
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.22",
|
|
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": "b64d9a0431aa83daea7eba6b84d7b39db7d47ea9"
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
}
|
|
@@ -3,7 +3,7 @@ const kosUiSdk = require("@kosdev-code/kos-ui-sdk");
|
|
|
3
3
|
const kosDispenseSdk = require("@kosdev-code/kos-dispense-sdk");
|
|
4
4
|
const { URL: URL$6 } = kosUiSdk.resolveServiceUrl("ICE_AGITATOR_SERVICE");
|
|
5
5
|
const { postModel: postModel$5 } = kosUiSdk.ServiceFactory.build({
|
|
6
|
-
basePath: `${URL$6}/api/ext/freestyle/ice`
|
|
6
|
+
basePath: `${URL$6}/api/ext/kos.ext.freestyle/ice`
|
|
7
7
|
});
|
|
8
8
|
const testCarbTank = async (path, tracker) => {
|
|
9
9
|
const response = await postModel$5({
|
|
@@ -372,7 +372,7 @@ CartridgeAgitatorContainerModelImpl = __decorateClass$d([
|
|
|
372
372
|
], CartridgeAgitatorContainerModelImpl);
|
|
373
373
|
const { URL: URL$5 } = kosUiSdk.resolveServiceUrl("CARTRIDGE_AGITATOR_SERVICE");
|
|
374
374
|
const { postModel: postModel$4 } = kosUiSdk.ServiceFactory.build({
|
|
375
|
-
basePath: `${URL$5}/api/ext/freestyle/freestyle/ice`
|
|
375
|
+
basePath: `${URL$5}/api/ext/kos.ext.freestyle/freestyle/ice`
|
|
376
376
|
});
|
|
377
377
|
const agitate$1 = async (path, tracker) => {
|
|
378
378
|
const response = await postModel$4({
|
|
@@ -527,12 +527,12 @@ const log$5 = kosUiSdk.KosLog.createLogger({
|
|
|
527
527
|
});
|
|
528
528
|
const performElectricalTest = async (path) => {
|
|
529
529
|
log$5.debug(
|
|
530
|
-
`performElectricalTest - sending POST request to /api/ext/freestyle/fcm/diagnostics/${path}/electricalTest`
|
|
530
|
+
`performElectricalTest - sending POST request to /api/ext/kos.ext.freestyle/fcm/diagnostics/${path}/electricalTest`
|
|
531
531
|
);
|
|
532
532
|
try {
|
|
533
533
|
const response = await postModel$3({
|
|
534
534
|
model: {},
|
|
535
|
-
urlOverride: `${URL$4}/api/ext/freestyle/fcm/diagnostics/${path}/electricalTest`
|
|
535
|
+
urlOverride: `${URL$4}/api/ext/kos.ext.freestyle/fcm/diagnostics/${path}/electricalTest`
|
|
536
536
|
});
|
|
537
537
|
log$5.debug("performElectricalTest - response:", response);
|
|
538
538
|
if ((response?.status === 200 || response?.status === 499) && response.data?.error) {
|
|
@@ -541,7 +541,7 @@ const performElectricalTest = async (path) => {
|
|
|
541
541
|
return [void 0, response?.data];
|
|
542
542
|
} catch (error) {
|
|
543
543
|
log$5.error(
|
|
544
|
-
`performElectricalTest - sending POST request to /api/ext/freestyle/fcm/diagnostics/${path}/electricalTest`,
|
|
544
|
+
`performElectricalTest - sending POST request to /api/ext/kos.ext.freestyle/fcm/diagnostics/${path}/electricalTest`,
|
|
545
545
|
error
|
|
546
546
|
);
|
|
547
547
|
if (error instanceof kosUiSdk.FetchError) {
|
|
@@ -553,12 +553,12 @@ const performElectricalTest = async (path) => {
|
|
|
553
553
|
};
|
|
554
554
|
const performPreCalibrate$1 = async (pump, tracker) => {
|
|
555
555
|
log$5.debug(
|
|
556
|
-
`performPreCalibrate - sending POST request to /api/ext/freestyle/fcm/calibration/${pump}/preCalibrate`
|
|
556
|
+
`performPreCalibrate - sending POST request to /api/ext/kos.ext.freestyle/fcm/calibration/${pump}/preCalibrate`
|
|
557
557
|
);
|
|
558
558
|
try {
|
|
559
559
|
const response = await postModel$3({
|
|
560
560
|
model: {},
|
|
561
|
-
urlOverride: `${URL$4}/api/ext/freestyle/fcm/calibration/${pump}/preCalibrate`,
|
|
561
|
+
urlOverride: `${URL$4}/api/ext/kos.ext.freestyle/fcm/calibration/${pump}/preCalibrate`,
|
|
562
562
|
tracker
|
|
563
563
|
});
|
|
564
564
|
log$5.debug("performPreCalibrate - response:", response);
|
|
@@ -568,7 +568,7 @@ const performPreCalibrate$1 = async (pump, tracker) => {
|
|
|
568
568
|
return response?.data;
|
|
569
569
|
} catch (error) {
|
|
570
570
|
log$5.error(
|
|
571
|
-
`performPreCalibrate - sending POST request to /api/ext/freestyle/fcm/calibration/${pump}/preCalibrate`,
|
|
571
|
+
`performPreCalibrate - sending POST request to /api/ext/kos.ext.freestyle/fcm/calibration/${pump}/preCalibrate`,
|
|
572
572
|
error
|
|
573
573
|
);
|
|
574
574
|
const futureResponse = {
|
|
@@ -583,12 +583,12 @@ const performPreCalibrate$1 = async (pump, tracker) => {
|
|
|
583
583
|
};
|
|
584
584
|
const performCalibrate$1 = async (pump, tracker) => {
|
|
585
585
|
log$5.debug(
|
|
586
|
-
`performPreCalibrate - sending POST request to /api/ext/freestyle/fcm/calibration/${pump}/calibrate`
|
|
586
|
+
`performPreCalibrate - sending POST request to /api/ext/kos.ext.freestyle/fcm/calibration/${pump}/calibrate`
|
|
587
587
|
);
|
|
588
588
|
try {
|
|
589
589
|
const response = await postModel$3({
|
|
590
590
|
model: {},
|
|
591
|
-
urlOverride: `${URL$4}/api/ext/freestyle/fcm/calibration/${pump}/calibrate`,
|
|
591
|
+
urlOverride: `${URL$4}/api/ext/kos.ext.freestyle/fcm/calibration/${pump}/calibrate`,
|
|
592
592
|
tracker
|
|
593
593
|
});
|
|
594
594
|
log$5.debug("performPreCalibrate - response:", response);
|
|
@@ -598,7 +598,7 @@ const performCalibrate$1 = async (pump, tracker) => {
|
|
|
598
598
|
return response?.data;
|
|
599
599
|
} catch (error) {
|
|
600
600
|
log$5.error(
|
|
601
|
-
`performPreCalibrate - sending POST request to /api/ext/freestyle/fcm/calibration/${pump}/calibrate`,
|
|
601
|
+
`performPreCalibrate - sending POST request to /api/ext/kos.ext.freestyle/fcm/calibration/${pump}/calibrate`,
|
|
602
602
|
error
|
|
603
603
|
);
|
|
604
604
|
const futureResponse = {
|
|
@@ -613,12 +613,12 @@ const performCalibrate$1 = async (pump, tracker) => {
|
|
|
613
613
|
};
|
|
614
614
|
const performVerify$1 = async (pump, volume, tracker) => {
|
|
615
615
|
log$5.debug(
|
|
616
|
-
`performPreCalibrate - sending POST request to /api/ext/freestyle/fcm/calibration/${pump}/verify/${volume}`
|
|
616
|
+
`performPreCalibrate - sending POST request to /api/ext/kos.ext.freestyle/fcm/calibration/${pump}/verify/${volume}`
|
|
617
617
|
);
|
|
618
618
|
try {
|
|
619
619
|
const response = await postModel$3({
|
|
620
620
|
model: {},
|
|
621
|
-
urlOverride: `${URL$4}/api/ext/freestyle/fcm/calibration/${pump}/verify/${volume}`,
|
|
621
|
+
urlOverride: `${URL$4}/api/ext/kos.ext.freestyle/fcm/calibration/${pump}/verify/${volume}`,
|
|
622
622
|
tracker
|
|
623
623
|
});
|
|
624
624
|
log$5.debug("performVerify - response:", response);
|
|
@@ -628,7 +628,7 @@ const performVerify$1 = async (pump, volume, tracker) => {
|
|
|
628
628
|
return response?.data;
|
|
629
629
|
} catch (error) {
|
|
630
630
|
log$5.error(
|
|
631
|
-
`performVerify - sending POST request to /api/ext/freestyle/fcm/calibration/${pump}/verify/${volume}`,
|
|
631
|
+
`performVerify - sending POST request to /api/ext/kos.ext.freestyle/fcm/calibration/${pump}/verify/${volume}`,
|
|
632
632
|
error
|
|
633
633
|
);
|
|
634
634
|
const futureResponse = {
|
|
@@ -650,18 +650,18 @@ const processResponse = (response) => {
|
|
|
650
650
|
};
|
|
651
651
|
const performComplete$1 = async (pump, volume1, volume2) => {
|
|
652
652
|
log$5.debug(
|
|
653
|
-
`performPreCalibrate - sending POST request to /api/ext/freestyle/fcm/calibration/${pump}/complete/${volume1}/${volume2}`
|
|
653
|
+
`performPreCalibrate - sending POST request to /api/ext/kos.ext.freestyle/fcm/calibration/${pump}/complete/${volume1}/${volume2}`
|
|
654
654
|
);
|
|
655
655
|
try {
|
|
656
656
|
const response = await postModel$3({
|
|
657
657
|
model: {},
|
|
658
|
-
urlOverride: `${URL$4}/api/ext/freestyle/fcm/calibration/${pump}/complete/${volume1}/${volume2}`
|
|
658
|
+
urlOverride: `${URL$4}/api/ext/kos.ext.freestyle/fcm/calibration/${pump}/complete/${volume1}/${volume2}`
|
|
659
659
|
});
|
|
660
660
|
log$5.debug("performPreCalibrate - response:", response);
|
|
661
661
|
return processResponse(response?.data);
|
|
662
662
|
} catch (error) {
|
|
663
663
|
log$5.error(
|
|
664
|
-
`performPreCalibrate - sending POST request to /api/ext/freestyle/fcm/calibration/${pump}/complete/${volume1}/${volume2}`,
|
|
664
|
+
`performPreCalibrate - sending POST request to /api/ext/kos.ext.freestyle/fcm/calibration/${pump}/complete/${volume1}/${volume2}`,
|
|
665
665
|
error
|
|
666
666
|
);
|
|
667
667
|
return "unknownError";
|
|
@@ -1228,7 +1228,7 @@ const FreestyleNozzle = new kosUiSdk.KosModelRegistrationFactory({
|
|
|
1228
1228
|
});
|
|
1229
1229
|
const { URL: URL$2 } = kosUiSdk.resolveServiceUrl("PUMP_SERVICE");
|
|
1230
1230
|
const { postModel: postModel$2 } = kosUiSdk.ServiceFactory.build({
|
|
1231
|
-
basePath: `${URL$2}/api/ext/freestyle/microCalibration`
|
|
1231
|
+
basePath: `${URL$2}/api/ext/kos.ext.freestyle/microCalibration`
|
|
1232
1232
|
});
|
|
1233
1233
|
const log$2 = kosUiSdk.KosLog.createLogger({
|
|
1234
1234
|
name: "freestyle-pump-service",
|
|
@@ -1236,12 +1236,12 @@ const log$2 = kosUiSdk.KosLog.createLogger({
|
|
|
1236
1236
|
});
|
|
1237
1237
|
const replacePump = async (pumpId, code) => {
|
|
1238
1238
|
log$2.debug(
|
|
1239
|
-
`replacePump - sending POST request to /api/ext/freestyle/microCalibration/cal/${pumpId}/code/${code}`
|
|
1239
|
+
`replacePump - sending POST request to /api/ext/kos.ext.freestyle/microCalibration/cal/${pumpId}/code/${code}`
|
|
1240
1240
|
);
|
|
1241
1241
|
try {
|
|
1242
1242
|
const response = await postModel$2({
|
|
1243
1243
|
model: {},
|
|
1244
|
-
urlOverride: `${URL$2}/api/ext/freestyle/microCalibration/cal/${pumpId}/code/${code}`
|
|
1244
|
+
urlOverride: `${URL$2}/api/ext/kos.ext.freestyle/microCalibration/cal/${pumpId}/code/${code}`
|
|
1245
1245
|
});
|
|
1246
1246
|
log$2.debug("replacePump - response:", response);
|
|
1247
1247
|
if ((response?.status === 200 || response?.status === 499) && response.data?.error) {
|
|
@@ -1296,7 +1296,7 @@ const FreestylePump = new kosUiSdk.KosModelRegistrationFactory({
|
|
|
1296
1296
|
});
|
|
1297
1297
|
const { URL: URL$1 } = kosUiSdk.resolveServiceUrl("ICE_AGITATOR_SERVICE");
|
|
1298
1298
|
const { getAll, postModel: postModel$1 } = kosUiSdk.ServiceFactory.build({
|
|
1299
|
-
basePath: `${URL$1}/api/ext/freestyle/ice`
|
|
1299
|
+
basePath: `${URL$1}/api/ext/kos.ext.freestyle/ice`
|
|
1300
1300
|
});
|
|
1301
1301
|
const log$1 = kosUiSdk.KosLog.createLogger({
|
|
1302
1302
|
name: "ice-agitator-service",
|
|
@@ -1676,12 +1676,12 @@ const log = kosUiSdk.KosLog.createLogger({
|
|
|
1676
1676
|
});
|
|
1677
1677
|
const performPreCalibrate = async (pump, tracker) => {
|
|
1678
1678
|
log.debug(
|
|
1679
|
-
`performPreCalibrate - sending POST request to /api/ext/freestyle/microCalibration/pour/${pump}/preCalibrate`
|
|
1679
|
+
`performPreCalibrate - sending POST request to /api/ext/kos.ext.freestyle/microCalibration/pour/${pump}/preCalibrate`
|
|
1680
1680
|
);
|
|
1681
1681
|
try {
|
|
1682
1682
|
const response = await postModel({
|
|
1683
1683
|
model: {},
|
|
1684
|
-
urlOverride: `${URL}/api/ext/freestyle/microCalibration/pour/${pump}/preCalibrate`,
|
|
1684
|
+
urlOverride: `${URL}/api/ext/kos.ext.freestyle/microCalibration/pour/${pump}/preCalibrate`,
|
|
1685
1685
|
tracker
|
|
1686
1686
|
});
|
|
1687
1687
|
log.debug("performPreCalibrate - response:", response);
|
|
@@ -1691,7 +1691,7 @@ const performPreCalibrate = async (pump, tracker) => {
|
|
|
1691
1691
|
return response?.data;
|
|
1692
1692
|
} catch (error) {
|
|
1693
1693
|
log.error(
|
|
1694
|
-
`performPreCalibrate - sending POST request to /api/ext/freestyle/microCalibration/pour/${pump}/preCalibrate`,
|
|
1694
|
+
`performPreCalibrate - sending POST request to /api/ext/kos.ext.freestyle/microCalibration/pour/${pump}/preCalibrate`,
|
|
1695
1695
|
error
|
|
1696
1696
|
);
|
|
1697
1697
|
const futureResponse = {
|
|
@@ -1706,12 +1706,12 @@ const performPreCalibrate = async (pump, tracker) => {
|
|
|
1706
1706
|
};
|
|
1707
1707
|
const performCalibrate = async (pump, tracker) => {
|
|
1708
1708
|
log.debug(
|
|
1709
|
-
`performCalibrate - sending POST request to /api/ext/freestyle/microCalibration/pour/${pump}/calibrate`
|
|
1709
|
+
`performCalibrate - sending POST request to /api/ext/kos.ext.freestyle/microCalibration/pour/${pump}/calibrate`
|
|
1710
1710
|
);
|
|
1711
1711
|
try {
|
|
1712
1712
|
const response = await postModel({
|
|
1713
1713
|
model: {},
|
|
1714
|
-
urlOverride: `${URL}/api/ext/freestyle/microCalibration/pour/${pump}/calibrate`,
|
|
1714
|
+
urlOverride: `${URL}/api/ext/kos.ext.freestyle/microCalibration/pour/${pump}/calibrate`,
|
|
1715
1715
|
tracker
|
|
1716
1716
|
});
|
|
1717
1717
|
log.debug("performCalibrate - response:", response);
|
|
@@ -1721,7 +1721,7 @@ const performCalibrate = async (pump, tracker) => {
|
|
|
1721
1721
|
return response?.data;
|
|
1722
1722
|
} catch (error) {
|
|
1723
1723
|
log.error(
|
|
1724
|
-
`performCalibrate - sending POST request to /api/ext/freestyle/microCalibration/pour/${pump}/calibrate`,
|
|
1724
|
+
`performCalibrate - sending POST request to /api/ext/kos.ext.freestyle/microCalibration/pour/${pump}/calibrate`,
|
|
1725
1725
|
error
|
|
1726
1726
|
);
|
|
1727
1727
|
const futureResponse = {
|
|
@@ -1736,7 +1736,7 @@ const performCalibrate = async (pump, tracker) => {
|
|
|
1736
1736
|
};
|
|
1737
1737
|
const performVerify = async (pump, volume, payload, tracker) => {
|
|
1738
1738
|
log.debug(
|
|
1739
|
-
`performVerify - sending POST request to /api/ext/freestyle/microCalibration/pour/${pump}/verify`
|
|
1739
|
+
`performVerify - sending POST request to /api/ext/kos.ext.freestyle/microCalibration/pour/${pump}/verify`
|
|
1740
1740
|
);
|
|
1741
1741
|
try {
|
|
1742
1742
|
const response = await postModel({
|
|
@@ -1748,7 +1748,7 @@ const performVerify = async (pump, volume, payload, tracker) => {
|
|
|
1748
1748
|
// newCalibrationValue: 0,
|
|
1749
1749
|
// pouredCalibrationVolume: 0,
|
|
1750
1750
|
},
|
|
1751
|
-
urlOverride: `${URL}/api/ext/freestyle/microCalibration/pour/${pump}/verify`,
|
|
1751
|
+
urlOverride: `${URL}/api/ext/kos.ext.freestyle/microCalibration/pour/${pump}/verify`,
|
|
1752
1752
|
tracker
|
|
1753
1753
|
});
|
|
1754
1754
|
log.debug("performVerify - response:", response);
|
|
@@ -1758,7 +1758,7 @@ const performVerify = async (pump, volume, payload, tracker) => {
|
|
|
1758
1758
|
return response?.data;
|
|
1759
1759
|
} catch (error) {
|
|
1760
1760
|
log.error(
|
|
1761
|
-
`performVerify - sending POST request to /api/ext/freestyle/microCalibration/pour/${pump}/verify`,
|
|
1761
|
+
`performVerify - sending POST request to /api/ext/kos.ext.freestyle/microCalibration/pour/${pump}/verify`,
|
|
1762
1762
|
error
|
|
1763
1763
|
);
|
|
1764
1764
|
const futureResponse = {
|
|
@@ -1773,7 +1773,7 @@ const performVerify = async (pump, volume, payload, tracker) => {
|
|
|
1773
1773
|
};
|
|
1774
1774
|
const performComplete = async (pump, volume1, volume2, payload) => {
|
|
1775
1775
|
log.debug(
|
|
1776
|
-
`performComplete - sending POST request to /api/ext/freestyle/microCalibration/pour/${pump}/complete`
|
|
1776
|
+
`performComplete - sending POST request to /api/ext/kos.ext.freestyle/microCalibration/pour/${pump}/complete`
|
|
1777
1777
|
);
|
|
1778
1778
|
try {
|
|
1779
1779
|
const response = await postModel({
|
|
@@ -1785,7 +1785,7 @@ const performComplete = async (pump, volume1, volume2, payload) => {
|
|
|
1785
1785
|
// newCalibrationValue: 0,
|
|
1786
1786
|
// pouredCalibrationVolume: 0,
|
|
1787
1787
|
},
|
|
1788
|
-
urlOverride: `${URL}/api/ext/freestyle/microCalibration/pour/${pump}/complete`
|
|
1788
|
+
urlOverride: `${URL}/api/ext/kos.ext.freestyle/microCalibration/pour/${pump}/complete`
|
|
1789
1789
|
});
|
|
1790
1790
|
log.debug("performComplete - response:", response);
|
|
1791
1791
|
if ((response?.status === 200 || response?.status === 499) && response.data?.error) {
|
|
@@ -1794,7 +1794,7 @@ const performComplete = async (pump, volume1, volume2, payload) => {
|
|
|
1794
1794
|
return [void 0, response?.data];
|
|
1795
1795
|
} catch (error) {
|
|
1796
1796
|
log.error(
|
|
1797
|
-
`performComplete - sending POST request to /api/ext/freestyle/microCalibration/pour/${pump}/complete`,
|
|
1797
|
+
`performComplete - sending POST request to /api/ext/kos.ext.freestyle/microCalibration/pour/${pump}/complete`,
|
|
1798
1798
|
error
|
|
1799
1799
|
);
|
|
1800
1800
|
if (error instanceof kosUiSdk.FetchError) {
|
|
@@ -2197,12 +2197,25 @@ const KosModelRegistry = _KosModelRegistry;
|
|
|
2197
2197
|
function kosServiceRequest$4(params) {
|
|
2198
2198
|
return kosUiSdk.kosServiceRequest(params);
|
|
2199
2199
|
}
|
|
2200
|
+
function endpoint$1(path, method) {
|
|
2201
|
+
return { path, method };
|
|
2202
|
+
}
|
|
2203
|
+
function serviceRequest$1(ep, opts) {
|
|
2204
|
+
return kosServiceRequest$4({
|
|
2205
|
+
path: ep.path,
|
|
2206
|
+
method: ep.method,
|
|
2207
|
+
errorHandler: { strategy: "log", defaultValue: null },
|
|
2208
|
+
...opts
|
|
2209
|
+
});
|
|
2210
|
+
}
|
|
2200
2211
|
const api$4 = kosUiSdk.createClient();
|
|
2201
2212
|
const service$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2202
2213
|
__proto__: null,
|
|
2203
2214
|
api: api$4,
|
|
2204
2215
|
default: api$4,
|
|
2205
|
-
|
|
2216
|
+
endpoint: endpoint$1,
|
|
2217
|
+
kosServiceRequest: kosServiceRequest$4,
|
|
2218
|
+
serviceRequest: serviceRequest$1
|
|
2206
2219
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2207
2220
|
function kosServiceRequest$3(params) {
|
|
2208
2221
|
return kosUiSdk.kosServiceRequest(params);
|
|
@@ -2227,12 +2240,25 @@ const service$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePro
|
|
|
2227
2240
|
function kosServiceRequest$1(params) {
|
|
2228
2241
|
return kosUiSdk.kosServiceRequest(params);
|
|
2229
2242
|
}
|
|
2243
|
+
function endpoint(path, method) {
|
|
2244
|
+
return { path, method };
|
|
2245
|
+
}
|
|
2246
|
+
function serviceRequest(ep, opts) {
|
|
2247
|
+
return kosServiceRequest$1({
|
|
2248
|
+
path: ep.path,
|
|
2249
|
+
method: ep.method,
|
|
2250
|
+
errorHandler: { strategy: "log", defaultValue: null },
|
|
2251
|
+
...opts
|
|
2252
|
+
});
|
|
2253
|
+
}
|
|
2230
2254
|
const api$1 = kosUiSdk.createClient();
|
|
2231
2255
|
const service$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2232
2256
|
__proto__: null,
|
|
2233
2257
|
api: api$1,
|
|
2234
2258
|
default: api$1,
|
|
2235
|
-
|
|
2259
|
+
endpoint,
|
|
2260
|
+
kosServiceRequest: kosServiceRequest$1,
|
|
2261
|
+
serviceRequest
|
|
2236
2262
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2237
2263
|
function kosServiceRequest(params) {
|
|
2238
2264
|
return kosUiSdk.kosServiceRequest(params);
|
|
@@ -2284,4 +2310,4 @@ exports.service$1 = service$3;
|
|
|
2284
2310
|
exports.service$2 = service$2;
|
|
2285
2311
|
exports.service$3 = service$1;
|
|
2286
2312
|
exports.service$4 = service;
|
|
2287
|
-
//# sourceMappingURL=service-
|
|
2313
|
+
//# sourceMappingURL=service-BdkksbW6.cjs.map
|