@wakata-dev/api-client 0.5.0 → 0.6.0
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.cjs +102 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +966 -165
- package/dist/index.d.ts +966 -165
- package/dist/index.js +102 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1119,6 +1119,98 @@ var projectControllerCreate = (options) => {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
});
|
|
1121
1121
|
};
|
|
1122
|
+
var jobControllerList = (options) => {
|
|
1123
|
+
return (options?.client ?? client).get({
|
|
1124
|
+
security: [
|
|
1125
|
+
{
|
|
1126
|
+
scheme: "bearer",
|
|
1127
|
+
type: "http"
|
|
1128
|
+
}
|
|
1129
|
+
],
|
|
1130
|
+
url: "/job/list",
|
|
1131
|
+
...options
|
|
1132
|
+
});
|
|
1133
|
+
};
|
|
1134
|
+
var jobControllerDelete = (options) => {
|
|
1135
|
+
return (options.client ?? client).delete({
|
|
1136
|
+
security: [
|
|
1137
|
+
{
|
|
1138
|
+
scheme: "bearer",
|
|
1139
|
+
type: "http"
|
|
1140
|
+
}
|
|
1141
|
+
],
|
|
1142
|
+
url: "/job/{id}",
|
|
1143
|
+
...options
|
|
1144
|
+
});
|
|
1145
|
+
};
|
|
1146
|
+
var jobControllerGet = (options) => {
|
|
1147
|
+
return (options.client ?? client).get({
|
|
1148
|
+
security: [
|
|
1149
|
+
{
|
|
1150
|
+
scheme: "bearer",
|
|
1151
|
+
type: "http"
|
|
1152
|
+
}
|
|
1153
|
+
],
|
|
1154
|
+
url: "/job/{id}",
|
|
1155
|
+
...options
|
|
1156
|
+
});
|
|
1157
|
+
};
|
|
1158
|
+
var jobControllerUpdate = (options) => {
|
|
1159
|
+
return (options.client ?? client).patch({
|
|
1160
|
+
security: [
|
|
1161
|
+
{
|
|
1162
|
+
scheme: "bearer",
|
|
1163
|
+
type: "http"
|
|
1164
|
+
}
|
|
1165
|
+
],
|
|
1166
|
+
url: "/job/{id}",
|
|
1167
|
+
...options,
|
|
1168
|
+
headers: {
|
|
1169
|
+
"Content-Type": "application/json",
|
|
1170
|
+
...options?.headers
|
|
1171
|
+
}
|
|
1172
|
+
});
|
|
1173
|
+
};
|
|
1174
|
+
var jobControllerListAssignments = (options) => {
|
|
1175
|
+
return (options.client ?? client).get({
|
|
1176
|
+
security: [
|
|
1177
|
+
{
|
|
1178
|
+
scheme: "bearer",
|
|
1179
|
+
type: "http"
|
|
1180
|
+
}
|
|
1181
|
+
],
|
|
1182
|
+
url: "/job/{id}/assignments",
|
|
1183
|
+
...options
|
|
1184
|
+
});
|
|
1185
|
+
};
|
|
1186
|
+
var jobControllerListRequirements = (options) => {
|
|
1187
|
+
return (options.client ?? client).get({
|
|
1188
|
+
security: [
|
|
1189
|
+
{
|
|
1190
|
+
scheme: "bearer",
|
|
1191
|
+
type: "http"
|
|
1192
|
+
}
|
|
1193
|
+
],
|
|
1194
|
+
url: "/job/{id}/requirements",
|
|
1195
|
+
...options
|
|
1196
|
+
});
|
|
1197
|
+
};
|
|
1198
|
+
var jobControllerCreate = (options) => {
|
|
1199
|
+
return (options.client ?? client).post({
|
|
1200
|
+
security: [
|
|
1201
|
+
{
|
|
1202
|
+
scheme: "bearer",
|
|
1203
|
+
type: "http"
|
|
1204
|
+
}
|
|
1205
|
+
],
|
|
1206
|
+
url: "/job",
|
|
1207
|
+
...options,
|
|
1208
|
+
headers: {
|
|
1209
|
+
"Content-Type": "application/json",
|
|
1210
|
+
...options?.headers
|
|
1211
|
+
}
|
|
1212
|
+
});
|
|
1213
|
+
};
|
|
1122
1214
|
var customerControllerList = (options) => {
|
|
1123
1215
|
return (options?.client ?? client).get({
|
|
1124
1216
|
security: [
|
|
@@ -1430,7 +1522,7 @@ var siteControllerUpdateSite = (options) => {
|
|
|
1430
1522
|
|
|
1431
1523
|
// src/client.ts
|
|
1432
1524
|
var DEFAULT_BASE_URL = "https://api.wakata.ai/api/v1";
|
|
1433
|
-
var PACKAGE_VERSION = "0.
|
|
1525
|
+
var PACKAGE_VERSION = "0.6.0";
|
|
1434
1526
|
function unwrap(result) {
|
|
1435
1527
|
if (result.data === void 0) {
|
|
1436
1528
|
throw new WakataApiError({
|
|
@@ -1692,6 +1784,15 @@ var WakataClient = class {
|
|
|
1692
1784
|
assets: async (opts) => unwrap(await projectControllerListAssets({ ...opts, client: client2 })),
|
|
1693
1785
|
users: async (opts) => unwrap(await projectControllerListUsers({ ...opts, client: client2 }))
|
|
1694
1786
|
};
|
|
1787
|
+
this.jobs = {
|
|
1788
|
+
list: async (opts) => unwrap(await jobControllerList({ ...opts ?? {}, client: client2 })),
|
|
1789
|
+
get: async (opts) => unwrap(await jobControllerGet({ ...opts, client: client2 })),
|
|
1790
|
+
create: async (opts) => unwrap(await jobControllerCreate({ ...opts, client: client2 })),
|
|
1791
|
+
update: async (opts) => unwrap(await jobControllerUpdate({ ...opts, client: client2 })),
|
|
1792
|
+
delete: async (opts) => unwrap(await jobControllerDelete({ ...opts, client: client2 })),
|
|
1793
|
+
assignments: async (opts) => unwrap(await jobControllerListAssignments({ ...opts, client: client2 })),
|
|
1794
|
+
requirements: async (opts) => unwrap(await jobControllerListRequirements({ ...opts, client: client2 }))
|
|
1795
|
+
};
|
|
1695
1796
|
}
|
|
1696
1797
|
};
|
|
1697
1798
|
|