@aurigma/axios-design-atoms-api-client 2.82.1 → 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.
- package/dist/cjs/design-atoms-api-client.d.ts +72 -28
- package/dist/cjs/design-atoms-api-client.js +7 -1
- package/dist/cjs/design-atoms-api-client.js.map +1 -1
- package/dist/esm/design-atoms-api-client.d.ts +72 -28
- package/dist/esm/design-atoms-api-client.js +6 -0
- package/dist/esm/design-atoms-api-client.js.map +1 -1
- package/package.json +1 -1
|
@@ -1786,7 +1786,7 @@ export interface IDesignAtomsServiceApiClient {
|
|
|
1786
1786
|
* @param body (optional) Design variable values.
|
|
1787
1787
|
* @return Success
|
|
1788
1788
|
*/
|
|
1789
|
-
setVariables(id: string, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?:
|
|
1789
|
+
setVariables(id: string, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: SetVariablesModel | undefined): Promise<void>;
|
|
1790
1790
|
/**
|
|
1791
1791
|
* Loads variable data printing information from design file taken from storage.
|
|
1792
1792
|
* @param id Design identifier.
|
|
@@ -2040,7 +2040,7 @@ export declare class DesignAtomsServiceApiClient extends ApiClientBase implement
|
|
|
2040
2040
|
* @param body (optional) Design variable values.
|
|
2041
2041
|
* @return Success
|
|
2042
2042
|
*/
|
|
2043
|
-
setVariables(id: string, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?:
|
|
2043
|
+
setVariables(id: string, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: SetVariablesModel | undefined, cancelToken?: CancelToken | undefined): Promise<void>;
|
|
2044
2044
|
protected processSetVariables(response: AxiosResponse): Promise<void>;
|
|
2045
2045
|
/**
|
|
2046
2046
|
* Loads variable data printing information from design file taken from storage.
|
|
@@ -3030,6 +3030,25 @@ export interface DesignParameters {
|
|
|
3030
3030
|
/** Version of DesignAtoms library that used to save design file. */
|
|
3031
3031
|
designAtomsVersion?: string | null;
|
|
3032
3032
|
}
|
|
3033
|
+
export declare enum DesignPreviewMockupStrategy {
|
|
3034
|
+
UseProvidedMockup = "UseProvidedMockup",
|
|
3035
|
+
UseEmbeddedMockup = "UseEmbeddedMockup",
|
|
3036
|
+
UseNoMockup = "UseNoMockup"
|
|
3037
|
+
}
|
|
3038
|
+
export interface DesignPreviewRenderingConfig {
|
|
3039
|
+
/** Surface index. */
|
|
3040
|
+
surfaceIndex?: number | null;
|
|
3041
|
+
/** Indicates whether to show stub content for preview image. */
|
|
3042
|
+
stub?: boolean | null;
|
|
3043
|
+
/** Indicates whether print areas borders should be visualized. */
|
|
3044
|
+
visualizePrintAreas?: boolean | null;
|
|
3045
|
+
/** Preview image width. */
|
|
3046
|
+
width?: number;
|
|
3047
|
+
/** Preview image height. */
|
|
3048
|
+
height?: number;
|
|
3049
|
+
/** Preview image file format. */
|
|
3050
|
+
fileFormat?: ProductPreviewFormat | null;
|
|
3051
|
+
}
|
|
3033
3052
|
/** Design print area parameters. */
|
|
3034
3053
|
export interface DesignPrintAreaDto {
|
|
3035
3054
|
/** Print area identifier. */
|
|
@@ -3066,6 +3085,28 @@ export interface DesignPrintAreaParams {
|
|
|
3066
3085
|
/** Print area shape. Usually content of svg path that describes print area shape is provided. */
|
|
3067
3086
|
shape?: string | null;
|
|
3068
3087
|
}
|
|
3088
|
+
export interface DesignProofRenderingConfig {
|
|
3089
|
+
/** Surface to render. */
|
|
3090
|
+
surfaceIndex?: number | null;
|
|
3091
|
+
/** Desired proof image width. */
|
|
3092
|
+
width?: number;
|
|
3093
|
+
/** Desired proof image height. */
|
|
3094
|
+
height?: number;
|
|
3095
|
+
/** Desired proof image format. */
|
|
3096
|
+
format?: ProductProofFormat | null;
|
|
3097
|
+
/** Desired proof image interpolation. */
|
|
3098
|
+
interpolationMode?: ProductProofInterpolationMode | null;
|
|
3099
|
+
/** Defines whether safety lines should be visualized. */
|
|
3100
|
+
safetyLinesEnabled?: boolean | null;
|
|
3101
|
+
/** Defines whether print areas borders should be visualized. */
|
|
3102
|
+
visualizePrintAreas?: boolean | null;
|
|
3103
|
+
/** Defines whether watermark should be included. */
|
|
3104
|
+
watermarkEnabled?: boolean | null;
|
|
3105
|
+
/** Defines watermark opacity (in range 0 .. 1.0). */
|
|
3106
|
+
watermarkOpacity?: number | null;
|
|
3107
|
+
/** Defines whether watermark should be repeated. */
|
|
3108
|
+
watermarkRepeat?: boolean | null;
|
|
3109
|
+
}
|
|
3069
3110
|
/** Print-product container description. */
|
|
3070
3111
|
export interface DesignSurfaceContainerDto {
|
|
3071
3112
|
/** Container identifier. */
|
|
@@ -3412,20 +3453,6 @@ export declare enum ProductPreviewFormat {
|
|
|
3412
3453
|
Jpeg = "Jpeg",
|
|
3413
3454
|
Png = "Png"
|
|
3414
3455
|
}
|
|
3415
|
-
export interface ProductPreviewRenderingConfig {
|
|
3416
|
-
/** Surface index. */
|
|
3417
|
-
surfaceIndex?: number | null;
|
|
3418
|
-
/** Indicates whether to show stub content for preview image. */
|
|
3419
|
-
stub?: boolean | null;
|
|
3420
|
-
/** Indicates whether print areas borders should be visualized. */
|
|
3421
|
-
visualizePrintAreas?: boolean | null;
|
|
3422
|
-
/** Preview image width. */
|
|
3423
|
-
width?: number;
|
|
3424
|
-
/** Preview image height. */
|
|
3425
|
-
height?: number;
|
|
3426
|
-
/** Preview image file format. */
|
|
3427
|
-
fileFormat?: ProductPreviewFormat | null;
|
|
3428
|
-
}
|
|
3429
3456
|
export declare enum ProductProofFormat {
|
|
3430
3457
|
Jpeg = "Jpeg",
|
|
3431
3458
|
Png = "Png",
|
|
@@ -3484,17 +3511,18 @@ export interface RenderDesignPreviewModel {
|
|
|
3484
3511
|
/** Design identifier.
|
|
3485
3512
|
Used to get design file from public or private storage. */
|
|
3486
3513
|
designId?: string | null;
|
|
3514
|
+
/** Identifier of the design owner. */
|
|
3515
|
+
ownerId?: string | null;
|
|
3516
|
+
mockupStrategy?: DesignPreviewMockupStrategy;
|
|
3487
3517
|
/** Mockup identifier.
|
|
3488
3518
|
Used to get mockup file from public storage. */
|
|
3489
3519
|
mockupId?: string | null;
|
|
3490
|
-
/** Identifier of the design owner. */
|
|
3491
|
-
ownerId?: string | null;
|
|
3492
3520
|
/** Identifier of the mockup owner. */
|
|
3493
3521
|
mockupOwnerId?: string | null;
|
|
3494
3522
|
/** Rendering configuration for getting a preview of design. */
|
|
3495
|
-
renderingConfig?:
|
|
3523
|
+
renderingConfig?: DesignPreviewRenderingConfig | null;
|
|
3496
3524
|
/** Variable (user) data for design variable fields in the preview image. */
|
|
3497
|
-
variableData?:
|
|
3525
|
+
variableData?: VariableData[] | null;
|
|
3498
3526
|
}
|
|
3499
3527
|
export interface RenderDesignPreviewToResourceModel {
|
|
3500
3528
|
/** Parameters of resource that should be created for a preview rendering result. */
|
|
@@ -3504,17 +3532,18 @@ export interface RenderDesignPreviewToResourceModel {
|
|
|
3504
3532
|
/** Design identifier.
|
|
3505
3533
|
Used to get design file from public or private storage. */
|
|
3506
3534
|
designId?: string | null;
|
|
3535
|
+
/** Identifier of the design owner. */
|
|
3536
|
+
ownerId?: string | null;
|
|
3537
|
+
mockupStrategy?: DesignPreviewMockupStrategy;
|
|
3507
3538
|
/** Mockup identifier.
|
|
3508
3539
|
Used to get mockup file from public storage. */
|
|
3509
3540
|
mockupId?: string | null;
|
|
3510
|
-
/** Identifier of the design owner. */
|
|
3511
|
-
ownerId?: string | null;
|
|
3512
3541
|
/** Identifier of the mockup owner. */
|
|
3513
3542
|
mockupOwnerId?: string | null;
|
|
3514
3543
|
/** Rendering configuration for getting a preview of design. */
|
|
3515
|
-
renderingConfig?:
|
|
3544
|
+
renderingConfig?: DesignPreviewRenderingConfig | null;
|
|
3516
3545
|
/** Variable (user) data for design variable fields in the preview image. */
|
|
3517
|
-
variableData?:
|
|
3546
|
+
variableData?: VariableData[] | null;
|
|
3518
3547
|
}
|
|
3519
3548
|
export interface RenderDesignProofModel {
|
|
3520
3549
|
/** Design identifier.
|
|
@@ -3523,9 +3552,9 @@ Used to get design file from public or private storage. */
|
|
|
3523
3552
|
/** Identifier of the design owner. */
|
|
3524
3553
|
ownerId?: string | null;
|
|
3525
3554
|
/** Rendering configuration for getting a proof image of design. */
|
|
3526
|
-
renderingConfig?:
|
|
3555
|
+
renderingConfig?: DesignProofRenderingConfig | null;
|
|
3527
3556
|
/** Variable (user) data for design variable fields in the proof image. */
|
|
3528
|
-
variableData?:
|
|
3557
|
+
variableData?: VariableData[] | null;
|
|
3529
3558
|
}
|
|
3530
3559
|
export interface RenderDesignProofToResourceModel {
|
|
3531
3560
|
/** Parameters of resource that should be created for a preview rendering result. */
|
|
@@ -3538,9 +3567,9 @@ Used to get design file from public or private storage. */
|
|
|
3538
3567
|
/** Identifier of the design owner. */
|
|
3539
3568
|
ownerId?: string | null;
|
|
3540
3569
|
/** Rendering configuration for getting a proof image of design. */
|
|
3541
|
-
renderingConfig?:
|
|
3570
|
+
renderingConfig?: DesignProofRenderingConfig | null;
|
|
3542
3571
|
/** Variable (user) data for design variable fields in the proof image. */
|
|
3543
|
-
variableData?:
|
|
3572
|
+
variableData?: VariableData[] | null;
|
|
3544
3573
|
}
|
|
3545
3574
|
/** Web image preview rendering parameters. */
|
|
3546
3575
|
export interface RenderImagePreviewFromUrlModel {
|
|
@@ -3648,6 +3677,11 @@ export interface SetEditorMockupsModel {
|
|
|
3648
3677
|
/** List of editor mockup binding instructions. */
|
|
3649
3678
|
editorMockupBindings?: EditorMockupBindingModel[] | null;
|
|
3650
3679
|
}
|
|
3680
|
+
/** Variables information. */
|
|
3681
|
+
export interface SetVariablesModel {
|
|
3682
|
+
/** List of variables. */
|
|
3683
|
+
items?: VariableData[] | null;
|
|
3684
|
+
}
|
|
3651
3685
|
/** Size of the print-product element. */
|
|
3652
3686
|
export interface SizeDto {
|
|
3653
3687
|
/** Print-product element width. */
|
|
@@ -3697,6 +3731,12 @@ export interface UpdateImageHandlerRequest {
|
|
|
3697
3731
|
itemData?: any | null;
|
|
3698
3732
|
colorSettings?: PreviewColorSettings | null;
|
|
3699
3733
|
}
|
|
3734
|
+
export interface VariableData {
|
|
3735
|
+
/** Variable name. */
|
|
3736
|
+
name?: string | null;
|
|
3737
|
+
/** Variable value. */
|
|
3738
|
+
value?: string | null;
|
|
3739
|
+
}
|
|
3700
3740
|
/** Variable information. */
|
|
3701
3741
|
export interface VariableInfo {
|
|
3702
3742
|
/** Variable name. */
|
|
@@ -3705,6 +3745,10 @@ export interface VariableInfo {
|
|
|
3705
3745
|
value?: string | null;
|
|
3706
3746
|
/** Variable type. */
|
|
3707
3747
|
type?: string | null;
|
|
3748
|
+
/** Variable constraints. */
|
|
3749
|
+
constraints?: {
|
|
3750
|
+
[key: string]: string;
|
|
3751
|
+
} | null;
|
|
3708
3752
|
}
|
|
3709
3753
|
/** Variables information. */
|
|
3710
3754
|
export interface VariablesModel {
|
|
@@ -11465,6 +11465,12 @@ export var DesignElementType;
|
|
|
11465
11465
|
DesignElementType["PrintArea"] = "PrintArea";
|
|
11466
11466
|
DesignElementType["Item"] = "Item";
|
|
11467
11467
|
})(DesignElementType || (DesignElementType = {}));
|
|
11468
|
+
export var DesignPreviewMockupStrategy;
|
|
11469
|
+
(function (DesignPreviewMockupStrategy) {
|
|
11470
|
+
DesignPreviewMockupStrategy["UseProvidedMockup"] = "UseProvidedMockup";
|
|
11471
|
+
DesignPreviewMockupStrategy["UseEmbeddedMockup"] = "UseEmbeddedMockup";
|
|
11472
|
+
DesignPreviewMockupStrategy["UseNoMockup"] = "UseNoMockup";
|
|
11473
|
+
})(DesignPreviewMockupStrategy || (DesignPreviewMockupStrategy = {}));
|
|
11468
11474
|
/** Image preview file format. */
|
|
11469
11475
|
export var ImageExtractionFormat;
|
|
11470
11476
|
(function (ImageExtractionFormat) {
|