@wakata-dev/api-client 0.4.0 → 0.5.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
@@ -1027,6 +1027,98 @@ var companyDocumentControllerCreate = (options) => {
1027
1027
  }
1028
1028
  });
1029
1029
  };
1030
+ var projectControllerList = (options) => {
1031
+ return (options?.client ?? client).get({
1032
+ security: [
1033
+ {
1034
+ scheme: "bearer",
1035
+ type: "http"
1036
+ }
1037
+ ],
1038
+ url: "/project/list",
1039
+ ...options
1040
+ });
1041
+ };
1042
+ var projectControllerDelete = (options) => {
1043
+ return (options.client ?? client).delete({
1044
+ security: [
1045
+ {
1046
+ scheme: "bearer",
1047
+ type: "http"
1048
+ }
1049
+ ],
1050
+ url: "/project/{id}",
1051
+ ...options
1052
+ });
1053
+ };
1054
+ var projectControllerGet = (options) => {
1055
+ return (options.client ?? client).get({
1056
+ security: [
1057
+ {
1058
+ scheme: "bearer",
1059
+ type: "http"
1060
+ }
1061
+ ],
1062
+ url: "/project/{id}",
1063
+ ...options
1064
+ });
1065
+ };
1066
+ var projectControllerUpdate = (options) => {
1067
+ return (options.client ?? client).patch({
1068
+ security: [
1069
+ {
1070
+ scheme: "bearer",
1071
+ type: "http"
1072
+ }
1073
+ ],
1074
+ url: "/project/{id}",
1075
+ ...options,
1076
+ headers: {
1077
+ "Content-Type": "application/json",
1078
+ ...options?.headers
1079
+ }
1080
+ });
1081
+ };
1082
+ var projectControllerListAssets = (options) => {
1083
+ return (options.client ?? client).get({
1084
+ security: [
1085
+ {
1086
+ scheme: "bearer",
1087
+ type: "http"
1088
+ }
1089
+ ],
1090
+ url: "/project/{id}/assets",
1091
+ ...options
1092
+ });
1093
+ };
1094
+ var projectControllerListUsers = (options) => {
1095
+ return (options.client ?? client).get({
1096
+ security: [
1097
+ {
1098
+ scheme: "bearer",
1099
+ type: "http"
1100
+ }
1101
+ ],
1102
+ url: "/project/{id}/users",
1103
+ ...options
1104
+ });
1105
+ };
1106
+ var projectControllerCreate = (options) => {
1107
+ return (options.client ?? client).post({
1108
+ security: [
1109
+ {
1110
+ scheme: "bearer",
1111
+ type: "http"
1112
+ }
1113
+ ],
1114
+ url: "/project",
1115
+ ...options,
1116
+ headers: {
1117
+ "Content-Type": "application/json",
1118
+ ...options?.headers
1119
+ }
1120
+ });
1121
+ };
1030
1122
  var customerControllerList = (options) => {
1031
1123
  return (options?.client ?? client).get({
1032
1124
  security: [
@@ -1338,7 +1430,7 @@ var siteControllerUpdateSite = (options) => {
1338
1430
 
1339
1431
  // src/client.ts
1340
1432
  var DEFAULT_BASE_URL = "https://api.wakata.ai/api/v1";
1341
- var PACKAGE_VERSION = "0.4.0";
1433
+ var PACKAGE_VERSION = "0.5.0";
1342
1434
  function unwrap(result) {
1343
1435
  if (result.data === void 0) {
1344
1436
  throw new WakataApiError({
@@ -1591,6 +1683,15 @@ var WakataClient = class {
1591
1683
  list: async (opts) => unwrap(await timesheetPublicControllerList({ ...opts ?? {}, client: client2 })),
1592
1684
  get: async (opts) => unwrap(await timesheetPublicControllerGet({ ...opts, client: client2 }))
1593
1685
  };
1686
+ this.projects = {
1687
+ list: async (opts) => unwrap(await projectControllerList({ ...opts ?? {}, client: client2 })),
1688
+ get: async (opts) => unwrap(await projectControllerGet({ ...opts, client: client2 })),
1689
+ create: async (opts) => unwrap(await projectControllerCreate({ ...opts, client: client2 })),
1690
+ update: async (opts) => unwrap(await projectControllerUpdate({ ...opts, client: client2 })),
1691
+ delete: async (opts) => unwrap(await projectControllerDelete({ ...opts, client: client2 })),
1692
+ assets: async (opts) => unwrap(await projectControllerListAssets({ ...opts, client: client2 })),
1693
+ users: async (opts) => unwrap(await projectControllerListUsers({ ...opts, client: client2 }))
1694
+ };
1594
1695
  }
1595
1696
  };
1596
1697