starta.apiclient 1.37.1113 → 1.37.1132

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.
@@ -3,5 +3,7 @@ export default class EmailConfirmations {
3
3
  private _requestRunner;
4
4
  constructor(requestRunner: StartaRequestRunner);
5
5
  confirm(confirmEmailToken: any): Promise<import("../types").StartaResponse>;
6
- create(): Promise<import("../types").StartaResponse>;
6
+ create({ email }: {
7
+ email: any;
8
+ }): Promise<import("../types").StartaResponse>;
7
9
  }
@@ -11,11 +11,14 @@ var EmailConfirmations = /** @class */ (function () {
11
11
  body: {},
12
12
  });
13
13
  };
14
- EmailConfirmations.prototype.create = function () {
14
+ EmailConfirmations.prototype.create = function (_a) {
15
+ var email = _a.email;
15
16
  return this._requestRunner.performRequest({
16
17
  url: "emailConfirmations",
17
18
  method: 'POST',
18
- body: {},
19
+ body: {
20
+ email: email
21
+ },
19
22
  });
20
23
  };
21
24
  return EmailConfirmations;
@@ -19,7 +19,7 @@ export default class Orders {
19
19
  skipOrderId: any;
20
20
  scheduleId: any;
21
21
  }): Promise<import("../../types").StartaResponse>;
22
- get(organizationLogin: any, orderId: any): Promise<import("../../types").StartaResponse>;
22
+ get(organizationOrCustomerLogin: any, orderId: any): Promise<import("../../types").StartaResponse>;
23
23
  add(organizationLogin: any, { product: { type, id, executor }, starttime, endtime, customerId, price, duration, scheduleId, status, repeatSettings }: {
24
24
  product: {
25
25
  type: any;
@@ -50,4 +50,7 @@ export default class Orders {
50
50
  repeatSettings?: OrderRepeatSettings;
51
51
  }): Promise<import("../../types").StartaResponse>;
52
52
  delete(organizationLogin: any, orderId: any): Promise<import("../../types").StartaResponse>;
53
+ setConfirmation(organizationOrCustomerLogin: any, orderId: any, { isConfirmed }: {
54
+ isConfirmed: any;
55
+ }): Promise<import("../../types").StartaResponse>;
53
56
  }
@@ -30,9 +30,9 @@ var Orders = /** @class */ (function () {
30
30
  method: 'GET',
31
31
  });
32
32
  };
33
- Orders.prototype.get = function (organizationLogin, orderId) {
33
+ Orders.prototype.get = function (organizationOrCustomerLogin, orderId) {
34
34
  return this._requestRunner.performRequest({
35
- url: "accounts/".concat(organizationLogin, "/orders/").concat(orderId),
35
+ url: "accounts/".concat(organizationOrCustomerLogin, "/orders/").concat(orderId),
36
36
  method: 'GET',
37
37
  });
38
38
  };
@@ -77,6 +77,16 @@ var Orders = /** @class */ (function () {
77
77
  method: 'DELETE',
78
78
  });
79
79
  };
80
+ Orders.prototype.setConfirmation = function (organizationOrCustomerLogin, orderId, _a) {
81
+ var isConfirmed = _a.isConfirmed;
82
+ return this._requestRunner.performRequest({
83
+ url: "accounts/".concat(organizationOrCustomerLogin, "/orders/").concat(orderId, "/confirmation"),
84
+ method: 'PUT',
85
+ body: {
86
+ isConfirmed: isConfirmed
87
+ }
88
+ });
89
+ };
80
90
  return Orders;
81
91
  }());
82
92
  exports.default = Orders;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.37.1113",
3
+ "version": "1.37.1132",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",