@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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
-
import { type
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
4
|
import * as IcePanel from "../../../index.js";
|
|
5
5
|
import { ContentClient } from "../resources/content/client/Client.js";
|
|
@@ -11,7 +11,7 @@ export declare namespace DiagramsClient {
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
export declare class DiagramsClient {
|
|
14
|
-
protected readonly _options:
|
|
14
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<DiagramsClient.Options>;
|
|
15
15
|
protected _content: ContentClient | undefined;
|
|
16
16
|
protected _groups: GroupsClient | undefined;
|
|
17
17
|
protected _export: ExportClient | undefined;
|
|
@@ -136,7 +136,8 @@ export declare class DiagramsClient {
|
|
|
136
136
|
* await client.diagrams.update({
|
|
137
137
|
* landscapeId: "landscapeId",
|
|
138
138
|
* versionId: "versionId",
|
|
139
|
-
* diagramId: "diagramId"
|
|
139
|
+
* diagramId: "diagramId",
|
|
140
|
+
* body: {}
|
|
140
141
|
* })
|
|
141
142
|
*/
|
|
142
143
|
update(request: IcePanel.DiagramUpdateRequest, requestOptions?: DiagramsClient.RequestOptions): core.HttpResponsePromise<IcePanel.DiagramsUpdateResponse>;
|
|
@@ -42,17 +42,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
42
42
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
46
|
-
var t = {};
|
|
47
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
48
|
-
t[p] = s[p];
|
|
49
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
50
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
51
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
52
|
-
t[p[i]] = s[p[i]];
|
|
53
|
-
}
|
|
54
|
-
return t;
|
|
55
|
-
};
|
|
56
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57
46
|
exports.DiagramsClient = void 0;
|
|
58
47
|
const BaseClient_js_1 = require("../../../../BaseClient.js");
|
|
@@ -67,7 +56,7 @@ const Client_js_2 = require("../resources/export/client/Client.js");
|
|
|
67
56
|
const Client_js_3 = require("../resources/groups/client/Client.js");
|
|
68
57
|
class DiagramsClient {
|
|
69
58
|
constructor(options = {}) {
|
|
70
|
-
this._options = (0, BaseClient_js_1.
|
|
59
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
71
60
|
}
|
|
72
61
|
get content() {
|
|
73
62
|
var _a;
|
|
@@ -107,9 +96,10 @@ class DiagramsClient {
|
|
|
107
96
|
if (filter != null) {
|
|
108
97
|
_queryParams.filter = filter;
|
|
109
98
|
}
|
|
110
|
-
const
|
|
99
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
100
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
111
101
|
const _response = yield core.fetcher({
|
|
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.
|
|
102
|
+
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)}/diagrams`),
|
|
113
103
|
method: "GET",
|
|
114
104
|
headers: _headers,
|
|
115
105
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -176,9 +166,10 @@ class DiagramsClient {
|
|
|
176
166
|
if (updateViewedAt != null) {
|
|
177
167
|
_queryParams.updateViewedAt = updateViewedAt.toString();
|
|
178
168
|
}
|
|
179
|
-
const
|
|
169
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
170
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
180
171
|
const _response = yield core.fetcher({
|
|
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.
|
|
172
|
+
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)}/diagrams`),
|
|
182
173
|
method: "POST",
|
|
183
174
|
headers: _headers,
|
|
184
175
|
contentType: "application/json",
|
|
@@ -243,9 +234,10 @@ class DiagramsClient {
|
|
|
243
234
|
if (updateViewedAt != null) {
|
|
244
235
|
_queryParams.updateViewedAt = updateViewedAt.toString();
|
|
245
236
|
}
|
|
246
|
-
const
|
|
237
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
238
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
247
239
|
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.
|
|
240
|
+
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)}/diagrams/${core.url.encodePathParam(diagramId)}`),
|
|
249
241
|
method: "GET",
|
|
250
242
|
headers: _headers,
|
|
251
243
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -315,9 +307,10 @@ class DiagramsClient {
|
|
|
315
307
|
if (updateViewedAt != null) {
|
|
316
308
|
_queryParams.updateViewedAt = updateViewedAt.toString();
|
|
317
309
|
}
|
|
318
|
-
const
|
|
310
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
311
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
319
312
|
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.
|
|
313
|
+
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)}/diagrams/${core.url.encodePathParam(diagramId)}`),
|
|
321
314
|
method: "PUT",
|
|
322
315
|
headers: _headers,
|
|
323
316
|
contentType: "application/json",
|
|
@@ -386,9 +379,10 @@ class DiagramsClient {
|
|
|
386
379
|
if (updateViewedAt != null) {
|
|
387
380
|
_queryParams.updateViewedAt = updateViewedAt.toString();
|
|
388
381
|
}
|
|
389
|
-
const
|
|
382
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
383
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
390
384
|
const _response = yield core.fetcher({
|
|
391
|
-
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.
|
|
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.ApiV1, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/diagrams/${core.url.encodePathParam(diagramId)}`),
|
|
392
386
|
method: "DELETE",
|
|
393
387
|
headers: _headers,
|
|
394
388
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -438,7 +432,8 @@ class DiagramsClient {
|
|
|
438
432
|
* await client.diagrams.update({
|
|
439
433
|
* landscapeId: "landscapeId",
|
|
440
434
|
* versionId: "versionId",
|
|
441
|
-
* diagramId: "diagramId"
|
|
435
|
+
* diagramId: "diagramId",
|
|
436
|
+
* body: {}
|
|
442
437
|
* })
|
|
443
438
|
*/
|
|
444
439
|
update(request, requestOptions) {
|
|
@@ -447,14 +442,15 @@ class DiagramsClient {
|
|
|
447
442
|
__update(request, requestOptions) {
|
|
448
443
|
return __awaiter(this, void 0, void 0, function* () {
|
|
449
444
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
450
|
-
const { landscapeId, versionId, diagramId, updateViewedAt
|
|
445
|
+
const { landscapeId, versionId, diagramId, updateViewedAt, body: _body } = request;
|
|
451
446
|
const _queryParams = {};
|
|
452
447
|
if (updateViewedAt != null) {
|
|
453
448
|
_queryParams.updateViewedAt = updateViewedAt.toString();
|
|
454
449
|
}
|
|
455
|
-
const
|
|
450
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
451
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
456
452
|
const _response = yield core.fetcher({
|
|
457
|
-
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.
|
|
453
|
+
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)}/diagrams/${core.url.encodePathParam(diagramId)}`),
|
|
458
454
|
method: "PATCH",
|
|
459
455
|
headers: _headers,
|
|
460
456
|
contentType: "application/json",
|
|
@@ -523,9 +519,10 @@ class DiagramsClient {
|
|
|
523
519
|
if (updateViewedAt != null) {
|
|
524
520
|
_queryParams.updateViewedAt = updateViewedAt.toString();
|
|
525
521
|
}
|
|
526
|
-
const
|
|
522
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
523
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
527
524
|
const _response = yield core.fetcher({
|
|
528
|
-
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.
|
|
525
|
+
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)}/diagrams/${core.url.encodePathParam(diagramId)}`),
|
|
529
526
|
method: "HEAD",
|
|
530
527
|
headers: _headers,
|
|
531
528
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -586,9 +583,10 @@ class DiagramsClient {
|
|
|
586
583
|
if (filter != null) {
|
|
587
584
|
_queryParams.filter = filter;
|
|
588
585
|
}
|
|
589
|
-
const
|
|
586
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
587
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
590
588
|
const _response = yield core.fetcher({
|
|
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.
|
|
589
|
+
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)}/diagrams/thumbnails`),
|
|
592
590
|
method: "GET",
|
|
593
591
|
headers: _headers,
|
|
594
592
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -649,9 +647,10 @@ class DiagramsClient {
|
|
|
649
647
|
return __awaiter(this, void 0, void 0, function* () {
|
|
650
648
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
651
649
|
const { landscapeId, versionId, diagramId } = request;
|
|
652
|
-
const
|
|
650
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
651
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
653
652
|
const _response = yield core.fetcher({
|
|
654
|
-
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.
|
|
653
|
+
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)}/diagrams/${core.url.encodePathParam(diagramId)}/thumbnail`),
|
|
655
654
|
method: "GET",
|
|
656
655
|
headers: _headers,
|
|
657
656
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
|
|
2
|
-
import { type
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
|
|
3
3
|
import * as core from "../../../../../../core/index.js";
|
|
4
4
|
import * as IcePanel from "../../../../../index.js";
|
|
5
5
|
export declare namespace ContentClient {
|
|
@@ -8,7 +8,7 @@ export declare namespace ContentClient {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
export declare class ContentClient {
|
|
11
|
-
protected readonly _options:
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<ContentClient.Options>;
|
|
12
12
|
constructor(options?: ContentClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* @param {IcePanel.DiagramContentFindRequest} request
|
|
@@ -53,7 +53,7 @@ const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
|
53
53
|
const IcePanel = __importStar(require("../../../../../index.js"));
|
|
54
54
|
class ContentClient {
|
|
55
55
|
constructor(options = {}) {
|
|
56
|
-
this._options = (0, BaseClient_js_1.
|
|
56
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
59
|
* @param {IcePanel.DiagramContentFindRequest} request
|
|
@@ -82,9 +82,10 @@ class ContentClient {
|
|
|
82
82
|
if (updateViewedAt != null) {
|
|
83
83
|
_queryParams.updateViewedAt = updateViewedAt.toString();
|
|
84
84
|
}
|
|
85
|
-
const
|
|
85
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
86
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
86
87
|
const _response = yield core.fetcher({
|
|
87
|
-
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.
|
|
88
|
+
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)}/diagrams/${core.url.encodePathParam(diagramId)}/content`),
|
|
88
89
|
method: "GET",
|
|
89
90
|
headers: _headers,
|
|
90
91
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -149,9 +150,10 @@ class ContentClient {
|
|
|
149
150
|
if (updateViewedAt != null) {
|
|
150
151
|
_queryParams.updateViewedAt = updateViewedAt.toString();
|
|
151
152
|
}
|
|
152
|
-
const
|
|
153
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
154
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
153
155
|
const _response = yield core.fetcher({
|
|
154
|
-
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.
|
|
156
|
+
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)}/diagrams/${core.url.encodePathParam(diagramId)}/content`),
|
|
155
157
|
method: "PUT",
|
|
156
158
|
headers: _headers,
|
|
157
159
|
contentType: "application/json",
|
|
@@ -226,9 +228,10 @@ class ContentClient {
|
|
|
226
228
|
if (updateViewedAt != null) {
|
|
227
229
|
_queryParams.updateViewedAt = updateViewedAt.toString();
|
|
228
230
|
}
|
|
229
|
-
const
|
|
231
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
232
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
230
233
|
const _response = yield core.fetcher({
|
|
231
|
-
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.
|
|
234
|
+
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)}/diagrams/${core.url.encodePathParam(diagramId)}/content`),
|
|
232
235
|
method: "PATCH",
|
|
233
236
|
headers: _headers,
|
|
234
237
|
contentType: "application/json",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
|
|
2
|
-
import { type
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
|
|
3
3
|
import * as core from "../../../../../../core/index.js";
|
|
4
4
|
import * as IcePanel from "../../../../../index.js";
|
|
5
5
|
export declare namespace ExportClient {
|
|
@@ -8,7 +8,7 @@ export declare namespace ExportClient {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
export declare class ExportClient {
|
|
11
|
-
protected readonly _options:
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<ExportClient.Options>;
|
|
12
12
|
constructor(options?: ExportClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* @param {IcePanel.DiagramExportImageFindRequest} request
|
|
@@ -53,7 +53,7 @@ const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
|
53
53
|
const IcePanel = __importStar(require("../../../../../index.js"));
|
|
54
54
|
class ExportClient {
|
|
55
55
|
constructor(options = {}) {
|
|
56
|
-
this._options = (0, BaseClient_js_1.
|
|
56
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
59
|
* @param {IcePanel.DiagramExportImageFindRequest} request
|
|
@@ -79,9 +79,10 @@ class ExportClient {
|
|
|
79
79
|
return __awaiter(this, void 0, void 0, function* () {
|
|
80
80
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
81
81
|
const { landscapeId, versionId, diagramId, diagramExportImageId } = request;
|
|
82
|
-
const
|
|
82
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
83
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
83
84
|
const _response = yield core.fetcher({
|
|
84
|
-
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.
|
|
85
|
+
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)}/diagrams/${core.url.encodePathParam(diagramId)}/export/image/${core.url.encodePathParam(diagramExportImageId)}`),
|
|
85
86
|
method: "GET",
|
|
86
87
|
headers: _headers,
|
|
87
88
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -140,9 +141,10 @@ class ExportClient {
|
|
|
140
141
|
return __awaiter(this, void 0, void 0, function* () {
|
|
141
142
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
142
143
|
const { landscapeId, versionId, diagramId, body: _body } = request;
|
|
143
|
-
const
|
|
144
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
145
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
144
146
|
const _response = yield core.fetcher({
|
|
145
|
-
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.
|
|
147
|
+
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)}/diagrams/${core.url.encodePathParam(diagramId)}/export/image`),
|
|
146
148
|
method: "POST",
|
|
147
149
|
headers: _headers,
|
|
148
150
|
contentType: "application/json",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.js";
|
|
2
|
-
import { type
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../../../BaseClient.js";
|
|
3
3
|
import * as core from "../../../../../../core/index.js";
|
|
4
4
|
import * as IcePanel from "../../../../../index.js";
|
|
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.DiagramGroupsListRequest} request
|
|
@@ -84,8 +84,10 @@ export declare class GroupsClient {
|
|
|
84
84
|
* landscapeId: "landscapeId",
|
|
85
85
|
* versionId: "versionId",
|
|
86
86
|
* diagramGroupId: "diagramGroupId",
|
|
87
|
-
*
|
|
88
|
-
*
|
|
87
|
+
* body: {
|
|
88
|
+
* modelId: "modelId",
|
|
89
|
+
* name: "name"
|
|
90
|
+
* }
|
|
89
91
|
* })
|
|
90
92
|
*/
|
|
91
93
|
upsert(request: IcePanel.DiagramGroupUpsertRequest, requestOptions?: GroupsClient.RequestOptions): core.HttpResponsePromise<IcePanel.diagrams.GroupsUpsertResponse>;
|
|
@@ -42,17 +42,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
42
42
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
43
|
});
|
|
44
44
|
};
|
|
45
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
46
|
-
var t = {};
|
|
47
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
48
|
-
t[p] = s[p];
|
|
49
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
50
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
51
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
52
|
-
t[p[i]] = s[p[i]];
|
|
53
|
-
}
|
|
54
|
-
return t;
|
|
55
|
-
};
|
|
56
45
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57
46
|
exports.GroupsClient = void 0;
|
|
58
47
|
const BaseClient_js_1 = require("../../../../../../BaseClient.js");
|
|
@@ -64,7 +53,7 @@ const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
|
64
53
|
const IcePanel = __importStar(require("../../../../../index.js"));
|
|
65
54
|
class GroupsClient {
|
|
66
55
|
constructor(options = {}) {
|
|
67
|
-
this._options = (0, BaseClient_js_1.
|
|
56
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
68
57
|
}
|
|
69
58
|
/**
|
|
70
59
|
* @param {IcePanel.DiagramGroupsListRequest} request
|
|
@@ -92,9 +81,10 @@ class GroupsClient {
|
|
|
92
81
|
if (filter != null) {
|
|
93
82
|
_queryParams.filter = filter;
|
|
94
83
|
}
|
|
95
|
-
const
|
|
84
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
85
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
96
86
|
const _response = yield core.fetcher({
|
|
97
|
-
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.
|
|
87
|
+
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`),
|
|
98
88
|
method: "GET",
|
|
99
89
|
headers: _headers,
|
|
100
90
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -156,9 +146,10 @@ class GroupsClient {
|
|
|
156
146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
157
147
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
158
148
|
const { landscapeId, versionId, body: _body } = request;
|
|
159
|
-
const
|
|
149
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
150
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
160
151
|
const _response = yield core.fetcher({
|
|
161
|
-
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.
|
|
152
|
+
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`),
|
|
162
153
|
method: "POST",
|
|
163
154
|
headers: _headers,
|
|
164
155
|
contentType: "application/json",
|
|
@@ -224,9 +215,10 @@ class GroupsClient {
|
|
|
224
215
|
return __awaiter(this, void 0, void 0, function* () {
|
|
225
216
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
226
217
|
const { landscapeId, versionId, diagramGroupId } = request;
|
|
227
|
-
const
|
|
218
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
219
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
228
220
|
const _response = yield core.fetcher({
|
|
229
|
-
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.
|
|
221
|
+
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)}`),
|
|
230
222
|
method: "GET",
|
|
231
223
|
headers: _headers,
|
|
232
224
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -278,8 +270,10 @@ class GroupsClient {
|
|
|
278
270
|
* landscapeId: "landscapeId",
|
|
279
271
|
* versionId: "versionId",
|
|
280
272
|
* diagramGroupId: "diagramGroupId",
|
|
281
|
-
*
|
|
282
|
-
*
|
|
273
|
+
* body: {
|
|
274
|
+
* modelId: "modelId",
|
|
275
|
+
* name: "name"
|
|
276
|
+
* }
|
|
283
277
|
* })
|
|
284
278
|
*/
|
|
285
279
|
upsert(request, requestOptions) {
|
|
@@ -288,10 +282,11 @@ class GroupsClient {
|
|
|
288
282
|
__upsert(request, requestOptions) {
|
|
289
283
|
return __awaiter(this, void 0, void 0, function* () {
|
|
290
284
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
291
|
-
const { landscapeId, versionId, diagramGroupId
|
|
292
|
-
const
|
|
285
|
+
const { landscapeId, versionId, diagramGroupId, body: _body } = request;
|
|
286
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
287
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
293
288
|
const _response = yield core.fetcher({
|
|
294
|
-
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.
|
|
289
|
+
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)}`),
|
|
295
290
|
method: "PUT",
|
|
296
291
|
headers: _headers,
|
|
297
292
|
contentType: "application/json",
|
|
@@ -361,9 +356,10 @@ class GroupsClient {
|
|
|
361
356
|
return __awaiter(this, void 0, void 0, function* () {
|
|
362
357
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
363
358
|
const { landscapeId, versionId, diagramGroupId } = request;
|
|
364
|
-
const
|
|
359
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
360
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
365
361
|
const _response = yield core.fetcher({
|
|
366
|
-
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.
|
|
362
|
+
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)}`),
|
|
367
363
|
method: "DELETE",
|
|
368
364
|
headers: _headers,
|
|
369
365
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -426,9 +422,10 @@ class GroupsClient {
|
|
|
426
422
|
return __awaiter(this, void 0, void 0, function* () {
|
|
427
423
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
428
424
|
const { landscapeId, versionId, diagramGroupId, body: _body } = request;
|
|
429
|
-
const
|
|
425
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
426
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
430
427
|
const _response = yield core.fetcher({
|
|
431
|
-
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.
|
|
428
|
+
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)}`),
|
|
432
429
|
method: "PATCH",
|
|
433
430
|
headers: _headers,
|
|
434
431
|
contentType: "application/json",
|
|
@@ -494,9 +491,10 @@ class GroupsClient {
|
|
|
494
491
|
return __awaiter(this, void 0, void 0, function* () {
|
|
495
492
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
496
493
|
const { landscapeId, versionId, diagramGroupId } = request;
|
|
497
|
-
const
|
|
494
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
495
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
498
496
|
const _response = yield core.fetcher({
|
|
499
|
-
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.
|
|
497
|
+
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)}`),
|
|
500
498
|
method: "HEAD",
|
|
501
499
|
headers: _headers,
|
|
502
500
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js";
|
|
2
|
-
import { type
|
|
2
|
+
import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js";
|
|
3
3
|
import * as core from "../../../../core/index.js";
|
|
4
4
|
import * as IcePanel from "../../../index.js";
|
|
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>;
|