Skip to content

Commit 650f417

Browse files
feat(product_catalog): add enum to filter by product type in the public catalog API (#2150)
Co-authored-by: Jonathan R. <[email protected]>
1 parent 0a82e53 commit 650f417

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

packages_generated/product_catalog/src/v2alpha1/api.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export class PublicCatalogAPI extends ParentAPI {
2828
'page_size',
2929
request.pageSize ?? this.client.settings.defaultPageSize,
3030
],
31+
['product_types', request.productTypes],
3132
),
3233
},
3334
unmarshalListPublicCatalogProductsResponse,

packages_generated/product_catalog/src/v2alpha1/index.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
export { PublicCatalogAPI } from './api.gen'
44
export * from './marshalling.gen'
55
export type {
6+
ListPublicCatalogProductsRequestProductType,
67
ListPublicCatalogProductsResponse,
78
PublicCatalogApiListPublicCatalogProductsRequest,
89
PublicCatalogProduct,

packages_generated/product_catalog/src/v2alpha1/types.gen.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ import type {
66
Zone as ScwZone,
77
} from '@scaleway/sdk-client'
88

9+
export type ListPublicCatalogProductsRequestProductType =
10+
| 'unknown_product_type'
11+
| 'instance'
12+
| 'apple_silicon'
13+
| 'elastic_metal'
14+
| 'dedibox'
15+
916
export type PublicCatalogProductPropertiesHardwareCPUArch =
1017
| 'unknown_arch'
1118
| 'x64'
@@ -375,4 +382,8 @@ export type PublicCatalogApiListPublicCatalogProductsRequest = {
375382
* The number of products per page. Value must be greater or equal to 1.
376383
*/
377384
pageSize?: number
385+
/**
386+
* The list of filtered product categories.
387+
*/
388+
productTypes?: ListPublicCatalogProductsRequestProductType[]
378389
}

0 commit comments

Comments
 (0)