@aurigma/ng-storefront-api-client 2.39.1 → 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.
- package/aurigma-ng-storefront-api-client.metadata.json +1 -1
- package/bundles/aurigma-ng-storefront-api-client.umd.js +583 -186
- 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 +380 -37
- package/fesm2015/aurigma-ng-storefront-api-client.js +380 -37
- package/fesm2015/aurigma-ng-storefront-api-client.js.map +1 -1
- package/lib/storefront-api-client.d.ts +130 -26
- package/package.json +1 -1
|
@@ -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
|
|
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
|
|
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
|
}
|
|
@@ -822,6 +890,29 @@ export interface BuildInfoModel {
|
|
|
822
890
|
/** Service name. */
|
|
823
891
|
appName?: string | null;
|
|
824
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
|
+
}
|
|
825
916
|
/** Dto class, containing information about storefront product reference. */
|
|
826
917
|
export interface ProductReferenceDto {
|
|
827
918
|
/** Product reference is an external reference to Customer's Canvas product specification, e.g online store product identifier. */
|
|
@@ -849,13 +940,6 @@ export interface CreateProductReferenceDto {
|
|
|
849
940
|
/** Customer's Canvas product specification identifier. */
|
|
850
941
|
productSpecificationId: number;
|
|
851
942
|
}
|
|
852
|
-
export interface ProblemDetails {
|
|
853
|
-
type?: string | null;
|
|
854
|
-
title?: string | null;
|
|
855
|
-
status?: number | null;
|
|
856
|
-
detail?: string | null;
|
|
857
|
-
instance?: string | null;
|
|
858
|
-
}
|
|
859
943
|
/** Dto class, containing information about product attribute. */
|
|
860
944
|
export interface ProductAttributeDto {
|
|
861
945
|
/** Product attribute name. */
|
|
@@ -879,6 +963,10 @@ export interface ProductSpecificationDto {
|
|
|
879
963
|
created?: string;
|
|
880
964
|
/** Product specification modification time. */
|
|
881
965
|
lastModified?: string | null;
|
|
966
|
+
/** Personalization workflow identifier. */
|
|
967
|
+
personalizationWorkflowId?: number;
|
|
968
|
+
/** Processing pipeline identifier. */
|
|
969
|
+
processingPipelineId?: number;
|
|
882
970
|
}
|
|
883
971
|
/** Dto class, containing information about storefront product cost details. */
|
|
884
972
|
export interface ProductCostDetailsDto {
|
|
@@ -899,6 +987,22 @@ export interface ProductCostDetailsDto {
|
|
|
899
987
|
/** Tenant identifier. */
|
|
900
988
|
tenantId?: number;
|
|
901
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
|
+
}
|
|
902
1006
|
/** Paged list of items. */
|
|
903
1007
|
export interface PagedOfProductSpecificationDto {
|
|
904
1008
|
/** Items count. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aurigma/ng-storefront-api-client",
|
|
3
|
-
"version": "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)",
|