@wakata-dev/api-client 0.5.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
@@ -1121,6 +1121,98 @@ var projectControllerCreate = (options) => {
1121
1121
  }
1122
1122
  });
1123
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
+ };
1124
1216
  var customerControllerList = (options) => {
1125
1217
  return (options?.client ?? client).get({
1126
1218
  security: [
@@ -1432,7 +1524,7 @@ var siteControllerUpdateSite = (options) => {
1432
1524
 
1433
1525
  // src/client.ts
1434
1526
  var DEFAULT_BASE_URL = "https://api.wakata.ai/api/v1";
1435
- var PACKAGE_VERSION = "0.5.0";
1527
+ var PACKAGE_VERSION = "0.6.0";
1436
1528
  function unwrap(result) {
1437
1529
  if (result.data === void 0) {
1438
1530
  throw new WakataApiError({
@@ -1694,6 +1786,15 @@ var WakataClient = class {
1694
1786
  assets: async (opts) => unwrap(await projectControllerListAssets({ ...opts, client: client2 })),
1695
1787
  users: async (opts) => unwrap(await projectControllerListUsers({ ...opts, client: client2 }))
1696
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
+ };
1697
1798
  }
1698
1799
  };
1699
1800