starta.apiclient 1.112.12619 → 1.112.12625
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/types.d.ts +10 -5
- package/package.json +1 -1
package/lib/types.d.ts
CHANGED
|
@@ -252,19 +252,23 @@ export type ServiceExecutor = {
|
|
|
252
252
|
export type Techcard = {
|
|
253
253
|
name: string;
|
|
254
254
|
isEnabled: boolean;
|
|
255
|
+
steps?: TechcardSteps;
|
|
256
|
+
fileIds?: Array<string>;
|
|
257
|
+
} & ({
|
|
258
|
+
type: 'service';
|
|
255
259
|
autoAttach?: boolean;
|
|
256
260
|
serviceIds?: Array<string>;
|
|
257
261
|
customerIds?: Array<string>;
|
|
258
262
|
executors?: Array<string>;
|
|
259
|
-
steps?: TechcardSteps;
|
|
260
263
|
customPrice?: number;
|
|
261
264
|
customDuration?: number;
|
|
262
|
-
} & ({
|
|
263
|
-
type: 'service';
|
|
264
265
|
} | {
|
|
265
266
|
type: 'product';
|
|
266
|
-
|
|
267
|
-
|
|
267
|
+
productData: {
|
|
268
|
+
productToPrepareId?: string;
|
|
269
|
+
calculationMethod: 'fixedAmount' | 'proportional';
|
|
270
|
+
numberToPrepare?: number;
|
|
271
|
+
};
|
|
268
272
|
});
|
|
269
273
|
export type TechcardType = 'service' | 'product';
|
|
270
274
|
export type TechcardSteps = Array<{
|
|
@@ -279,6 +283,7 @@ export type TechcardSteps = Array<{
|
|
|
279
283
|
type: 'comment';
|
|
280
284
|
comment: string;
|
|
281
285
|
}>;
|
|
286
|
+
fileIds?: Array<string>;
|
|
282
287
|
}>;
|
|
283
288
|
export type ProductAvailability = 'inStock' | 'outOfStock' | 'lowStock';
|
|
284
289
|
export type OrderData = {
|