@aurigma/ng-design-atoms-api-client 2.29.1 → 2.31.5
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 +272 -137
- 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 +135 -15
- 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 +135 -15
- package/fesm2015/aurigma-ng-design-atoms-api-client.js.map +1 -1
- package/lib/design-atoms-api-client.d.ts +70 -22
- package/package.json +1 -1
|
@@ -333,6 +333,33 @@ export declare class DesignAtomsCompatibilityApiClient extends ApiClientBase imp
|
|
|
333
333
|
updateShapeItemHandler(tenantId: number, body?: UpdateHandlerRequest | null | undefined): Observable<any>;
|
|
334
334
|
protected processUpdateShapeItemHandler(response: HttpResponseBase): Observable<any>;
|
|
335
335
|
}
|
|
336
|
+
export interface IDesignAtomsImagesApiClient {
|
|
337
|
+
/**
|
|
338
|
+
* Renders a web image preview with the specified parameters.
|
|
339
|
+
* @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
|
|
340
|
+
(default value is 'false').
|
|
341
|
+
* @param tenantId (optional) Tenant identifier
|
|
342
|
+
* @param body (optional) Render model with preview parameters.
|
|
343
|
+
* @return Success
|
|
344
|
+
*/
|
|
345
|
+
renderImagePreview(attachment?: boolean | null | undefined, tenantId?: number | undefined, body?: RenderImagePreviewModel | null | undefined): Observable<FileResponse>;
|
|
346
|
+
}
|
|
347
|
+
export declare class DesignAtomsImagesApiClient extends ApiClientBase implements IDesignAtomsImagesApiClient {
|
|
348
|
+
private http;
|
|
349
|
+
private baseUrl;
|
|
350
|
+
protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
|
|
351
|
+
constructor(configuration: ApiClientConfiguration, http: HttpClient, baseUrl?: string);
|
|
352
|
+
/**
|
|
353
|
+
* Renders a web image preview with the specified parameters.
|
|
354
|
+
* @param attachment (optional) If set to 'true', file will be provided as an attachment with unique filename supplied
|
|
355
|
+
(default value is 'false').
|
|
356
|
+
* @param tenantId (optional) Tenant identifier
|
|
357
|
+
* @param body (optional) Render model with preview parameters.
|
|
358
|
+
* @return Success
|
|
359
|
+
*/
|
|
360
|
+
renderImagePreview(attachment?: boolean | null | undefined, tenantId?: number | undefined, body?: RenderImagePreviewModel | null | undefined): Observable<FileResponse>;
|
|
361
|
+
protected processRenderImagePreview(response: HttpResponseBase): Observable<FileResponse>;
|
|
362
|
+
}
|
|
336
363
|
export interface IDesignAtomsServiceApiClient {
|
|
337
364
|
/**
|
|
338
365
|
* Converts colors
|
|
@@ -379,17 +406,20 @@ export interface IDesignAtomsServiceApiClient {
|
|
|
379
406
|
*/
|
|
380
407
|
saveProduct(id: string | null, privateStorage?: boolean | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: any | null | undefined): Observable<void>;
|
|
381
408
|
/**
|
|
382
|
-
* Patches product (design model) in design file
|
|
383
|
-
* @param id Design identifier
|
|
384
|
-
* @param privateStorage (optional) If set to 'true' design will be taken from private storage
|
|
385
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
409
|
+
* Patches product (design model) in design file.
|
|
410
|
+
* @param id Design identifier.
|
|
411
|
+
* @param privateStorage (optional) If set to 'true' design will be taken from private storage.
|
|
412
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
386
413
|
* @param tenantId (optional) Tenant identifier
|
|
387
414
|
* @param patchType (optional)
|
|
388
415
|
* @param replaceImageItemFileInfo_itemName (optional)
|
|
389
416
|
* @param replaceImageItemFileInfo_sourceFile (optional)
|
|
417
|
+
* @param replacePlaceholderItemContentInfo_placeholderItemName (optional)
|
|
418
|
+
* @param replacePlaceholderItemContentInfo_newContentType (optional)
|
|
419
|
+
* @param replacePlaceholderItemContentInfo_sourceFile (optional)
|
|
390
420
|
* @return Success
|
|
391
421
|
*/
|
|
392
|
-
patchProduct(id: string | null, privateStorage?: boolean | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, patchType?: ProductPatchType | undefined, replaceImageItemFileInfo_itemName?: string | null | undefined, replaceImageItemFileInfo_sourceFile?: FileParameter | null | undefined): Observable<void>;
|
|
422
|
+
patchProduct(id: string | null, privateStorage?: boolean | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, patchType?: ProductPatchType | undefined, replaceImageItemFileInfo_itemName?: string | null | undefined, replaceImageItemFileInfo_sourceFile?: FileParameter | null | undefined, replacePlaceholderItemContentInfo_placeholderItemName?: string | null | undefined, replacePlaceholderItemContentInfo_newContentType?: PlaceholderItemContentType | undefined, replacePlaceholderItemContentInfo_sourceFile?: FileParameter | null | undefined): Observable<void>;
|
|
393
423
|
/**
|
|
394
424
|
* Loads data schema from design file taken from storage
|
|
395
425
|
* @param id Design identifier
|
|
@@ -564,17 +594,20 @@ export declare class DesignAtomsServiceApiClient extends ApiClientBase implement
|
|
|
564
594
|
saveProduct(id: string | null, privateStorage?: boolean | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, body?: any | null | undefined): Observable<void>;
|
|
565
595
|
protected processSaveProduct(response: HttpResponseBase): Observable<void>;
|
|
566
596
|
/**
|
|
567
|
-
* Patches product (design model) in design file
|
|
568
|
-
* @param id Design identifier
|
|
569
|
-
* @param privateStorage (optional) If set to 'true' design will be taken from private storage
|
|
570
|
-
* @param privateStorageOwner (optional) Private storage owner identifier
|
|
597
|
+
* Patches product (design model) in design file.
|
|
598
|
+
* @param id Design identifier.
|
|
599
|
+
* @param privateStorage (optional) If set to 'true' design will be taken from private storage.
|
|
600
|
+
* @param privateStorageOwner (optional) Private storage owner identifier.
|
|
571
601
|
* @param tenantId (optional) Tenant identifier
|
|
572
602
|
* @param patchType (optional)
|
|
573
603
|
* @param replaceImageItemFileInfo_itemName (optional)
|
|
574
604
|
* @param replaceImageItemFileInfo_sourceFile (optional)
|
|
605
|
+
* @param replacePlaceholderItemContentInfo_placeholderItemName (optional)
|
|
606
|
+
* @param replacePlaceholderItemContentInfo_newContentType (optional)
|
|
607
|
+
* @param replacePlaceholderItemContentInfo_sourceFile (optional)
|
|
575
608
|
* @return Success
|
|
576
609
|
*/
|
|
577
|
-
patchProduct(id: string | null, privateStorage?: boolean | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, patchType?: ProductPatchType | undefined, replaceImageItemFileInfo_itemName?: string | null | undefined, replaceImageItemFileInfo_sourceFile?: FileParameter | null | undefined): Observable<void>;
|
|
610
|
+
patchProduct(id: string | null, privateStorage?: boolean | null | undefined, privateStorageOwner?: string | null | undefined, tenantId?: number | undefined, patchType?: ProductPatchType | undefined, replaceImageItemFileInfo_itemName?: string | null | undefined, replaceImageItemFileInfo_sourceFile?: FileParameter | null | undefined, replacePlaceholderItemContentInfo_placeholderItemName?: string | null | undefined, replacePlaceholderItemContentInfo_newContentType?: PlaceholderItemContentType | undefined, replacePlaceholderItemContentInfo_sourceFile?: FileParameter | null | undefined): Observable<void>;
|
|
578
611
|
protected processPatchProduct(response: HttpResponseBase): Observable<void>;
|
|
579
612
|
/**
|
|
580
613
|
* Loads data schema from design file taken from storage
|
|
@@ -1125,6 +1158,23 @@ export interface UpdateImageHandlerRequest {
|
|
|
1125
1158
|
itemHandlerData?: string | null;
|
|
1126
1159
|
itemData?: any | null;
|
|
1127
1160
|
}
|
|
1161
|
+
/** Product preview file format. */
|
|
1162
|
+
export declare enum ProductPreviewFormat {
|
|
1163
|
+
Jpeg = "Jpeg",
|
|
1164
|
+
Png = "Png",
|
|
1165
|
+
Tiff = "Tiff",
|
|
1166
|
+
Pdf = "Pdf"
|
|
1167
|
+
}
|
|
1168
|
+
export interface RenderImagePreviewModel {
|
|
1169
|
+
/** External image URL. */
|
|
1170
|
+
imageUrl?: string | null;
|
|
1171
|
+
/** Height of preview image. */
|
|
1172
|
+
height?: number;
|
|
1173
|
+
/** Width of preview image. */
|
|
1174
|
+
width?: number;
|
|
1175
|
+
/** Output image format. PNG by default. */
|
|
1176
|
+
fileFormat?: ProductPreviewFormat | null;
|
|
1177
|
+
}
|
|
1128
1178
|
/** Convert colors operation parameters */
|
|
1129
1179
|
export interface ConvertColorsModel {
|
|
1130
1180
|
/** Serialized color description */
|
|
@@ -1173,10 +1223,15 @@ export interface UnprocessableDesignElementDto {
|
|
|
1173
1223
|
/** Missing element type. */
|
|
1174
1224
|
readonly missingElementType?: DesignElementType;
|
|
1175
1225
|
}
|
|
1176
|
-
/** Available patch type */
|
|
1226
|
+
/** Available patch type. */
|
|
1177
1227
|
export declare enum ProductPatchType {
|
|
1178
1228
|
Undefined = "Undefined",
|
|
1179
|
-
ReplaceImageItemFile = "ReplaceImageItemFile"
|
|
1229
|
+
ReplaceImageItemFile = "ReplaceImageItemFile",
|
|
1230
|
+
ReplacePlaceholderItemContent = "ReplacePlaceholderItemContent"
|
|
1231
|
+
}
|
|
1232
|
+
/** Placeholder item content type. */
|
|
1233
|
+
export declare enum PlaceholderItemContentType {
|
|
1234
|
+
Image = "Image"
|
|
1180
1235
|
}
|
|
1181
1236
|
/** Variable information. */
|
|
1182
1237
|
export interface VariableInfo {
|
|
@@ -1211,13 +1266,6 @@ export declare enum ItemSourceType {
|
|
|
1211
1266
|
ImageStorage = "ImageStorage",
|
|
1212
1267
|
PrivateImageStorage = "PrivateImageStorage"
|
|
1213
1268
|
}
|
|
1214
|
-
/** Product preview file format. */
|
|
1215
|
-
export declare enum ProductPreviewFormat {
|
|
1216
|
-
Jpeg = "Jpeg",
|
|
1217
|
-
Png = "Png",
|
|
1218
|
-
Tiff = "Tiff",
|
|
1219
|
-
Pdf = "Pdf"
|
|
1220
|
-
}
|
|
1221
1269
|
export interface ProductPreviewRenderingConfig {
|
|
1222
1270
|
surfaceIndex?: number | null;
|
|
1223
1271
|
width?: number;
|
|
@@ -1235,7 +1283,7 @@ Used to get mockup file from public storage. */
|
|
|
1235
1283
|
ownerId?: string | null;
|
|
1236
1284
|
/** Rendering configuration for getting a preview of design. */
|
|
1237
1285
|
renderingConfig?: ProductPreviewRenderingConfig | null;
|
|
1238
|
-
/** Variable (user) data
|
|
1286
|
+
/** Variable (user) data for design variable fields in the preview image. */
|
|
1239
1287
|
variableData?: VariableInfo[] | null;
|
|
1240
1288
|
}
|
|
1241
1289
|
export declare enum ProductProofFormat {
|
|
@@ -1283,9 +1331,9 @@ Used to get design file from public or private storage. */
|
|
|
1283
1331
|
designId?: string | null;
|
|
1284
1332
|
/** ID of the design owner. */
|
|
1285
1333
|
ownerId?: string | null;
|
|
1286
|
-
/** Rendering configuration for getting a
|
|
1334
|
+
/** Rendering configuration for getting a proof image of design. */
|
|
1287
1335
|
renderingConfig?: ProductProofRenderingConfig | null;
|
|
1288
|
-
/** Variable (user) data
|
|
1336
|
+
/** Variable (user) data for design variable fields in the proof image. */
|
|
1289
1337
|
variableData?: VariableInfo[] | null;
|
|
1290
1338
|
}
|
|
1291
1339
|
/** Render product parameters */
|
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.31.5",
|
|
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)",
|