@aurigma/ng-design-atoms-api-client 2.80.14 → 2.83.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1094,6 +1094,16 @@ export interface IDesignAtomsPrintProductApiClient {
1094
1094
  * @return Success
1095
1095
  */
1096
1096
  addDesignSurfaceModel(id: string, index?: number | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: any | undefined): Observable<any>;
1097
+ /**
1098
+ * Creates a new print product and saves it as a design file.
1099
+ * @param name (optional) Design file name.
1100
+ * @param path (optional) Design file path.
1101
+ * @param privateStorageOwner (optional) Private storage owner identifier.
1102
+ * @param tenantId (optional) Tenant ID.
1103
+ * @param body (optional) Patch product parameters model.
1104
+ * @return Created
1105
+ */
1106
+ createDesignProduct(name?: string | null | undefined, path?: string | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: CreateProductModel | undefined): Observable<DesignInfo>;
1097
1107
  }
1098
1108
  export declare class DesignAtomsPrintProductApiClient extends ApiClientBase implements IDesignAtomsPrintProductApiClient {
1099
1109
  private http;
@@ -1479,6 +1489,17 @@ export declare class DesignAtomsPrintProductApiClient extends ApiClientBase impl
1479
1489
  */
1480
1490
  addDesignSurfaceModel(id: string, index?: number | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: any | undefined): Observable<any>;
1481
1491
  protected processAddDesignSurfaceModel(response: HttpResponseBase): Observable<any>;
1492
+ /**
1493
+ * Creates a new print product and saves it as a design file.
1494
+ * @param name (optional) Design file name.
1495
+ * @param path (optional) Design file path.
1496
+ * @param privateStorageOwner (optional) Private storage owner identifier.
1497
+ * @param tenantId (optional) Tenant ID.
1498
+ * @param body (optional) Patch product parameters model.
1499
+ * @return Created
1500
+ */
1501
+ createDesignProduct(name?: string | null | undefined, path?: string | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: CreateProductModel | undefined): Observable<DesignInfo>;
1502
+ protected processCreateDesignProduct(response: HttpResponseBase): Observable<DesignInfo>;
1482
1503
  }
1483
1504
  export interface IDesignAtomsPrintProductItemsApiClient {
1484
1505
  /**
@@ -1768,7 +1789,7 @@ export interface IDesignAtomsServiceApiClient {
1768
1789
  * @param body (optional) Design variable values.
1769
1790
  * @return Success
1770
1791
  */
1771
- setVariables(id: string, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: VariablesModel | undefined): Observable<void>;
1792
+ setVariables(id: string, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: SetVariablesModel | undefined): Observable<void>;
1772
1793
  /**
1773
1794
  * Loads variable data printing information from design file taken from storage.
1774
1795
  * @param id Design identifier.
@@ -2022,7 +2043,7 @@ export declare class DesignAtomsServiceApiClient extends ApiClientBase implement
2022
2043
  * @param body (optional) Design variable values.
2023
2044
  * @return Success
2024
2045
  */
2025
- setVariables(id: string, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: VariablesModel | undefined): Observable<void>;
2046
+ setVariables(id: string, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: SetVariablesModel | undefined): Observable<void>;
2026
2047
  protected processSetVariables(response: HttpResponseBase): Observable<void>;
2027
2048
  /**
2028
2049
  * Loads variable data printing information from design file taken from storage.
@@ -2891,6 +2912,24 @@ For example, `Authorization` header can be placed here to provide access to imag
2891
2912
  /** Indicates if resulting item should store original source file. */
2892
2913
  preserveOriginalFile?: boolean | null;
2893
2914
  }
2915
+ /** Design print area creation parameters. */
2916
+ export interface CreatePrintAreaModel {
2917
+ /** Print area name. */
2918
+ name?: string | null;
2919
+ /** Print area size. */
2920
+ size?: SizeModel | null;
2921
+ /** Print area position. */
2922
+ position?: PositionModel | null;
2923
+ /** Print area bleed. */
2924
+ bleed?: MarginModel | null;
2925
+ /** Print area slug. */
2926
+ slug?: MarginModel | null;
2927
+ }
2928
+ /** Create print product operation parameters. */
2929
+ export interface CreateProductModel {
2930
+ /** Design surfaces parameters. */
2931
+ surfaces?: CreateSurfaceModel[] | null;
2932
+ }
2894
2933
  /** Rectangle item creation parameters. */
2895
2934
  export interface CreateRectangleItemModel {
2896
2935
  /** Rectangle width. */
@@ -2906,6 +2945,13 @@ export interface CreateRectangleItemModel {
2906
2945
  /** Rectangle border style. */
2907
2946
  borderStyle?: ItemBorderStyle;
2908
2947
  }
2948
+ /** Design surface creation parameters. */
2949
+ export interface CreateSurfaceModel {
2950
+ /** Surface name. */
2951
+ name?: string | null;
2952
+ /** Print areas parameters. */
2953
+ printAreas?: CreatePrintAreaModel[] | null;
2954
+ }
2909
2955
  export interface DesignElementProcessingConflictDto {
2910
2956
  /** Missing element type. */
2911
2957
  readonly missingElementType?: DesignElementType | null;
@@ -2987,6 +3033,25 @@ export interface DesignParameters {
2987
3033
  /** Version of DesignAtoms library that used to save design file. */
2988
3034
  designAtomsVersion?: string | null;
2989
3035
  }
3036
+ export declare enum DesignPreviewMockupStrategy {
3037
+ UseProvidedMockup = "UseProvidedMockup",
3038
+ UseEmbeddedMockup = "UseEmbeddedMockup",
3039
+ UseNoMockup = "UseNoMockup"
3040
+ }
3041
+ export interface DesignPreviewRenderingConfig {
3042
+ /** Surface index. */
3043
+ surfaceIndex?: number | null;
3044
+ /** Indicates whether to show stub content for preview image. */
3045
+ stub?: boolean | null;
3046
+ /** Indicates whether print areas borders should be visualized. */
3047
+ visualizePrintAreas?: boolean | null;
3048
+ /** Preview image width. */
3049
+ width?: number;
3050
+ /** Preview image height. */
3051
+ height?: number;
3052
+ /** Preview image file format. */
3053
+ fileFormat?: ProductPreviewFormat | null;
3054
+ }
2990
3055
  /** Design print area parameters. */
2991
3056
  export interface DesignPrintAreaDto {
2992
3057
  /** Print area identifier. */
@@ -3023,6 +3088,28 @@ export interface DesignPrintAreaParams {
3023
3088
  /** Print area shape. Usually content of svg path that describes print area shape is provided. */
3024
3089
  shape?: string | null;
3025
3090
  }
3091
+ export interface DesignProofRenderingConfig {
3092
+ /** Surface to render. */
3093
+ surfaceIndex?: number | null;
3094
+ /** Desired proof image width. */
3095
+ width?: number;
3096
+ /** Desired proof image height. */
3097
+ height?: number;
3098
+ /** Desired proof image format. */
3099
+ format?: ProductProofFormat | null;
3100
+ /** Desired proof image interpolation. */
3101
+ interpolationMode?: ProductProofInterpolationMode | null;
3102
+ /** Defines whether safety lines should be visualized. */
3103
+ safetyLinesEnabled?: boolean | null;
3104
+ /** Defines whether print areas borders should be visualized. */
3105
+ visualizePrintAreas?: boolean | null;
3106
+ /** Defines whether watermark should be included. */
3107
+ watermarkEnabled?: boolean | null;
3108
+ /** Defines watermark opacity (in range 0 .. 1.0). */
3109
+ watermarkOpacity?: number | null;
3110
+ /** Defines whether watermark should be repeated. */
3111
+ watermarkRepeat?: boolean | null;
3112
+ }
3026
3113
  /** Print-product container description. */
3027
3114
  export interface DesignSurfaceContainerDto {
3028
3115
  /** Container identifier. */
@@ -3369,20 +3456,6 @@ export declare enum ProductPreviewFormat {
3369
3456
  Jpeg = "Jpeg",
3370
3457
  Png = "Png"
3371
3458
  }
3372
- export interface ProductPreviewRenderingConfig {
3373
- /** Surface index. */
3374
- surfaceIndex?: number | null;
3375
- /** Indicates whether to show stub content for preview image. */
3376
- stub?: boolean | null;
3377
- /** Indicates whether print areas borders should be visualized. */
3378
- visualizePrintAreas?: boolean | null;
3379
- /** Preview image width. */
3380
- width?: number;
3381
- /** Preview image height. */
3382
- height?: number;
3383
- /** Preview image file format. */
3384
- fileFormat?: ProductPreviewFormat | null;
3385
- }
3386
3459
  export declare enum ProductProofFormat {
3387
3460
  Jpeg = "Jpeg",
3388
3461
  Png = "Png",
@@ -3441,17 +3514,18 @@ export interface RenderDesignPreviewModel {
3441
3514
  /** Design identifier.
3442
3515
  Used to get design file from public or private storage. */
3443
3516
  designId?: string | null;
3517
+ /** Identifier of the design owner. */
3518
+ ownerId?: string | null;
3519
+ mockupStrategy?: DesignPreviewMockupStrategy;
3444
3520
  /** Mockup identifier.
3445
3521
  Used to get mockup file from public storage. */
3446
3522
  mockupId?: string | null;
3447
- /** Identifier of the design owner. */
3448
- ownerId?: string | null;
3449
3523
  /** Identifier of the mockup owner. */
3450
3524
  mockupOwnerId?: string | null;
3451
3525
  /** Rendering configuration for getting a preview of design. */
3452
- renderingConfig?: ProductPreviewRenderingConfig | null;
3526
+ renderingConfig?: DesignPreviewRenderingConfig | null;
3453
3527
  /** Variable (user) data for design variable fields in the preview image. */
3454
- variableData?: VariableInfo[] | null;
3528
+ variableData?: VariableData[] | null;
3455
3529
  }
3456
3530
  export interface RenderDesignPreviewToResourceModel {
3457
3531
  /** Parameters of resource that should be created for a preview rendering result. */
@@ -3461,17 +3535,18 @@ export interface RenderDesignPreviewToResourceModel {
3461
3535
  /** Design identifier.
3462
3536
  Used to get design file from public or private storage. */
3463
3537
  designId?: string | null;
3538
+ /** Identifier of the design owner. */
3539
+ ownerId?: string | null;
3540
+ mockupStrategy?: DesignPreviewMockupStrategy;
3464
3541
  /** Mockup identifier.
3465
3542
  Used to get mockup file from public storage. */
3466
3543
  mockupId?: string | null;
3467
- /** Identifier of the design owner. */
3468
- ownerId?: string | null;
3469
3544
  /** Identifier of the mockup owner. */
3470
3545
  mockupOwnerId?: string | null;
3471
3546
  /** Rendering configuration for getting a preview of design. */
3472
- renderingConfig?: ProductPreviewRenderingConfig | null;
3547
+ renderingConfig?: DesignPreviewRenderingConfig | null;
3473
3548
  /** Variable (user) data for design variable fields in the preview image. */
3474
- variableData?: VariableInfo[] | null;
3549
+ variableData?: VariableData[] | null;
3475
3550
  }
3476
3551
  export interface RenderDesignProofModel {
3477
3552
  /** Design identifier.
@@ -3480,9 +3555,9 @@ Used to get design file from public or private storage. */
3480
3555
  /** Identifier of the design owner. */
3481
3556
  ownerId?: string | null;
3482
3557
  /** Rendering configuration for getting a proof image of design. */
3483
- renderingConfig?: ProductProofRenderingConfig | null;
3558
+ renderingConfig?: DesignProofRenderingConfig | null;
3484
3559
  /** Variable (user) data for design variable fields in the proof image. */
3485
- variableData?: VariableInfo[] | null;
3560
+ variableData?: VariableData[] | null;
3486
3561
  }
3487
3562
  export interface RenderDesignProofToResourceModel {
3488
3563
  /** Parameters of resource that should be created for a preview rendering result. */
@@ -3495,9 +3570,9 @@ Used to get design file from public or private storage. */
3495
3570
  /** Identifier of the design owner. */
3496
3571
  ownerId?: string | null;
3497
3572
  /** Rendering configuration for getting a proof image of design. */
3498
- renderingConfig?: ProductProofRenderingConfig | null;
3573
+ renderingConfig?: DesignProofRenderingConfig | null;
3499
3574
  /** Variable (user) data for design variable fields in the proof image. */
3500
- variableData?: VariableInfo[] | null;
3575
+ variableData?: VariableData[] | null;
3501
3576
  }
3502
3577
  /** Web image preview rendering parameters. */
3503
3578
  export interface RenderImagePreviewFromUrlModel {
@@ -3605,6 +3680,11 @@ export interface SetEditorMockupsModel {
3605
3680
  /** List of editor mockup binding instructions. */
3606
3681
  editorMockupBindings?: EditorMockupBindingModel[] | null;
3607
3682
  }
3683
+ /** Variables information. */
3684
+ export interface SetVariablesModel {
3685
+ /** List of variables. */
3686
+ items?: VariableData[] | null;
3687
+ }
3608
3688
  /** Size of the print-product element. */
3609
3689
  export interface SizeDto {
3610
3690
  /** Print-product element width. */
@@ -3654,6 +3734,12 @@ export interface UpdateImageHandlerRequest {
3654
3734
  itemData?: any | null;
3655
3735
  colorSettings?: PreviewColorSettings | null;
3656
3736
  }
3737
+ export interface VariableData {
3738
+ /** Variable name. */
3739
+ name?: string | null;
3740
+ /** Variable value. */
3741
+ value?: string | null;
3742
+ }
3657
3743
  /** Variable information. */
3658
3744
  export interface VariableInfo {
3659
3745
  /** Variable name. */
@@ -3662,6 +3748,10 @@ export interface VariableInfo {
3662
3748
  value?: string | null;
3663
3749
  /** Variable type. */
3664
3750
  type?: string | null;
3751
+ /** Variable constraints. */
3752
+ constraints?: {
3753
+ [key: string]: string;
3754
+ } | null;
3665
3755
  }
3666
3756
  /** Variables information. */
3667
3757
  export interface VariablesModel {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurigma/ng-design-atoms-api-client",
3
- "version": "2.80.14",
3
+ "version": "2.83.1",
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)",