starta.apiclient 1.37.1600 → 1.37.1613
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.
|
@@ -78,11 +78,12 @@ export default class Accounts {
|
|
|
78
78
|
from: any;
|
|
79
79
|
to: any;
|
|
80
80
|
status: any;
|
|
81
|
-
product
|
|
82
|
-
type
|
|
83
|
-
id
|
|
84
|
-
executor
|
|
85
|
-
}
|
|
81
|
+
product: {
|
|
82
|
+
type?: any;
|
|
83
|
+
id?: any;
|
|
84
|
+
executor?: any;
|
|
85
|
+
};
|
|
86
|
+
statusOperator?: '$eq' | '$neq';
|
|
86
87
|
}): Promise<import("../types").StartaResponse>;
|
|
87
88
|
resetConfirmations(login: string): Promise<import("../types").StartaResponse>;
|
|
88
89
|
}
|
package/lib/services/accounts.js
CHANGED
|
@@ -194,7 +194,7 @@ var Accounts = /** @class */ (function () {
|
|
|
194
194
|
});
|
|
195
195
|
};
|
|
196
196
|
Accounts.prototype.orders = function (login, _a) {
|
|
197
|
-
var organizationLogin = _a.organizationLogin, from = _a.from, to = _a.to, status = _a.status, _b = _a.product, _c = _b === void 0 ? {
|
|
197
|
+
var organizationLogin = _a.organizationLogin, from = _a.from, to = _a.to, status = _a.status, _b = _a.product, _c = _b === void 0 ? {} : _b, type = _c.type, id = _c.id, executor = _c.executor;
|
|
198
198
|
return this._requestRunner.performRequest({
|
|
199
199
|
url: "accounts/".concat(login, "/orders").concat((0, _helpers_1.buildQuery)({
|
|
200
200
|
organizationLogin: organizationLogin,
|
|
@@ -13,13 +13,14 @@ import Schedules from './schedules';
|
|
|
13
13
|
export default class Organizations {
|
|
14
14
|
private _requestRunner;
|
|
15
15
|
constructor(requestRunner: StartaRequestRunner);
|
|
16
|
-
create(account: any, { login, name, currency, timeZone, orgType, countryIso2 }: {
|
|
17
|
-
login:
|
|
18
|
-
name:
|
|
19
|
-
currency:
|
|
20
|
-
timeZone:
|
|
21
|
-
orgType:
|
|
22
|
-
countryIso2:
|
|
16
|
+
create(account: any, { login, name, currency, timeZone, orgType, countryIso2, answerForHowManyEmployees }: {
|
|
17
|
+
login: string;
|
|
18
|
+
name: string;
|
|
19
|
+
currency: string;
|
|
20
|
+
timeZone: string;
|
|
21
|
+
orgType: 'individual' | 'corporate';
|
|
22
|
+
countryIso2: string;
|
|
23
|
+
answerForHowManyEmployees?: '1' | '2-10' | '10-100' | '100+';
|
|
23
24
|
}): Promise<import("../../types").StartaResponse>;
|
|
24
25
|
delete(ownerLogin: any, organizationLogin: any): Promise<import("../../types").StartaResponse>;
|
|
25
26
|
update(account: any, { name, timeZone }: {
|
|
@@ -17,11 +17,11 @@ var Organizations = /** @class */ (function () {
|
|
|
17
17
|
this._requestRunner = requestRunner;
|
|
18
18
|
}
|
|
19
19
|
Organizations.prototype.create = function (account, _a) {
|
|
20
|
-
var login = _a.login, name = _a.name, currency = _a.currency, timeZone = _a.timeZone, orgType = _a.orgType, countryIso2 = _a.countryIso2;
|
|
20
|
+
var login = _a.login, name = _a.name, currency = _a.currency, timeZone = _a.timeZone, orgType = _a.orgType, countryIso2 = _a.countryIso2, answerForHowManyEmployees = _a.answerForHowManyEmployees;
|
|
21
21
|
return this._requestRunner.performRequest({
|
|
22
22
|
url: "accounts/".concat(account, "/organizations"),
|
|
23
23
|
method: 'POST',
|
|
24
|
-
body: { login: login, name: name, currency: currency, timeZone: timeZone, orgType: orgType, countryIso2: countryIso2 },
|
|
24
|
+
body: { login: login, name: name, currency: currency, timeZone: timeZone, orgType: orgType, countryIso2: countryIso2, answerForHowManyEmployees: answerForHowManyEmployees },
|
|
25
25
|
});
|
|
26
26
|
};
|
|
27
27
|
Organizations.prototype.delete = function (ownerLogin, organizationLogin) {
|