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

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.
@@ -769,6 +769,36 @@ export interface IDesignAtomsPrintProductApiClient {
769
769
  * @return Success
770
770
  */
771
771
  getDesignSurfaceContainers(id: string, surfaceId?: string | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined): Promise<DesignSurfaceContainerDto[]>;
772
+ /**
773
+ * Returns a list of print-product container descriptions of the specified design file.
774
+ * @param id Design identifier.
775
+ * @param index (optional)
776
+ * @param surfaceId (optional) Print-product surface identifier.
777
+ * @param privateStorageOwner (optional) Private storage owner identifier.
778
+ * @param tenantId (optional) Tenant ID.
779
+ * @param body (optional)
780
+ * @return Success
781
+ */
782
+ addDesignSurfaceContainer(id: string, index?: number | null | undefined, surfaceId?: string | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: DesignSurfaceContainerParams | undefined): Promise<DesignSurfaceContainerDto>;
783
+ /**
784
+ * Returns a print-product container parameters of the specified design file.
785
+ * @param id Design identifier.
786
+ * @param containerId Print-product container identifier.
787
+ * @param privateStorageOwner (optional) Private storage owner identifier.
788
+ * @param tenantId (optional) Tenant ID.
789
+ * @return Success
790
+ */
791
+ getDesignSurfaceContainer(id: string, containerId: string, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined): Promise<DesignSurfaceContainerDto>;
792
+ /**
793
+ * Returns a list of print-product container descriptions of the specified design file.
794
+ * @param id Design identifier.
795
+ * @param surfaceId (optional) Print-product surface identifier.
796
+ * @param privateStorageOwner (optional) Private storage owner identifier.
797
+ * @param tenantId (optional) Tenant ID.
798
+ * @param body (optional)
799
+ * @return Success
800
+ */
801
+ updateDesignSurfaceContainer(id: string, containerId: string, surfaceId?: string | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: DesignSurfaceContainerParams | undefined): Promise<DesignSurfaceContainerDto>;
772
802
  /**
773
803
  * Deletes a specified print-product container in an existing design file.
774
804
  * @param id Design identifier.
@@ -909,7 +939,7 @@ export interface IDesignAtomsPrintProductApiClient {
909
939
  * @param body (optional) Print-area description model.
910
940
  * @return Success
911
941
  */
912
- updateDesignPrintArea(id: string, printAreaId: string, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: DesignPrintAreaParams | undefined): Promise<any>;
942
+ updateDesignPrintArea(id: string, printAreaId: string, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: DesignPrintAreaParams | undefined): Promise<DesignPrintAreaDto>;
913
943
  /**
914
944
  * Deletes a specified print-area in an existing design file.
915
945
  * @param id Design identifier.
@@ -1088,6 +1118,39 @@ export declare class DesignAtomsPrintProductApiClient extends ApiClientBase impl
1088
1118
  */
1089
1119
  getDesignSurfaceContainers(id: string, surfaceId?: string | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, cancelToken?: CancelToken | undefined): Promise<DesignSurfaceContainerDto[]>;
1090
1120
  protected processGetDesignSurfaceContainers(response: AxiosResponse): Promise<DesignSurfaceContainerDto[]>;
1121
+ /**
1122
+ * Returns a list of print-product container descriptions of the specified design file.
1123
+ * @param id Design identifier.
1124
+ * @param index (optional)
1125
+ * @param surfaceId (optional) Print-product surface identifier.
1126
+ * @param privateStorageOwner (optional) Private storage owner identifier.
1127
+ * @param tenantId (optional) Tenant ID.
1128
+ * @param body (optional)
1129
+ * @return Success
1130
+ */
1131
+ addDesignSurfaceContainer(id: string, index?: number | null | undefined, surfaceId?: string | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: DesignSurfaceContainerParams | undefined, cancelToken?: CancelToken | undefined): Promise<DesignSurfaceContainerDto>;
1132
+ protected processAddDesignSurfaceContainer(response: AxiosResponse): Promise<DesignSurfaceContainerDto>;
1133
+ /**
1134
+ * Returns a print-product container parameters of the specified design file.
1135
+ * @param id Design identifier.
1136
+ * @param containerId Print-product container identifier.
1137
+ * @param privateStorageOwner (optional) Private storage owner identifier.
1138
+ * @param tenantId (optional) Tenant ID.
1139
+ * @return Success
1140
+ */
1141
+ getDesignSurfaceContainer(id: string, containerId: string, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, cancelToken?: CancelToken | undefined): Promise<DesignSurfaceContainerDto>;
1142
+ protected processGetDesignSurfaceContainer(response: AxiosResponse): Promise<DesignSurfaceContainerDto>;
1143
+ /**
1144
+ * Returns a list of print-product container descriptions of the specified design file.
1145
+ * @param id Design identifier.
1146
+ * @param surfaceId (optional) Print-product surface identifier.
1147
+ * @param privateStorageOwner (optional) Private storage owner identifier.
1148
+ * @param tenantId (optional) Tenant ID.
1149
+ * @param body (optional)
1150
+ * @return Success
1151
+ */
1152
+ updateDesignSurfaceContainer(id: string, containerId: string, surfaceId?: string | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: DesignSurfaceContainerParams | undefined, cancelToken?: CancelToken | undefined): Promise<DesignSurfaceContainerDto>;
1153
+ protected processUpdateDesignSurfaceContainer(response: AxiosResponse): Promise<DesignSurfaceContainerDto>;
1091
1154
  /**
1092
1155
  * Deletes a specified print-product container in an existing design file.
1093
1156
  * @param id Design identifier.
@@ -1241,8 +1304,8 @@ export declare class DesignAtomsPrintProductApiClient extends ApiClientBase impl
1241
1304
  * @param body (optional) Print-area description model.
1242
1305
  * @return Success
1243
1306
  */
1244
- updateDesignPrintArea(id: string, printAreaId: string, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: DesignPrintAreaParams | undefined, cancelToken?: CancelToken | undefined): Promise<any>;
1245
- protected processUpdateDesignPrintArea(response: AxiosResponse): Promise<any>;
1307
+ updateDesignPrintArea(id: string, printAreaId: string, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: DesignPrintAreaParams | undefined, cancelToken?: CancelToken | undefined): Promise<DesignPrintAreaDto>;
1308
+ protected processUpdateDesignPrintArea(response: AxiosResponse): Promise<DesignPrintAreaDto>;
1246
1309
  /**
1247
1310
  * Deletes a specified print-area in an existing design file.
1248
1311
  * @param id Design identifier.
@@ -2584,6 +2647,10 @@ export interface ApplyDesignItemsDataModel {
2584
2647
  [key: string]: DesignItemDataModel;
2585
2648
  } | null;
2586
2649
  }
2650
+ export declare enum ArtworkShapeType {
2651
+ Rectangle = "rectangle",
2652
+ Ellipse = "ellipse"
2653
+ }
2587
2654
  /** Batch create items from storage source operation parameters. */
2588
2655
  export interface BatchCreateItemsFromStorageModel {
2589
2656
  /** Source image assets owner identifier. If value is set, all images should belong to a specified user. */
@@ -2624,6 +2691,54 @@ export interface BuildInfoModel {
2624
2691
  /** Aurigma.DesignAtoms.Model version. */
2625
2692
  designAtomsModelVersion?: string | null;
2626
2693
  }
2694
+ /** Colorless container display type. */
2695
+ export declare enum ColorlessContainerDisplayType {
2696
+ Color = "Color",
2697
+ Texture = "Texture"
2698
+ }
2699
+ /** Colorless container dither type. */
2700
+ export declare enum ColorlessContainerDitherType {
2701
+ None = "None",
2702
+ Diffusion = "Diffusion",
2703
+ Pattern = "Pattern",
2704
+ Noise = "Noise"
2705
+ }
2706
+ /** Colorless container format. */
2707
+ export declare enum ColorlessContainerFormat {
2708
+ OneBit = "OneBit",
2709
+ Grayscale = "Grayscale",
2710
+ Vector = "Vector"
2711
+ }
2712
+ /** Colorless container settigns. */
2713
+ export interface ColorlessContainerSettingsDto {
2714
+ /** Container format. */
2715
+ format?: ColorlessContainerFormat;
2716
+ /** Container dither type. */
2717
+ dither?: ColorlessContainerDitherType;
2718
+ /** Container display type. */
2719
+ displayType?: ColorlessContainerDisplayType;
2720
+ /** Container dither amount. */
2721
+ ditherAmount?: number;
2722
+ /** Display color. */
2723
+ displayColor?: string | null;
2724
+ /** Output color. */
2725
+ outputColor?: string | null;
2726
+ }
2727
+ /** Colorless container settigns. */
2728
+ export interface ColorlessContainerSettingsParams {
2729
+ /** Container format. */
2730
+ format?: ColorlessContainerFormat;
2731
+ /** Container dither type. */
2732
+ dither?: ColorlessContainerDitherType;
2733
+ /** Container display type. */
2734
+ displayType?: ColorlessContainerDisplayType;
2735
+ /** Container dither amount. */
2736
+ ditherAmount?: number;
2737
+ /** Display color. */
2738
+ displayColor?: string | null;
2739
+ /** Output color. */
2740
+ outputColor?: string | null;
2741
+ }
2627
2742
  /** Conflict types. */
2628
2743
  export declare enum ConflictType {
2629
2744
  NameConflict = "NameConflict",
@@ -2631,6 +2746,42 @@ export declare enum ConflictType {
2631
2746
  IdConflict = "IdConflict",
2632
2747
  GeneralConflict = "GeneralConflict"
2633
2748
  }
2749
+ /** Full color container color space. */
2750
+ export declare enum ContainerColorSpace {
2751
+ Rgb = "Rgb",
2752
+ Cmyk = "Cmyk",
2753
+ Grayscale = "Grayscale",
2754
+ Lab = "Lab",
2755
+ Spot = "Spot"
2756
+ }
2757
+ /** Container constraints parameters. */
2758
+ export interface ContainerConstraintsDto {
2759
+ /** Boolean flag indicates if raster images are allowed to be placed in container. */
2760
+ allowRasterObjects?: boolean;
2761
+ /** Target hi-res print file DPI. */
2762
+ targetResolution?: number;
2763
+ /** Minimal font size for text objects placed in container. */
2764
+ minFontSize?: number;
2765
+ /** Maximal size of print zone. */
2766
+ maxArtworkSize?: MaxArtworkSizeConstraintsDto | null;
2767
+ }
2768
+ /** Container constraints parameters. */
2769
+ export interface ContainerConstraintsParams {
2770
+ /** Boolean flag indicates if raster images are allowed to be placed in container. */
2771
+ allowRasterObjects?: boolean;
2772
+ /** Target hi-res print file DPI. */
2773
+ targetResolution?: number;
2774
+ /** Minimal font size for text objects placed in container. */
2775
+ minFontSize?: number;
2776
+ /** Maximal size of print zone. */
2777
+ maxArtworkSize?: MaxArtworkSizeConstraintsParams | null;
2778
+ }
2779
+ /** Container printing mode. */
2780
+ export declare enum ContainerPrintingMode {
2781
+ FullColor = "FullColor",
2782
+ LimitedColor = "LimitedColor",
2783
+ Colorless = "Colorless"
2784
+ }
2634
2785
  /** Convert colors operation parameters. */
2635
2786
  export interface ConvertColorsModel {
2636
2787
  /** Serialized color description. */
@@ -2781,6 +2932,8 @@ export interface DesignPrintAreaDto {
2781
2932
  bleed?: MarginDto | null;
2782
2933
  /** Print area slug. */
2783
2934
  slug?: MarginDto | null;
2935
+ /** Print area shape. Usually content of svg path that describes print area shape is provided. */
2936
+ shape?: string | null;
2784
2937
  }
2785
2938
  /** Design print area parameters. */
2786
2939
  export interface DesignPrintAreaParams {
@@ -2796,6 +2949,8 @@ export interface DesignPrintAreaParams {
2796
2949
  bleed?: MarginModel | null;
2797
2950
  /** Print area slug. */
2798
2951
  slug?: MarginModel | null;
2952
+ /** Print area shape. Usually content of svg path that describes print area shape is provided. */
2953
+ shape?: string | null;
2799
2954
  }
2800
2955
  /** Print-product container description. */
2801
2956
  export interface DesignSurfaceContainerDto {
@@ -2811,6 +2966,35 @@ export interface DesignSurfaceContainerDto {
2811
2966
  size?: SizeDto | null;
2812
2967
  /** Container position. */
2813
2968
  position?: PositionDto | null;
2969
+ /** Container printing mode. */
2970
+ mode?: ContainerPrintingMode;
2971
+ /** Container constraints. */
2972
+ constraints?: ContainerConstraintsDto | null;
2973
+ /** Limited color container settings. If container mode is not 'LimitedColor', null value will be provided. */
2974
+ limitedColorSettings?: LimitedColorContainerSettingsDto | null;
2975
+ /** Full color container settings. If container mode is not 'FullColor', null value will be provided. */
2976
+ fullColorSettings?: FullColorContainerSettingsDto | null;
2977
+ /** Colorless container settings. If container mode is not 'Colorless', null value will be provided. */
2978
+ colorlessSettings?: ColorlessContainerSettingsDto | null;
2979
+ }
2980
+ /** Print-product container description. */
2981
+ export interface DesignSurfaceContainerParams {
2982
+ /** Container name. */
2983
+ name?: string | null;
2984
+ /** Container size. */
2985
+ size?: SizeModel | null;
2986
+ /** Container position. */
2987
+ position?: PositionModel | null;
2988
+ /** Container printing mode. */
2989
+ mode?: ContainerPrintingMode;
2990
+ /** Container constraints. */
2991
+ constraints?: ContainerConstraintsParams | null;
2992
+ /** Limited color container settings. If container mode is not 'LimitedColor', null value will be provided. */
2993
+ limitedColorSettings?: LimitedColorContainerSettingsParams | null;
2994
+ /** Full color container settings. If container mode is not 'FullColor', null value will be provided. */
2995
+ fullColorSettings?: FullColorContainerSettingsParams | null;
2996
+ /** Colorless container settings. If container mode is not 'Colorless', null value will be provided. */
2997
+ colorlessSettings?: ColorlessContainerSettingsParams | null;
2814
2998
  }
2815
2999
  /** Print-product surface description. */
2816
3000
  export interface DesignSurfaceDto {
@@ -2885,6 +3069,20 @@ export interface FontsMethodData {
2885
3069
  advancedMode?: boolean;
2886
3070
  baseUrl?: string | null;
2887
3071
  }
3072
+ /** Full color container settigns. */
3073
+ export interface FullColorContainerSettingsDto {
3074
+ /** Target color space. */
3075
+ colorSpace?: ContainerColorSpace;
3076
+ /** Target color profile name. */
3077
+ colorProfile?: string | null;
3078
+ }
3079
+ /** Full color container settigns. */
3080
+ export interface FullColorContainerSettingsParams {
3081
+ /** Target color space. */
3082
+ colorSpace?: ContainerColorSpace;
3083
+ /** Target color profile name. */
3084
+ colorProfile?: string | null;
3085
+ }
2888
3086
  /** Information about operation conflict. */
2889
3087
  export interface GeneralConflictDto {
2890
3088
  /** Problem description. */
@@ -2951,6 +3149,20 @@ export declare enum ItemType {
2951
3149
  Clipart = "Clipart",
2952
3150
  Group = "Group"
2953
3151
  }
3152
+ /** Limited color container settigns. */
3153
+ export interface LimitedColorContainerSettingsDto {
3154
+ /** Colors limit count. */
3155
+ colors?: number;
3156
+ /** Related palette UID. */
3157
+ paletteUID?: string | null;
3158
+ }
3159
+ /** Limited color container settigns. */
3160
+ export interface LimitedColorContainerSettingsParams {
3161
+ /** Colors limit count. */
3162
+ colors?: number;
3163
+ /** Related palette UID. */
3164
+ paletteUID?: string | null;
3165
+ }
2954
3166
  /** Margins of the print-product element. */
2955
3167
  export interface MarginDto {
2956
3168
  /** Print-product element top margin. */
@@ -2973,6 +3185,16 @@ export interface MarginModel {
2973
3185
  /** Bottom margin. */
2974
3186
  bottom?: number;
2975
3187
  }
3188
+ export interface MaxArtworkSizeConstraintsDto {
3189
+ width?: number | null;
3190
+ height?: number | null;
3191
+ shapeType?: ArtworkShapeType | null;
3192
+ }
3193
+ export interface MaxArtworkSizeConstraintsParams {
3194
+ width?: number | null;
3195
+ height?: number | null;
3196
+ shapeType?: ArtworkShapeType | null;
3197
+ }
2976
3198
  export interface MeasureUnitInfo {
2977
3199
  name?: string | null;
2978
3200
  shortName?: string | null;
@@ -3281,6 +3281,285 @@ export class DesignAtomsPrintProductApiClient extends ApiClientBase {
3281
3281
  }
3282
3282
  return Promise.resolve(null);
3283
3283
  }
3284
+ /**
3285
+ * Returns a list of print-product container descriptions of the specified design file.
3286
+ * @param id Design identifier.
3287
+ * @param index (optional)
3288
+ * @param surfaceId (optional) Print-product surface identifier.
3289
+ * @param privateStorageOwner (optional) Private storage owner identifier.
3290
+ * @param tenantId (optional) Tenant ID.
3291
+ * @param body (optional)
3292
+ * @return Success
3293
+ */
3294
+ addDesignSurfaceContainer(id, index, surfaceId, privateStorageOwner, tenantId, body, cancelToken) {
3295
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/containers?";
3296
+ if (id === undefined || id === null)
3297
+ throw new Error("The parameter 'id' must be defined.");
3298
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
3299
+ if (index !== undefined && index !== null)
3300
+ url_ += "index=" + encodeURIComponent("" + index) + "&";
3301
+ if (surfaceId !== undefined && surfaceId !== null)
3302
+ url_ += "surfaceId=" + encodeURIComponent("" + surfaceId) + "&";
3303
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3304
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3305
+ if (tenantId === null)
3306
+ throw new Error("The parameter 'tenantId' cannot be null.");
3307
+ else if (tenantId !== undefined)
3308
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3309
+ url_ = url_.replace(/[?&]$/, "");
3310
+ const content_ = JSON.stringify(body);
3311
+ let options_ = {
3312
+ data: content_,
3313
+ method: "POST",
3314
+ url: url_,
3315
+ headers: {
3316
+ "Content-Type": "application/json",
3317
+ "Accept": "application/json"
3318
+ },
3319
+ cancelToken
3320
+ };
3321
+ return this.transformOptions(options_).then(transformedOptions_ => {
3322
+ return this.instance.request(transformedOptions_);
3323
+ }).catch((_error) => {
3324
+ if (isAxiosError(_error) && _error.response) {
3325
+ return _error.response;
3326
+ }
3327
+ else {
3328
+ throw _error;
3329
+ }
3330
+ }).then((_response) => {
3331
+ return this.transformResult(url_, _response, (_response) => this.processAddDesignSurfaceContainer(_response));
3332
+ });
3333
+ }
3334
+ processAddDesignSurfaceContainer(response) {
3335
+ const status = response.status;
3336
+ let _headers = {};
3337
+ if (response.headers && typeof response.headers === "object") {
3338
+ for (let k in response.headers) {
3339
+ if (response.headers.hasOwnProperty(k)) {
3340
+ _headers[k] = response.headers[k];
3341
+ }
3342
+ }
3343
+ }
3344
+ if (status === 200) {
3345
+ const _responseText = response.data;
3346
+ let result200 = null;
3347
+ let resultData200 = _responseText;
3348
+ result200 = JSON.parse(resultData200);
3349
+ return Promise.resolve(result200);
3350
+ }
3351
+ else if (status === 404) {
3352
+ const _responseText = response.data;
3353
+ let result404 = null;
3354
+ let resultData404 = _responseText;
3355
+ result404 = JSON.parse(resultData404);
3356
+ return throwException("Not Found", status, _responseText, _headers, result404);
3357
+ }
3358
+ else if (status === 409) {
3359
+ const _responseText = response.data;
3360
+ let result409 = null;
3361
+ let resultData409 = _responseText;
3362
+ result409 = JSON.parse(resultData409);
3363
+ return throwException("Conflict", status, _responseText, _headers, result409);
3364
+ }
3365
+ else if (status === 401) {
3366
+ const _responseText = response.data;
3367
+ return throwException("Unauthorized", status, _responseText, _headers);
3368
+ }
3369
+ else if (status === 403) {
3370
+ const _responseText = response.data;
3371
+ return throwException("Forbidden", status, _responseText, _headers);
3372
+ }
3373
+ else if (status !== 200 && status !== 204) {
3374
+ const _responseText = response.data;
3375
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3376
+ }
3377
+ return Promise.resolve(null);
3378
+ }
3379
+ /**
3380
+ * Returns a print-product container parameters of the specified design file.
3381
+ * @param id Design identifier.
3382
+ * @param containerId Print-product container identifier.
3383
+ * @param privateStorageOwner (optional) Private storage owner identifier.
3384
+ * @param tenantId (optional) Tenant ID.
3385
+ * @return Success
3386
+ */
3387
+ getDesignSurfaceContainer(id, containerId, privateStorageOwner, tenantId, cancelToken) {
3388
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/containers/{containerId}?";
3389
+ if (id === undefined || id === null)
3390
+ throw new Error("The parameter 'id' must be defined.");
3391
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
3392
+ if (containerId === undefined || containerId === null)
3393
+ throw new Error("The parameter 'containerId' must be defined.");
3394
+ url_ = url_.replace("{containerId}", encodeURIComponent("" + containerId));
3395
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3396
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3397
+ if (tenantId === null)
3398
+ throw new Error("The parameter 'tenantId' cannot be null.");
3399
+ else if (tenantId !== undefined)
3400
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3401
+ url_ = url_.replace(/[?&]$/, "");
3402
+ let options_ = {
3403
+ method: "GET",
3404
+ url: url_,
3405
+ headers: {
3406
+ "Accept": "application/json"
3407
+ },
3408
+ cancelToken
3409
+ };
3410
+ return this.transformOptions(options_).then(transformedOptions_ => {
3411
+ return this.instance.request(transformedOptions_);
3412
+ }).catch((_error) => {
3413
+ if (isAxiosError(_error) && _error.response) {
3414
+ return _error.response;
3415
+ }
3416
+ else {
3417
+ throw _error;
3418
+ }
3419
+ }).then((_response) => {
3420
+ return this.transformResult(url_, _response, (_response) => this.processGetDesignSurfaceContainer(_response));
3421
+ });
3422
+ }
3423
+ processGetDesignSurfaceContainer(response) {
3424
+ const status = response.status;
3425
+ let _headers = {};
3426
+ if (response.headers && typeof response.headers === "object") {
3427
+ for (let k in response.headers) {
3428
+ if (response.headers.hasOwnProperty(k)) {
3429
+ _headers[k] = response.headers[k];
3430
+ }
3431
+ }
3432
+ }
3433
+ if (status === 200) {
3434
+ const _responseText = response.data;
3435
+ let result200 = null;
3436
+ let resultData200 = _responseText;
3437
+ result200 = JSON.parse(resultData200);
3438
+ return Promise.resolve(result200);
3439
+ }
3440
+ else if (status === 404) {
3441
+ const _responseText = response.data;
3442
+ let result404 = null;
3443
+ let resultData404 = _responseText;
3444
+ result404 = JSON.parse(resultData404);
3445
+ return throwException("Not Found", status, _responseText, _headers, result404);
3446
+ }
3447
+ else if (status === 409) {
3448
+ const _responseText = response.data;
3449
+ let result409 = null;
3450
+ let resultData409 = _responseText;
3451
+ result409 = JSON.parse(resultData409);
3452
+ return throwException("Conflict", status, _responseText, _headers, result409);
3453
+ }
3454
+ else if (status === 401) {
3455
+ const _responseText = response.data;
3456
+ return throwException("Unauthorized", status, _responseText, _headers);
3457
+ }
3458
+ else if (status === 403) {
3459
+ const _responseText = response.data;
3460
+ return throwException("Forbidden", status, _responseText, _headers);
3461
+ }
3462
+ else if (status !== 200 && status !== 204) {
3463
+ const _responseText = response.data;
3464
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3465
+ }
3466
+ return Promise.resolve(null);
3467
+ }
3468
+ /**
3469
+ * Returns a list of print-product container descriptions of the specified design file.
3470
+ * @param id Design identifier.
3471
+ * @param surfaceId (optional) Print-product surface identifier.
3472
+ * @param privateStorageOwner (optional) Private storage owner identifier.
3473
+ * @param tenantId (optional) Tenant ID.
3474
+ * @param body (optional)
3475
+ * @return Success
3476
+ */
3477
+ updateDesignSurfaceContainer(id, containerId, surfaceId, privateStorageOwner, tenantId, body, cancelToken) {
3478
+ let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/containers/{containerId}?";
3479
+ if (id === undefined || id === null)
3480
+ throw new Error("The parameter 'id' must be defined.");
3481
+ url_ = url_.replace("{id}", encodeURIComponent("" + id));
3482
+ if (containerId === undefined || containerId === null)
3483
+ throw new Error("The parameter 'containerId' must be defined.");
3484
+ url_ = url_.replace("{containerId}", encodeURIComponent("" + containerId));
3485
+ if (surfaceId !== undefined && surfaceId !== null)
3486
+ url_ += "surfaceId=" + encodeURIComponent("" + surfaceId) + "&";
3487
+ if (privateStorageOwner !== undefined && privateStorageOwner !== null)
3488
+ url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
3489
+ if (tenantId === null)
3490
+ throw new Error("The parameter 'tenantId' cannot be null.");
3491
+ else if (tenantId !== undefined)
3492
+ url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
3493
+ url_ = url_.replace(/[?&]$/, "");
3494
+ const content_ = JSON.stringify(body);
3495
+ let options_ = {
3496
+ data: content_,
3497
+ method: "PUT",
3498
+ url: url_,
3499
+ headers: {
3500
+ "Content-Type": "application/json",
3501
+ "Accept": "application/json"
3502
+ },
3503
+ cancelToken
3504
+ };
3505
+ return this.transformOptions(options_).then(transformedOptions_ => {
3506
+ return this.instance.request(transformedOptions_);
3507
+ }).catch((_error) => {
3508
+ if (isAxiosError(_error) && _error.response) {
3509
+ return _error.response;
3510
+ }
3511
+ else {
3512
+ throw _error;
3513
+ }
3514
+ }).then((_response) => {
3515
+ return this.transformResult(url_, _response, (_response) => this.processUpdateDesignSurfaceContainer(_response));
3516
+ });
3517
+ }
3518
+ processUpdateDesignSurfaceContainer(response) {
3519
+ const status = response.status;
3520
+ let _headers = {};
3521
+ if (response.headers && typeof response.headers === "object") {
3522
+ for (let k in response.headers) {
3523
+ if (response.headers.hasOwnProperty(k)) {
3524
+ _headers[k] = response.headers[k];
3525
+ }
3526
+ }
3527
+ }
3528
+ if (status === 200) {
3529
+ const _responseText = response.data;
3530
+ let result200 = null;
3531
+ let resultData200 = _responseText;
3532
+ result200 = JSON.parse(resultData200);
3533
+ return Promise.resolve(result200);
3534
+ }
3535
+ else if (status === 404) {
3536
+ const _responseText = response.data;
3537
+ let result404 = null;
3538
+ let resultData404 = _responseText;
3539
+ result404 = JSON.parse(resultData404);
3540
+ return throwException("Not Found", status, _responseText, _headers, result404);
3541
+ }
3542
+ else if (status === 409) {
3543
+ const _responseText = response.data;
3544
+ let result409 = null;
3545
+ let resultData409 = _responseText;
3546
+ result409 = JSON.parse(resultData409);
3547
+ return throwException("Conflict", status, _responseText, _headers, result409);
3548
+ }
3549
+ else if (status === 401) {
3550
+ const _responseText = response.data;
3551
+ return throwException("Unauthorized", status, _responseText, _headers);
3552
+ }
3553
+ else if (status === 403) {
3554
+ const _responseText = response.data;
3555
+ return throwException("Forbidden", status, _responseText, _headers);
3556
+ }
3557
+ else if (status !== 200 && status !== 204) {
3558
+ const _responseText = response.data;
3559
+ return throwException("An unexpected server error occurred.", status, _responseText, _headers);
3560
+ }
3561
+ return Promise.resolve(null);
3562
+ }
3284
3563
  /**
3285
3564
  * Deletes a specified print-product container in an existing design file.
3286
3565
  * @param id Design identifier.
@@ -10881,6 +11160,32 @@ export class DesignAtomsViewerApiClient extends ApiClientBase {
10881
11160
  return Promise.resolve(null);
10882
11161
  }
10883
11162
  }
11163
+ export var ArtworkShapeType;
11164
+ (function (ArtworkShapeType) {
11165
+ ArtworkShapeType["Rectangle"] = "rectangle";
11166
+ ArtworkShapeType["Ellipse"] = "ellipse";
11167
+ })(ArtworkShapeType || (ArtworkShapeType = {}));
11168
+ /** Colorless container display type. */
11169
+ export var ColorlessContainerDisplayType;
11170
+ (function (ColorlessContainerDisplayType) {
11171
+ ColorlessContainerDisplayType["Color"] = "Color";
11172
+ ColorlessContainerDisplayType["Texture"] = "Texture";
11173
+ })(ColorlessContainerDisplayType || (ColorlessContainerDisplayType = {}));
11174
+ /** Colorless container dither type. */
11175
+ export var ColorlessContainerDitherType;
11176
+ (function (ColorlessContainerDitherType) {
11177
+ ColorlessContainerDitherType["None"] = "None";
11178
+ ColorlessContainerDitherType["Diffusion"] = "Diffusion";
11179
+ ColorlessContainerDitherType["Pattern"] = "Pattern";
11180
+ ColorlessContainerDitherType["Noise"] = "Noise";
11181
+ })(ColorlessContainerDitherType || (ColorlessContainerDitherType = {}));
11182
+ /** Colorless container format. */
11183
+ export var ColorlessContainerFormat;
11184
+ (function (ColorlessContainerFormat) {
11185
+ ColorlessContainerFormat["OneBit"] = "OneBit";
11186
+ ColorlessContainerFormat["Grayscale"] = "Grayscale";
11187
+ ColorlessContainerFormat["Vector"] = "Vector";
11188
+ })(ColorlessContainerFormat || (ColorlessContainerFormat = {}));
10884
11189
  /** Conflict types. */
10885
11190
  export var ConflictType;
10886
11191
  (function (ConflictType) {
@@ -10889,6 +11194,22 @@ export var ConflictType;
10889
11194
  ConflictType["IdConflict"] = "IdConflict";
10890
11195
  ConflictType["GeneralConflict"] = "GeneralConflict";
10891
11196
  })(ConflictType || (ConflictType = {}));
11197
+ /** Full color container color space. */
11198
+ export var ContainerColorSpace;
11199
+ (function (ContainerColorSpace) {
11200
+ ContainerColorSpace["Rgb"] = "Rgb";
11201
+ ContainerColorSpace["Cmyk"] = "Cmyk";
11202
+ ContainerColorSpace["Grayscale"] = "Grayscale";
11203
+ ContainerColorSpace["Lab"] = "Lab";
11204
+ ContainerColorSpace["Spot"] = "Spot";
11205
+ })(ContainerColorSpace || (ContainerColorSpace = {}));
11206
+ /** Container printing mode. */
11207
+ export var ContainerPrintingMode;
11208
+ (function (ContainerPrintingMode) {
11209
+ ContainerPrintingMode["FullColor"] = "FullColor";
11210
+ ContainerPrintingMode["LimitedColor"] = "LimitedColor";
11211
+ ContainerPrintingMode["Colorless"] = "Colorless";
11212
+ })(ContainerPrintingMode || (ContainerPrintingMode = {}));
10892
11213
  export var DesignElementType;
10893
11214
  (function (DesignElementType) {
10894
11215
  DesignElementType["Product"] = "Product";