@wakata-dev/api-client 0.4.0 → 0.6.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,190 @@ 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
+ };
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
+ };
1032
1216
  var customerControllerList = (options) => {
1033
1217
  return (options?.client ?? client).get({
1034
1218
  security: [
@@ -1340,7 +1524,7 @@ var siteControllerUpdateSite = (options) => {
1340
1524
 
1341
1525
  // src/client.ts
1342
1526
  var DEFAULT_BASE_URL = "https://api.wakata.ai/api/v1";
1343
- var PACKAGE_VERSION = "0.4.0";
1527
+ var PACKAGE_VERSION = "0.6.0";
1344
1528
  function unwrap(result) {
1345
1529
  if (result.data === void 0) {
1346
1530
  throw new WakataApiError({
@@ -1593,6 +1777,24 @@ var WakataClient = class {
1593
1777
  list: async (opts) => unwrap(await timesheetPublicControllerList({ ...opts ?? {}, client: client2 })),
1594
1778
  get: async (opts) => unwrap(await timesheetPublicControllerGet({ ...opts, client: client2 }))
1595
1779
  };
1780
+ this.projects = {
1781
+ list: async (opts) => unwrap(await projectControllerList({ ...opts ?? {}, client: client2 })),
1782
+ get: async (opts) => unwrap(await projectControllerGet({ ...opts, client: client2 })),
1783
+ create: async (opts) => unwrap(await projectControllerCreate({ ...opts, client: client2 })),
1784
+ update: async (opts) => unwrap(await projectControllerUpdate({ ...opts, client: client2 })),
1785
+ delete: async (opts) => unwrap(await projectControllerDelete({ ...opts, client: client2 })),
1786
+ assets: async (opts) => unwrap(await projectControllerListAssets({ ...opts, client: client2 })),
1787
+ users: async (opts) => unwrap(await projectControllerListUsers({ ...opts, client: client2 }))
1788
+ };
1789
+ this.jobs = {
1790
+ list: async (opts) => unwrap(await jobControllerList({ ...opts ?? {}, client: client2 })),
1791
+ get: async (opts) => unwrap(await jobControllerGet({ ...opts, client: client2 })),
1792
+ create: async (opts) => unwrap(await jobControllerCreate({ ...opts, client: client2 })),
1793
+ update: async (opts) => unwrap(await jobControllerUpdate({ ...opts, client: client2 })),
1794
+ delete: async (opts) => unwrap(await jobControllerDelete({ ...opts, client: client2 })),
1795
+ assignments: async (opts) => unwrap(await jobControllerListAssignments({ ...opts, client: client2 })),
1796
+ requirements: async (opts) => unwrap(await jobControllerListRequirements({ ...opts, client: client2 }))
1797
+ };
1596
1798
  }
1597
1799
  };
1598
1800