@scaleway/sdk-marketplace 2.3.1 → 2.3.3

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,11 +1,12 @@
1
1
  import { unmarshalCategory, unmarshalImage, unmarshalListCategoriesResponse, unmarshalListImagesResponse, unmarshalListLocalImagesResponse, unmarshalListVersionsResponse, unmarshalLocalImage, unmarshalVersion } from "./marshalling.gen.js";
2
- import { API, enrichForPagination, resolveOneOf, urlParams, validatePathParam } from "@scaleway/sdk-client";
2
+ import { API as API$1, enrichForPagination, resolveOneOf, urlParams, validatePathParam } from "@scaleway/sdk-client";
3
+ //#region src/v2/api.gen.ts
3
4
  /**
4
5
  * Marketplace API.
5
6
 
6
7
  This API allows you to find available images for use when launching a Scaleway Instance.
7
8
  */
8
- var API$1 = class extends API {
9
+ var API = class extends API$1 {
9
10
  pageOfListImages = (request) => this.client.fetch({
10
11
  method: "GET",
11
12
  path: `/marketplace/v2/images`,
@@ -108,4 +109,5 @@ var API$1 = class extends API {
108
109
  path: `/marketplace/v2/categories/${validatePathParam("categoryId", request.categoryId)}`
109
110
  }, unmarshalCategory);
110
111
  };
111
- export { API$1 as API };
112
+ //#endregion
113
+ export { API };
@@ -1,6 +1,7 @@
1
1
  import { __exportAll } from "../_virtual/_rolldown/runtime.js";
2
2
  import { unmarshalCategory, unmarshalImage, unmarshalListCategoriesResponse, unmarshalListImagesResponse, unmarshalListLocalImagesResponse, unmarshalListVersionsResponse, unmarshalLocalImage, unmarshalVersion } from "./marshalling.gen.js";
3
3
  import { API } from "./api.gen.js";
4
+ //#region src/v2/index.gen.ts
4
5
  var index_gen_exports = /* @__PURE__ */ __exportAll({
5
6
  API: () => API,
6
7
  unmarshalCategory: () => unmarshalCategory,
@@ -12,4 +13,5 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
12
13
  unmarshalLocalImage: () => unmarshalLocalImage,
13
14
  unmarshalVersion: () => unmarshalVersion
14
15
  });
15
- export { index_gen_exports };
16
+ //#endregion
17
+ export { API, index_gen_exports, unmarshalCategory, unmarshalImage, unmarshalListCategoriesResponse, unmarshalListImagesResponse, unmarshalListLocalImagesResponse, unmarshalListVersionsResponse, unmarshalLocalImage, unmarshalVersion };
@@ -1,5 +1,6 @@
1
1
  import { isJSONObject, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
2
- const unmarshalCategory = (data) => {
2
+ //#region src/v2/marshalling.gen.ts
3
+ var unmarshalCategory = (data) => {
3
4
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Category' failed as data isn't a dictionary.`);
4
5
  return {
5
6
  description: data.description,
@@ -7,7 +8,7 @@ const unmarshalCategory = (data) => {
7
8
  name: data.name
8
9
  };
9
10
  };
10
- const unmarshalImage = (data) => {
11
+ var unmarshalImage = (data) => {
11
12
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Image' failed as data isn't a dictionary.`);
12
13
  return {
13
14
  categories: data.categories,
@@ -21,7 +22,7 @@ const unmarshalImage = (data) => {
21
22
  validUntil: unmarshalDate(data.valid_until)
22
23
  };
23
24
  };
24
- const unmarshalLocalImage = (data) => {
25
+ var unmarshalLocalImage = (data) => {
25
26
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'LocalImage' failed as data isn't a dictionary.`);
26
27
  return {
27
28
  arch: data.arch,
@@ -32,7 +33,7 @@ const unmarshalLocalImage = (data) => {
32
33
  zone: data.zone
33
34
  };
34
35
  };
35
- const unmarshalVersion = (data) => {
36
+ var unmarshalVersion = (data) => {
36
37
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Version' failed as data isn't a dictionary.`);
37
38
  return {
38
39
  createdAt: unmarshalDate(data.created_at),
@@ -42,32 +43,33 @@ const unmarshalVersion = (data) => {
42
43
  updatedAt: unmarshalDate(data.updated_at)
43
44
  };
44
45
  };
45
- const unmarshalListCategoriesResponse = (data) => {
46
+ var unmarshalListCategoriesResponse = (data) => {
46
47
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListCategoriesResponse' failed as data isn't a dictionary.`);
47
48
  return {
48
49
  categories: unmarshalArrayOfObject(data.categories, unmarshalCategory),
49
50
  totalCount: data.total_count
50
51
  };
51
52
  };
52
- const unmarshalListImagesResponse = (data) => {
53
+ var unmarshalListImagesResponse = (data) => {
53
54
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListImagesResponse' failed as data isn't a dictionary.`);
54
55
  return {
55
56
  images: unmarshalArrayOfObject(data.images, unmarshalImage),
56
57
  totalCount: data.total_count
57
58
  };
58
59
  };
59
- const unmarshalListLocalImagesResponse = (data) => {
60
+ var unmarshalListLocalImagesResponse = (data) => {
60
61
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListLocalImagesResponse' failed as data isn't a dictionary.`);
61
62
  return {
62
63
  localImages: unmarshalArrayOfObject(data.local_images, unmarshalLocalImage),
63
64
  totalCount: data.total_count
64
65
  };
65
66
  };
66
- const unmarshalListVersionsResponse = (data) => {
67
+ var unmarshalListVersionsResponse = (data) => {
67
68
  if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListVersionsResponse' failed as data isn't a dictionary.`);
68
69
  return {
69
70
  totalCount: data.total_count,
70
71
  versions: unmarshalArrayOfObject(data.versions, unmarshalVersion)
71
72
  };
72
73
  };
74
+ //#endregion
73
75
  export { unmarshalCategory, unmarshalImage, unmarshalListCategoriesResponse, unmarshalListImagesResponse, unmarshalListLocalImagesResponse, unmarshalListVersionsResponse, unmarshalLocalImage, unmarshalVersion };
@@ -0,0 +1,90 @@
1
+ export declare const queriesMetadata: {
2
+ readonly namespace: "marketplace";
3
+ readonly version: "v2";
4
+ readonly folderName: "marketplacev2";
5
+ readonly services: readonly [{
6
+ readonly apiClass: "API";
7
+ readonly methods: readonly [{
8
+ readonly methodName: "listImages";
9
+ readonly protoName: "ListImages";
10
+ readonly paramsType: "ListImagesRequest";
11
+ readonly returnType: "ListImagesResponse";
12
+ readonly isList: true;
13
+ readonly paginationType: "offset";
14
+ readonly pageParamKey: "page";
15
+ readonly listItemType: "Image";
16
+ readonly isPrivate: false;
17
+ readonly description: "\"";
18
+ }, {
19
+ readonly methodName: "getImage";
20
+ readonly protoName: "GetImage";
21
+ readonly paramsType: "GetImageRequest";
22
+ readonly returnType: "Image";
23
+ readonly isList: false;
24
+ readonly paginationType: "none";
25
+ readonly isPrivate: false;
26
+ readonly description: "\"";
27
+ }, {
28
+ readonly methodName: "listVersions";
29
+ readonly protoName: "ListVersions";
30
+ readonly paramsType: "ListVersionsRequest";
31
+ readonly returnType: "ListVersionsResponse";
32
+ readonly isList: true;
33
+ readonly paginationType: "offset";
34
+ readonly pageParamKey: "page";
35
+ readonly listItemType: "Version";
36
+ readonly isPrivate: false;
37
+ readonly description: "\"";
38
+ }, {
39
+ readonly methodName: "getVersion";
40
+ readonly protoName: "GetVersion";
41
+ readonly paramsType: "GetVersionRequest";
42
+ readonly returnType: "Version";
43
+ readonly isList: false;
44
+ readonly paginationType: "none";
45
+ readonly isPrivate: false;
46
+ readonly description: "\"";
47
+ }, {
48
+ readonly methodName: "listLocalImages";
49
+ readonly protoName: "ListLocalImages";
50
+ readonly paramsType: "ListLocalImagesRequest";
51
+ readonly returnType: "ListLocalImagesResponse";
52
+ readonly isList: true;
53
+ readonly paginationType: "offset";
54
+ readonly pageParamKey: "page";
55
+ readonly listItemType: "LocalImage";
56
+ readonly isPrivate: false;
57
+ readonly description: "\"";
58
+ }, {
59
+ readonly methodName: "getLocalImage";
60
+ readonly protoName: "GetLocalImage";
61
+ readonly paramsType: "GetLocalImageRequest";
62
+ readonly returnType: "LocalImage";
63
+ readonly isList: false;
64
+ readonly paginationType: "none";
65
+ readonly isPrivate: false;
66
+ readonly description: "\"";
67
+ }, {
68
+ readonly methodName: "listCategories";
69
+ readonly protoName: "ListCategories";
70
+ readonly paramsType: "ListCategoriesRequest";
71
+ readonly returnType: "ListCategoriesResponse";
72
+ readonly isList: true;
73
+ readonly paginationType: "offset";
74
+ readonly pageParamKey: "page";
75
+ readonly listItemType: "Category";
76
+ readonly isPrivate: false;
77
+ readonly description: "\"";
78
+ }, {
79
+ readonly methodName: "getCategory";
80
+ readonly protoName: "GetCategory";
81
+ readonly paramsType: "GetCategoryRequest";
82
+ readonly returnType: "Category";
83
+ readonly isList: false;
84
+ readonly paginationType: "none";
85
+ readonly isPrivate: false;
86
+ readonly description: "\"";
87
+ }];
88
+ }];
89
+ };
90
+ export type QueriesMetadata = typeof queriesMetadata;
@@ -0,0 +1,101 @@
1
+ //#region src/v2/metadata.gen.ts
2
+ var queriesMetadata = {
3
+ namespace: "marketplace",
4
+ version: "v2",
5
+ folderName: "marketplacev2",
6
+ services: [{
7
+ apiClass: "API",
8
+ methods: [
9
+ {
10
+ methodName: "listImages",
11
+ protoName: "ListImages",
12
+ paramsType: "ListImagesRequest",
13
+ returnType: "ListImagesResponse",
14
+ isList: true,
15
+ paginationType: "offset",
16
+ pageParamKey: "page",
17
+ listItemType: "Image",
18
+ isPrivate: false,
19
+ description: "\""
20
+ },
21
+ {
22
+ methodName: "getImage",
23
+ protoName: "GetImage",
24
+ paramsType: "GetImageRequest",
25
+ returnType: "Image",
26
+ isList: false,
27
+ paginationType: "none",
28
+ isPrivate: false,
29
+ description: "\""
30
+ },
31
+ {
32
+ methodName: "listVersions",
33
+ protoName: "ListVersions",
34
+ paramsType: "ListVersionsRequest",
35
+ returnType: "ListVersionsResponse",
36
+ isList: true,
37
+ paginationType: "offset",
38
+ pageParamKey: "page",
39
+ listItemType: "Version",
40
+ isPrivate: false,
41
+ description: "\""
42
+ },
43
+ {
44
+ methodName: "getVersion",
45
+ protoName: "GetVersion",
46
+ paramsType: "GetVersionRequest",
47
+ returnType: "Version",
48
+ isList: false,
49
+ paginationType: "none",
50
+ isPrivate: false,
51
+ description: "\""
52
+ },
53
+ {
54
+ methodName: "listLocalImages",
55
+ protoName: "ListLocalImages",
56
+ paramsType: "ListLocalImagesRequest",
57
+ returnType: "ListLocalImagesResponse",
58
+ isList: true,
59
+ paginationType: "offset",
60
+ pageParamKey: "page",
61
+ listItemType: "LocalImage",
62
+ isPrivate: false,
63
+ description: "\""
64
+ },
65
+ {
66
+ methodName: "getLocalImage",
67
+ protoName: "GetLocalImage",
68
+ paramsType: "GetLocalImageRequest",
69
+ returnType: "LocalImage",
70
+ isList: false,
71
+ paginationType: "none",
72
+ isPrivate: false,
73
+ description: "\""
74
+ },
75
+ {
76
+ methodName: "listCategories",
77
+ protoName: "ListCategories",
78
+ paramsType: "ListCategoriesRequest",
79
+ returnType: "ListCategoriesResponse",
80
+ isList: true,
81
+ paginationType: "offset",
82
+ pageParamKey: "page",
83
+ listItemType: "Category",
84
+ isPrivate: false,
85
+ description: "\""
86
+ },
87
+ {
88
+ methodName: "getCategory",
89
+ protoName: "GetCategory",
90
+ paramsType: "GetCategoryRequest",
91
+ returnType: "Category",
92
+ isList: false,
93
+ paginationType: "none",
94
+ isPrivate: false,
95
+ description: "\""
96
+ }
97
+ ]
98
+ }]
99
+ };
100
+ //#endregion
101
+ export { queriesMetadata };
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-marketplace",
3
- "version": "2.3.1",
3
+ "version": "2.3.3",
4
4
  "description": "Scaleway SDK marketplace",
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",