@aurigma/axios-design-atoms-api-client 2.77.4 → 2.79.3

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.
@@ -1477,6 +1477,13 @@ export interface IDesignAtomsPrintProductItemsApiClient {
1477
1477
  * @return Success
1478
1478
  */
1479
1479
  applyItemEffects(tenantId?: number | undefined, body?: any | undefined): Promise<any>;
1480
+ /**
1481
+ * Creates ellipse print-product item and returns its serialized model.
1482
+ * @param tenantId (optional) Tenant ID.
1483
+ * @param body (optional) Operation parameters.
1484
+ * @return Success
1485
+ */
1486
+ createEllipseItem(tenantId?: number | undefined, body?: CreateEllipseItemModel | undefined): Promise<any>;
1480
1487
  /**
1481
1488
  * Extracts print-product item image.
1482
1489
  * @param tenantId (optional) Tenant ID.
@@ -1552,6 +1559,13 @@ export interface IDesignAtomsPrintProductItemsApiClient {
1552
1559
  * @return Success
1553
1560
  */
1554
1561
  batchCreateItemsFromUrl(itemType?: ItemType | null | undefined, tenantId?: number | undefined, body?: BatchCreateItemsFromUrlModel | undefined): Promise<any>;
1562
+ /**
1563
+ * Creates rectangle print-product item and returns its serialized model.
1564
+ * @param tenantId (optional) Tenant ID.
1565
+ * @param body (optional) Operation parameters.
1566
+ * @return Success
1567
+ */
1568
+ createRectangleItem(tenantId?: number | undefined, body?: CreateRectangleItemModel | undefined): Promise<any>;
1555
1569
  }
1556
1570
  export declare class DesignAtomsPrintProductItemsApiClient extends ApiClientBase implements IDesignAtomsPrintProductItemsApiClient {
1557
1571
  private instance;
@@ -1566,6 +1580,14 @@ export declare class DesignAtomsPrintProductItemsApiClient extends ApiClientBase
1566
1580
  */
1567
1581
  applyItemEffects(tenantId?: number | undefined, body?: any | undefined, cancelToken?: CancelToken | undefined): Promise<any>;
1568
1582
  protected processApplyItemEffects(response: AxiosResponse): Promise<any>;
1583
+ /**
1584
+ * Creates ellipse print-product item and returns its serialized model.
1585
+ * @param tenantId (optional) Tenant ID.
1586
+ * @param body (optional) Operation parameters.
1587
+ * @return Success
1588
+ */
1589
+ createEllipseItem(tenantId?: number | undefined, body?: CreateEllipseItemModel | undefined, cancelToken?: CancelToken | undefined): Promise<any>;
1590
+ protected processCreateEllipseItem(response: AxiosResponse): Promise<any>;
1569
1591
  /**
1570
1592
  * Extracts print-product item image.
1571
1593
  * @param tenantId (optional) Tenant ID.
@@ -1650,6 +1672,14 @@ export declare class DesignAtomsPrintProductItemsApiClient extends ApiClientBase
1650
1672
  */
1651
1673
  batchCreateItemsFromUrl(itemType?: ItemType | null | undefined, tenantId?: number | undefined, body?: BatchCreateItemsFromUrlModel | undefined, cancelToken?: CancelToken | undefined): Promise<any>;
1652
1674
  protected processBatchCreateItemsFromUrl(response: AxiosResponse): Promise<any>;
1675
+ /**
1676
+ * Creates rectangle print-product item and returns its serialized model.
1677
+ * @param tenantId (optional) Tenant ID.
1678
+ * @param body (optional) Operation parameters.
1679
+ * @return Success
1680
+ */
1681
+ createRectangleItem(tenantId?: number | undefined, body?: CreateRectangleItemModel | undefined, cancelToken?: CancelToken | undefined): Promise<any>;
1682
+ protected processCreateRectangleItem(response: AxiosResponse): Promise<any>;
1653
1683
  }
1654
1684
  export interface IDesignAtomsServiceApiClient {
1655
1685
  /**
@@ -2804,6 +2834,21 @@ export interface CreateDesignModel {
2804
2834
  /** Design location (folder path). */
2805
2835
  path?: string | null;
2806
2836
  }
2837
+ /** Ellipse item creation parameters. */
2838
+ export interface CreateEllipseItemModel {
2839
+ /** Ellipse width. */
2840
+ width?: number;
2841
+ /** Ellipse height. */
2842
+ height?: number;
2843
+ /** Ellipse fill color (css-style, e.g. #000000). */
2844
+ fillColor?: string | null;
2845
+ /** Ellipse border color (css-style, e.g. #000000). */
2846
+ borderColor?: string | null;
2847
+ /** Border width (in pixels). */
2848
+ borderWidth?: number | null;
2849
+ /** Ellipse border style. */
2850
+ borderStyle?: ItemBorderStyle;
2851
+ }
2807
2852
  /** Create item from storage source operation parameters. */
2808
2853
  export interface CreateItemFromStorageModel {
2809
2854
  /** Source image asset owner identifier. If value is set, all images should belong to a specified user. */
@@ -2835,6 +2880,21 @@ For example, `Authorization` header can be placed here to provide access to imag
2835
2880
  /** Indicates if resulting item should store original source file. */
2836
2881
  preserveOriginalFile?: boolean | null;
2837
2882
  }
2883
+ /** Rectangle item creation parameters. */
2884
+ export interface CreateRectangleItemModel {
2885
+ /** Rectangle width. */
2886
+ width?: number;
2887
+ /** Rectangle height. */
2888
+ height?: number;
2889
+ /** Rectangle fill color (css-style, e.g. #000000). */
2890
+ fillColor?: string | null;
2891
+ /** Rectangle border color (css-style, e.g. #000000). */
2892
+ borderColor?: string | null;
2893
+ /** Border width (in pixels). */
2894
+ borderWidth?: number | null;
2895
+ /** Rectangle border style. */
2896
+ borderStyle?: ItemBorderStyle;
2897
+ }
2838
2898
  export interface DesignElementProcessingConflictDto {
2839
2899
  /** Missing element type. */
2840
2900
  readonly missingElementType?: DesignElementType | null;
@@ -3136,6 +3196,10 @@ export interface ImagePreviewRenderingConfig {
3136
3196
  Zero by default. */
3137
3197
  pageIndex?: number | null;
3138
3198
  }
3199
+ export declare enum ItemBorderStyle {
3200
+ Solid = "Solid",
3201
+ Dashed = "Dashed"
3202
+ }
3139
3203
  /** Item source types. */
3140
3204
  export declare enum ItemSourceType {
3141
3205
  File = "File",
@@ -3306,6 +3370,8 @@ export interface ProductPreviewRenderingConfig {
3306
3370
  surfaceIndex?: number | null;
3307
3371
  /** Indicates whether to show stub content for preview image. */
3308
3372
  stub?: boolean | null;
3373
+ /** Indicates whether print areas borders should be visualized. */
3374
+ visualizePrintAreas?: boolean | null;
3309
3375
  /** Preview image width. */
3310
3376
  width?: number;
3311
3377
  /** Preview image height. */
@@ -3345,6 +3411,8 @@ export interface ProductProofRenderingConfig {
3345
3411
  interpolationMode?: ProductProofInterpolationMode | null;
3346
3412
  /** Defines whether safety lines should be visualized. */
3347
3413
  safetyLinesEnabled?: boolean | null;
3414
+ /** Defines whether print areas borders should be visualized. */
3415
+ visualizePrintAreas?: boolean | null;
3348
3416
  /** Defines whether watermark should be included. */
3349
3417
  watermarkEnabled?: boolean | null;
3350
3418
  /** Defines watermark opacity (in range 0 .. 1.0). */
@@ -6362,6 +6362,81 @@ export class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
6362
6362
  }
6363
6363
  return Promise.resolve(null);
6364
6364
  }
6365
+ /**
6366
+ * Creates ellipse print-product item and returns its serialized model.
6367
+ * @param tenantId (optional) Tenant ID.
6368
+ * @param body (optional) Operation parameters.
6369
+ * @return Success
6370
+ */
6371
+ createEllipseItem(tenantId, body, cancelToken) {
6372
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/print-product/items/ellipse?";
6373
+ if (tenantId === null)
6374
+ throw new Error("The parameter 'tenantId' cannot be null.");
6375
+ else if (tenantId !== undefined)
6376
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
6377
+ url_ = url_.replace(/[?&]$/, "");
6378
+ const content_ = JSON.stringify(body);
6379
+ let options_ = {
6380
+ data: content_,
6381
+ method: "POST",
6382
+ url: url_,
6383
+ headers: {
6384
+ "Content-Type": "application/json",
6385
+ "Accept": "application/json"
6386
+ },
6387
+ cancelToken
6388
+ };
6389
+ return this.transformOptions(options_).then(transformedOptions_ => {
6390
+ return this.instance.request(transformedOptions_);
6391
+ }).catch((_error) => {
6392
+ if (isAxiosError(_error) && _error.response) {
6393
+ return _error.response;
6394
+ }
6395
+ else {
6396
+ throw _error;
6397
+ }
6398
+ }).then((_response) => {
6399
+ return this.transformResult(url_, _response, (_response) => this.processCreateEllipseItem(_response));
6400
+ });
6401
+ }
6402
+ processCreateEllipseItem(response) {
6403
+ const status = response.status;
6404
+ let _headers = {};
6405
+ if (response.headers && typeof response.headers === "object") {
6406
+ for (let k in response.headers) {
6407
+ if (response.headers.hasOwnProperty(k)) {
6408
+ _headers[k] = response.headers[k];
6409
+ }
6410
+ }
6411
+ }
6412
+ if (status === 200) {
6413
+ const _responseText = response.data;
6414
+ let result200 = null;
6415
+ let resultData200 = _responseText;
6416
+ result200 = JSON.parse(resultData200);
6417
+ return Promise.resolve(result200);
6418
+ }
6419
+ else if (status === 404) {
6420
+ const _responseText = response.data;
6421
+ let result404 = null;
6422
+ let resultData404 = _responseText;
6423
+ result404 = JSON.parse(resultData404);
6424
+ return throwException("Not Found", status, _responseText, _headers, result404);
6425
+ }
6426
+ else if (status === 401) {
6427
+ const _responseText = response.data;
6428
+ return throwException("Unauthorized", status, _responseText, _headers);
6429
+ }
6430
+ else if (status === 403) {
6431
+ const _responseText = response.data;
6432
+ return throwException("Forbidden", status, _responseText, _headers);
6433
+ }
6434
+ else if (status !== 200 && status !== 204) {
6435
+ const _responseText = response.data;
6436
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6437
+ }
6438
+ return Promise.resolve(null);
6439
+ }
6365
6440
  /**
6366
6441
  * Extracts print-product item image.
6367
6442
  * @param tenantId (optional) Tenant ID.
@@ -7152,6 +7227,81 @@ export class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
7152
7227
  }
7153
7228
  return Promise.resolve(null);
7154
7229
  }
7230
+ /**
7231
+ * Creates rectangle print-product item and returns its serialized model.
7232
+ * @param tenantId (optional) Tenant ID.
7233
+ * @param body (optional) Operation parameters.
7234
+ * @return Success
7235
+ */
7236
+ createRectangleItem(tenantId, body, cancelToken) {
7237
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/print-product/items/rectangle?";
7238
+ if (tenantId === null)
7239
+ throw new Error("The parameter 'tenantId' cannot be null.");
7240
+ else if (tenantId !== undefined)
7241
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
7242
+ url_ = url_.replace(/[?&]$/, "");
7243
+ const content_ = JSON.stringify(body);
7244
+ let options_ = {
7245
+ data: content_,
7246
+ method: "POST",
7247
+ url: url_,
7248
+ headers: {
7249
+ "Content-Type": "application/json",
7250
+ "Accept": "application/json"
7251
+ },
7252
+ cancelToken
7253
+ };
7254
+ return this.transformOptions(options_).then(transformedOptions_ => {
7255
+ return this.instance.request(transformedOptions_);
7256
+ }).catch((_error) => {
7257
+ if (isAxiosError(_error) && _error.response) {
7258
+ return _error.response;
7259
+ }
7260
+ else {
7261
+ throw _error;
7262
+ }
7263
+ }).then((_response) => {
7264
+ return this.transformResult(url_, _response, (_response) => this.processCreateRectangleItem(_response));
7265
+ });
7266
+ }
7267
+ processCreateRectangleItem(response) {
7268
+ const status = response.status;
7269
+ let _headers = {};
7270
+ if (response.headers && typeof response.headers === "object") {
7271
+ for (let k in response.headers) {
7272
+ if (response.headers.hasOwnProperty(k)) {
7273
+ _headers[k] = response.headers[k];
7274
+ }
7275
+ }
7276
+ }
7277
+ if (status === 200) {
7278
+ const _responseText = response.data;
7279
+ let result200 = null;
7280
+ let resultData200 = _responseText;
7281
+ result200 = JSON.parse(resultData200);
7282
+ return Promise.resolve(result200);
7283
+ }
7284
+ else if (status === 404) {
7285
+ const _responseText = response.data;
7286
+ let result404 = null;
7287
+ let resultData404 = _responseText;
7288
+ result404 = JSON.parse(resultData404);
7289
+ return throwException("Not Found", status, _responseText, _headers, result404);
7290
+ }
7291
+ else if (status === 401) {
7292
+ const _responseText = response.data;
7293
+ return throwException("Unauthorized", status, _responseText, _headers);
7294
+ }
7295
+ else if (status === 403) {
7296
+ const _responseText = response.data;
7297
+ return throwException("Forbidden", status, _responseText, _headers);
7298
+ }
7299
+ else if (status !== 200 && status !== 204) {
7300
+ const _responseText = response.data;
7301
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
7302
+ }
7303
+ return Promise.resolve(null);
7304
+ }
7155
7305
  }
7156
7306
  export class DesignAtomsServiceApiClient extends ApiClientBase {
7157
7307
  instance;
@@ -11239,6 +11389,11 @@ export var ImagePreviewFormat;
11239
11389
  ImagePreviewFormat["Jpeg"] = "Jpeg";
11240
11390
  ImagePreviewFormat["Png"] = "Png";
11241
11391
  })(ImagePreviewFormat || (ImagePreviewFormat = {}));
11392
+ export var ItemBorderStyle;
11393
+ (function (ItemBorderStyle) {
11394
+ ItemBorderStyle["Solid"] = "Solid";
11395
+ ItemBorderStyle["Dashed"] = "Dashed";
11396
+ })(ItemBorderStyle || (ItemBorderStyle = {}));
11242
11397
  /** Item source types. */
11243
11398
  export var ItemSourceType;
11244
11399
  (function (ItemSourceType) {