@viewcandidate/client 0.0.23 → 0.0.25

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 CHANGED
@@ -1,8 +1,8 @@
1
- # @viewcandidate/client@0.0.23
1
+ # @viewcandidate/client@0.0.25
2
2
 
3
3
  The ViewCandidate API
4
4
 
5
- The version of the OpenAPI document: 0.0.23
5
+ The version of the OpenAPI document: 0.0.25
6
6
 
7
7
  ## Building
8
8
 
@@ -24,7 +24,7 @@ Navigate to the folder of your consuming project and run one of next commands.
24
24
  _published:_
25
25
 
26
26
  ```console
27
- npm install @viewcandidate/client@0.0.23 --save
27
+ npm install @viewcandidate/client@0.0.25 --save
28
28
  ```
29
29
 
30
30
  _without publishing (not recommended):_
@@ -1389,6 +1389,58 @@ class JobCandidateService extends BaseService {
1389
1389
  reportProgress: reportProgress
1390
1390
  });
1391
1391
  }
1392
+ jobCandidateControllerReorderJobCandidate(jobId, id, reorderJobCandidateDto, observe = 'body', reportProgress = false, options) {
1393
+ if (jobId === null || jobId === undefined) {
1394
+ throw new Error('Required parameter jobId was null or undefined when calling jobCandidateControllerReorderJobCandidate.');
1395
+ }
1396
+ if (id === null || id === undefined) {
1397
+ throw new Error('Required parameter id was null or undefined when calling jobCandidateControllerReorderJobCandidate.');
1398
+ }
1399
+ if (reorderJobCandidateDto === null || reorderJobCandidateDto === undefined) {
1400
+ throw new Error('Required parameter reorderJobCandidateDto was null or undefined when calling jobCandidateControllerReorderJobCandidate.');
1401
+ }
1402
+ let localVarHeaders = this.defaultHeaders;
1403
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
1404
+ 'application/json'
1405
+ ]);
1406
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1407
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1408
+ }
1409
+ const localVarHttpContext = options?.context ?? new HttpContext();
1410
+ const localVarTransferCache = options?.transferCache ?? true;
1411
+ // to determine the Content-Type header
1412
+ const consumes = [
1413
+ 'application/json'
1414
+ ];
1415
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1416
+ if (httpContentTypeSelected !== undefined) {
1417
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1418
+ }
1419
+ let responseType_ = 'json';
1420
+ if (localVarHttpHeaderAcceptSelected) {
1421
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1422
+ responseType_ = 'text';
1423
+ }
1424
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1425
+ responseType_ = 'json';
1426
+ }
1427
+ else {
1428
+ responseType_ = 'blob';
1429
+ }
1430
+ }
1431
+ 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 })}/reorder`;
1432
+ const { basePath, withCredentials } = this.configuration;
1433
+ return this.httpClient.request('patch', `${basePath}${localVarPath}`, {
1434
+ context: localVarHttpContext,
1435
+ body: reorderJobCandidateDto,
1436
+ responseType: responseType_,
1437
+ ...(withCredentials ? { withCredentials } : {}),
1438
+ headers: localVarHeaders,
1439
+ observe: observe,
1440
+ ...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
1441
+ reportProgress: reportProgress
1442
+ });
1443
+ }
1392
1444
  jobCandidateControllerUpdateJobCandidate(jobId, id, updateJobCandidateDto, observe = 'body', reportProgress = false, options) {
1393
1445
  if (jobId === null || jobId === undefined) {
1394
1446
  throw new Error('Required parameter jobId was null or undefined when calling jobCandidateControllerUpdateJobCandidate.');
@@ -1969,6 +2021,26 @@ const APIS = [AuthService, CVExtractionService, CandidateService, ClientService,
1969
2021
  * Do not edit the class manually.
1970
2022
  */
1971
2023
 
2024
+ /**
2025
+ * ViewCandidate API
2026
+ *
2027
+ *
2028
+ *
2029
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2030
+ * https://openapi-generator.tech
2031
+ * Do not edit the class manually.
2032
+ */
2033
+ var ReorderJobCandidateDto;
2034
+ (function (ReorderJobCandidateDto) {
2035
+ ReorderJobCandidateDto.StageEnum = {
2036
+ Screening: 'screening',
2037
+ Presented: 'presented',
2038
+ InterviewRequested: 'interview_requested',
2039
+ Interviewing: 'interviewing',
2040
+ Placed: 'placed'
2041
+ };
2042
+ })(ReorderJobCandidateDto || (ReorderJobCandidateDto = {}));
2043
+
1972
2044
  /**
1973
2045
  * ViewCandidate API
1974
2046
  *
@@ -2151,5 +2223,5 @@ function provideApi(configOrBasePath) {
2151
2223
  * Generated bundle index. Do not edit.
2152
2224
  */
2153
2225
 
2154
- export { APIS, AuthService, BASE_PATH, COLLECTION_FORMATS, CVExtractionService, CandidateService, ClientService, Configuration, HealthService, JobCandidatePublicService, JobCandidateService, JobService, OrganisationService, UpdateCandidateDto, UpdateCandidateLanguageDto, UpdateJobCandidateDto, ViewCandidateApiModule, WaitlistService, provideApi };
2226
+ export { APIS, AuthService, BASE_PATH, COLLECTION_FORMATS, CVExtractionService, CandidateService, ClientService, Configuration, HealthService, JobCandidatePublicService, JobCandidateService, JobService, OrganisationService, ReorderJobCandidateDto, UpdateCandidateDto, UpdateCandidateLanguageDto, UpdateJobCandidateDto, ViewCandidateApiModule, WaitlistService, provideApi };
2155
2227
  //# sourceMappingURL=viewcandidate-client.mjs.map