starta.apiclient 1.35.855 → 1.35.866
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.
|
@@ -12,6 +12,9 @@ import Integrations from './integrations';
|
|
|
12
12
|
export default class Organizations {
|
|
13
13
|
private _requestRunner;
|
|
14
14
|
constructor(requestRunner: StartaRequestRunner);
|
|
15
|
+
index({ searchTerm }: {
|
|
16
|
+
searchTerm?: string;
|
|
17
|
+
}): Promise<import("../../types").StartaResponse>;
|
|
15
18
|
create(account: any, { login, name, currency, timeZone, orgType }: {
|
|
16
19
|
login: any;
|
|
17
20
|
name: any;
|
|
@@ -15,6 +15,13 @@ var Organizations = /** @class */ (function () {
|
|
|
15
15
|
function Organizations(requestRunner) {
|
|
16
16
|
this._requestRunner = requestRunner;
|
|
17
17
|
}
|
|
18
|
+
Organizations.prototype.index = function (_a) {
|
|
19
|
+
var searchTerm = _a.searchTerm;
|
|
20
|
+
return this._requestRunner.performRequest({
|
|
21
|
+
url: "organizations".concat((0, _helpers_1.buildQuery)({ searchTerm: searchTerm })),
|
|
22
|
+
method: 'GET',
|
|
23
|
+
});
|
|
24
|
+
};
|
|
18
25
|
Organizations.prototype.create = function (account, _a) {
|
|
19
26
|
var login = _a.login, name = _a.name, currency = _a.currency, timeZone = _a.timeZone, orgType = _a.orgType;
|
|
20
27
|
return this._requestRunner.performRequest({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "starta.apiclient",
|
|
3
|
-
"version": "1.35.
|
|
3
|
+
"version": "1.35.866",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"description": "Wrapper for starta.one api",
|
|
6
6
|
"author": "Collaboracia OÜ",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"lib/**/*"
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"axios": "^0.
|
|
18
|
+
"axios": "^0.24.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"prettier": "^2.5.1",
|