@scaleway/sdk-product-catalog 2.7.0 → 2.8.0

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.
@@ -8,7 +8,7 @@ var PublicCatalogAPI = class extends API {
8
8
  pageOfListPublicCatalogProducts = (request = {}) => this.client.fetch({
9
9
  method: "GET",
10
10
  path: `/product-catalog/v2alpha1/public-catalog/products`,
11
- urlParams: urlParams(["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["product_types", request.productTypes], ["status", request.status], ...Object.entries(resolveOneOf([
11
+ urlParams: urlParams(["api_ids", request.apiIds], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["product_types", request.productTypes], ["status", request.status], ...Object.entries(resolveOneOf([
12
12
  {
13
13
  param: "global",
14
14
  value: request.global
@@ -0,0 +1,21 @@
1
+ export declare const queriesMetadata: {
2
+ readonly namespace: "product_catalog";
3
+ readonly version: "v2alpha1";
4
+ readonly folderName: "productCatalogv2alpha1";
5
+ readonly services: readonly [{
6
+ readonly apiClass: "PublicCatalogAPI";
7
+ readonly methods: readonly [{
8
+ readonly methodName: "listPublicCatalogProducts";
9
+ readonly protoName: "ListPublicCatalogProducts";
10
+ readonly paramsType: "PublicCatalogApiListPublicCatalogProductsRequest";
11
+ readonly returnType: "ListPublicCatalogProductsResponse";
12
+ readonly isList: true;
13
+ readonly paginationType: "offset";
14
+ readonly pageParamKey: "page";
15
+ readonly listItemType: "PublicCatalogProduct";
16
+ readonly isPrivate: false;
17
+ readonly description: "\"";
18
+ }];
19
+ }];
20
+ };
21
+ export type QueriesMetadata = typeof queriesMetadata;
@@ -0,0 +1,23 @@
1
+ //#region src/v2alpha1/metadata.gen.ts
2
+ var queriesMetadata = {
3
+ namespace: "product_catalog",
4
+ version: "v2alpha1",
5
+ folderName: "productCatalogv2alpha1",
6
+ services: [{
7
+ apiClass: "PublicCatalogAPI",
8
+ methods: [{
9
+ methodName: "listPublicCatalogProducts",
10
+ protoName: "ListPublicCatalogProducts",
11
+ paramsType: "PublicCatalogApiListPublicCatalogProductsRequest",
12
+ returnType: "ListPublicCatalogProductsResponse",
13
+ isList: true,
14
+ paginationType: "offset",
15
+ pageParamKey: "page",
16
+ listItemType: "PublicCatalogProduct",
17
+ isPrivate: false,
18
+ description: "\""
19
+ }]
20
+ }]
21
+ };
22
+ //#endregion
23
+ export { queriesMetadata };
@@ -642,4 +642,8 @@ export type PublicCatalogApiListPublicCatalogProductsRequest = {
642
642
  * The lists of filtered product status, if empty only products with status public_beta, general_availability, preview, end_of_new_features, end_of_growth, end_of_deployment, end_of_support, end_of_sale, end_of_life or retired will be returned.
643
643
  */
644
644
  status?: ListPublicCatalogProductsRequestStatus[];
645
+ /**
646
+ * Filter products by API IDs. Each ID is matched against product-specific identifiers: `dedibox.offer_id` (converted to string), `elastic_metal.offer_id`, `apple_silicon.server_type`, `instance.offer_id`, and `load_balancer.node.offer_id`. Products that do not support API ID filtering are excluded from the results. If empty, no filtering is applied.
647
+ */
648
+ apiIds?: string[];
645
649
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-product-catalog",
3
- "version": "2.7.0",
3
+ "version": "2.8.0",
4
4
  "description": "Scaleway SDK product-catalog",
5
5
  "license": "Apache-2.0",
6
6
  "files": [