@aurigma/ng-design-atoms-api-client 2.74.1 → 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.
@@ -620,6 +620,33 @@ export declare class DesignAtomsImagesApiClient extends ApiClientBase implements
620
620
  renderImagePreviewToResource(tenantId?: number | undefined, body?: RenderImagePreviewToResourceModel | undefined): Observable<ResourceInfoDto>;
621
621
  protected processRenderImagePreviewToResource(response: HttpResponseBase): Observable<ResourceInfoDto>;
622
622
  }
623
+ export interface IDesignAtomsMockups2dApiClient {
624
+ /**
625
+ * Renders a mockup preview with the specified parameters.
626
+ * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
627
+ (default value is 'false').
628
+ * @param tenantId (optional) Tenant ID.
629
+ * @param body (optional) Render model with preview parameters.
630
+ * @return Success
631
+ */
632
+ renderMockupPreview(attachment?: boolean | null | undefined, tenantId?: number | undefined, body?: RenderMockupPreviewModel | undefined): Observable<FileResponse>;
633
+ }
634
+ export declare class DesignAtomsMockups2dApiClient extends ApiClientBase implements IDesignAtomsMockups2dApiClient {
635
+ private http;
636
+ private baseUrl;
637
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
638
+ constructor(configuration: ApiClientConfiguration, http: HttpClient, baseUrl?: string);
639
+ /**
640
+ * Renders a mockup preview with the specified parameters.
641
+ * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
642
+ (default value is 'false').
643
+ * @param tenantId (optional) Tenant ID.
644
+ * @param body (optional) Render model with preview parameters.
645
+ * @return Success
646
+ */
647
+ renderMockupPreview(attachment?: boolean | null | undefined, tenantId?: number | undefined, body?: RenderMockupPreviewModel | undefined): Observable<FileResponse>;
648
+ protected processRenderMockupPreview(response: HttpResponseBase): Observable<FileResponse>;
649
+ }
623
650
  export interface IDesignAtomsMockups3dApiClient {
624
651
  /**
625
652
  * Returns a 3D-Mockup attributes.
@@ -745,6 +772,36 @@ export interface IDesignAtomsPrintProductApiClient {
745
772
  * @return Success
746
773
  */
747
774
  getDesignSurfaceContainers(id: string, surfaceId?: string | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined): Observable<DesignSurfaceContainerDto[]>;
775
+ /**
776
+ * Returns a list of print-product container descriptions of the specified design file.
777
+ * @param id Design identifier.
778
+ * @param index (optional)
779
+ * @param surfaceId (optional) Print-product surface identifier.
780
+ * @param privateStorageOwner (optional) Private storage owner identifier.
781
+ * @param tenantId (optional) Tenant ID.
782
+ * @param body (optional)
783
+ * @return Success
784
+ */
785
+ addDesignSurfaceContainer(id: string, index?: number | null | undefined, surfaceId?: string | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: DesignSurfaceContainerParams | undefined): Observable<DesignSurfaceContainerDto>;
786
+ /**
787
+ * Returns a print-product container parameters of the specified design file.
788
+ * @param id Design identifier.
789
+ * @param containerId Print-product container identifier.
790
+ * @param privateStorageOwner (optional) Private storage owner identifier.
791
+ * @param tenantId (optional) Tenant ID.
792
+ * @return Success
793
+ */
794
+ getDesignSurfaceContainer(id: string, containerId: string, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined): Observable<DesignSurfaceContainerDto>;
795
+ /**
796
+ * Returns a list of print-product container descriptions of the specified design file.
797
+ * @param id Design identifier.
798
+ * @param surfaceId (optional) Print-product surface identifier.
799
+ * @param privateStorageOwner (optional) Private storage owner identifier.
800
+ * @param tenantId (optional) Tenant ID.
801
+ * @param body (optional)
802
+ * @return Success
803
+ */
804
+ updateDesignSurfaceContainer(id: string, containerId: string, surfaceId?: string | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: DesignSurfaceContainerParams | undefined): Observable<DesignSurfaceContainerDto>;
748
805
  /**
749
806
  * Deletes a specified print-product container in an existing design file.
750
807
  * @param id Design identifier.
@@ -885,7 +942,7 @@ export interface IDesignAtomsPrintProductApiClient {
885
942
  * @param body (optional) Print-area description model.
886
943
  * @return Success
887
944
  */
888
- updateDesignPrintArea(id: string, printAreaId: string, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: DesignPrintAreaParams | undefined): Observable<any>;
945
+ updateDesignPrintArea(id: string, printAreaId: string, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: DesignPrintAreaParams | undefined): Observable<DesignPrintAreaDto>;
889
946
  /**
890
947
  * Deletes a specified print-area in an existing design file.
891
948
  * @param id Design identifier.
@@ -1064,6 +1121,39 @@ export declare class DesignAtomsPrintProductApiClient extends ApiClientBase impl
1064
1121
  */
1065
1122
  getDesignSurfaceContainers(id: string, surfaceId?: string | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined): Observable<DesignSurfaceContainerDto[]>;
1066
1123
  protected processGetDesignSurfaceContainers(response: HttpResponseBase): Observable<DesignSurfaceContainerDto[]>;
1124
+ /**
1125
+ * Returns a list of print-product container descriptions of the specified design file.
1126
+ * @param id Design identifier.
1127
+ * @param index (optional)
1128
+ * @param surfaceId (optional) Print-product surface identifier.
1129
+ * @param privateStorageOwner (optional) Private storage owner identifier.
1130
+ * @param tenantId (optional) Tenant ID.
1131
+ * @param body (optional)
1132
+ * @return Success
1133
+ */
1134
+ addDesignSurfaceContainer(id: string, index?: number | null | undefined, surfaceId?: string | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: DesignSurfaceContainerParams | undefined): Observable<DesignSurfaceContainerDto>;
1135
+ protected processAddDesignSurfaceContainer(response: HttpResponseBase): Observable<DesignSurfaceContainerDto>;
1136
+ /**
1137
+ * Returns a print-product container parameters of the specified design file.
1138
+ * @param id Design identifier.
1139
+ * @param containerId Print-product container identifier.
1140
+ * @param privateStorageOwner (optional) Private storage owner identifier.
1141
+ * @param tenantId (optional) Tenant ID.
1142
+ * @return Success
1143
+ */
1144
+ getDesignSurfaceContainer(id: string, containerId: string, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined): Observable<DesignSurfaceContainerDto>;
1145
+ protected processGetDesignSurfaceContainer(response: HttpResponseBase): Observable<DesignSurfaceContainerDto>;
1146
+ /**
1147
+ * Returns a list of print-product container descriptions of the specified design file.
1148
+ * @param id Design identifier.
1149
+ * @param surfaceId (optional) Print-product surface identifier.
1150
+ * @param privateStorageOwner (optional) Private storage owner identifier.
1151
+ * @param tenantId (optional) Tenant ID.
1152
+ * @param body (optional)
1153
+ * @return Success
1154
+ */
1155
+ updateDesignSurfaceContainer(id: string, containerId: string, surfaceId?: string | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: DesignSurfaceContainerParams | undefined): Observable<DesignSurfaceContainerDto>;
1156
+ protected processUpdateDesignSurfaceContainer(response: HttpResponseBase): Observable<DesignSurfaceContainerDto>;
1067
1157
  /**
1068
1158
  * Deletes a specified print-product container in an existing design file.
1069
1159
  * @param id Design identifier.
@@ -1217,8 +1307,8 @@ export declare class DesignAtomsPrintProductApiClient extends ApiClientBase impl
1217
1307
  * @param body (optional) Print-area description model.
1218
1308
  * @return Success
1219
1309
  */
1220
- updateDesignPrintArea(id: string, printAreaId: string, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: DesignPrintAreaParams | undefined): Observable<any>;
1221
- protected processUpdateDesignPrintArea(response: HttpResponseBase): Observable<any>;
1310
+ updateDesignPrintArea(id: string, printAreaId: string, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: DesignPrintAreaParams | undefined): Observable<DesignPrintAreaDto>;
1311
+ protected processUpdateDesignPrintArea(response: HttpResponseBase): Observable<DesignPrintAreaDto>;
1222
1312
  /**
1223
1313
  * Deletes a specified print-area in an existing design file.
1224
1314
  * @param id Design identifier.
@@ -1800,11 +1890,11 @@ export interface IDesignAtomsServiceApiClient {
1800
1890
  * @param resourceId (optional) Resource identifier.
1801
1891
  * @param privateDesignId (optional) Private design identifier.
1802
1892
  * @param privateStorageOwner (optional) Private storage owner identifier.
1803
- * @param tenantIdQuery (optional) Tenant identifier.
1893
+ * @param tenantId (optional) Tenant ID.
1804
1894
  * @return Created
1805
1895
  * @deprecated
1806
1896
  */
1807
- createPrivateDesignFromResource(resourceId?: string | null | undefined, privateDesignId?: string | null | undefined, privateStorageOwner?: string | null | undefined, tenantIdQuery?: number | undefined): Observable<void>;
1897
+ createPrivateDesignFromResource(resourceId?: string | null | undefined, privateDesignId?: string | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined): Observable<void>;
1808
1898
  }
1809
1899
  export declare class DesignAtomsServiceApiClient extends ApiClientBase implements IDesignAtomsServiceApiClient {
1810
1900
  private http;
@@ -2072,11 +2162,11 @@ export declare class DesignAtomsServiceApiClient extends ApiClientBase implement
2072
2162
  * @param resourceId (optional) Resource identifier.
2073
2163
  * @param privateDesignId (optional) Private design identifier.
2074
2164
  * @param privateStorageOwner (optional) Private storage owner identifier.
2075
- * @param tenantIdQuery (optional) Tenant identifier.
2165
+ * @param tenantId (optional) Tenant ID.
2076
2166
  * @return Created
2077
2167
  * @deprecated
2078
2168
  */
2079
- createPrivateDesignFromResource(resourceId?: string | null | undefined, privateDesignId?: string | null | undefined, privateStorageOwner?: string | null | undefined, tenantIdQuery?: number | undefined): Observable<void>;
2169
+ createPrivateDesignFromResource(resourceId?: string | null | undefined, privateDesignId?: string | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined): Observable<void>;
2080
2170
  protected processCreatePrivateDesignFromResource(response: HttpResponseBase): Observable<void>;
2081
2171
  }
2082
2172
  export interface IDesignAtomsViewerApiClient {
@@ -2560,6 +2650,10 @@ export interface ApplyDesignItemsDataModel {
2560
2650
  [key: string]: DesignItemDataModel;
2561
2651
  } | null;
2562
2652
  }
2653
+ export declare enum ArtworkShapeType {
2654
+ Rectangle = "rectangle",
2655
+ Ellipse = "ellipse"
2656
+ }
2563
2657
  /** Batch create items from storage source operation parameters. */
2564
2658
  export interface BatchCreateItemsFromStorageModel {
2565
2659
  /** Source image assets owner identifier. If value is set, all images should belong to a specified user. */
@@ -2600,6 +2694,54 @@ export interface BuildInfoModel {
2600
2694
  /** Aurigma.DesignAtoms.Model version. */
2601
2695
  designAtomsModelVersion?: string | null;
2602
2696
  }
2697
+ /** Colorless container display type. */
2698
+ export declare enum ColorlessContainerDisplayType {
2699
+ Color = "Color",
2700
+ Texture = "Texture"
2701
+ }
2702
+ /** Colorless container dither type. */
2703
+ export declare enum ColorlessContainerDitherType {
2704
+ None = "None",
2705
+ Diffusion = "Diffusion",
2706
+ Pattern = "Pattern",
2707
+ Noise = "Noise"
2708
+ }
2709
+ /** Colorless container format. */
2710
+ export declare enum ColorlessContainerFormat {
2711
+ OneBit = "OneBit",
2712
+ Grayscale = "Grayscale",
2713
+ Vector = "Vector"
2714
+ }
2715
+ /** Colorless container settigns. */
2716
+ export interface ColorlessContainerSettingsDto {
2717
+ /** Container format. */
2718
+ format?: ColorlessContainerFormat;
2719
+ /** Container dither type. */
2720
+ dither?: ColorlessContainerDitherType;
2721
+ /** Container display type. */
2722
+ displayType?: ColorlessContainerDisplayType;
2723
+ /** Container dither amount. */
2724
+ ditherAmount?: number;
2725
+ /** Display color. */
2726
+ displayColor?: string | null;
2727
+ /** Output color. */
2728
+ outputColor?: string | null;
2729
+ }
2730
+ /** Colorless container settigns. */
2731
+ export interface ColorlessContainerSettingsParams {
2732
+ /** Container format. */
2733
+ format?: ColorlessContainerFormat;
2734
+ /** Container dither type. */
2735
+ dither?: ColorlessContainerDitherType;
2736
+ /** Container display type. */
2737
+ displayType?: ColorlessContainerDisplayType;
2738
+ /** Container dither amount. */
2739
+ ditherAmount?: number;
2740
+ /** Display color. */
2741
+ displayColor?: string | null;
2742
+ /** Output color. */
2743
+ outputColor?: string | null;
2744
+ }
2603
2745
  /** Conflict types. */
2604
2746
  export declare enum ConflictType {
2605
2747
  NameConflict = "NameConflict",
@@ -2607,6 +2749,42 @@ export declare enum ConflictType {
2607
2749
  IdConflict = "IdConflict",
2608
2750
  GeneralConflict = "GeneralConflict"
2609
2751
  }
2752
+ /** Full color container color space. */
2753
+ export declare enum ContainerColorSpace {
2754
+ Rgb = "Rgb",
2755
+ Cmyk = "Cmyk",
2756
+ Grayscale = "Grayscale",
2757
+ Lab = "Lab",
2758
+ Spot = "Spot"
2759
+ }
2760
+ /** Container constraints parameters. */
2761
+ export interface ContainerConstraintsDto {
2762
+ /** Boolean flag indicates if raster images are allowed to be placed in container. */
2763
+ allowRasterObjects?: boolean;
2764
+ /** Target hi-res print file DPI. */
2765
+ targetResolution?: number;
2766
+ /** Minimal font size for text objects placed in container. */
2767
+ minFontSize?: number;
2768
+ /** Maximal size of print zone. */
2769
+ maxArtworkSize?: MaxArtworkSizeConstraintsDto | null;
2770
+ }
2771
+ /** Container constraints parameters. */
2772
+ export interface ContainerConstraintsParams {
2773
+ /** Boolean flag indicates if raster images are allowed to be placed in container. */
2774
+ allowRasterObjects?: boolean;
2775
+ /** Target hi-res print file DPI. */
2776
+ targetResolution?: number;
2777
+ /** Minimal font size for text objects placed in container. */
2778
+ minFontSize?: number;
2779
+ /** Maximal size of print zone. */
2780
+ maxArtworkSize?: MaxArtworkSizeConstraintsParams | null;
2781
+ }
2782
+ /** Container printing mode. */
2783
+ export declare enum ContainerPrintingMode {
2784
+ FullColor = "FullColor",
2785
+ LimitedColor = "LimitedColor",
2786
+ Colorless = "Colorless"
2787
+ }
2610
2788
  /** Convert colors operation parameters. */
2611
2789
  export interface ConvertColorsModel {
2612
2790
  /** Serialized color description. */
@@ -2757,6 +2935,8 @@ export interface DesignPrintAreaDto {
2757
2935
  bleed?: MarginDto | null;
2758
2936
  /** Print area slug. */
2759
2937
  slug?: MarginDto | null;
2938
+ /** Print area shape. Usually content of svg path that describes print area shape is provided. */
2939
+ shape?: string | null;
2760
2940
  }
2761
2941
  /** Design print area parameters. */
2762
2942
  export interface DesignPrintAreaParams {
@@ -2772,6 +2952,8 @@ export interface DesignPrintAreaParams {
2772
2952
  bleed?: MarginModel | null;
2773
2953
  /** Print area slug. */
2774
2954
  slug?: MarginModel | null;
2955
+ /** Print area shape. Usually content of svg path that describes print area shape is provided. */
2956
+ shape?: string | null;
2775
2957
  }
2776
2958
  /** Print-product container description. */
2777
2959
  export interface DesignSurfaceContainerDto {
@@ -2787,6 +2969,35 @@ export interface DesignSurfaceContainerDto {
2787
2969
  size?: SizeDto | null;
2788
2970
  /** Container position. */
2789
2971
  position?: PositionDto | null;
2972
+ /** Container printing mode. */
2973
+ mode?: ContainerPrintingMode;
2974
+ /** Container constraints. */
2975
+ constraints?: ContainerConstraintsDto | null;
2976
+ /** Limited color container settings. If container mode is not 'LimitedColor', null value will be provided. */
2977
+ limitedColorSettings?: LimitedColorContainerSettingsDto | null;
2978
+ /** Full color container settings. If container mode is not 'FullColor', null value will be provided. */
2979
+ fullColorSettings?: FullColorContainerSettingsDto | null;
2980
+ /** Colorless container settings. If container mode is not 'Colorless', null value will be provided. */
2981
+ colorlessSettings?: ColorlessContainerSettingsDto | null;
2982
+ }
2983
+ /** Print-product container description. */
2984
+ export interface DesignSurfaceContainerParams {
2985
+ /** Container name. */
2986
+ name?: string | null;
2987
+ /** Container size. */
2988
+ size?: SizeModel | null;
2989
+ /** Container position. */
2990
+ position?: PositionModel | null;
2991
+ /** Container printing mode. */
2992
+ mode?: ContainerPrintingMode;
2993
+ /** Container constraints. */
2994
+ constraints?: ContainerConstraintsParams | null;
2995
+ /** Limited color container settings. If container mode is not 'LimitedColor', null value will be provided. */
2996
+ limitedColorSettings?: LimitedColorContainerSettingsParams | null;
2997
+ /** Full color container settings. If container mode is not 'FullColor', null value will be provided. */
2998
+ fullColorSettings?: FullColorContainerSettingsParams | null;
2999
+ /** Colorless container settings. If container mode is not 'Colorless', null value will be provided. */
3000
+ colorlessSettings?: ColorlessContainerSettingsParams | null;
2790
3001
  }
2791
3002
  /** Print-product surface description. */
2792
3003
  export interface DesignSurfaceDto {
@@ -2861,6 +3072,20 @@ export interface FontsMethodData {
2861
3072
  advancedMode?: boolean;
2862
3073
  baseUrl?: string | null;
2863
3074
  }
3075
+ /** Full color container settigns. */
3076
+ export interface FullColorContainerSettingsDto {
3077
+ /** Target color space. */
3078
+ colorSpace?: ContainerColorSpace;
3079
+ /** Target color profile name. */
3080
+ colorProfile?: string | null;
3081
+ }
3082
+ /** Full color container settigns. */
3083
+ export interface FullColorContainerSettingsParams {
3084
+ /** Target color space. */
3085
+ colorSpace?: ContainerColorSpace;
3086
+ /** Target color profile name. */
3087
+ colorProfile?: string | null;
3088
+ }
2864
3089
  /** Information about operation conflict. */
2865
3090
  export interface GeneralConflictDto {
2866
3091
  /** Problem description. */
@@ -2927,6 +3152,20 @@ export declare enum ItemType {
2927
3152
  Clipart = "Clipart",
2928
3153
  Group = "Group"
2929
3154
  }
3155
+ /** Limited color container settigns. */
3156
+ export interface LimitedColorContainerSettingsDto {
3157
+ /** Colors limit count. */
3158
+ colors?: number;
3159
+ /** Related palette UID. */
3160
+ paletteUID?: string | null;
3161
+ }
3162
+ /** Limited color container settigns. */
3163
+ export interface LimitedColorContainerSettingsParams {
3164
+ /** Colors limit count. */
3165
+ colors?: number;
3166
+ /** Related palette UID. */
3167
+ paletteUID?: string | null;
3168
+ }
2930
3169
  /** Margins of the print-product element. */
2931
3170
  export interface MarginDto {
2932
3171
  /** Print-product element top margin. */
@@ -2949,6 +3188,16 @@ export interface MarginModel {
2949
3188
  /** Bottom margin. */
2950
3189
  bottom?: number;
2951
3190
  }
3191
+ export interface MaxArtworkSizeConstraintsDto {
3192
+ width?: number | null;
3193
+ height?: number | null;
3194
+ shapeType?: ArtworkShapeType | null;
3195
+ }
3196
+ export interface MaxArtworkSizeConstraintsParams {
3197
+ width?: number | null;
3198
+ height?: number | null;
3199
+ shapeType?: ArtworkShapeType | null;
3200
+ }
2952
3201
  export interface MeasureUnitInfo {
2953
3202
  name?: string | null;
2954
3203
  shortName?: string | null;
@@ -2959,6 +3208,35 @@ export interface Mockup3dAttributesDto {
2959
3208
  [key: string]: string;
2960
3209
  } | null;
2961
3210
  }
3211
+ /** Mockup preview fitting mode. */
3212
+ export declare enum MockupPreviewFitMode {
3213
+ Fit = "Fit",
3214
+ Shrink = "Shrink",
3215
+ Resize = "Resize",
3216
+ Fill = "Fill"
3217
+ }
3218
+ /** Mockup preview file format. */
3219
+ export declare enum MockupPreviewFormat {
3220
+ Jpeg = "Jpeg",
3221
+ Png = "Png"
3222
+ }
3223
+ /** Settings that describe mockup preview rendering parameters. */
3224
+ export interface MockupPreviewRenderingConfig {
3225
+ /** Mockup preview width (in pixels). */
3226
+ width?: number;
3227
+ /** Mockup preview height (in pixels). */
3228
+ height?: number;
3229
+ /** Parameters of active group layers. Each group can have only one active layer.
3230
+ E.g. { "Group1: "Layer1", "Group2": "Layer2" }.
3231
+ If value is not set, all visible layers will be rendered. */
3232
+ groups?: {
3233
+ [key: string]: string;
3234
+ } | null;
3235
+ /** Mockup preview file format. */
3236
+ fileFormat?: MockupPreviewFormat | null;
3237
+ /** Mockup preview fit mode. */
3238
+ fitMode?: MockupPreviewFitMode | null;
3239
+ }
2962
3240
  export interface MultiCallRequest {
2963
3241
  items?: MultiCallRequestItem[] | null;
2964
3242
  }
@@ -3222,6 +3500,14 @@ export interface RenderImagePreviewToResourceModel {
3222
3500
  /** Image preview configuration. */
3223
3501
  renderingConfig?: ImagePreviewRenderingConfig | null;
3224
3502
  }
3503
+ export interface RenderMockupPreviewModel {
3504
+ /** Mockup identifier. */
3505
+ mockupId?: string | null;
3506
+ /** Storage image owner identifier. */
3507
+ ownerId?: string | null;
3508
+ /** Mockup preview configuration. */
3509
+ renderingConfig?: MockupPreviewRenderingConfig | null;
3510
+ }
3225
3511
  /** Render product parameters. */
3226
3512
  export interface RenderProductModel {
3227
3513
  /** Serialized product description. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurigma/ng-design-atoms-api-client",
3
- "version": "2.74.1",
3
+ "version": "2.77.4",
4
4
  "license": "SEE LICENSE IN License.md",
5
5
  "description": "Angular API Client for Design Atoms API service of Customer's Canvas web-to-print system.",
6
6
  "author": "Aurigma Inc <info@aurigma.com> (https://customerscanvas.com)",