@icepanel/sdk 0.1.2 → 0.1.6
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/README.md +1 -1
- package/dist/cjs/BaseClient.d.ts +7 -9
- package/dist/cjs/BaseClient.js +8 -3
- package/dist/cjs/Client.d.ts +2 -2
- package/dist/cjs/Client.js +1 -1
- package/dist/cjs/IcePanelClient.d.ts +7 -8
- package/dist/cjs/IcePanelClient.js +11 -11
- package/dist/cjs/api/requests/requests.d.ts +62 -142
- package/dist/cjs/api/resources/catalog/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/catalog/client/Client.js +1 -1
- package/dist/cjs/api/resources/catalog/resources/technologies/client/Client.d.ts +2 -71
- package/dist/cjs/api/resources/catalog/resources/technologies/client/Client.js +5 -262
- package/dist/cjs/api/resources/catalog/resources/technologies/types/types.d.ts +0 -12
- package/dist/cjs/api/resources/comments/client/Client.d.ts +7 -5
- package/dist/cjs/api/resources/comments/client/Client.js +25 -28
- package/dist/cjs/api/resources/comments/resources/replies/client/Client.d.ts +5 -3
- package/dist/cjs/api/resources/comments/resources/replies/client/Client.js +23 -26
- package/dist/cjs/api/resources/diagrams/client/Client.d.ts +4 -3
- package/dist/cjs/api/resources/diagrams/client/Client.js +31 -32
- package/dist/cjs/api/resources/diagrams/resources/content/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/diagrams/resources/content/client/Client.js +10 -7
- package/dist/cjs/api/resources/diagrams/resources/export/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/diagrams/resources/export/client/Client.js +7 -5
- package/dist/cjs/api/resources/diagrams/resources/groups/client/Client.d.ts +6 -4
- package/dist/cjs/api/resources/diagrams/resources/groups/client/Client.js +27 -29
- package/dist/cjs/api/resources/domains/client/Client.d.ts +5 -3
- package/dist/cjs/api/resources/domains/client/Client.js +26 -28
- package/dist/cjs/api/resources/drafts/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/drafts/client/Client.js +22 -15
- package/dist/cjs/api/resources/flows/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/flows/client/Client.js +28 -19
- package/dist/cjs/api/resources/flows/resources/export/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/flows/resources/export/client/Client.js +10 -7
- package/dist/cjs/api/resources/landscapes/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/landscapes/client/Client.js +19 -13
- package/dist/cjs/api/resources/landscapes/resources/export/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/landscapes/resources/export/client/Client.js +7 -5
- package/dist/cjs/api/resources/landscapes/resources/logs/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/landscapes/resources/logs/client/Client.js +10 -7
- package/dist/cjs/api/resources/landscapes/resources/logs/resources/stats/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/landscapes/resources/logs/resources/stats/client/Client.js +7 -5
- package/dist/cjs/api/resources/model/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/model/client/Client.js +1 -1
- package/dist/cjs/api/resources/model/resources/connections/client/Client.d.ts +28 -5
- package/dist/cjs/api/resources/model/resources/connections/client/Client.js +95 -17
- package/dist/cjs/api/resources/model/resources/connections/resources/export/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/model/resources/connections/resources/export/client/Client.js +6 -4
- package/dist/cjs/api/resources/model/resources/connections/types/types.d.ts +6 -0
- package/dist/cjs/api/resources/model/resources/objects/client/Client.d.ts +6 -4
- package/dist/cjs/api/resources/model/resources/objects/client/Client.js +24 -27
- package/dist/cjs/api/resources/model/resources/objects/resources/export/client/Client.d.ts +3 -3
- package/dist/cjs/api/resources/model/resources/objects/resources/export/client/Client.js +9 -6
- package/dist/cjs/api/resources/organizations/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/organizations/client/Client.js +16 -11
- package/dist/cjs/api/resources/organizations/resources/landscapes/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/organizations/resources/landscapes/client/Client.js +7 -5
- package/dist/cjs/api/resources/organizations/resources/logs/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/organizations/resources/logs/client/Client.js +7 -5
- package/dist/cjs/api/resources/organizations/resources/logs/resources/stats/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/organizations/resources/logs/resources/stats/client/Client.js +7 -5
- package/dist/cjs/api/resources/organizations/resources/technologies/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/organizations/resources/technologies/client/Client.js +16 -11
- package/dist/cjs/api/resources/organizations/resources/users/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/organizations/resources/users/client/Client.js +10 -7
- package/dist/cjs/api/resources/organizations/resources/users/resources/invites/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/organizations/resources/users/resources/invites/client/Client.js +10 -7
- package/dist/cjs/api/resources/shareLink/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/shareLink/client/Client.js +13 -9
- package/dist/cjs/api/resources/tags/client/Client.d.ts +8 -6
- package/dist/cjs/api/resources/tags/client/Client.js +26 -29
- package/dist/cjs/api/resources/tags/resources/groups/client/Client.d.ts +7 -5
- package/dist/cjs/api/resources/tags/resources/groups/client/Client.js +25 -28
- package/dist/cjs/api/resources/teams/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/teams/client/Client.js +22 -15
- package/dist/cjs/api/resources/versions/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/versions/client/Client.js +16 -11
- package/dist/cjs/api/resources/versions/resources/reverts/client/Client.d.ts +2 -2
- package/dist/cjs/api/resources/versions/resources/reverts/client/Client.js +13 -9
- package/dist/cjs/api/types/types.d.ts +187 -1487
- package/dist/cjs/api/types/types.js +14 -329
- package/dist/cjs/auth/AnyAuthProvider.d.ts +23 -0
- package/dist/cjs/auth/AnyAuthProvider.js +46 -0
- package/dist/cjs/auth/BearerAuthProvider.d.ts +23 -0
- package/dist/cjs/auth/BearerAuthProvider.js +82 -0
- package/dist/cjs/auth/HeaderAuthProvider.d.ts +17 -10
- package/dist/cjs/auth/HeaderAuthProvider.js +22 -9
- package/dist/cjs/auth/index.d.ts +2 -0
- package/dist/cjs/auth/index.js +5 -1
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +2 -2
- package/dist/cjs/environments.d.ts +2 -2
- package/dist/cjs/environments.js +1 -1
- package/dist/cjs/helpers/index.d.ts +1 -1
- package/dist/cjs/helpers/index.js +1 -1
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +7 -9
- package/dist/esm/BaseClient.mjs +8 -3
- package/dist/esm/Client.d.mts +2 -2
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/IcePanelClient.d.mts +7 -8
- package/dist/esm/IcePanelClient.mjs +10 -10
- package/dist/esm/api/requests/requests.d.mts +62 -142
- package/dist/esm/api/resources/catalog/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/catalog/client/Client.mjs +2 -2
- package/dist/esm/api/resources/catalog/resources/technologies/client/Client.d.mts +2 -71
- package/dist/esm/api/resources/catalog/resources/technologies/client/Client.mjs +6 -263
- package/dist/esm/api/resources/catalog/resources/technologies/types/types.d.mts +0 -12
- package/dist/esm/api/resources/comments/client/Client.d.mts +7 -5
- package/dist/esm/api/resources/comments/client/Client.mjs +26 -29
- package/dist/esm/api/resources/comments/resources/replies/client/Client.d.mts +5 -3
- package/dist/esm/api/resources/comments/resources/replies/client/Client.mjs +24 -27
- package/dist/esm/api/resources/diagrams/client/Client.d.mts +4 -3
- package/dist/esm/api/resources/diagrams/client/Client.mjs +32 -33
- package/dist/esm/api/resources/diagrams/resources/content/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/diagrams/resources/content/client/Client.mjs +11 -8
- package/dist/esm/api/resources/diagrams/resources/export/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/diagrams/resources/export/client/Client.mjs +8 -6
- package/dist/esm/api/resources/diagrams/resources/groups/client/Client.d.mts +6 -4
- package/dist/esm/api/resources/diagrams/resources/groups/client/Client.mjs +28 -30
- package/dist/esm/api/resources/domains/client/Client.d.mts +5 -3
- package/dist/esm/api/resources/domains/client/Client.mjs +27 -29
- package/dist/esm/api/resources/drafts/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/drafts/client/Client.mjs +23 -16
- package/dist/esm/api/resources/flows/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/flows/client/Client.mjs +29 -20
- package/dist/esm/api/resources/flows/resources/export/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/flows/resources/export/client/Client.mjs +11 -8
- package/dist/esm/api/resources/landscapes/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/landscapes/client/Client.mjs +20 -14
- package/dist/esm/api/resources/landscapes/resources/export/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/landscapes/resources/export/client/Client.mjs +8 -6
- package/dist/esm/api/resources/landscapes/resources/logs/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/landscapes/resources/logs/client/Client.mjs +11 -8
- package/dist/esm/api/resources/landscapes/resources/logs/resources/stats/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/landscapes/resources/logs/resources/stats/client/Client.mjs +8 -6
- package/dist/esm/api/resources/model/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/model/client/Client.mjs +2 -2
- package/dist/esm/api/resources/model/resources/connections/client/Client.d.mts +28 -5
- package/dist/esm/api/resources/model/resources/connections/client/Client.mjs +96 -18
- package/dist/esm/api/resources/model/resources/connections/resources/export/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/model/resources/connections/resources/export/client/Client.mjs +7 -5
- package/dist/esm/api/resources/model/resources/connections/types/types.d.mts +6 -0
- package/dist/esm/api/resources/model/resources/objects/client/Client.d.mts +6 -4
- package/dist/esm/api/resources/model/resources/objects/client/Client.mjs +25 -28
- package/dist/esm/api/resources/model/resources/objects/resources/export/client/Client.d.mts +3 -3
- package/dist/esm/api/resources/model/resources/objects/resources/export/client/Client.mjs +10 -7
- package/dist/esm/api/resources/organizations/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/organizations/client/Client.mjs +17 -12
- package/dist/esm/api/resources/organizations/resources/landscapes/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/organizations/resources/landscapes/client/Client.mjs +8 -6
- package/dist/esm/api/resources/organizations/resources/logs/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/organizations/resources/logs/client/Client.mjs +8 -6
- package/dist/esm/api/resources/organizations/resources/logs/resources/stats/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/organizations/resources/logs/resources/stats/client/Client.mjs +8 -6
- package/dist/esm/api/resources/organizations/resources/technologies/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/organizations/resources/technologies/client/Client.mjs +17 -12
- package/dist/esm/api/resources/organizations/resources/users/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/organizations/resources/users/client/Client.mjs +11 -8
- package/dist/esm/api/resources/organizations/resources/users/resources/invites/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/organizations/resources/users/resources/invites/client/Client.mjs +11 -8
- package/dist/esm/api/resources/shareLink/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/shareLink/client/Client.mjs +14 -10
- package/dist/esm/api/resources/tags/client/Client.d.mts +8 -6
- package/dist/esm/api/resources/tags/client/Client.mjs +27 -30
- package/dist/esm/api/resources/tags/resources/groups/client/Client.d.mts +7 -5
- package/dist/esm/api/resources/tags/resources/groups/client/Client.mjs +26 -29
- package/dist/esm/api/resources/teams/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/teams/client/Client.mjs +23 -16
- package/dist/esm/api/resources/versions/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/versions/client/Client.mjs +17 -12
- package/dist/esm/api/resources/versions/resources/reverts/client/Client.d.mts +2 -2
- package/dist/esm/api/resources/versions/resources/reverts/client/Client.mjs +14 -10
- package/dist/esm/api/types/types.d.mts +187 -1487
- package/dist/esm/api/types/types.mjs +11 -325
- package/dist/esm/auth/AnyAuthProvider.d.mts +23 -0
- package/dist/esm/auth/AnyAuthProvider.mjs +42 -0
- package/dist/esm/auth/BearerAuthProvider.d.mts +23 -0
- package/dist/esm/auth/BearerAuthProvider.mjs +45 -0
- package/dist/esm/auth/HeaderAuthProvider.d.mts +17 -10
- package/dist/esm/auth/HeaderAuthProvider.mjs +22 -9
- package/dist/esm/auth/index.d.mts +2 -0
- package/dist/esm/auth/index.mjs +2 -0
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +2 -2
- package/dist/esm/environments.d.mts +2 -2
- package/dist/esm/environments.mjs +1 -1
- package/dist/esm/helpers/index.d.mts +1 -1
- package/dist/esm/helpers/index.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +107 -280
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
import {
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
12
12
|
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
13
13
|
import * as core from "../../../../core/index.mjs";
|
|
14
14
|
import * as environments from "../../../../environments.mjs";
|
|
@@ -21,7 +21,7 @@ import { TechnologiesClient } from "../resources/technologies/client/Client.mjs"
|
|
|
21
21
|
import { UsersClient } from "../resources/users/client/Client.mjs";
|
|
22
22
|
export class OrganizationsClient {
|
|
23
23
|
constructor(options = {}) {
|
|
24
|
-
this._options =
|
|
24
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
25
25
|
}
|
|
26
26
|
get landscapes() {
|
|
27
27
|
var _a;
|
|
@@ -62,9 +62,10 @@ export class OrganizationsClient {
|
|
|
62
62
|
if (admin != null) {
|
|
63
63
|
_queryParams.admin = admin.toString();
|
|
64
64
|
}
|
|
65
|
-
const
|
|
65
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
66
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
66
67
|
const _response = yield core.fetcher({
|
|
67
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.
|
|
68
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, "organizations"),
|
|
68
69
|
method: "GET",
|
|
69
70
|
headers: _headers,
|
|
70
71
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -120,9 +121,10 @@ export class OrganizationsClient {
|
|
|
120
121
|
__create(request, requestOptions) {
|
|
121
122
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122
123
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
123
|
-
const
|
|
124
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
125
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
124
126
|
const _response = yield core.fetcher({
|
|
125
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.
|
|
127
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, "organizations"),
|
|
126
128
|
method: "POST",
|
|
127
129
|
headers: _headers,
|
|
128
130
|
contentType: "application/json",
|
|
@@ -182,9 +184,10 @@ export class OrganizationsClient {
|
|
|
182
184
|
return __awaiter(this, void 0, void 0, function* () {
|
|
183
185
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
184
186
|
const { organizationId } = request;
|
|
185
|
-
const
|
|
187
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
188
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
186
189
|
const _response = yield core.fetcher({
|
|
187
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.
|
|
190
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}`),
|
|
188
191
|
method: "GET",
|
|
189
192
|
headers: _headers,
|
|
190
193
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -238,9 +241,10 @@ export class OrganizationsClient {
|
|
|
238
241
|
return __awaiter(this, void 0, void 0, function* () {
|
|
239
242
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
240
243
|
const { organizationId } = request;
|
|
241
|
-
const
|
|
244
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
245
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
242
246
|
const _response = yield core.fetcher({
|
|
243
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.
|
|
247
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}`),
|
|
244
248
|
method: "DELETE",
|
|
245
249
|
headers: _headers,
|
|
246
250
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -299,9 +303,10 @@ export class OrganizationsClient {
|
|
|
299
303
|
return __awaiter(this, void 0, void 0, function* () {
|
|
300
304
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
301
305
|
const { organizationId, body: _body } = request;
|
|
302
|
-
const
|
|
306
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
307
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
303
308
|
const _response = yield core.fetcher({
|
|
304
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.
|
|
309
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}`),
|
|
305
310
|
method: "PATCH",
|
|
306
311
|
headers: _headers,
|
|
307
312
|
contentType: "application/json",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.mjs";
|
|
2
|
-
import { type
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
3
3
|
import * as core from "../../../../../../core/index.mjs";
|
|
4
4
|
import * as IcePanel from "../../../../../index.mjs";
|
|
5
5
|
export declare namespace LandscapesClient {
|
|
@@ -8,7 +8,7 @@ export declare namespace LandscapesClient {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
export declare class LandscapesClient {
|
|
11
|
-
protected readonly _options:
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<LandscapesClient.Options>;
|
|
12
12
|
constructor(options?: LandscapesClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* @param {IcePanel.OrganizationLandscapesListRequest} request
|
|
@@ -19,7 +19,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
19
19
|
}
|
|
20
20
|
return t;
|
|
21
21
|
};
|
|
22
|
-
import {
|
|
22
|
+
import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
23
23
|
import { mergeHeaders } from "../../../../../../core/headers.mjs";
|
|
24
24
|
import * as core from "../../../../../../core/index.mjs";
|
|
25
25
|
import * as environments from "../../../../../../environments.mjs";
|
|
@@ -28,7 +28,7 @@ import * as errors from "../../../../../../errors/index.mjs";
|
|
|
28
28
|
import * as IcePanel from "../../../../../index.mjs";
|
|
29
29
|
export class LandscapesClient {
|
|
30
30
|
constructor(options = {}) {
|
|
31
|
-
this._options =
|
|
31
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
32
32
|
}
|
|
33
33
|
/**
|
|
34
34
|
* @param {IcePanel.OrganizationLandscapesListRequest} request
|
|
@@ -50,9 +50,10 @@ export class LandscapesClient {
|
|
|
50
50
|
return __awaiter(this, void 0, void 0, function* () {
|
|
51
51
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
52
52
|
const { organizationId } = request;
|
|
53
|
-
const
|
|
53
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
54
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
54
55
|
const _response = yield core.fetcher({
|
|
55
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.
|
|
56
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/landscapes`),
|
|
56
57
|
method: "GET",
|
|
57
58
|
headers: _headers,
|
|
58
59
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -111,9 +112,10 @@ export class LandscapesClient {
|
|
|
111
112
|
return __awaiter(this, void 0, void 0, function* () {
|
|
112
113
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
113
114
|
const { organizationId } = request, _body = __rest(request, ["organizationId"]);
|
|
114
|
-
const
|
|
115
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
116
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
115
117
|
const _response = yield core.fetcher({
|
|
116
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.
|
|
118
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/landscapes`),
|
|
117
119
|
method: "POST",
|
|
118
120
|
headers: _headers,
|
|
119
121
|
contentType: "application/json",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.mjs";
|
|
2
|
-
import { type
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
3
3
|
import * as core from "../../../../../../core/index.mjs";
|
|
4
4
|
import * as IcePanel from "../../../../../index.mjs";
|
|
5
5
|
import { StatsClient } from "../resources/stats/client/Client.mjs";
|
|
@@ -9,7 +9,7 @@ export declare namespace LogsClient {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
export declare class LogsClient {
|
|
12
|
-
protected readonly _options:
|
|
12
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<LogsClient.Options>;
|
|
13
13
|
protected _stats: StatsClient | undefined;
|
|
14
14
|
constructor(options?: LogsClient.Options);
|
|
15
15
|
get stats(): StatsClient;
|
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
import {
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
12
12
|
import { mergeHeaders } from "../../../../../../core/headers.mjs";
|
|
13
13
|
import * as core from "../../../../../../core/index.mjs";
|
|
14
14
|
import * as environments from "../../../../../../environments.mjs";
|
|
@@ -18,7 +18,7 @@ import * as IcePanel from "../../../../../index.mjs";
|
|
|
18
18
|
import { StatsClient } from "../resources/stats/client/Client.mjs";
|
|
19
19
|
export class LogsClient {
|
|
20
20
|
constructor(options = {}) {
|
|
21
|
-
this._options =
|
|
21
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
22
22
|
}
|
|
23
23
|
get stats() {
|
|
24
24
|
var _a;
|
|
@@ -52,9 +52,10 @@ export class LogsClient {
|
|
|
52
52
|
if (filter != null) {
|
|
53
53
|
_queryParams.filter = filter;
|
|
54
54
|
}
|
|
55
|
-
const
|
|
55
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
56
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
56
57
|
const _response = yield core.fetcher({
|
|
57
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.
|
|
58
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/logs`),
|
|
58
59
|
method: "GET",
|
|
59
60
|
headers: _headers,
|
|
60
61
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -119,9 +120,10 @@ export class LogsClient {
|
|
|
119
120
|
return __awaiter(this, void 0, void 0, function* () {
|
|
120
121
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
121
122
|
const { organizationId, organizationLogId } = request;
|
|
122
|
-
const
|
|
123
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
124
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
123
125
|
const _response = yield core.fetcher({
|
|
124
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.
|
|
126
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/logs/${core.url.encodePathParam(organizationLogId)}`),
|
|
125
127
|
method: "GET",
|
|
126
128
|
headers: _headers,
|
|
127
129
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
package/dist/esm/api/resources/organizations/resources/logs/resources/stats/client/Client.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../BaseClient.mjs";
|
|
2
|
-
import { type
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../BaseClient.mjs";
|
|
3
3
|
import * as core from "../../../../../../../../core/index.mjs";
|
|
4
4
|
import * as IcePanel from "../../../../../../../index.mjs";
|
|
5
5
|
export declare namespace StatsClient {
|
|
@@ -8,7 +8,7 @@ export declare namespace StatsClient {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
export declare class StatsClient {
|
|
11
|
-
protected readonly _options:
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<StatsClient.Options>;
|
|
12
12
|
constructor(options?: StatsClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* List total counts of actions for each action type (e.g. diagram-content-update, model-object-create)
|
package/dist/esm/api/resources/organizations/resources/logs/resources/stats/client/Client.mjs
CHANGED
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
import {
|
|
11
|
+
import { normalizeClientOptionsWithAuth, } from "../../../../../../../../BaseClient.mjs";
|
|
12
12
|
import { mergeHeaders } from "../../../../../../../../core/headers.mjs";
|
|
13
13
|
import * as core from "../../../../../../../../core/index.mjs";
|
|
14
14
|
import * as environments from "../../../../../../../../environments.mjs";
|
|
@@ -17,7 +17,7 @@ import * as errors from "../../../../../../../../errors/index.mjs";
|
|
|
17
17
|
import * as IcePanel from "../../../../../../../index.mjs";
|
|
18
18
|
export class StatsClient {
|
|
19
19
|
constructor(options = {}) {
|
|
20
|
-
this._options =
|
|
20
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* List total counts of actions for each action type (e.g. diagram-content-update, model-object-create)
|
|
@@ -50,9 +50,10 @@ export class StatsClient {
|
|
|
50
50
|
if (period != null) {
|
|
51
51
|
_queryParams.period = period;
|
|
52
52
|
}
|
|
53
|
-
const
|
|
53
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
54
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
54
55
|
const _response = yield core.fetcher({
|
|
55
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.
|
|
56
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/logs/stats/by-type`),
|
|
56
57
|
method: "GET",
|
|
57
58
|
headers: _headers,
|
|
58
59
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -123,9 +124,10 @@ export class StatsClient {
|
|
|
123
124
|
if (period != null) {
|
|
124
125
|
_queryParams.period = period;
|
|
125
126
|
}
|
|
126
|
-
const
|
|
127
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
128
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
127
129
|
const _response = yield core.fetcher({
|
|
128
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.
|
|
130
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/logs/stats/by-entity`),
|
|
129
131
|
method: "GET",
|
|
130
132
|
headers: _headers,
|
|
131
133
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.mjs";
|
|
2
|
-
import { type
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
3
3
|
import * as core from "../../../../../../core/index.mjs";
|
|
4
4
|
import * as IcePanel from "../../../../../index.mjs";
|
|
5
5
|
export declare namespace TechnologiesClient {
|
|
@@ -8,7 +8,7 @@ export declare namespace TechnologiesClient {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
export declare class TechnologiesClient {
|
|
11
|
-
protected readonly _options:
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<TechnologiesClient.Options>;
|
|
12
12
|
constructor(options?: TechnologiesClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* @param {IcePanel.OrganizationTechnologiesListRequest} request
|
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
import {
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
12
12
|
import { mergeHeaders } from "../../../../../../core/headers.mjs";
|
|
13
13
|
import * as core from "../../../../../../core/index.mjs";
|
|
14
14
|
import * as environments from "../../../../../../environments.mjs";
|
|
@@ -17,7 +17,7 @@ import * as errors from "../../../../../../errors/index.mjs";
|
|
|
17
17
|
import * as IcePanel from "../../../../../index.mjs";
|
|
18
18
|
export class TechnologiesClient {
|
|
19
19
|
constructor(options = {}) {
|
|
20
|
-
this._options =
|
|
20
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* @param {IcePanel.OrganizationTechnologiesListRequest} request
|
|
@@ -44,9 +44,10 @@ export class TechnologiesClient {
|
|
|
44
44
|
if (filter != null) {
|
|
45
45
|
_queryParams.filter = filter;
|
|
46
46
|
}
|
|
47
|
-
const
|
|
47
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
48
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
48
49
|
const _response = yield core.fetcher({
|
|
49
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.
|
|
50
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/technologies`),
|
|
50
51
|
method: "GET",
|
|
51
52
|
headers: _headers,
|
|
52
53
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -109,9 +110,10 @@ export class TechnologiesClient {
|
|
|
109
110
|
return __awaiter(this, void 0, void 0, function* () {
|
|
110
111
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
111
112
|
const { organizationId, body: _body } = request;
|
|
112
|
-
const
|
|
113
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
114
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
113
115
|
const _response = yield core.fetcher({
|
|
114
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.
|
|
116
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/technologies`),
|
|
115
117
|
method: "POST",
|
|
116
118
|
headers: _headers,
|
|
117
119
|
contentType: "application/json",
|
|
@@ -174,9 +176,10 @@ export class TechnologiesClient {
|
|
|
174
176
|
return __awaiter(this, void 0, void 0, function* () {
|
|
175
177
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
176
178
|
const { organizationId, catalogTechnologyId } = request;
|
|
177
|
-
const
|
|
179
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
180
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
178
181
|
const _response = yield core.fetcher({
|
|
179
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.
|
|
182
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/technologies/${core.url.encodePathParam(catalogTechnologyId)}`),
|
|
180
183
|
method: "GET",
|
|
181
184
|
headers: _headers,
|
|
182
185
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -236,9 +239,10 @@ export class TechnologiesClient {
|
|
|
236
239
|
return __awaiter(this, void 0, void 0, function* () {
|
|
237
240
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
238
241
|
const { organizationId, catalogTechnologyId } = request;
|
|
239
|
-
const
|
|
242
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
243
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
240
244
|
const _response = yield core.fetcher({
|
|
241
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.
|
|
245
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/technologies/${core.url.encodePathParam(catalogTechnologyId)}`),
|
|
242
246
|
method: "DELETE",
|
|
243
247
|
headers: _headers,
|
|
244
248
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -296,9 +300,10 @@ export class TechnologiesClient {
|
|
|
296
300
|
return __awaiter(this, void 0, void 0, function* () {
|
|
297
301
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
298
302
|
const { organizationId, catalogTechnologyId, body: _body } = request;
|
|
299
|
-
const
|
|
303
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
304
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
300
305
|
const _response = yield core.fetcher({
|
|
301
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.
|
|
306
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/technologies/${core.url.encodePathParam(catalogTechnologyId)}`),
|
|
302
307
|
method: "PATCH",
|
|
303
308
|
headers: _headers,
|
|
304
309
|
contentType: "application/json",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.mjs";
|
|
2
|
-
import { type
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
3
3
|
import * as core from "../../../../../../core/index.mjs";
|
|
4
4
|
import * as IcePanel from "../../../../../index.mjs";
|
|
5
5
|
import { InvitesClient } from "../resources/invites/client/Client.mjs";
|
|
@@ -9,7 +9,7 @@ export declare namespace UsersClient {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
export declare class UsersClient {
|
|
12
|
-
protected readonly _options:
|
|
12
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<UsersClient.Options>;
|
|
13
13
|
protected _invites: InvitesClient | undefined;
|
|
14
14
|
constructor(options?: UsersClient.Options);
|
|
15
15
|
get invites(): InvitesClient;
|
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
import {
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
12
12
|
import { mergeHeaders } from "../../../../../../core/headers.mjs";
|
|
13
13
|
import * as core from "../../../../../../core/index.mjs";
|
|
14
14
|
import * as environments from "../../../../../../environments.mjs";
|
|
@@ -18,7 +18,7 @@ import * as IcePanel from "../../../../../index.mjs";
|
|
|
18
18
|
import { InvitesClient } from "../resources/invites/client/Client.mjs";
|
|
19
19
|
export class UsersClient {
|
|
20
20
|
constructor(options = {}) {
|
|
21
|
-
this._options =
|
|
21
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
22
22
|
}
|
|
23
23
|
get invites() {
|
|
24
24
|
var _a;
|
|
@@ -45,9 +45,10 @@ export class UsersClient {
|
|
|
45
45
|
return __awaiter(this, void 0, void 0, function* () {
|
|
46
46
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
47
47
|
const { organizationId } = request;
|
|
48
|
-
const
|
|
48
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
49
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
49
50
|
const _response = yield core.fetcher({
|
|
50
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.
|
|
51
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/users`),
|
|
51
52
|
method: "GET",
|
|
52
53
|
headers: _headers,
|
|
53
54
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -108,9 +109,10 @@ export class UsersClient {
|
|
|
108
109
|
return __awaiter(this, void 0, void 0, function* () {
|
|
109
110
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
110
111
|
const { organizationId, userId } = request;
|
|
111
|
-
const
|
|
112
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
113
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
112
114
|
const _response = yield core.fetcher({
|
|
113
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.
|
|
115
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/users/${core.url.encodePathParam(userId)}`),
|
|
114
116
|
method: "DELETE",
|
|
115
117
|
headers: _headers,
|
|
116
118
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -174,9 +176,10 @@ export class UsersClient {
|
|
|
174
176
|
return __awaiter(this, void 0, void 0, function* () {
|
|
175
177
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
176
178
|
const { organizationId, userId, body: _body } = request;
|
|
177
|
-
const
|
|
179
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
180
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
178
181
|
const _response = yield core.fetcher({
|
|
179
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.
|
|
182
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/users/${core.url.encodePathParam(userId)}`),
|
|
180
183
|
method: "PATCH",
|
|
181
184
|
headers: _headers,
|
|
182
185
|
contentType: "application/json",
|
package/dist/esm/api/resources/organizations/resources/users/resources/invites/client/Client.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../../../BaseClient.mjs";
|
|
2
|
-
import { type
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../../../BaseClient.mjs";
|
|
3
3
|
import * as core from "../../../../../../../../core/index.mjs";
|
|
4
4
|
import * as IcePanel from "../../../../../../../index.mjs";
|
|
5
5
|
export declare namespace InvitesClient {
|
|
@@ -8,7 +8,7 @@ export declare namespace InvitesClient {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
export declare class InvitesClient {
|
|
11
|
-
protected readonly _options:
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<InvitesClient.Options>;
|
|
12
12
|
constructor(options?: InvitesClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* @param {IcePanel.OrganizationUserInvitesListRequest} request
|
package/dist/esm/api/resources/organizations/resources/users/resources/invites/client/Client.mjs
CHANGED
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
import {
|
|
11
|
+
import { normalizeClientOptionsWithAuth, } from "../../../../../../../../BaseClient.mjs";
|
|
12
12
|
import { mergeHeaders } from "../../../../../../../../core/headers.mjs";
|
|
13
13
|
import * as core from "../../../../../../../../core/index.mjs";
|
|
14
14
|
import * as environments from "../../../../../../../../environments.mjs";
|
|
@@ -17,7 +17,7 @@ import * as errors from "../../../../../../../../errors/index.mjs";
|
|
|
17
17
|
import * as IcePanel from "../../../../../../../index.mjs";
|
|
18
18
|
export class InvitesClient {
|
|
19
19
|
constructor(options = {}) {
|
|
20
|
-
this._options =
|
|
20
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* @param {IcePanel.OrganizationUserInvitesListRequest} request
|
|
@@ -40,9 +40,10 @@ export class InvitesClient {
|
|
|
40
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
41
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
42
42
|
const { organizationId } = request;
|
|
43
|
-
const
|
|
43
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
44
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
44
45
|
const _response = yield core.fetcher({
|
|
45
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.
|
|
46
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/users/invites`),
|
|
46
47
|
method: "GET",
|
|
47
48
|
headers: _headers,
|
|
48
49
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -108,9 +109,10 @@ export class InvitesClient {
|
|
|
108
109
|
return __awaiter(this, void 0, void 0, function* () {
|
|
109
110
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
110
111
|
const { organizationId, body: _body } = request;
|
|
111
|
-
const
|
|
112
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
113
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
112
114
|
const _response = yield core.fetcher({
|
|
113
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.
|
|
115
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/users/invites`),
|
|
114
116
|
method: "POST",
|
|
115
117
|
headers: _headers,
|
|
116
118
|
contentType: "application/json",
|
|
@@ -177,9 +179,10 @@ export class InvitesClient {
|
|
|
177
179
|
return __awaiter(this, void 0, void 0, function* () {
|
|
178
180
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
179
181
|
const { organizationId, organizationUserInviteId } = request;
|
|
180
|
-
const
|
|
182
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
183
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
181
184
|
const _response = yield core.fetcher({
|
|
182
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.
|
|
185
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/users/invites/${core.url.encodePathParam(organizationUserInviteId)}`),
|
|
183
186
|
method: "POST",
|
|
184
187
|
headers: _headers,
|
|
185
188
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
|
-
import { type
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
3
3
|
import * as core from "../../../../core/index.mjs";
|
|
4
4
|
import * as IcePanel from "../../../index.mjs";
|
|
5
5
|
export declare namespace ShareLinkClient {
|
|
@@ -8,7 +8,7 @@ export declare namespace ShareLinkClient {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
export declare class ShareLinkClient {
|
|
11
|
-
protected readonly _options:
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<ShareLinkClient.Options>;
|
|
12
12
|
constructor(options?: ShareLinkClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* @param {IcePanel.ShareLinkFindRequest} request
|