starta.apiclient 1.37.3452 → 1.37.3462
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.
- package/lib/services/organizations/index.d.ts +2 -0
- package/lib/services/organizations/index.js +4 -0
- package/lib/services/organizations/public.d.ts +0 -1
- package/lib/services/organizations/public.js +0 -6
- package/lib/services/organizations/warehouseProductCategories.d.ts +15 -0
- package/lib/services/organizations/warehouseProductCategories.js +23 -0
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@ import Schedules from './schedules';
|
|
|
13
13
|
import Worklogs from './worklogs';
|
|
14
14
|
import StartaTransactions from './startaTransactions';
|
|
15
15
|
import Warehouses from './warehouses';
|
|
16
|
+
import WarehouseProductCategories from './warehouseProductCategories';
|
|
16
17
|
export declare type TariffDetails = {
|
|
17
18
|
tariff: 'lite' | 'pro';
|
|
18
19
|
period: 'monthly' | 'yearly';
|
|
@@ -103,5 +104,6 @@ export default class Organizations {
|
|
|
103
104
|
get schedules(): Schedules;
|
|
104
105
|
get worklogs(): Worklogs;
|
|
105
106
|
get warehouses(): Warehouses;
|
|
107
|
+
get warehouseProductCategories(): WarehouseProductCategories;
|
|
106
108
|
get startaTransactions(): StartaTransactions;
|
|
107
109
|
}
|
|
@@ -14,6 +14,7 @@ const schedules_1 = require("./schedules");
|
|
|
14
14
|
const worklogs_1 = require("./worklogs");
|
|
15
15
|
const startaTransactions_1 = require("./startaTransactions");
|
|
16
16
|
const warehouses_1 = require("./warehouses");
|
|
17
|
+
const warehouseProductCategories_1 = require("./warehouseProductCategories");
|
|
17
18
|
const _helpers_1 = require("../_helpers");
|
|
18
19
|
class Organizations {
|
|
19
20
|
constructor(requestRunner) {
|
|
@@ -242,6 +243,9 @@ class Organizations {
|
|
|
242
243
|
get warehouses() {
|
|
243
244
|
return new warehouses_1.default(this._requestRunner);
|
|
244
245
|
}
|
|
246
|
+
get warehouseProductCategories() {
|
|
247
|
+
return new warehouseProductCategories_1.default(this._requestRunner);
|
|
248
|
+
}
|
|
245
249
|
get startaTransactions() {
|
|
246
250
|
return new startaTransactions_1.default(this._requestRunner);
|
|
247
251
|
}
|
|
@@ -42,11 +42,5 @@ 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
|
-
}
|
|
51
45
|
}
|
|
52
46
|
exports.default = Public;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { StartaRequestRunner } from '../../types';
|
|
2
|
+
export default class WarehouseProductCategories {
|
|
3
|
+
private _requestRunner;
|
|
4
|
+
constructor(requestRunner: StartaRequestRunner);
|
|
5
|
+
index(organizationLogin: string): Promise<import("../../types").StartaResponse>;
|
|
6
|
+
set(organizationLogin: string, categories: Array<{
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
children: Array<{
|
|
10
|
+
id: string;
|
|
11
|
+
name: string;
|
|
12
|
+
parentId?: string;
|
|
13
|
+
}>;
|
|
14
|
+
}>): Promise<import("../../types").StartaResponse>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class WarehouseProductCategories {
|
|
4
|
+
constructor(requestRunner) {
|
|
5
|
+
this._requestRunner = requestRunner;
|
|
6
|
+
}
|
|
7
|
+
index(organizationLogin) {
|
|
8
|
+
return this._requestRunner.performRequest({
|
|
9
|
+
url: `accounts/${organizationLogin}/warehouseProductCategories`,
|
|
10
|
+
method: 'GET',
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
set(organizationLogin, categories) {
|
|
14
|
+
return this._requestRunner.performRequest({
|
|
15
|
+
url: `accounts/${organizationLogin}/warehouseProductCategories`,
|
|
16
|
+
method: 'POST',
|
|
17
|
+
body: {
|
|
18
|
+
categories,
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.default = WarehouseProductCategories;
|