@wakata-dev/api-client 0.5.0 → 0.7.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 +261 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1925 -236
- package/dist/index.d.ts +1925 -236
- package/dist/index.js +261 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1119,6 +1119,238 @@ 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
|
+
};
|
|
1214
|
+
var costCodeControllerList = (options) => {
|
|
1215
|
+
return (options?.client ?? client).get({
|
|
1216
|
+
security: [
|
|
1217
|
+
{
|
|
1218
|
+
scheme: "bearer",
|
|
1219
|
+
type: "http"
|
|
1220
|
+
}
|
|
1221
|
+
],
|
|
1222
|
+
url: "/cost-code/list",
|
|
1223
|
+
...options
|
|
1224
|
+
});
|
|
1225
|
+
};
|
|
1226
|
+
var costCodeControllerDelete = (options) => {
|
|
1227
|
+
return (options.client ?? client).delete({
|
|
1228
|
+
security: [
|
|
1229
|
+
{
|
|
1230
|
+
scheme: "bearer",
|
|
1231
|
+
type: "http"
|
|
1232
|
+
}
|
|
1233
|
+
],
|
|
1234
|
+
url: "/cost-code/{id}",
|
|
1235
|
+
...options
|
|
1236
|
+
});
|
|
1237
|
+
};
|
|
1238
|
+
var costCodeControllerGet = (options) => {
|
|
1239
|
+
return (options.client ?? client).get({
|
|
1240
|
+
security: [
|
|
1241
|
+
{
|
|
1242
|
+
scheme: "bearer",
|
|
1243
|
+
type: "http"
|
|
1244
|
+
}
|
|
1245
|
+
],
|
|
1246
|
+
url: "/cost-code/{id}",
|
|
1247
|
+
...options
|
|
1248
|
+
});
|
|
1249
|
+
};
|
|
1250
|
+
var costCodeControllerUpdate = (options) => {
|
|
1251
|
+
return (options.client ?? client).patch({
|
|
1252
|
+
security: [
|
|
1253
|
+
{
|
|
1254
|
+
scheme: "bearer",
|
|
1255
|
+
type: "http"
|
|
1256
|
+
}
|
|
1257
|
+
],
|
|
1258
|
+
url: "/cost-code/{id}",
|
|
1259
|
+
...options,
|
|
1260
|
+
headers: {
|
|
1261
|
+
"Content-Type": "application/json",
|
|
1262
|
+
...options?.headers
|
|
1263
|
+
}
|
|
1264
|
+
});
|
|
1265
|
+
};
|
|
1266
|
+
var costCodeControllerCreate = (options) => {
|
|
1267
|
+
return (options.client ?? client).post({
|
|
1268
|
+
security: [
|
|
1269
|
+
{
|
|
1270
|
+
scheme: "bearer",
|
|
1271
|
+
type: "http"
|
|
1272
|
+
}
|
|
1273
|
+
],
|
|
1274
|
+
url: "/cost-code",
|
|
1275
|
+
...options,
|
|
1276
|
+
headers: {
|
|
1277
|
+
"Content-Type": "application/json",
|
|
1278
|
+
...options?.headers
|
|
1279
|
+
}
|
|
1280
|
+
});
|
|
1281
|
+
};
|
|
1282
|
+
var permitTypeControllerList = (options) => {
|
|
1283
|
+
return (options?.client ?? client).get({
|
|
1284
|
+
security: [
|
|
1285
|
+
{
|
|
1286
|
+
scheme: "bearer",
|
|
1287
|
+
type: "http"
|
|
1288
|
+
}
|
|
1289
|
+
],
|
|
1290
|
+
url: "/permit-type/list",
|
|
1291
|
+
...options
|
|
1292
|
+
});
|
|
1293
|
+
};
|
|
1294
|
+
var permitTypeControllerGet = (options) => {
|
|
1295
|
+
return (options.client ?? client).get({
|
|
1296
|
+
security: [
|
|
1297
|
+
{
|
|
1298
|
+
scheme: "bearer",
|
|
1299
|
+
type: "http"
|
|
1300
|
+
}
|
|
1301
|
+
],
|
|
1302
|
+
url: "/permit-type/{id}",
|
|
1303
|
+
...options
|
|
1304
|
+
});
|
|
1305
|
+
};
|
|
1306
|
+
var timeLineControllerList = (options) => {
|
|
1307
|
+
return (options?.client ?? client).get({
|
|
1308
|
+
security: [
|
|
1309
|
+
{
|
|
1310
|
+
scheme: "bearer",
|
|
1311
|
+
type: "http"
|
|
1312
|
+
}
|
|
1313
|
+
],
|
|
1314
|
+
url: "/time-line/list",
|
|
1315
|
+
...options
|
|
1316
|
+
});
|
|
1317
|
+
};
|
|
1318
|
+
var timeLineControllerGet = (options) => {
|
|
1319
|
+
return (options.client ?? client).get({
|
|
1320
|
+
security: [
|
|
1321
|
+
{
|
|
1322
|
+
scheme: "bearer",
|
|
1323
|
+
type: "http"
|
|
1324
|
+
}
|
|
1325
|
+
],
|
|
1326
|
+
url: "/time-line/{id}",
|
|
1327
|
+
...options
|
|
1328
|
+
});
|
|
1329
|
+
};
|
|
1330
|
+
var approvalSchemeControllerList = (options) => {
|
|
1331
|
+
return (options?.client ?? client).get({
|
|
1332
|
+
security: [
|
|
1333
|
+
{
|
|
1334
|
+
scheme: "bearer",
|
|
1335
|
+
type: "http"
|
|
1336
|
+
}
|
|
1337
|
+
],
|
|
1338
|
+
url: "/approval-scheme/list",
|
|
1339
|
+
...options
|
|
1340
|
+
});
|
|
1341
|
+
};
|
|
1342
|
+
var approvalSchemeControllerGet = (options) => {
|
|
1343
|
+
return (options.client ?? client).get({
|
|
1344
|
+
security: [
|
|
1345
|
+
{
|
|
1346
|
+
scheme: "bearer",
|
|
1347
|
+
type: "http"
|
|
1348
|
+
}
|
|
1349
|
+
],
|
|
1350
|
+
url: "/approval-scheme/{id}",
|
|
1351
|
+
...options
|
|
1352
|
+
});
|
|
1353
|
+
};
|
|
1122
1354
|
var customerControllerList = (options) => {
|
|
1123
1355
|
return (options?.client ?? client).get({
|
|
1124
1356
|
security: [
|
|
@@ -1430,7 +1662,7 @@ var siteControllerUpdateSite = (options) => {
|
|
|
1430
1662
|
|
|
1431
1663
|
// src/client.ts
|
|
1432
1664
|
var DEFAULT_BASE_URL = "https://api.wakata.ai/api/v1";
|
|
1433
|
-
var PACKAGE_VERSION = "0.
|
|
1665
|
+
var PACKAGE_VERSION = "0.7.0";
|
|
1434
1666
|
function unwrap(result) {
|
|
1435
1667
|
if (result.data === void 0) {
|
|
1436
1668
|
throw new WakataApiError({
|
|
@@ -1692,6 +1924,34 @@ var WakataClient = class {
|
|
|
1692
1924
|
assets: async (opts) => unwrap(await projectControllerListAssets({ ...opts, client: client2 })),
|
|
1693
1925
|
users: async (opts) => unwrap(await projectControllerListUsers({ ...opts, client: client2 }))
|
|
1694
1926
|
};
|
|
1927
|
+
this.jobs = {
|
|
1928
|
+
list: async (opts) => unwrap(await jobControllerList({ ...opts ?? {}, client: client2 })),
|
|
1929
|
+
get: async (opts) => unwrap(await jobControllerGet({ ...opts, client: client2 })),
|
|
1930
|
+
create: async (opts) => unwrap(await jobControllerCreate({ ...opts, client: client2 })),
|
|
1931
|
+
update: async (opts) => unwrap(await jobControllerUpdate({ ...opts, client: client2 })),
|
|
1932
|
+
delete: async (opts) => unwrap(await jobControllerDelete({ ...opts, client: client2 })),
|
|
1933
|
+
assignments: async (opts) => unwrap(await jobControllerListAssignments({ ...opts, client: client2 })),
|
|
1934
|
+
requirements: async (opts) => unwrap(await jobControllerListRequirements({ ...opts, client: client2 }))
|
|
1935
|
+
};
|
|
1936
|
+
this.costCodes = {
|
|
1937
|
+
list: async (opts) => unwrap(await costCodeControllerList({ ...opts ?? {}, client: client2 })),
|
|
1938
|
+
get: async (opts) => unwrap(await costCodeControllerGet({ ...opts, client: client2 })),
|
|
1939
|
+
create: async (opts) => unwrap(await costCodeControllerCreate({ ...opts, client: client2 })),
|
|
1940
|
+
update: async (opts) => unwrap(await costCodeControllerUpdate({ ...opts, client: client2 })),
|
|
1941
|
+
delete: async (opts) => unwrap(await costCodeControllerDelete({ ...opts, client: client2 }))
|
|
1942
|
+
};
|
|
1943
|
+
this.permitTypes = {
|
|
1944
|
+
list: async (opts) => unwrap(await permitTypeControllerList({ ...opts ?? {}, client: client2 })),
|
|
1945
|
+
get: async (opts) => unwrap(await permitTypeControllerGet({ ...opts, client: client2 }))
|
|
1946
|
+
};
|
|
1947
|
+
this.timeLines = {
|
|
1948
|
+
list: async (opts) => unwrap(await timeLineControllerList({ ...opts ?? {}, client: client2 })),
|
|
1949
|
+
get: async (opts) => unwrap(await timeLineControllerGet({ ...opts, client: client2 }))
|
|
1950
|
+
};
|
|
1951
|
+
this.approvalSchemes = {
|
|
1952
|
+
list: async (opts) => unwrap(await approvalSchemeControllerList({ ...opts ?? {}, client: client2 })),
|
|
1953
|
+
get: async (opts) => unwrap(await approvalSchemeControllerGet({ ...opts, client: client2 }))
|
|
1954
|
+
};
|
|
1695
1955
|
}
|
|
1696
1956
|
};
|
|
1697
1957
|
|