starta.apiclient 1.112.12579 → 1.112.12588

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