@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.
- package/dist/cjs/design-atoms-api-client.d.ts +225 -3
- package/dist/cjs/design-atoms-api-client.js +322 -1
- package/dist/cjs/design-atoms-api-client.js.map +1 -1
- package/dist/esm/design-atoms-api-client.d.ts +225 -3
- package/dist/esm/design-atoms-api-client.js +321 -0
- package/dist/esm/design-atoms-api-client.js.map +1 -1
- package/package.json +2 -3
|
@@ -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<
|
|
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<
|
|
1245
|
-
protected processUpdateDesignPrintArea(response: AxiosResponse): Promise<
|
|
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;
|
|
@@ -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.ConflictType = 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.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;
|
|
@@ -3292,6 +3292,285 @@ class DesignAtomsPrintProductApiClient extends ApiClientBase {
|
|
|
3292
3292
|
}
|
|
3293
3293
|
return Promise.resolve(null);
|
|
3294
3294
|
}
|
|
3295
|
+
/**
|
|
3296
|
+
* Returns a list of print-product container descriptions of the specified design file.
|
|
3297
|
+
* @param id Design identifier.
|
|
3298
|
+
* @param index (optional)
|
|
3299
|
+
* @param surfaceId (optional) Print-product surface identifier.
|
|
3300
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3301
|
+
* @param tenantId (optional) Tenant ID.
|
|
3302
|
+
* @param body (optional)
|
|
3303
|
+
* @return Success
|
|
3304
|
+
*/
|
|
3305
|
+
addDesignSurfaceContainer(id, index, surfaceId, privateStorageOwner, tenantId, body, cancelToken) {
|
|
3306
|
+
let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/containers?";
|
|
3307
|
+
if (id === undefined || id === null)
|
|
3308
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
3309
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3310
|
+
if (index !== undefined && index !== null)
|
|
3311
|
+
url_ += "index=" + encodeURIComponent("" + index) + "&";
|
|
3312
|
+
if (surfaceId !== undefined && surfaceId !== null)
|
|
3313
|
+
url_ += "surfaceId=" + encodeURIComponent("" + surfaceId) + "&";
|
|
3314
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3315
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3316
|
+
if (tenantId === null)
|
|
3317
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
3318
|
+
else if (tenantId !== undefined)
|
|
3319
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
3320
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3321
|
+
const content_ = JSON.stringify(body);
|
|
3322
|
+
let options_ = {
|
|
3323
|
+
data: content_,
|
|
3324
|
+
method: "POST",
|
|
3325
|
+
url: url_,
|
|
3326
|
+
headers: {
|
|
3327
|
+
"Content-Type": "application/json",
|
|
3328
|
+
"Accept": "application/json"
|
|
3329
|
+
},
|
|
3330
|
+
cancelToken
|
|
3331
|
+
};
|
|
3332
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3333
|
+
return this.instance.request(transformedOptions_);
|
|
3334
|
+
}).catch((_error) => {
|
|
3335
|
+
if (isAxiosError(_error) && _error.response) {
|
|
3336
|
+
return _error.response;
|
|
3337
|
+
}
|
|
3338
|
+
else {
|
|
3339
|
+
throw _error;
|
|
3340
|
+
}
|
|
3341
|
+
}).then((_response) => {
|
|
3342
|
+
return this.transformResult(url_, _response, (_response) => this.processAddDesignSurfaceContainer(_response));
|
|
3343
|
+
});
|
|
3344
|
+
}
|
|
3345
|
+
processAddDesignSurfaceContainer(response) {
|
|
3346
|
+
const status = response.status;
|
|
3347
|
+
let _headers = {};
|
|
3348
|
+
if (response.headers && typeof response.headers === "object") {
|
|
3349
|
+
for (let k in response.headers) {
|
|
3350
|
+
if (response.headers.hasOwnProperty(k)) {
|
|
3351
|
+
_headers[k] = response.headers[k];
|
|
3352
|
+
}
|
|
3353
|
+
}
|
|
3354
|
+
}
|
|
3355
|
+
if (status === 200) {
|
|
3356
|
+
const _responseText = response.data;
|
|
3357
|
+
let result200 = null;
|
|
3358
|
+
let resultData200 = _responseText;
|
|
3359
|
+
result200 = JSON.parse(resultData200);
|
|
3360
|
+
return Promise.resolve(result200);
|
|
3361
|
+
}
|
|
3362
|
+
else if (status === 404) {
|
|
3363
|
+
const _responseText = response.data;
|
|
3364
|
+
let result404 = null;
|
|
3365
|
+
let resultData404 = _responseText;
|
|
3366
|
+
result404 = JSON.parse(resultData404);
|
|
3367
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3368
|
+
}
|
|
3369
|
+
else if (status === 409) {
|
|
3370
|
+
const _responseText = response.data;
|
|
3371
|
+
let result409 = null;
|
|
3372
|
+
let resultData409 = _responseText;
|
|
3373
|
+
result409 = JSON.parse(resultData409);
|
|
3374
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
3375
|
+
}
|
|
3376
|
+
else if (status === 401) {
|
|
3377
|
+
const _responseText = response.data;
|
|
3378
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
3379
|
+
}
|
|
3380
|
+
else if (status === 403) {
|
|
3381
|
+
const _responseText = response.data;
|
|
3382
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
3383
|
+
}
|
|
3384
|
+
else if (status !== 200 && status !== 204) {
|
|
3385
|
+
const _responseText = response.data;
|
|
3386
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3387
|
+
}
|
|
3388
|
+
return Promise.resolve(null);
|
|
3389
|
+
}
|
|
3390
|
+
/**
|
|
3391
|
+
* Returns a print-product container parameters of the specified design file.
|
|
3392
|
+
* @param id Design identifier.
|
|
3393
|
+
* @param containerId Print-product container identifier.
|
|
3394
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3395
|
+
* @param tenantId (optional) Tenant ID.
|
|
3396
|
+
* @return Success
|
|
3397
|
+
*/
|
|
3398
|
+
getDesignSurfaceContainer(id, containerId, privateStorageOwner, tenantId, cancelToken) {
|
|
3399
|
+
let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/containers/{containerId}?";
|
|
3400
|
+
if (id === undefined || id === null)
|
|
3401
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
3402
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3403
|
+
if (containerId === undefined || containerId === null)
|
|
3404
|
+
throw new Error("The parameter 'containerId' must be defined.");
|
|
3405
|
+
url_ = url_.replace("{containerId}", encodeURIComponent("" + containerId));
|
|
3406
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3407
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3408
|
+
if (tenantId === null)
|
|
3409
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
3410
|
+
else if (tenantId !== undefined)
|
|
3411
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
3412
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3413
|
+
let options_ = {
|
|
3414
|
+
method: "GET",
|
|
3415
|
+
url: url_,
|
|
3416
|
+
headers: {
|
|
3417
|
+
"Accept": "application/json"
|
|
3418
|
+
},
|
|
3419
|
+
cancelToken
|
|
3420
|
+
};
|
|
3421
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3422
|
+
return this.instance.request(transformedOptions_);
|
|
3423
|
+
}).catch((_error) => {
|
|
3424
|
+
if (isAxiosError(_error) && _error.response) {
|
|
3425
|
+
return _error.response;
|
|
3426
|
+
}
|
|
3427
|
+
else {
|
|
3428
|
+
throw _error;
|
|
3429
|
+
}
|
|
3430
|
+
}).then((_response) => {
|
|
3431
|
+
return this.transformResult(url_, _response, (_response) => this.processGetDesignSurfaceContainer(_response));
|
|
3432
|
+
});
|
|
3433
|
+
}
|
|
3434
|
+
processGetDesignSurfaceContainer(response) {
|
|
3435
|
+
const status = response.status;
|
|
3436
|
+
let _headers = {};
|
|
3437
|
+
if (response.headers && typeof response.headers === "object") {
|
|
3438
|
+
for (let k in response.headers) {
|
|
3439
|
+
if (response.headers.hasOwnProperty(k)) {
|
|
3440
|
+
_headers[k] = response.headers[k];
|
|
3441
|
+
}
|
|
3442
|
+
}
|
|
3443
|
+
}
|
|
3444
|
+
if (status === 200) {
|
|
3445
|
+
const _responseText = response.data;
|
|
3446
|
+
let result200 = null;
|
|
3447
|
+
let resultData200 = _responseText;
|
|
3448
|
+
result200 = JSON.parse(resultData200);
|
|
3449
|
+
return Promise.resolve(result200);
|
|
3450
|
+
}
|
|
3451
|
+
else if (status === 404) {
|
|
3452
|
+
const _responseText = response.data;
|
|
3453
|
+
let result404 = null;
|
|
3454
|
+
let resultData404 = _responseText;
|
|
3455
|
+
result404 = JSON.parse(resultData404);
|
|
3456
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3457
|
+
}
|
|
3458
|
+
else if (status === 409) {
|
|
3459
|
+
const _responseText = response.data;
|
|
3460
|
+
let result409 = null;
|
|
3461
|
+
let resultData409 = _responseText;
|
|
3462
|
+
result409 = JSON.parse(resultData409);
|
|
3463
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
3464
|
+
}
|
|
3465
|
+
else if (status === 401) {
|
|
3466
|
+
const _responseText = response.data;
|
|
3467
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
3468
|
+
}
|
|
3469
|
+
else if (status === 403) {
|
|
3470
|
+
const _responseText = response.data;
|
|
3471
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
3472
|
+
}
|
|
3473
|
+
else if (status !== 200 && status !== 204) {
|
|
3474
|
+
const _responseText = response.data;
|
|
3475
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3476
|
+
}
|
|
3477
|
+
return Promise.resolve(null);
|
|
3478
|
+
}
|
|
3479
|
+
/**
|
|
3480
|
+
* Returns a list of print-product container descriptions of the specified design file.
|
|
3481
|
+
* @param id Design identifier.
|
|
3482
|
+
* @param surfaceId (optional) Print-product surface identifier.
|
|
3483
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
3484
|
+
* @param tenantId (optional) Tenant ID.
|
|
3485
|
+
* @param body (optional)
|
|
3486
|
+
* @return Success
|
|
3487
|
+
*/
|
|
3488
|
+
updateDesignSurfaceContainer(id, containerId, surfaceId, privateStorageOwner, tenantId, body, cancelToken) {
|
|
3489
|
+
let url_ = this.baseUrl + "/api/atoms/v1/designs/{id}/print-product/containers/{containerId}?";
|
|
3490
|
+
if (id === undefined || id === null)
|
|
3491
|
+
throw new Error("The parameter 'id' must be defined.");
|
|
3492
|
+
url_ = url_.replace("{id}", encodeURIComponent("" + id));
|
|
3493
|
+
if (containerId === undefined || containerId === null)
|
|
3494
|
+
throw new Error("The parameter 'containerId' must be defined.");
|
|
3495
|
+
url_ = url_.replace("{containerId}", encodeURIComponent("" + containerId));
|
|
3496
|
+
if (surfaceId !== undefined && surfaceId !== null)
|
|
3497
|
+
url_ += "surfaceId=" + encodeURIComponent("" + surfaceId) + "&";
|
|
3498
|
+
if (privateStorageOwner !== undefined && privateStorageOwner !== null)
|
|
3499
|
+
url_ += "privateStorageOwner=" + encodeURIComponent("" + privateStorageOwner) + "&";
|
|
3500
|
+
if (tenantId === null)
|
|
3501
|
+
throw new Error("The parameter 'tenantId' cannot be null.");
|
|
3502
|
+
else if (tenantId !== undefined)
|
|
3503
|
+
url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
|
|
3504
|
+
url_ = url_.replace(/[?&]$/, "");
|
|
3505
|
+
const content_ = JSON.stringify(body);
|
|
3506
|
+
let options_ = {
|
|
3507
|
+
data: content_,
|
|
3508
|
+
method: "PUT",
|
|
3509
|
+
url: url_,
|
|
3510
|
+
headers: {
|
|
3511
|
+
"Content-Type": "application/json",
|
|
3512
|
+
"Accept": "application/json"
|
|
3513
|
+
},
|
|
3514
|
+
cancelToken
|
|
3515
|
+
};
|
|
3516
|
+
return this.transformOptions(options_).then(transformedOptions_ => {
|
|
3517
|
+
return this.instance.request(transformedOptions_);
|
|
3518
|
+
}).catch((_error) => {
|
|
3519
|
+
if (isAxiosError(_error) && _error.response) {
|
|
3520
|
+
return _error.response;
|
|
3521
|
+
}
|
|
3522
|
+
else {
|
|
3523
|
+
throw _error;
|
|
3524
|
+
}
|
|
3525
|
+
}).then((_response) => {
|
|
3526
|
+
return this.transformResult(url_, _response, (_response) => this.processUpdateDesignSurfaceContainer(_response));
|
|
3527
|
+
});
|
|
3528
|
+
}
|
|
3529
|
+
processUpdateDesignSurfaceContainer(response) {
|
|
3530
|
+
const status = response.status;
|
|
3531
|
+
let _headers = {};
|
|
3532
|
+
if (response.headers && typeof response.headers === "object") {
|
|
3533
|
+
for (let k in response.headers) {
|
|
3534
|
+
if (response.headers.hasOwnProperty(k)) {
|
|
3535
|
+
_headers[k] = response.headers[k];
|
|
3536
|
+
}
|
|
3537
|
+
}
|
|
3538
|
+
}
|
|
3539
|
+
if (status === 200) {
|
|
3540
|
+
const _responseText = response.data;
|
|
3541
|
+
let result200 = null;
|
|
3542
|
+
let resultData200 = _responseText;
|
|
3543
|
+
result200 = JSON.parse(resultData200);
|
|
3544
|
+
return Promise.resolve(result200);
|
|
3545
|
+
}
|
|
3546
|
+
else if (status === 404) {
|
|
3547
|
+
const _responseText = response.data;
|
|
3548
|
+
let result404 = null;
|
|
3549
|
+
let resultData404 = _responseText;
|
|
3550
|
+
result404 = JSON.parse(resultData404);
|
|
3551
|
+
return throwException("Not Found", status, _responseText, _headers, result404);
|
|
3552
|
+
}
|
|
3553
|
+
else if (status === 409) {
|
|
3554
|
+
const _responseText = response.data;
|
|
3555
|
+
let result409 = null;
|
|
3556
|
+
let resultData409 = _responseText;
|
|
3557
|
+
result409 = JSON.parse(resultData409);
|
|
3558
|
+
return throwException("Conflict", status, _responseText, _headers, result409);
|
|
3559
|
+
}
|
|
3560
|
+
else if (status === 401) {
|
|
3561
|
+
const _responseText = response.data;
|
|
3562
|
+
return throwException("Unauthorized", status, _responseText, _headers);
|
|
3563
|
+
}
|
|
3564
|
+
else if (status === 403) {
|
|
3565
|
+
const _responseText = response.data;
|
|
3566
|
+
return throwException("Forbidden", status, _responseText, _headers);
|
|
3567
|
+
}
|
|
3568
|
+
else if (status !== 200 && status !== 204) {
|
|
3569
|
+
const _responseText = response.data;
|
|
3570
|
+
return throwException("An unexpected server error occurred.", status, _responseText, _headers);
|
|
3571
|
+
}
|
|
3572
|
+
return Promise.resolve(null);
|
|
3573
|
+
}
|
|
3295
3574
|
/**
|
|
3296
3575
|
* Deletes a specified print-product container in an existing design file.
|
|
3297
3576
|
* @param id Design identifier.
|
|
@@ -10896,6 +11175,32 @@ class DesignAtomsViewerApiClient extends ApiClientBase {
|
|
|
10896
11175
|
}
|
|
10897
11176
|
}
|
|
10898
11177
|
exports.DesignAtomsViewerApiClient = DesignAtomsViewerApiClient;
|
|
11178
|
+
var ArtworkShapeType;
|
|
11179
|
+
(function (ArtworkShapeType) {
|
|
11180
|
+
ArtworkShapeType["Rectangle"] = "rectangle";
|
|
11181
|
+
ArtworkShapeType["Ellipse"] = "ellipse";
|
|
11182
|
+
})(ArtworkShapeType = exports.ArtworkShapeType || (exports.ArtworkShapeType = {}));
|
|
11183
|
+
/** Colorless container display type. */
|
|
11184
|
+
var ColorlessContainerDisplayType;
|
|
11185
|
+
(function (ColorlessContainerDisplayType) {
|
|
11186
|
+
ColorlessContainerDisplayType["Color"] = "Color";
|
|
11187
|
+
ColorlessContainerDisplayType["Texture"] = "Texture";
|
|
11188
|
+
})(ColorlessContainerDisplayType = exports.ColorlessContainerDisplayType || (exports.ColorlessContainerDisplayType = {}));
|
|
11189
|
+
/** Colorless container dither type. */
|
|
11190
|
+
var ColorlessContainerDitherType;
|
|
11191
|
+
(function (ColorlessContainerDitherType) {
|
|
11192
|
+
ColorlessContainerDitherType["None"] = "None";
|
|
11193
|
+
ColorlessContainerDitherType["Diffusion"] = "Diffusion";
|
|
11194
|
+
ColorlessContainerDitherType["Pattern"] = "Pattern";
|
|
11195
|
+
ColorlessContainerDitherType["Noise"] = "Noise";
|
|
11196
|
+
})(ColorlessContainerDitherType = exports.ColorlessContainerDitherType || (exports.ColorlessContainerDitherType = {}));
|
|
11197
|
+
/** Colorless container format. */
|
|
11198
|
+
var ColorlessContainerFormat;
|
|
11199
|
+
(function (ColorlessContainerFormat) {
|
|
11200
|
+
ColorlessContainerFormat["OneBit"] = "OneBit";
|
|
11201
|
+
ColorlessContainerFormat["Grayscale"] = "Grayscale";
|
|
11202
|
+
ColorlessContainerFormat["Vector"] = "Vector";
|
|
11203
|
+
})(ColorlessContainerFormat = exports.ColorlessContainerFormat || (exports.ColorlessContainerFormat = {}));
|
|
10899
11204
|
/** Conflict types. */
|
|
10900
11205
|
var ConflictType;
|
|
10901
11206
|
(function (ConflictType) {
|
|
@@ -10904,6 +11209,22 @@ var ConflictType;
|
|
|
10904
11209
|
ConflictType["IdConflict"] = "IdConflict";
|
|
10905
11210
|
ConflictType["GeneralConflict"] = "GeneralConflict";
|
|
10906
11211
|
})(ConflictType = exports.ConflictType || (exports.ConflictType = {}));
|
|
11212
|
+
/** Full color container color space. */
|
|
11213
|
+
var ContainerColorSpace;
|
|
11214
|
+
(function (ContainerColorSpace) {
|
|
11215
|
+
ContainerColorSpace["Rgb"] = "Rgb";
|
|
11216
|
+
ContainerColorSpace["Cmyk"] = "Cmyk";
|
|
11217
|
+
ContainerColorSpace["Grayscale"] = "Grayscale";
|
|
11218
|
+
ContainerColorSpace["Lab"] = "Lab";
|
|
11219
|
+
ContainerColorSpace["Spot"] = "Spot";
|
|
11220
|
+
})(ContainerColorSpace = exports.ContainerColorSpace || (exports.ContainerColorSpace = {}));
|
|
11221
|
+
/** Container printing mode. */
|
|
11222
|
+
var ContainerPrintingMode;
|
|
11223
|
+
(function (ContainerPrintingMode) {
|
|
11224
|
+
ContainerPrintingMode["FullColor"] = "FullColor";
|
|
11225
|
+
ContainerPrintingMode["LimitedColor"] = "LimitedColor";
|
|
11226
|
+
ContainerPrintingMode["Colorless"] = "Colorless";
|
|
11227
|
+
})(ContainerPrintingMode = exports.ContainerPrintingMode || (exports.ContainerPrintingMode = {}));
|
|
10907
11228
|
var DesignElementType;
|
|
10908
11229
|
(function (DesignElementType) {
|
|
10909
11230
|
DesignElementType["Product"] = "Product";
|