@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";
|
|
@@ -17,7 +17,7 @@ import * as errors from "../../../../errors/index.mjs";
|
|
|
17
17
|
import * as IcePanel from "../../../index.mjs";
|
|
18
18
|
export class ShareLinkClient {
|
|
19
19
|
constructor(options = {}) {
|
|
20
|
-
this._options =
|
|
20
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* @param {IcePanel.ShareLinkFindRequest} request
|
|
@@ -41,9 +41,10 @@ export class ShareLinkClient {
|
|
|
41
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
42
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
43
43
|
const { landscapeId, versionId } = request;
|
|
44
|
-
const
|
|
44
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
45
|
+
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);
|
|
45
46
|
const _response = yield core.fetcher({
|
|
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.
|
|
47
|
+
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, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/share-link`),
|
|
47
48
|
method: "GET",
|
|
48
49
|
headers: _headers,
|
|
49
50
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -105,9 +106,10 @@ export class ShareLinkClient {
|
|
|
105
106
|
return __awaiter(this, void 0, void 0, function* () {
|
|
106
107
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
107
108
|
const { landscapeId, versionId, body: _body } = request;
|
|
108
|
-
const
|
|
109
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
110
|
+
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);
|
|
109
111
|
const _response = yield core.fetcher({
|
|
110
|
-
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.
|
|
112
|
+
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, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/share-link`),
|
|
111
113
|
method: "POST",
|
|
112
114
|
headers: _headers,
|
|
113
115
|
contentType: "application/json",
|
|
@@ -171,9 +173,10 @@ export class ShareLinkClient {
|
|
|
171
173
|
return __awaiter(this, void 0, void 0, function* () {
|
|
172
174
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
173
175
|
const { landscapeId, versionId } = request;
|
|
174
|
-
const
|
|
176
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
177
|
+
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);
|
|
175
178
|
const _response = yield core.fetcher({
|
|
176
|
-
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.
|
|
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.ApiV1, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/share-link`),
|
|
177
180
|
method: "DELETE",
|
|
178
181
|
headers: _headers,
|
|
179
182
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -236,9 +239,10 @@ export class ShareLinkClient {
|
|
|
236
239
|
if (resetShortId != null) {
|
|
237
240
|
_queryParams.resetShortId = resetShortId.toString();
|
|
238
241
|
}
|
|
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, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/share-link`),
|
|
242
246
|
method: "PATCH",
|
|
243
247
|
headers: _headers,
|
|
244
248
|
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 { GroupsClient } from "../resources/groups/client/Client.mjs";
|
|
@@ -9,7 +9,7 @@ export declare namespace TagsClient {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
export declare class TagsClient {
|
|
12
|
-
protected readonly _options:
|
|
12
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<TagsClient.Options>;
|
|
13
13
|
protected _groups: GroupsClient | undefined;
|
|
14
14
|
constructor(options?: TagsClient.Options);
|
|
15
15
|
get groups(): GroupsClient;
|
|
@@ -86,10 +86,12 @@ export declare class TagsClient {
|
|
|
86
86
|
* landscapeId: "landscapeId",
|
|
87
87
|
* versionId: "versionId",
|
|
88
88
|
* tagId: "tagId",
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
89
|
+
* body: {
|
|
90
|
+
* color: "blue",
|
|
91
|
+
* groupId: "groupId",
|
|
92
|
+
* index: 1.1,
|
|
93
|
+
* name: "name"
|
|
94
|
+
* }
|
|
93
95
|
* })
|
|
94
96
|
*/
|
|
95
97
|
upsert(request: IcePanel.TagUpsertRequest, requestOptions?: TagsClient.RequestOptions): core.HttpResponsePromise<IcePanel.TagsUpsertResponse>;
|
|
@@ -8,18 +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
|
-
|
|
12
|
-
var t = {};
|
|
13
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
14
|
-
t[p] = s[p];
|
|
15
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
16
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
17
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
18
|
-
t[p[i]] = s[p[i]];
|
|
19
|
-
}
|
|
20
|
-
return t;
|
|
21
|
-
};
|
|
22
|
-
import { normalizeClientOptions } from "../../../../BaseClient.mjs";
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../BaseClient.mjs";
|
|
23
12
|
import { mergeHeaders } from "../../../../core/headers.mjs";
|
|
24
13
|
import * as core from "../../../../core/index.mjs";
|
|
25
14
|
import * as environments from "../../../../environments.mjs";
|
|
@@ -29,7 +18,7 @@ import * as IcePanel from "../../../index.mjs";
|
|
|
29
18
|
import { GroupsClient } from "../resources/groups/client/Client.mjs";
|
|
30
19
|
export class TagsClient {
|
|
31
20
|
constructor(options = {}) {
|
|
32
|
-
this._options =
|
|
21
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
33
22
|
}
|
|
34
23
|
get groups() {
|
|
35
24
|
var _a;
|
|
@@ -61,9 +50,10 @@ export class TagsClient {
|
|
|
61
50
|
if (filter != null) {
|
|
62
51
|
_queryParams.filter = filter;
|
|
63
52
|
}
|
|
64
|
-
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);
|
|
65
55
|
const _response = yield core.fetcher({
|
|
66
|
-
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, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/tags`),
|
|
67
57
|
method: "GET",
|
|
68
58
|
headers: _headers,
|
|
69
59
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -126,9 +116,10 @@ export class TagsClient {
|
|
|
126
116
|
return __awaiter(this, void 0, void 0, function* () {
|
|
127
117
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
128
118
|
const { landscapeId, versionId, body: _body } = request;
|
|
129
|
-
const
|
|
119
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
120
|
+
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);
|
|
130
121
|
const _response = yield core.fetcher({
|
|
131
|
-
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.
|
|
122
|
+
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, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/tags`),
|
|
132
123
|
method: "POST",
|
|
133
124
|
headers: _headers,
|
|
134
125
|
contentType: "application/json",
|
|
@@ -189,9 +180,10 @@ export class TagsClient {
|
|
|
189
180
|
return __awaiter(this, void 0, void 0, function* () {
|
|
190
181
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
191
182
|
const { landscapeId, versionId, tagId } = request;
|
|
192
|
-
const
|
|
183
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
184
|
+
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);
|
|
193
185
|
const _response = yield core.fetcher({
|
|
194
|
-
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.
|
|
186
|
+
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, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/tags/${core.url.encodePathParam(tagId)}`),
|
|
195
187
|
method: "GET",
|
|
196
188
|
headers: _headers,
|
|
197
189
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -241,10 +233,12 @@ export class TagsClient {
|
|
|
241
233
|
* landscapeId: "landscapeId",
|
|
242
234
|
* versionId: "versionId",
|
|
243
235
|
* tagId: "tagId",
|
|
244
|
-
*
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
236
|
+
* body: {
|
|
237
|
+
* color: "blue",
|
|
238
|
+
* groupId: "groupId",
|
|
239
|
+
* index: 1.1,
|
|
240
|
+
* name: "name"
|
|
241
|
+
* }
|
|
248
242
|
* })
|
|
249
243
|
*/
|
|
250
244
|
upsert(request, requestOptions) {
|
|
@@ -253,10 +247,11 @@ export class TagsClient {
|
|
|
253
247
|
__upsert(request, requestOptions) {
|
|
254
248
|
return __awaiter(this, void 0, void 0, function* () {
|
|
255
249
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
256
|
-
const { landscapeId, versionId, tagId
|
|
257
|
-
const
|
|
250
|
+
const { landscapeId, versionId, tagId, body: _body } = request;
|
|
251
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
252
|
+
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);
|
|
258
253
|
const _response = yield core.fetcher({
|
|
259
|
-
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.
|
|
254
|
+
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, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/tags/${core.url.encodePathParam(tagId)}`),
|
|
260
255
|
method: "PUT",
|
|
261
256
|
headers: _headers,
|
|
262
257
|
contentType: "application/json",
|
|
@@ -319,9 +314,10 @@ export class TagsClient {
|
|
|
319
314
|
return __awaiter(this, void 0, void 0, function* () {
|
|
320
315
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
321
316
|
const { landscapeId, versionId, tagId } = request;
|
|
322
|
-
const
|
|
317
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
318
|
+
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);
|
|
323
319
|
const _response = yield core.fetcher({
|
|
324
|
-
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.
|
|
320
|
+
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, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/tags/${core.url.encodePathParam(tagId)}`),
|
|
325
321
|
method: "DELETE",
|
|
326
322
|
headers: _headers,
|
|
327
323
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -381,9 +377,10 @@ export class TagsClient {
|
|
|
381
377
|
return __awaiter(this, void 0, void 0, function* () {
|
|
382
378
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
383
379
|
const { landscapeId, versionId, tagId, body: _body } = request;
|
|
384
|
-
const
|
|
380
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
381
|
+
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);
|
|
385
382
|
const _response = yield core.fetcher({
|
|
386
|
-
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.
|
|
383
|
+
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, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/tags/${core.url.encodePathParam(tagId)}`),
|
|
387
384
|
method: "PATCH",
|
|
388
385
|
headers: _headers,
|
|
389
386
|
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 GroupsClient {
|
|
@@ -8,7 +8,7 @@ export declare namespace GroupsClient {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
export declare class GroupsClient {
|
|
11
|
-
protected readonly _options:
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<GroupsClient.Options>;
|
|
12
12
|
constructor(options?: GroupsClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* @param {IcePanel.TagGroupsListRequest} request
|
|
@@ -83,9 +83,11 @@ export declare class GroupsClient {
|
|
|
83
83
|
* landscapeId: "landscapeId",
|
|
84
84
|
* versionId: "versionId",
|
|
85
85
|
* tagGroupId: "tagGroupId",
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
86
|
+
* body: {
|
|
87
|
+
* icon: "bug",
|
|
88
|
+
* index: 1.1,
|
|
89
|
+
* name: "name"
|
|
90
|
+
* }
|
|
89
91
|
* })
|
|
90
92
|
*/
|
|
91
93
|
upsert(request: IcePanel.TagGroupUpsertRequest, requestOptions?: GroupsClient.RequestOptions): core.HttpResponsePromise<IcePanel.tags.GroupsUpsertResponse>;
|
|
@@ -8,18 +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
|
-
|
|
12
|
-
var t = {};
|
|
13
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
14
|
-
t[p] = s[p];
|
|
15
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
16
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
17
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
18
|
-
t[p[i]] = s[p[i]];
|
|
19
|
-
}
|
|
20
|
-
return t;
|
|
21
|
-
};
|
|
22
|
-
import { normalizeClientOptions } from "../../../../../../BaseClient.mjs";
|
|
11
|
+
import { normalizeClientOptionsWithAuth } from "../../../../../../BaseClient.mjs";
|
|
23
12
|
import { mergeHeaders } from "../../../../../../core/headers.mjs";
|
|
24
13
|
import * as core from "../../../../../../core/index.mjs";
|
|
25
14
|
import * as environments from "../../../../../../environments.mjs";
|
|
@@ -28,7 +17,7 @@ import * as errors from "../../../../../../errors/index.mjs";
|
|
|
28
17
|
import * as IcePanel from "../../../../../index.mjs";
|
|
29
18
|
export class GroupsClient {
|
|
30
19
|
constructor(options = {}) {
|
|
31
|
-
this._options =
|
|
20
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
32
21
|
}
|
|
33
22
|
/**
|
|
34
23
|
* @param {IcePanel.TagGroupsListRequest} request
|
|
@@ -56,9 +45,10 @@ export class GroupsClient {
|
|
|
56
45
|
if (filter != null) {
|
|
57
46
|
_queryParams.filter = filter;
|
|
58
47
|
}
|
|
59
|
-
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);
|
|
60
50
|
const _response = yield core.fetcher({
|
|
61
|
-
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, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/tag-groups`),
|
|
62
52
|
method: "GET",
|
|
63
53
|
headers: _headers,
|
|
64
54
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -121,9 +111,10 @@ export class GroupsClient {
|
|
|
121
111
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122
112
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
123
113
|
const { landscapeId, versionId, body: _body } = request;
|
|
124
|
-
const
|
|
114
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
115
|
+
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);
|
|
125
116
|
const _response = yield core.fetcher({
|
|
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.
|
|
117
|
+
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, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/tag-groups`),
|
|
127
118
|
method: "POST",
|
|
128
119
|
headers: _headers,
|
|
129
120
|
contentType: "application/json",
|
|
@@ -186,9 +177,10 @@ export class GroupsClient {
|
|
|
186
177
|
return __awaiter(this, void 0, void 0, function* () {
|
|
187
178
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
188
179
|
const { landscapeId, versionId, tagGroupId } = request;
|
|
189
|
-
const
|
|
180
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
181
|
+
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);
|
|
190
182
|
const _response = yield core.fetcher({
|
|
191
|
-
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.
|
|
183
|
+
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, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/tag-groups/${core.url.encodePathParam(tagGroupId)}`),
|
|
192
184
|
method: "GET",
|
|
193
185
|
headers: _headers,
|
|
194
186
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -238,9 +230,11 @@ export class GroupsClient {
|
|
|
238
230
|
* landscapeId: "landscapeId",
|
|
239
231
|
* versionId: "versionId",
|
|
240
232
|
* tagGroupId: "tagGroupId",
|
|
241
|
-
*
|
|
242
|
-
*
|
|
243
|
-
*
|
|
233
|
+
* body: {
|
|
234
|
+
* icon: "bug",
|
|
235
|
+
* index: 1.1,
|
|
236
|
+
* name: "name"
|
|
237
|
+
* }
|
|
244
238
|
* })
|
|
245
239
|
*/
|
|
246
240
|
upsert(request, requestOptions) {
|
|
@@ -249,10 +243,11 @@ export class GroupsClient {
|
|
|
249
243
|
__upsert(request, requestOptions) {
|
|
250
244
|
return __awaiter(this, void 0, void 0, function* () {
|
|
251
245
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
252
|
-
const { landscapeId, versionId, tagGroupId
|
|
253
|
-
const
|
|
246
|
+
const { landscapeId, versionId, tagGroupId, body: _body } = request;
|
|
247
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
248
|
+
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);
|
|
254
249
|
const _response = yield core.fetcher({
|
|
255
|
-
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.
|
|
250
|
+
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, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/tag-groups/${core.url.encodePathParam(tagGroupId)}`),
|
|
256
251
|
method: "PUT",
|
|
257
252
|
headers: _headers,
|
|
258
253
|
contentType: "application/json",
|
|
@@ -315,9 +310,10 @@ export class GroupsClient {
|
|
|
315
310
|
return __awaiter(this, void 0, void 0, function* () {
|
|
316
311
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
317
312
|
const { landscapeId, versionId, tagGroupId } = request;
|
|
318
|
-
const
|
|
313
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
314
|
+
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);
|
|
319
315
|
const _response = yield core.fetcher({
|
|
320
|
-
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.
|
|
316
|
+
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, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/tag-groups/${core.url.encodePathParam(tagGroupId)}`),
|
|
321
317
|
method: "DELETE",
|
|
322
318
|
headers: _headers,
|
|
323
319
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -377,9 +373,10 @@ export class GroupsClient {
|
|
|
377
373
|
return __awaiter(this, void 0, void 0, function* () {
|
|
378
374
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
379
375
|
const { landscapeId, versionId, tagGroupId, body: _body } = request;
|
|
380
|
-
const
|
|
376
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
377
|
+
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);
|
|
381
378
|
const _response = yield core.fetcher({
|
|
382
|
-
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.
|
|
379
|
+
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, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/tag-groups/${core.url.encodePathParam(tagGroupId)}`),
|
|
383
380
|
method: "PATCH",
|
|
384
381
|
headers: _headers,
|
|
385
382
|
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 TeamsClient {
|
|
@@ -8,7 +8,7 @@ export declare namespace TeamsClient {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
export declare class TeamsClient {
|
|
11
|
-
protected readonly _options:
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<TeamsClient.Options>;
|
|
12
12
|
constructor(options?: TeamsClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* @param {IcePanel.TeamsListRequest} 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 TeamsClient {
|
|
19
19
|
constructor(options = {}) {
|
|
20
|
-
this._options =
|
|
20
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* @param {IcePanel.TeamsListRequest} request
|
|
@@ -40,9 +40,10 @@ export class TeamsClient {
|
|
|
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)}/teams`),
|
|
46
47
|
method: "GET",
|
|
47
48
|
headers: _headers,
|
|
48
49
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -102,9 +103,10 @@ export class TeamsClient {
|
|
|
102
103
|
return __awaiter(this, void 0, void 0, function* () {
|
|
103
104
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
104
105
|
const { organizationId, body: _body } = request;
|
|
105
|
-
const
|
|
106
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
107
|
+
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);
|
|
106
108
|
const _response = yield core.fetcher({
|
|
107
|
-
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.
|
|
109
|
+
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)}/teams`),
|
|
108
110
|
method: "POST",
|
|
109
111
|
headers: _headers,
|
|
110
112
|
contentType: "application/json",
|
|
@@ -165,9 +167,10 @@ export class TeamsClient {
|
|
|
165
167
|
return __awaiter(this, void 0, void 0, function* () {
|
|
166
168
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
167
169
|
const { organizationId, teamId } = request;
|
|
168
|
-
const
|
|
170
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
171
|
+
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);
|
|
169
172
|
const _response = yield core.fetcher({
|
|
170
|
-
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.
|
|
173
|
+
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)}/teams/${core.url.encodePathParam(teamId)}`),
|
|
171
174
|
method: "GET",
|
|
172
175
|
headers: _headers,
|
|
173
176
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -223,9 +226,10 @@ export class TeamsClient {
|
|
|
223
226
|
return __awaiter(this, void 0, void 0, function* () {
|
|
224
227
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
225
228
|
const { organizationId, teamId } = request;
|
|
226
|
-
const
|
|
229
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
230
|
+
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);
|
|
227
231
|
const _response = yield core.fetcher({
|
|
228
|
-
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.
|
|
232
|
+
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)}/teams/${core.url.encodePathParam(teamId)}`),
|
|
229
233
|
method: "DELETE",
|
|
230
234
|
headers: _headers,
|
|
231
235
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -287,9 +291,10 @@ export class TeamsClient {
|
|
|
287
291
|
return __awaiter(this, void 0, void 0, function* () {
|
|
288
292
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
289
293
|
const { organizationId, teamId, body: _body } = request;
|
|
290
|
-
const
|
|
294
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
295
|
+
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);
|
|
291
296
|
const _response = yield core.fetcher({
|
|
292
|
-
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.
|
|
297
|
+
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)}/teams/${core.url.encodePathParam(teamId)}`),
|
|
293
298
|
method: "PATCH",
|
|
294
299
|
headers: _headers,
|
|
295
300
|
contentType: "application/json",
|
|
@@ -353,9 +358,10 @@ export class TeamsClient {
|
|
|
353
358
|
return __awaiter(this, void 0, void 0, function* () {
|
|
354
359
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
355
360
|
const { organizationId, teamId } = request;
|
|
356
|
-
const
|
|
361
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
362
|
+
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);
|
|
357
363
|
const _response = yield core.fetcher({
|
|
358
|
-
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.
|
|
364
|
+
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)}/teams/${core.url.encodePathParam(teamId)}/landscapes`),
|
|
359
365
|
method: "GET",
|
|
360
366
|
headers: _headers,
|
|
361
367
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -413,9 +419,10 @@ export class TeamsClient {
|
|
|
413
419
|
return __awaiter(this, void 0, void 0, function* () {
|
|
414
420
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
415
421
|
const { organizationId, teamId } = request;
|
|
416
|
-
const
|
|
422
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
423
|
+
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);
|
|
417
424
|
const _response = yield core.fetcher({
|
|
418
|
-
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.
|
|
425
|
+
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)}/teams/${core.url.encodePathParam(teamId)}/model/objects`),
|
|
419
426
|
method: "GET",
|
|
420
427
|
headers: _headers,
|
|
421
428
|
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
|
import { RevertsClient } from "../resources/reverts/client/Client.mjs";
|
|
@@ -9,7 +9,7 @@ export declare namespace VersionsClient {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
export declare class VersionsClient {
|
|
12
|
-
protected readonly _options:
|
|
12
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<VersionsClient.Options>;
|
|
13
13
|
protected _reverts: RevertsClient | undefined;
|
|
14
14
|
constructor(options?: VersionsClient.Options);
|
|
15
15
|
get reverts(): RevertsClient;
|