@aurigma/ng-storefront-api-client 2.16.1 → 2.17.17
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 +193 -75
- 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/aurigma-ng-storefront-api-client.js +1 -1
- package/esm2015/lib/storefront-api-client.js +108 -1
- package/esm2015/lib/storefront.module.js +1 -1
- package/esm2015/public-api.js +1 -1
- package/fesm2015/aurigma-ng-storefront-api-client.js +108 -1
- package/fesm2015/aurigma-ng-storefront-api-client.js.map +1 -1
- package/lib/storefront-api-client.d.ts +88 -1
- package/package.json +1 -1
|
@@ -100,6 +100,18 @@ export interface IProductReferencesApiClient {
|
|
|
100
100
|
* @return Success
|
|
101
101
|
*/
|
|
102
102
|
getProductConfig(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Observable<string>;
|
|
103
|
+
/**
|
|
104
|
+
* Returns a product cost details from ecommerce system.
|
|
105
|
+
* @param reference Product reference - external reference to Customer's Canvas product product specification, e.g online store product identifier.
|
|
106
|
+
* @param sku Product SKU.
|
|
107
|
+
* @param storefrontId Storefront identifier.
|
|
108
|
+
* @param storefrontUserId (optional) Storefront user identifier.
|
|
109
|
+
* @param currencyCode (optional) Product cost currency code.
|
|
110
|
+
* @param quantity (optional) Product quantity.
|
|
111
|
+
* @param tenantId (optional) Tenant identifier.
|
|
112
|
+
* @return Success
|
|
113
|
+
*/
|
|
114
|
+
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>;
|
|
103
115
|
}
|
|
104
116
|
export declare class ProductReferencesApiClient extends ApiClientBase implements IProductReferencesApiClient {
|
|
105
117
|
private http;
|
|
@@ -165,6 +177,19 @@ export declare class ProductReferencesApiClient extends ApiClientBase implements
|
|
|
165
177
|
*/
|
|
166
178
|
getProductConfig(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Observable<string>;
|
|
167
179
|
protected processGetProductConfig(response: HttpResponseBase): Observable<string>;
|
|
180
|
+
/**
|
|
181
|
+
* Returns a product cost details from ecommerce system.
|
|
182
|
+
* @param reference Product reference - external reference to Customer's Canvas product product specification, e.g online store product identifier.
|
|
183
|
+
* @param sku Product SKU.
|
|
184
|
+
* @param storefrontId Storefront identifier.
|
|
185
|
+
* @param storefrontUserId (optional) Storefront user identifier.
|
|
186
|
+
* @param currencyCode (optional) Product cost currency code.
|
|
187
|
+
* @param quantity (optional) Product quantity.
|
|
188
|
+
* @param tenantId (optional) Tenant identifier.
|
|
189
|
+
* @return Success
|
|
190
|
+
*/
|
|
191
|
+
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
|
+
protected processGetProductCostDetails(response: HttpResponseBase): Observable<ProductCostDetailsDto>;
|
|
168
193
|
}
|
|
169
194
|
export interface IProductSpecificationsApiClient {
|
|
170
195
|
/**
|
|
@@ -706,6 +731,25 @@ export interface ProductSpecificationDto {
|
|
|
706
731
|
/** Product specification modification time. */
|
|
707
732
|
lastModified?: string | null;
|
|
708
733
|
}
|
|
734
|
+
/** Dto class, containing information about storefront product cost details. */
|
|
735
|
+
export interface ProductCostDetailsDto {
|
|
736
|
+
/** Product reference is an external reference to Customer's Canvas product specification, e.g online store product identifier. */
|
|
737
|
+
productReference?: string | null;
|
|
738
|
+
/** Product SKU. */
|
|
739
|
+
productSku?: string | null;
|
|
740
|
+
/** Product quantity. */
|
|
741
|
+
productQuantity?: number;
|
|
742
|
+
/** Product price. */
|
|
743
|
+
productPrice?: number;
|
|
744
|
+
/** Product cost. */
|
|
745
|
+
productCost?: number;
|
|
746
|
+
/** Product discount. */
|
|
747
|
+
productDiscount?: number;
|
|
748
|
+
/** Currency code. */
|
|
749
|
+
currencyCode?: string | null;
|
|
750
|
+
/** Tenant identifier. */
|
|
751
|
+
tenantId?: number;
|
|
752
|
+
}
|
|
709
753
|
/** Paged list of items. */
|
|
710
754
|
export interface PagedOfProductSpecificationDto {
|
|
711
755
|
/** Items count. */
|
|
@@ -720,6 +764,20 @@ export declare enum DatePeriod {
|
|
|
720
764
|
Last7Days = "Last7Days",
|
|
721
765
|
Last30Days = "Last30Days"
|
|
722
766
|
}
|
|
767
|
+
/** Available product resource types */
|
|
768
|
+
export declare enum ProjectProductResourceType {
|
|
769
|
+
_0 = 0,
|
|
770
|
+
_1 = 1,
|
|
771
|
+
_2 = 2
|
|
772
|
+
}
|
|
773
|
+
/** Dto class, containing information about a project item resource. */
|
|
774
|
+
export interface ProjectItemResourceDto {
|
|
775
|
+
/** Resource ID. */
|
|
776
|
+
resourceId?: string | null;
|
|
777
|
+
/** Resource name. */
|
|
778
|
+
name?: string | null;
|
|
779
|
+
type?: ProjectProductResourceType;
|
|
780
|
+
}
|
|
723
781
|
/** Dto class, containing information about a project item. */
|
|
724
782
|
export interface ProjectItemDto {
|
|
725
783
|
/** Item name. */
|
|
@@ -736,6 +794,8 @@ export interface ProjectItemDto {
|
|
|
736
794
|
designIds?: string[] | null;
|
|
737
795
|
/** SKU. */
|
|
738
796
|
sku?: string | null;
|
|
797
|
+
/** External resources descriptions. */
|
|
798
|
+
resources?: ProjectItemResourceDto[] | null;
|
|
739
799
|
}
|
|
740
800
|
/** Dto class, containing information about a project. */
|
|
741
801
|
export interface ProjectDto {
|
|
@@ -783,6 +843,33 @@ export interface PagedOfProjectDto {
|
|
|
783
843
|
/** Items list. */
|
|
784
844
|
items?: ProjectDto[] | null;
|
|
785
845
|
}
|
|
846
|
+
/** Dto class, containing create operation paramters for a project item resource. */
|
|
847
|
+
export interface ProjectItemResourceParametersDto {
|
|
848
|
+
/** Resource URL. */
|
|
849
|
+
url?: string | null;
|
|
850
|
+
/** Resource name. */
|
|
851
|
+
name?: string | null;
|
|
852
|
+
type?: ProjectProductResourceType;
|
|
853
|
+
}
|
|
854
|
+
/** Dto class, containing create operation paramters for a project item. */
|
|
855
|
+
export interface ProjectItemParametersDto {
|
|
856
|
+
/** Item name. */
|
|
857
|
+
name?: string | null;
|
|
858
|
+
/** Item quantity information. */
|
|
859
|
+
quantity?: number | null;
|
|
860
|
+
/** Item information. */
|
|
861
|
+
fields?: {
|
|
862
|
+
[key: string]: any;
|
|
863
|
+
} | null;
|
|
864
|
+
/** Additional item information. */
|
|
865
|
+
hidden?: any | null;
|
|
866
|
+
/** A list of design identifiers associated to the item. */
|
|
867
|
+
designIds?: string[] | null;
|
|
868
|
+
/** SKU. */
|
|
869
|
+
sku?: string | null;
|
|
870
|
+
/** External resources descriptions. */
|
|
871
|
+
resources?: ProjectItemResourceParametersDto[] | null;
|
|
872
|
+
}
|
|
786
873
|
/** Dto class, containing create operation parameters for project entity. */
|
|
787
874
|
export interface CreateProjectDto {
|
|
788
875
|
/** Product reference (i.e external reference to Customer's Canvas product specification - main subject of this project). */
|
|
@@ -806,7 +893,7 @@ export interface CreateProjectDto {
|
|
|
806
893
|
/** Project owner identifier. */
|
|
807
894
|
ownerId: string;
|
|
808
895
|
/** List of project items. */
|
|
809
|
-
items?:
|
|
896
|
+
items?: ProjectItemParametersDto[] | null;
|
|
810
897
|
/** Description of the project. */
|
|
811
898
|
description?: string | null;
|
|
812
899
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aurigma/ng-storefront-api-client",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.17.17",
|
|
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)",
|