@aurigma/ng-design-atoms-api-client 2.33.1 → 2.34.1
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 +343 -189
- 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 +129 -1
- 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 +128 -0
- package/fesm2015/aurigma-ng-design-atoms-api-client.js.map +1 -1
- package/lib/design-atoms-api-client.d.ts +20 -0
- 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGVzaWduLWF0b21zLWFwaS5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiL2hvbWUvYXVyaWdtYS9hZ2VudHMvMDEvX3dvcmsvMTk0L3MvQXVyaWdtYS5EZXNpZ25BdG9tc0FwaS5UeXBlU2NyaXB0QXBpQ2xpZW50L0FuZ3VsYXIvYXBpLWNsaWVudC9wcm9qZWN0cy9jbGllbnQvc3JjLyIsInNvdXJjZXMiOlsibGliL2Rlc2lnbi1hdG9tcy1hcGkubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBc0IsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQzV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ZW50LkFQSV9CQVNFX1VSTCxcbiAgICAgICAgICB1c2VWYWx1ZTogYXBpVXJsXG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBwcm92aWRlOiBEZXNpZ25BdG9tc0FwaUNsaWVudC5BcGlDbGllbnRDb25maWd1cmF0aW9uLFxuICAgICAgICAgIHVzZUZhY3Rvcnk6IENyZWF0ZUFwaUNsaWVudENvbmZpZ3VyYXRpb24uYmluZCh0aGlzLCB0b2tlbiAsIGFwaVVybCwgYXBpS2V5KVxuICAgICAgICB9LFxuICAgICAgXVxuICAgIH07XG4gIH1cbn1cbiJdfQ==
|
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIvaG9tZS9hdXJpZ21hL2FnZW50cy8wMS9fd29yay8xOTQvcy9BdXJpZ21hLkRlc2lnbkF0b21zQXBpLlR5cGVTY3JpcHRBcGlDbGllbnQvQW5ndWxhci9hcGktY2xpZW50L3Byb2plY3RzL2NsaWVudC9zcmMvIiwic291cmNlcyI6WyJwdWJsaWMtYXBpLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYywrQkFBK0IsQ0FBQztBQUM5QyxjQUFjLCtCQUErQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBjbGllbnRcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9kZXNpZ24tYXRvbXMtYXBpLm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9kZXNpZ24tYXRvbXMtYXBpLWNsaWVudCc7XG4iXX0=
|
|
@@ -405,6 +405,69 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
405
405
|
}
|
|
406
406
|
return of(null);
|
|
407
407
|
}
|
|
408
|
+
/**
|
|
409
|
+
* @return Success
|
|
410
|
+
*/
|
|
411
|
+
getFallbackFonts(tenantId) {
|
|
412
|
+
let url_ = this.baseUrl + "/api/atoms/v1/tenants/{tenantId}/api/ccviewer/GetFallbackFonts";
|
|
413
|
+
if (tenantId === undefined || tenantId === null)
|
|
414
|
+
throw new Error("The parameter 'tenantId' must be defined.");
|
|
415
|
+
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
416
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
417
|
+
let options_ = {
|
|
418
|
+
observe: "response",
|
|
419
|
+
responseType: "blob",
|
|
420
|
+
headers: new HttpHeaders({
|
|
421
|
+
"Accept": "application/json"
|
|
422
|
+
})
|
|
423
|
+
};
|
|
424
|
+
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
425
|
+
return this.http.request("get", url_, transformedOptions_);
|
|
426
|
+
})).pipe(mergeMap((response_) => {
|
|
427
|
+
return this.transformResult(url_, response_, (r) => this.processGetFallbackFonts(r));
|
|
428
|
+
})).pipe(catchError((response_) => {
|
|
429
|
+
if (response_ instanceof HttpResponseBase) {
|
|
430
|
+
try {
|
|
431
|
+
return this.transformResult(url_, response_, (r) => this.processGetFallbackFonts(r));
|
|
432
|
+
}
|
|
433
|
+
catch (e) {
|
|
434
|
+
return throwError(e);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
else
|
|
438
|
+
return throwError(response_);
|
|
439
|
+
}));
|
|
440
|
+
}
|
|
441
|
+
processGetFallbackFonts(response) {
|
|
442
|
+
const status = response.status;
|
|
443
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
444
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
445
|
+
let _headers = {};
|
|
446
|
+
if (response.headers) {
|
|
447
|
+
for (let key of response.headers.keys()) {
|
|
448
|
+
_headers[key] = response.headers.get(key);
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
if (status === 200 || status === 206) {
|
|
452
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
453
|
+
const fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
454
|
+
const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
455
|
+
return of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
|
|
456
|
+
}
|
|
457
|
+
else if (status === 500) {
|
|
458
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
459
|
+
let result500 = null;
|
|
460
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
461
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
462
|
+
}));
|
|
463
|
+
}
|
|
464
|
+
else if (status !== 200 && status !== 204) {
|
|
465
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
466
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
467
|
+
}));
|
|
468
|
+
}
|
|
469
|
+
return of(null);
|
|
470
|
+
}
|
|
408
471
|
/**
|
|
409
472
|
* @param body (optional)
|
|
410
473
|
* @return Success
|
|
@@ -3969,6 +4032,71 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
3969
4032
|
}
|
|
3970
4033
|
return of(null);
|
|
3971
4034
|
}
|
|
4035
|
+
/**
|
|
4036
|
+
* @param tenantId (optional) Tenant identifier
|
|
4037
|
+
* @return Success
|
|
4038
|
+
*/
|
|
4039
|
+
getFallbackFonts(tenantId) {
|
|
4040
|
+
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/GetFallbackFonts?";
|
|
4041
|
+
if (tenantId === null)
|
|
4042
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
4043
|
+
else if (tenantId !== undefined)
|
|
4044
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4045
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4046
|
+
let options_ = {
|
|
4047
|
+
observe: "response",
|
|
4048
|
+
responseType: "blob",
|
|
4049
|
+
headers: new HttpHeaders({
|
|
4050
|
+
"Accept": "application/json"
|
|
4051
|
+
})
|
|
4052
|
+
};
|
|
4053
|
+
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
4054
|
+
return this.http.request("get", url_, transformedOptions_);
|
|
4055
|
+
})).pipe(mergeMap((response_) => {
|
|
4056
|
+
return this.transformResult(url_, response_, (r) => this.processGetFallbackFonts(r));
|
|
4057
|
+
})).pipe(catchError((response_) => {
|
|
4058
|
+
if (response_ instanceof HttpResponseBase) {
|
|
4059
|
+
try {
|
|
4060
|
+
return this.transformResult(url_, response_, (r) => this.processGetFallbackFonts(r));
|
|
4061
|
+
}
|
|
4062
|
+
catch (e) {
|
|
4063
|
+
return throwError(e);
|
|
4064
|
+
}
|
|
4065
|
+
}
|
|
4066
|
+
else
|
|
4067
|
+
return throwError(response_);
|
|
4068
|
+
}));
|
|
4069
|
+
}
|
|
4070
|
+
processGetFallbackFonts(response) {
|
|
4071
|
+
const status = response.status;
|
|
4072
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
4073
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
4074
|
+
let _headers = {};
|
|
4075
|
+
if (response.headers) {
|
|
4076
|
+
for (let key of response.headers.keys()) {
|
|
4077
|
+
_headers[key] = response.headers.get(key);
|
|
4078
|
+
}
|
|
4079
|
+
}
|
|
4080
|
+
if (status === 200 || status === 206) {
|
|
4081
|
+
const contentDisposition = response.headers ? response.headers.get("content-disposition") : undefined;
|
|
4082
|
+
const fileNameMatch = contentDisposition ? /filename="?([^"]*?)"?(;|$)/g.exec(contentDisposition) : undefined;
|
|
4083
|
+
const fileName = fileNameMatch && fileNameMatch.length > 1 ? fileNameMatch[1] : undefined;
|
|
4084
|
+
return of({ fileName: fileName, data: responseBlob, status: status, headers: _headers });
|
|
4085
|
+
}
|
|
4086
|
+
else if (status === 500) {
|
|
4087
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4088
|
+
let result500 = null;
|
|
4089
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4090
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4091
|
+
}));
|
|
4092
|
+
}
|
|
4093
|
+
else if (status !== 200 && status !== 204) {
|
|
4094
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4095
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4096
|
+
}));
|
|
4097
|
+
}
|
|
4098
|
+
return of(null);
|
|
4099
|
+
}
|
|
3972
4100
|
/**
|
|
3973
4101
|
* @param tenantId (optional) Tenant identifier
|
|
3974
4102
|
* @param body (optional)
|