Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@maple-app/sdk-node

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maple-app/sdk-node - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

examples/index.d.ts

416

api.d.ts

@@ -19,29 +19,11 @@ /**

* @export
* @interface ApiError
* @interface ApiErrorResponseDto
*/
export interface ApiError {
export interface ApiErrorResponseDto {
/**
*
* @type {string}
* @memberof ApiError
* @type {Array<MapleApiError>}
* @memberof ApiErrorResponseDto
*/
timestamp: string;
/**
*
* @type {number}
* @memberof ApiError
*/
status: number;
/**
*
* @type {string}
* @memberof ApiError
*/
path: string;
/**
*
* @type {string}
* @memberof ApiError
*/
displayableError: string;
errors: Array<MapleApiError>;
}

@@ -88,2 +70,34 @@ /**

* @export
* @interface CompleteShiftApiRequestDataDto
*/
export interface CompleteShiftApiRequestDataDto {
/**
*
* @type {CompleteShiftDto}
* @memberof CompleteShiftApiRequestDataDto
*/
attributes: CompleteShiftDto;
/**
*
* @type {string}
* @memberof CompleteShiftApiRequestDataDto
*/
type: string;
}
/**
*
* @export
* @interface CompleteShiftApiRequestDto
*/
export interface CompleteShiftApiRequestDto {
/**
*
* @type {CompleteShiftApiRequestDataDto}
* @memberof CompleteShiftApiRequestDto
*/
data: CompleteShiftApiRequestDataDto;
}
/**
*
* @export
* @interface CompleteShiftDto

@@ -126,2 +140,34 @@ */

* @export
* @interface CreateAssignmentIntegrationApiRequestDataDto
*/
export interface CreateAssignmentIntegrationApiRequestDataDto {
/**
*
* @type {CreateAssignmentIntegrationDto}
* @memberof CreateAssignmentIntegrationApiRequestDataDto
*/
attributes: CreateAssignmentIntegrationDto;
/**
*
* @type {string}
* @memberof CreateAssignmentIntegrationApiRequestDataDto
*/
type: string;
}
/**
*
* @export
* @interface CreateAssignmentIntegrationApiRequestDto
*/
export interface CreateAssignmentIntegrationApiRequestDto {
/**
*
* @type {CreateAssignmentIntegrationApiRequestDataDto}
* @memberof CreateAssignmentIntegrationApiRequestDto
*/
data: CreateAssignmentIntegrationApiRequestDataDto;
}
/**
*
* @export
* @interface CreateAssignmentIntegrationDto

@@ -170,2 +216,34 @@ */

* @export
* @interface CreateBatchShiftsIntegrationApiRequestDataDto
*/
export interface CreateBatchShiftsIntegrationApiRequestDataDto {
/**
*
* @type {CreateBatchShiftsIntegrationDto}
* @memberof CreateBatchShiftsIntegrationApiRequestDataDto
*/
attributes: CreateBatchShiftsIntegrationDto;
/**
*
* @type {string}
* @memberof CreateBatchShiftsIntegrationApiRequestDataDto
*/
type: string;
}
/**
*
* @export
* @interface CreateBatchShiftsIntegrationApiRequestDto
*/
export interface CreateBatchShiftsIntegrationApiRequestDto {
/**
*
* @type {CreateBatchShiftsIntegrationApiRequestDataDto}
* @memberof CreateBatchShiftsIntegrationApiRequestDto
*/
data: CreateBatchShiftsIntegrationApiRequestDataDto;
}
/**
*
* @export
* @interface CreateBatchShiftsIntegrationDto

@@ -227,2 +305,34 @@ */

* @export
* @interface DeleteAssignmentIntegrationApiRequestDataDto
*/
export interface DeleteAssignmentIntegrationApiRequestDataDto {
/**
*
* @type {DeleteAssignmentIntegrationDto}
* @memberof DeleteAssignmentIntegrationApiRequestDataDto
*/
attributes: DeleteAssignmentIntegrationDto;
/**
*
* @type {string}
* @memberof DeleteAssignmentIntegrationApiRequestDataDto
*/
type: string;
}
/**
*
* @export
* @interface DeleteAssignmentIntegrationApiRequestDto
*/
export interface DeleteAssignmentIntegrationApiRequestDto {
/**
*
* @type {DeleteAssignmentIntegrationApiRequestDataDto}
* @memberof DeleteAssignmentIntegrationApiRequestDto
*/
data: DeleteAssignmentIntegrationApiRequestDataDto;
}
/**
*
* @export
* @interface DeleteAssignmentIntegrationDto

@@ -241,2 +351,34 @@ */

* @export
* @interface DeleteShiftIntegrationApiRequestDataDto
*/
export interface DeleteShiftIntegrationApiRequestDataDto {
/**
*
* @type {DeleteShiftIntegrationDto}
* @memberof DeleteShiftIntegrationApiRequestDataDto
*/
attributes: DeleteShiftIntegrationDto;
/**
*
* @type {string}
* @memberof DeleteShiftIntegrationApiRequestDataDto
*/
type: string;
}
/**
*
* @export
* @interface DeleteShiftIntegrationApiRequestDto
*/
export interface DeleteShiftIntegrationApiRequestDto {
/**
*
* @type {DeleteShiftIntegrationApiRequestDataDto}
* @memberof DeleteShiftIntegrationApiRequestDto
*/
data: DeleteShiftIntegrationApiRequestDataDto;
}
/**
*
* @export
* @interface DeleteShiftIntegrationDto

@@ -255,2 +397,33 @@ */

* @export
* @interface MapleApiError
*/
export interface MapleApiError {
/**
*
* @type {string}
* @memberof MapleApiError
*/
code: string;
/**
*
* @type {string}
* @memberof MapleApiError
*/
id: string;
/**
*
* @type {string}
* @memberof MapleApiError
*/
status: string;
/**
*
* @type {string}
* @memberof MapleApiError
*/
title: string;
}
/**
*
* @export
* @interface RefreshWebhookEventPayload

@@ -324,2 +497,53 @@ */

* @export
* @interface ShiftIntegrationApiResponseDataDto
*/
export interface ShiftIntegrationApiResponseDataDto {
/**
*
* @type {ShiftIntegrationDto}
* @memberof ShiftIntegrationApiResponseDataDto
*/
attributes: ShiftIntegrationDto;
/**
*
* @type {string}
* @memberof ShiftIntegrationApiResponseDataDto
*/
id: string;
/**
*
* @type {string}
* @memberof ShiftIntegrationApiResponseDataDto
*/
type: string;
}
/**
*
* @export
* @interface ShiftIntegrationApiResponseDto
*/
export interface ShiftIntegrationApiResponseDto {
/**
*
* @type {ShiftIntegrationApiResponseDataDto}
* @memberof ShiftIntegrationApiResponseDto
*/
data: ShiftIntegrationApiResponseDataDto;
}
/**
*
* @export
* @interface ShiftIntegrationBatchApiResponseDto
*/
export interface ShiftIntegrationBatchApiResponseDto {
/**
*
* @type {Array<ShiftIntegrationApiResponseDataDto>}
* @memberof ShiftIntegrationBatchApiResponseDto
*/
data: Array<ShiftIntegrationApiResponseDataDto>;
}
/**
*
* @export
* @interface ShiftIntegrationDto

@@ -453,2 +677,34 @@ */

* @export
* @interface UpdateShiftIntegrationApiRequestDataDto
*/
export interface UpdateShiftIntegrationApiRequestDataDto {
/**
*
* @type {UpdateShiftIntegrationDto}
* @memberof UpdateShiftIntegrationApiRequestDataDto
*/
attributes: UpdateShiftIntegrationDto;
/**
*
* @type {string}
* @memberof UpdateShiftIntegrationApiRequestDataDto
*/
type: string;
}
/**
*
* @export
* @interface UpdateShiftIntegrationApiRequestDto
*/
export interface UpdateShiftIntegrationApiRequestDto {
/**
*
* @type {UpdateShiftIntegrationApiRequestDataDto}
* @memberof UpdateShiftIntegrationApiRequestDto
*/
data: UpdateShiftIntegrationApiRequestDataDto;
}
/**
*
* @export
* @interface UpdateShiftIntegrationDto

@@ -508,38 +764,38 @@ */

* @param {number} shiftId
* @param {CompleteShiftDto} completeShiftDto
* @param {CompleteShiftApiRequestDto} completeShiftApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
shiftsIntegrationControllerCompleteShift: (shiftId: number, completeShiftDto: CompleteShiftDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
shiftsIntegrationControllerCompleteShift: (shiftId: number, completeShiftApiRequestDto: CompleteShiftApiRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**
*
* @param {number} shiftId
* @param {CreateAssignmentIntegrationDto} createAssignmentIntegrationDto
* @param {CreateAssignmentIntegrationApiRequestDto} createAssignmentIntegrationApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
shiftsIntegrationControllerCreateShiftAssignment: (shiftId: number, createAssignmentIntegrationDto: CreateAssignmentIntegrationDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
shiftsIntegrationControllerCreateShiftAssignment: (shiftId: number, createAssignmentIntegrationApiRequestDto: CreateAssignmentIntegrationApiRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**
*
* @param {CreateBatchShiftsIntegrationDto} createBatchShiftsIntegrationDto
* @param {CreateBatchShiftsIntegrationApiRequestDto} createBatchShiftsIntegrationApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
shiftsIntegrationControllerCreateShifts: (createBatchShiftsIntegrationDto: CreateBatchShiftsIntegrationDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
shiftsIntegrationControllerCreateShifts: (createBatchShiftsIntegrationApiRequestDto: CreateBatchShiftsIntegrationApiRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**
*
* @param {number} shiftId
* @param {DeleteShiftIntegrationDto} deleteShiftIntegrationDto
* @param {DeleteShiftIntegrationApiRequestDto} deleteShiftIntegrationApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
shiftsIntegrationControllerDeleteShift: (shiftId: number, deleteShiftIntegrationDto: DeleteShiftIntegrationDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
shiftsIntegrationControllerDeleteShift: (shiftId: number, deleteShiftIntegrationApiRequestDto: DeleteShiftIntegrationApiRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**
*
* @param {number} shiftId
* @param {DeleteAssignmentIntegrationDto} deleteAssignmentIntegrationDto
* @param {DeleteAssignmentIntegrationApiRequestDto} deleteAssignmentIntegrationApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
shiftsIntegrationControllerDeleteShiftAssignment: (shiftId: number, deleteAssignmentIntegrationDto: DeleteAssignmentIntegrationDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
shiftsIntegrationControllerDeleteShiftAssignment: (shiftId: number, deleteAssignmentIntegrationApiRequestDto: DeleteAssignmentIntegrationApiRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**

@@ -556,15 +812,15 @@ *

* @param {number} shiftId
* @param {UpdateShiftIntegrationDto} updateShiftIntegrationDto
* @param {UpdateShiftIntegrationApiRequestDto} updateShiftIntegrationApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
shiftsIntegrationControllerUpdateShift: (shiftId: number, updateShiftIntegrationDto: UpdateShiftIntegrationDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
shiftsIntegrationControllerUpdateShift: (shiftId: number, updateShiftIntegrationApiRequestDto: UpdateShiftIntegrationApiRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**
*
* @param {number} shiftId
* @param {CreateAssignmentIntegrationDto} createAssignmentIntegrationDto
* @param {CreateAssignmentIntegrationApiRequestDto} createAssignmentIntegrationApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
shiftsIntegrationControllerUpdateShiftAssignment: (shiftId: number, createAssignmentIntegrationDto: CreateAssignmentIntegrationDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
shiftsIntegrationControllerUpdateShiftAssignment: (shiftId: number, createAssignmentIntegrationApiRequestDto: CreateAssignmentIntegrationApiRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
};

@@ -579,38 +835,38 @@ /**

* @param {number} shiftId
* @param {CompleteShiftDto} completeShiftDto
* @param {CompleteShiftApiRequestDto} completeShiftApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
shiftsIntegrationControllerCompleteShift(shiftId: number, completeShiftDto: CompleteShiftDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShiftIntegrationDto>>;
shiftsIntegrationControllerCompleteShift(shiftId: number, completeShiftApiRequestDto: CompleteShiftApiRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShiftIntegrationApiResponseDto>>;
/**
*
* @param {number} shiftId
* @param {CreateAssignmentIntegrationDto} createAssignmentIntegrationDto
* @param {CreateAssignmentIntegrationApiRequestDto} createAssignmentIntegrationApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
shiftsIntegrationControllerCreateShiftAssignment(shiftId: number, createAssignmentIntegrationDto: CreateAssignmentIntegrationDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShiftIntegrationDto>>;
shiftsIntegrationControllerCreateShiftAssignment(shiftId: number, createAssignmentIntegrationApiRequestDto: CreateAssignmentIntegrationApiRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShiftIntegrationApiResponseDto>>;
/**
*
* @param {CreateBatchShiftsIntegrationDto} createBatchShiftsIntegrationDto
* @param {CreateBatchShiftsIntegrationApiRequestDto} createBatchShiftsIntegrationApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
shiftsIntegrationControllerCreateShifts(createBatchShiftsIntegrationDto: CreateBatchShiftsIntegrationDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ShiftIntegrationDto>>>;
shiftsIntegrationControllerCreateShifts(createBatchShiftsIntegrationApiRequestDto: CreateBatchShiftsIntegrationApiRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShiftIntegrationBatchApiResponseDto>>;
/**
*
* @param {number} shiftId
* @param {DeleteShiftIntegrationDto} deleteShiftIntegrationDto
* @param {DeleteShiftIntegrationApiRequestDto} deleteShiftIntegrationApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
shiftsIntegrationControllerDeleteShift(shiftId: number, deleteShiftIntegrationDto: DeleteShiftIntegrationDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
shiftsIntegrationControllerDeleteShift(shiftId: number, deleteShiftIntegrationApiRequestDto: DeleteShiftIntegrationApiRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
/**
*
* @param {number} shiftId
* @param {DeleteAssignmentIntegrationDto} deleteAssignmentIntegrationDto
* @param {DeleteAssignmentIntegrationApiRequestDto} deleteAssignmentIntegrationApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
shiftsIntegrationControllerDeleteShiftAssignment(shiftId: number, deleteAssignmentIntegrationDto: DeleteAssignmentIntegrationDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShiftIntegrationDto>>;
shiftsIntegrationControllerDeleteShiftAssignment(shiftId: number, deleteAssignmentIntegrationApiRequestDto: DeleteAssignmentIntegrationApiRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShiftIntegrationApiResponseDto>>;
/**

@@ -623,19 +879,19 @@ *

*/
shiftsIntegrationControllerFindShift(shiftId: number, externalFacilityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShiftIntegrationDto>>;
shiftsIntegrationControllerFindShift(shiftId: number, externalFacilityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShiftIntegrationApiResponseDto>>;
/**
*
* @param {number} shiftId
* @param {UpdateShiftIntegrationDto} updateShiftIntegrationDto
* @param {UpdateShiftIntegrationApiRequestDto} updateShiftIntegrationApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
shiftsIntegrationControllerUpdateShift(shiftId: number, updateShiftIntegrationDto: UpdateShiftIntegrationDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShiftIntegrationDto>>;
shiftsIntegrationControllerUpdateShift(shiftId: number, updateShiftIntegrationApiRequestDto: UpdateShiftIntegrationApiRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShiftIntegrationApiResponseDto>>;
/**
*
* @param {number} shiftId
* @param {CreateAssignmentIntegrationDto} createAssignmentIntegrationDto
* @param {CreateAssignmentIntegrationApiRequestDto} createAssignmentIntegrationApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
shiftsIntegrationControllerUpdateShiftAssignment(shiftId: number, createAssignmentIntegrationDto: CreateAssignmentIntegrationDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShiftIntegrationDto>>;
shiftsIntegrationControllerUpdateShiftAssignment(shiftId: number, createAssignmentIntegrationApiRequestDto: CreateAssignmentIntegrationApiRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShiftIntegrationApiResponseDto>>;
};

@@ -653,3 +909,3 @@ /**

*/
shiftsIntegrationControllerCompleteShift(requestParameters: DefaultApiShiftsIntegrationControllerCompleteShiftRequest, options?: AxiosRequestConfig): AxiosPromise<ShiftIntegrationDto>;
shiftsIntegrationControllerCompleteShift(requestParameters: DefaultApiShiftsIntegrationControllerCompleteShiftRequest, options?: AxiosRequestConfig): AxiosPromise<ShiftIntegrationApiResponseDto>;
/**

@@ -661,3 +917,3 @@ *

*/
shiftsIntegrationControllerCreateShiftAssignment(requestParameters: DefaultApiShiftsIntegrationControllerCreateShiftAssignmentRequest, options?: AxiosRequestConfig): AxiosPromise<ShiftIntegrationDto>;
shiftsIntegrationControllerCreateShiftAssignment(requestParameters: DefaultApiShiftsIntegrationControllerCreateShiftAssignmentRequest, options?: AxiosRequestConfig): AxiosPromise<ShiftIntegrationApiResponseDto>;
/**

@@ -669,3 +925,3 @@ *

*/
shiftsIntegrationControllerCreateShifts(requestParameters: DefaultApiShiftsIntegrationControllerCreateShiftsRequest, options?: AxiosRequestConfig): AxiosPromise<Array<ShiftIntegrationDto>>;
shiftsIntegrationControllerCreateShifts(requestParameters: DefaultApiShiftsIntegrationControllerCreateShiftsRequest, options?: AxiosRequestConfig): AxiosPromise<ShiftIntegrationBatchApiResponseDto>;
/**

@@ -684,3 +940,3 @@ *

*/
shiftsIntegrationControllerDeleteShiftAssignment(requestParameters: DefaultApiShiftsIntegrationControllerDeleteShiftAssignmentRequest, options?: AxiosRequestConfig): AxiosPromise<ShiftIntegrationDto>;
shiftsIntegrationControllerDeleteShiftAssignment(requestParameters: DefaultApiShiftsIntegrationControllerDeleteShiftAssignmentRequest, options?: AxiosRequestConfig): AxiosPromise<ShiftIntegrationApiResponseDto>;
/**

@@ -692,3 +948,3 @@ *

*/
shiftsIntegrationControllerFindShift(requestParameters: DefaultApiShiftsIntegrationControllerFindShiftRequest, options?: AxiosRequestConfig): AxiosPromise<ShiftIntegrationDto>;
shiftsIntegrationControllerFindShift(requestParameters: DefaultApiShiftsIntegrationControllerFindShiftRequest, options?: AxiosRequestConfig): AxiosPromise<ShiftIntegrationApiResponseDto>;
/**

@@ -700,3 +956,3 @@ *

*/
shiftsIntegrationControllerUpdateShift(requestParameters: DefaultApiShiftsIntegrationControllerUpdateShiftRequest, options?: AxiosRequestConfig): AxiosPromise<ShiftIntegrationDto>;
shiftsIntegrationControllerUpdateShift(requestParameters: DefaultApiShiftsIntegrationControllerUpdateShiftRequest, options?: AxiosRequestConfig): AxiosPromise<ShiftIntegrationApiResponseDto>;
/**

@@ -708,3 +964,3 @@ *

*/
shiftsIntegrationControllerUpdateShiftAssignment(requestParameters: DefaultApiShiftsIntegrationControllerUpdateShiftAssignmentRequest, options?: AxiosRequestConfig): AxiosPromise<ShiftIntegrationDto>;
shiftsIntegrationControllerUpdateShiftAssignment(requestParameters: DefaultApiShiftsIntegrationControllerUpdateShiftAssignmentRequest, options?: AxiosRequestConfig): AxiosPromise<ShiftIntegrationApiResponseDto>;
};

@@ -725,6 +981,6 @@ /**

*
* @type {CompleteShiftDto}
* @type {CompleteShiftApiRequestDto}
* @memberof DefaultApiShiftsIntegrationControllerCompleteShift
*/
readonly completeShiftDto: CompleteShiftDto;
readonly completeShiftApiRequestDto: CompleteShiftApiRequestDto;
}

@@ -745,6 +1001,6 @@ /**

*
* @type {CreateAssignmentIntegrationDto}
* @type {CreateAssignmentIntegrationApiRequestDto}
* @memberof DefaultApiShiftsIntegrationControllerCreateShiftAssignment
*/
readonly createAssignmentIntegrationDto: CreateAssignmentIntegrationDto;
readonly createAssignmentIntegrationApiRequestDto: CreateAssignmentIntegrationApiRequestDto;
}

@@ -759,6 +1015,6 @@ /**

*
* @type {CreateBatchShiftsIntegrationDto}
* @type {CreateBatchShiftsIntegrationApiRequestDto}
* @memberof DefaultApiShiftsIntegrationControllerCreateShifts
*/
readonly createBatchShiftsIntegrationDto: CreateBatchShiftsIntegrationDto;
readonly createBatchShiftsIntegrationApiRequestDto: CreateBatchShiftsIntegrationApiRequestDto;
}

@@ -779,6 +1035,6 @@ /**

*
* @type {DeleteShiftIntegrationDto}
* @type {DeleteShiftIntegrationApiRequestDto}
* @memberof DefaultApiShiftsIntegrationControllerDeleteShift
*/
readonly deleteShiftIntegrationDto: DeleteShiftIntegrationDto;
readonly deleteShiftIntegrationApiRequestDto: DeleteShiftIntegrationApiRequestDto;
}

@@ -799,6 +1055,6 @@ /**

*
* @type {DeleteAssignmentIntegrationDto}
* @type {DeleteAssignmentIntegrationApiRequestDto}
* @memberof DefaultApiShiftsIntegrationControllerDeleteShiftAssignment
*/
readonly deleteAssignmentIntegrationDto: DeleteAssignmentIntegrationDto;
readonly deleteAssignmentIntegrationApiRequestDto: DeleteAssignmentIntegrationApiRequestDto;
}

@@ -838,6 +1094,6 @@ /**

*
* @type {UpdateShiftIntegrationDto}
* @type {UpdateShiftIntegrationApiRequestDto}
* @memberof DefaultApiShiftsIntegrationControllerUpdateShift
*/
readonly updateShiftIntegrationDto: UpdateShiftIntegrationDto;
readonly updateShiftIntegrationApiRequestDto: UpdateShiftIntegrationApiRequestDto;
}

@@ -858,6 +1114,6 @@ /**

*
* @type {CreateAssignmentIntegrationDto}
* @type {CreateAssignmentIntegrationApiRequestDto}
* @memberof DefaultApiShiftsIntegrationControllerUpdateShiftAssignment
*/
readonly createAssignmentIntegrationDto: CreateAssignmentIntegrationDto;
readonly createAssignmentIntegrationApiRequestDto: CreateAssignmentIntegrationApiRequestDto;
}

@@ -878,3 +1134,3 @@ /**

*/
shiftsIntegrationControllerCompleteShift(requestParameters: DefaultApiShiftsIntegrationControllerCompleteShiftRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ShiftIntegrationDto, any>>;
shiftsIntegrationControllerCompleteShift(requestParameters: DefaultApiShiftsIntegrationControllerCompleteShiftRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ShiftIntegrationApiResponseDto, any>>;
/**

@@ -887,3 +1143,3 @@ *

*/
shiftsIntegrationControllerCreateShiftAssignment(requestParameters: DefaultApiShiftsIntegrationControllerCreateShiftAssignmentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ShiftIntegrationDto, any>>;
shiftsIntegrationControllerCreateShiftAssignment(requestParameters: DefaultApiShiftsIntegrationControllerCreateShiftAssignmentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ShiftIntegrationApiResponseDto, any>>;
/**

@@ -896,3 +1152,3 @@ *

*/
shiftsIntegrationControllerCreateShifts(requestParameters: DefaultApiShiftsIntegrationControllerCreateShiftsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ShiftIntegrationDto[], any>>;
shiftsIntegrationControllerCreateShifts(requestParameters: DefaultApiShiftsIntegrationControllerCreateShiftsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ShiftIntegrationBatchApiResponseDto, any>>;
/**

@@ -913,3 +1169,3 @@ *

*/
shiftsIntegrationControllerDeleteShiftAssignment(requestParameters: DefaultApiShiftsIntegrationControllerDeleteShiftAssignmentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ShiftIntegrationDto, any>>;
shiftsIntegrationControllerDeleteShiftAssignment(requestParameters: DefaultApiShiftsIntegrationControllerDeleteShiftAssignmentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ShiftIntegrationApiResponseDto, any>>;
/**

@@ -922,3 +1178,3 @@ *

*/
shiftsIntegrationControllerFindShift(requestParameters: DefaultApiShiftsIntegrationControllerFindShiftRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ShiftIntegrationDto, any>>;
shiftsIntegrationControllerFindShift(requestParameters: DefaultApiShiftsIntegrationControllerFindShiftRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ShiftIntegrationApiResponseDto, any>>;
/**

@@ -931,3 +1187,3 @@ *

*/
shiftsIntegrationControllerUpdateShift(requestParameters: DefaultApiShiftsIntegrationControllerUpdateShiftRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ShiftIntegrationDto, any>>;
shiftsIntegrationControllerUpdateShift(requestParameters: DefaultApiShiftsIntegrationControllerUpdateShiftRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ShiftIntegrationApiResponseDto, any>>;
/**

@@ -940,4 +1196,4 @@ *

*/
shiftsIntegrationControllerUpdateShiftAssignment(requestParameters: DefaultApiShiftsIntegrationControllerUpdateShiftAssignmentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ShiftIntegrationDto, any>>;
shiftsIntegrationControllerUpdateShiftAssignment(requestParameters: DefaultApiShiftsIntegrationControllerUpdateShiftAssignmentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ShiftIntegrationApiResponseDto, any>>;
}
//# sourceMappingURL=api.d.ts.map

140

api.js

@@ -61,11 +61,11 @@ "use strict";

* @param {number} shiftId
* @param {CompleteShiftDto} completeShiftDto
* @param {CompleteShiftApiRequestDto} completeShiftApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
shiftsIntegrationControllerCompleteShift: async (shiftId, completeShiftDto, options = {}) => {
shiftsIntegrationControllerCompleteShift: async (shiftId, completeShiftApiRequestDto, options = {}) => {
// verify required parameter 'shiftId' is not null or undefined
(0, common_1.assertParamExists)("shiftsIntegrationControllerCompleteShift", "shiftId", shiftId);
// verify required parameter 'completeShiftDto' is not null or undefined
(0, common_1.assertParamExists)("shiftsIntegrationControllerCompleteShift", "completeShiftDto", completeShiftDto);
// verify required parameter 'completeShiftApiRequestDto' is not null or undefined
(0, common_1.assertParamExists)("shiftsIntegrationControllerCompleteShift", "completeShiftApiRequestDto", completeShiftApiRequestDto);
const localVarPath = `/api/v1/shifts/{shiftId}/completions`.replace(`{${"shiftId"}}`, encodeURIComponent(String(shiftId)));

@@ -91,3 +91,3 @@ // use dummy base URL string because the URL constructor only accepts absolute URLs.

};
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(completeShiftDto, localVarRequestOptions, configuration);
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(completeShiftApiRequestDto, localVarRequestOptions, configuration);
return {

@@ -101,11 +101,11 @@ url: (0, common_1.toPathString)(localVarUrlObj),

* @param {number} shiftId
* @param {CreateAssignmentIntegrationDto} createAssignmentIntegrationDto
* @param {CreateAssignmentIntegrationApiRequestDto} createAssignmentIntegrationApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
shiftsIntegrationControllerCreateShiftAssignment: async (shiftId, createAssignmentIntegrationDto, options = {}) => {
shiftsIntegrationControllerCreateShiftAssignment: async (shiftId, createAssignmentIntegrationApiRequestDto, options = {}) => {
// verify required parameter 'shiftId' is not null or undefined
(0, common_1.assertParamExists)("shiftsIntegrationControllerCreateShiftAssignment", "shiftId", shiftId);
// verify required parameter 'createAssignmentIntegrationDto' is not null or undefined
(0, common_1.assertParamExists)("shiftsIntegrationControllerCreateShiftAssignment", "createAssignmentIntegrationDto", createAssignmentIntegrationDto);
// verify required parameter 'createAssignmentIntegrationApiRequestDto' is not null or undefined
(0, common_1.assertParamExists)("shiftsIntegrationControllerCreateShiftAssignment", "createAssignmentIntegrationApiRequestDto", createAssignmentIntegrationApiRequestDto);
const localVarPath = `/api/v1/shifts/{shiftId}/assignments`.replace(`{${"shiftId"}}`, encodeURIComponent(String(shiftId)));

@@ -131,3 +131,3 @@ // use dummy base URL string because the URL constructor only accepts absolute URLs.

};
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createAssignmentIntegrationDto, localVarRequestOptions, configuration);
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createAssignmentIntegrationApiRequestDto, localVarRequestOptions, configuration);
return {

@@ -140,9 +140,9 @@ url: (0, common_1.toPathString)(localVarUrlObj),

*
* @param {CreateBatchShiftsIntegrationDto} createBatchShiftsIntegrationDto
* @param {CreateBatchShiftsIntegrationApiRequestDto} createBatchShiftsIntegrationApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
shiftsIntegrationControllerCreateShifts: async (createBatchShiftsIntegrationDto, options = {}) => {
// verify required parameter 'createBatchShiftsIntegrationDto' is not null or undefined
(0, common_1.assertParamExists)("shiftsIntegrationControllerCreateShifts", "createBatchShiftsIntegrationDto", createBatchShiftsIntegrationDto);
shiftsIntegrationControllerCreateShifts: async (createBatchShiftsIntegrationApiRequestDto, options = {}) => {
// verify required parameter 'createBatchShiftsIntegrationApiRequestDto' is not null or undefined
(0, common_1.assertParamExists)("shiftsIntegrationControllerCreateShifts", "createBatchShiftsIntegrationApiRequestDto", createBatchShiftsIntegrationApiRequestDto);
const localVarPath = `/api/v1/shifts`;

@@ -168,3 +168,3 @@ // use dummy base URL string because the URL constructor only accepts absolute URLs.

};
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBatchShiftsIntegrationDto, localVarRequestOptions, configuration);
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createBatchShiftsIntegrationApiRequestDto, localVarRequestOptions, configuration);
return {

@@ -178,11 +178,11 @@ url: (0, common_1.toPathString)(localVarUrlObj),

* @param {number} shiftId
* @param {DeleteShiftIntegrationDto} deleteShiftIntegrationDto
* @param {DeleteShiftIntegrationApiRequestDto} deleteShiftIntegrationApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
shiftsIntegrationControllerDeleteShift: async (shiftId, deleteShiftIntegrationDto, options = {}) => {
shiftsIntegrationControllerDeleteShift: async (shiftId, deleteShiftIntegrationApiRequestDto, options = {}) => {
// verify required parameter 'shiftId' is not null or undefined
(0, common_1.assertParamExists)("shiftsIntegrationControllerDeleteShift", "shiftId", shiftId);
// verify required parameter 'deleteShiftIntegrationDto' is not null or undefined
(0, common_1.assertParamExists)("shiftsIntegrationControllerDeleteShift", "deleteShiftIntegrationDto", deleteShiftIntegrationDto);
// verify required parameter 'deleteShiftIntegrationApiRequestDto' is not null or undefined
(0, common_1.assertParamExists)("shiftsIntegrationControllerDeleteShift", "deleteShiftIntegrationApiRequestDto", deleteShiftIntegrationApiRequestDto);
const localVarPath = `/api/v1/shifts/{shiftId}`.replace(`{${"shiftId"}}`, encodeURIComponent(String(shiftId)));

@@ -208,3 +208,3 @@ // use dummy base URL string because the URL constructor only accepts absolute URLs.

};
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(deleteShiftIntegrationDto, localVarRequestOptions, configuration);
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(deleteShiftIntegrationApiRequestDto, localVarRequestOptions, configuration);
return {

@@ -218,11 +218,11 @@ url: (0, common_1.toPathString)(localVarUrlObj),

* @param {number} shiftId
* @param {DeleteAssignmentIntegrationDto} deleteAssignmentIntegrationDto
* @param {DeleteAssignmentIntegrationApiRequestDto} deleteAssignmentIntegrationApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
shiftsIntegrationControllerDeleteShiftAssignment: async (shiftId, deleteAssignmentIntegrationDto, options = {}) => {
shiftsIntegrationControllerDeleteShiftAssignment: async (shiftId, deleteAssignmentIntegrationApiRequestDto, options = {}) => {
// verify required parameter 'shiftId' is not null or undefined
(0, common_1.assertParamExists)("shiftsIntegrationControllerDeleteShiftAssignment", "shiftId", shiftId);
// verify required parameter 'deleteAssignmentIntegrationDto' is not null or undefined
(0, common_1.assertParamExists)("shiftsIntegrationControllerDeleteShiftAssignment", "deleteAssignmentIntegrationDto", deleteAssignmentIntegrationDto);
// verify required parameter 'deleteAssignmentIntegrationApiRequestDto' is not null or undefined
(0, common_1.assertParamExists)("shiftsIntegrationControllerDeleteShiftAssignment", "deleteAssignmentIntegrationApiRequestDto", deleteAssignmentIntegrationApiRequestDto);
const localVarPath = `/api/v1/shifts/{shiftId}/assignments`.replace(`{${"shiftId"}}`, encodeURIComponent(String(shiftId)));

@@ -248,3 +248,3 @@ // use dummy base URL string because the URL constructor only accepts absolute URLs.

};
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(deleteAssignmentIntegrationDto, localVarRequestOptions, configuration);
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(deleteAssignmentIntegrationApiRequestDto, localVarRequestOptions, configuration);
return {

@@ -297,11 +297,11 @@ url: (0, common_1.toPathString)(localVarUrlObj),

* @param {number} shiftId
* @param {UpdateShiftIntegrationDto} updateShiftIntegrationDto
* @param {UpdateShiftIntegrationApiRequestDto} updateShiftIntegrationApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
shiftsIntegrationControllerUpdateShift: async (shiftId, updateShiftIntegrationDto, options = {}) => {
shiftsIntegrationControllerUpdateShift: async (shiftId, updateShiftIntegrationApiRequestDto, options = {}) => {
// verify required parameter 'shiftId' is not null or undefined
(0, common_1.assertParamExists)("shiftsIntegrationControllerUpdateShift", "shiftId", shiftId);
// verify required parameter 'updateShiftIntegrationDto' is not null or undefined
(0, common_1.assertParamExists)("shiftsIntegrationControllerUpdateShift", "updateShiftIntegrationDto", updateShiftIntegrationDto);
// verify required parameter 'updateShiftIntegrationApiRequestDto' is not null or undefined
(0, common_1.assertParamExists)("shiftsIntegrationControllerUpdateShift", "updateShiftIntegrationApiRequestDto", updateShiftIntegrationApiRequestDto);
const localVarPath = `/api/v1/shifts/{shiftId}`.replace(`{${"shiftId"}}`, encodeURIComponent(String(shiftId)));

@@ -327,3 +327,3 @@ // use dummy base URL string because the URL constructor only accepts absolute URLs.

};
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateShiftIntegrationDto, localVarRequestOptions, configuration);
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateShiftIntegrationApiRequestDto, localVarRequestOptions, configuration);
return {

@@ -337,11 +337,11 @@ url: (0, common_1.toPathString)(localVarUrlObj),

* @param {number} shiftId
* @param {CreateAssignmentIntegrationDto} createAssignmentIntegrationDto
* @param {CreateAssignmentIntegrationApiRequestDto} createAssignmentIntegrationApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
shiftsIntegrationControllerUpdateShiftAssignment: async (shiftId, createAssignmentIntegrationDto, options = {}) => {
shiftsIntegrationControllerUpdateShiftAssignment: async (shiftId, createAssignmentIntegrationApiRequestDto, options = {}) => {
// verify required parameter 'shiftId' is not null or undefined
(0, common_1.assertParamExists)("shiftsIntegrationControllerUpdateShiftAssignment", "shiftId", shiftId);
// verify required parameter 'createAssignmentIntegrationDto' is not null or undefined
(0, common_1.assertParamExists)("shiftsIntegrationControllerUpdateShiftAssignment", "createAssignmentIntegrationDto", createAssignmentIntegrationDto);
// verify required parameter 'createAssignmentIntegrationApiRequestDto' is not null or undefined
(0, common_1.assertParamExists)("shiftsIntegrationControllerUpdateShiftAssignment", "createAssignmentIntegrationApiRequestDto", createAssignmentIntegrationApiRequestDto);
const localVarPath = `/api/v1/shifts/{shiftId}/assignments`.replace(`{${"shiftId"}}`, encodeURIComponent(String(shiftId)));

@@ -367,3 +367,3 @@ // use dummy base URL string because the URL constructor only accepts absolute URLs.

};
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createAssignmentIntegrationDto, localVarRequestOptions, configuration);
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createAssignmentIntegrationApiRequestDto, localVarRequestOptions, configuration);
return {

@@ -387,8 +387,8 @@ url: (0, common_1.toPathString)(localVarUrlObj),

* @param {number} shiftId
* @param {CompleteShiftDto} completeShiftDto
* @param {CompleteShiftApiRequestDto} completeShiftApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async shiftsIntegrationControllerCompleteShift(shiftId, completeShiftDto, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.shiftsIntegrationControllerCompleteShift(shiftId, completeShiftDto, options);
async shiftsIntegrationControllerCompleteShift(shiftId, completeShiftApiRequestDto, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.shiftsIntegrationControllerCompleteShift(shiftId, completeShiftApiRequestDto, options);
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);

@@ -399,8 +399,8 @@ },

* @param {number} shiftId
* @param {CreateAssignmentIntegrationDto} createAssignmentIntegrationDto
* @param {CreateAssignmentIntegrationApiRequestDto} createAssignmentIntegrationApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async shiftsIntegrationControllerCreateShiftAssignment(shiftId, createAssignmentIntegrationDto, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.shiftsIntegrationControllerCreateShiftAssignment(shiftId, createAssignmentIntegrationDto, options);
async shiftsIntegrationControllerCreateShiftAssignment(shiftId, createAssignmentIntegrationApiRequestDto, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.shiftsIntegrationControllerCreateShiftAssignment(shiftId, createAssignmentIntegrationApiRequestDto, options);
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);

@@ -410,8 +410,8 @@ },

*
* @param {CreateBatchShiftsIntegrationDto} createBatchShiftsIntegrationDto
* @param {CreateBatchShiftsIntegrationApiRequestDto} createBatchShiftsIntegrationApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async shiftsIntegrationControllerCreateShifts(createBatchShiftsIntegrationDto, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.shiftsIntegrationControllerCreateShifts(createBatchShiftsIntegrationDto, options);
async shiftsIntegrationControllerCreateShifts(createBatchShiftsIntegrationApiRequestDto, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.shiftsIntegrationControllerCreateShifts(createBatchShiftsIntegrationApiRequestDto, options);
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);

@@ -422,8 +422,8 @@ },

* @param {number} shiftId
* @param {DeleteShiftIntegrationDto} deleteShiftIntegrationDto
* @param {DeleteShiftIntegrationApiRequestDto} deleteShiftIntegrationApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async shiftsIntegrationControllerDeleteShift(shiftId, deleteShiftIntegrationDto, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.shiftsIntegrationControllerDeleteShift(shiftId, deleteShiftIntegrationDto, options);
async shiftsIntegrationControllerDeleteShift(shiftId, deleteShiftIntegrationApiRequestDto, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.shiftsIntegrationControllerDeleteShift(shiftId, deleteShiftIntegrationApiRequestDto, options);
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);

@@ -434,8 +434,8 @@ },

* @param {number} shiftId
* @param {DeleteAssignmentIntegrationDto} deleteAssignmentIntegrationDto
* @param {DeleteAssignmentIntegrationApiRequestDto} deleteAssignmentIntegrationApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async shiftsIntegrationControllerDeleteShiftAssignment(shiftId, deleteAssignmentIntegrationDto, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.shiftsIntegrationControllerDeleteShiftAssignment(shiftId, deleteAssignmentIntegrationDto, options);
async shiftsIntegrationControllerDeleteShiftAssignment(shiftId, deleteAssignmentIntegrationApiRequestDto, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.shiftsIntegrationControllerDeleteShiftAssignment(shiftId, deleteAssignmentIntegrationApiRequestDto, options);
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);

@@ -457,8 +457,8 @@ },

* @param {number} shiftId
* @param {UpdateShiftIntegrationDto} updateShiftIntegrationDto
* @param {UpdateShiftIntegrationApiRequestDto} updateShiftIntegrationApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async shiftsIntegrationControllerUpdateShift(shiftId, updateShiftIntegrationDto, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.shiftsIntegrationControllerUpdateShift(shiftId, updateShiftIntegrationDto, options);
async shiftsIntegrationControllerUpdateShift(shiftId, updateShiftIntegrationApiRequestDto, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.shiftsIntegrationControllerUpdateShift(shiftId, updateShiftIntegrationApiRequestDto, options);
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);

@@ -469,8 +469,8 @@ },

* @param {number} shiftId
* @param {CreateAssignmentIntegrationDto} createAssignmentIntegrationDto
* @param {CreateAssignmentIntegrationApiRequestDto} createAssignmentIntegrationApiRequestDto
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async shiftsIntegrationControllerUpdateShiftAssignment(shiftId, createAssignmentIntegrationDto, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.shiftsIntegrationControllerUpdateShiftAssignment(shiftId, createAssignmentIntegrationDto, options);
async shiftsIntegrationControllerUpdateShiftAssignment(shiftId, createAssignmentIntegrationApiRequestDto, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.shiftsIntegrationControllerUpdateShiftAssignment(shiftId, createAssignmentIntegrationApiRequestDto, options);
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);

@@ -496,3 +496,3 @@ },

return localVarFp
.shiftsIntegrationControllerCompleteShift(requestParameters.shiftId, requestParameters.completeShiftDto, options)
.shiftsIntegrationControllerCompleteShift(requestParameters.shiftId, requestParameters.completeShiftApiRequestDto, options)
.then((request) => request(axios, basePath));

@@ -508,3 +508,3 @@ },

return localVarFp
.shiftsIntegrationControllerCreateShiftAssignment(requestParameters.shiftId, requestParameters.createAssignmentIntegrationDto, options)
.shiftsIntegrationControllerCreateShiftAssignment(requestParameters.shiftId, requestParameters.createAssignmentIntegrationApiRequestDto, options)
.then((request) => request(axios, basePath));

@@ -520,3 +520,3 @@ },

return localVarFp
.shiftsIntegrationControllerCreateShifts(requestParameters.createBatchShiftsIntegrationDto, options)
.shiftsIntegrationControllerCreateShifts(requestParameters.createBatchShiftsIntegrationApiRequestDto, options)
.then((request) => request(axios, basePath));

@@ -532,3 +532,3 @@ },

return localVarFp
.shiftsIntegrationControllerDeleteShift(requestParameters.shiftId, requestParameters.deleteShiftIntegrationDto, options)
.shiftsIntegrationControllerDeleteShift(requestParameters.shiftId, requestParameters.deleteShiftIntegrationApiRequestDto, options)
.then((request) => request(axios, basePath));

@@ -544,3 +544,3 @@ },

return localVarFp
.shiftsIntegrationControllerDeleteShiftAssignment(requestParameters.shiftId, requestParameters.deleteAssignmentIntegrationDto, options)
.shiftsIntegrationControllerDeleteShiftAssignment(requestParameters.shiftId, requestParameters.deleteAssignmentIntegrationApiRequestDto, options)
.then((request) => request(axios, basePath));

@@ -567,3 +567,3 @@ },

return localVarFp
.shiftsIntegrationControllerUpdateShift(requestParameters.shiftId, requestParameters.updateShiftIntegrationDto, options)
.shiftsIntegrationControllerUpdateShift(requestParameters.shiftId, requestParameters.updateShiftIntegrationApiRequestDto, options)
.then((request) => request(axios, basePath));

@@ -579,3 +579,3 @@ },

return localVarFp
.shiftsIntegrationControllerUpdateShiftAssignment(requestParameters.shiftId, requestParameters.createAssignmentIntegrationDto, options)
.shiftsIntegrationControllerUpdateShiftAssignment(requestParameters.shiftId, requestParameters.createAssignmentIntegrationApiRequestDto, options)
.then((request) => request(axios, basePath));

@@ -602,3 +602,3 @@ },

return (0, exports.DefaultApiFp)(this.configuration)
.shiftsIntegrationControllerCompleteShift(requestParameters.shiftId, requestParameters.completeShiftDto, options)
.shiftsIntegrationControllerCompleteShift(requestParameters.shiftId, requestParameters.completeShiftApiRequestDto, options)
.then((request) => request(this.axios, this.basePath));

@@ -615,3 +615,3 @@ }

return (0, exports.DefaultApiFp)(this.configuration)
.shiftsIntegrationControllerCreateShiftAssignment(requestParameters.shiftId, requestParameters.createAssignmentIntegrationDto, options)
.shiftsIntegrationControllerCreateShiftAssignment(requestParameters.shiftId, requestParameters.createAssignmentIntegrationApiRequestDto, options)
.then((request) => request(this.axios, this.basePath));

@@ -628,3 +628,3 @@ }

return (0, exports.DefaultApiFp)(this.configuration)
.shiftsIntegrationControllerCreateShifts(requestParameters.createBatchShiftsIntegrationDto, options)
.shiftsIntegrationControllerCreateShifts(requestParameters.createBatchShiftsIntegrationApiRequestDto, options)
.then((request) => request(this.axios, this.basePath));

@@ -641,3 +641,3 @@ }

return (0, exports.DefaultApiFp)(this.configuration)
.shiftsIntegrationControllerDeleteShift(requestParameters.shiftId, requestParameters.deleteShiftIntegrationDto, options)
.shiftsIntegrationControllerDeleteShift(requestParameters.shiftId, requestParameters.deleteShiftIntegrationApiRequestDto, options)
.then((request) => request(this.axios, this.basePath));

@@ -654,3 +654,3 @@ }

return (0, exports.DefaultApiFp)(this.configuration)
.shiftsIntegrationControllerDeleteShiftAssignment(requestParameters.shiftId, requestParameters.deleteAssignmentIntegrationDto, options)
.shiftsIntegrationControllerDeleteShiftAssignment(requestParameters.shiftId, requestParameters.deleteAssignmentIntegrationApiRequestDto, options)
.then((request) => request(this.axios, this.basePath));

@@ -679,3 +679,3 @@ }

return (0, exports.DefaultApiFp)(this.configuration)
.shiftsIntegrationControllerUpdateShift(requestParameters.shiftId, requestParameters.updateShiftIntegrationDto, options)
.shiftsIntegrationControllerUpdateShift(requestParameters.shiftId, requestParameters.updateShiftIntegrationApiRequestDto, options)
.then((request) => request(this.axios, this.basePath));

@@ -692,3 +692,3 @@ }

return (0, exports.DefaultApiFp)(this.configuration)
.shiftsIntegrationControllerUpdateShiftAssignment(requestParameters.shiftId, requestParameters.createAssignmentIntegrationDto, options)
.shiftsIntegrationControllerUpdateShiftAssignment(requestParameters.shiftId, requestParameters.createAssignmentIntegrationApiRequestDto, options)
.then((request) => request(this.axios, this.basePath));

@@ -695,0 +695,0 @@ }

@@ -5,2 +5,9 @@ # Changelog

## [0.2.0](https://github.com/ClipboardHealth/maple/compare/sdk-node-0.1.0...sdk-node-0.2.0) (2023-08-14)
### Features
* generate latest, add is-webhook-valid ([7f0babc](https://github.com/ClipboardHealth/maple/commit/7f0babc1c12936b429b9e466c74b64cf5315b2f8))
## 0.1.0 (2023-08-12)

@@ -7,0 +14,0 @@

@@ -1,14 +0,4 @@

/**
* Maple Integration API
* Maple Integration API
*
* The version of the OpenAPI document: 1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export * from "./api";
export * from "./configuration";
export * from "./is-webhook-valid";
//# sourceMappingURL=index.d.ts.map
"use strict";
/* tslint:disable */
/* eslint-disable */
/**
* Maple Integration API
* Maple Integration API
*
* The version of the OpenAPI document: 1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {

@@ -32,2 +19,3 @@ if (k2 === undefined) k2 = k;

__exportStar(require("./configuration"), exports);
__exportStar(require("./is-webhook-valid"), exports);
//# sourceMappingURL=index.js.map
{
"name": "@maple-app/sdk-node",
"version": "0.1.0",
"version": "0.2.0",
"description": "The Maple REST API SDK for Node.js.",

@@ -8,2 +8,3 @@ "main": "./index.js",

"build": "nx build sdk-node",
"embed": "embedme README.md",
"generate": "./scripts/generate.sh"

@@ -10,0 +11,0 @@ },

@@ -1,50 +0,52 @@

## @maple-app/sdk-node@0.0.1
# @maple-app/sdk-node
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
[![Version](https://img.shields.io/npm/v/@maple-app/sdk-node.svg)](https://www.npmjs.com/package/@maple-app/sdk-node) [![Standard README compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg)](https://github.com/RichardLitt/standard-readme)
Environment
The Maple REST API SDK for Node.js is always up-to-date as it's generated using [`openapi-generator`](https://github.com/OpenAPITools/openapi-generator). We've added functionality to the generated code, including webhook payload verification.
- Node.js
- Webpack
- Browserify
- [Install](#install)
- [Usage](#usage)
- [Local development commands](#local-development-commands)
Language level
## Install
- ES5 - you must have a Promises/A+ library installed
- ES6
```bash
npm install @maple-app/sdk-node
```
Module system
## Usage
- CommonJS
- ES6 module system
<!-- prettier-ignore -->
```ts
// ./examples/index.ts
It can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html))
import { Configuration, DefaultApi } from "@maple-app/sdk-node";
### Building
const configuration = new Configuration({
apiKey: "API_KEY",
basePath: "https://mact-api-prod.herokuapp.com/api",
});
const api = new DefaultApi(configuration);
const shift = await api.shiftsIntegrationControllerFindShift({
shiftId: 1633,
externalFacilityId: "1",
});
To build and compile the typescript sources to javascript use:
console.log(JSON.stringify(shift, null, 2));
```
npm install
npm run build
```
### Publishing
## Local development commands
First build the package then run `npm publish`
See [`package.json`](./package.json) `scripts` for a complete list of commands.
### Consuming
```bash
# Install dependencies
npm install
navigate to the folder of your consuming project and run one of the following commands.
# Transpile TypeScript to JavaScript
npm run build
_published:_
# Generate SDK from OpenAPI spec
npm run generate
```
npm install @maple-app/sdk-node@0.0.1 --save
```
_unPublished (not recommended):_
```
npm install PATH_TO_GENERATED_PACKAGE --save
```

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc