@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.cjs CHANGED
@@ -1213,6 +1213,146 @@ var jobControllerCreate = (options) => {
1213
1213
  }
1214
1214
  });
1215
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
+ };
1216
1356
  var customerControllerList = (options) => {
1217
1357
  return (options?.client ?? client).get({
1218
1358
  security: [
@@ -1524,7 +1664,7 @@ var siteControllerUpdateSite = (options) => {
1524
1664
 
1525
1665
  // src/client.ts
1526
1666
  var DEFAULT_BASE_URL = "https://api.wakata.ai/api/v1";
1527
- var PACKAGE_VERSION = "0.6.0";
1667
+ var PACKAGE_VERSION = "0.7.0";
1528
1668
  function unwrap(result) {
1529
1669
  if (result.data === void 0) {
1530
1670
  throw new WakataApiError({
@@ -1795,6 +1935,25 @@ var WakataClient = class {
1795
1935
  assignments: async (opts) => unwrap(await jobControllerListAssignments({ ...opts, client: client2 })),
1796
1936
  requirements: async (opts) => unwrap(await jobControllerListRequirements({ ...opts, client: client2 }))
1797
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
+ };
1798
1957
  }
1799
1958
  };
1800
1959