@aurigma/ng-storefront-api-client 2.22.30 → 2.23.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/aurigma-ng-storefront-api-client.metadata.json +1 -1
- package/bundles/aurigma-ng-storefront-api-client.umd.js +452 -62
- package/bundles/aurigma-ng-storefront-api-client.umd.js.map +1 -1
- package/bundles/aurigma-ng-storefront-api-client.umd.min.js +1 -1
- package/bundles/aurigma-ng-storefront-api-client.umd.min.js.map +1 -1
- package/esm2015/lib/storefront-api-client.js +350 -7
- package/fesm2015/aurigma-ng-storefront-api-client.js +350 -7
- package/fesm2015/aurigma-ng-storefront-api-client.js.map +1 -1
- package/lib/storefront-api-client.d.ts +159 -6
- package/package.json +1 -1
|
@@ -289,6 +289,14 @@ export interface IProjectsApiClient {
|
|
|
289
289
|
* @return Success
|
|
290
290
|
*/
|
|
291
291
|
delete(id: number, tenantId?: number | null | undefined): Observable<void>;
|
|
292
|
+
/**
|
|
293
|
+
* Creates a new project by 'Render HiRes' scenario.
|
|
294
|
+
* @param storefrontId Storefront identifier.
|
|
295
|
+
* @param tenantId (optional) Tenant identifier.
|
|
296
|
+
* @param body (optional) Create operation parameters.
|
|
297
|
+
* @return Success
|
|
298
|
+
*/
|
|
299
|
+
createByRenderHiResScenario(storefrontId: number, tenantId?: number | null | undefined, body?: CreateProjectByRenderHiResScenarioDto | undefined): Observable<ProjectDto>;
|
|
292
300
|
/**
|
|
293
301
|
* Returns all available status transitions for a project.
|
|
294
302
|
* @param id Project identifier.
|
|
@@ -331,6 +339,7 @@ export interface IProjectsApiClient {
|
|
|
331
339
|
* @param designId Design identifier.
|
|
332
340
|
* @param tenantId (optional) Tenant identifier.
|
|
333
341
|
* @return Success
|
|
342
|
+
* @deprecated
|
|
334
343
|
*/
|
|
335
344
|
getProjectPdfUrl(id: number, designUserId: string, designId: string, tenantId?: number | null | undefined): Observable<ProjectPdfResultDto>;
|
|
336
345
|
/**
|
|
@@ -341,8 +350,30 @@ export interface IProjectsApiClient {
|
|
|
341
350
|
* @param attachment (optional) If set to 'true', the requested file will be provided as an attachment with proper filename supplied (default value is 'false').
|
|
342
351
|
* @param tenantId (optional) Tenant identifier.
|
|
343
352
|
* @return Success
|
|
353
|
+
* @deprecated
|
|
344
354
|
*/
|
|
345
355
|
getProjectPdfZip(id: number, designUserId: string, designId: string, attachment?: boolean | null | undefined, tenantId?: number | null | undefined): Observable<FileResponse>;
|
|
356
|
+
/**
|
|
357
|
+
* Returns a project processing results.
|
|
358
|
+
* @param id Project identifier.
|
|
359
|
+
* @param tenantId (optional) Tenant identifier.
|
|
360
|
+
* @return Success
|
|
361
|
+
*/
|
|
362
|
+
getProjectProcessingResults(id: number, tenantId?: number | null | undefined): Observable<ProjectProcessingResultsDto>;
|
|
363
|
+
/**
|
|
364
|
+
* Resumes project processing.
|
|
365
|
+
* @param id Project identifier.
|
|
366
|
+
* @param tenantId (optional) Tenant identifier.
|
|
367
|
+
* @return Success
|
|
368
|
+
*/
|
|
369
|
+
resumeProjectProcessing(id: number, tenantId?: number | null | undefined): Observable<void>;
|
|
370
|
+
/**
|
|
371
|
+
* Restarts a project processing routine.
|
|
372
|
+
* @param id Project identifier.
|
|
373
|
+
* @param tenantId (optional) Tenant identifier.
|
|
374
|
+
* @return Success
|
|
375
|
+
*/
|
|
376
|
+
restartProjectProcessing(id: number, tenantId?: number | null | undefined): Observable<void>;
|
|
346
377
|
/**
|
|
347
378
|
* Returns an order description from the ecommerce system for the specified project.
|
|
348
379
|
* @param id Project identifier.
|
|
@@ -398,6 +429,15 @@ export declare class ProjectsApiClient extends ApiClientBase implements IProject
|
|
|
398
429
|
*/
|
|
399
430
|
delete(id: number, tenantId?: number | null | undefined): Observable<void>;
|
|
400
431
|
protected processDelete(response: HttpResponseBase): Observable<void>;
|
|
432
|
+
/**
|
|
433
|
+
* Creates a new project by 'Render HiRes' scenario.
|
|
434
|
+
* @param storefrontId Storefront identifier.
|
|
435
|
+
* @param tenantId (optional) Tenant identifier.
|
|
436
|
+
* @param body (optional) Create operation parameters.
|
|
437
|
+
* @return Success
|
|
438
|
+
*/
|
|
439
|
+
createByRenderHiResScenario(storefrontId: number, tenantId?: number | null | undefined, body?: CreateProjectByRenderHiResScenarioDto | undefined): Observable<ProjectDto>;
|
|
440
|
+
protected processCreateByRenderHiResScenario(response: HttpResponseBase): Observable<ProjectDto>;
|
|
401
441
|
/**
|
|
402
442
|
* Returns all available status transitions for a project.
|
|
403
443
|
* @param id Project identifier.
|
|
@@ -445,6 +485,7 @@ export declare class ProjectsApiClient extends ApiClientBase implements IProject
|
|
|
445
485
|
* @param designId Design identifier.
|
|
446
486
|
* @param tenantId (optional) Tenant identifier.
|
|
447
487
|
* @return Success
|
|
488
|
+
* @deprecated
|
|
448
489
|
*/
|
|
449
490
|
getProjectPdfUrl(id: number, designUserId: string, designId: string, tenantId?: number | null | undefined): Observable<ProjectPdfResultDto>;
|
|
450
491
|
protected processGetProjectPdfUrl(response: HttpResponseBase): Observable<ProjectPdfResultDto>;
|
|
@@ -456,9 +497,34 @@ export declare class ProjectsApiClient extends ApiClientBase implements IProject
|
|
|
456
497
|
* @param attachment (optional) If set to 'true', the requested file will be provided as an attachment with proper filename supplied (default value is 'false').
|
|
457
498
|
* @param tenantId (optional) Tenant identifier.
|
|
458
499
|
* @return Success
|
|
500
|
+
* @deprecated
|
|
459
501
|
*/
|
|
460
502
|
getProjectPdfZip(id: number, designUserId: string, designId: string, attachment?: boolean | null | undefined, tenantId?: number | null | undefined): Observable<FileResponse>;
|
|
461
503
|
protected processGetProjectPdfZip(response: HttpResponseBase): Observable<FileResponse>;
|
|
504
|
+
/**
|
|
505
|
+
* Returns a project processing results.
|
|
506
|
+
* @param id Project identifier.
|
|
507
|
+
* @param tenantId (optional) Tenant identifier.
|
|
508
|
+
* @return Success
|
|
509
|
+
*/
|
|
510
|
+
getProjectProcessingResults(id: number, tenantId?: number | null | undefined): Observable<ProjectProcessingResultsDto>;
|
|
511
|
+
protected processGetProjectProcessingResults(response: HttpResponseBase): Observable<ProjectProcessingResultsDto>;
|
|
512
|
+
/**
|
|
513
|
+
* Resumes project processing.
|
|
514
|
+
* @param id Project identifier.
|
|
515
|
+
* @param tenantId (optional) Tenant identifier.
|
|
516
|
+
* @return Success
|
|
517
|
+
*/
|
|
518
|
+
resumeProjectProcessing(id: number, tenantId?: number | null | undefined): Observable<void>;
|
|
519
|
+
protected processResumeProjectProcessing(response: HttpResponseBase): Observable<void>;
|
|
520
|
+
/**
|
|
521
|
+
* Restarts a project processing routine.
|
|
522
|
+
* @param id Project identifier.
|
|
523
|
+
* @param tenantId (optional) Tenant identifier.
|
|
524
|
+
* @return Success
|
|
525
|
+
*/
|
|
526
|
+
restartProjectProcessing(id: number, tenantId?: number | null | undefined): Observable<void>;
|
|
527
|
+
protected processRestartProjectProcessing(response: HttpResponseBase): Observable<void>;
|
|
462
528
|
/**
|
|
463
529
|
* Returns an order description from the ecommerce system for the specified project.
|
|
464
530
|
* @param id Project identifier.
|
|
@@ -782,10 +848,10 @@ export declare enum DatePeriod {
|
|
|
782
848
|
Last30Days = "Last30Days"
|
|
783
849
|
}
|
|
784
850
|
/** Available product resource types */
|
|
785
|
-
export declare enum
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
851
|
+
export declare enum ProjectItemResourceType {
|
|
852
|
+
General = "General",
|
|
853
|
+
Preview = "Preview",
|
|
854
|
+
Hires = "Hires"
|
|
789
855
|
}
|
|
790
856
|
/** Dto class, containing information about a project item resource. */
|
|
791
857
|
export interface ProjectItemResourceDto {
|
|
@@ -793,7 +859,7 @@ export interface ProjectItemResourceDto {
|
|
|
793
859
|
resourceId?: string | null;
|
|
794
860
|
/** Resource name. */
|
|
795
861
|
name?: string | null;
|
|
796
|
-
type?:
|
|
862
|
+
type?: ProjectItemResourceType;
|
|
797
863
|
}
|
|
798
864
|
/** Dto class, containing information about a project item. */
|
|
799
865
|
export interface ProjectItemDto {
|
|
@@ -866,7 +932,7 @@ export interface ProjectItemResourceParametersDto {
|
|
|
866
932
|
url?: string | null;
|
|
867
933
|
/** Resource name. */
|
|
868
934
|
name?: string | null;
|
|
869
|
-
type?:
|
|
935
|
+
type?: ProjectItemResourceType;
|
|
870
936
|
}
|
|
871
937
|
/** Dto class, containing create operation paramters for a project item. */
|
|
872
938
|
export interface ProjectItemParametersDto {
|
|
@@ -914,6 +980,65 @@ export interface CreateProjectDto {
|
|
|
914
980
|
/** Description of the project. */
|
|
915
981
|
description?: string | null;
|
|
916
982
|
}
|
|
983
|
+
/** Dto class, containing ecommerce order description. */
|
|
984
|
+
export interface OrderDetailsDto {
|
|
985
|
+
/** Order identifier in ecommerce system. */
|
|
986
|
+
orderId?: string | null;
|
|
987
|
+
/** Order url in ecommerce system. */
|
|
988
|
+
orderUrl?: string | null;
|
|
989
|
+
/** Order number in ecommerce system. */
|
|
990
|
+
orderNumber?: number | null;
|
|
991
|
+
/** Line item index from ecommerce system order. */
|
|
992
|
+
orderLineItemIndex?: number | null;
|
|
993
|
+
/** Line Item identifier from ecommerce system order. */
|
|
994
|
+
orderLineItemId?: string | null;
|
|
995
|
+
/** Customer identifier in ecommerce system. */
|
|
996
|
+
customerId?: string | null;
|
|
997
|
+
/** Customer name in ecommerce system. */
|
|
998
|
+
customerName?: string | null;
|
|
999
|
+
}
|
|
1000
|
+
export declare enum RenderHiResScenarioOutputFormat {
|
|
1001
|
+
Pdf = "Pdf",
|
|
1002
|
+
Jpeg = "Jpeg",
|
|
1003
|
+
Png = "Png",
|
|
1004
|
+
Tiff = "Tiff"
|
|
1005
|
+
}
|
|
1006
|
+
export declare enum RenderHiResScenarioOutputColorSpace {
|
|
1007
|
+
Rgb = "Rgb",
|
|
1008
|
+
Grayscale = "Grayscale",
|
|
1009
|
+
Cmyk = "Cmyk"
|
|
1010
|
+
}
|
|
1011
|
+
export declare enum RenderHiResScenarioOutputFlipMode {
|
|
1012
|
+
None = "None",
|
|
1013
|
+
Horizontal = "Horizontal",
|
|
1014
|
+
Vertical = "Vertical",
|
|
1015
|
+
Both = "Both"
|
|
1016
|
+
}
|
|
1017
|
+
/** Dto class, containing 'RenderHiRes' scenario paramters. */
|
|
1018
|
+
export interface RenderHiResScenarioDto {
|
|
1019
|
+
/** Private design identifier. */
|
|
1020
|
+
designId: string;
|
|
1021
|
+
/** Output file name (without extension). */
|
|
1022
|
+
name?: string | null;
|
|
1023
|
+
/** Output file DPI. */
|
|
1024
|
+
dpi?: number;
|
|
1025
|
+
format?: RenderHiResScenarioOutputFormat;
|
|
1026
|
+
colorSpace?: RenderHiResScenarioOutputColorSpace;
|
|
1027
|
+
flipMode?: RenderHiResScenarioOutputFlipMode;
|
|
1028
|
+
/** Output file access mode. */
|
|
1029
|
+
anonymousAccess?: boolean | null;
|
|
1030
|
+
}
|
|
1031
|
+
/** Dto class, containing 'create' operation parameters for project entity. */
|
|
1032
|
+
export interface CreateProjectByRenderHiResScenarioDto {
|
|
1033
|
+
/** Project owner identifier. */
|
|
1034
|
+
ownerId: string;
|
|
1035
|
+
/** Project name. */
|
|
1036
|
+
name?: string | null;
|
|
1037
|
+
/** Description of the project. */
|
|
1038
|
+
description?: string | null;
|
|
1039
|
+
orderDetails?: OrderDetailsDto;
|
|
1040
|
+
scenario: RenderHiResScenarioDto;
|
|
1041
|
+
}
|
|
917
1042
|
/** Project transition dto class. */
|
|
918
1043
|
export interface ProjectTransitionDto {
|
|
919
1044
|
/** Transition identifying name. */
|
|
@@ -956,6 +1081,34 @@ export interface ProjectPdfResultDto {
|
|
|
956
1081
|
/** Project pdf url. */
|
|
957
1082
|
url?: string | null;
|
|
958
1083
|
}
|
|
1084
|
+
/** Available project processing statuses. */
|
|
1085
|
+
export declare enum ProjectProcessingStatus {
|
|
1086
|
+
Pending = "Pending",
|
|
1087
|
+
InProgress = "InProgress",
|
|
1088
|
+
Completed = "Completed",
|
|
1089
|
+
Failed = "Failed"
|
|
1090
|
+
}
|
|
1091
|
+
/** Dto class, containing description of a project output file. */
|
|
1092
|
+
export interface ProjectOutputFileDetailsDto {
|
|
1093
|
+
/** Project output file URL. */
|
|
1094
|
+
url?: string | null;
|
|
1095
|
+
/** Project output file name */
|
|
1096
|
+
name?: string | null;
|
|
1097
|
+
/** Project output file format */
|
|
1098
|
+
format?: string | null;
|
|
1099
|
+
/** Project output file id withing artifacts storage. */
|
|
1100
|
+
artifactId?: string | null;
|
|
1101
|
+
/** Project output file access strategy. */
|
|
1102
|
+
anonymousAccess?: boolean;
|
|
1103
|
+
}
|
|
1104
|
+
/** Dto class, containing description of project processing results. */
|
|
1105
|
+
export interface ProjectProcessingResultsDto {
|
|
1106
|
+
status?: ProjectProcessingStatus;
|
|
1107
|
+
/** Project status description. */
|
|
1108
|
+
statusDescription?: string | null;
|
|
1109
|
+
/** Collection of project output file descriptions. */
|
|
1110
|
+
outputFileDetails?: ProjectOutputFileDetailsDto[] | null;
|
|
1111
|
+
}
|
|
959
1112
|
/** Storefront types. */
|
|
960
1113
|
export declare enum StorefrontType {
|
|
961
1114
|
Custom = "Custom",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aurigma/ng-storefront-api-client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.23.1",
|
|
4
4
|
"license": "SEE LICENSE IN License.md",
|
|
5
5
|
"description": "Angular API Client for Storefront API service of Customer's Canvas web-to-print system.",
|
|
6
6
|
"author": "Aurigma Inc <info@aurigma.com> (https://customerscanvas.com)",
|