Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
wwwroot/*.js
node_modules
typings
dist
18 changes: 15 additions & 3 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ api/issuesApi.ts
api/jobInterviewStagesApi.ts
api/jobsApi.ts
api/linkTokenApi.ts
api/linkedAccountsApi.ts
api/offersApi.ts
api/officesApi.ts
api/passthroughApi.ts
Expand All @@ -29,18 +30,28 @@ api/usersApi.ts
git_push.sh
model/accessRoleEnum.ts
model/accountDetails.ts
model/accountDetailsAndActions.ts
model/accountDetailsAndActionsIntegration.ts
model/accountDetailsAndActionsStatusEnum.ts
model/accountIntegration.ts
model/accountToken.ts
model/activity.ts
model/activityTypeEnum.ts
model/application.ts
model/applicationEndpointRequest.ts
model/applicationRequest.ts
model/applicationResponse.ts
model/attachment.ts
model/attachmentEndpointRequest.ts
model/attachmentRequest.ts
model/attachmentResponse.ts
model/attachmentTypeEnum.ts
model/availableActions.ts
model/candidate.ts
model/candidateEndpointRequest.ts
model/candidateRequest.ts
model/candidateResponse.ts
model/categoriesEnum.ts
model/categoryEnum.ts
model/dataPassthroughRequest.ts
model/department.ts
Expand All @@ -65,6 +76,7 @@ model/offer.ts
model/offerStatusEnum.ts
model/office.ts
model/overallRecommendationEnum.ts
model/paginatedAccountDetailsAndActionsList.ts
model/paginatedActivityList.ts
model/paginatedApplicationList.ts
model/paginatedAttachmentList.ts
Expand Down Expand Up @@ -93,18 +105,18 @@ model/remoteKey.ts
model/remoteKeyForRegenerationRequest.ts
model/remoteResponse.ts
model/remoteUser.ts
model/remoteUserRequest.ts
model/requestFormatEnum.ts
model/scheduledInterview.ts
model/scheduledInterviewRequest.ts
model/scheduledInterviewStatusEnum.ts
model/scorecard.ts
model/scorecardRequest.ts
model/syncStatus.ts
model/syncStatusStatusEnum.ts
model/tag.ts
model/url.ts
model/urlRequest.ts
model/urlTypeEnum.ts
model/validationProblem.ts
model/veteranStatusEnum.ts
model/visibilityEnum.ts
package.json
tsconfig.json
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.1.1
5.3.0
4 changes: 3 additions & 1 deletion api/apis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export * from './jobsApi';
import { JobsApi } from './jobsApi';
export * from './linkTokenApi';
import { LinkTokenApi } from './linkTokenApi';
export * from './linkedAccountsApi';
import { LinkedAccountsApi } from './linkedAccountsApi';
export * from './offersApi';
import { OffersApi } from './offersApi';
export * from './officesApi';
Expand Down Expand Up @@ -59,4 +61,4 @@ export class HttpError extends Error {

export { RequestFile } from '../model/models';

export const APIS = [AccountDetailsApi, AccountTokenApi, ActivitiesApi, ApplicationsApi, AttachmentsApi, AvailableActionsApi, CandidatesApi, DeleteAccountApi, DepartmentsApi, EeocsApi, GenerateKeyApi, InterviewsApi, IssuesApi, JobInterviewStagesApi, JobsApi, LinkTokenApi, OffersApi, OfficesApi, PassthroughApi, RegenerateKeyApi, RejectReasonsApi, ScorecardsApi, SyncStatusApi, TagsApi, UsersApi];
export const APIS = [AccountDetailsApi, AccountTokenApi, ActivitiesApi, ApplicationsApi, AttachmentsApi, AvailableActionsApi, CandidatesApi, DeleteAccountApi, DepartmentsApi, EeocsApi, GenerateKeyApi, InterviewsApi, IssuesApi, JobInterviewStagesApi, JobsApi, LinkTokenApi, LinkedAccountsApi, OffersApi, OfficesApi, PassthroughApi, RegenerateKeyApi, RejectReasonsApi, ScorecardsApi, SyncStatusApi, TagsApi, UsersApi];
19 changes: 10 additions & 9 deletions api/applicationsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ import http from 'http';

/* tslint:disable:no-unused-locals */
import { Application } from '../model/application';
import { ApplicationRequest } from '../model/applicationRequest';
import { ApplicationEndpointRequest } from '../model/applicationEndpointRequest';
import { ApplicationResponse } from '../model/applicationResponse';
import { PaginatedApplicationList } from '../model/paginatedApplicationList';

import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
Expand Down Expand Up @@ -94,11 +95,10 @@ export class ApplicationsApi {
/**
* Creates an `Application` object with the given values.
* @param xAccountToken Token identifying the end user.
* @param remoteUserId The ID of the RemoteUser modifying the resource. This can be found in the ID field (not remote_id) in the RemoteUser table.
* @param applicationEndpointRequest
* @param runAsync Whether or not third-party updates should be run asynchronously.
* @param applicationRequest
*/
public async applicationsCreate (xAccountToken: string, remoteUserId?: string, runAsync?: boolean, applicationRequest?: ApplicationRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Application; }> {
public async applicationsCreate (xAccountToken: string, applicationEndpointRequest: ApplicationEndpointRequest, runAsync?: boolean, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: ApplicationResponse; }> {
const localVarPath = this.basePath + '/applications';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
Expand All @@ -116,8 +116,9 @@ export class ApplicationsApi {
throw new Error('Required parameter xAccountToken was null or undefined when calling applicationsCreate.');
}

if (remoteUserId !== undefined) {
localVarQueryParameters['remote_user_id'] = ObjectSerializer.serialize(remoteUserId, "string");
// verify required parameter 'applicationEndpointRequest' is not null or undefined
if (applicationEndpointRequest === null || applicationEndpointRequest === undefined) {
throw new Error('Required parameter applicationEndpointRequest was null or undefined when calling applicationsCreate.');
}

if (runAsync !== undefined) {
Expand All @@ -136,7 +137,7 @@ export class ApplicationsApi {
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
body: ObjectSerializer.serialize(applicationRequest, "ApplicationRequest")
body: ObjectSerializer.serialize(applicationEndpointRequest, "ApplicationEndpointRequest")
};

let authenticationPromise = Promise.resolve();
Expand All @@ -158,12 +159,12 @@ export class ApplicationsApi {
localVarRequestOptions.form = localVarFormParams;
}
}
return new Promise<{ response: http.IncomingMessage; body: Application; }>((resolve, reject) => {
return new Promise<{ response: http.IncomingMessage; body: ApplicationResponse; }>((resolve, reject) => {
localVarRequest(localVarRequestOptions, (error, response, body) => {
if (error) {
reject(error);
} else {
body = ObjectSerializer.deserialize(body, "Application");
body = ObjectSerializer.deserialize(body, "ApplicationResponse");
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
resolve({ response: response, body: body });
} else {
Expand Down
33 changes: 22 additions & 11 deletions api/attachmentsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ import http from 'http';

/* tslint:disable:no-unused-locals */
import { Attachment } from '../model/attachment';
import { AttachmentRequest } from '../model/attachmentRequest';
import { AttachmentEndpointRequest } from '../model/attachmentEndpointRequest';
import { AttachmentResponse } from '../model/attachmentResponse';
import { PaginatedAttachmentList } from '../model/paginatedAttachmentList';

import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
Expand Down Expand Up @@ -94,11 +95,10 @@ export class AttachmentsApi {
/**
* Creates an `Attachment` object with the given values.
* @param xAccountToken Token identifying the end user.
* @param remoteUserId The ID of the RemoteUser modifying the resource. This can be found in the ID field (not remote_id) in the RemoteUser table.
* @param attachmentEndpointRequest
* @param runAsync Whether or not third-party updates should be run asynchronously.
* @param attachmentRequest
*/
public async attachmentsCreate (xAccountToken: string, remoteUserId?: string, runAsync?: boolean, attachmentRequest?: AttachmentRequest, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Attachment; }> {
public async attachmentsCreate (xAccountToken: string, attachmentEndpointRequest: AttachmentEndpointRequest, runAsync?: boolean, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: AttachmentResponse; }> {
const localVarPath = this.basePath + '/attachments';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
Expand All @@ -116,8 +116,9 @@ export class AttachmentsApi {
throw new Error('Required parameter xAccountToken was null or undefined when calling attachmentsCreate.');
}

if (remoteUserId !== undefined) {
localVarQueryParameters['remote_user_id'] = ObjectSerializer.serialize(remoteUserId, "string");
// verify required parameter 'attachmentEndpointRequest' is not null or undefined
if (attachmentEndpointRequest === null || attachmentEndpointRequest === undefined) {
throw new Error('Required parameter attachmentEndpointRequest was null or undefined when calling attachmentsCreate.');
}

if (runAsync !== undefined) {
Expand All @@ -136,7 +137,7 @@ export class AttachmentsApi {
uri: localVarPath,
useQuerystring: this._useQuerystring,
json: true,
body: ObjectSerializer.serialize(attachmentRequest, "AttachmentRequest")
body: ObjectSerializer.serialize(attachmentEndpointRequest, "AttachmentEndpointRequest")
};

let authenticationPromise = Promise.resolve();
Expand All @@ -158,12 +159,12 @@ export class AttachmentsApi {
localVarRequestOptions.form = localVarFormParams;
}
}
return new Promise<{ response: http.IncomingMessage; body: Attachment; }>((resolve, reject) => {
return new Promise<{ response: http.IncomingMessage; body: AttachmentResponse; }>((resolve, reject) => {
localVarRequest(localVarRequestOptions, (error, response, body) => {
if (error) {
reject(error);
} else {
body = ObjectSerializer.deserialize(body, "Attachment");
body = ObjectSerializer.deserialize(body, "AttachmentResponse");
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
resolve({ response: response, body: body });
} else {
Expand All @@ -181,13 +182,14 @@ export class AttachmentsApi {
* @param createdAfter If provided, will only return objects created after this datetime.
* @param createdBefore If provided, will only return objects created before this datetime.
* @param cursor The pagination cursor value.
* @param expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
* @param includeRemoteData Whether to include the original data Merge fetched from the third-party to produce these models.
* @param modifiedAfter If provided, will only return objects modified after this datetime.
* @param modifiedBefore If provided, will only return objects modified before this datetime.
* @param pageSize Number of results to return per page.
* @param remoteId The API provider\&#39;s ID for the given object.
*/
public async attachmentsList (xAccountToken: string, candidateId?: string, createdAfter?: Date, createdBefore?: Date, cursor?: string, includeRemoteData?: boolean, modifiedAfter?: Date, modifiedBefore?: Date, pageSize?: number, remoteId?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: PaginatedAttachmentList; }> {
public async attachmentsList (xAccountToken: string, candidateId?: string, createdAfter?: Date, createdBefore?: Date, cursor?: string, expand?: 'candidate', includeRemoteData?: boolean, modifiedAfter?: Date, modifiedBefore?: Date, pageSize?: number, remoteId?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: PaginatedAttachmentList; }> {
const localVarPath = this.basePath + '/attachments';
let localVarQueryParameters: any = {};
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
Expand Down Expand Up @@ -221,6 +223,10 @@ export class AttachmentsApi {
localVarQueryParameters['cursor'] = ObjectSerializer.serialize(cursor, "string");
}

if (expand !== undefined) {
localVarQueryParameters['expand'] = ObjectSerializer.serialize(expand, "'candidate'");
}

if (includeRemoteData !== undefined) {
localVarQueryParameters['include_remote_data'] = ObjectSerializer.serialize(includeRemoteData, "boolean");
}
Expand Down Expand Up @@ -294,9 +300,10 @@ export class AttachmentsApi {
* Returns an `Attachment` object with the given `id`.
* @param xAccountToken Token identifying the end user.
* @param id
* @param expand Which relations should be returned in expanded form. Multiple relation names should be comma separated without spaces.
* @param includeRemoteData Whether to include the original data Merge fetched from the third-party to produce these models.
*/
public async attachmentsRetrieve (xAccountToken: string, id: string, includeRemoteData?: boolean, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Attachment; }> {
public async attachmentsRetrieve (xAccountToken: string, id: string, expand?: 'candidate', includeRemoteData?: boolean, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.IncomingMessage; body: Attachment; }> {
const localVarPath = this.basePath + '/attachments/{id}'
.replace('{' + 'id' + '}', encodeURIComponent(String(id)));
let localVarQueryParameters: any = {};
Expand All @@ -320,6 +327,10 @@ export class AttachmentsApi {
throw new Error('Required parameter id was null or undefined when calling attachmentsRetrieve.');
}

if (expand !== undefined) {
localVarQueryParameters['expand'] = ObjectSerializer.serialize(expand, "'candidate'");
}

if (includeRemoteData !== undefined) {
localVarQueryParameters['include_remote_data'] = ObjectSerializer.serialize(includeRemoteData, "boolean");
}
Expand Down
Loading