@aurigma/axios-design-atoms-api-client 2.23.1 → 2.28.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.
@@ -347,6 +347,15 @@ export interface IDesignAtomsServiceApiClient {
347
347
  * @return Success
348
348
  */
349
349
  createDesign(privateStorage?: boolean | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: CreateDesignModel | null | undefined): Promise<DesignInfo>;
350
+ /**
351
+ * Returns content of the background.
352
+ * @param id Design identifier.
353
+ * @param surfaceIndex (optional) Surface index.
354
+ * @param privateStorageOwner (optional) Private storage owner identifier.
355
+ * @param tenantId (optional) Tenant identifier
356
+ * @return Success
357
+ */
358
+ extractBackground(id: string | null, surfaceIndex?: number | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined): Promise<FileResponse>;
350
359
  /**
351
360
  * Loads product (design model) from design file taken from storage
352
361
  * @param id Design identifier
@@ -405,7 +414,7 @@ export interface IDesignAtomsServiceApiClient {
405
414
  * @param body (optional) Design variable values
406
415
  * @return Success
407
416
  */
408
- setVariables(id: string | null, privateStorage?: boolean | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: VariablesModel | null | undefined): Promise<VariablesModel>;
417
+ setVariables(id: string | null, privateStorage?: boolean | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: VariablesModel | null | undefined): Promise<void>;
409
418
  /**
410
419
  * Loads variable data printing information from design file taken from storage
411
420
  * @param id Design identifier
@@ -435,9 +444,9 @@ export interface IDesignAtomsServiceApiClient {
435
444
  */
436
445
  deleteVdpData(id: string | null, privateStorage?: boolean | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined): Promise<void>;
437
446
  /**
438
- * Flatten items
447
+ * Flatten items.
439
448
  * @param tenantId (optional) Tenant identifier
440
- * @param body (optional) Items to flatten
449
+ * @param body (optional) Items to flatten.
441
450
  * @return Success
442
451
  */
443
452
  flattenItems(tenantId?: number | undefined, body?: any[] | null | undefined): Promise<any>;
@@ -452,11 +461,37 @@ export interface IDesignAtomsServiceApiClient {
452
461
  * @return Success
453
462
  */
454
463
  createItem(itemType?: ItemType | null | undefined, tenantId?: number | undefined, sourceType?: ItemSourceType | null | undefined, sourceId?: string | null | undefined, sourceOwnerId?: string | null | undefined, sourceFile?: FileParameter | null | undefined): Promise<any>;
464
+ /**
465
+ * Creates a private design from a public design.
466
+ * @param designId (optional) Public design ID.
467
+ * @param privateDesignId (optional) Private design ID.
468
+ * @param privateStorageOwner (optional) Private storage owner ID.
469
+ * @param tenantId (optional) Tenant identifier
470
+ * @return Success
471
+ */
472
+ createPrivateDesignFromDesign(designId?: string | null | undefined, privateDesignId?: string | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined): Promise<void>;
473
+ /**
474
+ * Creates a private design from a public resource.
475
+ * @param resourceId (optional) Resource ID.
476
+ * @param privateDesignId (optional) Private design ID.
477
+ * @param privateStorageOwner (optional) Private storage owner ID.
478
+ * @param tenantId (optional) Tenant identifier
479
+ * @return Success
480
+ */
481
+ createPrivateDesignFromResource(resourceId?: string | null | undefined, privateDesignId?: string | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined): Promise<void>;
482
+ /**
483
+ * Renders a design with the specified parameters.
484
+ * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false').
485
+ * @param tenantId (optional) Tenant identifier
486
+ * @param body (optional) Render model with preview parameters.
487
+ * @return Success
488
+ */
489
+ renderDesign(attachment?: boolean | null | undefined, tenantId?: number | undefined, body?: RenderDesignModel | null | undefined): Promise<FileResponse>;
455
490
  /**
456
491
  * Render product proof image with specified parameters.
457
- * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false')
492
+ * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false').
458
493
  * @param tenantId (optional) Tenant identifier
459
- * @param body (optional) Preview parameters
494
+ * @param body (optional) Preview parameters.
460
495
  * @return Success
461
496
  */
462
497
  renderProduct(attachment?: boolean | null | undefined, tenantId?: number | undefined, body?: RenderProductModel | null | undefined): Promise<FileResponse>;
@@ -484,6 +519,16 @@ export declare class DesignAtomsServiceApiClient extends ApiClientBase implement
484
519
  */
485
520
  createDesign(privateStorage?: boolean | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: CreateDesignModel | null | undefined, cancelToken?: CancelToken | undefined): Promise<DesignInfo>;
486
521
  protected processCreateDesign(response: AxiosResponse): Promise<DesignInfo>;
522
+ /**
523
+ * Returns content of the background.
524
+ * @param id Design identifier.
525
+ * @param surfaceIndex (optional) Surface index.
526
+ * @param privateStorageOwner (optional) Private storage owner identifier.
527
+ * @param tenantId (optional) Tenant identifier
528
+ * @return Success
529
+ */
530
+ extractBackground(id: string | null, surfaceIndex?: number | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, cancelToken?: CancelToken | undefined): Promise<FileResponse>;
531
+ protected processExtractBackground(response: AxiosResponse): Promise<FileResponse>;
487
532
  /**
488
533
  * Loads product (design model) from design file taken from storage
489
534
  * @param id Design identifier
@@ -547,8 +592,8 @@ export declare class DesignAtomsServiceApiClient extends ApiClientBase implement
547
592
  * @param body (optional) Design variable values
548
593
  * @return Success
549
594
  */
550
- setVariables(id: string | null, privateStorage?: boolean | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: VariablesModel | null | undefined, cancelToken?: CancelToken | undefined): Promise<VariablesModel>;
551
- protected processSetVariables(response: AxiosResponse): Promise<VariablesModel>;
595
+ setVariables(id: string | null, privateStorage?: boolean | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: VariablesModel | null | undefined, cancelToken?: CancelToken | undefined): Promise<void>;
596
+ protected processSetVariables(response: AxiosResponse): Promise<void>;
552
597
  /**
553
598
  * Loads variable data printing information from design file taken from storage
554
599
  * @param id Design identifier
@@ -581,9 +626,9 @@ export declare class DesignAtomsServiceApiClient extends ApiClientBase implement
581
626
  deleteVdpData(id: string | null, privateStorage?: boolean | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, cancelToken?: CancelToken | undefined): Promise<void>;
582
627
  protected processDeleteVdpData(response: AxiosResponse): Promise<void>;
583
628
  /**
584
- * Flatten items
629
+ * Flatten items.
585
630
  * @param tenantId (optional) Tenant identifier
586
- * @param body (optional) Items to flatten
631
+ * @param body (optional) Items to flatten.
587
632
  * @return Success
588
633
  */
589
634
  flattenItems(tenantId?: number | undefined, body?: any[] | null | undefined, cancelToken?: CancelToken | undefined): Promise<any>;
@@ -600,11 +645,40 @@ export declare class DesignAtomsServiceApiClient extends ApiClientBase implement
600
645
  */
601
646
  createItem(itemType?: ItemType | null | undefined, tenantId?: number | undefined, sourceType?: ItemSourceType | null | undefined, sourceId?: string | null | undefined, sourceOwnerId?: string | null | undefined, sourceFile?: FileParameter | null | undefined, cancelToken?: CancelToken | undefined): Promise<any>;
602
647
  protected processCreateItem(response: AxiosResponse): Promise<any>;
648
+ /**
649
+ * Creates a private design from a public design.
650
+ * @param designId (optional) Public design ID.
651
+ * @param privateDesignId (optional) Private design ID.
652
+ * @param privateStorageOwner (optional) Private storage owner ID.
653
+ * @param tenantId (optional) Tenant identifier
654
+ * @return Success
655
+ */
656
+ createPrivateDesignFromDesign(designId?: string | null | undefined, privateDesignId?: string | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, cancelToken?: CancelToken | undefined): Promise<void>;
657
+ protected processCreatePrivateDesignFromDesign(response: AxiosResponse): Promise<void>;
658
+ /**
659
+ * Creates a private design from a public resource.
660
+ * @param resourceId (optional) Resource ID.
661
+ * @param privateDesignId (optional) Private design ID.
662
+ * @param privateStorageOwner (optional) Private storage owner ID.
663
+ * @param tenantId (optional) Tenant identifier
664
+ * @return Success
665
+ */
666
+ createPrivateDesignFromResource(resourceId?: string | null | undefined, privateDesignId?: string | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, cancelToken?: CancelToken | undefined): Promise<void>;
667
+ protected processCreatePrivateDesignFromResource(response: AxiosResponse): Promise<void>;
668
+ /**
669
+ * Renders a design with the specified parameters.
670
+ * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false').
671
+ * @param tenantId (optional) Tenant identifier
672
+ * @param body (optional) Render model with preview parameters.
673
+ * @return Success
674
+ */
675
+ renderDesign(attachment?: boolean | null | undefined, tenantId?: number | undefined, body?: RenderDesignModel | null | undefined, cancelToken?: CancelToken | undefined): Promise<FileResponse>;
676
+ protected processRenderDesign(response: AxiosResponse): Promise<FileResponse>;
603
677
  /**
604
678
  * Render product proof image with specified parameters.
605
- * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false')
679
+ * @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied (default value is 'false').
606
680
  * @param tenantId (optional) Tenant identifier
607
- * @param body (optional) Preview parameters
681
+ * @param body (optional) Preview parameters.
608
682
  * @return Success
609
683
  */
610
684
  renderProduct(attachment?: boolean | null | undefined, tenantId?: number | undefined, body?: RenderProductModel | null | undefined, cancelToken?: CancelToken | undefined): Promise<FileResponse>;
@@ -943,6 +1017,13 @@ export declare class DesignAtomsViewerApiClient extends ApiClientBase implements
943
1017
  updateShapeItemHandler(tenantId?: number | undefined, body?: UpdateHandlerRequest | null | undefined, cancelToken?: CancelToken | undefined): Promise<any>;
944
1018
  protected processUpdateShapeItemHandler(response: AxiosResponse): Promise<any>;
945
1019
  }
1020
+ export interface ProblemDetails {
1021
+ type?: string | null;
1022
+ title?: string | null;
1023
+ status?: number | null;
1024
+ detail?: string | null;
1025
+ instance?: string | null;
1026
+ }
946
1027
  /** Information about a service */
947
1028
  export interface BuildInfoModel {
948
1029
  /** Version number */
@@ -959,13 +1040,6 @@ export interface FontsMethodData {
959
1040
  advancedMode?: boolean;
960
1041
  baseUrl?: string | null;
961
1042
  }
962
- export interface ProblemDetails {
963
- type?: string | null;
964
- title?: string | null;
965
- status?: number | null;
966
- detail?: string | null;
967
- instance?: string | null;
968
- }
969
1043
  export interface GetImageSizeRequest {
970
1044
  imageId?: string | null;
971
1045
  pageIndex?: number;
@@ -1055,18 +1129,38 @@ export interface DesignInfo {
1055
1129
  name?: string | null;
1056
1130
  private?: boolean;
1057
1131
  }
1132
+ export declare enum DesignElementType {
1133
+ Product = "Product",
1134
+ Design = "Design",
1135
+ Surface = "Surface",
1136
+ Container = "Container",
1137
+ PrintArea = "PrintArea",
1138
+ Item = "Item"
1139
+ }
1140
+ export interface MissingDesignElementDto {
1141
+ /** Problem description. */
1142
+ description?: string | null;
1143
+ /** Missing element type. */
1144
+ readonly missingElementType?: DesignElementType;
1145
+ }
1146
+ export interface UnprocessableDesignElementDto {
1147
+ /** Problem description. */
1148
+ description?: string | null;
1149
+ /** Missing element type. */
1150
+ readonly missingElementType?: DesignElementType;
1151
+ }
1058
1152
  /** Available patch type */
1059
1153
  export declare enum ProductPatchType {
1060
1154
  Undefined = "Undefined",
1061
1155
  ReplaceImageItemFile = "ReplaceImageItemFile"
1062
1156
  }
1063
- /** Variable information */
1157
+ /** Variable information. */
1064
1158
  export interface VariableInfo {
1065
- /** Variable name */
1159
+ /** Variable name. */
1066
1160
  name?: string | null;
1067
- /** Variable value */
1161
+ /** Variable value. */
1068
1162
  value?: string | null;
1069
- /** Variable type */
1163
+ /** Variable type. */
1070
1164
  type?: string | null;
1071
1165
  }
1072
1166
  /** Variables information */
@@ -1093,6 +1187,33 @@ export declare enum ItemSourceType {
1093
1187
  ImageStorage = "ImageStorage",
1094
1188
  PrivateImageStorage = "PrivateImageStorage"
1095
1189
  }
1190
+ /** Product preview file format. */
1191
+ export declare enum ProductPreviewFormat {
1192
+ Jpeg = "Jpeg",
1193
+ Png = "Png",
1194
+ Tiff = "Tiff",
1195
+ Pdf = "Pdf"
1196
+ }
1197
+ export interface ProductPreviewRenderingConfig {
1198
+ surfaceIndex?: number | null;
1199
+ width?: number;
1200
+ height?: number;
1201
+ fileFormat?: ProductPreviewFormat | null;
1202
+ }
1203
+ export interface RenderDesignModel {
1204
+ /** Design ID.
1205
+ Used to get design file from public or private storage. */
1206
+ designId?: string | null;
1207
+ /** Mockup ID.
1208
+ Used to get mockup file from public storage. */
1209
+ mockupId?: string | null;
1210
+ /** ID of the design owner. */
1211
+ ownerId?: string | null;
1212
+ /** Rendering configuration for getting a preview of design. */
1213
+ renderingConfig?: ProductPreviewRenderingConfig | null;
1214
+ /** Variable (user) data of design. */
1215
+ variableData?: VariableInfo[] | null;
1216
+ }
1096
1217
  export declare enum ProductProofFormat {
1097
1218
  Jpeg = "Jpeg",
1098
1219
  Png = "Png",