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: undefined;
83
- id: undefined;
84
- executor: undefined;
85
- } | undefined;
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
  }
@@ -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 ? { type: undefined, id: undefined, executor: undefined } : _b, type = _c.type, id = _c.id, executor = _c.executor;
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: any;
18
- name: any;
19
- currency: any;
20
- timeZone: any;
21
- orgType: any;
22
- countryIso2: any;
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) {
@@ -6,6 +6,7 @@ export default class Orders {
6
6
  from?: string;
7
7
  to?: string;
8
8
  status?: string;
9
+ statusOperator?: '$eq' | '$neq';
9
10
  product?: {
10
11
  type?: string;
11
12
  id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.37.1600",
3
+ "version": "1.37.1613",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",