@aurigma/ng-storefront-api-client 2.38.2 → 2.40.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.
@@ -46,6 +46,48 @@ export declare class BuildInfoApiClient extends ApiClientBase implements IBuildI
46
46
  getInfo(): Observable<BuildInfoModel>;
47
47
  protected processGetInfo(response: HttpResponseBase): Observable<BuildInfoModel>;
48
48
  }
49
+ export interface IProcessingPipelinesApiClient {
50
+ /**
51
+ * Returns all processing pipelines relevant to the specified query parameters.
52
+ * @param skip (optional) Defines page start offset from beginning of sorted result list.
53
+ * @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
54
+ * @param search (optional) Search string for partial by processing pipeline name.
55
+ * @param tenantId (optional) Tenant identifier.
56
+ * @return Success
57
+ */
58
+ getAll(skip?: number | null | undefined, take?: number | null | undefined, search?: string | null | undefined, tenantId?: number | null | undefined): Observable<PagedOfProcessingPipelineDto>;
59
+ /**
60
+ * Returns a processing pipeline.
61
+ * @param id Processing pipeline identifier..
62
+ * @param tenantId (optional) Tenant identifier.
63
+ * @return Success
64
+ */
65
+ get(id: number, tenantId?: number | null | undefined): Observable<ProcessingPipelineDto>;
66
+ }
67
+ export declare class ProcessingPipelinesApiClient extends ApiClientBase implements IProcessingPipelinesApiClient {
68
+ private http;
69
+ private baseUrl;
70
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
71
+ constructor(configuration: ApiClientConfiguration, http: HttpClient, baseUrl?: string);
72
+ /**
73
+ * Returns all processing pipelines relevant to the specified query parameters.
74
+ * @param skip (optional) Defines page start offset from beginning of sorted result list.
75
+ * @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
76
+ * @param search (optional) Search string for partial by processing pipeline name.
77
+ * @param tenantId (optional) Tenant identifier.
78
+ * @return Success
79
+ */
80
+ getAll(skip?: number | null | undefined, take?: number | null | undefined, search?: string | null | undefined, tenantId?: number | null | undefined): Observable<PagedOfProcessingPipelineDto>;
81
+ protected processGetAll(response: HttpResponseBase): Observable<PagedOfProcessingPipelineDto>;
82
+ /**
83
+ * Returns a processing pipeline.
84
+ * @param id Processing pipeline identifier..
85
+ * @param tenantId (optional) Tenant identifier.
86
+ * @return Success
87
+ */
88
+ get(id: number, tenantId?: number | null | undefined): Observable<ProcessingPipelineDto>;
89
+ protected processGet(response: HttpResponseBase): Observable<ProcessingPipelineDto>;
90
+ }
49
91
  export interface IProductReferencesApiClient {
50
92
  /**
51
93
  * Returns all storefront product references relevant to the specified query parameters.
@@ -92,14 +134,6 @@ export interface IProductReferencesApiClient {
92
134
  * @return Success
93
135
  */
94
136
  getProductSpecification(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Observable<ProductSpecificationDto>;
95
- /**
96
- * Returns a product personalization workflow configuration by storefront product reference.
97
- * @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
98
- * @param storefrontId Storefront identifier.
99
- * @param tenantId (optional) Tenant identifier.
100
- * @return Success
101
- */
102
- getProductConfig(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Observable<string>;
103
137
  /**
104
138
  * Returns a product cost details from ecommerce system.
105
139
  * @param reference Product reference - external reference to Customer's Canvas product product specification, e.g online store product identifier.
@@ -112,6 +146,20 @@ export interface IProductReferencesApiClient {
112
146
  * @return Success
113
147
  */
114
148
  getProductCostDetails(reference: string | null, sku: string, storefrontId: number, storefrontUserId?: string | null | undefined, currencyCode?: string | null | undefined, quantity?: number | undefined, tenantId?: number | null | undefined): Observable<ProductCostDetailsDto>;
149
+ /**
150
+ * Returns a product personalization workflow description by product specification identifier.
151
+ * @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
152
+ * @param storefrontId (optional) Storefront identifier.
153
+ * @param tenantId (optional) Tenant identifier.
154
+ * @return Success
155
+ */
156
+ getPersonalizationWorkflow(reference: string | null, storefrontId?: number | undefined, tenantId?: number | null | undefined): Observable<PersonalizationWorkflowDto>;
157
+ /**
158
+ * @param tenantId (optional)
159
+ * @return Success
160
+ * @deprecated
161
+ */
162
+ getProductConfig(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Observable<string>;
115
163
  }
116
164
  export declare class ProductReferencesApiClient extends ApiClientBase implements IProductReferencesApiClient {
117
165
  private http;
@@ -168,15 +216,6 @@ export declare class ProductReferencesApiClient extends ApiClientBase implements
168
216
  */
169
217
  getProductSpecification(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Observable<ProductSpecificationDto>;
170
218
  protected processGetProductSpecification(response: HttpResponseBase): Observable<ProductSpecificationDto>;
171
- /**
172
- * Returns a product personalization workflow configuration by storefront product reference.
173
- * @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
174
- * @param storefrontId Storefront identifier.
175
- * @param tenantId (optional) Tenant identifier.
176
- * @return Success
177
- */
178
- getProductConfig(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Observable<string>;
179
- protected processGetProductConfig(response: HttpResponseBase): Observable<string>;
180
219
  /**
181
220
  * Returns a product cost details from ecommerce system.
182
221
  * @param reference Product reference - external reference to Customer's Canvas product product specification, e.g online store product identifier.
@@ -190,6 +229,22 @@ export declare class ProductReferencesApiClient extends ApiClientBase implements
190
229
  */
191
230
  getProductCostDetails(reference: string | null, sku: string, storefrontId: number, storefrontUserId?: string | null | undefined, currencyCode?: string | null | undefined, quantity?: number | undefined, tenantId?: number | null | undefined): Observable<ProductCostDetailsDto>;
192
231
  protected processGetProductCostDetails(response: HttpResponseBase): Observable<ProductCostDetailsDto>;
232
+ /**
233
+ * Returns a product personalization workflow description by product specification identifier.
234
+ * @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
235
+ * @param storefrontId (optional) Storefront identifier.
236
+ * @param tenantId (optional) Tenant identifier.
237
+ * @return Success
238
+ */
239
+ getPersonalizationWorkflow(reference: string | null, storefrontId?: number | undefined, tenantId?: number | null | undefined): Observable<PersonalizationWorkflowDto>;
240
+ protected processGetPersonalizationWorkflow(response: HttpResponseBase): Observable<PersonalizationWorkflowDto>;
241
+ /**
242
+ * @param tenantId (optional)
243
+ * @return Success
244
+ * @deprecated
245
+ */
246
+ getProductConfig(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Observable<string>;
247
+ protected processGetProductConfig(response: HttpResponseBase): Observable<string>;
193
248
  }
194
249
  export interface IProductSpecificationsApiClient {
195
250
  /**
@@ -210,11 +265,17 @@ export interface IProductSpecificationsApiClient {
210
265
  */
211
266
  get(id: number, tenantId?: number | null | undefined): Observable<ProductSpecificationDto>;
212
267
  /**
213
- * Returns a product personlization workflow configuration by product specification identifier.
268
+ * Returns a product personalization workflow description by product specification identifier.
214
269
  * @param id Product specification identifier.
215
270
  * @param tenantId (optional) Tenant identifier.
216
271
  * @return Success
217
272
  */
273
+ getPersonalizationWorkflow(id: number, tenantId?: number | null | undefined): Observable<PersonalizationWorkflowDto>;
274
+ /**
275
+ * @param tenantId (optional)
276
+ * @return Success
277
+ * @deprecated
278
+ */
218
279
  getConfiguration(id: number, tenantId?: number | null | undefined): Observable<string>;
219
280
  }
220
281
  export declare class ProductSpecificationsApiClient extends ApiClientBase implements IProductSpecificationsApiClient {
@@ -242,11 +303,18 @@ export declare class ProductSpecificationsApiClient extends ApiClientBase implem
242
303
  get(id: number, tenantId?: number | null | undefined): Observable<ProductSpecificationDto>;
243
304
  protected processGet(response: HttpResponseBase): Observable<ProductSpecificationDto>;
244
305
  /**
245
- * Returns a product personlization workflow configuration by product specification identifier.
306
+ * Returns a product personalization workflow description by product specification identifier.
246
307
  * @param id Product specification identifier.
247
308
  * @param tenantId (optional) Tenant identifier.
248
309
  * @return Success
249
310
  */
311
+ getPersonalizationWorkflow(id: number, tenantId?: number | null | undefined): Observable<PersonalizationWorkflowDto>;
312
+ protected processGetPersonalizationWorkflow(response: HttpResponseBase): Observable<PersonalizationWorkflowDto>;
313
+ /**
314
+ * @param tenantId (optional)
315
+ * @return Success
316
+ * @deprecated
317
+ */
250
318
  getConfiguration(id: number, tenantId?: number | null | undefined): Observable<string>;
251
319
  protected processGetConfiguration(response: HttpResponseBase): Observable<string>;
252
320
  }
@@ -262,11 +330,12 @@ export interface IProjectsApiClient {
262
330
  * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
263
331
  * @param search (optional) Search string for partial match.
264
332
  * @param orderId (optional) Identifier of corresponding order.
333
+ * @param processingStatus (optional) Project processing status filter.
265
334
  * @param storefrontId (optional) Storefront identifier.
266
335
  * @param tenantId (optional) Tenant identifier.
267
336
  * @return Success
268
337
  */
269
- 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, storefrontId?: number | null | undefined, tenantId?: number | null | undefined): Observable<PagedOfProjectDto>;
338
+ 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): Observable<PagedOfProjectDto>;
270
339
  /**
271
340
  * Creates a new project.
272
341
  * @param storefrontId Storefront identifier.
@@ -311,6 +380,14 @@ export interface IProjectsApiClient {
311
380
  * @return Success
312
381
  */
313
382
  createByRenderHiResScenario(storefrontId: number, tenantId?: number | null | undefined, body?: CreateProjectByRenderHiResScenarioDto | null | undefined): Observable<ProjectDto>;
383
+ /**
384
+ * Creates a new project by 'Specific Pipeline' scenario.
385
+ * @param storefrontId Storefront identifier.
386
+ * @param tenantId (optional) Tenant identifier.
387
+ * @param body (optional) Create operation parameters.
388
+ * @return Success
389
+ */
390
+ createBySpecificPipelineScenario(storefrontId: number, tenantId?: number | null | undefined, body?: CreateProjectBySpecificPipelineScenarioDto | null | undefined): Observable<ProjectDto>;
314
391
  /**
315
392
  * Returns all available status transitions for a project.
316
393
  * @param id Project identifier.
@@ -420,11 +497,12 @@ export declare class ProjectsApiClient extends ApiClientBase implements IProject
420
497
  * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
421
498
  * @param search (optional) Search string for partial match.
422
499
  * @param orderId (optional) Identifier of corresponding order.
500
+ * @param processingStatus (optional) Project processing status filter.
423
501
  * @param storefrontId (optional) Storefront identifier.
424
502
  * @param tenantId (optional) Tenant identifier.
425
503
  * @return Success
426
504
  */
427
- 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, storefrontId?: number | null | undefined, tenantId?: number | null | undefined): Observable<PagedOfProjectDto>;
505
+ 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): Observable<PagedOfProjectDto>;
428
506
  protected processGetAll(response: HttpResponseBase): Observable<PagedOfProjectDto>;
429
507
  /**
430
508
  * Creates a new project.
@@ -476,6 +554,15 @@ export declare class ProjectsApiClient extends ApiClientBase implements IProject
476
554
  */
477
555
  createByRenderHiResScenario(storefrontId: number, tenantId?: number | null | undefined, body?: CreateProjectByRenderHiResScenarioDto | null | undefined): Observable<ProjectDto>;
478
556
  protected processCreateByRenderHiResScenario(response: HttpResponseBase): Observable<ProjectDto>;
557
+ /**
558
+ * Creates a new project by 'Specific Pipeline' scenario.
559
+ * @param storefrontId Storefront identifier.
560
+ * @param tenantId (optional) Tenant identifier.
561
+ * @param body (optional) Create operation parameters.
562
+ * @return Success
563
+ */
564
+ createBySpecificPipelineScenario(storefrontId: number, tenantId?: number | null | undefined, body?: CreateProjectBySpecificPipelineScenarioDto | null | undefined): Observable<ProjectDto>;
565
+ protected processCreateBySpecificPipelineScenario(response: HttpResponseBase): Observable<ProjectDto>;
479
566
  /**
480
567
  * Returns all available status transitions for a project.
481
568
  * @param id Project identifier.
@@ -803,6 +890,29 @@ export interface BuildInfoModel {
803
890
  /** Service name. */
804
891
  appName?: string | null;
805
892
  }
893
+ /** Dto class, containing information about processing pipeline details. */
894
+ export interface ProcessingPipelineDto {
895
+ /** Processing pipeline identifier. */
896
+ id?: number;
897
+ /** Processing pipeline name. */
898
+ name?: string | null;
899
+ /** Processing pipeline content. */
900
+ content?: string | null;
901
+ }
902
+ /** Paged list of items. */
903
+ export interface PagedOfProcessingPipelineDto {
904
+ /** Items count. */
905
+ total?: number;
906
+ /** Items list. */
907
+ items?: ProcessingPipelineDto[] | null;
908
+ }
909
+ export interface ProblemDetails {
910
+ type?: string | null;
911
+ title?: string | null;
912
+ status?: number | null;
913
+ detail?: string | null;
914
+ instance?: string | null;
915
+ }
806
916
  /** Dto class, containing information about storefront product reference. */
807
917
  export interface ProductReferenceDto {
808
918
  /** Product reference is an external reference to Customer's Canvas product specification, e.g online store product identifier. */
@@ -830,13 +940,6 @@ export interface CreateProductReferenceDto {
830
940
  /** Customer's Canvas product specification identifier. */
831
941
  productSpecificationId: number;
832
942
  }
833
- export interface ProblemDetails {
834
- type?: string | null;
835
- title?: string | null;
836
- status?: number | null;
837
- detail?: string | null;
838
- instance?: string | null;
839
- }
840
943
  /** Dto class, containing information about product attribute. */
841
944
  export interface ProductAttributeDto {
842
945
  /** Product attribute name. */
@@ -860,6 +963,10 @@ export interface ProductSpecificationDto {
860
963
  created?: string;
861
964
  /** Product specification modification time. */
862
965
  lastModified?: string | null;
966
+ /** Personalization workflow identifier. */
967
+ personalizationWorkflowId?: number;
968
+ /** Processing pipeline identifier. */
969
+ processingPipelineId?: number;
863
970
  }
864
971
  /** Dto class, containing information about storefront product cost details. */
865
972
  export interface ProductCostDetailsDto {
@@ -880,6 +987,22 @@ export interface ProductCostDetailsDto {
880
987
  /** Tenant identifier. */
881
988
  tenantId?: number;
882
989
  }
990
+ /** Type of editor that should be configured by workflow. */
991
+ export declare enum WorkflowType {
992
+ UIFramework = "UIFramework",
993
+ SimpleEditor = "SimpleEditor",
994
+ DesignEditor = "DesignEditor",
995
+ HandyEditor = "HandyEditor"
996
+ }
997
+ /** Personalization workflow description DTO. */
998
+ export interface PersonalizationWorkflowDto {
999
+ /** Workflow identifier. */
1000
+ id?: number;
1001
+ /** Processed workflow JSON. */
1002
+ content?: string | null;
1003
+ /** Workflow type. */
1004
+ workflowType?: WorkflowType;
1005
+ }
883
1006
  /** Paged list of items. */
884
1007
  export interface PagedOfProductSpecificationDto {
885
1008
  /** Items count. */
@@ -894,6 +1017,13 @@ export declare enum DatePeriod {
894
1017
  Last7Days = "Last7Days",
895
1018
  Last30Days = "Last30Days"
896
1019
  }
1020
+ /** Available project processing statuses. */
1021
+ export declare enum ProjectProcessingStatus {
1022
+ Pending = "Pending",
1023
+ InProgress = "InProgress",
1024
+ Completed = "Completed",
1025
+ Failed = "Failed"
1026
+ }
897
1027
  /** Available product resource types */
898
1028
  export declare enum ProjectItemResourceType {
899
1029
  General = "General",
@@ -966,6 +1096,8 @@ export interface ProjectDto {
966
1096
  lastModified?: string | null;
967
1097
  /** Description of the project. */
968
1098
  description?: string | null;
1099
+ /** Project processing status. */
1100
+ processingStatus?: ProjectProcessingStatus;
969
1101
  }
970
1102
  /** Paged list of items. */
971
1103
  export interface PagedOfProjectDto {
@@ -985,7 +1117,7 @@ export interface ProjectItemResourceParametersDto {
985
1117
  /** Original resource identifier. */
986
1118
  resourceId?: string | null;
987
1119
  }
988
- /** Dto class, containing create operation paramters for a project item. */
1120
+ /** Dto class, containing create operation parameters for a project item. */
989
1121
  export interface ProjectItemParametersDto {
990
1122
  /** Item name. */
991
1123
  name?: string | null;
@@ -1065,7 +1197,7 @@ export declare enum RenderHiResScenarioOutputFlipMode {
1065
1197
  Vertical = "Vertical",
1066
1198
  Both = "Both"
1067
1199
  }
1068
- /** Dto class, containing 'RenderHiRes' scenario paramters. */
1200
+ /** Dto class, containing 'RenderHiRes' scenario parameters. */
1069
1201
  export interface RenderHiResScenarioDto {
1070
1202
  /** Private design identifier. */
1071
1203
  designId: string;
@@ -1095,6 +1227,26 @@ export interface CreateProjectByRenderHiResScenarioDto {
1095
1227
  /** List of project items. */
1096
1228
  scenario: RenderHiResScenarioDto;
1097
1229
  }
1230
+ /** Dto class, containing 'Specific Pipeline' scenario parameters. */
1231
+ export interface SpecificPipelineScenarioDto {
1232
+ /** An existing processing pipeline identifier. */
1233
+ pipelineId?: number;
1234
+ }
1235
+ /** Dto class, containing 'create' operation parameters for a new project that should be created by executing 'Specific Pipeline' scenario. <seealso cref="T:BackOffice.Web.PublicApi.ApiStorefront.Models.CreateProjectDto" /> */
1236
+ export interface CreateProjectBySpecificPipelineScenarioDto {
1237
+ /** Project owner identifier. */
1238
+ ownerId: string;
1239
+ /** Project name. */
1240
+ name?: string | null;
1241
+ /** Description of the project. */
1242
+ description?: string | null;
1243
+ /** Ecommerce system order description. */
1244
+ orderDetails?: OrderDetailsDto | null;
1245
+ /** List of project items. */
1246
+ items?: ProjectItemParametersDto[] | null;
1247
+ /** 'Specific Pipeline' scenario params. <seealso cref="T:BackOffice.Web.PublicApi.ApiStorefront.Models.SpecificPipelineScenarioDto" /> */
1248
+ scenario: SpecificPipelineScenarioDto;
1249
+ }
1098
1250
  /** Project transition dto class. */
1099
1251
  export interface ProjectTransitionDto {
1100
1252
  /** Transition identifying name. */
@@ -1137,13 +1289,6 @@ export interface ProjectPdfResultDto {
1137
1289
  /** Project pdf url. */
1138
1290
  url?: string | null;
1139
1291
  }
1140
- /** Available project processing statuses. */
1141
- export declare enum ProjectProcessingStatus {
1142
- Pending = "Pending",
1143
- InProgress = "InProgress",
1144
- Completed = "Completed",
1145
- Failed = "Failed"
1146
- }
1147
1292
  /** Dto class, containing description of a project output file. */
1148
1293
  export interface ProjectOutputFileDetailsDto {
1149
1294
  /** Project output file URL. */
@@ -1258,6 +1403,8 @@ export interface TenantApplicationsInfoDto {
1258
1403
  uiFrameworkUrl?: string | null;
1259
1404
  /** An url to the 'Simple editor'. */
1260
1405
  simpleEditorUrl?: string | null;
1406
+ /** An url to the 'Handy editor'. */
1407
+ handyEditorUrl?: string | null;
1261
1408
  /** An url to the 'Preflight' tenant application. */
1262
1409
  preflightUrl?: string | null;
1263
1410
  /** An url to the 'Dynamic Image' tenant application. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurigma/ng-storefront-api-client",
3
- "version": "2.38.2",
3
+ "version": "2.40.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)",