@aurigma/axios-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.
@@ -43,6 +43,48 @@ export declare class BuildInfoApiClient extends ApiClientBase implements IBuildI
43
43
  getInfo(cancelToken?: CancelToken | undefined): Promise<BuildInfoModel>;
44
44
  protected processGetInfo(response: AxiosResponse): Promise<BuildInfoModel>;
45
45
  }
46
+ export interface IProcessingPipelinesApiClient {
47
+ /**
48
+ * Returns all processing pipelines relevant to the specified query parameters.
49
+ * @param skip (optional) Defines page start offset from beginning of sorted result list.
50
+ * @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
51
+ * @param search (optional) Search string for partial by processing pipeline name.
52
+ * @param tenantId (optional) Tenant identifier.
53
+ * @return Success
54
+ */
55
+ getAll(skip?: number | null | undefined, take?: number | null | undefined, search?: string | null | undefined, tenantId?: number | null | undefined): Promise<PagedOfProcessingPipelineDto>;
56
+ /**
57
+ * Returns a processing pipeline.
58
+ * @param id Processing pipeline identifier..
59
+ * @param tenantId (optional) Tenant identifier.
60
+ * @return Success
61
+ */
62
+ get(id: number, tenantId?: number | null | undefined): Promise<ProcessingPipelineDto>;
63
+ }
64
+ export declare class ProcessingPipelinesApiClient extends ApiClientBase implements IProcessingPipelinesApiClient {
65
+ private instance;
66
+ private baseUrl;
67
+ protected jsonParseReviver: ((key: string, value: any) => any) | undefined;
68
+ constructor(configuration: ApiClientConfiguration, baseUrl?: string, instance?: AxiosInstance);
69
+ /**
70
+ * Returns all processing pipelines relevant to the specified query parameters.
71
+ * @param skip (optional) Defines page start offset from beginning of sorted result list.
72
+ * @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
73
+ * @param search (optional) Search string for partial by processing pipeline name.
74
+ * @param tenantId (optional) Tenant identifier.
75
+ * @return Success
76
+ */
77
+ getAll(skip?: number | null | undefined, take?: number | null | undefined, search?: string | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PagedOfProcessingPipelineDto>;
78
+ protected processGetAll(response: AxiosResponse): Promise<PagedOfProcessingPipelineDto>;
79
+ /**
80
+ * Returns a processing pipeline.
81
+ * @param id Processing pipeline identifier..
82
+ * @param tenantId (optional) Tenant identifier.
83
+ * @return Success
84
+ */
85
+ get(id: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProcessingPipelineDto>;
86
+ protected processGet(response: AxiosResponse): Promise<ProcessingPipelineDto>;
87
+ }
46
88
  export interface IProductReferencesApiClient {
47
89
  /**
48
90
  * Returns all storefront product references relevant to the specified query parameters.
@@ -89,14 +131,6 @@ export interface IProductReferencesApiClient {
89
131
  * @return Success
90
132
  */
91
133
  getProductSpecification(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Promise<ProductSpecificationDto>;
92
- /**
93
- * Returns a product personalization workflow configuration by storefront product reference.
94
- * @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
95
- * @param storefrontId Storefront identifier.
96
- * @param tenantId (optional) Tenant identifier.
97
- * @return Success
98
- */
99
- getProductConfig(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Promise<string>;
100
134
  /**
101
135
  * Returns a product cost details from ecommerce system.
102
136
  * @param reference Product reference - external reference to Customer's Canvas product product specification, e.g online store product identifier.
@@ -109,6 +143,20 @@ export interface IProductReferencesApiClient {
109
143
  * @return Success
110
144
  */
111
145
  getProductCostDetails(reference: string | null, sku: string, storefrontId: number, storefrontUserId?: string | null | undefined, currencyCode?: string | null | undefined, quantity?: number | undefined, tenantId?: number | null | undefined): Promise<ProductCostDetailsDto>;
146
+ /**
147
+ * Returns a product personalization workflow description by product specification identifier.
148
+ * @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
149
+ * @param storefrontId (optional) Storefront identifier.
150
+ * @param tenantId (optional) Tenant identifier.
151
+ * @return Success
152
+ */
153
+ getPersonalizationWorkflow(reference: string | null, storefrontId?: number | undefined, tenantId?: number | null | undefined): Promise<PersonalizationWorkflowDto>;
154
+ /**
155
+ * @param tenantId (optional)
156
+ * @return Success
157
+ * @deprecated
158
+ */
159
+ getProductConfig(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Promise<string>;
112
160
  }
113
161
  export declare class ProductReferencesApiClient extends ApiClientBase implements IProductReferencesApiClient {
114
162
  private instance;
@@ -165,15 +213,6 @@ export declare class ProductReferencesApiClient extends ApiClientBase implements
165
213
  */
166
214
  getProductSpecification(reference: string | null, storefrontId: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProductSpecificationDto>;
167
215
  protected processGetProductSpecification(response: AxiosResponse): Promise<ProductSpecificationDto>;
168
- /**
169
- * Returns a product personalization workflow configuration by storefront product reference.
170
- * @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
171
- * @param storefrontId Storefront identifier.
172
- * @param tenantId (optional) Tenant identifier.
173
- * @return Success
174
- */
175
- getProductConfig(reference: string | null, storefrontId: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<string>;
176
- protected processGetProductConfig(response: AxiosResponse): Promise<string>;
177
216
  /**
178
217
  * Returns a product cost details from ecommerce system.
179
218
  * @param reference Product reference - external reference to Customer's Canvas product product specification, e.g online store product identifier.
@@ -187,6 +226,22 @@ export declare class ProductReferencesApiClient extends ApiClientBase implements
187
226
  */
188
227
  getProductCostDetails(reference: string | null, sku: string, storefrontId: number, storefrontUserId?: string | null | undefined, currencyCode?: string | null | undefined, quantity?: number | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProductCostDetailsDto>;
189
228
  protected processGetProductCostDetails(response: AxiosResponse): Promise<ProductCostDetailsDto>;
229
+ /**
230
+ * Returns a product personalization workflow description by product specification identifier.
231
+ * @param reference Product reference - external reference to Customer's Canvas product specification, e.g online store product identifier.
232
+ * @param storefrontId (optional) Storefront identifier.
233
+ * @param tenantId (optional) Tenant identifier.
234
+ * @return Success
235
+ */
236
+ getPersonalizationWorkflow(reference: string | null, storefrontId?: number | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PersonalizationWorkflowDto>;
237
+ protected processGetPersonalizationWorkflow(response: AxiosResponse): Promise<PersonalizationWorkflowDto>;
238
+ /**
239
+ * @param tenantId (optional)
240
+ * @return Success
241
+ * @deprecated
242
+ */
243
+ getProductConfig(reference: string | null, storefrontId: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<string>;
244
+ protected processGetProductConfig(response: AxiosResponse): Promise<string>;
190
245
  }
191
246
  export interface IProductSpecificationsApiClient {
192
247
  /**
@@ -207,11 +262,17 @@ export interface IProductSpecificationsApiClient {
207
262
  */
208
263
  get(id: number, tenantId?: number | null | undefined): Promise<ProductSpecificationDto>;
209
264
  /**
210
- * Returns a product personlization workflow configuration by product specification identifier.
265
+ * Returns a product personalization workflow description by product specification identifier.
211
266
  * @param id Product specification identifier.
212
267
  * @param tenantId (optional) Tenant identifier.
213
268
  * @return Success
214
269
  */
270
+ getPersonalizationWorkflow(id: number, tenantId?: number | null | undefined): Promise<PersonalizationWorkflowDto>;
271
+ /**
272
+ * @param tenantId (optional)
273
+ * @return Success
274
+ * @deprecated
275
+ */
215
276
  getConfiguration(id: number, tenantId?: number | null | undefined): Promise<string>;
216
277
  }
217
278
  export declare class ProductSpecificationsApiClient extends ApiClientBase implements IProductSpecificationsApiClient {
@@ -239,11 +300,18 @@ export declare class ProductSpecificationsApiClient extends ApiClientBase implem
239
300
  get(id: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProductSpecificationDto>;
240
301
  protected processGet(response: AxiosResponse): Promise<ProductSpecificationDto>;
241
302
  /**
242
- * Returns a product personlization workflow configuration by product specification identifier.
303
+ * Returns a product personalization workflow description by product specification identifier.
243
304
  * @param id Product specification identifier.
244
305
  * @param tenantId (optional) Tenant identifier.
245
306
  * @return Success
246
307
  */
308
+ getPersonalizationWorkflow(id: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PersonalizationWorkflowDto>;
309
+ protected processGetPersonalizationWorkflow(response: AxiosResponse): Promise<PersonalizationWorkflowDto>;
310
+ /**
311
+ * @param tenantId (optional)
312
+ * @return Success
313
+ * @deprecated
314
+ */
247
315
  getConfiguration(id: number, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<string>;
248
316
  protected processGetConfiguration(response: AxiosResponse): Promise<string>;
249
317
  }
@@ -259,11 +327,12 @@ export interface IProjectsApiClient {
259
327
  * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
260
328
  * @param search (optional) Search string for partial match.
261
329
  * @param orderId (optional) Identifier of corresponding order.
330
+ * @param processingStatus (optional) Project processing status filter.
262
331
  * @param storefrontId (optional) Storefront identifier.
263
332
  * @param tenantId (optional) Tenant identifier.
264
333
  * @return Success
265
334
  */
266
- 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): Promise<PagedOfProjectDto>;
335
+ 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>;
267
336
  /**
268
337
  * Creates a new project.
269
338
  * @param storefrontId Storefront identifier.
@@ -308,6 +377,14 @@ export interface IProjectsApiClient {
308
377
  * @return Success
309
378
  */
310
379
  createByRenderHiResScenario(storefrontId: number, tenantId?: number | null | undefined, body?: CreateProjectByRenderHiResScenarioDto | null | undefined): Promise<ProjectDto>;
380
+ /**
381
+ * Creates a new project by 'Specific Pipeline' scenario.
382
+ * @param storefrontId Storefront identifier.
383
+ * @param tenantId (optional) Tenant identifier.
384
+ * @param body (optional) Create operation parameters.
385
+ * @return Success
386
+ */
387
+ createBySpecificPipelineScenario(storefrontId: number, tenantId?: number | null | undefined, body?: CreateProjectBySpecificPipelineScenarioDto | null | undefined): Promise<ProjectDto>;
311
388
  /**
312
389
  * Returns all available status transitions for a project.
313
390
  * @param id Project identifier.
@@ -417,11 +494,12 @@ export declare class ProjectsApiClient extends ApiClientBase implements IProject
417
494
  * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
418
495
  * @param search (optional) Search string for partial match.
419
496
  * @param orderId (optional) Identifier of corresponding order.
497
+ * @param processingStatus (optional) Project processing status filter.
420
498
  * @param storefrontId (optional) Storefront identifier.
421
499
  * @param tenantId (optional) Tenant identifier.
422
500
  * @return Success
423
501
  */
424
- 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, cancelToken?: CancelToken | undefined): Promise<PagedOfProjectDto>;
502
+ 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>;
425
503
  protected processGetAll(response: AxiosResponse): Promise<PagedOfProjectDto>;
426
504
  /**
427
505
  * Creates a new project.
@@ -473,6 +551,15 @@ export declare class ProjectsApiClient extends ApiClientBase implements IProject
473
551
  */
474
552
  createByRenderHiResScenario(storefrontId: number, tenantId?: number | null | undefined, body?: CreateProjectByRenderHiResScenarioDto | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProjectDto>;
475
553
  protected processCreateByRenderHiResScenario(response: AxiosResponse): Promise<ProjectDto>;
554
+ /**
555
+ * Creates a new project by 'Specific Pipeline' scenario.
556
+ * @param storefrontId Storefront identifier.
557
+ * @param tenantId (optional) Tenant identifier.
558
+ * @param body (optional) Create operation parameters.
559
+ * @return Success
560
+ */
561
+ createBySpecificPipelineScenario(storefrontId: number, tenantId?: number | null | undefined, body?: CreateProjectBySpecificPipelineScenarioDto | null | undefined, cancelToken?: CancelToken | undefined): Promise<ProjectDto>;
562
+ protected processCreateBySpecificPipelineScenario(response: AxiosResponse): Promise<ProjectDto>;
476
563
  /**
477
564
  * Returns all available status transitions for a project.
478
565
  * @param id Project identifier.
@@ -800,6 +887,29 @@ export interface BuildInfoModel {
800
887
  /** Service name. */
801
888
  appName?: string | null;
802
889
  }
890
+ /** Dto class, containing information about processing pipeline details. */
891
+ export interface ProcessingPipelineDto {
892
+ /** Processing pipeline identifier. */
893
+ id?: number;
894
+ /** Processing pipeline name. */
895
+ name?: string | null;
896
+ /** Processing pipeline content. */
897
+ content?: string | null;
898
+ }
899
+ /** Paged list of items. */
900
+ export interface PagedOfProcessingPipelineDto {
901
+ /** Items count. */
902
+ total?: number;
903
+ /** Items list. */
904
+ items?: ProcessingPipelineDto[] | null;
905
+ }
906
+ export interface ProblemDetails {
907
+ type?: string | null;
908
+ title?: string | null;
909
+ status?: number | null;
910
+ detail?: string | null;
911
+ instance?: string | null;
912
+ }
803
913
  /** Dto class, containing information about storefront product reference. */
804
914
  export interface ProductReferenceDto {
805
915
  /** Product reference is an external reference to Customer's Canvas product specification, e.g online store product identifier. */
@@ -827,13 +937,6 @@ export interface CreateProductReferenceDto {
827
937
  /** Customer's Canvas product specification identifier. */
828
938
  productSpecificationId: number;
829
939
  }
830
- export interface ProblemDetails {
831
- type?: string | null;
832
- title?: string | null;
833
- status?: number | null;
834
- detail?: string | null;
835
- instance?: string | null;
836
- }
837
940
  /** Dto class, containing information about product attribute. */
838
941
  export interface ProductAttributeDto {
839
942
  /** Product attribute name. */
@@ -857,6 +960,10 @@ export interface ProductSpecificationDto {
857
960
  created?: string;
858
961
  /** Product specification modification time. */
859
962
  lastModified?: string | null;
963
+ /** Personalization workflow identifier. */
964
+ personalizationWorkflowId?: number;
965
+ /** Processing pipeline identifier. */
966
+ processingPipelineId?: number;
860
967
  }
861
968
  /** Dto class, containing information about storefront product cost details. */
862
969
  export interface ProductCostDetailsDto {
@@ -877,6 +984,22 @@ export interface ProductCostDetailsDto {
877
984
  /** Tenant identifier. */
878
985
  tenantId?: number;
879
986
  }
987
+ /** Type of editor that should be configured by workflow. */
988
+ export declare enum WorkflowType {
989
+ UIFramework = "UIFramework",
990
+ SimpleEditor = "SimpleEditor",
991
+ DesignEditor = "DesignEditor",
992
+ HandyEditor = "HandyEditor"
993
+ }
994
+ /** Personalization workflow description DTO. */
995
+ export interface PersonalizationWorkflowDto {
996
+ /** Workflow identifier. */
997
+ id?: number;
998
+ /** Processed workflow JSON. */
999
+ content?: string | null;
1000
+ /** Workflow type. */
1001
+ workflowType?: WorkflowType;
1002
+ }
880
1003
  /** Paged list of items. */
881
1004
  export interface PagedOfProductSpecificationDto {
882
1005
  /** Items count. */
@@ -891,6 +1014,13 @@ export declare enum DatePeriod {
891
1014
  Last7Days = "Last7Days",
892
1015
  Last30Days = "Last30Days"
893
1016
  }
1017
+ /** Available project processing statuses. */
1018
+ export declare enum ProjectProcessingStatus {
1019
+ Pending = "Pending",
1020
+ InProgress = "InProgress",
1021
+ Completed = "Completed",
1022
+ Failed = "Failed"
1023
+ }
894
1024
  /** Available product resource types */
895
1025
  export declare enum ProjectItemResourceType {
896
1026
  General = "General",
@@ -963,6 +1093,8 @@ export interface ProjectDto {
963
1093
  lastModified?: string | null;
964
1094
  /** Description of the project. */
965
1095
  description?: string | null;
1096
+ /** Project processing status. */
1097
+ processingStatus?: ProjectProcessingStatus;
966
1098
  }
967
1099
  /** Paged list of items. */
968
1100
  export interface PagedOfProjectDto {
@@ -982,7 +1114,7 @@ export interface ProjectItemResourceParametersDto {
982
1114
  /** Original resource identifier. */
983
1115
  resourceId?: string | null;
984
1116
  }
985
- /** Dto class, containing create operation paramters for a project item. */
1117
+ /** Dto class, containing create operation parameters for a project item. */
986
1118
  export interface ProjectItemParametersDto {
987
1119
  /** Item name. */
988
1120
  name?: string | null;
@@ -1062,7 +1194,7 @@ export declare enum RenderHiResScenarioOutputFlipMode {
1062
1194
  Vertical = "Vertical",
1063
1195
  Both = "Both"
1064
1196
  }
1065
- /** Dto class, containing 'RenderHiRes' scenario paramters. */
1197
+ /** Dto class, containing 'RenderHiRes' scenario parameters. */
1066
1198
  export interface RenderHiResScenarioDto {
1067
1199
  /** Private design identifier. */
1068
1200
  designId: string;
@@ -1092,6 +1224,26 @@ export interface CreateProjectByRenderHiResScenarioDto {
1092
1224
  /** List of project items. */
1093
1225
  scenario: RenderHiResScenarioDto;
1094
1226
  }
1227
+ /** Dto class, containing 'Specific Pipeline' scenario parameters. */
1228
+ export interface SpecificPipelineScenarioDto {
1229
+ /** An existing processing pipeline identifier. */
1230
+ pipelineId?: number;
1231
+ }
1232
+ /** 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" /> */
1233
+ export interface CreateProjectBySpecificPipelineScenarioDto {
1234
+ /** Project owner identifier. */
1235
+ ownerId: string;
1236
+ /** Project name. */
1237
+ name?: string | null;
1238
+ /** Description of the project. */
1239
+ description?: string | null;
1240
+ /** Ecommerce system order description. */
1241
+ orderDetails?: OrderDetailsDto | null;
1242
+ /** List of project items. */
1243
+ items?: ProjectItemParametersDto[] | null;
1244
+ /** 'Specific Pipeline' scenario params. <seealso cref="T:BackOffice.Web.PublicApi.ApiStorefront.Models.SpecificPipelineScenarioDto" /> */
1245
+ scenario: SpecificPipelineScenarioDto;
1246
+ }
1095
1247
  /** Project transition dto class. */
1096
1248
  export interface ProjectTransitionDto {
1097
1249
  /** Transition identifying name. */
@@ -1134,13 +1286,6 @@ export interface ProjectPdfResultDto {
1134
1286
  /** Project pdf url. */
1135
1287
  url?: string | null;
1136
1288
  }
1137
- /** Available project processing statuses. */
1138
- export declare enum ProjectProcessingStatus {
1139
- Pending = "Pending",
1140
- InProgress = "InProgress",
1141
- Completed = "Completed",
1142
- Failed = "Failed"
1143
- }
1144
1289
  /** Dto class, containing description of a project output file. */
1145
1290
  export interface ProjectOutputFileDetailsDto {
1146
1291
  /** Project output file URL. */
@@ -1255,6 +1400,8 @@ export interface TenantApplicationsInfoDto {
1255
1400
  uiFrameworkUrl?: string | null;
1256
1401
  /** An url to the 'Simple editor'. */
1257
1402
  simpleEditorUrl?: string | null;
1403
+ /** An url to the 'Handy editor'. */
1404
+ handyEditorUrl?: string | null;
1258
1405
  /** An url to the 'Preflight' tenant application. */
1259
1406
  preflightUrl?: string | null;
1260
1407
  /** An url to the 'Dynamic Image' tenant application. */