@scaleway/sdk-file 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.
- package/dist/_virtual/_rolldown/runtime.js +2 -0
- package/dist/v1alpha1/api.gen.js +5 -3
- package/dist/v1alpha1/content.gen.js +3 -1
- package/dist/v1alpha1/index.gen.js +3 -1
- package/dist/v1alpha1/marshalling.gen.js +7 -5
- package/dist/v1alpha1/types.gen.js +0 -0
- package/dist/v1alpha1/validation-rules.gen.js +7 -5
- package/package.json +5 -5
|
@@ -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/v1alpha1/api.gen.js
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { FILE_SYSTEM_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
2
2
|
import { marshalCreateFileSystemRequest, marshalUpdateFileSystemRequest, unmarshalFileSystem, unmarshalListAttachmentsResponse, unmarshalListFileSystemsResponse } 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/v1alpha1/api.gen.ts
|
|
4
5
|
var jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
5
6
|
/**
|
|
6
7
|
* File Storage API.
|
|
7
8
|
|
|
8
9
|
This API allows you to manage your File Storage 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'}
|
|
@@ -90,4 +91,5 @@ var API$1 = class extends API {
|
|
|
90
91
|
path: `/file/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/filesystems/${validatePathParam("filesystemId", request.filesystemId)}`
|
|
91
92
|
}, unmarshalFileSystem);
|
|
92
93
|
};
|
|
93
|
-
|
|
94
|
+
//#endregion
|
|
95
|
+
export { API };
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
//#region src/v1alpha1/content.gen.ts
|
|
1
2
|
/** Lists transient statutes of the enum {@link FileSystemStatus}. */
|
|
2
|
-
|
|
3
|
+
var FILE_SYSTEM_TRANSIENT_STATUSES = ["creating", "updating"];
|
|
4
|
+
//#endregion
|
|
3
5
|
export { FILE_SYSTEM_TRANSIENT_STATUSES };
|
|
@@ -3,6 +3,7 @@ import { FILE_SYSTEM_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
|
3
3
|
import { marshalCreateFileSystemRequest, marshalUpdateFileSystemRequest, unmarshalFileSystem, unmarshalListAttachmentsResponse, unmarshalListFileSystemsResponse } from "./marshalling.gen.js";
|
|
4
4
|
import { API } from "./api.gen.js";
|
|
5
5
|
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
6
|
+
//#region src/v1alpha1/index.gen.ts
|
|
6
7
|
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
7
8
|
API: () => API,
|
|
8
9
|
FILE_SYSTEM_TRANSIENT_STATUSES: () => FILE_SYSTEM_TRANSIENT_STATUSES,
|
|
@@ -13,4 +14,5 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
13
14
|
unmarshalListAttachmentsResponse: () => unmarshalListAttachmentsResponse,
|
|
14
15
|
unmarshalListFileSystemsResponse: () => unmarshalListFileSystemsResponse
|
|
15
16
|
});
|
|
16
|
-
|
|
17
|
+
//#endregion
|
|
18
|
+
export { API, FILE_SYSTEM_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalCreateFileSystemRequest, marshalUpdateFileSystemRequest, unmarshalFileSystem, unmarshalListAttachmentsResponse, unmarshalListFileSystemsResponse };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { isJSONObject, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
|
|
2
|
-
|
|
2
|
+
//#region src/v1alpha1/marshalling.gen.ts
|
|
3
|
+
var unmarshalFileSystem = (data) => {
|
|
3
4
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'FileSystem' failed as data isn't a dictionary.`);
|
|
4
5
|
return {
|
|
5
6
|
createdAt: unmarshalDate(data.created_at),
|
|
@@ -25,29 +26,30 @@ var unmarshalAttachment = (data) => {
|
|
|
25
26
|
zone: data.zone
|
|
26
27
|
};
|
|
27
28
|
};
|
|
28
|
-
|
|
29
|
+
var unmarshalListAttachmentsResponse = (data) => {
|
|
29
30
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListAttachmentsResponse' failed as data isn't a dictionary.`);
|
|
30
31
|
return {
|
|
31
32
|
attachments: unmarshalArrayOfObject(data.attachments, unmarshalAttachment),
|
|
32
33
|
totalCount: data.total_count
|
|
33
34
|
};
|
|
34
35
|
};
|
|
35
|
-
|
|
36
|
+
var unmarshalListFileSystemsResponse = (data) => {
|
|
36
37
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListFileSystemsResponse' failed as data isn't a dictionary.`);
|
|
37
38
|
return {
|
|
38
39
|
filesystems: unmarshalArrayOfObject(data.filesystems, unmarshalFileSystem),
|
|
39
40
|
totalCount: data.total_count
|
|
40
41
|
};
|
|
41
42
|
};
|
|
42
|
-
|
|
43
|
+
var marshalCreateFileSystemRequest = (request, defaults) => ({
|
|
43
44
|
name: request.name,
|
|
44
45
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
45
46
|
size: request.size,
|
|
46
47
|
tags: request.tags
|
|
47
48
|
});
|
|
48
|
-
|
|
49
|
+
var marshalUpdateFileSystemRequest = (request, defaults) => ({
|
|
49
50
|
name: request.name,
|
|
50
51
|
size: request.size,
|
|
51
52
|
tags: request.tags
|
|
52
53
|
});
|
|
54
|
+
//#endregion
|
|
53
55
|
export { marshalCreateFileSystemRequest, marshalUpdateFileSystemRequest, unmarshalFileSystem, unmarshalListAttachmentsResponse, unmarshalListFileSystemsResponse };
|
|
File without changes
|
|
@@ -1,30 +1,32 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
//#region src/v1alpha1/validation-rules.gen.ts
|
|
2
3
|
var validation_rules_gen_exports = /* @__PURE__ */ __exportAll({
|
|
3
4
|
CreateFileSystemRequest: () => CreateFileSystemRequest,
|
|
4
5
|
ListAttachmentsRequest: () => ListAttachmentsRequest,
|
|
5
6
|
ListFileSystemsRequest: () => ListFileSystemsRequest,
|
|
6
7
|
UpdateFileSystemRequest: () => UpdateFileSystemRequest
|
|
7
8
|
});
|
|
8
|
-
|
|
9
|
+
var CreateFileSystemRequest = {
|
|
9
10
|
name: { minLength: 1 },
|
|
10
11
|
size: { greaterThan: 0 }
|
|
11
12
|
};
|
|
12
|
-
|
|
13
|
+
var ListAttachmentsRequest = {
|
|
13
14
|
page: { greaterThan: 0 },
|
|
14
15
|
pageSize: {
|
|
15
16
|
greaterThan: 0,
|
|
16
17
|
lessThanOrEqual: 100
|
|
17
18
|
}
|
|
18
19
|
};
|
|
19
|
-
|
|
20
|
+
var ListFileSystemsRequest = {
|
|
20
21
|
page: { greaterThan: 0 },
|
|
21
22
|
pageSize: {
|
|
22
23
|
greaterThan: 0,
|
|
23
24
|
lessThanOrEqual: 100
|
|
24
25
|
}
|
|
25
26
|
};
|
|
26
|
-
|
|
27
|
+
var UpdateFileSystemRequest = {
|
|
27
28
|
name: { minLength: 1 },
|
|
28
29
|
size: { greaterThan: 0 }
|
|
29
30
|
};
|
|
30
|
-
|
|
31
|
+
//#endregion
|
|
32
|
+
export { CreateFileSystemRequest, ListAttachmentsRequest, ListFileSystemsRequest, UpdateFileSystemRequest, validation_rules_gen_exports };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-file",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"description": "Scaleway SDK file",
|
|
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",
|