@aurigma/ng-storefront-api-client 2.62.12 → 2.63.14

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.
@@ -108,6 +108,14 @@ export interface IProductBundlesApiClient {
108
108
  * @return Success
109
109
  */
110
110
  getProductBundle(id: number, productBundleVersionId?: number | null | undefined, tenantId?: number | null | undefined): Observable<ProductBundleDto>;
111
+ /**
112
+ * Returns a product bundle personalization parameters by product identifier.
113
+ * @param id Product bundle identifier.
114
+ * @param productBundleVersionId (optional) Product bundle version identifier.
115
+ * @param tenantId (optional) Tenant identifier.
116
+ * @return Success
117
+ */
118
+ getProductBundlePersonalizationParameters(id: number, productBundleVersionId?: number | null | undefined, tenantId?: number | null | undefined): Observable<PersonalizationParametersDto>;
111
119
  /**
112
120
  * Returns a product bundle summary by product bundle identifier.
113
121
  * @param id Product bundle identifier.
@@ -153,6 +161,15 @@ export declare class ProductBundlesApiClient extends ApiClientBase implements IP
153
161
  */
154
162
  getProductBundle(id: number, productBundleVersionId?: number | null | undefined, tenantId?: number | null | undefined): Observable<ProductBundleDto>;
155
163
  protected processGetProductBundle(response: HttpResponseBase): Observable<ProductBundleDto>;
164
+ /**
165
+ * Returns a product bundle personalization parameters by product identifier.
166
+ * @param id Product bundle identifier.
167
+ * @param productBundleVersionId (optional) Product bundle version identifier.
168
+ * @param tenantId (optional) Tenant identifier.
169
+ * @return Success
170
+ */
171
+ getProductBundlePersonalizationParameters(id: number, productBundleVersionId?: number | null | undefined, tenantId?: number | null | undefined): Observable<PersonalizationParametersDto>;
172
+ protected processGetProductBundlePersonalizationParameters(response: HttpResponseBase): Observable<PersonalizationParametersDto>;
156
173
  /**
157
174
  * Returns a product bundle summary by product bundle identifier.
158
175
  * @param id Product bundle identifier.
@@ -194,6 +211,14 @@ export interface IProductLinksApiClient {
194
211
  * @return Success
195
212
  */
196
213
  getProductLink(id: number, productLinkVersionId?: number | null | undefined, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Observable<ProductLinkDto>;
214
+ /**
215
+ * Returns a product link personalization parameters by product identifier.
216
+ * @param id Product link identifier.
217
+ * @param productLinkVersionId (optional) Product link version identifier.
218
+ * @param tenantId (optional) Tenant identifier.
219
+ * @return Success
220
+ */
221
+ getProductLinkPersonalizationParameters(id: number, productLinkVersionId?: number | null | undefined, tenantId?: number | null | undefined): Observable<PersonalizationParametersDto>;
197
222
  /**
198
223
  * Returns a product link summary by product link identifier.
199
224
  * @param id Product link identifier.
@@ -242,6 +267,15 @@ export declare class ProductLinksApiClient extends ApiClientBase implements IPro
242
267
  */
243
268
  getProductLink(id: number, productLinkVersionId?: number | null | undefined, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Observable<ProductLinkDto>;
244
269
  protected processGetProductLink(response: HttpResponseBase): Observable<ProductLinkDto>;
270
+ /**
271
+ * Returns a product link personalization parameters by product identifier.
272
+ * @param id Product link identifier.
273
+ * @param productLinkVersionId (optional) Product link version identifier.
274
+ * @param tenantId (optional) Tenant identifier.
275
+ * @return Success
276
+ */
277
+ getProductLinkPersonalizationParameters(id: number, productLinkVersionId?: number | null | undefined, tenantId?: number | null | undefined): Observable<PersonalizationParametersDto>;
278
+ protected processGetProductLinkPersonalizationParameters(response: HttpResponseBase): Observable<PersonalizationParametersDto>;
245
279
  /**
246
280
  * Returns a product link summary by product link identifier.
247
281
  * @param id Product link identifier.
@@ -375,6 +409,14 @@ export interface IProductReferencesApiClient {
375
409
  * @return Success
376
410
  */
377
411
  get(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Observable<ProductReferenceDto>;
412
+ /**
413
+ * Returns a personalization parameters by the storefront product reference.
414
+ * @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
415
+ * @param storefrontId Storefront identifier.
416
+ * @param tenantId (optional) Tenant identifier.
417
+ * @return Success
418
+ */
419
+ getPersonalizationParameters(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Observable<PersonalizationParametersDto>;
378
420
  /**
379
421
  * Returns a product specification by the storefront product reference.
380
422
  * @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
@@ -557,6 +599,15 @@ export declare class ProductReferencesApiClient extends ApiClientBase implements
557
599
  */
558
600
  get(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Observable<ProductReferenceDto>;
559
601
  protected processGet(response: HttpResponseBase): Observable<ProductReferenceDto>;
602
+ /**
603
+ * Returns a personalization parameters by the storefront product reference.
604
+ * @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
605
+ * @param storefrontId Storefront identifier.
606
+ * @param tenantId (optional) Tenant identifier.
607
+ * @return Success
608
+ */
609
+ getPersonalizationParameters(reference: string | null, storefrontId: number, tenantId?: number | null | undefined): Observable<PersonalizationParametersDto>;
610
+ protected processGetPersonalizationParameters(response: HttpResponseBase): Observable<PersonalizationParametersDto>;
560
611
  /**
561
612
  * Returns a product specification by the storefront product reference.
562
613
  * @param reference Product reference - external reference to Customer's Canvas product, e.g online store product identifier.
@@ -649,6 +700,14 @@ export interface IProductsApiClient {
649
700
  * @return Success
650
701
  */
651
702
  getProduct(id: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Observable<ProductDto>;
703
+ /**
704
+ * Returns a product personalization parameters by product identifier.
705
+ * @param id Product identifier.
706
+ * @param productVersionId (optional) Product version identifier.
707
+ * @param tenantId (optional) Tenant identifier.
708
+ * @return Success
709
+ */
710
+ getProductSummary(id: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Observable<PersonalizationParametersDto>;
652
711
  /**
653
712
  * Returns a product summary by product identifier.
654
713
  * @param id Product identifier.
@@ -659,7 +718,7 @@ export interface IProductsApiClient {
659
718
  * @param tenantId (optional) Tenant identifier.
660
719
  * @return Success
661
720
  */
662
- getProductSummary(id: number, productVersionId?: number | null | undefined, productLinkId?: number | null | undefined, productVariantId?: number | null | undefined, sku?: string | null | undefined, tenantId?: number | null | undefined): Observable<ProductSummaryDto>;
721
+ getProductSummary2(id: number, productVersionId?: number | null | undefined, productLinkId?: number | null | undefined, productVariantId?: number | null | undefined, sku?: string | null | undefined, tenantId?: number | null | undefined): Observable<ProductSummaryDto>;
663
722
  /**
664
723
  * Returns a list of product options.
665
724
  * @param id Product identifier.
@@ -826,6 +885,15 @@ export declare class ProductsApiClient extends ApiClientBase implements IProduct
826
885
  */
827
886
  getProduct(id: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Observable<ProductDto>;
828
887
  protected processGetProduct(response: HttpResponseBase): Observable<ProductDto>;
888
+ /**
889
+ * Returns a product personalization parameters by product identifier.
890
+ * @param id Product identifier.
891
+ * @param productVersionId (optional) Product version identifier.
892
+ * @param tenantId (optional) Tenant identifier.
893
+ * @return Success
894
+ */
895
+ getProductSummary(id: number, productVersionId?: number | null | undefined, tenantId?: number | null | undefined): Observable<PersonalizationParametersDto>;
896
+ protected processGetProductSummary(response: HttpResponseBase): Observable<PersonalizationParametersDto>;
829
897
  /**
830
898
  * Returns a product summary by product identifier.
831
899
  * @param id Product identifier.
@@ -836,8 +904,8 @@ export declare class ProductsApiClient extends ApiClientBase implements IProduct
836
904
  * @param tenantId (optional) Tenant identifier.
837
905
  * @return Success
838
906
  */
839
- getProductSummary(id: number, productVersionId?: number | null | undefined, productLinkId?: number | null | undefined, productVariantId?: number | null | undefined, sku?: string | null | undefined, tenantId?: number | null | undefined): Observable<ProductSummaryDto>;
840
- protected processGetProductSummary(response: HttpResponseBase): Observable<ProductSummaryDto>;
907
+ getProductSummary2(id: number, productVersionId?: number | null | undefined, productLinkId?: number | null | undefined, productVariantId?: number | null | undefined, sku?: string | null | undefined, tenantId?: number | null | undefined): Observable<ProductSummaryDto>;
908
+ protected processGetProductSummary2(response: HttpResponseBase): Observable<ProductSummaryDto>;
841
909
  /**
842
910
  * Returns a list of product options.
843
911
  * @param id Product identifier.
@@ -1006,6 +1074,13 @@ export interface IProductSpecificationsApiClient {
1006
1074
  * @return Success
1007
1075
  */
1008
1076
  get(id: number, tenantId?: number | null | undefined): Observable<ProductSpecificationDto>;
1077
+ /**
1078
+ * Returns a product specification personalization parameters by product identifier.
1079
+ * @param id Product specification identifier.
1080
+ * @param tenantId (optional) Tenant identifier.
1081
+ * @return Success
1082
+ */
1083
+ getProductSpecificationSummary(id: number, tenantId?: number | null | undefined): Observable<PersonalizationParametersDto>;
1009
1084
  /**
1010
1085
  * Returns a product personalization workflow description by product specification identifier.
1011
1086
  * @param id Product specification identifier.
@@ -1038,6 +1113,14 @@ export declare class ProductSpecificationsApiClient extends ApiClientBase implem
1038
1113
  */
1039
1114
  get(id: number, tenantId?: number | null | undefined): Observable<ProductSpecificationDto>;
1040
1115
  protected processGet(response: HttpResponseBase): Observable<ProductSpecificationDto>;
1116
+ /**
1117
+ * Returns a product specification personalization parameters by product identifier.
1118
+ * @param id Product specification identifier.
1119
+ * @param tenantId (optional) Tenant identifier.
1120
+ * @return Success
1121
+ */
1122
+ getProductSpecificationSummary(id: number, tenantId?: number | null | undefined): Observable<PersonalizationParametersDto>;
1123
+ protected processGetProductSpecificationSummary(response: HttpResponseBase): Observable<PersonalizationParametersDto>;
1041
1124
  /**
1042
1125
  * Returns a product personalization workflow description by product specification identifier.
1043
1126
  * @param id Product specification identifier.
@@ -1763,6 +1846,49 @@ export interface GeneralConflictDto {
1763
1846
  /** Coflict type. */
1764
1847
  type?: ConflictType;
1765
1848
  }
1849
+ /** Customer's Canvas product type. */
1850
+ export declare enum ProductType {
1851
+ ProductSpecification = "ProductSpecification",
1852
+ Product = "Product",
1853
+ ProductLink = "ProductLink",
1854
+ ProductBundle = "ProductBundle"
1855
+ }
1856
+ /** Type of editor that should be configured by workflow. */
1857
+ export declare enum WorkflowType {
1858
+ UIFramework = "UIFramework",
1859
+ SimpleEditor = "SimpleEditor",
1860
+ DesignEditor = "DesignEditor",
1861
+ WorkflowElements = "WorkflowElements"
1862
+ }
1863
+ /** DTO class, containing information needed to start personalization process. */
1864
+ export interface PersonalizationParametersDto {
1865
+ /** Customer's Canvas product type. */
1866
+ productType?: ProductType;
1867
+ /** Customer's Canvas product identifier.
1868
+ May keep reference to `Product`, `Product Specification`, `Product Link` or `Product Bundle` (depending on `Type` value). */
1869
+ id?: number | null;
1870
+ /** Customer's Canvas product version identifier.
1871
+ May keep reference to version of `Product`, `Product Link` or `Product Bundle` (depending on `Type` value). */
1872
+ versionId?: number | null;
1873
+ /** API Gateway URL address. */
1874
+ apiGatewayUrl?: string | null;
1875
+ /** Design Editor application URL address. */
1876
+ designEditorUrl?: string | null;
1877
+ /** Preflight application URL address. */
1878
+ preflightUrl?: string | null;
1879
+ /** Dynamic Image application URL address. */
1880
+ dynamicImageUrl?: string | null;
1881
+ /** Link to UI-Framework bundle. */
1882
+ uiFrameworkUrl?: string | null;
1883
+ /** Link to Simple Editor bundle. */
1884
+ simpleEditorUrl?: string | null;
1885
+ /** Link to Workflow Elements bundle. */
1886
+ workflowElementsUrl?: string | null;
1887
+ /** Personalization workflow type. */
1888
+ workflowType?: WorkflowType;
1889
+ /** Serialized content of compiled personalization workflow. */
1890
+ workflowContent?: string | null;
1891
+ }
1766
1892
  /** Available appearance types. */
1767
1893
  export declare enum AppearanceDataType {
1768
1894
  Radio = "Radio",
@@ -1861,6 +1987,8 @@ export interface ProductSummaryDto {
1861
1987
  productVariantSku?: string | null;
1862
1988
  /** Product variant price. If product variant is not specified, should be null. */
1863
1989
  productVariantPrice?: number | null;
1990
+ /** Product variant weight. If product variant is not specified, should be null. */
1991
+ productVariantWeight?: number | null;
1864
1992
  /** Product variant availability. If product variant is not specified, should be null. */
1865
1993
  isProductVariantAvailable?: boolean | null;
1866
1994
  /** Product name. If product link is specified, name of link will be used. */
@@ -1885,13 +2013,6 @@ export interface ProductSummaryDto {
1885
2013
  If product link or variant is specified, product options will be filtered by link or variant options. */
1886
2014
  options?: ProductSummaryOptionDto[] | null;
1887
2015
  }
1888
- /** Type of editor that should be configured by workflow. */
1889
- export declare enum WorkflowType {
1890
- UIFramework = "UIFramework",
1891
- SimpleEditor = "SimpleEditor",
1892
- DesignEditor = "DesignEditor",
1893
- WorkflowElements = "WorkflowElements"
1894
- }
1895
2016
  /** Personalization workflow description DTO. */
1896
2017
  export interface PersonalizationWorkflowDto {
1897
2018
  /** Workflow identifier. */
@@ -2236,6 +2357,8 @@ export interface ProductVariantDto {
2236
2357
  isAvailable?: boolean;
2237
2358
  /** Product variant price. */
2238
2359
  price?: number | null;
2360
+ /** Product variant weight. */
2361
+ weight?: number | null;
2239
2362
  /** Product variant sort index. */
2240
2363
  sortIndex?: number;
2241
2364
  /** Product variant identifier (usually SKU) in storefront / online store. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurigma/ng-storefront-api-client",
3
- "version": "2.62.12",
3
+ "version": "2.63.14",
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)",