starta.apiclient 1.112.12622 → 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 +5 -3
- package/package.json +1 -1
package/lib/types.d.ts
CHANGED
|
@@ -252,15 +252,16 @@ 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
|
productData: {
|
|
@@ -282,6 +283,7 @@ export type TechcardSteps = Array<{
|
|
|
282
283
|
type: 'comment';
|
|
283
284
|
comment: string;
|
|
284
285
|
}>;
|
|
286
|
+
fileIds?: Array<string>;
|
|
285
287
|
}>;
|
|
286
288
|
export type ProductAvailability = 'inStock' | 'outOfStock' | 'lowStock';
|
|
287
289
|
export type OrderData = {
|