@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.cjs
CHANGED
|
@@ -1121,6 +1121,238 @@ var projectControllerCreate = (options) => {
|
|
|
1121
1121
|
}
|
|
1122
1122
|
});
|
|
1123
1123
|
};
|
|
1124
|
+
var jobControllerList = (options) => {
|
|
1125
|
+
return (options?.client ?? client).get({
|
|
1126
|
+
security: [
|
|
1127
|
+
{
|
|
1128
|
+
scheme: "bearer",
|
|
1129
|
+
type: "http"
|
|
1130
|
+
}
|
|
1131
|
+
],
|
|
1132
|
+
url: "/job/list",
|
|
1133
|
+
...options
|
|
1134
|
+
});
|
|
1135
|
+
};
|
|
1136
|
+
var jobControllerDelete = (options) => {
|
|
1137
|
+
return (options.client ?? client).delete({
|
|
1138
|
+
security: [
|
|
1139
|
+
{
|
|
1140
|
+
scheme: "bearer",
|
|
1141
|
+
type: "http"
|
|
1142
|
+
}
|
|
1143
|
+
],
|
|
1144
|
+
url: "/job/{id}",
|
|
1145
|
+
...options
|
|
1146
|
+
});
|
|
1147
|
+
};
|
|
1148
|
+
var jobControllerGet = (options) => {
|
|
1149
|
+
return (options.client ?? client).get({
|
|
1150
|
+
security: [
|
|
1151
|
+
{
|
|
1152
|
+
scheme: "bearer",
|
|
1153
|
+
type: "http"
|
|
1154
|
+
}
|
|
1155
|
+
],
|
|
1156
|
+
url: "/job/{id}",
|
|
1157
|
+
...options
|
|
1158
|
+
});
|
|
1159
|
+
};
|
|
1160
|
+
var jobControllerUpdate = (options) => {
|
|
1161
|
+
return (options.client ?? client).patch({
|
|
1162
|
+
security: [
|
|
1163
|
+
{
|
|
1164
|
+
scheme: "bearer",
|
|
1165
|
+
type: "http"
|
|
1166
|
+
}
|
|
1167
|
+
],
|
|
1168
|
+
url: "/job/{id}",
|
|
1169
|
+
...options,
|
|
1170
|
+
headers: {
|
|
1171
|
+
"Content-Type": "application/json",
|
|
1172
|
+
...options?.headers
|
|
1173
|
+
}
|
|
1174
|
+
});
|
|
1175
|
+
};
|
|
1176
|
+
var jobControllerListAssignments = (options) => {
|
|
1177
|
+
return (options.client ?? client).get({
|
|
1178
|
+
security: [
|
|
1179
|
+
{
|
|
1180
|
+
scheme: "bearer",
|
|
1181
|
+
type: "http"
|
|
1182
|
+
}
|
|
1183
|
+
],
|
|
1184
|
+
url: "/job/{id}/assignments",
|
|
1185
|
+
...options
|
|
1186
|
+
});
|
|
1187
|
+
};
|
|
1188
|
+
var jobControllerListRequirements = (options) => {
|
|
1189
|
+
return (options.client ?? client).get({
|
|
1190
|
+
security: [
|
|
1191
|
+
{
|
|
1192
|
+
scheme: "bearer",
|
|
1193
|
+
type: "http"
|
|
1194
|
+
}
|
|
1195
|
+
],
|
|
1196
|
+
url: "/job/{id}/requirements",
|
|
1197
|
+
...options
|
|
1198
|
+
});
|
|
1199
|
+
};
|
|
1200
|
+
var jobControllerCreate = (options) => {
|
|
1201
|
+
return (options.client ?? client).post({
|
|
1202
|
+
security: [
|
|
1203
|
+
{
|
|
1204
|
+
scheme: "bearer",
|
|
1205
|
+
type: "http"
|
|
1206
|
+
}
|
|
1207
|
+
],
|
|
1208
|
+
url: "/job",
|
|
1209
|
+
...options,
|
|
1210
|
+
headers: {
|
|
1211
|
+
"Content-Type": "application/json",
|
|
1212
|
+
...options?.headers
|
|
1213
|
+
}
|
|
1214
|
+
});
|
|
1215
|
+
};
|
|
1216
|
+
var costCodeControllerList = (options) => {
|
|
1217
|
+
return (options?.client ?? client).get({
|
|
1218
|
+
security: [
|
|
1219
|
+
{
|
|
1220
|
+
scheme: "bearer",
|
|
1221
|
+
type: "http"
|
|
1222
|
+
}
|
|
1223
|
+
],
|
|
1224
|
+
url: "/cost-code/list",
|
|
1225
|
+
...options
|
|
1226
|
+
});
|
|
1227
|
+
};
|
|
1228
|
+
var costCodeControllerDelete = (options) => {
|
|
1229
|
+
return (options.client ?? client).delete({
|
|
1230
|
+
security: [
|
|
1231
|
+
{
|
|
1232
|
+
scheme: "bearer",
|
|
1233
|
+
type: "http"
|
|
1234
|
+
}
|
|
1235
|
+
],
|
|
1236
|
+
url: "/cost-code/{id}",
|
|
1237
|
+
...options
|
|
1238
|
+
});
|
|
1239
|
+
};
|
|
1240
|
+
var costCodeControllerGet = (options) => {
|
|
1241
|
+
return (options.client ?? client).get({
|
|
1242
|
+
security: [
|
|
1243
|
+
{
|
|
1244
|
+
scheme: "bearer",
|
|
1245
|
+
type: "http"
|
|
1246
|
+
}
|
|
1247
|
+
],
|
|
1248
|
+
url: "/cost-code/{id}",
|
|
1249
|
+
...options
|
|
1250
|
+
});
|
|
1251
|
+
};
|
|
1252
|
+
var costCodeControllerUpdate = (options) => {
|
|
1253
|
+
return (options.client ?? client).patch({
|
|
1254
|
+
security: [
|
|
1255
|
+
{
|
|
1256
|
+
scheme: "bearer",
|
|
1257
|
+
type: "http"
|
|
1258
|
+
}
|
|
1259
|
+
],
|
|
1260
|
+
url: "/cost-code/{id}",
|
|
1261
|
+
...options,
|
|
1262
|
+
headers: {
|
|
1263
|
+
"Content-Type": "application/json",
|
|
1264
|
+
...options?.headers
|
|
1265
|
+
}
|
|
1266
|
+
});
|
|
1267
|
+
};
|
|
1268
|
+
var costCodeControllerCreate = (options) => {
|
|
1269
|
+
return (options.client ?? client).post({
|
|
1270
|
+
security: [
|
|
1271
|
+
{
|
|
1272
|
+
scheme: "bearer",
|
|
1273
|
+
type: "http"
|
|
1274
|
+
}
|
|
1275
|
+
],
|
|
1276
|
+
url: "/cost-code",
|
|
1277
|
+
...options,
|
|
1278
|
+
headers: {
|
|
1279
|
+
"Content-Type": "application/json",
|
|
1280
|
+
...options?.headers
|
|
1281
|
+
}
|
|
1282
|
+
});
|
|
1283
|
+
};
|
|
1284
|
+
var permitTypeControllerList = (options) => {
|
|
1285
|
+
return (options?.client ?? client).get({
|
|
1286
|
+
security: [
|
|
1287
|
+
{
|
|
1288
|
+
scheme: "bearer",
|
|
1289
|
+
type: "http"
|
|
1290
|
+
}
|
|
1291
|
+
],
|
|
1292
|
+
url: "/permit-type/list",
|
|
1293
|
+
...options
|
|
1294
|
+
});
|
|
1295
|
+
};
|
|
1296
|
+
var permitTypeControllerGet = (options) => {
|
|
1297
|
+
return (options.client ?? client).get({
|
|
1298
|
+
security: [
|
|
1299
|
+
{
|
|
1300
|
+
scheme: "bearer",
|
|
1301
|
+
type: "http"
|
|
1302
|
+
}
|
|
1303
|
+
],
|
|
1304
|
+
url: "/permit-type/{id}",
|
|
1305
|
+
...options
|
|
1306
|
+
});
|
|
1307
|
+
};
|
|
1308
|
+
var timeLineControllerList = (options) => {
|
|
1309
|
+
return (options?.client ?? client).get({
|
|
1310
|
+
security: [
|
|
1311
|
+
{
|
|
1312
|
+
scheme: "bearer",
|
|
1313
|
+
type: "http"
|
|
1314
|
+
}
|
|
1315
|
+
],
|
|
1316
|
+
url: "/time-line/list",
|
|
1317
|
+
...options
|
|
1318
|
+
});
|
|
1319
|
+
};
|
|
1320
|
+
var timeLineControllerGet = (options) => {
|
|
1321
|
+
return (options.client ?? client).get({
|
|
1322
|
+
security: [
|
|
1323
|
+
{
|
|
1324
|
+
scheme: "bearer",
|
|
1325
|
+
type: "http"
|
|
1326
|
+
}
|
|
1327
|
+
],
|
|
1328
|
+
url: "/time-line/{id}",
|
|
1329
|
+
...options
|
|
1330
|
+
});
|
|
1331
|
+
};
|
|
1332
|
+
var approvalSchemeControllerList = (options) => {
|
|
1333
|
+
return (options?.client ?? client).get({
|
|
1334
|
+
security: [
|
|
1335
|
+
{
|
|
1336
|
+
scheme: "bearer",
|
|
1337
|
+
type: "http"
|
|
1338
|
+
}
|
|
1339
|
+
],
|
|
1340
|
+
url: "/approval-scheme/list",
|
|
1341
|
+
...options
|
|
1342
|
+
});
|
|
1343
|
+
};
|
|
1344
|
+
var approvalSchemeControllerGet = (options) => {
|
|
1345
|
+
return (options.client ?? client).get({
|
|
1346
|
+
security: [
|
|
1347
|
+
{
|
|
1348
|
+
scheme: "bearer",
|
|
1349
|
+
type: "http"
|
|
1350
|
+
}
|
|
1351
|
+
],
|
|
1352
|
+
url: "/approval-scheme/{id}",
|
|
1353
|
+
...options
|
|
1354
|
+
});
|
|
1355
|
+
};
|
|
1124
1356
|
var customerControllerList = (options) => {
|
|
1125
1357
|
return (options?.client ?? client).get({
|
|
1126
1358
|
security: [
|
|
@@ -1432,7 +1664,7 @@ var siteControllerUpdateSite = (options) => {
|
|
|
1432
1664
|
|
|
1433
1665
|
// src/client.ts
|
|
1434
1666
|
var DEFAULT_BASE_URL = "https://api.wakata.ai/api/v1";
|
|
1435
|
-
var PACKAGE_VERSION = "0.
|
|
1667
|
+
var PACKAGE_VERSION = "0.7.0";
|
|
1436
1668
|
function unwrap(result) {
|
|
1437
1669
|
if (result.data === void 0) {
|
|
1438
1670
|
throw new WakataApiError({
|
|
@@ -1694,6 +1926,34 @@ var WakataClient = class {
|
|
|
1694
1926
|
assets: async (opts) => unwrap(await projectControllerListAssets({ ...opts, client: client2 })),
|
|
1695
1927
|
users: async (opts) => unwrap(await projectControllerListUsers({ ...opts, client: client2 }))
|
|
1696
1928
|
};
|
|
1929
|
+
this.jobs = {
|
|
1930
|
+
list: async (opts) => unwrap(await jobControllerList({ ...opts ?? {}, client: client2 })),
|
|
1931
|
+
get: async (opts) => unwrap(await jobControllerGet({ ...opts, client: client2 })),
|
|
1932
|
+
create: async (opts) => unwrap(await jobControllerCreate({ ...opts, client: client2 })),
|
|
1933
|
+
update: async (opts) => unwrap(await jobControllerUpdate({ ...opts, client: client2 })),
|
|
1934
|
+
delete: async (opts) => unwrap(await jobControllerDelete({ ...opts, client: client2 })),
|
|
1935
|
+
assignments: async (opts) => unwrap(await jobControllerListAssignments({ ...opts, client: client2 })),
|
|
1936
|
+
requirements: async (opts) => unwrap(await jobControllerListRequirements({ ...opts, client: client2 }))
|
|
1937
|
+
};
|
|
1938
|
+
this.costCodes = {
|
|
1939
|
+
list: async (opts) => unwrap(await costCodeControllerList({ ...opts ?? {}, client: client2 })),
|
|
1940
|
+
get: async (opts) => unwrap(await costCodeControllerGet({ ...opts, client: client2 })),
|
|
1941
|
+
create: async (opts) => unwrap(await costCodeControllerCreate({ ...opts, client: client2 })),
|
|
1942
|
+
update: async (opts) => unwrap(await costCodeControllerUpdate({ ...opts, client: client2 })),
|
|
1943
|
+
delete: async (opts) => unwrap(await costCodeControllerDelete({ ...opts, client: client2 }))
|
|
1944
|
+
};
|
|
1945
|
+
this.permitTypes = {
|
|
1946
|
+
list: async (opts) => unwrap(await permitTypeControllerList({ ...opts ?? {}, client: client2 })),
|
|
1947
|
+
get: async (opts) => unwrap(await permitTypeControllerGet({ ...opts, client: client2 }))
|
|
1948
|
+
};
|
|
1949
|
+
this.timeLines = {
|
|
1950
|
+
list: async (opts) => unwrap(await timeLineControllerList({ ...opts ?? {}, client: client2 })),
|
|
1951
|
+
get: async (opts) => unwrap(await timeLineControllerGet({ ...opts, client: client2 }))
|
|
1952
|
+
};
|
|
1953
|
+
this.approvalSchemes = {
|
|
1954
|
+
list: async (opts) => unwrap(await approvalSchemeControllerList({ ...opts ?? {}, client: client2 })),
|
|
1955
|
+
get: async (opts) => unwrap(await approvalSchemeControllerGet({ ...opts, client: client2 }))
|
|
1956
|
+
};
|
|
1697
1957
|
}
|
|
1698
1958
|
};
|
|
1699
1959
|
|