@aurigma/ng-design-atoms-api-client 2.22.1 → 2.26.7
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/aurigma-ng-design-atoms-api-client.metadata.json +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.js +564 -192
- package/bundles/aurigma-ng-design-atoms-api-client.umd.js.map +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.min.js +1 -1
- package/bundles/aurigma-ng-design-atoms-api-client.umd.min.js.map +1 -1
- package/esm2015/aurigma-ng-design-atoms-api-client.js +1 -1
- package/esm2015/lib/design-atoms-api-client.js +336 -10
- package/esm2015/lib/design-atoms-api.module.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/fesm2015/aurigma-ng-design-atoms-api-client.js +336 -10
- package/fesm2015/aurigma-ng-design-atoms-api-client.js.map +1 -1
- package/lib/design-atoms-api-client.d.ts +130 -15
- package/package.json +1 -1
|
@@ -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<
|
|
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<
|
|
554
|
-
protected processSetVariables(response: HttpResponseBase): Observable<
|
|
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>;
|
|
@@ -1058,18 +1132,32 @@ 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
|
+
}
|
|
1061
1149
|
/** Available patch type */
|
|
1062
1150
|
export declare enum ProductPatchType {
|
|
1063
1151
|
Undefined = "Undefined",
|
|
1064
1152
|
ReplaceImageItemFile = "ReplaceImageItemFile"
|
|
1065
1153
|
}
|
|
1066
|
-
/** Variable information */
|
|
1154
|
+
/** Variable information. */
|
|
1067
1155
|
export interface VariableInfo {
|
|
1068
|
-
/** Variable name */
|
|
1156
|
+
/** Variable name. */
|
|
1069
1157
|
name?: string | null;
|
|
1070
|
-
/** Variable value */
|
|
1158
|
+
/** Variable value. */
|
|
1071
1159
|
value?: string | null;
|
|
1072
|
-
/** Variable type */
|
|
1160
|
+
/** Variable type. */
|
|
1073
1161
|
type?: string | null;
|
|
1074
1162
|
}
|
|
1075
1163
|
/** Variables information */
|
|
@@ -1096,6 +1184,33 @@ export declare enum ItemSourceType {
|
|
|
1096
1184
|
ImageStorage = "ImageStorage",
|
|
1097
1185
|
PrivateImageStorage = "PrivateImageStorage"
|
|
1098
1186
|
}
|
|
1187
|
+
/** Product preview file format. */
|
|
1188
|
+
export declare enum ProductPreviewFormat {
|
|
1189
|
+
Jpeg = "Jpeg",
|
|
1190
|
+
Png = "Png",
|
|
1191
|
+
Tiff = "Tiff",
|
|
1192
|
+
Pdf = "Pdf"
|
|
1193
|
+
}
|
|
1194
|
+
export interface ProductPreviewRenderingConfig {
|
|
1195
|
+
surfaceIndex?: number | null;
|
|
1196
|
+
width?: number;
|
|
1197
|
+
height?: number;
|
|
1198
|
+
fileFormat?: ProductPreviewFormat | null;
|
|
1199
|
+
}
|
|
1200
|
+
export interface RenderDesignModel {
|
|
1201
|
+
/** Design ID.
|
|
1202
|
+
Used to get design file from public or private storage. */
|
|
1203
|
+
designId?: string | null;
|
|
1204
|
+
/** Mockup ID.
|
|
1205
|
+
Used to get mockup file from public storage. */
|
|
1206
|
+
mockupId?: string | null;
|
|
1207
|
+
/** ID of the design owner. */
|
|
1208
|
+
ownerId?: string | null;
|
|
1209
|
+
/** Rendering configuration for getting a preview of design. */
|
|
1210
|
+
renderingConfig?: ProductPreviewRenderingConfig | null;
|
|
1211
|
+
/** Variable (user) data of design. */
|
|
1212
|
+
variableData?: VariableInfo[] | null;
|
|
1213
|
+
}
|
|
1099
1214
|
export declare enum ProductProofFormat {
|
|
1100
1215
|
Jpeg = "Jpeg",
|
|
1101
1216
|
Png = "Png",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aurigma/ng-design-atoms-api-client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.26.7",
|
|
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)",
|