@aurigma/ng-design-atoms-api-client 2.42.1 → 2.43.2
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/aurigma-ng-design-atoms-api-client.metadata.json +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.js +263 -146
- package/bundles/aurigma-ng-design-atoms-api-client.umd.js.map +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.min.js +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.min.js.map +1 -1
- package/esm2015/aurigma-ng-design-atoms-api-client.js +1 -1
- package/esm2015/lib/design-atoms-api-client.js +107 -3
- package/esm2015/lib/design-atoms-api.module.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/fesm2015/aurigma-ng-design-atoms-api-client.js +106 -2
- package/fesm2015/aurigma-ng-design-atoms-api-client.js.map +1 -1
- package/lib/design-atoms-api-client.d.ts +30 -4
- package/package.json +1 -1
|
@@ -32,4 +32,4 @@ DesignAtomsApiModule.decorators = [
|
|
|
32
32
|
exports: []
|
|
33
33
|
},] }
|
|
34
34
|
];
|
|
35
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
35
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzaWduLWF0b21zLWFwaS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiL2hvbWUvYXVyaWdtYS9hZ2VudHMvQ0NIMDIvX3dvcmsvOC9zL0F1cmlnbWEuRGVzaWduQXRvbXNBcGkuVHlwZVNjcmlwdEFwaUNsaWVudC9Bbmd1bGFyL2FwaS1jbGllbnQvcHJvamVjdHMvY2xpZW50L3NyYy8iLCJzb3VyY2VzIjpbImxpYi9kZXNpZ24tYXRvbXMtYXBpLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQXNCLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUM1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pZ25BdG9tc0FwaUNsaWVudC5BUElfQkFTRV9VUkwsXG4gICAgICAgICAgdXNlVmFsdWU6IGFwaVVybFxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgcHJvdmlkZTogRGVzaWduQXRvbXNBcGlDbGllbnQuQXBpQ2xpZW50Q29uZmlndXJhdGlvbixcbiAgICAgICAgICB1c2VGYWN0b3J5OiBDcmVhdGVBcGlDbGllbnRDb25maWd1cmF0aW9uLmJpbmQodGhpcywgdG9rZW4gLCBhcGlVcmwsIGFwaUtleSlcbiAgICAgICAgfSxcbiAgICAgIF1cbiAgICB9O1xuICB9XG59XG4iXX0=
|
package/esm2015/public-api.js
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export * from './lib/design-atoms-api.module';
|
|
5
5
|
export * from './lib/design-atoms-api-client';
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIvaG9tZS9hdXJpZ21hL2FnZW50cy9DQ0gwMi9fd29yay84L3MvQXVyaWdtYS5EZXNpZ25BdG9tc0FwaS5UeXBlU2NyaXB0QXBpQ2xpZW50L0FuZ3VsYXIvYXBpLWNsaWVudC9wcm9qZWN0cy9jbGllbnQvc3JjLyIsInNvdXJjZXMiOlsicHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYywrQkFBK0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgY2xpZW50XG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9saWIvZGVzaWduLWF0b21zLWFwaS5tb2R1bGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvZGVzaWduLWF0b21zLWFwaS1jbGllbnQnO1xuIl19
|
|
@@ -2172,17 +2172,118 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2172
2172
|
this.http = http;
|
|
2173
2173
|
this.baseUrl = baseUrl !== undefined && baseUrl !== null ? baseUrl : this.getBaseUrl("");
|
|
2174
2174
|
}
|
|
2175
|
+
/**
|
|
2176
|
+
* Returns a 3D-Mockup attributes.
|
|
2177
|
+
* @param id 3D-Mockup identifier.
|
|
2178
|
+
* @param ownerId (optional) Private mockup owner identifier.
|
|
2179
|
+
* @param tenantId (optional) Tenant identifier
|
|
2180
|
+
* @return Success
|
|
2181
|
+
*/
|
|
2182
|
+
getAttributes(id, ownerId, tenantId) {
|
|
2183
|
+
let url_ = this.baseUrl + "/api/atoms/v1/mockups-3d/{id}/attributes?";
|
|
2184
|
+
if (id === undefined || id === null)
|
|
2185
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
2186
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2187
|
+
if (ownerId !== undefined && ownerId !== null)
|
|
2188
|
+
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
2189
|
+
if (tenantId === null)
|
|
2190
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
2191
|
+
else if (tenantId !== undefined)
|
|
2192
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
2193
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
2194
|
+
let options_ = {
|
|
2195
|
+
observe: "response",
|
|
2196
|
+
responseType: "blob",
|
|
2197
|
+
headers: new HttpHeaders({
|
|
2198
|
+
"Accept": "application/json"
|
|
2199
|
+
})
|
|
2200
|
+
};
|
|
2201
|
+
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
2202
|
+
return this.http.request("get", url_, transformedOptions_);
|
|
2203
|
+
})).pipe(mergeMap((response_) => {
|
|
2204
|
+
return this.transformResult(url_, response_, (r) => this.processGetAttributes(r));
|
|
2205
|
+
})).pipe(catchError((response_) => {
|
|
2206
|
+
if (response_ instanceof HttpResponseBase) {
|
|
2207
|
+
try {
|
|
2208
|
+
return this.transformResult(url_, response_, (r) => this.processGetAttributes(r));
|
|
2209
|
+
}
|
|
2210
|
+
catch (e) {
|
|
2211
|
+
return throwError(e);
|
|
2212
|
+
}
|
|
2213
|
+
}
|
|
2214
|
+
else
|
|
2215
|
+
return throwError(response_);
|
|
2216
|
+
}));
|
|
2217
|
+
}
|
|
2218
|
+
processGetAttributes(response) {
|
|
2219
|
+
const status = response.status;
|
|
2220
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
2221
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
2222
|
+
let _headers = {};
|
|
2223
|
+
if (response.headers) {
|
|
2224
|
+
for (let key of response.headers.keys()) {
|
|
2225
|
+
_headers[key] = response.headers.get(key);
|
|
2226
|
+
}
|
|
2227
|
+
}
|
|
2228
|
+
if (status === 200) {
|
|
2229
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2230
|
+
let result200 = null;
|
|
2231
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2232
|
+
return of(result200);
|
|
2233
|
+
}));
|
|
2234
|
+
}
|
|
2235
|
+
else if (status === 404) {
|
|
2236
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2237
|
+
let result404 = null;
|
|
2238
|
+
result404 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2239
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
2240
|
+
}));
|
|
2241
|
+
}
|
|
2242
|
+
else if (status === 422) {
|
|
2243
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2244
|
+
let result422 = null;
|
|
2245
|
+
result422 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2246
|
+
return throwException("Client Error", status, _responseText, _headers, result422);
|
|
2247
|
+
}));
|
|
2248
|
+
}
|
|
2249
|
+
else if (status === 401) {
|
|
2250
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2251
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
2252
|
+
}));
|
|
2253
|
+
}
|
|
2254
|
+
else if (status === 403) {
|
|
2255
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2256
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
2257
|
+
}));
|
|
2258
|
+
}
|
|
2259
|
+
else if (status === 500) {
|
|
2260
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2261
|
+
let result500 = null;
|
|
2262
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
2263
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
2264
|
+
}));
|
|
2265
|
+
}
|
|
2266
|
+
else if (status !== 200 && status !== 204) {
|
|
2267
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
2268
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
2269
|
+
}));
|
|
2270
|
+
}
|
|
2271
|
+
return of(null);
|
|
2272
|
+
}
|
|
2175
2273
|
/**
|
|
2176
2274
|
* Returns a 3D-Mockup content as protobuf binary stream.
|
|
2177
2275
|
* @param id 3D-Mockup identifier.
|
|
2276
|
+
* @param ownerId (optional) Private mockup owner identifier.
|
|
2178
2277
|
* @param tenantId (optional) Tenant identifier
|
|
2179
2278
|
* @return Success
|
|
2180
2279
|
*/
|
|
2181
|
-
getContentAsProtobuf(id, tenantId) {
|
|
2280
|
+
getContentAsProtobuf(id, ownerId, tenantId) {
|
|
2182
2281
|
let url_ = this.baseUrl + "/api/atoms/v1/mockups-3d/{id}/content/as-protobuf?";
|
|
2183
2282
|
if (id === undefined || id === null)
|
|
2184
2283
|
throw new Error("The parameter 'id' must be defined.");
|
|
2185
2284
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2285
|
+
if (ownerId !== undefined && ownerId !== null)
|
|
2286
|
+
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
2186
2287
|
if (tenantId === null)
|
|
2187
2288
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
2188
2289
|
else if (tenantId !== undefined)
|
|
@@ -2269,14 +2370,17 @@ class DesignAtomsMockups3dApiClient extends ApiClientBase {
|
|
|
2269
2370
|
/**
|
|
2270
2371
|
* Returns a 3D-Mockup geometry as binary stream.
|
|
2271
2372
|
* @param id 3D-Mockup identifier.
|
|
2373
|
+
* @param ownerId (optional) Private mockup owner identifier.
|
|
2272
2374
|
* @param tenantId (optional) Tenant identifier
|
|
2273
2375
|
* @return Success
|
|
2274
2376
|
*/
|
|
2275
|
-
getGeometryFile(id, tenantId) {
|
|
2377
|
+
getGeometryFile(id, ownerId, tenantId) {
|
|
2276
2378
|
let url_ = this.baseUrl + "/api/atoms/v1/mockups-3d/{id}/geometry/file?";
|
|
2277
2379
|
if (id === undefined || id === null)
|
|
2278
2380
|
throw new Error("The parameter 'id' must be defined.");
|
|
2279
2381
|
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
2382
|
+
if (ownerId !== undefined && ownerId !== null)
|
|
2383
|
+
url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
|
|
2280
2384
|
if (tenantId === null)
|
|
2281
2385
|
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
2282
2386
|
else if (tenantId !== undefined)
|