@viewcandidate/client 0.0.17 → 0.0.19
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/README.md +3 -3
- package/fesm2022/viewcandidate-client.mjs +659 -2
- package/fesm2022/viewcandidate-client.mjs.map +1 -1
- package/index.d.ts +516 -19
- package/package.json +1 -1
|
@@ -962,6 +962,501 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.3", ngImpor
|
|
|
962
962
|
type: Optional
|
|
963
963
|
}] }] });
|
|
964
964
|
|
|
965
|
+
/**
|
|
966
|
+
* ViewCandidate API
|
|
967
|
+
*
|
|
968
|
+
*
|
|
969
|
+
*
|
|
970
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
971
|
+
* https://openapi-generator.tech
|
|
972
|
+
* Do not edit the class manually.
|
|
973
|
+
*/
|
|
974
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
975
|
+
class JobService extends BaseService {
|
|
976
|
+
httpClient;
|
|
977
|
+
constructor(httpClient, basePath, configuration) {
|
|
978
|
+
super(basePath, configuration);
|
|
979
|
+
this.httpClient = httpClient;
|
|
980
|
+
}
|
|
981
|
+
jobControllerCreateJob(createJobDto, observe = 'body', reportProgress = false, options) {
|
|
982
|
+
if (createJobDto === null || createJobDto === undefined) {
|
|
983
|
+
throw new Error('Required parameter createJobDto was null or undefined when calling jobControllerCreateJob.');
|
|
984
|
+
}
|
|
985
|
+
let localVarHeaders = this.defaultHeaders;
|
|
986
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
987
|
+
'application/json'
|
|
988
|
+
]);
|
|
989
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
990
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
991
|
+
}
|
|
992
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
993
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
994
|
+
// to determine the Content-Type header
|
|
995
|
+
const consumes = [
|
|
996
|
+
'application/json'
|
|
997
|
+
];
|
|
998
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
999
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1000
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
1001
|
+
}
|
|
1002
|
+
let responseType_ = 'json';
|
|
1003
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1004
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1005
|
+
responseType_ = 'text';
|
|
1006
|
+
}
|
|
1007
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1008
|
+
responseType_ = 'json';
|
|
1009
|
+
}
|
|
1010
|
+
else {
|
|
1011
|
+
responseType_ = 'blob';
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
let localVarPath = `/jobs`;
|
|
1015
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1016
|
+
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
1017
|
+
context: localVarHttpContext,
|
|
1018
|
+
body: createJobDto,
|
|
1019
|
+
responseType: responseType_,
|
|
1020
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1021
|
+
headers: localVarHeaders,
|
|
1022
|
+
observe: observe,
|
|
1023
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1024
|
+
reportProgress: reportProgress
|
|
1025
|
+
});
|
|
1026
|
+
}
|
|
1027
|
+
jobControllerDeleteJob(id, observe = 'body', reportProgress = false, options) {
|
|
1028
|
+
if (id === null || id === undefined) {
|
|
1029
|
+
throw new Error('Required parameter id was null or undefined when calling jobControllerDeleteJob.');
|
|
1030
|
+
}
|
|
1031
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1032
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1033
|
+
'application/json'
|
|
1034
|
+
]);
|
|
1035
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1036
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1037
|
+
}
|
|
1038
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1039
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1040
|
+
let responseType_ = 'json';
|
|
1041
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1042
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1043
|
+
responseType_ = 'text';
|
|
1044
|
+
}
|
|
1045
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1046
|
+
responseType_ = 'json';
|
|
1047
|
+
}
|
|
1048
|
+
else {
|
|
1049
|
+
responseType_ = 'blob';
|
|
1050
|
+
}
|
|
1051
|
+
}
|
|
1052
|
+
let localVarPath = `/jobs/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1053
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1054
|
+
return this.httpClient.request('delete', `${basePath}${localVarPath}`, {
|
|
1055
|
+
context: localVarHttpContext,
|
|
1056
|
+
responseType: responseType_,
|
|
1057
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1058
|
+
headers: localVarHeaders,
|
|
1059
|
+
observe: observe,
|
|
1060
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1061
|
+
reportProgress: reportProgress
|
|
1062
|
+
});
|
|
1063
|
+
}
|
|
1064
|
+
jobControllerGetJob(id, observe = 'body', reportProgress = false, options) {
|
|
1065
|
+
if (id === null || id === undefined) {
|
|
1066
|
+
throw new Error('Required parameter id was null or undefined when calling jobControllerGetJob.');
|
|
1067
|
+
}
|
|
1068
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1069
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1070
|
+
'application/json'
|
|
1071
|
+
]);
|
|
1072
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1073
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1074
|
+
}
|
|
1075
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1076
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1077
|
+
let responseType_ = 'json';
|
|
1078
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1079
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1080
|
+
responseType_ = 'text';
|
|
1081
|
+
}
|
|
1082
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1083
|
+
responseType_ = 'json';
|
|
1084
|
+
}
|
|
1085
|
+
else {
|
|
1086
|
+
responseType_ = 'blob';
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
let localVarPath = `/jobs/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1090
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1091
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1092
|
+
context: localVarHttpContext,
|
|
1093
|
+
responseType: responseType_,
|
|
1094
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1095
|
+
headers: localVarHeaders,
|
|
1096
|
+
observe: observe,
|
|
1097
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1098
|
+
reportProgress: reportProgress
|
|
1099
|
+
});
|
|
1100
|
+
}
|
|
1101
|
+
jobControllerGetJobs(page, observe = 'body', reportProgress = false, options) {
|
|
1102
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1103
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, 'page');
|
|
1104
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1105
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1106
|
+
'application/json'
|
|
1107
|
+
]);
|
|
1108
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1109
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1110
|
+
}
|
|
1111
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1112
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1113
|
+
let responseType_ = 'json';
|
|
1114
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1115
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1116
|
+
responseType_ = 'text';
|
|
1117
|
+
}
|
|
1118
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1119
|
+
responseType_ = 'json';
|
|
1120
|
+
}
|
|
1121
|
+
else {
|
|
1122
|
+
responseType_ = 'blob';
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
let localVarPath = `/jobs`;
|
|
1126
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1127
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1128
|
+
context: localVarHttpContext,
|
|
1129
|
+
params: localVarQueryParameters,
|
|
1130
|
+
responseType: responseType_,
|
|
1131
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1132
|
+
headers: localVarHeaders,
|
|
1133
|
+
observe: observe,
|
|
1134
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1135
|
+
reportProgress: reportProgress
|
|
1136
|
+
});
|
|
1137
|
+
}
|
|
1138
|
+
jobControllerUpdateJob(id, updateJobDto, observe = 'body', reportProgress = false, options) {
|
|
1139
|
+
if (id === null || id === undefined) {
|
|
1140
|
+
throw new Error('Required parameter id was null or undefined when calling jobControllerUpdateJob.');
|
|
1141
|
+
}
|
|
1142
|
+
if (updateJobDto === null || updateJobDto === undefined) {
|
|
1143
|
+
throw new Error('Required parameter updateJobDto was null or undefined when calling jobControllerUpdateJob.');
|
|
1144
|
+
}
|
|
1145
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1146
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1147
|
+
'application/json'
|
|
1148
|
+
]);
|
|
1149
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1150
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1151
|
+
}
|
|
1152
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1153
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1154
|
+
// to determine the Content-Type header
|
|
1155
|
+
const consumes = [
|
|
1156
|
+
'application/json'
|
|
1157
|
+
];
|
|
1158
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1159
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1160
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
1161
|
+
}
|
|
1162
|
+
let responseType_ = 'json';
|
|
1163
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1164
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1165
|
+
responseType_ = 'text';
|
|
1166
|
+
}
|
|
1167
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1168
|
+
responseType_ = 'json';
|
|
1169
|
+
}
|
|
1170
|
+
else {
|
|
1171
|
+
responseType_ = 'blob';
|
|
1172
|
+
}
|
|
1173
|
+
}
|
|
1174
|
+
let localVarPath = `/jobs/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1175
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1176
|
+
return this.httpClient.request('patch', `${basePath}${localVarPath}`, {
|
|
1177
|
+
context: localVarHttpContext,
|
|
1178
|
+
body: updateJobDto,
|
|
1179
|
+
responseType: responseType_,
|
|
1180
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1181
|
+
headers: localVarHeaders,
|
|
1182
|
+
observe: observe,
|
|
1183
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1184
|
+
reportProgress: reportProgress
|
|
1185
|
+
});
|
|
1186
|
+
}
|
|
1187
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: JobService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1188
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: JobService, providedIn: 'root' });
|
|
1189
|
+
}
|
|
1190
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: JobService, decorators: [{
|
|
1191
|
+
type: Injectable,
|
|
1192
|
+
args: [{
|
|
1193
|
+
providedIn: 'root'
|
|
1194
|
+
}]
|
|
1195
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1196
|
+
type: Optional
|
|
1197
|
+
}, {
|
|
1198
|
+
type: Inject,
|
|
1199
|
+
args: [BASE_PATH]
|
|
1200
|
+
}] }, { type: Configuration, decorators: [{
|
|
1201
|
+
type: Optional
|
|
1202
|
+
}] }] });
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* ViewCandidate API
|
|
1206
|
+
*
|
|
1207
|
+
*
|
|
1208
|
+
*
|
|
1209
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1210
|
+
* https://openapi-generator.tech
|
|
1211
|
+
* Do not edit the class manually.
|
|
1212
|
+
*/
|
|
1213
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
1214
|
+
class JobCandidateService extends BaseService {
|
|
1215
|
+
httpClient;
|
|
1216
|
+
constructor(httpClient, basePath, configuration) {
|
|
1217
|
+
super(basePath, configuration);
|
|
1218
|
+
this.httpClient = httpClient;
|
|
1219
|
+
}
|
|
1220
|
+
jobCandidateControllerCreateJobCandidate(jobId, createJobCandidateDto, observe = 'body', reportProgress = false, options) {
|
|
1221
|
+
if (jobId === null || jobId === undefined) {
|
|
1222
|
+
throw new Error('Required parameter jobId was null or undefined when calling jobCandidateControllerCreateJobCandidate.');
|
|
1223
|
+
}
|
|
1224
|
+
if (createJobCandidateDto === null || createJobCandidateDto === undefined) {
|
|
1225
|
+
throw new Error('Required parameter createJobCandidateDto was null or undefined when calling jobCandidateControllerCreateJobCandidate.');
|
|
1226
|
+
}
|
|
1227
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1228
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1229
|
+
'application/json'
|
|
1230
|
+
]);
|
|
1231
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1232
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1233
|
+
}
|
|
1234
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1235
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1236
|
+
// to determine the Content-Type header
|
|
1237
|
+
const consumes = [
|
|
1238
|
+
'application/json'
|
|
1239
|
+
];
|
|
1240
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1241
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1242
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
1243
|
+
}
|
|
1244
|
+
let responseType_ = 'json';
|
|
1245
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1246
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1247
|
+
responseType_ = 'text';
|
|
1248
|
+
}
|
|
1249
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1250
|
+
responseType_ = 'json';
|
|
1251
|
+
}
|
|
1252
|
+
else {
|
|
1253
|
+
responseType_ = 'blob';
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
let localVarPath = `/jobs/${this.configuration.encodeParam({ name: "jobId", value: jobId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/candidates`;
|
|
1257
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1258
|
+
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
1259
|
+
context: localVarHttpContext,
|
|
1260
|
+
body: createJobCandidateDto,
|
|
1261
|
+
responseType: responseType_,
|
|
1262
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1263
|
+
headers: localVarHeaders,
|
|
1264
|
+
observe: observe,
|
|
1265
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1266
|
+
reportProgress: reportProgress
|
|
1267
|
+
});
|
|
1268
|
+
}
|
|
1269
|
+
jobCandidateControllerDeleteJobCandidate(jobId, id, observe = 'body', reportProgress = false, options) {
|
|
1270
|
+
if (jobId === null || jobId === undefined) {
|
|
1271
|
+
throw new Error('Required parameter jobId was null or undefined when calling jobCandidateControllerDeleteJobCandidate.');
|
|
1272
|
+
}
|
|
1273
|
+
if (id === null || id === undefined) {
|
|
1274
|
+
throw new Error('Required parameter id was null or undefined when calling jobCandidateControllerDeleteJobCandidate.');
|
|
1275
|
+
}
|
|
1276
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1277
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1278
|
+
'application/json'
|
|
1279
|
+
]);
|
|
1280
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1281
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1282
|
+
}
|
|
1283
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1284
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1285
|
+
let responseType_ = 'json';
|
|
1286
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1287
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1288
|
+
responseType_ = 'text';
|
|
1289
|
+
}
|
|
1290
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1291
|
+
responseType_ = 'json';
|
|
1292
|
+
}
|
|
1293
|
+
else {
|
|
1294
|
+
responseType_ = 'blob';
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
let localVarPath = `/jobs/${this.configuration.encodeParam({ name: "jobId", value: jobId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/candidates/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1298
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1299
|
+
return this.httpClient.request('delete', `${basePath}${localVarPath}`, {
|
|
1300
|
+
context: localVarHttpContext,
|
|
1301
|
+
responseType: responseType_,
|
|
1302
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1303
|
+
headers: localVarHeaders,
|
|
1304
|
+
observe: observe,
|
|
1305
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1306
|
+
reportProgress: reportProgress
|
|
1307
|
+
});
|
|
1308
|
+
}
|
|
1309
|
+
jobCandidateControllerGetJobCandidate(jobId, id, observe = 'body', reportProgress = false, options) {
|
|
1310
|
+
if (jobId === null || jobId === undefined) {
|
|
1311
|
+
throw new Error('Required parameter jobId was null or undefined when calling jobCandidateControllerGetJobCandidate.');
|
|
1312
|
+
}
|
|
1313
|
+
if (id === null || id === undefined) {
|
|
1314
|
+
throw new Error('Required parameter id was null or undefined when calling jobCandidateControllerGetJobCandidate.');
|
|
1315
|
+
}
|
|
1316
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1317
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1318
|
+
'application/json'
|
|
1319
|
+
]);
|
|
1320
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1321
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1322
|
+
}
|
|
1323
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1324
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1325
|
+
let responseType_ = 'json';
|
|
1326
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1327
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1328
|
+
responseType_ = 'text';
|
|
1329
|
+
}
|
|
1330
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1331
|
+
responseType_ = 'json';
|
|
1332
|
+
}
|
|
1333
|
+
else {
|
|
1334
|
+
responseType_ = 'blob';
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
let localVarPath = `/jobs/${this.configuration.encodeParam({ name: "jobId", value: jobId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/candidates/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1338
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1339
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1340
|
+
context: localVarHttpContext,
|
|
1341
|
+
responseType: responseType_,
|
|
1342
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1343
|
+
headers: localVarHeaders,
|
|
1344
|
+
observe: observe,
|
|
1345
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1346
|
+
reportProgress: reportProgress
|
|
1347
|
+
});
|
|
1348
|
+
}
|
|
1349
|
+
jobCandidateControllerGetJobCandidates(jobId, page, stage, status, observe = 'body', reportProgress = false, options) {
|
|
1350
|
+
if (jobId === null || jobId === undefined) {
|
|
1351
|
+
throw new Error('Required parameter jobId was null or undefined when calling jobCandidateControllerGetJobCandidates.');
|
|
1352
|
+
}
|
|
1353
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1354
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, page, 'page');
|
|
1355
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, stage, 'stage');
|
|
1356
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, status, 'status');
|
|
1357
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1358
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1359
|
+
'application/json'
|
|
1360
|
+
]);
|
|
1361
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1362
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1363
|
+
}
|
|
1364
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1365
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1366
|
+
let responseType_ = 'json';
|
|
1367
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1368
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1369
|
+
responseType_ = 'text';
|
|
1370
|
+
}
|
|
1371
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1372
|
+
responseType_ = 'json';
|
|
1373
|
+
}
|
|
1374
|
+
else {
|
|
1375
|
+
responseType_ = 'blob';
|
|
1376
|
+
}
|
|
1377
|
+
}
|
|
1378
|
+
let localVarPath = `/jobs/${this.configuration.encodeParam({ name: "jobId", value: jobId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/candidates`;
|
|
1379
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1380
|
+
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1381
|
+
context: localVarHttpContext,
|
|
1382
|
+
params: localVarQueryParameters,
|
|
1383
|
+
responseType: responseType_,
|
|
1384
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1385
|
+
headers: localVarHeaders,
|
|
1386
|
+
observe: observe,
|
|
1387
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1388
|
+
reportProgress: reportProgress
|
|
1389
|
+
});
|
|
1390
|
+
}
|
|
1391
|
+
jobCandidateControllerUpdateJobCandidate(jobId, id, updateJobCandidateDto, observe = 'body', reportProgress = false, options) {
|
|
1392
|
+
if (jobId === null || jobId === undefined) {
|
|
1393
|
+
throw new Error('Required parameter jobId was null or undefined when calling jobCandidateControllerUpdateJobCandidate.');
|
|
1394
|
+
}
|
|
1395
|
+
if (id === null || id === undefined) {
|
|
1396
|
+
throw new Error('Required parameter id was null or undefined when calling jobCandidateControllerUpdateJobCandidate.');
|
|
1397
|
+
}
|
|
1398
|
+
if (updateJobCandidateDto === null || updateJobCandidateDto === undefined) {
|
|
1399
|
+
throw new Error('Required parameter updateJobCandidateDto was null or undefined when calling jobCandidateControllerUpdateJobCandidate.');
|
|
1400
|
+
}
|
|
1401
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1402
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1403
|
+
'application/json'
|
|
1404
|
+
]);
|
|
1405
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1406
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1407
|
+
}
|
|
1408
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1409
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1410
|
+
// to determine the Content-Type header
|
|
1411
|
+
const consumes = [
|
|
1412
|
+
'application/json'
|
|
1413
|
+
];
|
|
1414
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1415
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1416
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
1417
|
+
}
|
|
1418
|
+
let responseType_ = 'json';
|
|
1419
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1420
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1421
|
+
responseType_ = 'text';
|
|
1422
|
+
}
|
|
1423
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1424
|
+
responseType_ = 'json';
|
|
1425
|
+
}
|
|
1426
|
+
else {
|
|
1427
|
+
responseType_ = 'blob';
|
|
1428
|
+
}
|
|
1429
|
+
}
|
|
1430
|
+
let localVarPath = `/jobs/${this.configuration.encodeParam({ name: "jobId", value: jobId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/candidates/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1431
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1432
|
+
return this.httpClient.request('patch', `${basePath}${localVarPath}`, {
|
|
1433
|
+
context: localVarHttpContext,
|
|
1434
|
+
body: updateJobCandidateDto,
|
|
1435
|
+
responseType: responseType_,
|
|
1436
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1437
|
+
headers: localVarHeaders,
|
|
1438
|
+
observe: observe,
|
|
1439
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1440
|
+
reportProgress: reportProgress
|
|
1441
|
+
});
|
|
1442
|
+
}
|
|
1443
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: JobCandidateService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1444
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: JobCandidateService, providedIn: 'root' });
|
|
1445
|
+
}
|
|
1446
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: JobCandidateService, decorators: [{
|
|
1447
|
+
type: Injectable,
|
|
1448
|
+
args: [{
|
|
1449
|
+
providedIn: 'root'
|
|
1450
|
+
}]
|
|
1451
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1452
|
+
type: Optional
|
|
1453
|
+
}, {
|
|
1454
|
+
type: Inject,
|
|
1455
|
+
args: [BASE_PATH]
|
|
1456
|
+
}] }, { type: Configuration, decorators: [{
|
|
1457
|
+
type: Optional
|
|
1458
|
+
}] }] });
|
|
1459
|
+
|
|
965
1460
|
/**
|
|
966
1461
|
* ViewCandidate API
|
|
967
1462
|
*
|
|
@@ -1382,7 +1877,136 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.3", ngImpor
|
|
|
1382
1877
|
type: Optional
|
|
1383
1878
|
}] }] });
|
|
1384
1879
|
|
|
1385
|
-
|
|
1880
|
+
/**
|
|
1881
|
+
* ViewCandidate API
|
|
1882
|
+
*
|
|
1883
|
+
*
|
|
1884
|
+
*
|
|
1885
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1886
|
+
* https://openapi-generator.tech
|
|
1887
|
+
* Do not edit the class manually.
|
|
1888
|
+
*/
|
|
1889
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
1890
|
+
class WaitlistService extends BaseService {
|
|
1891
|
+
httpClient;
|
|
1892
|
+
constructor(httpClient, basePath, configuration) {
|
|
1893
|
+
super(basePath, configuration);
|
|
1894
|
+
this.httpClient = httpClient;
|
|
1895
|
+
}
|
|
1896
|
+
waitlistControllerCreate(createWaitlistEntryDto, observe = 'body', reportProgress = false, options) {
|
|
1897
|
+
if (createWaitlistEntryDto === null || createWaitlistEntryDto === undefined) {
|
|
1898
|
+
throw new Error('Required parameter createWaitlistEntryDto was null or undefined when calling waitlistControllerCreate.');
|
|
1899
|
+
}
|
|
1900
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1901
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1902
|
+
'application/json'
|
|
1903
|
+
]);
|
|
1904
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1905
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1906
|
+
}
|
|
1907
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1908
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
1909
|
+
// to determine the Content-Type header
|
|
1910
|
+
const consumes = [
|
|
1911
|
+
'application/json'
|
|
1912
|
+
];
|
|
1913
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1914
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1915
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
1916
|
+
}
|
|
1917
|
+
let responseType_ = 'json';
|
|
1918
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1919
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1920
|
+
responseType_ = 'text';
|
|
1921
|
+
}
|
|
1922
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1923
|
+
responseType_ = 'json';
|
|
1924
|
+
}
|
|
1925
|
+
else {
|
|
1926
|
+
responseType_ = 'blob';
|
|
1927
|
+
}
|
|
1928
|
+
}
|
|
1929
|
+
let localVarPath = `/waitlist`;
|
|
1930
|
+
const { basePath, withCredentials } = this.configuration;
|
|
1931
|
+
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
1932
|
+
context: localVarHttpContext,
|
|
1933
|
+
body: createWaitlistEntryDto,
|
|
1934
|
+
responseType: responseType_,
|
|
1935
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
1936
|
+
headers: localVarHeaders,
|
|
1937
|
+
observe: observe,
|
|
1938
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
1939
|
+
reportProgress: reportProgress
|
|
1940
|
+
});
|
|
1941
|
+
}
|
|
1942
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: WaitlistService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1943
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: WaitlistService, providedIn: 'root' });
|
|
1944
|
+
}
|
|
1945
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.3", ngImport: i0, type: WaitlistService, decorators: [{
|
|
1946
|
+
type: Injectable,
|
|
1947
|
+
args: [{
|
|
1948
|
+
providedIn: 'root'
|
|
1949
|
+
}]
|
|
1950
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
1951
|
+
type: Optional
|
|
1952
|
+
}, {
|
|
1953
|
+
type: Inject,
|
|
1954
|
+
args: [BASE_PATH]
|
|
1955
|
+
}] }, { type: Configuration, decorators: [{
|
|
1956
|
+
type: Optional
|
|
1957
|
+
}] }] });
|
|
1958
|
+
|
|
1959
|
+
const APIS = [AuthService, CVExtractionService, CandidateService, ClientService, HealthService, JobService, JobCandidateService, OrganisationService, PresentationService, WaitlistService];
|
|
1960
|
+
|
|
1961
|
+
/**
|
|
1962
|
+
* ViewCandidate API
|
|
1963
|
+
*
|
|
1964
|
+
*
|
|
1965
|
+
*
|
|
1966
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1967
|
+
* https://openapi-generator.tech
|
|
1968
|
+
* Do not edit the class manually.
|
|
1969
|
+
*/
|
|
1970
|
+
|
|
1971
|
+
/**
|
|
1972
|
+
* ViewCandidate API
|
|
1973
|
+
*
|
|
1974
|
+
*
|
|
1975
|
+
*
|
|
1976
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1977
|
+
* https://openapi-generator.tech
|
|
1978
|
+
* Do not edit the class manually.
|
|
1979
|
+
*/
|
|
1980
|
+
|
|
1981
|
+
/**
|
|
1982
|
+
* ViewCandidate API
|
|
1983
|
+
*
|
|
1984
|
+
*
|
|
1985
|
+
*
|
|
1986
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1987
|
+
* https://openapi-generator.tech
|
|
1988
|
+
* Do not edit the class manually.
|
|
1989
|
+
*/
|
|
1990
|
+
|
|
1991
|
+
/**
|
|
1992
|
+
* ViewCandidate API
|
|
1993
|
+
*
|
|
1994
|
+
*
|
|
1995
|
+
*
|
|
1996
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1997
|
+
* https://openapi-generator.tech
|
|
1998
|
+
* Do not edit the class manually.
|
|
1999
|
+
*/
|
|
2000
|
+
|
|
2001
|
+
/**
|
|
2002
|
+
* ViewCandidate API
|
|
2003
|
+
*
|
|
2004
|
+
*
|
|
2005
|
+
*
|
|
2006
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2007
|
+
* https://openapi-generator.tech
|
|
2008
|
+
* Do not edit the class manually.
|
|
2009
|
+
*/
|
|
1386
2010
|
|
|
1387
2011
|
/**
|
|
1388
2012
|
* ViewCandidate API
|
|
@@ -1600,6 +2224,39 @@ var UpdateCandidateLanguageDto;
|
|
|
1600
2224
|
};
|
|
1601
2225
|
})(UpdateCandidateLanguageDto || (UpdateCandidateLanguageDto = {}));
|
|
1602
2226
|
|
|
2227
|
+
/**
|
|
2228
|
+
* ViewCandidate API
|
|
2229
|
+
*
|
|
2230
|
+
*
|
|
2231
|
+
*
|
|
2232
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2233
|
+
* https://openapi-generator.tech
|
|
2234
|
+
* Do not edit the class manually.
|
|
2235
|
+
*/
|
|
2236
|
+
|
|
2237
|
+
/**
|
|
2238
|
+
* ViewCandidate API
|
|
2239
|
+
*
|
|
2240
|
+
*
|
|
2241
|
+
*
|
|
2242
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2243
|
+
* https://openapi-generator.tech
|
|
2244
|
+
* Do not edit the class manually.
|
|
2245
|
+
*/
|
|
2246
|
+
var UpdateJobCandidateDto;
|
|
2247
|
+
(function (UpdateJobCandidateDto) {
|
|
2248
|
+
UpdateJobCandidateDto.StageEnum = {
|
|
2249
|
+
Screening: 'screening',
|
|
2250
|
+
Presented: 'presented',
|
|
2251
|
+
Interviewing: 'interviewing',
|
|
2252
|
+
Placed: 'placed'
|
|
2253
|
+
};
|
|
2254
|
+
UpdateJobCandidateDto.StatusEnum = {
|
|
2255
|
+
Active: 'active',
|
|
2256
|
+
Rejected: 'rejected'
|
|
2257
|
+
};
|
|
2258
|
+
})(UpdateJobCandidateDto || (UpdateJobCandidateDto = {}));
|
|
2259
|
+
|
|
1603
2260
|
/**
|
|
1604
2261
|
* ViewCandidate API
|
|
1605
2262
|
*
|
|
@@ -1682,5 +2339,5 @@ function provideApi(configOrBasePath) {
|
|
|
1682
2339
|
* Generated bundle index. Do not edit.
|
|
1683
2340
|
*/
|
|
1684
2341
|
|
|
1685
|
-
export { APIS, AuthService, BASE_PATH, COLLECTION_FORMATS, CVExtractionService, CandidateService, ClientService, Configuration, HealthService, OrganisationService, PresentationService, UpdateCandidateDto, UpdateCandidateLanguageDto, ViewCandidateApiModule, provideApi };
|
|
2342
|
+
export { APIS, AuthService, BASE_PATH, COLLECTION_FORMATS, CVExtractionService, CandidateService, ClientService, Configuration, HealthService, JobCandidateService, JobService, OrganisationService, PresentationService, UpdateCandidateDto, UpdateCandidateLanguageDto, UpdateJobCandidateDto, ViewCandidateApiModule, WaitlistService, provideApi };
|
|
1686
2343
|
//# sourceMappingURL=viewcandidate-client.mjs.map
|