@aurigma/axios-design-atoms-api-client 2.77.4 → 2.79.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.
@@ -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,19 @@ 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
+ /** Ellipse border style. */
2848
+ borderStyle?: ItemBorderStyle;
2849
+ }
2807
2850
  /** Create item from storage source operation parameters. */
2808
2851
  export interface CreateItemFromStorageModel {
2809
2852
  /** Source image asset owner identifier. If value is set, all images should belong to a specified user. */
@@ -2835,6 +2878,19 @@ For example, `Authorization` header can be placed here to provide access to imag
2835
2878
  /** Indicates if resulting item should store original source file. */
2836
2879
  preserveOriginalFile?: boolean | null;
2837
2880
  }
2881
+ /** Rectangle item creation parameters. */
2882
+ export interface CreateRectangleItemModel {
2883
+ /** Rectangle width. */
2884
+ width?: number;
2885
+ /** Rectangle height. */
2886
+ height?: number;
2887
+ /** Rectangle fill color (css-style, e.g. #000000). */
2888
+ fillColor?: string | null;
2889
+ /** Rectangle border color (css-style, e.g. #000000). */
2890
+ borderColor?: string | null;
2891
+ /** Rectangle border style. */
2892
+ borderStyle?: ItemBorderStyle;
2893
+ }
2838
2894
  export interface DesignElementProcessingConflictDto {
2839
2895
  /** Missing element type. */
2840
2896
  readonly missingElementType?: DesignElementType | null;
@@ -3136,6 +3192,10 @@ export interface ImagePreviewRenderingConfig {
3136
3192
  Zero by default. */
3137
3193
  pageIndex?: number | null;
3138
3194
  }
3195
+ export declare enum ItemBorderStyle {
3196
+ Solid = "Solid",
3197
+ Dashed = "Dashed"
3198
+ }
3139
3199
  /** Item source types. */
3140
3200
  export declare enum ItemSourceType {
3141
3201
  File = "File",
@@ -3306,6 +3366,8 @@ export interface ProductPreviewRenderingConfig {
3306
3366
  surfaceIndex?: number | null;
3307
3367
  /** Indicates whether to show stub content for preview image. */
3308
3368
  stub?: boolean | null;
3369
+ /** Indicates whether print areas borders should be visualized. */
3370
+ visualizePrintAreas?: boolean | null;
3309
3371
  /** Preview image width. */
3310
3372
  width?: number;
3311
3373
  /** Preview image height. */
@@ -3345,6 +3407,8 @@ export interface ProductProofRenderingConfig {
3345
3407
  interpolationMode?: ProductProofInterpolationMode | null;
3346
3408
  /** Defines whether safety lines should be visualized. */
3347
3409
  safetyLinesEnabled?: boolean | null;
3410
+ /** Defines whether print areas borders should be visualized. */
3411
+ visualizePrintAreas?: boolean | null;
3348
3412
  /** Defines whether watermark should be included. */
3349
3413
  watermarkEnabled?: boolean | null;
3350
3414
  /** Defines watermark opacity (in range 0 .. 1.0). */
@@ -8,7 +8,7 @@
8
8
  //----------------------
9
9
  // ReSharper disable InconsistentNaming
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.ApiException = exports.TextVerticalAlignment = exports.TextAlignment = exports.ProductProofInterpolationMode = exports.ProductProofFormat = exports.ProductPreviewFormat = exports.ProductPatchType = exports.PlaceholderItemContentType = exports.MockupPreviewFormat = exports.MockupPreviewFitMode = exports.ItemType = exports.ItemSourceType = exports.ImagePreviewFormat = exports.ImagePreviewFitMode = exports.ImageExtractionFormat = exports.DesignElementType = exports.ContainerPrintingMode = exports.ContainerColorSpace = exports.ConflictType = exports.ColorlessContainerFormat = exports.ColorlessContainerDitherType = exports.ColorlessContainerDisplayType = exports.ArtworkShapeType = exports.DesignAtomsViewerApiClient = exports.DesignAtomsServiceApiClient = exports.DesignAtomsPrintProductItemsApiClient = exports.DesignAtomsPrintProductApiClient = exports.DesignAtomsPalettesApiClient = exports.DesignAtomsMockups3dApiClient = exports.DesignAtomsMockups2dApiClient = exports.DesignAtomsImagesApiClient = exports.DesignAtomsCompatibilityApiClient = exports.BuildInfoApiClient = exports.ApiClientBase = exports.ApiClientConfiguration = void 0;
11
+ exports.ApiException = exports.TextVerticalAlignment = exports.TextAlignment = exports.ProductProofInterpolationMode = exports.ProductProofFormat = exports.ProductPreviewFormat = exports.ProductPatchType = exports.PlaceholderItemContentType = exports.MockupPreviewFormat = exports.MockupPreviewFitMode = exports.ItemType = exports.ItemSourceType = exports.ItemBorderStyle = exports.ImagePreviewFormat = exports.ImagePreviewFitMode = exports.ImageExtractionFormat = exports.DesignElementType = exports.ContainerPrintingMode = exports.ContainerColorSpace = exports.ConflictType = exports.ColorlessContainerFormat = exports.ColorlessContainerDitherType = exports.ColorlessContainerDisplayType = exports.ArtworkShapeType = exports.DesignAtomsViewerApiClient = exports.DesignAtomsServiceApiClient = exports.DesignAtomsPrintProductItemsApiClient = exports.DesignAtomsPrintProductApiClient = exports.DesignAtomsPalettesApiClient = exports.DesignAtomsMockups3dApiClient = exports.DesignAtomsMockups2dApiClient = exports.DesignAtomsImagesApiClient = exports.DesignAtomsCompatibilityApiClient = exports.BuildInfoApiClient = exports.ApiClientBase = exports.ApiClientConfiguration = void 0;
12
12
  const axios_1 = require("axios");
13
13
  class ApiClientConfiguration {
14
14
  apiUrl;
@@ -6374,6 +6374,81 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
6374
6374
  }
6375
6375
  return Promise.resolve(null);
6376
6376
  }
6377
+ /**
6378
+ * Creates ellipse print-product item and returns its serialized model.
6379
+ * @param tenantId (optional) Tenant ID.
6380
+ * @param body (optional) Operation parameters.
6381
+ * @return Success
6382
+ */
6383
+ createEllipseItem(tenantId, body, cancelToken) {
6384
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/print-product/items/ellipse?";
6385
+ if (tenantId === null)
6386
+ throw new Error("The parameter 'tenantId' cannot be null.");
6387
+ else if (tenantId !== undefined)
6388
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
6389
+ url_ = url_.replace(/[?&]$/, "");
6390
+ const content_ = JSON.stringify(body);
6391
+ let options_ = {
6392
+ data: content_,
6393
+ method: "POST",
6394
+ url: url_,
6395
+ headers: {
6396
+ "Content-Type": "application/json",
6397
+ "Accept": "application/json"
6398
+ },
6399
+ cancelToken
6400
+ };
6401
+ return this.transformOptions(options_).then(transformedOptions_ => {
6402
+ return this.instance.request(transformedOptions_);
6403
+ }).catch((_error) => {
6404
+ if (isAxiosError(_error) && _error.response) {
6405
+ return _error.response;
6406
+ }
6407
+ else {
6408
+ throw _error;
6409
+ }
6410
+ }).then((_response) => {
6411
+ return this.transformResult(url_, _response, (_response) => this.processCreateEllipseItem(_response));
6412
+ });
6413
+ }
6414
+ processCreateEllipseItem(response) {
6415
+ const status = response.status;
6416
+ let _headers = {};
6417
+ if (response.headers && typeof response.headers === "object") {
6418
+ for (let k in response.headers) {
6419
+ if (response.headers.hasOwnProperty(k)) {
6420
+ _headers[k] = response.headers[k];
6421
+ }
6422
+ }
6423
+ }
6424
+ if (status === 200) {
6425
+ const _responseText = response.data;
6426
+ let result200 = null;
6427
+ let resultData200 = _responseText;
6428
+ result200 = JSON.parse(resultData200);
6429
+ return Promise.resolve(result200);
6430
+ }
6431
+ else if (status === 404) {
6432
+ const _responseText = response.data;
6433
+ let result404 = null;
6434
+ let resultData404 = _responseText;
6435
+ result404 = JSON.parse(resultData404);
6436
+ return throwException("Not Found", status, _responseText, _headers, result404);
6437
+ }
6438
+ else if (status === 401) {
6439
+ const _responseText = response.data;
6440
+ return throwException("Unauthorized", status, _responseText, _headers);
6441
+ }
6442
+ else if (status === 403) {
6443
+ const _responseText = response.data;
6444
+ return throwException("Forbidden", status, _responseText, _headers);
6445
+ }
6446
+ else if (status !== 200 && status !== 204) {
6447
+ const _responseText = response.data;
6448
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
6449
+ }
6450
+ return Promise.resolve(null);
6451
+ }
6377
6452
  /**
6378
6453
  * Extracts print-product item image.
6379
6454
  * @param tenantId (optional) Tenant ID.
@@ -7164,6 +7239,81 @@ class DesignAtomsPrintProductItemsApiClient extends ApiClientBase {
7164
7239
  }
7165
7240
  return Promise.resolve(null);
7166
7241
  }
7242
+ /**
7243
+ * Creates rectangle print-product item and returns its serialized model.
7244
+ * @param tenantId (optional) Tenant ID.
7245
+ * @param body (optional) Operation parameters.
7246
+ * @return Success
7247
+ */
7248
+ createRectangleItem(tenantId, body, cancelToken) {
7249
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/print-product/items/rectangle?";
7250
+ if (tenantId === null)
7251
+ throw new Error("The parameter 'tenantId' cannot be null.");
7252
+ else if (tenantId !== undefined)
7253
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
7254
+ url_ = url_.replace(/[?&]$/, "");
7255
+ const content_ = JSON.stringify(body);
7256
+ let options_ = {
7257
+ data: content_,
7258
+ method: "POST",
7259
+ url: url_,
7260
+ headers: {
7261
+ "Content-Type": "application/json",
7262
+ "Accept": "application/json"
7263
+ },
7264
+ cancelToken
7265
+ };
7266
+ return this.transformOptions(options_).then(transformedOptions_ => {
7267
+ return this.instance.request(transformedOptions_);
7268
+ }).catch((_error) => {
7269
+ if (isAxiosError(_error) && _error.response) {
7270
+ return _error.response;
7271
+ }
7272
+ else {
7273
+ throw _error;
7274
+ }
7275
+ }).then((_response) => {
7276
+ return this.transformResult(url_, _response, (_response) => this.processCreateRectangleItem(_response));
7277
+ });
7278
+ }
7279
+ processCreateRectangleItem(response) {
7280
+ const status = response.status;
7281
+ let _headers = {};
7282
+ if (response.headers && typeof response.headers === "object") {
7283
+ for (let k in response.headers) {
7284
+ if (response.headers.hasOwnProperty(k)) {
7285
+ _headers[k] = response.headers[k];
7286
+ }
7287
+ }
7288
+ }
7289
+ if (status === 200) {
7290
+ const _responseText = response.data;
7291
+ let result200 = null;
7292
+ let resultData200 = _responseText;
7293
+ result200 = JSON.parse(resultData200);
7294
+ return Promise.resolve(result200);
7295
+ }
7296
+ else if (status === 404) {
7297
+ const _responseText = response.data;
7298
+ let result404 = null;
7299
+ let resultData404 = _responseText;
7300
+ result404 = JSON.parse(resultData404);
7301
+ return throwException("Not Found", status, _responseText, _headers, result404);
7302
+ }
7303
+ else if (status === 401) {
7304
+ const _responseText = response.data;
7305
+ return throwException("Unauthorized", status, _responseText, _headers);
7306
+ }
7307
+ else if (status === 403) {
7308
+ const _responseText = response.data;
7309
+ return throwException("Forbidden", status, _responseText, _headers);
7310
+ }
7311
+ else if (status !== 200 && status !== 204) {
7312
+ const _responseText = response.data;
7313
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
7314
+ }
7315
+ return Promise.resolve(null);
7316
+ }
7167
7317
  }
7168
7318
  exports.DesignAtomsPrintProductItemsApiClient = DesignAtomsPrintProductItemsApiClient;
7169
7319
  class DesignAtomsServiceApiClient extends ApiClientBase {
@@ -11254,6 +11404,11 @@ var ImagePreviewFormat;
11254
11404
  ImagePreviewFormat["Jpeg"] = "Jpeg";
11255
11405
  ImagePreviewFormat["Png"] = "Png";
11256
11406
  })(ImagePreviewFormat = exports.ImagePreviewFormat || (exports.ImagePreviewFormat = {}));
11407
+ var ItemBorderStyle;
11408
+ (function (ItemBorderStyle) {
11409
+ ItemBorderStyle["Solid"] = "Solid";
11410
+ ItemBorderStyle["Dashed"] = "Dashed";
11411
+ })(ItemBorderStyle = exports.ItemBorderStyle || (exports.ItemBorderStyle = {}));
11257
11412
  /** Item source types. */
11258
11413
  var ItemSourceType;
11259
11414
  (function (ItemSourceType) {