starta.apiclient 1.112.12603 → 1.112.12615

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
- warehouseId?: string;
14
- paymentStatus?: 'paid' | 'unpaid';
15
- status?: 'planned' | 'finished' | 'cancelled';
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,10 @@ 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: any;
258
- quantityForSale: any;
258
+ id: string;
259
+ quantityForSale: number;
259
260
  }>;
260
261
  autoAttach?: boolean;
261
262
  serviceIds?: Array<string>;
@@ -274,6 +275,7 @@ export type TechcardSteps = Array<{
274
275
  warehouseId: string;
275
276
  productId: string;
276
277
  amount: number;
278
+ unit: MeasurementUnit;
277
279
  } | {
278
280
  type: 'comment';
279
281
  comment: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.112.12603",
3
+ "version": "1.112.12615",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",