starta.apiclient 1.35.887 → 1.35.891

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.
@@ -25,24 +25,24 @@ export default class Orders {
25
25
  product: {
26
26
  type: any;
27
27
  id: any;
28
- executor: any;
28
+ executor?: any;
29
29
  };
30
30
  starttime: any;
31
31
  endtime?: any;
32
32
  customerId: any;
33
- scheduleId: any;
33
+ scheduleId?: any;
34
34
  status?: OrderStatus;
35
35
  }): Promise<import("../../types").StartaResponse>;
36
36
  update(organizationLogin: any, orderId: any, { product: { type, id, executor }, starttime, endtime, customerId, scheduleId, status }: {
37
37
  product: {
38
38
  type: any;
39
39
  id: any;
40
- executor: any;
40
+ executor?: any;
41
41
  };
42
42
  starttime: any;
43
43
  endtime?: any;
44
44
  customerId: any;
45
- scheduleId: any;
45
+ scheduleId?: any;
46
46
  status?: OrderStatus;
47
47
  }): Promise<import("../../types").StartaResponse>;
48
48
  delete(organizationLogin: any, orderId: any): Promise<import("../../types").StartaResponse>;
@@ -3,7 +3,12 @@ export default class Public {
3
3
  private _requestRunner;
4
4
  constructor(requestRunner: StartaRequestRunner);
5
5
  info(organizationLogin: any): Promise<import("../../types").StartaResponse>;
6
- getAvailableTimeSlots(organizationLogin: any, serviceId: any, executor: any, month: any): Promise<import("../../types").StartaResponse>;
6
+ getAvailableTimeSlots(organizationLogin: any, { serviceId, executor, month, scheduleId }: {
7
+ serviceId: any;
8
+ executor: any;
9
+ month: any;
10
+ scheduleId: any;
11
+ }): Promise<import("../../types").StartaResponse>;
7
12
  getOrder(organizationLogin: any, orderId: any): Promise<import("../../types").StartaResponse>;
8
13
  cancelOrder(organizationLogin: any, orderId: any): Promise<import("../../types").StartaResponse>;
9
14
  getOrders(organizationLogin: any): Promise<import("../../types").StartaResponse>;
@@ -1,5 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ var _helpers_1 = require("../_helpers");
3
4
  var Public = /** @class */ (function () {
4
5
  function Public(requestRunner) {
5
6
  this._requestRunner = requestRunner;
@@ -10,9 +11,15 @@ var Public = /** @class */ (function () {
10
11
  method: 'GET',
11
12
  });
12
13
  };
13
- Public.prototype.getAvailableTimeSlots = function (organizationLogin, serviceId, executor, month) {
14
+ Public.prototype.getAvailableTimeSlots = function (organizationLogin, _a) {
15
+ var serviceId = _a.serviceId, executor = _a.executor, month = _a.month, scheduleId = _a.scheduleId;
14
16
  return this._requestRunner.performRequest({
15
- url: "accounts/".concat(organizationLogin, "/public/availableTimeSlots?serviceId=").concat(serviceId, "&executor=").concat(executor, "&month=").concat(month),
17
+ url: "accounts/".concat(organizationLogin, "/public/availableTimeSlots").concat((0, _helpers_1.buildQuery)({
18
+ serviceId: serviceId,
19
+ executor: executor,
20
+ month: month,
21
+ scheduleId: scheduleId
22
+ })),
16
23
  method: 'GET',
17
24
  });
18
25
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.35.887",
3
+ "version": "1.35.891",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",