@aurigma/axios-backoffice-api-client 2.59.1 → 2.60.2

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.
@@ -53,6 +53,7 @@ export declare module BackOfficeApiClient {
53
53
  * @param productSpecificationId (optional) Customer's Canvas product specification filter.
54
54
  * @param productId (optional) Customer's Canvas product filter.
55
55
  * @param productLinkId (optional) Customer's Canvas product link filter.
56
+ * @param productBundleId (optional) Customer's Canvas product bundle filter.
56
57
  * @param skip (optional) Defines page start offset from beginning of sorted result list.
57
58
  * @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
58
59
  * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
@@ -63,7 +64,7 @@ export declare module BackOfficeApiClient {
63
64
  * @param tenantId (optional) Tenant identifier.
64
65
  * @return Success
65
66
  */
66
- getAll(storefrontId: number, productReference?: string | null | undefined, productSpecificationId?: number | null | undefined, productId?: number | null | undefined, productLinkId?: number | null | undefined, skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, search?: string | null | undefined, sku?: string | null | undefined, tags?: string[] | null | undefined, customFields?: string | null | undefined, tenantId?: number | null | undefined): Promise<PagedOfProductReferenceDto>;
67
+ getAll(storefrontId: number, productReference?: string | null | undefined, productSpecificationId?: number | null | undefined, productId?: number | null | undefined, productLinkId?: number | null | undefined, productBundleId?: number | undefined, skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, search?: string | null | undefined, sku?: string | null | undefined, tags?: string[] | null | undefined, customFields?: string | null | undefined, tenantId?: number | null | undefined): Promise<PagedOfProductReferenceDto>;
67
68
  /**
68
69
  * Creates a new storefront product reference.
69
70
  * @param storefrontId Storefront identifier.
@@ -102,6 +103,7 @@ export declare module BackOfficeApiClient {
102
103
  * @param productSpecificationId (optional) Customer's Canvas product specification filter.
103
104
  * @param productId (optional) Customer's Canvas product filter.
104
105
  * @param productLinkId (optional) Customer's Canvas product link filter.
106
+ * @param productBundleId (optional) Customer's Canvas product bundle filter.
105
107
  * @param skip (optional) Defines page start offset from beginning of sorted result list.
106
108
  * @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
107
109
  * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
@@ -112,7 +114,7 @@ export declare module BackOfficeApiClient {
112
114
  * @param tenantId (optional) Tenant identifier.
113
115
  * @return Success
114
116
  */
115
- getAll(storefrontId: number, productReference?: string | null | undefined, productSpecificationId?: number | null | undefined, productId?: number | null | undefined, productLinkId?: number | null | undefined, skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, search?: string | null | undefined, sku?: string | null | undefined, tags?: string[] | null | undefined, customFields?: string | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PagedOfProductReferenceDto>;
117
+ getAll(storefrontId: number, productReference?: string | null | undefined, productSpecificationId?: number | null | undefined, productId?: number | null | undefined, productLinkId?: number | null | undefined, productBundleId?: number | undefined, skip?: number | null | undefined, take?: number | null | undefined, sorting?: string | null | undefined, search?: string | null | undefined, sku?: string | null | undefined, tags?: string[] | null | undefined, customFields?: string | null | undefined, tenantId?: number | null | undefined, cancelToken?: CancelToken | undefined): Promise<PagedOfProductReferenceDto>;
116
118
  protected processGetAll(response: AxiosResponse): Promise<PagedOfProductReferenceDto>;
117
119
  /**
118
120
  * Creates a new storefront product reference.
@@ -938,7 +940,8 @@ export declare module BackOfficeApiClient {
938
940
  enum ProductReferenceType {
939
941
  ProductSpecification = "ProductSpecification",
940
942
  Product = "Product",
941
- ProductLink = "ProductLink"
943
+ ProductLink = "ProductLink",
944
+ ProductBundle = "ProductBundle"
942
945
  }
943
946
  /** DTO class, containing information about storefront product reference. */
944
947
  interface ProductReferenceDto {
@@ -956,6 +959,8 @@ export declare module BackOfficeApiClient {
956
959
  productVersionId?: number;
957
960
  /** Customer's Canvas product link identifier. */
958
961
  productLinkId?: number;
962
+ /** Customer's Canvas product bundle identifier. */
963
+ productBundleId?: number;
959
964
  /** Storefront identifier. */
960
965
  storefrontId?: number;
961
966
  /** Tenant identifier. */
@@ -996,6 +1001,8 @@ export declare module BackOfficeApiClient {
996
1001
  productId?: number | null;
997
1002
  /** Customer's Canvas product link identifier. */
998
1003
  productLinkId?: number | null;
1004
+ /** Customer's Canvas product bundle identifier. */
1005
+ productBundleId?: number | null;
999
1006
  }
1000
1007
  interface ProblemDetails {
1001
1008
  type?: string | null;
@@ -1018,6 +1025,8 @@ export declare module BackOfficeApiClient {
1018
1025
  productId?: number;
1019
1026
  /** Customer's Canvas product link identifier. */
1020
1027
  productLinkId?: number;
1028
+ /** Customer's Canvas product bundle identifier. */
1029
+ productBundleId?: number;
1021
1030
  /** Storefront identifier. */
1022
1031
  storefrontId?: number;
1023
1032
  }
@@ -177,6 +177,7 @@ var BackOfficeApiClient;
177
177
  * @param productSpecificationId (optional) Customer's Canvas product specification filter.
178
178
  * @param productId (optional) Customer's Canvas product filter.
179
179
  * @param productLinkId (optional) Customer's Canvas product link filter.
180
+ * @param productBundleId (optional) Customer's Canvas product bundle filter.
180
181
  * @param skip (optional) Defines page start offset from beginning of sorted result list.
181
182
  * @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
182
183
  * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
@@ -187,7 +188,7 @@ var BackOfficeApiClient;
187
188
  * @param tenantId (optional) Tenant identifier.
188
189
  * @return Success
189
190
  */
190
- getAll(storefrontId, productReference, productSpecificationId, productId, productLinkId, skip, take, sorting, search, sku, tags, customFields, tenantId, cancelToken) {
191
+ getAll(storefrontId, productReference, productSpecificationId, productId, productLinkId, productBundleId, skip, take, sorting, search, sku, tags, customFields, tenantId, cancelToken) {
191
192
  let url_ = this.baseUrl + "/api/backoffice/v1/product-references?";
192
193
  if (storefrontId === undefined || storefrontId === null)
193
194
  throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
@@ -201,6 +202,10 @@ var BackOfficeApiClient;
201
202
  url_ += "productId=" + encodeURIComponent("" + productId) + "&";
202
203
  if (productLinkId !== undefined && productLinkId !== null)
203
204
  url_ += "productLinkId=" + encodeURIComponent("" + productLinkId) + "&";
205
+ if (productBundleId === null)
206
+ throw new Error("The parameter 'productBundleId' cannot be null.");
207
+ else if (productBundleId !== undefined)
208
+ url_ += "productBundleId=" + encodeURIComponent("" + productBundleId) + "&";
204
209
  if (skip !== undefined && skip !== null)
205
210
  url_ += "skip=" + encodeURIComponent("" + skip) + "&";
206
211
  if (take !== undefined && take !== null)
@@ -3875,6 +3880,7 @@ var BackOfficeApiClient;
3875
3880
  ProductReferenceType["ProductSpecification"] = "ProductSpecification";
3876
3881
  ProductReferenceType["Product"] = "Product";
3877
3882
  ProductReferenceType["ProductLink"] = "ProductLink";
3883
+ ProductReferenceType["ProductBundle"] = "ProductBundle";
3878
3884
  })(ProductReferenceType = BackOfficeApiClient.ProductReferenceType || (BackOfficeApiClient.ProductReferenceType = {}));
3879
3885
  /** Conflict types. */
3880
3886
  let ConflictType;
@@ -3973,10 +3979,7 @@ var BackOfficeApiClient;
3973
3979
  }
3974
3980
  BackOfficeApiClient.ApiException = ApiException;
3975
3981
  function throwException(message, status, response, headers, result) {
3976
- if (result !== null && result !== undefined)
3977
- throw result;
3978
- else
3979
- throw new ApiException(message, status, response, headers, null);
3982
+ throw new ApiException(message, status, response, headers, result);
3980
3983
  }
3981
3984
  function isAxiosError(obj) {
3982
3985
  return obj && obj.isAxiosError === true;