@scaleway/sdk-test 2.3.1 → 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 { HUMAN_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
2
2
|
import { marshalCreateHumanRequest, marshalRegisterRequest, marshalUpdateHumanRequest, unmarshalHuman, unmarshalListHumansResponse, unmarshalRegisterResponse } from "./marshalling.gen.js";
|
|
3
|
-
import { API, enrichForPagination, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
3
|
+
import { API as API$1, enrichForPagination, 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
|
* Fake API.
|
|
7
8
|
|
|
8
9
|
No Auth Service for end-to-end testing.
|
|
9
10
|
*/
|
|
10
|
-
var API
|
|
11
|
+
var API = class extends API$1 {
|
|
11
12
|
/**
|
|
12
13
|
* Register a user. Register a human and return a access-key and a secret-key that must be used in all other commands.
|
|
13
14
|
|
|
@@ -112,4 +113,5 @@ var API$1 = class extends API {
|
|
|
112
113
|
path: `/test/v1/humans/${validatePathParam("humanId", request.humanId)}/smoke`
|
|
113
114
|
}, unmarshalHuman);
|
|
114
115
|
};
|
|
115
|
-
|
|
116
|
+
//#endregion
|
|
117
|
+
export { API };
|
package/dist/v1/content.gen.js
CHANGED
package/dist/v1/index.gen.js
CHANGED
|
@@ -2,6 +2,7 @@ import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
|
2
2
|
import { HUMAN_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
3
|
import { marshalCreateHumanRequest, marshalRegisterRequest, marshalUpdateHumanRequest, unmarshalHuman, unmarshalListHumansResponse, unmarshalRegisterResponse } 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
|
HUMAN_TRANSIENT_STATUSES: () => HUMAN_TRANSIENT_STATUSES,
|
|
@@ -12,4 +13,5 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
12
13
|
unmarshalListHumansResponse: () => unmarshalListHumansResponse,
|
|
13
14
|
unmarshalRegisterResponse: () => unmarshalRegisterResponse
|
|
14
15
|
});
|
|
15
|
-
|
|
16
|
+
//#endregion
|
|
17
|
+
export { API, HUMAN_TRANSIENT_STATUSES, index_gen_exports, marshalCreateHumanRequest, marshalRegisterRequest, marshalUpdateHumanRequest, unmarshalHuman, unmarshalListHumansResponse, unmarshalRegisterResponse };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { isJSONObject, resolveOneOf, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
|
|
2
|
-
|
|
2
|
+
//#region src/v1/marshalling.gen.ts
|
|
3
|
+
var unmarshalHuman = (data) => {
|
|
3
4
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Human' failed as data isn't a dictionary.`);
|
|
4
5
|
return {
|
|
5
6
|
altitudeInMeter: data.altitude_in_meter,
|
|
@@ -19,21 +20,21 @@ const unmarshalHuman = (data) => {
|
|
|
19
20
|
updatedAt: unmarshalDate(data.updated_at)
|
|
20
21
|
};
|
|
21
22
|
};
|
|
22
|
-
|
|
23
|
+
var unmarshalListHumansResponse = (data) => {
|
|
23
24
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListHumansResponse' failed as data isn't a dictionary.`);
|
|
24
25
|
return {
|
|
25
26
|
humans: unmarshalArrayOfObject(data.humans, unmarshalHuman),
|
|
26
27
|
totalCount: data.total_count
|
|
27
28
|
};
|
|
28
29
|
};
|
|
29
|
-
|
|
30
|
+
var unmarshalRegisterResponse = (data) => {
|
|
30
31
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'RegisterResponse' failed as data isn't a dictionary.`);
|
|
31
32
|
return {
|
|
32
33
|
accessKey: data.access_key,
|
|
33
34
|
secretKey: data.secret_key
|
|
34
35
|
};
|
|
35
36
|
};
|
|
36
|
-
|
|
37
|
+
var marshalCreateHumanRequest = (request, defaults) => ({
|
|
37
38
|
altitude_in_meter: request.altitudeInMeter,
|
|
38
39
|
altitude_in_millimeter: request.altitudeInMillimeter,
|
|
39
40
|
eyes_color: request.eyesColor,
|
|
@@ -53,8 +54,8 @@ const marshalCreateHumanRequest = (request, defaults) => ({
|
|
|
53
54
|
value: request.organizationId
|
|
54
55
|
}])
|
|
55
56
|
});
|
|
56
|
-
|
|
57
|
-
|
|
57
|
+
var marshalRegisterRequest = (request, defaults) => ({ username: request.username });
|
|
58
|
+
var marshalUpdateHumanRequest = (request, defaults) => ({
|
|
58
59
|
altitude_in_meter: request.altitudeInMeter,
|
|
59
60
|
altitude_in_millimeter: request.altitudeInMillimeter,
|
|
60
61
|
eyes_color: request.eyesColor,
|
|
@@ -65,4 +66,5 @@ const marshalUpdateHumanRequest = (request, defaults) => ({
|
|
|
65
66
|
name: request.name,
|
|
66
67
|
shoe_size: request.shoeSize
|
|
67
68
|
});
|
|
69
|
+
//#endregion
|
|
68
70
|
export { marshalCreateHumanRequest, marshalRegisterRequest, marshalUpdateHumanRequest, unmarshalHuman, unmarshalListHumansResponse, unmarshalRegisterResponse };
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-test",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.2",
|
|
4
4
|
"description": "Scaleway SDK test",
|
|
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",
|