@aurigma/ng-storefront-api-client 2.60.2 → 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.
@@ -677,7 +736,7 @@ export interface IProductsApiClient {
677
736
  /**
678
737
  * Returns a list of product links.
679
738
  * @param id Product identifier.
680
- * @param productVersionId (optional)
739
+ * @param productVersionId (optional) Product version identifier.
681
740
  * @param skip (optional) Defines page start offset from beginning of sorted result list.
682
741
  * @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
683
742
  * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
@@ -690,7 +749,7 @@ export interface IProductsApiClient {
690
749
  * Returns a product link.
691
750
  * @param id Product identifier.
692
751
  * @param productLinkId Product link identifier.
693
- * @param productVersionId (optional)
752
+ * @param productVersionId (optional) Product version identifier.
694
753
  * @param tenantId (optional) Tenant identifier.
695
754
  * @return Success
696
755
  */
@@ -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.
@@ -857,7 +925,7 @@ export declare class ProductsApiClient extends ApiClientBase implements IProduct
857
925
  /**
858
926
  * Returns a list of product links.
859
927
  * @param id Product identifier.
860
- * @param productVersionId (optional)
928
+ * @param productVersionId (optional) Product version identifier.
861
929
  * @param skip (optional) Defines page start offset from beginning of sorted result list.
862
930
  * @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
863
931
  * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
@@ -871,7 +939,7 @@ export declare class ProductsApiClient extends ApiClientBase implements IProduct
871
939
  * Returns a product link.
872
940
  * @param id Product identifier.
873
941
  * @param productLinkId Product link identifier.
874
- * @param productVersionId (optional)
942
+ * @param productVersionId (optional) Product version identifier.
875
943
  * @param tenantId (optional) Tenant identifier.
876
944
  * @return Success
877
945
  */
@@ -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.
@@ -1690,6 +1773,10 @@ export interface ProductBundleResourceDto {
1690
1773
  export interface ProductBundleItemDto {
1691
1774
  /** Product bundle item identifier. */
1692
1775
  id?: number;
1776
+ /** Product bundle item name. */
1777
+ name?: string | null;
1778
+ /** Product bundle item description. */
1779
+ description?: string | null;
1693
1780
  /** Bundled product identifier. */
1694
1781
  productId?: number | null;
1695
1782
  /** Bundled product version identifier. */
@@ -1759,6 +1846,49 @@ export interface GeneralConflictDto {
1759
1846
  /** Coflict type. */
1760
1847
  type?: ConflictType;
1761
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
+ }
1762
1892
  /** Available appearance types. */
1763
1893
  export declare enum AppearanceDataType {
1764
1894
  Radio = "Radio",
@@ -1857,6 +1987,8 @@ export interface ProductSummaryDto {
1857
1987
  productVariantSku?: string | null;
1858
1988
  /** Product variant price. If product variant is not specified, should be null. */
1859
1989
  productVariantPrice?: number | null;
1990
+ /** Product variant weight. If product variant is not specified, should be null. */
1991
+ productVariantWeight?: number | null;
1860
1992
  /** Product variant availability. If product variant is not specified, should be null. */
1861
1993
  isProductVariantAvailable?: boolean | null;
1862
1994
  /** Product name. If product link is specified, name of link will be used. */
@@ -1881,13 +2013,6 @@ export interface ProductSummaryDto {
1881
2013
  If product link or variant is specified, product options will be filtered by link or variant options. */
1882
2014
  options?: ProductSummaryOptionDto[] | null;
1883
2015
  }
1884
- /** Type of editor that should be configured by workflow. */
1885
- export declare enum WorkflowType {
1886
- UIFramework = "UIFramework",
1887
- SimpleEditor = "SimpleEditor",
1888
- DesignEditor = "DesignEditor",
1889
- WorkflowElements = "WorkflowElements"
1890
- }
1891
2016
  /** Personalization workflow description DTO. */
1892
2017
  export interface PersonalizationWorkflowDto {
1893
2018
  /** Workflow identifier. */
@@ -2232,6 +2357,8 @@ export interface ProductVariantDto {
2232
2357
  isAvailable?: boolean;
2233
2358
  /** Product variant price. */
2234
2359
  price?: number | null;
2360
+ /** Product variant weight. */
2361
+ weight?: number | null;
2235
2362
  /** Product variant sort index. */
2236
2363
  sortIndex?: number;
2237
2364
  /** Product variant identifier (usually SKU) in storefront / online store. */
@@ -2354,6 +2481,8 @@ export interface ProductVariantMockupDto {
2354
2481
  mockupId?: string | null;
2355
2482
  /** Mockup name. */
2356
2483
  mockupName?: string | null;
2484
+ /** Mockup validation type. */
2485
+ mockupValidationType?: string | null;
2357
2486
  /** Mockup type. */
2358
2487
  mockupType?: ProductVariantMockupType;
2359
2488
  /** Surface index indicates a surface of a design to which mockup should be applied. */
@@ -2445,6 +2574,8 @@ export interface ProjectItemDto {
2445
2574
  id?: number;
2446
2575
  /** Item name. */
2447
2576
  name?: string | null;
2577
+ /** Project item group identifier. */
2578
+ groupId?: string | null;
2448
2579
  /** Item quantity information. */
2449
2580
  quantity?: number | null;
2450
2581
  /** Order item identifier from storefront order. */
@@ -2548,6 +2679,8 @@ May keep reference to version of `Product` (depending on `Type` value). */
2548
2679
  export interface ProjectItemParametersDto {
2549
2680
  /** Item name. */
2550
2681
  name?: string | null;
2682
+ /** Project item group identifier. */
2683
+ groupId?: string | null;
2551
2684
  /** Item quantity information. */
2552
2685
  quantity?: number | null;
2553
2686
  /** Line item index from ecommerce system order. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurigma/ng-storefront-api-client",
3
- "version": "2.60.2",
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)",