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