@scaleway/sdk-registry 2.3.0 → 2.3.2
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 };
|
package/dist/v1/api.gen.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { IMAGE_TRANSIENT_STATUSES, NAMESPACE_TRANSIENT_STATUSES, TAG_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
2
2
|
import { marshalCreateNamespaceRequest, marshalUpdateImageRequest, marshalUpdateNamespaceRequest, unmarshalImage, unmarshalListImagesResponse, unmarshalListNamespacesResponse, unmarshalListTagsResponse, unmarshalNamespace, unmarshalTag } from "./marshalling.gen.js";
|
|
3
|
-
import { API, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
3
|
+
import { API as API$1, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
4
|
+
//#region src/v1/api.gen.ts
|
|
4
5
|
var jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
5
6
|
/**
|
|
6
7
|
* Container Registry API.
|
|
7
8
|
|
|
8
9
|
This API allows you to manage your Container Registry resources.
|
|
9
10
|
*/
|
|
10
|
-
var API
|
|
11
|
+
var API = class extends API$1 {
|
|
11
12
|
/**
|
|
12
13
|
* Locality of this API.
|
|
13
14
|
* type ∈ {'zone','region','global','unspecified'}
|
|
@@ -175,4 +176,5 @@ var API$1 = class extends API {
|
|
|
175
176
|
urlParams: urlParams(["force", request.force])
|
|
176
177
|
}, unmarshalTag);
|
|
177
178
|
};
|
|
178
|
-
|
|
179
|
+
//#endregion
|
|
180
|
+
export { API };
|
package/dist/v1/content.gen.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
//#region src/v1/content.gen.ts
|
|
1
2
|
/** Lists transient statutes of the enum {@link ImageStatus}. */
|
|
2
|
-
|
|
3
|
+
var IMAGE_TRANSIENT_STATUSES = ["deleting"];
|
|
3
4
|
/** Lists transient statutes of the enum {@link NamespaceStatus}. */
|
|
4
|
-
|
|
5
|
+
var NAMESPACE_TRANSIENT_STATUSES = ["deleting"];
|
|
5
6
|
/** Lists transient statutes of the enum {@link TagStatus}. */
|
|
6
|
-
|
|
7
|
+
var TAG_TRANSIENT_STATUSES = ["deleting"];
|
|
8
|
+
//#endregion
|
|
7
9
|
export { IMAGE_TRANSIENT_STATUSES, NAMESPACE_TRANSIENT_STATUSES, TAG_TRANSIENT_STATUSES };
|
package/dist/v1/index.gen.js
CHANGED
|
@@ -2,6 +2,7 @@ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
|
2
2
|
import { IMAGE_TRANSIENT_STATUSES, NAMESPACE_TRANSIENT_STATUSES, TAG_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
3
|
import { marshalCreateNamespaceRequest, marshalUpdateImageRequest, marshalUpdateNamespaceRequest, unmarshalImage, unmarshalListImagesResponse, unmarshalListNamespacesResponse, unmarshalListTagsResponse, unmarshalNamespace, unmarshalTag } from "./marshalling.gen.js";
|
|
4
4
|
import { API } from "./api.gen.js";
|
|
5
|
+
//#region src/v1/index.gen.ts
|
|
5
6
|
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
6
7
|
API: () => API,
|
|
7
8
|
IMAGE_TRANSIENT_STATUSES: () => IMAGE_TRANSIENT_STATUSES,
|
|
@@ -17,4 +18,5 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
17
18
|
unmarshalNamespace: () => unmarshalNamespace,
|
|
18
19
|
unmarshalTag: () => unmarshalTag
|
|
19
20
|
});
|
|
20
|
-
|
|
21
|
+
//#endregion
|
|
22
|
+
export { API, IMAGE_TRANSIENT_STATUSES, NAMESPACE_TRANSIENT_STATUSES, TAG_TRANSIENT_STATUSES, index_gen_exports, marshalCreateNamespaceRequest, marshalUpdateImageRequest, marshalUpdateNamespaceRequest, unmarshalImage, unmarshalListImagesResponse, unmarshalListNamespacesResponse, unmarshalListTagsResponse, unmarshalNamespace, unmarshalTag };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
|
|
2
2
|
import randomName from "@scaleway/random-name";
|
|
3
|
-
|
|
3
|
+
//#region src/v1/marshalling.gen.ts
|
|
4
|
+
var unmarshalImage = (data) => {
|
|
4
5
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Image' failed as data isn't a dictionary.`);
|
|
5
6
|
return {
|
|
6
7
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -15,7 +16,7 @@ const unmarshalImage = (data) => {
|
|
|
15
16
|
visibility: data.visibility
|
|
16
17
|
};
|
|
17
18
|
};
|
|
18
|
-
|
|
19
|
+
var unmarshalNamespace = (data) => {
|
|
19
20
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Namespace' failed as data isn't a dictionary.`);
|
|
20
21
|
return {
|
|
21
22
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -34,7 +35,7 @@ const unmarshalNamespace = (data) => {
|
|
|
34
35
|
updatedAt: unmarshalDate(data.updated_at)
|
|
35
36
|
};
|
|
36
37
|
};
|
|
37
|
-
|
|
38
|
+
var unmarshalTag = (data) => {
|
|
38
39
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Tag' failed as data isn't a dictionary.`);
|
|
39
40
|
return {
|
|
40
41
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -46,28 +47,28 @@ const unmarshalTag = (data) => {
|
|
|
46
47
|
updatedAt: unmarshalDate(data.updated_at)
|
|
47
48
|
};
|
|
48
49
|
};
|
|
49
|
-
|
|
50
|
+
var unmarshalListImagesResponse = (data) => {
|
|
50
51
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListImagesResponse' failed as data isn't a dictionary.`);
|
|
51
52
|
return {
|
|
52
53
|
images: unmarshalArrayOfObject(data.images, unmarshalImage),
|
|
53
54
|
totalCount: data.total_count
|
|
54
55
|
};
|
|
55
56
|
};
|
|
56
|
-
|
|
57
|
+
var unmarshalListNamespacesResponse = (data) => {
|
|
57
58
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListNamespacesResponse' failed as data isn't a dictionary.`);
|
|
58
59
|
return {
|
|
59
60
|
namespaces: unmarshalArrayOfObject(data.namespaces, unmarshalNamespace),
|
|
60
61
|
totalCount: data.total_count
|
|
61
62
|
};
|
|
62
63
|
};
|
|
63
|
-
|
|
64
|
+
var unmarshalListTagsResponse = (data) => {
|
|
64
65
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListTagsResponse' failed as data isn't a dictionary.`);
|
|
65
66
|
return {
|
|
66
67
|
tags: unmarshalArrayOfObject(data.tags, unmarshalTag),
|
|
67
68
|
totalCount: data.total_count
|
|
68
69
|
};
|
|
69
70
|
};
|
|
70
|
-
|
|
71
|
+
var marshalCreateNamespaceRequest = (request, defaults) => ({
|
|
71
72
|
description: request.description,
|
|
72
73
|
is_public: request.isPublic,
|
|
73
74
|
name: request.name || randomName("ns"),
|
|
@@ -81,9 +82,10 @@ const marshalCreateNamespaceRequest = (request, defaults) => ({
|
|
|
81
82
|
value: request.organizationId
|
|
82
83
|
}])
|
|
83
84
|
});
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
var marshalUpdateImageRequest = (request, defaults) => ({ visibility: request.visibility });
|
|
86
|
+
var marshalUpdateNamespaceRequest = (request, defaults) => ({
|
|
86
87
|
description: request.description,
|
|
87
88
|
is_public: request.isPublic
|
|
88
89
|
});
|
|
90
|
+
//#endregion
|
|
89
91
|
export { marshalCreateNamespaceRequest, marshalUpdateImageRequest, marshalUpdateNamespaceRequest, unmarshalImage, unmarshalListImagesResponse, unmarshalListNamespacesResponse, unmarshalListTagsResponse, unmarshalNamespace, unmarshalTag };
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-registry",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"description": "Scaleway SDK registry",
|
|
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.
|
|
30
|
-
"@scaleway/sdk-std": "2.2.
|
|
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.
|
|
33
|
+
"@scaleway/sdk-client": "^2.2.2"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^2.2.
|
|
36
|
+
"@scaleway/sdk-client": "^2.2.2"
|
|
37
37
|
},
|
|
38
38
|
"scripts": {
|
|
39
39
|
"package:check": "pnpm publint",
|