@wakata-dev/api-client 0.6.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.js CHANGED
@@ -1211,6 +1211,146 @@ var jobControllerCreate = (options) => {
1211
1211
  }
1212
1212
  });
1213
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
+ };
1214
1354
  var customerControllerList = (options) => {
1215
1355
  return (options?.client ?? client).get({
1216
1356
  security: [
@@ -1522,7 +1662,7 @@ var siteControllerUpdateSite = (options) => {
1522
1662
 
1523
1663
  // src/client.ts
1524
1664
  var DEFAULT_BASE_URL = "https://api.wakata.ai/api/v1";
1525
- var PACKAGE_VERSION = "0.6.0";
1665
+ var PACKAGE_VERSION = "0.7.0";
1526
1666
  function unwrap(result) {
1527
1667
  if (result.data === void 0) {
1528
1668
  throw new WakataApiError({
@@ -1793,6 +1933,25 @@ var WakataClient = class {
1793
1933
  assignments: async (opts) => unwrap(await jobControllerListAssignments({ ...opts, client: client2 })),
1794
1934
  requirements: async (opts) => unwrap(await jobControllerListRequirements({ ...opts, client: client2 }))
1795
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
+ };
1796
1955
  }
1797
1956
  };
1798
1957