@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 +203 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1578 -112
- package/dist/index.d.ts +1578 -112
- package/dist/index.js +203 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1027,6 +1027,190 @@ 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
|
+
};
|
|
1122
|
+
var jobControllerList = (options) => {
|
|
1123
|
+
return (options?.client ?? client).get({
|
|
1124
|
+
security: [
|
|
1125
|
+
{
|
|
1126
|
+
scheme: "bearer",
|
|
1127
|
+
type: "http"
|
|
1128
|
+
}
|
|
1129
|
+
],
|
|
1130
|
+
url: "/job/list",
|
|
1131
|
+
...options
|
|
1132
|
+
});
|
|
1133
|
+
};
|
|
1134
|
+
var jobControllerDelete = (options) => {
|
|
1135
|
+
return (options.client ?? client).delete({
|
|
1136
|
+
security: [
|
|
1137
|
+
{
|
|
1138
|
+
scheme: "bearer",
|
|
1139
|
+
type: "http"
|
|
1140
|
+
}
|
|
1141
|
+
],
|
|
1142
|
+
url: "/job/{id}",
|
|
1143
|
+
...options
|
|
1144
|
+
});
|
|
1145
|
+
};
|
|
1146
|
+
var jobControllerGet = (options) => {
|
|
1147
|
+
return (options.client ?? client).get({
|
|
1148
|
+
security: [
|
|
1149
|
+
{
|
|
1150
|
+
scheme: "bearer",
|
|
1151
|
+
type: "http"
|
|
1152
|
+
}
|
|
1153
|
+
],
|
|
1154
|
+
url: "/job/{id}",
|
|
1155
|
+
...options
|
|
1156
|
+
});
|
|
1157
|
+
};
|
|
1158
|
+
var jobControllerUpdate = (options) => {
|
|
1159
|
+
return (options.client ?? client).patch({
|
|
1160
|
+
security: [
|
|
1161
|
+
{
|
|
1162
|
+
scheme: "bearer",
|
|
1163
|
+
type: "http"
|
|
1164
|
+
}
|
|
1165
|
+
],
|
|
1166
|
+
url: "/job/{id}",
|
|
1167
|
+
...options,
|
|
1168
|
+
headers: {
|
|
1169
|
+
"Content-Type": "application/json",
|
|
1170
|
+
...options?.headers
|
|
1171
|
+
}
|
|
1172
|
+
});
|
|
1173
|
+
};
|
|
1174
|
+
var jobControllerListAssignments = (options) => {
|
|
1175
|
+
return (options.client ?? client).get({
|
|
1176
|
+
security: [
|
|
1177
|
+
{
|
|
1178
|
+
scheme: "bearer",
|
|
1179
|
+
type: "http"
|
|
1180
|
+
}
|
|
1181
|
+
],
|
|
1182
|
+
url: "/job/{id}/assignments",
|
|
1183
|
+
...options
|
|
1184
|
+
});
|
|
1185
|
+
};
|
|
1186
|
+
var jobControllerListRequirements = (options) => {
|
|
1187
|
+
return (options.client ?? client).get({
|
|
1188
|
+
security: [
|
|
1189
|
+
{
|
|
1190
|
+
scheme: "bearer",
|
|
1191
|
+
type: "http"
|
|
1192
|
+
}
|
|
1193
|
+
],
|
|
1194
|
+
url: "/job/{id}/requirements",
|
|
1195
|
+
...options
|
|
1196
|
+
});
|
|
1197
|
+
};
|
|
1198
|
+
var jobControllerCreate = (options) => {
|
|
1199
|
+
return (options.client ?? client).post({
|
|
1200
|
+
security: [
|
|
1201
|
+
{
|
|
1202
|
+
scheme: "bearer",
|
|
1203
|
+
type: "http"
|
|
1204
|
+
}
|
|
1205
|
+
],
|
|
1206
|
+
url: "/job",
|
|
1207
|
+
...options,
|
|
1208
|
+
headers: {
|
|
1209
|
+
"Content-Type": "application/json",
|
|
1210
|
+
...options?.headers
|
|
1211
|
+
}
|
|
1212
|
+
});
|
|
1213
|
+
};
|
|
1030
1214
|
var customerControllerList = (options) => {
|
|
1031
1215
|
return (options?.client ?? client).get({
|
|
1032
1216
|
security: [
|
|
@@ -1338,7 +1522,7 @@ var siteControllerUpdateSite = (options) => {
|
|
|
1338
1522
|
|
|
1339
1523
|
// src/client.ts
|
|
1340
1524
|
var DEFAULT_BASE_URL = "https://api.wakata.ai/api/v1";
|
|
1341
|
-
var PACKAGE_VERSION = "0.
|
|
1525
|
+
var PACKAGE_VERSION = "0.6.0";
|
|
1342
1526
|
function unwrap(result) {
|
|
1343
1527
|
if (result.data === void 0) {
|
|
1344
1528
|
throw new WakataApiError({
|
|
@@ -1591,6 +1775,24 @@ var WakataClient = class {
|
|
|
1591
1775
|
list: async (opts) => unwrap(await timesheetPublicControllerList({ ...opts ?? {}, client: client2 })),
|
|
1592
1776
|
get: async (opts) => unwrap(await timesheetPublicControllerGet({ ...opts, client: client2 }))
|
|
1593
1777
|
};
|
|
1778
|
+
this.projects = {
|
|
1779
|
+
list: async (opts) => unwrap(await projectControllerList({ ...opts ?? {}, client: client2 })),
|
|
1780
|
+
get: async (opts) => unwrap(await projectControllerGet({ ...opts, client: client2 })),
|
|
1781
|
+
create: async (opts) => unwrap(await projectControllerCreate({ ...opts, client: client2 })),
|
|
1782
|
+
update: async (opts) => unwrap(await projectControllerUpdate({ ...opts, client: client2 })),
|
|
1783
|
+
delete: async (opts) => unwrap(await projectControllerDelete({ ...opts, client: client2 })),
|
|
1784
|
+
assets: async (opts) => unwrap(await projectControllerListAssets({ ...opts, client: client2 })),
|
|
1785
|
+
users: async (opts) => unwrap(await projectControllerListUsers({ ...opts, client: client2 }))
|
|
1786
|
+
};
|
|
1787
|
+
this.jobs = {
|
|
1788
|
+
list: async (opts) => unwrap(await jobControllerList({ ...opts ?? {}, client: client2 })),
|
|
1789
|
+
get: async (opts) => unwrap(await jobControllerGet({ ...opts, client: client2 })),
|
|
1790
|
+
create: async (opts) => unwrap(await jobControllerCreate({ ...opts, client: client2 })),
|
|
1791
|
+
update: async (opts) => unwrap(await jobControllerUpdate({ ...opts, client: client2 })),
|
|
1792
|
+
delete: async (opts) => unwrap(await jobControllerDelete({ ...opts, client: client2 })),
|
|
1793
|
+
assignments: async (opts) => unwrap(await jobControllerListAssignments({ ...opts, client: client2 })),
|
|
1794
|
+
requirements: async (opts) => unwrap(await jobControllerListRequirements({ ...opts, client: client2 }))
|
|
1795
|
+
};
|
|
1594
1796
|
}
|
|
1595
1797
|
};
|
|
1596
1798
|
|