starta.apiclient 1.112.12603 → 1.112.12612
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.
|
@@ -9,10 +9,10 @@ export default class ProductOperations {
|
|
|
9
9
|
from?: string;
|
|
10
10
|
to?: string;
|
|
11
11
|
};
|
|
12
|
-
operationType?: 'writeOff' | 'receiving' | 'sell' | 'reconciliation'
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
operationType?: Array<'writeOff' | 'receiving' | 'sell' | 'reconciliation'>;
|
|
13
|
+
warehouseIds?: Array<string>;
|
|
14
|
+
paymentStatuses?: Array<'paid' | 'partially_paid' | 'unpaid'>;
|
|
15
|
+
statuses?: Array<'planned' | 'finished' | 'cancelled'>;
|
|
16
16
|
};
|
|
17
17
|
sortColumn?: 'date' | 'incrementId' | 'employee' | 'contragent' | 'warehouse' | 'product' | 'quantity' | 'price';
|
|
18
18
|
sortDirection?: 'asc' | 'desc';
|
package/lib/types.d.ts
CHANGED
|
@@ -253,9 +253,11 @@ export type Techcard = {
|
|
|
253
253
|
name: string;
|
|
254
254
|
isEnabled: boolean;
|
|
255
255
|
type: TechcardType;
|
|
256
|
+
calculationMethod: 'fixedAmount' | 'proportional';
|
|
256
257
|
products?: Array<{
|
|
257
|
-
id:
|
|
258
|
-
quantityForSale:
|
|
258
|
+
id: string;
|
|
259
|
+
quantityForSale: number;
|
|
260
|
+
unit: MeasurementUnit;
|
|
259
261
|
}>;
|
|
260
262
|
autoAttach?: boolean;
|
|
261
263
|
serviceIds?: Array<string>;
|
|
@@ -274,6 +276,7 @@ export type TechcardSteps = Array<{
|
|
|
274
276
|
warehouseId: string;
|
|
275
277
|
productId: string;
|
|
276
278
|
amount: number;
|
|
279
|
+
unit: MeasurementUnit;
|
|
277
280
|
} | {
|
|
278
281
|
type: 'comment';
|
|
279
282
|
comment: string;
|