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