@vulog/aima-config 1.1.50 → 1.1.52
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/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
- package/src/label.ts +2 -2
package/dist/index.js
CHANGED
|
@@ -59,7 +59,7 @@ var getFleetConf = async (client) => {
|
|
|
59
59
|
// src/label.ts
|
|
60
60
|
var import_zod = require("zod");
|
|
61
61
|
var getLabels = async (client) => {
|
|
62
|
-
return client.get(`boapi/proxy/user/fleets/${client.clientOptions.fleetId}/labels`).then(({ data }) => data);
|
|
62
|
+
return client.get(`boapi/proxy/user/fleets/${client.clientOptions.fleetId}/labels`).then(({ data }) => data.content);
|
|
63
63
|
};
|
|
64
64
|
var schemaData = import_zod.z.object({
|
|
65
65
|
name: import_zod.z.string().nonempty()
|
package/dist/index.mjs
CHANGED
|
@@ -26,7 +26,7 @@ var getFleetConf = async (client) => {
|
|
|
26
26
|
// src/label.ts
|
|
27
27
|
import { z } from "zod";
|
|
28
28
|
var getLabels = async (client) => {
|
|
29
|
-
return client.get(`boapi/proxy/user/fleets/${client.clientOptions.fleetId}/labels`).then(({ data }) => data);
|
|
29
|
+
return client.get(`boapi/proxy/user/fleets/${client.clientOptions.fleetId}/labels`).then(({ data }) => data.content);
|
|
30
30
|
};
|
|
31
31
|
var schemaData = z.object({
|
|
32
32
|
name: z.string().nonempty()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vulog/aima-config",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.52",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/index.mjs",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"author": "Vulog",
|
|
20
20
|
"license": "ISC",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@vulog/aima-client": "1.1.
|
|
23
|
-
"@vulog/aima-core": "1.1.
|
|
22
|
+
"@vulog/aima-client": "1.1.52",
|
|
23
|
+
"@vulog/aima-core": "1.1.52"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
26
|
"zod": "^3.24.2"
|
package/src/label.ts
CHANGED
|
@@ -9,8 +9,8 @@ export type Label = {
|
|
|
9
9
|
|
|
10
10
|
export const getLabels = async (client: Client) => {
|
|
11
11
|
return client
|
|
12
|
-
.get<Label[]>(`boapi/proxy/user/fleets/${client.clientOptions.fleetId}/labels`)
|
|
13
|
-
.then(({ data }) => data);
|
|
12
|
+
.get<{ content: Label[] }>(`boapi/proxy/user/fleets/${client.clientOptions.fleetId}/labels`)
|
|
13
|
+
.then(({ data }) => data.content);
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
const schemaData = z.object({
|