@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
|
@@ -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.ObjectsClient = void 0;
|
|
58
47
|
const BaseClient_js_1 = require("../../../../../../BaseClient.js");
|
|
@@ -65,7 +54,7 @@ const IcePanel = __importStar(require("../../../../../index.js"));
|
|
|
65
54
|
const Client_js_1 = require("../resources/export/client/Client.js");
|
|
66
55
|
class ObjectsClient {
|
|
67
56
|
constructor(options = {}) {
|
|
68
|
-
this._options = (0, BaseClient_js_1.
|
|
57
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
69
58
|
}
|
|
70
59
|
get export() {
|
|
71
60
|
var _a;
|
|
@@ -105,9 +94,10 @@ class ObjectsClient {
|
|
|
105
94
|
_queryParams.expand = expand;
|
|
106
95
|
}
|
|
107
96
|
}
|
|
108
|
-
const
|
|
97
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
98
|
+
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);
|
|
109
99
|
const _response = yield core.fetcher({
|
|
110
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.
|
|
100
|
+
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)}/model/objects`),
|
|
111
101
|
method: "GET",
|
|
112
102
|
headers: _headers,
|
|
113
103
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -169,9 +159,10 @@ class ObjectsClient {
|
|
|
169
159
|
return __awaiter(this, void 0, void 0, function* () {
|
|
170
160
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
171
161
|
const { landscapeId, versionId, body: _body } = request;
|
|
172
|
-
const
|
|
162
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
163
|
+
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);
|
|
173
164
|
const _response = yield core.fetcher({
|
|
174
|
-
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.
|
|
165
|
+
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)}/model/objects`),
|
|
175
166
|
method: "POST",
|
|
176
167
|
headers: _headers,
|
|
177
168
|
contentType: "application/json",
|
|
@@ -243,9 +234,10 @@ class ObjectsClient {
|
|
|
243
234
|
_queryParams.expand = expand;
|
|
244
235
|
}
|
|
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)}/model/objects/${core.url.encodePathParam(modelObjectId)}`),
|
|
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),
|
|
@@ -295,8 +287,10 @@ class ObjectsClient {
|
|
|
295
287
|
* landscapeId: "landscapeId",
|
|
296
288
|
* versionId: "versionId",
|
|
297
289
|
* modelObjectId: "modelObjectId",
|
|
298
|
-
*
|
|
299
|
-
*
|
|
290
|
+
* body: {
|
|
291
|
+
* name: "name",
|
|
292
|
+
* type: "actor"
|
|
293
|
+
* }
|
|
300
294
|
* })
|
|
301
295
|
*/
|
|
302
296
|
upsert(request, requestOptions) {
|
|
@@ -305,10 +299,11 @@ class ObjectsClient {
|
|
|
305
299
|
__upsert(request, requestOptions) {
|
|
306
300
|
return __awaiter(this, void 0, void 0, function* () {
|
|
307
301
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
308
|
-
const { landscapeId, versionId, modelObjectId
|
|
309
|
-
const
|
|
302
|
+
const { landscapeId, versionId, modelObjectId, body: _body } = request;
|
|
303
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
304
|
+
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);
|
|
310
305
|
const _response = yield core.fetcher({
|
|
311
|
-
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.
|
|
306
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `landscapes/${core.url.encodePathParam(landscapeId)}/versions/${core.url.encodePathParam(versionId)}/model/objects/${core.url.encodePathParam(modelObjectId)}`),
|
|
312
307
|
method: "PUT",
|
|
313
308
|
headers: _headers,
|
|
314
309
|
contentType: "application/json",
|
|
@@ -371,9 +366,10 @@ class ObjectsClient {
|
|
|
371
366
|
return __awaiter(this, void 0, void 0, function* () {
|
|
372
367
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
373
368
|
const { landscapeId, versionId, modelObjectId } = request;
|
|
374
|
-
const
|
|
369
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
370
|
+
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);
|
|
375
371
|
const _response = yield core.fetcher({
|
|
376
|
-
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.
|
|
372
|
+
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)}/model/objects/${core.url.encodePathParam(modelObjectId)}`),
|
|
377
373
|
method: "DELETE",
|
|
378
374
|
headers: _headers,
|
|
379
375
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -434,9 +430,10 @@ class ObjectsClient {
|
|
|
434
430
|
return __awaiter(this, void 0, void 0, function* () {
|
|
435
431
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
436
432
|
const { landscapeId, versionId, modelObjectId, body: _body } = request;
|
|
437
|
-
const
|
|
433
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
434
|
+
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);
|
|
438
435
|
const _response = yield core.fetcher({
|
|
439
|
-
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.
|
|
436
|
+
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)}/model/objects/${core.url.encodePathParam(modelObjectId)}`),
|
|
440
437
|
method: "PATCH",
|
|
441
438
|
headers: _headers,
|
|
442
439
|
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
|
* Export object dependencies as JSON
|
|
@@ -47,6 +47,6 @@ export declare class ExportClient {
|
|
|
47
47
|
* versionId: "versionId"
|
|
48
48
|
* })
|
|
49
49
|
*/
|
|
50
|
-
csv(request: IcePanel.ModelObjectsExportCsvRequest, requestOptions?: ExportClient.RequestOptions): core.HttpResponsePromise<
|
|
50
|
+
csv(request: IcePanel.ModelObjectsExportCsvRequest, requestOptions?: ExportClient.RequestOptions): core.HttpResponsePromise<string>;
|
|
51
51
|
private __csv;
|
|
52
52
|
}
|
|
@@ -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
|
* Export object dependencies as JSON
|
|
@@ -80,9 +80,10 @@ class ExportClient {
|
|
|
80
80
|
return __awaiter(this, void 0, void 0, function* () {
|
|
81
81
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
82
82
|
const { landscapeId, versionId, modelObjectId } = request;
|
|
83
|
-
const
|
|
83
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
84
|
+
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);
|
|
84
85
|
const _response = yield core.fetcher({
|
|
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.
|
|
86
|
+
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)}/model/objects/${core.url.encodePathParam(modelObjectId)}/dependencies/export/json`),
|
|
86
87
|
method: "GET",
|
|
87
88
|
headers: _headers,
|
|
88
89
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -144,12 +145,14 @@ class ExportClient {
|
|
|
144
145
|
return __awaiter(this, void 0, void 0, function* () {
|
|
145
146
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
146
147
|
const { landscapeId, versionId } = request;
|
|
147
|
-
const
|
|
148
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
149
|
+
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);
|
|
148
150
|
const _response = yield core.fetcher({
|
|
149
|
-
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.
|
|
151
|
+
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)}/model/objects/export/csv`),
|
|
150
152
|
method: "GET",
|
|
151
153
|
headers: _headers,
|
|
152
154
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
155
|
+
responseType: "text",
|
|
153
156
|
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
154
157
|
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
155
158
|
withCredentials: true,
|
|
@@ -158,7 +161,7 @@ class ExportClient {
|
|
|
158
161
|
logging: this._options.logging,
|
|
159
162
|
});
|
|
160
163
|
if (_response.ok) {
|
|
161
|
-
return { data:
|
|
164
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
162
165
|
}
|
|
163
166
|
if (_response.error.reason === "status-code") {
|
|
164
167
|
switch (_response.error.statusCode) {
|
|
@@ -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 { LandscapesClient } from "../resources/landscapes/client/Client.js";
|
|
@@ -12,7 +12,7 @@ export declare namespace OrganizationsClient {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
export declare class OrganizationsClient {
|
|
15
|
-
protected readonly _options:
|
|
15
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<OrganizationsClient.Options>;
|
|
16
16
|
protected _landscapes: LandscapesClient | undefined;
|
|
17
17
|
protected _logs: LogsClient | undefined;
|
|
18
18
|
protected _technologies: TechnologiesClient | undefined;
|
|
@@ -57,7 +57,7 @@ const Client_js_3 = require("../resources/technologies/client/Client.js");
|
|
|
57
57
|
const Client_js_4 = require("../resources/users/client/Client.js");
|
|
58
58
|
class OrganizationsClient {
|
|
59
59
|
constructor(options = {}) {
|
|
60
|
-
this._options = (0, BaseClient_js_1.
|
|
60
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
61
61
|
}
|
|
62
62
|
get landscapes() {
|
|
63
63
|
var _a;
|
|
@@ -98,9 +98,10 @@ class OrganizationsClient {
|
|
|
98
98
|
if (admin != null) {
|
|
99
99
|
_queryParams.admin = admin.toString();
|
|
100
100
|
}
|
|
101
|
-
const
|
|
101
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
102
|
+
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);
|
|
102
103
|
const _response = yield core.fetcher({
|
|
103
|
-
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.
|
|
104
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, "organizations"),
|
|
104
105
|
method: "GET",
|
|
105
106
|
headers: _headers,
|
|
106
107
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -156,9 +157,10 @@ class OrganizationsClient {
|
|
|
156
157
|
__create(request, requestOptions) {
|
|
157
158
|
return __awaiter(this, void 0, void 0, function* () {
|
|
158
159
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
159
|
-
const
|
|
160
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
161
|
+
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
162
|
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.
|
|
163
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, "organizations"),
|
|
162
164
|
method: "POST",
|
|
163
165
|
headers: _headers,
|
|
164
166
|
contentType: "application/json",
|
|
@@ -218,9 +220,10 @@ class OrganizationsClient {
|
|
|
218
220
|
return __awaiter(this, void 0, void 0, function* () {
|
|
219
221
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
220
222
|
const { organizationId } = request;
|
|
221
|
-
const
|
|
223
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
224
|
+
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);
|
|
222
225
|
const _response = yield core.fetcher({
|
|
223
|
-
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.
|
|
226
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}`),
|
|
224
227
|
method: "GET",
|
|
225
228
|
headers: _headers,
|
|
226
229
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -274,9 +277,10 @@ class OrganizationsClient {
|
|
|
274
277
|
return __awaiter(this, void 0, void 0, function* () {
|
|
275
278
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
276
279
|
const { organizationId } = request;
|
|
277
|
-
const
|
|
280
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
281
|
+
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);
|
|
278
282
|
const _response = yield core.fetcher({
|
|
279
|
-
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.
|
|
283
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}`),
|
|
280
284
|
method: "DELETE",
|
|
281
285
|
headers: _headers,
|
|
282
286
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -335,9 +339,10 @@ class OrganizationsClient {
|
|
|
335
339
|
return __awaiter(this, void 0, void 0, function* () {
|
|
336
340
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
337
341
|
const { organizationId, body: _body } = request;
|
|
338
|
-
const
|
|
342
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
343
|
+
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);
|
|
339
344
|
const _response = yield core.fetcher({
|
|
340
|
-
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.
|
|
345
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}`),
|
|
341
346
|
method: "PATCH",
|
|
342
347
|
headers: _headers,
|
|
343
348
|
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 LandscapesClient {
|
|
@@ -8,7 +8,7 @@ export declare namespace LandscapesClient {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
export declare class LandscapesClient {
|
|
11
|
-
protected readonly _options:
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<LandscapesClient.Options>;
|
|
12
12
|
constructor(options?: LandscapesClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* @param {IcePanel.OrganizationLandscapesListRequest} request
|
|
@@ -64,7 +64,7 @@ const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
|
64
64
|
const IcePanel = __importStar(require("../../../../../index.js"));
|
|
65
65
|
class LandscapesClient {
|
|
66
66
|
constructor(options = {}) {
|
|
67
|
-
this._options = (0, BaseClient_js_1.
|
|
67
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
70
|
* @param {IcePanel.OrganizationLandscapesListRequest} request
|
|
@@ -86,9 +86,10 @@ class LandscapesClient {
|
|
|
86
86
|
return __awaiter(this, void 0, void 0, function* () {
|
|
87
87
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
88
88
|
const { organizationId } = request;
|
|
89
|
-
const
|
|
89
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
90
|
+
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);
|
|
90
91
|
const _response = yield core.fetcher({
|
|
91
|
-
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.
|
|
92
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/landscapes`),
|
|
92
93
|
method: "GET",
|
|
93
94
|
headers: _headers,
|
|
94
95
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -147,9 +148,10 @@ class LandscapesClient {
|
|
|
147
148
|
return __awaiter(this, void 0, void 0, function* () {
|
|
148
149
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
149
150
|
const { organizationId } = request, _body = __rest(request, ["organizationId"]);
|
|
150
|
-
const
|
|
151
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
152
|
+
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);
|
|
151
153
|
const _response = yield core.fetcher({
|
|
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.
|
|
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.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/landscapes`),
|
|
153
155
|
method: "POST",
|
|
154
156
|
headers: _headers,
|
|
155
157
|
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
|
import { StatsClient } from "../resources/stats/client/Client.js";
|
|
@@ -9,7 +9,7 @@ export declare namespace LogsClient {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
export declare class LogsClient {
|
|
12
|
-
protected readonly _options:
|
|
12
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<LogsClient.Options>;
|
|
13
13
|
protected _stats: StatsClient | undefined;
|
|
14
14
|
constructor(options?: LogsClient.Options);
|
|
15
15
|
get stats(): StatsClient;
|
|
@@ -54,7 +54,7 @@ const IcePanel = __importStar(require("../../../../../index.js"));
|
|
|
54
54
|
const Client_js_1 = require("../resources/stats/client/Client.js");
|
|
55
55
|
class LogsClient {
|
|
56
56
|
constructor(options = {}) {
|
|
57
|
-
this._options = (0, BaseClient_js_1.
|
|
57
|
+
this._options = (0, BaseClient_js_1.normalizeClientOptionsWithAuth)(options);
|
|
58
58
|
}
|
|
59
59
|
get stats() {
|
|
60
60
|
var _a;
|
|
@@ -88,9 +88,10 @@ class LogsClient {
|
|
|
88
88
|
if (filter != null) {
|
|
89
89
|
_queryParams.filter = filter;
|
|
90
90
|
}
|
|
91
|
-
const
|
|
91
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
92
|
+
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);
|
|
92
93
|
const _response = yield core.fetcher({
|
|
93
|
-
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.
|
|
94
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/logs`),
|
|
94
95
|
method: "GET",
|
|
95
96
|
headers: _headers,
|
|
96
97
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -155,9 +156,10 @@ class LogsClient {
|
|
|
155
156
|
return __awaiter(this, void 0, void 0, function* () {
|
|
156
157
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
157
158
|
const { organizationId, organizationLogId } = request;
|
|
158
|
-
const
|
|
159
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
160
|
+
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);
|
|
159
161
|
const _response = yield core.fetcher({
|
|
160
|
-
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.
|
|
162
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/logs/${core.url.encodePathParam(organizationLogId)}`),
|
|
161
163
|
method: "GET",
|
|
162
164
|
headers: _headers,
|
|
163
165
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
package/dist/cjs/api/resources/organizations/resources/logs/resources/stats/client/Client.d.ts
CHANGED
|
@@ -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 StatsClient {
|
|
@@ -8,7 +8,7 @@ export declare namespace StatsClient {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
export declare class StatsClient {
|
|
11
|
-
protected readonly _options:
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<StatsClient.Options>;
|
|
12
12
|
constructor(options?: StatsClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* List total counts of actions for each action type (e.g. diagram-content-update, model-object-create)
|
package/dist/cjs/api/resources/organizations/resources/logs/resources/stats/client/Client.js
CHANGED
|
@@ -53,7 +53,7 @@ const errors = __importStar(require("../../../../../../../../errors/index.js"));
|
|
|
53
53
|
const IcePanel = __importStar(require("../../../../../../../index.js"));
|
|
54
54
|
class StatsClient {
|
|
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
|
* List total counts of actions for each action type (e.g. diagram-content-update, model-object-create)
|
|
@@ -86,9 +86,10 @@ class StatsClient {
|
|
|
86
86
|
if (period != null) {
|
|
87
87
|
_queryParams.period = period;
|
|
88
88
|
}
|
|
89
|
-
const
|
|
89
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
90
|
+
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);
|
|
90
91
|
const _response = yield core.fetcher({
|
|
91
|
-
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.
|
|
92
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/logs/stats/by-type`),
|
|
92
93
|
method: "GET",
|
|
93
94
|
headers: _headers,
|
|
94
95
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -159,9 +160,10 @@ class StatsClient {
|
|
|
159
160
|
if (period != null) {
|
|
160
161
|
_queryParams.period = period;
|
|
161
162
|
}
|
|
162
|
-
const
|
|
163
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
164
|
+
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);
|
|
163
165
|
const _response = yield core.fetcher({
|
|
164
|
-
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.
|
|
166
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/logs/stats/by-entity`),
|
|
165
167
|
method: "GET",
|
|
166
168
|
headers: _headers,
|
|
167
169
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../../../BaseClient.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 TechnologiesClient {
|
|
@@ -8,7 +8,7 @@ export declare namespace TechnologiesClient {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
export declare class TechnologiesClient {
|
|
11
|
-
protected readonly _options:
|
|
11
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<TechnologiesClient.Options>;
|
|
12
12
|
constructor(options?: TechnologiesClient.Options);
|
|
13
13
|
/**
|
|
14
14
|
* @param {IcePanel.OrganizationTechnologiesListRequest} request
|
|
@@ -53,7 +53,7 @@ const errors = __importStar(require("../../../../../../errors/index.js"));
|
|
|
53
53
|
const IcePanel = __importStar(require("../../../../../index.js"));
|
|
54
54
|
class TechnologiesClient {
|
|
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.OrganizationTechnologiesListRequest} request
|
|
@@ -80,9 +80,10 @@ class TechnologiesClient {
|
|
|
80
80
|
if (filter != null) {
|
|
81
81
|
_queryParams.filter = filter;
|
|
82
82
|
}
|
|
83
|
-
const
|
|
83
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
84
|
+
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);
|
|
84
85
|
const _response = yield core.fetcher({
|
|
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.
|
|
86
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/technologies`),
|
|
86
87
|
method: "GET",
|
|
87
88
|
headers: _headers,
|
|
88
89
|
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
@@ -145,9 +146,10 @@ class TechnologiesClient {
|
|
|
145
146
|
return __awaiter(this, void 0, void 0, function* () {
|
|
146
147
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
147
148
|
const { organizationId, body: _body } = request;
|
|
148
|
-
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);
|
|
149
151
|
const _response = yield core.fetcher({
|
|
150
|
-
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, `organizations/${core.url.encodePathParam(organizationId)}/technologies`),
|
|
151
153
|
method: "POST",
|
|
152
154
|
headers: _headers,
|
|
153
155
|
contentType: "application/json",
|
|
@@ -210,9 +212,10 @@ class TechnologiesClient {
|
|
|
210
212
|
return __awaiter(this, void 0, void 0, function* () {
|
|
211
213
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
212
214
|
const { organizationId, catalogTechnologyId } = request;
|
|
213
|
-
const
|
|
215
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
216
|
+
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);
|
|
214
217
|
const _response = yield core.fetcher({
|
|
215
|
-
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.
|
|
218
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/technologies/${core.url.encodePathParam(catalogTechnologyId)}`),
|
|
216
219
|
method: "GET",
|
|
217
220
|
headers: _headers,
|
|
218
221
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -272,9 +275,10 @@ class TechnologiesClient {
|
|
|
272
275
|
return __awaiter(this, void 0, void 0, function* () {
|
|
273
276
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
274
277
|
const { organizationId, catalogTechnologyId } = request;
|
|
275
|
-
const
|
|
278
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
279
|
+
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);
|
|
276
280
|
const _response = yield core.fetcher({
|
|
277
|
-
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.
|
|
281
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/technologies/${core.url.encodePathParam(catalogTechnologyId)}`),
|
|
278
282
|
method: "DELETE",
|
|
279
283
|
headers: _headers,
|
|
280
284
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -332,9 +336,10 @@ class TechnologiesClient {
|
|
|
332
336
|
return __awaiter(this, void 0, void 0, function* () {
|
|
333
337
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
334
338
|
const { organizationId, catalogTechnologyId, body: _body } = request;
|
|
335
|
-
const
|
|
339
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
340
|
+
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);
|
|
336
341
|
const _response = yield core.fetcher({
|
|
337
|
-
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.
|
|
342
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.IcePanelEnvironment.ApiV1, `organizations/${core.url.encodePathParam(organizationId)}/technologies/${core.url.encodePathParam(catalogTechnologyId)}`),
|
|
338
343
|
method: "PATCH",
|
|
339
344
|
headers: _headers,
|
|
340
345
|
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
|
import { InvitesClient } from "../resources/invites/client/Client.js";
|
|
@@ -9,7 +9,7 @@ export declare namespace UsersClient {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
export declare class UsersClient {
|
|
12
|
-
protected readonly _options:
|
|
12
|
+
protected readonly _options: NormalizedClientOptionsWithAuth<UsersClient.Options>;
|
|
13
13
|
protected _invites: InvitesClient | undefined;
|
|
14
14
|
constructor(options?: UsersClient.Options);
|
|
15
15
|
get invites(): InvitesClient;
|