@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
  }
@@ -174,6 +174,7 @@ export var BackOfficeApiClient;
174
174
  * @param productSpecificationId (optional) Customer's Canvas product specification filter.
175
175
  * @param productId (optional) Customer's Canvas product filter.
176
176
  * @param productLinkId (optional) Customer's Canvas product link filter.
177
+ * @param productBundleId (optional) Customer's Canvas product bundle filter.
177
178
  * @param skip (optional) Defines page start offset from beginning of sorted result list.
178
179
  * @param take (optional) Defines page length (how many consequent items of sorted result list should be taken).
179
180
  * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
@@ -184,7 +185,7 @@ export var BackOfficeApiClient;
184
185
  * @param tenantId (optional) Tenant identifier.
185
186
  * @return Success
186
187
  */
187
- getAll(storefrontId, productReference, productSpecificationId, productId, productLinkId, skip, take, sorting, search, sku, tags, customFields, tenantId, cancelToken) {
188
+ getAll(storefrontId, productReference, productSpecificationId, productId, productLinkId, productBundleId, skip, take, sorting, search, sku, tags, customFields, tenantId, cancelToken) {
188
189
  let url_ = this.baseUrl + "/api/backoffice/v1/product-references?";
189
190
  if (storefrontId === undefined || storefrontId === null)
190
191
  throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
@@ -198,6 +199,10 @@ export var BackOfficeApiClient;
198
199
  url_ += "productId=" + encodeURIComponent("" + productId) + "&";
199
200
  if (productLinkId !== undefined && productLinkId !== null)
200
201
  url_ += "productLinkId=" + encodeURIComponent("" + productLinkId) + "&";
202
+ if (productBundleId === null)
203
+ throw new Error("The parameter 'productBundleId' cannot be null.");
204
+ else if (productBundleId !== undefined)
205
+ url_ += "productBundleId=" + encodeURIComponent("" + productBundleId) + "&";
201
206
  if (skip !== undefined && skip !== null)
202
207
  url_ += "skip=" + encodeURIComponent("" + skip) + "&";
203
208
  if (take !== undefined && take !== null)
@@ -3872,6 +3877,7 @@ export var BackOfficeApiClient;
3872
3877
  ProductReferenceType["ProductSpecification"] = "ProductSpecification";
3873
3878
  ProductReferenceType["Product"] = "Product";
3874
3879
  ProductReferenceType["ProductLink"] = "ProductLink";
3880
+ ProductReferenceType["ProductBundle"] = "ProductBundle";
3875
3881
  })(ProductReferenceType = BackOfficeApiClient.ProductReferenceType || (BackOfficeApiClient.ProductReferenceType = {}));
3876
3882
  /** Conflict types. */
3877
3883
  let ConflictType;
@@ -3970,10 +3976,7 @@ export var BackOfficeApiClient;
3970
3976
  }
3971
3977
  BackOfficeApiClient.ApiException = ApiException;
3972
3978
  function throwException(message, status, response, headers, result) {
3973
- if (result !== null && result !== undefined)
3974
- throw result;
3975
- else
3976
- throw new ApiException(message, status, response, headers, null);
3979
+ throw new ApiException(message, status, response, headers, result);
3977
3980
  }
3978
3981
  function isAxiosError(obj) {
3979
3982
  return obj && obj.isAxiosError === true;