starta.apiclient 1.37.3441 → 1.37.3447

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.
@@ -13,9 +13,6 @@ export default class Communications {
13
13
  enabled: boolean;
14
14
  hoursBeforeStart: number;
15
15
  };
16
- orderCreatedByOrg: {
17
- enabled: boolean;
18
- };
19
16
  }): Promise<import("../types").StartaResponse>;
20
17
  getSMSCreditsBalance(organizationLogin: string): Promise<import("../types").StartaResponse>;
21
18
  getSMSCreditsPaymentLink(organizationLogin: string, creditsPackage: 'lite250' | 'lite1100' | 'pro250' | 'pro1100'): Promise<import("../types").StartaResponse>;
@@ -12,7 +12,6 @@ import Integrations from './integrations';
12
12
  import Schedules from './schedules';
13
13
  import Worklogs from './worklogs';
14
14
  import StartaTransactions from './startaTransactions';
15
- import Warehouses from './warehouses';
16
15
  export declare type TariffDetails = {
17
16
  tariff: 'lite' | 'pro';
18
17
  period: 'monthly' | 'yearly';
@@ -102,6 +101,5 @@ export default class Organizations {
102
101
  get integrations(): Integrations;
103
102
  get schedules(): Schedules;
104
103
  get worklogs(): Worklogs;
105
- get warehouses(): Warehouses;
106
104
  get startaTransactions(): StartaTransactions;
107
105
  }
@@ -13,7 +13,6 @@ const integrations_1 = require("./integrations");
13
13
  const schedules_1 = require("./schedules");
14
14
  const worklogs_1 = require("./worklogs");
15
15
  const startaTransactions_1 = require("./startaTransactions");
16
- const warehouses_1 = require("./warehouses");
17
16
  const _helpers_1 = require("../_helpers");
18
17
  class Organizations {
19
18
  constructor(requestRunner) {
@@ -239,9 +238,6 @@ class Organizations {
239
238
  get worklogs() {
240
239
  return new worklogs_1.default(this._requestRunner);
241
240
  }
242
- get warehouses() {
243
- return new warehouses_1.default(this._requestRunner);
244
- }
245
241
  get startaTransactions() {
246
242
  return new startaTransactions_1.default(this._requestRunner);
247
243
  }
@@ -38,4 +38,5 @@ export default class Public {
38
38
  phoneConfirmationCode: string;
39
39
  };
40
40
  }): Promise<import("../../types").StartaResponse>;
41
+ getOrder(organizationLogin: string, orderId: string): Promise<import("../../types").StartaResponse>;
41
42
  }
@@ -42,5 +42,11 @@ class Public {
42
42
  body: { products, starttime, scheduleId, customerInfo },
43
43
  });
44
44
  }
45
+ getOrder(organizationLogin, orderId) {
46
+ return this._requestRunner.performRequest({
47
+ url: `accounts/${organizationLogin}/public/orders/${orderId}`,
48
+ method: 'GET',
49
+ });
50
+ }
45
51
  }
46
52
  exports.default = Public;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.37.3441",
3
+ "version": "1.37.3447",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",
@@ -1,14 +0,0 @@
1
- import { StartaRequestRunner } from '../../types';
2
- export default class Warehouses {
3
- private _requestRunner;
4
- constructor(requestRunner: StartaRequestRunner);
5
- add(organizationLogin: string, { name, type, }: {
6
- name: string;
7
- type: 'forServices' | 'forSales';
8
- }): Promise<import("../../types").StartaResponse>;
9
- update(organizationLogin: string, warehouseId: string, { name, type, }: {
10
- name: string;
11
- type: 'forServices' | 'forSales';
12
- }): Promise<import("../../types").StartaResponse>;
13
- delete(organizationLogin: string, warehouseId: string): Promise<import("../../types").StartaResponse>;
14
- }
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- class Warehouses {
4
- constructor(requestRunner) {
5
- this._requestRunner = requestRunner;
6
- }
7
- add(organizationLogin, { name, type, }) {
8
- return this._requestRunner.performRequest({
9
- url: `accounts/${organizationLogin}/warehouses`,
10
- method: 'POST',
11
- body: {
12
- name,
13
- type,
14
- },
15
- });
16
- }
17
- update(organizationLogin, warehouseId, { name, type, }) {
18
- return this._requestRunner.performRequest({
19
- url: `accounts/${organizationLogin}/warehouses/${warehouseId}`,
20
- method: 'PUT',
21
- body: {
22
- name,
23
- type,
24
- },
25
- });
26
- }
27
- delete(organizationLogin, warehouseId) {
28
- return this._requestRunner.performRequest({
29
- url: `accounts/${organizationLogin}/warehouses/${warehouseId}`,
30
- method: 'DELETE'
31
- });
32
- }
33
- }
34
- exports.default = Warehouses;