@aurigma/ng-design-atoms-api-client 2.39.1 → 2.41.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 +631 -296
- 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/lib/design-atoms-api-client.js +285 -1
- package/fesm2015/aurigma-ng-design-atoms-api-client.js +285 -1
- package/fesm2015/aurigma-ng-design-atoms-api-client.js.map +1 -1
- package/lib/design-atoms-api-client.d.ts +72 -0
- package/package.json +1 -1
|
@@ -332,6 +332,142 @@ class DesignAtomsCompatibilityApiClient extends ApiClientBase {
|
|
|
332
332
|
}
|
|
333
333
|
return of(null);
|
|
334
334
|
}
|
|
335
|
+
/**
|
|
336
|
+
* @param body (optional)
|
|
337
|
+
* @return Success
|
|
338
|
+
*/
|
|
339
|
+
getColorPreview(tenantId, body) {
|
|
340
|
+
let url_ = this.baseUrl + "/api/atoms/v1/tenants/{tenantId}/api/ccviewer/GetColorPreview";
|
|
341
|
+
if (tenantId === undefined || tenantId === null)
|
|
342
|
+
throw new Error("The parameter 'tenantId' must be defined.");
|
|
343
|
+
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
344
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
345
|
+
const content_ = JSON.stringify(body);
|
|
346
|
+
let options_ = {
|
|
347
|
+
body: content_,
|
|
348
|
+
observe: "response",
|
|
349
|
+
responseType: "blob",
|
|
350
|
+
headers: new HttpHeaders({
|
|
351
|
+
"Content-Type": "application/json",
|
|
352
|
+
"Accept": "application/json"
|
|
353
|
+
})
|
|
354
|
+
};
|
|
355
|
+
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
356
|
+
return this.http.request("post", url_, transformedOptions_);
|
|
357
|
+
})).pipe(mergeMap((response_) => {
|
|
358
|
+
return this.transformResult(url_, response_, (r) => this.processGetColorPreview(r));
|
|
359
|
+
})).pipe(catchError((response_) => {
|
|
360
|
+
if (response_ instanceof HttpResponseBase) {
|
|
361
|
+
try {
|
|
362
|
+
return this.transformResult(url_, response_, (r) => this.processGetColorPreview(r));
|
|
363
|
+
}
|
|
364
|
+
catch (e) {
|
|
365
|
+
return throwError(e);
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
else
|
|
369
|
+
return throwError(response_);
|
|
370
|
+
}));
|
|
371
|
+
}
|
|
372
|
+
processGetColorPreview(response) {
|
|
373
|
+
const status = response.status;
|
|
374
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
375
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
376
|
+
let _headers = {};
|
|
377
|
+
if (response.headers) {
|
|
378
|
+
for (let key of response.headers.keys()) {
|
|
379
|
+
_headers[key] = response.headers.get(key);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
if (status === 200) {
|
|
383
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
384
|
+
let result200 = null;
|
|
385
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
386
|
+
return of(result200);
|
|
387
|
+
}));
|
|
388
|
+
}
|
|
389
|
+
else if (status === 500) {
|
|
390
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
391
|
+
let result500 = null;
|
|
392
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
393
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
394
|
+
}));
|
|
395
|
+
}
|
|
396
|
+
else if (status !== 200 && status !== 204) {
|
|
397
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
398
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
399
|
+
}));
|
|
400
|
+
}
|
|
401
|
+
return of(null);
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* @param body (optional)
|
|
405
|
+
* @return Success
|
|
406
|
+
*/
|
|
407
|
+
getColorPreviews(tenantId, body) {
|
|
408
|
+
let url_ = this.baseUrl + "/api/atoms/v1/tenants/{tenantId}/api/ccviewer/GetColorPreviews";
|
|
409
|
+
if (tenantId === undefined || tenantId === null)
|
|
410
|
+
throw new Error("The parameter 'tenantId' must be defined.");
|
|
411
|
+
url_ = url_.replace("{tenantId}", encodeURIComponent("" + tenantId));
|
|
412
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
413
|
+
const content_ = JSON.stringify(body);
|
|
414
|
+
let options_ = {
|
|
415
|
+
body: content_,
|
|
416
|
+
observe: "response",
|
|
417
|
+
responseType: "blob",
|
|
418
|
+
headers: new HttpHeaders({
|
|
419
|
+
"Content-Type": "application/json",
|
|
420
|
+
"Accept": "application/json"
|
|
421
|
+
})
|
|
422
|
+
};
|
|
423
|
+
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
424
|
+
return this.http.request("post", url_, transformedOptions_);
|
|
425
|
+
})).pipe(mergeMap((response_) => {
|
|
426
|
+
return this.transformResult(url_, response_, (r) => this.processGetColorPreviews(r));
|
|
427
|
+
})).pipe(catchError((response_) => {
|
|
428
|
+
if (response_ instanceof HttpResponseBase) {
|
|
429
|
+
try {
|
|
430
|
+
return this.transformResult(url_, response_, (r) => this.processGetColorPreviews(r));
|
|
431
|
+
}
|
|
432
|
+
catch (e) {
|
|
433
|
+
return throwError(e);
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
else
|
|
437
|
+
return throwError(response_);
|
|
438
|
+
}));
|
|
439
|
+
}
|
|
440
|
+
processGetColorPreviews(response) {
|
|
441
|
+
const status = response.status;
|
|
442
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
443
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
444
|
+
let _headers = {};
|
|
445
|
+
if (response.headers) {
|
|
446
|
+
for (let key of response.headers.keys()) {
|
|
447
|
+
_headers[key] = response.headers.get(key);
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
if (status === 200) {
|
|
451
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
452
|
+
let result200 = null;
|
|
453
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
454
|
+
return of(result200);
|
|
455
|
+
}));
|
|
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
|
+
}
|
|
335
471
|
/**
|
|
336
472
|
* @param fontKey (optional)
|
|
337
473
|
* @return Success
|
|
@@ -4265,6 +4401,146 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
4265
4401
|
}
|
|
4266
4402
|
return of(null);
|
|
4267
4403
|
}
|
|
4404
|
+
/**
|
|
4405
|
+
* @param tenantId (optional) Tenant identifier
|
|
4406
|
+
* @param body (optional)
|
|
4407
|
+
* @return Success
|
|
4408
|
+
*/
|
|
4409
|
+
getColorPreview(tenantId, body) {
|
|
4410
|
+
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/GetColorPreview?";
|
|
4411
|
+
if (tenantId === null)
|
|
4412
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
4413
|
+
else if (tenantId !== undefined)
|
|
4414
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4415
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4416
|
+
const content_ = JSON.stringify(body);
|
|
4417
|
+
let options_ = {
|
|
4418
|
+
body: content_,
|
|
4419
|
+
observe: "response",
|
|
4420
|
+
responseType: "blob",
|
|
4421
|
+
headers: new HttpHeaders({
|
|
4422
|
+
"Content-Type": "application/json",
|
|
4423
|
+
"Accept": "application/json"
|
|
4424
|
+
})
|
|
4425
|
+
};
|
|
4426
|
+
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
4427
|
+
return this.http.request("post", url_, transformedOptions_);
|
|
4428
|
+
})).pipe(mergeMap((response_) => {
|
|
4429
|
+
return this.transformResult(url_, response_, (r) => this.processGetColorPreview(r));
|
|
4430
|
+
})).pipe(catchError((response_) => {
|
|
4431
|
+
if (response_ instanceof HttpResponseBase) {
|
|
4432
|
+
try {
|
|
4433
|
+
return this.transformResult(url_, response_, (r) => this.processGetColorPreview(r));
|
|
4434
|
+
}
|
|
4435
|
+
catch (e) {
|
|
4436
|
+
return throwError(e);
|
|
4437
|
+
}
|
|
4438
|
+
}
|
|
4439
|
+
else
|
|
4440
|
+
return throwError(response_);
|
|
4441
|
+
}));
|
|
4442
|
+
}
|
|
4443
|
+
processGetColorPreview(response) {
|
|
4444
|
+
const status = response.status;
|
|
4445
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
4446
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
4447
|
+
let _headers = {};
|
|
4448
|
+
if (response.headers) {
|
|
4449
|
+
for (let key of response.headers.keys()) {
|
|
4450
|
+
_headers[key] = response.headers.get(key);
|
|
4451
|
+
}
|
|
4452
|
+
}
|
|
4453
|
+
if (status === 200) {
|
|
4454
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4455
|
+
let result200 = null;
|
|
4456
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4457
|
+
return of(result200);
|
|
4458
|
+
}));
|
|
4459
|
+
}
|
|
4460
|
+
else if (status === 500) {
|
|
4461
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4462
|
+
let result500 = null;
|
|
4463
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4464
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4465
|
+
}));
|
|
4466
|
+
}
|
|
4467
|
+
else if (status !== 200 && status !== 204) {
|
|
4468
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4469
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4470
|
+
}));
|
|
4471
|
+
}
|
|
4472
|
+
return of(null);
|
|
4473
|
+
}
|
|
4474
|
+
/**
|
|
4475
|
+
* @param tenantId (optional) Tenant identifier
|
|
4476
|
+
* @param body (optional)
|
|
4477
|
+
* @return Success
|
|
4478
|
+
*/
|
|
4479
|
+
getColorPreviews(tenantId, body) {
|
|
4480
|
+
let url_ = this.baseUrl + "/api/atoms/v1/ccviewer/GetColorPreviews?";
|
|
4481
|
+
if (tenantId === null)
|
|
4482
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
4483
|
+
else if (tenantId !== undefined)
|
|
4484
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
4485
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
4486
|
+
const content_ = JSON.stringify(body);
|
|
4487
|
+
let options_ = {
|
|
4488
|
+
body: content_,
|
|
4489
|
+
observe: "response",
|
|
4490
|
+
responseType: "blob",
|
|
4491
|
+
headers: new HttpHeaders({
|
|
4492
|
+
"Content-Type": "application/json",
|
|
4493
|
+
"Accept": "application/json"
|
|
4494
|
+
})
|
|
4495
|
+
};
|
|
4496
|
+
return from(this.transformOptions(options_)).pipe(mergeMap(transformedOptions_ => {
|
|
4497
|
+
return this.http.request("post", url_, transformedOptions_);
|
|
4498
|
+
})).pipe(mergeMap((response_) => {
|
|
4499
|
+
return this.transformResult(url_, response_, (r) => this.processGetColorPreviews(r));
|
|
4500
|
+
})).pipe(catchError((response_) => {
|
|
4501
|
+
if (response_ instanceof HttpResponseBase) {
|
|
4502
|
+
try {
|
|
4503
|
+
return this.transformResult(url_, response_, (r) => this.processGetColorPreviews(r));
|
|
4504
|
+
}
|
|
4505
|
+
catch (e) {
|
|
4506
|
+
return throwError(e);
|
|
4507
|
+
}
|
|
4508
|
+
}
|
|
4509
|
+
else
|
|
4510
|
+
return throwError(response_);
|
|
4511
|
+
}));
|
|
4512
|
+
}
|
|
4513
|
+
processGetColorPreviews(response) {
|
|
4514
|
+
const status = response.status;
|
|
4515
|
+
const responseBlob = response instanceof HttpResponse ? response.body :
|
|
4516
|
+
response.error instanceof Blob ? response.error : undefined;
|
|
4517
|
+
let _headers = {};
|
|
4518
|
+
if (response.headers) {
|
|
4519
|
+
for (let key of response.headers.keys()) {
|
|
4520
|
+
_headers[key] = response.headers.get(key);
|
|
4521
|
+
}
|
|
4522
|
+
}
|
|
4523
|
+
if (status === 200) {
|
|
4524
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4525
|
+
let result200 = null;
|
|
4526
|
+
result200 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4527
|
+
return of(result200);
|
|
4528
|
+
}));
|
|
4529
|
+
}
|
|
4530
|
+
else if (status === 500) {
|
|
4531
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4532
|
+
let result500 = null;
|
|
4533
|
+
result500 = _responseText === "" ? null : JSON.parse(_responseText, this.jsonParseReviver);
|
|
4534
|
+
return throwException("Internal server error", status, _responseText, _headers, result500);
|
|
4535
|
+
}));
|
|
4536
|
+
}
|
|
4537
|
+
else if (status !== 200 && status !== 204) {
|
|
4538
|
+
return blobToText(responseBlob).pipe(mergeMap(_responseText => {
|
|
4539
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
4540
|
+
}));
|
|
4541
|
+
}
|
|
4542
|
+
return of(null);
|
|
4543
|
+
}
|
|
4268
4544
|
/**
|
|
4269
4545
|
* @param fontKey (optional)
|
|
4270
4546
|
* @param tenantId (optional) Tenant identifier
|
|
@@ -5903,6 +6179,14 @@ DesignAtomsViewerApiClient.ctorParameters = () => [
|
|
|
5903
6179
|
{ type: HttpClient, decorators: [{ type: Inject, args: [HttpClient,] }] },
|
|
5904
6180
|
{ type: String, decorators: [{ type: Optional }, { type: Inject, args: [API_BASE_URL,] }] }
|
|
5905
6181
|
];
|
|
6182
|
+
var ColorSpace;
|
|
6183
|
+
(function (ColorSpace) {
|
|
6184
|
+
ColorSpace["Rgb"] = "Rgb";
|
|
6185
|
+
ColorSpace["Cmyk"] = "Cmyk";
|
|
6186
|
+
ColorSpace["Grayscale"] = "Grayscale";
|
|
6187
|
+
ColorSpace["Lab"] = "Lab";
|
|
6188
|
+
ColorSpace["Spot"] = "Spot";
|
|
6189
|
+
})(ColorSpace || (ColorSpace = {}));
|
|
5906
6190
|
/** Image preview file format. */
|
|
5907
6191
|
var ImagePreviewFormat;
|
|
5908
6192
|
(function (ImagePreviewFormat) {
|
|
@@ -6053,5 +6337,5 @@ DesignAtomsApiModule.decorators = [
|
|
|
6053
6337
|
* Generated bundle index. Do not edit.
|
|
6054
6338
|
*/
|
|
6055
6339
|
|
|
6056
|
-
export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, BuildInfoApiClient, CreateApiClientConfiguration, DesignAtomsApiModule, DesignAtomsCompatibilityApiClient, DesignAtomsImagesApiClient, DesignAtomsMockups3dApiClient, DesignAtomsServiceApiClient, DesignAtomsViewerApiClient, DesignElementType, ImagePreviewFormat, ItemSourceType, ItemType, PlaceholderItemContentType, ProductPatchType, ProductPreviewFormat, ProductProofFormat, ProductProofInterpolationMode };
|
|
6340
|
+
export { API_BASE_URL, ApiClientBase, ApiClientConfiguration, ApiException, BuildInfoApiClient, ColorSpace, CreateApiClientConfiguration, DesignAtomsApiModule, DesignAtomsCompatibilityApiClient, DesignAtomsImagesApiClient, DesignAtomsMockups3dApiClient, DesignAtomsServiceApiClient, DesignAtomsViewerApiClient, DesignElementType, ImagePreviewFormat, ItemSourceType, ItemType, PlaceholderItemContentType, ProductPatchType, ProductPreviewFormat, ProductProofFormat, ProductProofInterpolationMode };
|
|
6057
6341
|
//# sourceMappingURL=aurigma-ng-design-atoms-api-client.js.map
|