@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,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.DiagramGroupsListRequest} 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)}/diagram-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),
|
|
@@ -120,9 +110,10 @@ export class GroupsClient {
|
|
|
120
110
|
return __awaiter(this, void 0, void 0, function* () {
|
|
121
111
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
122
112
|
const { landscapeId, versionId, body: _body } = request;
|
|
123
|
-
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);
|
|
124
115
|
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.
|
|
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, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/diagram-groups`),
|
|
126
117
|
method: "POST",
|
|
127
118
|
headers: _headers,
|
|
128
119
|
contentType: "application/json",
|
|
@@ -188,9 +179,10 @@ export class GroupsClient {
|
|
|
188
179
|
return __awaiter(this, void 0, void 0, function* () {
|
|
189
180
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
190
181
|
const { landscapeId, versionId, diagramGroupId } = request;
|
|
191
|
-
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);
|
|
192
184
|
const _response = yield core.fetcher({
|
|
193
|
-
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, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/diagram-groups/${core.url.encodePathParam(diagramGroupId)}`),
|
|
194
186
|
method: "GET",
|
|
195
187
|
headers: _headers,
|
|
196
188
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -242,8 +234,10 @@ export class GroupsClient {
|
|
|
242
234
|
* landscapeId: "landscapeId",
|
|
243
235
|
* versionId: "versionId",
|
|
244
236
|
* diagramGroupId: "diagramGroupId",
|
|
245
|
-
*
|
|
246
|
-
*
|
|
237
|
+
* body: {
|
|
238
|
+
* modelId: "modelId",
|
|
239
|
+
* name: "name"
|
|
240
|
+
* }
|
|
247
241
|
* })
|
|
248
242
|
*/
|
|
249
243
|
upsert(request, requestOptions) {
|
|
@@ -252,10 +246,11 @@ export class GroupsClient {
|
|
|
252
246
|
__upsert(request, requestOptions) {
|
|
253
247
|
return __awaiter(this, void 0, void 0, function* () {
|
|
254
248
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
255
|
-
const { landscapeId, versionId, diagramGroupId
|
|
256
|
-
const
|
|
249
|
+
const { landscapeId, versionId, diagramGroupId, body: _body } = request;
|
|
250
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
251
|
+
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);
|
|
257
252
|
const _response = yield core.fetcher({
|
|
258
|
-
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.
|
|
253
|
+
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)}/diagram-groups/${core.url.encodePathParam(diagramGroupId)}`),
|
|
259
254
|
method: "PUT",
|
|
260
255
|
headers: _headers,
|
|
261
256
|
contentType: "application/json",
|
|
@@ -325,9 +320,10 @@ export class GroupsClient {
|
|
|
325
320
|
return __awaiter(this, void 0, void 0, function* () {
|
|
326
321
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
327
322
|
const { landscapeId, versionId, diagramGroupId } = request;
|
|
328
|
-
const
|
|
323
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
324
|
+
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);
|
|
329
325
|
const _response = yield core.fetcher({
|
|
330
|
-
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.
|
|
326
|
+
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)}/diagram-groups/${core.url.encodePathParam(diagramGroupId)}`),
|
|
331
327
|
method: "DELETE",
|
|
332
328
|
headers: _headers,
|
|
333
329
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -390,9 +386,10 @@ export class GroupsClient {
|
|
|
390
386
|
return __awaiter(this, void 0, void 0, function* () {
|
|
391
387
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
392
388
|
const { landscapeId, versionId, diagramGroupId, body: _body } = request;
|
|
393
|
-
const
|
|
389
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
390
|
+
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);
|
|
394
391
|
const _response = yield core.fetcher({
|
|
395
|
-
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.
|
|
392
|
+
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)}/diagram-groups/${core.url.encodePathParam(diagramGroupId)}`),
|
|
396
393
|
method: "PATCH",
|
|
397
394
|
headers: _headers,
|
|
398
395
|
contentType: "application/json",
|
|
@@ -458,9 +455,10 @@ export class GroupsClient {
|
|
|
458
455
|
return __awaiter(this, void 0, void 0, function* () {
|
|
459
456
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
460
457
|
const { landscapeId, versionId, diagramGroupId } = request;
|
|
461
|
-
const
|
|
458
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
459
|
+
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);
|
|
462
460
|
const _response = yield core.fetcher({
|
|
463
|
-
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.
|
|
461
|
+
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)}/diagram-groups/${core.url.encodePathParam(diagramGroupId)}`),
|
|
464
462
|
method: "HEAD",
|
|
465
463
|
headers: _headers,
|
|
466
464
|
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 DomainsClient {
|
|
@@ -8,7 +8,7 @@ export declare namespace DomainsClient {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
export declare class DomainsClient {
|
|
11
|
-
protected readonly _options:
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<DomainsClient.Options>;
|
|
12
12
|
constructor(options?: DomainsClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* @param {IcePanel.DomainsListRequest} request
|
|
@@ -83,7 +83,9 @@ export declare class DomainsClient {
|
|
|
83
83
|
* landscapeId: "landscapeId",
|
|
84
84
|
* versionId: "versionId",
|
|
85
85
|
* domainId: "domainId",
|
|
86
|
-
*
|
|
86
|
+
* body: {
|
|
87
|
+
* name: "name"
|
|
88
|
+
* }
|
|
87
89
|
* })
|
|
88
90
|
*/
|
|
89
91
|
upsert(request: IcePanel.DomainUpsertRequest, requestOptions?: DomainsClient.RequestOptions): core.HttpResponsePromise<IcePanel.DomainsUpsertResponse>;
|
|
@@ -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 DomainsClient {
|
|
30
19
|
constructor(options = {}) {
|
|
31
|
-
this._options =
|
|
20
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
32
21
|
}
|
|
33
22
|
/**
|
|
34
23
|
* @param {IcePanel.DomainsListRequest} request
|
|
@@ -56,9 +45,10 @@ export class DomainsClient {
|
|
|
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)}/domains`),
|
|
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),
|
|
@@ -119,9 +109,10 @@ export class DomainsClient {
|
|
|
119
109
|
return __awaiter(this, void 0, void 0, function* () {
|
|
120
110
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
121
111
|
const { landscapeId, versionId, body: _body } = request;
|
|
122
|
-
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);
|
|
123
114
|
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.
|
|
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, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/domains`),
|
|
125
116
|
method: "POST",
|
|
126
117
|
headers: _headers,
|
|
127
118
|
contentType: "application/json",
|
|
@@ -184,9 +175,10 @@ export class DomainsClient {
|
|
|
184
175
|
return __awaiter(this, void 0, void 0, function* () {
|
|
185
176
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
186
177
|
const { landscapeId, versionId, domainId } = request;
|
|
187
|
-
const
|
|
178
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
179
|
+
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);
|
|
188
180
|
const _response = yield core.fetcher({
|
|
189
|
-
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.
|
|
181
|
+
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)}/domains/${core.url.encodePathParam(domainId)}`),
|
|
190
182
|
method: "GET",
|
|
191
183
|
headers: _headers,
|
|
192
184
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -238,7 +230,9 @@ export class DomainsClient {
|
|
|
238
230
|
* landscapeId: "landscapeId",
|
|
239
231
|
* versionId: "versionId",
|
|
240
232
|
* domainId: "domainId",
|
|
241
|
-
*
|
|
233
|
+
* body: {
|
|
234
|
+
* name: "name"
|
|
235
|
+
* }
|
|
242
236
|
* })
|
|
243
237
|
*/
|
|
244
238
|
upsert(request, requestOptions) {
|
|
@@ -247,10 +241,11 @@ export class DomainsClient {
|
|
|
247
241
|
__upsert(request, requestOptions) {
|
|
248
242
|
return __awaiter(this, void 0, void 0, function* () {
|
|
249
243
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
250
|
-
const { landscapeId, versionId, domainId
|
|
251
|
-
const
|
|
244
|
+
const { landscapeId, versionId, domainId, body: _body } = request;
|
|
245
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
246
|
+
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);
|
|
252
247
|
const _response = yield core.fetcher({
|
|
253
|
-
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.
|
|
248
|
+
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)}/domains/${core.url.encodePathParam(domainId)}`),
|
|
254
249
|
method: "PUT",
|
|
255
250
|
headers: _headers,
|
|
256
251
|
contentType: "application/json",
|
|
@@ -317,9 +312,10 @@ export class DomainsClient {
|
|
|
317
312
|
return __awaiter(this, void 0, void 0, function* () {
|
|
318
313
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
319
314
|
const { landscapeId, versionId, domainId } = request;
|
|
320
|
-
const
|
|
315
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
316
|
+
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);
|
|
321
317
|
const _response = yield core.fetcher({
|
|
322
|
-
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.
|
|
318
|
+
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)}/domains/${core.url.encodePathParam(domainId)}`),
|
|
323
319
|
method: "DELETE",
|
|
324
320
|
headers: _headers,
|
|
325
321
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -380,9 +376,10 @@ export class DomainsClient {
|
|
|
380
376
|
return __awaiter(this, void 0, void 0, function* () {
|
|
381
377
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
382
378
|
const { landscapeId, versionId, domainId, body: _body } = request;
|
|
383
|
-
const
|
|
379
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
380
|
+
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);
|
|
384
381
|
const _response = yield core.fetcher({
|
|
385
|
-
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.
|
|
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.ApiV1, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/domains/${core.url.encodePathParam(domainId)}`),
|
|
386
383
|
method: "PATCH",
|
|
387
384
|
headers: _headers,
|
|
388
385
|
contentType: "application/json",
|
|
@@ -447,9 +444,10 @@ export class DomainsClient {
|
|
|
447
444
|
return __awaiter(this, void 0, void 0, function* () {
|
|
448
445
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
449
446
|
const { landscapeId, versionId, domainId } = request;
|
|
450
|
-
const
|
|
447
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
448
|
+
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);
|
|
451
449
|
const _response = yield core.fetcher({
|
|
452
|
-
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.
|
|
450
|
+
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)}/domains/${core.url.encodePathParam(domainId)}`),
|
|
453
451
|
method: "HEAD",
|
|
454
452
|
headers: _headers,
|
|
455
453
|
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 DraftsClient {
|
|
@@ -8,7 +8,7 @@ export declare namespace DraftsClient {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
export declare class DraftsClient {
|
|
11
|
-
protected readonly _options:
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<DraftsClient.Options>;
|
|
12
12
|
constructor(options?: DraftsClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* @param {IcePanel.DraftsListRequest} 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 DraftsClient {
|
|
19
19
|
constructor(options = {}) {
|
|
20
|
-
this._options =
|
|
20
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
23
|
* @param {IcePanel.DraftsListRequest} request
|
|
@@ -45,9 +45,10 @@ export class DraftsClient {
|
|
|
45
45
|
if (filter != null) {
|
|
46
46
|
_queryParams.filter = filter;
|
|
47
47
|
}
|
|
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, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/drafts`),
|
|
51
52
|
method: "GET",
|
|
52
53
|
headers: _headers,
|
|
53
54
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -110,9 +111,10 @@ export class DraftsClient {
|
|
|
110
111
|
return __awaiter(this, void 0, void 0, function* () {
|
|
111
112
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
112
113
|
const { landscapeId, versionId, body: _body } = request;
|
|
113
|
-
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);
|
|
114
116
|
const _response = yield core.fetcher({
|
|
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.
|
|
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)}/drafts`),
|
|
116
118
|
method: "POST",
|
|
117
119
|
headers: _headers,
|
|
118
120
|
contentType: "application/json",
|
|
@@ -177,9 +179,10 @@ export class DraftsClient {
|
|
|
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 { landscapeId, versionId, draftId } = 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, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/drafts/${core.url.encodePathParam(draftId)}`),
|
|
183
186
|
method: "GET",
|
|
184
187
|
headers: _headers,
|
|
185
188
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -243,9 +246,10 @@ export class DraftsClient {
|
|
|
243
246
|
return __awaiter(this, void 0, void 0, function* () {
|
|
244
247
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
245
248
|
const { landscapeId, versionId, draftId, body: _body } = request;
|
|
246
|
-
const
|
|
249
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
250
|
+
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);
|
|
247
251
|
const _response = yield core.fetcher({
|
|
248
|
-
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.
|
|
252
|
+
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)}/drafts/${core.url.encodePathParam(draftId)}`),
|
|
249
253
|
method: "PUT",
|
|
250
254
|
headers: _headers,
|
|
251
255
|
contentType: "application/json",
|
|
@@ -311,9 +315,10 @@ export class DraftsClient {
|
|
|
311
315
|
return __awaiter(this, void 0, void 0, function* () {
|
|
312
316
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
313
317
|
const { landscapeId, versionId, draftId } = request;
|
|
314
|
-
const
|
|
318
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
319
|
+
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);
|
|
315
320
|
const _response = yield core.fetcher({
|
|
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.
|
|
321
|
+
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)}/drafts/${core.url.encodePathParam(draftId)}`),
|
|
317
322
|
method: "DELETE",
|
|
318
323
|
headers: _headers,
|
|
319
324
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -376,9 +381,10 @@ export class DraftsClient {
|
|
|
376
381
|
return __awaiter(this, void 0, void 0, function* () {
|
|
377
382
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
378
383
|
const { landscapeId, versionId, draftId, body: _body } = request;
|
|
379
|
-
const
|
|
384
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
385
|
+
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);
|
|
380
386
|
const _response = yield core.fetcher({
|
|
381
|
-
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.
|
|
387
|
+
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)}/drafts/${core.url.encodePathParam(draftId)}`),
|
|
382
388
|
method: "PATCH",
|
|
383
389
|
headers: _headers,
|
|
384
390
|
contentType: "application/json",
|
|
@@ -446,9 +452,10 @@ export class DraftsClient {
|
|
|
446
452
|
return __awaiter(this, void 0, void 0, function* () {
|
|
447
453
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
448
454
|
const { landscapeId, versionId, draftId } = request;
|
|
449
|
-
const
|
|
455
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
456
|
+
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);
|
|
450
457
|
const _response = yield core.fetcher({
|
|
451
|
-
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.
|
|
458
|
+
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)}/drafts/${core.url.encodePathParam(draftId)}/merge`),
|
|
452
459
|
method: "POST",
|
|
453
460
|
headers: _headers,
|
|
454
461
|
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 { ExportClient } from "../resources/export/client/Client.mjs";
|
|
@@ -9,7 +9,7 @@ export declare namespace FlowsClient {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
export declare class FlowsClient {
|
|
12
|
-
protected readonly _options:
|
|
12
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<FlowsClient.Options>;
|
|
13
13
|
protected _export: ExportClient | undefined;
|
|
14
14
|
constructor(options?: FlowsClient.Options);
|
|
15
15
|
get export(): ExportClient;
|
|
@@ -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 { ExportClient } from "../resources/export/client/Client.mjs";
|
|
19
19
|
export class FlowsClient {
|
|
20
20
|
constructor(options = {}) {
|
|
21
|
-
this._options =
|
|
21
|
+
this._options = normalizeClientOptionsWithAuth(options);
|
|
22
22
|
}
|
|
23
23
|
get export() {
|
|
24
24
|
var _a;
|
|
@@ -50,9 +50,10 @@ export class FlowsClient {
|
|
|
50
50
|
if (filter != null) {
|
|
51
51
|
_queryParams.filter = filter;
|
|
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, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/flows`),
|
|
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),
|
|
@@ -115,9 +116,10 @@ export class FlowsClient {
|
|
|
115
116
|
return __awaiter(this, void 0, void 0, function* () {
|
|
116
117
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
117
118
|
const { landscapeId, versionId, body: _body } = request;
|
|
118
|
-
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);
|
|
119
121
|
const _response = yield core.fetcher({
|
|
120
|
-
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)}/flows`),
|
|
121
123
|
method: "POST",
|
|
122
124
|
headers: _headers,
|
|
123
125
|
contentType: "application/json",
|
|
@@ -182,9 +184,10 @@ export class FlowsClient {
|
|
|
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 { landscapeId, versionId, flowId } = 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, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/flows/${core.url.encodePathParam(flowId)}`),
|
|
188
191
|
method: "GET",
|
|
189
192
|
headers: _headers,
|
|
190
193
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -250,9 +253,10 @@ export class FlowsClient {
|
|
|
250
253
|
return __awaiter(this, void 0, void 0, function* () {
|
|
251
254
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
252
255
|
const { landscapeId, versionId, flowId, body: _body } = request;
|
|
253
|
-
const
|
|
256
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
257
|
+
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
258
|
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.
|
|
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.ApiV1, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/flows/${core.url.encodePathParam(flowId)}`),
|
|
256
260
|
method: "PUT",
|
|
257
261
|
headers: _headers,
|
|
258
262
|
contentType: "application/json",
|
|
@@ -321,9 +325,10 @@ export class FlowsClient {
|
|
|
321
325
|
return __awaiter(this, void 0, void 0, function* () {
|
|
322
326
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
323
327
|
const { landscapeId, versionId, flowId } = request;
|
|
324
|
-
const
|
|
328
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
329
|
+
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);
|
|
325
330
|
const _response = yield core.fetcher({
|
|
326
|
-
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.
|
|
331
|
+
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)}/flows/${core.url.encodePathParam(flowId)}`),
|
|
327
332
|
method: "DELETE",
|
|
328
333
|
headers: _headers,
|
|
329
334
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -385,9 +390,10 @@ export class FlowsClient {
|
|
|
385
390
|
return __awaiter(this, void 0, void 0, function* () {
|
|
386
391
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
387
392
|
const { landscapeId, versionId, flowId, body: _body } = request;
|
|
388
|
-
const
|
|
393
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
394
|
+
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);
|
|
389
395
|
const _response = yield core.fetcher({
|
|
390
|
-
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.
|
|
396
|
+
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)}/flows/${core.url.encodePathParam(flowId)}`),
|
|
391
397
|
method: "PATCH",
|
|
392
398
|
headers: _headers,
|
|
393
399
|
contentType: "application/json",
|
|
@@ -454,9 +460,10 @@ export class FlowsClient {
|
|
|
454
460
|
return __awaiter(this, void 0, void 0, function* () {
|
|
455
461
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
456
462
|
const { landscapeId, versionId, flowId } = request;
|
|
457
|
-
const
|
|
463
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
464
|
+
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);
|
|
458
465
|
const _response = yield core.fetcher({
|
|
459
|
-
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.
|
|
466
|
+
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)}/flows/${core.url.encodePathParam(flowId)}`),
|
|
460
467
|
method: "HEAD",
|
|
461
468
|
headers: _headers,
|
|
462
469
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -517,9 +524,10 @@ export class FlowsClient {
|
|
|
517
524
|
if (filter != null) {
|
|
518
525
|
_queryParams.filter = filter;
|
|
519
526
|
}
|
|
520
|
-
const
|
|
527
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
528
|
+
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);
|
|
521
529
|
const _response = yield core.fetcher({
|
|
522
|
-
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.
|
|
530
|
+
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)}/flows/thumbnails`),
|
|
523
531
|
method: "GET",
|
|
524
532
|
headers: _headers,
|
|
525
533
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -577,9 +585,10 @@ export class FlowsClient {
|
|
|
577
585
|
return __awaiter(this, void 0, void 0, function* () {
|
|
578
586
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
579
587
|
const { landscapeId, versionId, flowId } = request;
|
|
580
|
-
const
|
|
588
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
589
|
+
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);
|
|
581
590
|
const _response = yield core.fetcher({
|
|
582
|
-
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.
|
|
591
|
+
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)}/flows/${core.url.encodePathParam(flowId)}/thumbnail`),
|
|
583
592
|
method: "GET",
|
|
584
593
|
headers: _headers,
|
|
585
594
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|