@aurigma/axios-storefront-api-client 2.46.4 → 2.48.3
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/dist/cjs/storefront-api-client.d.ts +122 -40
- package/dist/cjs/storefront-api-client.js +200 -82
- package/dist/cjs/storefront-api-client.js.map +1 -1
- package/dist/esm/storefront-api-client.d.ts +122 -40
- package/dist/esm/storefront-api-client.js +200 -82
- package/dist/esm/storefront-api-client.js.map +1 -1
- package/package.json +1 -1
|
@@ -343,14 +343,6 @@ export interface IProjectsApiClient {
|
|
|
343
343
|
* @return Success
|
|
344
344
|
*/
|
|
345
345
|
getAll(ownerId?: string | null | undefined, productReference?: string | null | undefined, status?: number | null | undefined, datePeriod?: DatePeriod | undefined, skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, search?: string | null | undefined, orderId?: string | null | undefined, processingStatus?: ProjectProcessingStatus | null | undefined, storefrontId?: number | null | undefined, tenantId?: number | null | undefined): Promise<PagedOfProjectDto>;
|
|
346
|
-
/**
|
|
347
|
-
* Creates a new project.
|
|
348
|
-
* @param storefrontId Storefront identifier.
|
|
349
|
-
* @param tenantId (optional) Tenant identifier.
|
|
350
|
-
* @param body (optional) Create operation parameters.
|
|
351
|
-
* @return Success
|
|
352
|
-
*/
|
|
353
|
-
create(storefrontId: number, tenantId?: number | null | undefined, body?: CreateProjectDto | null | undefined): Promise<ProjectDto>;
|
|
354
346
|
/**
|
|
355
347
|
* Returns a project by identifier.
|
|
356
348
|
* @param id Project identifier.
|
|
@@ -379,6 +371,22 @@ export interface IProjectsApiClient {
|
|
|
379
371
|
* @return Success
|
|
380
372
|
*/
|
|
381
373
|
getPreviewUrl(id: number, tenantId?: number | null | undefined): Promise<string>;
|
|
374
|
+
/**
|
|
375
|
+
* Creates a new project with single item.
|
|
376
|
+
* @param storefrontId Storefront identifier.
|
|
377
|
+
* @param tenantId (optional) Tenant identifier.
|
|
378
|
+
* @param body (optional) Create operation parameters.
|
|
379
|
+
* @return Success
|
|
380
|
+
*/
|
|
381
|
+
createWithSingleItem(storefrontId: number, tenantId?: number | null | undefined, body?: CreateSingleItemProjectDto | null | undefined): Promise<ProjectDto>;
|
|
382
|
+
/**
|
|
383
|
+
* Creates a new project with multiple items.
|
|
384
|
+
* @param storefrontId Storefront identifier.
|
|
385
|
+
* @param tenantId (optional) Tenant identifier.
|
|
386
|
+
* @param body (optional) Create operation parameters.
|
|
387
|
+
* @return Success
|
|
388
|
+
*/
|
|
389
|
+
createWithMultipleItems(storefrontId: number, tenantId?: number | null | undefined, body?: CreateMultiItemProjectDto | null | undefined): Promise<ProjectDto>;
|
|
382
390
|
/**
|
|
383
391
|
* Creates a new project by 'Render HiRes' scenario.
|
|
384
392
|
* @param storefrontId Storefront identifier.
|
|
@@ -454,24 +462,27 @@ export interface IProjectsApiClient {
|
|
|
454
462
|
/**
|
|
455
463
|
* Returns a project processing results.
|
|
456
464
|
* @param id Project identifier.
|
|
465
|
+
* @param itemId (optional) Project item identifier.
|
|
457
466
|
* @param tenantId (optional) Tenant identifier.
|
|
458
467
|
* @return Success
|
|
459
468
|
*/
|
|
460
|
-
getProjectProcessingResults(id: number, tenantId?: number | null | undefined): Promise<ProjectProcessingResultsDto>;
|
|
469
|
+
getProjectProcessingResults(id: number, itemId?: number | null | undefined, tenantId?: number | null | undefined): Promise<ProjectProcessingResultsDto>;
|
|
461
470
|
/**
|
|
462
471
|
* Resumes project processing.
|
|
463
472
|
* @param id Project identifier.
|
|
473
|
+
* @param itemId (optional) Project item identifier. If value is set, only specified item processing will be resumed.
|
|
464
474
|
* @param tenantId (optional) Tenant identifier.
|
|
465
475
|
* @return Success
|
|
466
476
|
*/
|
|
467
|
-
resumeProjectProcessing(id: number, tenantId?: number | null | undefined): Promise<void>;
|
|
477
|
+
resumeProjectProcessing(id: number, itemId?: number | null | undefined, tenantId?: number | null | undefined): Promise<void>;
|
|
468
478
|
/**
|
|
469
479
|
* Restarts a project processing routine.
|
|
470
480
|
* @param id Project identifier.
|
|
481
|
+
* @param itemId (optional) Project item identifier. If value is set, only specified item processing will be restarted.
|
|
471
482
|
* @param tenantId (optional) Tenant identifier.
|
|
472
483
|
* @return Success
|
|
473
484
|
*/
|
|
474
|
-
restartProjectProcessing(id: number, tenantId?: number | null | undefined): Promise<void>;
|
|
485
|
+
restartProjectProcessing(id: number, itemId?: number | null | undefined, tenantId?: number | null | undefined): Promise<void>;
|
|
475
486
|
/**
|
|
476
487
|
* Returns an order description from the ecommerce system for the specified project.
|
|
477
488
|
* @param id Project identifier.
|
|
@@ -482,11 +493,12 @@ export interface IProjectsApiClient {
|
|
|
482
493
|
/**
|
|
483
494
|
* Attachs the specified data to the project's order in ecommerce system.
|
|
484
495
|
* @param id Project identifier.
|
|
496
|
+
* @param itemId (optional)
|
|
485
497
|
* @param tenantId (optional) Tenant identifier.
|
|
486
498
|
* @param body (optional) A list of data items, which should be attached to project's order.
|
|
487
499
|
* @return Success
|
|
488
500
|
*/
|
|
489
|
-
attachDataToProjectOrder(id: number, tenantId?: number | null | undefined, body?: OrderDataItemDto[] | null | undefined): Promise<void>;
|
|
501
|
+
attachDataToProjectOrder(id: number, itemId?: number | null | undefined, tenantId?: number | null | undefined, body?: OrderDataItemDto[] | null | undefined): Promise<void>;
|
|
490
502
|
}
|
|
491
503
|
export declare class ProjectsApiClient extends ApiClientBase implements IProjectsApiClient {
|
|
492
504
|
private instance;
|
|
@@ -511,15 +523,6 @@ export declare class ProjectsApiClient extends ApiClientBase implements IProject
|
|
|
511
523
|
*/
|
|
512
524
|
getAll(ownerId?: string | null | undefined, productReference?: string | null | undefined, status?: number | null | undefined, datePeriod?: DatePeriod | undefined, skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, search?: string | null | undefined, orderId?: string | null | undefined, processingStatus?: ProjectProcessingStatus | null | undefined, storefrontId?: number | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PagedOfProjectDto>;
|
|
513
525
|
protected processGetAll(response: AxiosResponse): Promise<PagedOfProjectDto>;
|
|
514
|
-
/**
|
|
515
|
-
* Creates a new project.
|
|
516
|
-
* @param storefrontId Storefront identifier.
|
|
517
|
-
* @param tenantId (optional) Tenant identifier.
|
|
518
|
-
* @param body (optional) Create operation parameters.
|
|
519
|
-
* @return Success
|
|
520
|
-
*/
|
|
521
|
-
create(storefrontId: number, tenantId?: number | null | undefined, body?: CreateProjectDto | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProjectDto>;
|
|
522
|
-
protected processCreate(response: AxiosResponse): Promise<ProjectDto>;
|
|
523
526
|
/**
|
|
524
527
|
* Returns a project by identifier.
|
|
525
528
|
* @param id Project identifier.
|
|
@@ -552,6 +555,24 @@ export declare class ProjectsApiClient extends ApiClientBase implements IProject
|
|
|
552
555
|
*/
|
|
553
556
|
getPreviewUrl(id: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<string>;
|
|
554
557
|
protected processGetPreviewUrl(response: AxiosResponse): Promise<string>;
|
|
558
|
+
/**
|
|
559
|
+
* Creates a new project with single item.
|
|
560
|
+
* @param storefrontId Storefront identifier.
|
|
561
|
+
* @param tenantId (optional) Tenant identifier.
|
|
562
|
+
* @param body (optional) Create operation parameters.
|
|
563
|
+
* @return Success
|
|
564
|
+
*/
|
|
565
|
+
createWithSingleItem(storefrontId: number, tenantId?: number | null | undefined, body?: CreateSingleItemProjectDto | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProjectDto>;
|
|
566
|
+
protected processCreateWithSingleItem(response: AxiosResponse): Promise<ProjectDto>;
|
|
567
|
+
/**
|
|
568
|
+
* Creates a new project with multiple items.
|
|
569
|
+
* @param storefrontId Storefront identifier.
|
|
570
|
+
* @param tenantId (optional) Tenant identifier.
|
|
571
|
+
* @param body (optional) Create operation parameters.
|
|
572
|
+
* @return Success
|
|
573
|
+
*/
|
|
574
|
+
createWithMultipleItems(storefrontId: number, tenantId?: number | null | undefined, body?: CreateMultiItemProjectDto | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProjectDto>;
|
|
575
|
+
protected processCreateWithMultipleItems(response: AxiosResponse): Promise<ProjectDto>;
|
|
555
576
|
/**
|
|
556
577
|
* Creates a new project by 'Render HiRes' scenario.
|
|
557
578
|
* @param storefrontId Storefront identifier.
|
|
@@ -636,26 +657,29 @@ export declare class ProjectsApiClient extends ApiClientBase implements IProject
|
|
|
636
657
|
/**
|
|
637
658
|
* Returns a project processing results.
|
|
638
659
|
* @param id Project identifier.
|
|
660
|
+
* @param itemId (optional) Project item identifier.
|
|
639
661
|
* @param tenantId (optional) Tenant identifier.
|
|
640
662
|
* @return Success
|
|
641
663
|
*/
|
|
642
|
-
getProjectProcessingResults(id: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProjectProcessingResultsDto>;
|
|
664
|
+
getProjectProcessingResults(id: number, itemId?: number | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProjectProcessingResultsDto>;
|
|
643
665
|
protected processGetProjectProcessingResults(response: AxiosResponse): Promise<ProjectProcessingResultsDto>;
|
|
644
666
|
/**
|
|
645
667
|
* Resumes project processing.
|
|
646
668
|
* @param id Project identifier.
|
|
669
|
+
* @param itemId (optional) Project item identifier. If value is set, only specified item processing will be resumed.
|
|
647
670
|
* @param tenantId (optional) Tenant identifier.
|
|
648
671
|
* @return Success
|
|
649
672
|
*/
|
|
650
|
-
resumeProjectProcessing(id: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<void>;
|
|
673
|
+
resumeProjectProcessing(id: number, itemId?: number | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<void>;
|
|
651
674
|
protected processResumeProjectProcessing(response: AxiosResponse): Promise<void>;
|
|
652
675
|
/**
|
|
653
676
|
* Restarts a project processing routine.
|
|
654
677
|
* @param id Project identifier.
|
|
678
|
+
* @param itemId (optional) Project item identifier. If value is set, only specified item processing will be restarted.
|
|
655
679
|
* @param tenantId (optional) Tenant identifier.
|
|
656
680
|
* @return Success
|
|
657
681
|
*/
|
|
658
|
-
restartProjectProcessing(id: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<void>;
|
|
682
|
+
restartProjectProcessing(id: number, itemId?: number | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<void>;
|
|
659
683
|
protected processRestartProjectProcessing(response: AxiosResponse): Promise<void>;
|
|
660
684
|
/**
|
|
661
685
|
* Returns an order description from the ecommerce system for the specified project.
|
|
@@ -668,11 +692,12 @@ export declare class ProjectsApiClient extends ApiClientBase implements IProject
|
|
|
668
692
|
/**
|
|
669
693
|
* Attachs the specified data to the project's order in ecommerce system.
|
|
670
694
|
* @param id Project identifier.
|
|
695
|
+
* @param itemId (optional)
|
|
671
696
|
* @param tenantId (optional) Tenant identifier.
|
|
672
697
|
* @param body (optional) A list of data items, which should be attached to project's order.
|
|
673
698
|
* @return Success
|
|
674
699
|
*/
|
|
675
|
-
attachDataToProjectOrder(id: number, tenantId?: number | null | undefined, body?: OrderDataItemDto[] | null | undefined, cancelToken?: CancelToken | undefined): Promise<void>;
|
|
700
|
+
attachDataToProjectOrder(id: number, itemId?: number | null | undefined, tenantId?: number | null | undefined, body?: OrderDataItemDto[] | null | undefined, cancelToken?: CancelToken | undefined): Promise<void>;
|
|
676
701
|
protected processAttachDataToProjectOrder(response: AxiosResponse): Promise<void>;
|
|
677
702
|
}
|
|
678
703
|
export interface IStorefrontsApiClient {
|
|
@@ -1061,10 +1086,18 @@ export interface ProjectItemResourceDto {
|
|
|
1061
1086
|
}
|
|
1062
1087
|
/** Dto class, containing information about a project item. */
|
|
1063
1088
|
export interface ProjectItemDto {
|
|
1089
|
+
/** Item identifier. */
|
|
1090
|
+
id?: number;
|
|
1064
1091
|
/** Item name. */
|
|
1065
1092
|
name?: string | null;
|
|
1066
1093
|
/** Item quantity information. */
|
|
1067
1094
|
quantity?: number | null;
|
|
1095
|
+
/** Order item identifier from storefront order. */
|
|
1096
|
+
orderLineItemId?: string | null;
|
|
1097
|
+
/** Order item index from storefront order. */
|
|
1098
|
+
orderLineItemIndex?: number | null;
|
|
1099
|
+
/** Storefront product reference (i.e external reference to Customer's Canvas product specification). */
|
|
1100
|
+
productReference?: string | null;
|
|
1068
1101
|
/** Item information. */
|
|
1069
1102
|
fields?: {
|
|
1070
1103
|
[key: string]: any;
|
|
@@ -1082,7 +1115,7 @@ export interface ProjectItemDto {
|
|
|
1082
1115
|
export interface ProjectDto {
|
|
1083
1116
|
/** Project identifier. */
|
|
1084
1117
|
id?: number;
|
|
1085
|
-
/**
|
|
1118
|
+
/** Storefront product identifier. */
|
|
1086
1119
|
productReference?: string | null;
|
|
1087
1120
|
/** Storefront identifier. */
|
|
1088
1121
|
storefrontId?: number;
|
|
@@ -1094,9 +1127,9 @@ export interface ProjectDto {
|
|
|
1094
1127
|
orderUrl?: string | null;
|
|
1095
1128
|
/** Order number in ecommerce system. */
|
|
1096
1129
|
orderNumber?: number | null;
|
|
1097
|
-
/**
|
|
1130
|
+
/** Order item identifier from storefront order. */
|
|
1098
1131
|
orderLineItemId?: string | null;
|
|
1099
|
-
/**
|
|
1132
|
+
/** Order item index from storefront order. */
|
|
1100
1133
|
orderLineItemIndex?: number | null;
|
|
1101
1134
|
/** Customer identifier in ecommerce system. */
|
|
1102
1135
|
customerId?: string | null;
|
|
@@ -1126,7 +1159,7 @@ export interface PagedOfProjectDto {
|
|
|
1126
1159
|
/** Items list. */
|
|
1127
1160
|
items?: ProjectDto[] | null;
|
|
1128
1161
|
}
|
|
1129
|
-
/** Dto class, containing create operation
|
|
1162
|
+
/** Dto class, containing create operation parameters for a project item resource. */
|
|
1130
1163
|
export interface ProjectItemResourceParametersDto {
|
|
1131
1164
|
/** Resource URL. */
|
|
1132
1165
|
url?: string | null;
|
|
@@ -1143,6 +1176,12 @@ export interface ProjectItemParametersDto {
|
|
|
1143
1176
|
name?: string | null;
|
|
1144
1177
|
/** Item quantity information. */
|
|
1145
1178
|
quantity?: number | null;
|
|
1179
|
+
/** Line item index from ecommerce system order. */
|
|
1180
|
+
orderLineItemIndex?: number | null;
|
|
1181
|
+
/** Line Item identifier from ecommerce system order. */
|
|
1182
|
+
orderLineItemId?: string | null;
|
|
1183
|
+
/** Storefront product identifier. */
|
|
1184
|
+
productReference?: string | null;
|
|
1146
1185
|
/** Item information. */
|
|
1147
1186
|
fields?: {
|
|
1148
1187
|
[key: string]: any;
|
|
@@ -1156,20 +1195,43 @@ export interface ProjectItemParametersDto {
|
|
|
1156
1195
|
/** External resources descriptions. */
|
|
1157
1196
|
resources?: ProjectItemResourceParametersDto[] | null;
|
|
1158
1197
|
}
|
|
1159
|
-
/** Dto class, containing create operation parameters for project entity. */
|
|
1160
|
-
export interface
|
|
1198
|
+
/** Dto class, containing create operation parameters for single-item project entity. */
|
|
1199
|
+
export interface CreateSingleItemProjectDto {
|
|
1161
1200
|
/** Product reference (i.e external reference to Customer's Canvas product specification - main subject of this project). */
|
|
1162
|
-
productReference
|
|
1201
|
+
productReference?: string | null;
|
|
1202
|
+
/** Line item index from ecommerce system order. */
|
|
1203
|
+
orderLineItemIndex?: number | null;
|
|
1204
|
+
/** Line Item identifier from ecommerce system order. */
|
|
1205
|
+
orderLineItemId?: string | null;
|
|
1206
|
+
/** List of project items. */
|
|
1207
|
+
items?: ProjectItemParametersDto[] | null;
|
|
1208
|
+
/** Order identifier in ecommerce system. */
|
|
1209
|
+
orderId?: string | null;
|
|
1210
|
+
/** Order url in ecommerce system. */
|
|
1211
|
+
orderUrl?: string | null;
|
|
1212
|
+
/** Order number in ecommerce system. */
|
|
1213
|
+
orderNumber?: number | null;
|
|
1214
|
+
/** Customer identifier in ecommerce system. */
|
|
1215
|
+
customerId?: string | null;
|
|
1216
|
+
/** Customer name in ecommerce system. */
|
|
1217
|
+
customerName?: string | null;
|
|
1218
|
+
/** Project name. */
|
|
1219
|
+
name?: string | null;
|
|
1220
|
+
/** Project owner identifier. */
|
|
1221
|
+
ownerId: string;
|
|
1222
|
+
/** List of project items. */
|
|
1223
|
+
item?: ProjectItemParametersDto | null;
|
|
1224
|
+
/** Description of the project. */
|
|
1225
|
+
description?: string | null;
|
|
1226
|
+
}
|
|
1227
|
+
/** Dto class, containing create operation parameters for multi-item project entity. */
|
|
1228
|
+
export interface CreateMultiItemProjectDto {
|
|
1163
1229
|
/** Order identifier in ecommerce system. */
|
|
1164
1230
|
orderId?: string | null;
|
|
1165
1231
|
/** Order url in ecommerce system. */
|
|
1166
1232
|
orderUrl?: string | null;
|
|
1167
1233
|
/** Order number in ecommerce system. */
|
|
1168
1234
|
orderNumber?: number | null;
|
|
1169
|
-
/** Line item index from ecommerce system order. */
|
|
1170
|
-
orderLineItemIndex?: number | null;
|
|
1171
|
-
/** Line Item identifier from ecommerce system order. */
|
|
1172
|
-
orderLineItemId?: string | null;
|
|
1173
1235
|
/** Customer identifier in ecommerce system. */
|
|
1174
1236
|
customerId?: string | null;
|
|
1175
1237
|
/** Customer name in ecommerce system. */
|
|
@@ -1244,13 +1306,25 @@ export interface CreateProjectByRenderHiResScenarioDto {
|
|
|
1244
1306
|
description?: string | null;
|
|
1245
1307
|
/** Ecommerce system order description. */
|
|
1246
1308
|
orderDetails?: OrderDetailsDto | null;
|
|
1309
|
+
/** Line item index from ecommerce system order. */
|
|
1310
|
+
orderLineItemIndex?: number | null;
|
|
1311
|
+
/** Line Item identifier from ecommerce system order. */
|
|
1312
|
+
orderLineItemId?: string | null;
|
|
1247
1313
|
/** List of project items. */
|
|
1248
1314
|
scenario: RenderHiResScenarioDto;
|
|
1249
1315
|
}
|
|
1316
|
+
export interface ItemPipelineDto {
|
|
1317
|
+
itemName?: string | null;
|
|
1318
|
+
pipelineId?: number;
|
|
1319
|
+
}
|
|
1250
1320
|
/** Dto class, containing 'Specific Pipeline' scenario parameters. */
|
|
1251
1321
|
export interface SpecificPipelineScenarioDto {
|
|
1252
1322
|
/** An existing processing pipeline identifier. */
|
|
1253
|
-
pipelineId?: number;
|
|
1323
|
+
pipelineId?: number | null;
|
|
1324
|
+
/** An existing processing pipeline identifier for project post-processing. */
|
|
1325
|
+
postProcessingPipelineId?: number | null;
|
|
1326
|
+
/** List of objects describing connections between project items and processing pipelines. */
|
|
1327
|
+
itemPipelines?: ItemPipelineDto[] | null;
|
|
1254
1328
|
}
|
|
1255
1329
|
/** Dto class, containing 'create' operation parameters for a new project that should be created by executing 'Specific Pipeline' scenario. */
|
|
1256
1330
|
export interface CreateProjectBySpecificPipelineScenarioDto {
|
|
@@ -1311,16 +1385,24 @@ export interface ProjectPdfResultDto {
|
|
|
1311
1385
|
}
|
|
1312
1386
|
/** Dto class, containing description of a project output file. */
|
|
1313
1387
|
export interface ProjectOutputFileDetailsDto {
|
|
1388
|
+
/** Project item identifier. */
|
|
1389
|
+
projectItemId?: number | null;
|
|
1390
|
+
/** Order item identifier from storefront. */
|
|
1391
|
+
orderLineItemId?: string | null;
|
|
1392
|
+
/** Order item index from storefront. */
|
|
1393
|
+
orderLineItemIndex?: number | null;
|
|
1314
1394
|
/** Project output file URL. */
|
|
1315
1395
|
url?: string | null;
|
|
1316
|
-
/** Project output file name */
|
|
1396
|
+
/** Project output file name. */
|
|
1317
1397
|
name?: string | null;
|
|
1318
|
-
/** Project output file format */
|
|
1398
|
+
/** Project output file format. */
|
|
1319
1399
|
format?: string | null;
|
|
1320
|
-
/**
|
|
1400
|
+
/** Output artifact file identifier. */
|
|
1321
1401
|
artifactId?: string | null;
|
|
1322
1402
|
/** Project output file access strategy. */
|
|
1323
1403
|
anonymousAccess?: boolean;
|
|
1404
|
+
/** Project output file size in bytes. */
|
|
1405
|
+
size?: number | null;
|
|
1324
1406
|
}
|
|
1325
1407
|
/** Dto class, containing description of project processing results. */
|
|
1326
1408
|
export interface ProjectProcessingResultsDto {
|