starta.apiclient 1.112.12577 → 1.112.12578

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.
@@ -35,7 +35,7 @@ export default class Orders {
35
35
  resources?: Array<string>;
36
36
  }): Promise<import("../../types").StartaResponse>;
37
37
  get(organizationOrCustomerLogin: string, orderId: any): Promise<import("../../types").StartaResponse>;
38
- add(organizationLogin: string, { products, usedMaterials, customerId, scheduleId, status, repeatSettings, organizationComment, loyaltyCardId, loyaltyProgramId, }: OrderData): Promise<import("../../types").StartaResponse>;
38
+ add(organizationLogin: string, { products, usedMaterials, customerId, scheduleId, status, repeatSettings, organizationComment, loyaltyCardId, loyaltyProgramId, promocodes, }: OrderData): Promise<import("../../types").StartaResponse>;
39
39
  update(organizationLogin: string, orderId: string, { products, usedMaterials, scheduleId, status, repeatSettings, organizationComment, customerId, loyaltyCardId, loyaltyProgramId, }: OrderData): Promise<import("../../types").StartaResponse>;
40
40
  setPhotos(organizationLogin: string, orderId: string, photos: Array<{
41
41
  imageId: string;
@@ -49,7 +49,7 @@ class Orders {
49
49
  method: 'GET',
50
50
  });
51
51
  }
52
- add(organizationLogin, { products, usedMaterials, customerId, scheduleId, status = 'new', repeatSettings, organizationComment, loyaltyCardId, loyaltyProgramId, }) {
52
+ add(organizationLogin, { products, usedMaterials, customerId, scheduleId, status = 'new', repeatSettings, organizationComment, loyaltyCardId, loyaltyProgramId, promocodes, }) {
53
53
  return this._requestRunner.performRequest({
54
54
  url: `accounts/${organizationLogin}/orders`,
55
55
  method: 'POST',
@@ -63,6 +63,7 @@ class Orders {
63
63
  organizationComment,
64
64
  loyaltyCardId,
65
65
  loyaltyProgramId,
66
+ promocodes,
66
67
  },
67
68
  });
68
69
  }
package/lib/types.d.ts CHANGED
@@ -288,6 +288,7 @@ export type OrderData = {
288
288
  customerId?: string;
289
289
  loyaltyCardId?: string;
290
290
  loyaltyProgramId?: string;
291
+ promocodes?: Array<string>;
291
292
  };
292
293
  export type OrderItem = {
293
294
  type: 'service' | 'product' | 'roomRent' | 'seminar';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.112.12577",
3
+ "version": "1.112.12578",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",