@aurigma/ng-storefront-api-client 2.25.1 → 2.26.1

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.
@@ -1065,7 +1065,6 @@ class ProjectsApiClient extends ApiClientBase {
1065
1065
  }
1066
1066
  /**
1067
1067
  * Returns all projects, relevant to the specified query parameters.
1068
- * @param storefrontId Storefront identifier.
1069
1068
  * @param ownerId (optional) Project owner (storefront user id) filter.
1070
1069
  * @param productReference (optional) Product reference filter.
1071
1070
  * @param status (optional) Project status filter.
@@ -1075,15 +1074,12 @@ class ProjectsApiClient extends ApiClientBase {
1075
1074
  * @param sorting (optional) Defines sorting order of result list e.g.: "Title ASC, LastModified DESC".
1076
1075
  * @param search (optional) Search string for partial match.
1077
1076
  * @param orderId (optional) Identifier of corresponding order.
1077
+ * @param storefrontId (optional) Storefront identifier.
1078
1078
  * @param tenantId (optional) Tenant identifier.
1079
1079
  * @return Success
1080
1080
  */
1081
- getAll(storefrontId, ownerId, productReference, status, datePeriod, skip, take, sorting, search, orderId, tenantId) {
1081
+ getAll(ownerId, productReference, status, datePeriod, skip, take, sorting, search, orderId, storefrontId, tenantId) {
1082
1082
  let url_ = this.baseUrl + "/api/storefront/v1/projects?";
1083
- if (storefrontId === undefined || storefrontId === null)
1084
- throw new Error("The parameter 'storefrontId' must be defined and cannot be null.");
1085
- else
1086
- url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
1087
1083
  if (ownerId !== undefined && ownerId !== null)
1088
1084
  url_ += "ownerId=" + encodeURIComponent("" + ownerId) + "&";
1089
1085
  if (productReference !== undefined && productReference !== null)
@@ -1104,6 +1100,8 @@ class ProjectsApiClient extends ApiClientBase {
1104
1100
  url_ += "search=" + encodeURIComponent("" + search) + "&";
1105
1101
  if (orderId !== undefined && orderId !== null)
1106
1102
  url_ += "orderId=" + encodeURIComponent("" + orderId) + "&";
1103
+ if (storefrontId !== undefined && storefrontId !== null)
1104
+ url_ += "storefrontId=" + encodeURIComponent("" + storefrontId) + "&";
1107
1105
  if (tenantId !== undefined && tenantId !== null)
1108
1106
  url_ += "tenantId=" + encodeURIComponent("" + tenantId) + "&";
1109
1107
  url_ = url_.replace(/[?&]$/, "");