@scaleway/sdk-product-catalog 2.6.0 → 2.7.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.
@@ -1,3 +1,4 @@
1
+ //#region \0rolldown/runtime.js
1
2
  var __defProp = Object.defineProperty;
2
3
  var __exportAll = (all, no_symbols) => {
3
4
  let target = {};
@@ -8,4 +9,5 @@ var __exportAll = (all, no_symbols) => {
8
9
  if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
9
10
  return target;
10
11
  };
12
+ //#endregion
11
13
  export { __exportAll };
@@ -1,5 +1,6 @@
1
1
  import { unmarshalListPublicCatalogProductsResponse } from "./marshalling.gen.js";
2
2
  import { API, enrichForPagination, resolveOneOf, urlParams } from "@scaleway/sdk-client";
3
+ //#region src/v2alpha1/api.gen.ts
3
4
  /**
4
5
  * Product Catalog API.
5
6
  */
@@ -36,4 +37,5 @@ var PublicCatalogAPI = class extends API {
36
37
  */
37
38
  listPublicCatalogProducts = (request = {}) => enrichForPagination("products", this.pageOfListPublicCatalogProducts, request);
38
39
  };
40
+ //#endregion
39
41
  export { PublicCatalogAPI };
@@ -1,4 +1,4 @@
1
1
  export { PublicCatalogAPI, } from './api.gen.js';
2
2
  export * from './marshalling.gen.js';
3
- export type { ListPublicCatalogProductsRequestProductType, ListPublicCatalogProductsRequestStatus, ListPublicCatalogProductsResponse, PublicCatalogApiListPublicCatalogProductsRequest, PublicCatalogProduct, PublicCatalogProductEnvironmentalImpactEstimation, PublicCatalogProductLocality, PublicCatalogProductPrice, PublicCatalogProductProductBadge, PublicCatalogProductProperties, PublicCatalogProductPropertiesAppleSilicon, PublicCatalogProductPropertiesBlockStorage, PublicCatalogProductPropertiesDedibox, PublicCatalogProductPropertiesElasticMetal, PublicCatalogProductPropertiesGenerativeApis, PublicCatalogProductPropertiesGenerativeApisConsumptionMode, PublicCatalogProductPropertiesHardware, PublicCatalogProductPropertiesHardwareCPU, PublicCatalogProductPropertiesHardwareCPUArch, PublicCatalogProductPropertiesHardwareCPUPhysical, PublicCatalogProductPropertiesHardwareCPUVirtual, PublicCatalogProductPropertiesHardwareGPU, PublicCatalogProductPropertiesHardwareNetwork, PublicCatalogProductPropertiesHardwareRAM, PublicCatalogProductPropertiesHardwareStorage, PublicCatalogProductPropertiesInstance, PublicCatalogProductPropertiesKeyManager, PublicCatalogProductPropertiesKubernetes, PublicCatalogProductPropertiesKubernetesKapsuleControlPlaneType, PublicCatalogProductPropertiesKubernetesKosmosControlPlaneType, PublicCatalogProductPropertiesKubernetesKosmosNodeType, PublicCatalogProductPropertiesLoadBalancer, PublicCatalogProductPropertiesManagedInference, PublicCatalogProductPropertiesManagedMongoDB, PublicCatalogProductPropertiesManagedMongoDBManagementType, PublicCatalogProductPropertiesManagedMongoDBNodeType, PublicCatalogProductPropertiesManagedMongoDBStorageType, PublicCatalogProductPropertiesManagedMongoDBStorageTypeStorageClass, PublicCatalogProductPropertiesManagedRedisDatabase, PublicCatalogProductPropertiesManagedRelationalDatabase, PublicCatalogProductPropertiesManagedRelationalDatabaseManagementType, PublicCatalogProductPropertiesManagedRelationalDatabaseMultiAzType, PublicCatalogProductPropertiesManagedRelationalDatabaseNodeType, PublicCatalogProductPropertiesManagedRelationalDatabaseStorageType, PublicCatalogProductPropertiesManagedRelationalDatabaseStorageTypeStorageClass, PublicCatalogProductPropertiesObjectStorage, PublicCatalogProductPropertiesObjectStorageClassType, PublicCatalogProductPropertiesObjectStorageClassTypeStorageClass, PublicCatalogProductPropertiesObjectStorageInternetTrafficType, PublicCatalogProductPropertiesObjectStorageInternetTrafficTypeTrafficType, PublicCatalogProductPropertiesObjectStorageRegionTrafficType, PublicCatalogProductPropertiesObjectStorageRestoreType, PublicCatalogProductPropertiesObjectStorageRestoreTypeRestoreType, PublicCatalogProductPropertiesSecretManager, PublicCatalogProductStatus, PublicCatalogProductUnitOfMeasure, PublicCatalogProductUnitOfMeasureCountableUnit, } from './types.gen.js';
3
+ export type { ListPublicCatalogProductsRequestProductType, ListPublicCatalogProductsRequestStatus, ListPublicCatalogProductsResponse, PublicCatalogApiListPublicCatalogProductsRequest, PublicCatalogProduct, PublicCatalogProductEnvironmentalImpactEstimation, PublicCatalogProductLocality, PublicCatalogProductPrice, PublicCatalogProductProductBadge, PublicCatalogProductProperties, PublicCatalogProductPropertiesAppleSilicon, PublicCatalogProductPropertiesBlockStorage, PublicCatalogProductPropertiesDedibox, PublicCatalogProductPropertiesElasticMetal, PublicCatalogProductPropertiesGenerativeApis, PublicCatalogProductPropertiesGenerativeApisConsumptionMode, PublicCatalogProductPropertiesHardware, PublicCatalogProductPropertiesHardwareCPU, PublicCatalogProductPropertiesHardwareCPUArch, PublicCatalogProductPropertiesHardwareCPUPhysical, PublicCatalogProductPropertiesHardwareCPUVirtual, PublicCatalogProductPropertiesHardwareGPU, PublicCatalogProductPropertiesHardwareNetwork, PublicCatalogProductPropertiesHardwareRAM, PublicCatalogProductPropertiesHardwareStorage, PublicCatalogProductPropertiesInstance, PublicCatalogProductPropertiesKeyManager, PublicCatalogProductPropertiesKubernetes, PublicCatalogProductPropertiesKubernetesKapsuleControlPlaneType, PublicCatalogProductPropertiesKubernetesKosmosControlPlaneType, PublicCatalogProductPropertiesKubernetesKosmosNodeType, PublicCatalogProductPropertiesLoadBalancer, PublicCatalogProductPropertiesLoadBalancerIPV4Type, PublicCatalogProductPropertiesLoadBalancerNodeType, PublicCatalogProductPropertiesManagedInference, PublicCatalogProductPropertiesManagedMongoDB, PublicCatalogProductPropertiesManagedMongoDBManagementType, PublicCatalogProductPropertiesManagedMongoDBNodeType, PublicCatalogProductPropertiesManagedMongoDBStorageType, PublicCatalogProductPropertiesManagedMongoDBStorageTypeStorageClass, PublicCatalogProductPropertiesManagedRedisDatabase, PublicCatalogProductPropertiesManagedRelationalDatabase, PublicCatalogProductPropertiesManagedRelationalDatabaseManagementType, PublicCatalogProductPropertiesManagedRelationalDatabaseMultiAzType, PublicCatalogProductPropertiesManagedRelationalDatabaseNodeType, PublicCatalogProductPropertiesManagedRelationalDatabaseStorageType, PublicCatalogProductPropertiesManagedRelationalDatabaseStorageTypeStorageClass, PublicCatalogProductPropertiesObjectStorage, PublicCatalogProductPropertiesObjectStorageClassType, PublicCatalogProductPropertiesObjectStorageClassTypeStorageClass, PublicCatalogProductPropertiesObjectStorageInternetTrafficType, PublicCatalogProductPropertiesObjectStorageInternetTrafficTypeTrafficType, PublicCatalogProductPropertiesObjectStorageRegionTrafficType, PublicCatalogProductPropertiesObjectStorageRestoreType, PublicCatalogProductPropertiesObjectStorageRestoreTypeRestoreType, PublicCatalogProductPropertiesSecretManager, PublicCatalogProductStatus, PublicCatalogProductUnitOfMeasure, PublicCatalogProductUnitOfMeasureCountableUnit, } from './types.gen.js';
4
4
  export * as ValidationRules from './validation-rules.gen.js';
@@ -2,9 +2,11 @@ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { unmarshalListPublicCatalogProductsResponse } from "./marshalling.gen.js";
3
3
  import { PublicCatalogAPI } from "./api.gen.js";
4
4
  import { validation_rules_gen_exports } from "./validation-rules.gen.js";
5
+ //#region src/v2alpha1/index.gen.ts
5
6
  var index_gen_exports = /* @__PURE__ */ __exportAll({
6
7
  PublicCatalogAPI: () => PublicCatalogAPI,
7
8
  ValidationRules: () => validation_rules_gen_exports,
8
9
  unmarshalListPublicCatalogProductsResponse: () => unmarshalListPublicCatalogProductsResponse
9
10
  });
10
- export { index_gen_exports };
11
+ //#endregion
12
+ export { PublicCatalogAPI, validation_rules_gen_exports as ValidationRules, index_gen_exports, unmarshalListPublicCatalogProductsResponse };
@@ -1,4 +1,5 @@
1
1
  import { isJSONObject, unmarshalArrayOfObject, unmarshalDate, unmarshalMoney } from "@scaleway/sdk-client";
2
+ //#region src/v2alpha1/marshalling.gen.ts
2
3
  var unmarshalPublicCatalogProductPropertiesHardwareCPUPhysical = (data) => {
3
4
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesHardwareCPUPhysical' failed as data isn't a dictionary.`);
4
5
  return {
@@ -68,6 +69,18 @@ var unmarshalPublicCatalogProductPropertiesKubernetesKosmosNodeType = (data) =>
68
69
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesKubernetesKosmosNodeType' failed as data isn't a dictionary.`);
69
70
  return {};
70
71
  };
72
+ var unmarshalPublicCatalogProductPropertiesLoadBalancerIPV4Type = (data) => {
73
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesLoadBalancerIPV4Type' failed as data isn't a dictionary.`);
74
+ return {};
75
+ };
76
+ var unmarshalPublicCatalogProductPropertiesLoadBalancerNodeType = (data) => {
77
+ if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesLoadBalancerNodeType' failed as data isn't a dictionary.`);
78
+ return {
79
+ bandwidth: data.bandwidth,
80
+ multiCloudProvider: data.multi_cloud_provider,
81
+ offerId: data.offer_id
82
+ };
83
+ };
71
84
  var unmarshalPublicCatalogProductPropertiesManagedMongoDBManagementType = (data) => {
72
85
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesManagedMongoDBManagementType' failed as data isn't a dictionary.`);
73
86
  return {};
@@ -180,7 +193,10 @@ var unmarshalPublicCatalogProductPropertiesKubernetes = (data) => {
180
193
  };
181
194
  var unmarshalPublicCatalogProductPropertiesLoadBalancer = (data) => {
182
195
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesLoadBalancer' failed as data isn't a dictionary.`);
183
- return {};
196
+ return {
197
+ ipv4: data.ipv4 ? unmarshalPublicCatalogProductPropertiesLoadBalancerIPV4Type(data.ipv4) : void 0,
198
+ node: data.node ? unmarshalPublicCatalogProductPropertiesLoadBalancerNodeType(data.node) : void 0
199
+ };
184
200
  };
185
201
  var unmarshalPublicCatalogProductPropertiesManagedInference = (data) => {
186
202
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PublicCatalogProductPropertiesManagedInference' failed as data isn't a dictionary.`);
@@ -289,11 +305,12 @@ var unmarshalPublicCatalogProduct = (data) => {
289
305
  variant: data.variant
290
306
  };
291
307
  };
292
- const unmarshalListPublicCatalogProductsResponse = (data) => {
308
+ var unmarshalListPublicCatalogProductsResponse = (data) => {
293
309
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPublicCatalogProductsResponse' failed as data isn't a dictionary.`);
294
310
  return {
295
311
  products: unmarshalArrayOfObject(data.products, unmarshalPublicCatalogProduct),
296
312
  totalCount: data.total_count
297
313
  };
298
314
  };
315
+ //#endregion
299
316
  export { unmarshalListPublicCatalogProductsResponse };
@@ -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 };
@@ -131,6 +131,22 @@ export interface PublicCatalogProductPropertiesKubernetesKosmosControlPlaneType
131
131
  }
132
132
  export interface PublicCatalogProductPropertiesKubernetesKosmosNodeType {
133
133
  }
134
+ export interface PublicCatalogProductPropertiesLoadBalancerIPV4Type {
135
+ }
136
+ export interface PublicCatalogProductPropertiesLoadBalancerNodeType {
137
+ /**
138
+ * The offer ID of the Load Balancer product.
139
+ */
140
+ offerId: string;
141
+ /**
142
+ * Whether the Load Balancer product is available for multi-cloud providers.
143
+ */
144
+ multiCloudProvider: boolean;
145
+ /**
146
+ * The bandwidth of the Load Balancer product in bits per second.
147
+ */
148
+ bandwidth: number;
149
+ }
134
150
  export interface PublicCatalogProductPropertiesManagedMongoDBManagementType {
135
151
  }
136
152
  export interface PublicCatalogProductPropertiesManagedMongoDBNodeType {
@@ -191,11 +207,11 @@ export interface PublicCatalogProductPropertiesBlockStorage {
191
207
  /**
192
208
  * @deprecated The minimum size of storage volume for this product in bytes. Deprecated.
193
209
  */
194
- minVolumeSize: number;
210
+ minVolumeSize?: number;
195
211
  /**
196
212
  * @deprecated The maximum size of storage volume for this product in bytes. Deprecated.
197
213
  */
198
- maxVolumeSize: number;
214
+ maxVolumeSize?: number;
199
215
  }
200
216
  export interface PublicCatalogProductPropertiesDedibox {
201
217
  /**
@@ -281,6 +297,18 @@ export interface PublicCatalogProductPropertiesKubernetes {
281
297
  kosmosNode?: PublicCatalogProductPropertiesKubernetesKosmosNodeType;
282
298
  }
283
299
  export interface PublicCatalogProductPropertiesLoadBalancer {
300
+ /**
301
+ * The properties related to Load Balancer nodes.
302
+ *
303
+ * One-of ('type'): at most one of 'node', 'ipv4' could be set.
304
+ */
305
+ node?: PublicCatalogProductPropertiesLoadBalancerNodeType;
306
+ /**
307
+ * The properties related to Load Balancer IPv4.
308
+ *
309
+ * One-of ('type'): at most one of 'node', 'ipv4' could be set.
310
+ */
311
+ ipv4?: PublicCatalogProductPropertiesLoadBalancerIPV4Type;
284
312
  }
285
313
  export interface PublicCatalogProductPropertiesManagedInference {
286
314
  /**
File without changes
@@ -1,7 +1,9 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
+ //#region src/v2alpha1/validation-rules.gen.ts
2
3
  var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({ PublicCatalogApiListPublicCatalogProductsRequest: () => PublicCatalogApiListPublicCatalogProductsRequest });
3
- const PublicCatalogApiListPublicCatalogProductsRequest = {
4
+ var PublicCatalogApiListPublicCatalogProductsRequest = {
4
5
  page: { greaterThanOrEqual: 1 },
5
6
  pageSize: { greaterThanOrEqual: 1 }
6
7
  };
7
- export { validation_rules_gen_exports };
8
+ //#endregion
9
+ export { PublicCatalogApiListPublicCatalogProductsRequest, validation_rules_gen_exports };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-product-catalog",
3
- "version": "2.6.0",
3
+ "version": "2.7.1",
4
4
  "description": "Scaleway SDK product-catalog",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
@@ -26,14 +26,14 @@
26
26
  "node": ">=20.19.6"
27
27
  },
28
28
  "dependencies": {
29
- "@scaleway/random-name": "5.1.2",
30
- "@scaleway/sdk-std": "2.2.1"
29
+ "@scaleway/random-name": "5.1.4",
30
+ "@scaleway/sdk-std": "2.2.2"
31
31
  },
32
32
  "peerDependencies": {
33
- "@scaleway/sdk-client": "^2.2.1"
33
+ "@scaleway/sdk-client": "^2.2.2"
34
34
  },
35
35
  "devDependencies": {
36
- "@scaleway/sdk-client": "^2.2.1"
36
+ "@scaleway/sdk-client": "^2.2.2"
37
37
  },
38
38
  "scripts": {
39
39
  "package:check": "pnpm publint",