@maple-app/sdk-node
Advanced tools
Comparing version 0.8.0 to 0.9.0
156
api.d.ts
@@ -307,3 +307,3 @@ /** | ||
/** | ||
* Accepts CNA, LVN, RN, CAREGIVER, and NURSE | ||
* Accepts CNA, LVN, RN, CAREGIVER | ||
* @type {string} | ||
@@ -417,2 +417,110 @@ * @memberof CreateAssignmentIntegrationDto | ||
* @export | ||
* @interface FacilitiesApiResponseDto | ||
*/ | ||
export interface FacilitiesApiResponseDto { | ||
/** | ||
* | ||
* @type {FacilityApiResponseDataDto} | ||
* @memberof FacilitiesApiResponseDto | ||
*/ | ||
data: FacilityApiResponseDataDto; | ||
} | ||
/** | ||
* | ||
* @export | ||
* @interface FacilityApiResponseDataDto | ||
*/ | ||
export interface FacilityApiResponseDataDto { | ||
/** | ||
* | ||
* @type {FacilityIntegrationDto} | ||
* @memberof FacilityApiResponseDataDto | ||
*/ | ||
attributes: FacilityIntegrationDto; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof FacilityApiResponseDataDto | ||
*/ | ||
id: string; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof FacilityApiResponseDataDto | ||
*/ | ||
type: string; | ||
} | ||
/** | ||
* | ||
* @export | ||
* @interface FacilityIntegrationDto | ||
*/ | ||
export interface FacilityIntegrationDto { | ||
/** | ||
* | ||
* @type {boolean} | ||
* @memberof FacilityIntegrationDto | ||
*/ | ||
enabled: boolean; | ||
} | ||
/** | ||
* | ||
* @export | ||
* @interface FacilityWebhookApiResponseDataDto | ||
*/ | ||
export interface FacilityWebhookApiResponseDataDto { | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof FacilityWebhookApiResponseDataDto | ||
*/ | ||
id: string; | ||
/** | ||
* | ||
* @type {FacilityWebhookEventDto} | ||
* @memberof FacilityWebhookApiResponseDataDto | ||
*/ | ||
attributes: FacilityWebhookEventDto; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof FacilityWebhookApiResponseDataDto | ||
*/ | ||
type: string; | ||
} | ||
/** | ||
* | ||
* @export | ||
* @interface FacilityWebhookApiResponseDto | ||
*/ | ||
export interface FacilityWebhookApiResponseDto { | ||
/** | ||
* | ||
* @type {WebhookApiResponseDataDto} | ||
* @memberof FacilityWebhookApiResponseDto | ||
*/ | ||
data: WebhookApiResponseDataDto; | ||
/** | ||
* | ||
* @type {Array<FacilityWebhookApiResponseDataDto>} | ||
* @memberof FacilityWebhookApiResponseDto | ||
*/ | ||
included: Array<FacilityWebhookApiResponseDataDto>; | ||
} | ||
/** | ||
* | ||
* @export | ||
* @interface FacilityWebhookEventDto | ||
*/ | ||
export interface FacilityWebhookEventDto { | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof FacilityWebhookEventDto | ||
*/ | ||
externalFacilityId: string; | ||
} | ||
/** | ||
* | ||
* @export | ||
* @interface MapleApiError | ||
@@ -974,2 +1082,10 @@ */ | ||
/** | ||
* Get a facility. | ||
* @summary Get a facility | ||
* @param {string} externalFacilityId | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getFacility: (externalFacilityId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>; | ||
/** | ||
* Get a shift. | ||
@@ -1080,2 +1196,10 @@ * @summary Get a shift | ||
/** | ||
* Get a facility. | ||
* @summary Get a facility | ||
* @param {string} externalFacilityId | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getFacility(externalFacilityId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FacilitiesApiResponseDto>>; | ||
/** | ||
* Get a shift. | ||
@@ -1181,2 +1305,10 @@ * @summary Get a shift | ||
/** | ||
* Get a facility. | ||
* @summary Get a facility | ||
* @param {DefaultApiGetFacilityRequest} requestParameters Request parameters. | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getFacility(requestParameters: DefaultApiGetFacilityRequest, options?: AxiosRequestConfig): AxiosPromise<FacilitiesApiResponseDto>; | ||
/** | ||
* Get a shift. | ||
@@ -1326,2 +1458,15 @@ * @summary Get a shift | ||
/** | ||
* Request parameters for getFacility operation in DefaultApi. | ||
* @export | ||
* @interface DefaultApiGetFacilityRequest | ||
*/ | ||
export interface DefaultApiGetFacilityRequest { | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof DefaultApiGetFacility | ||
*/ | ||
readonly externalFacilityId: string; | ||
} | ||
/** | ||
* Request parameters for getShift operation in DefaultApi. | ||
@@ -1493,2 +1638,11 @@ * @export | ||
/** | ||
* Get a facility. | ||
* @summary Get a facility | ||
* @param {DefaultApiGetFacilityRequest} requestParameters Request parameters. | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof DefaultApi | ||
*/ | ||
getFacility(requestParameters: DefaultApiGetFacilityRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<FacilitiesApiResponseDto, any>>; | ||
/** | ||
* Get a shift. | ||
@@ -1495,0 +1649,0 @@ * @summary Get a shift |
70
api.js
@@ -241,2 +241,36 @@ "use strict"; | ||
/** | ||
* Get a facility. | ||
* @summary Get a facility | ||
* @param {string} externalFacilityId | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getFacility: async (externalFacilityId, options = {}) => { | ||
// verify required parameter 'externalFacilityId' is not null or undefined | ||
(0, common_1.assertParamExists)("getFacility", "externalFacilityId", externalFacilityId); | ||
const localVarPath = `/api/v1/facilities/{externalFacilityId}`.replace(`{${"externalFacilityId"}}`, encodeURIComponent(String(externalFacilityId))); | ||
// use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL); | ||
let baseOptions; | ||
if (configuration) { | ||
baseOptions = configuration.baseOptions; | ||
} | ||
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options }; | ||
const localVarHeaderParameter = {}; | ||
const localVarQueryParameter = {}; | ||
// authentication x-api-key required | ||
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration); | ||
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter); | ||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
localVarRequestOptions.headers = { | ||
...localVarHeaderParameter, | ||
...headersFromBaseOptions, | ||
...options.headers, | ||
}; | ||
return { | ||
url: (0, common_1.toPathString)(localVarUrlObj), | ||
options: localVarRequestOptions, | ||
}; | ||
}, | ||
/** | ||
* Get a shift. | ||
@@ -545,2 +579,13 @@ * @summary Get a shift | ||
/** | ||
* Get a facility. | ||
* @summary Get a facility | ||
* @param {string} externalFacilityId | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async getFacility(externalFacilityId, options) { | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.getFacility(externalFacilityId, options); | ||
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration); | ||
}, | ||
/** | ||
* Get a shift. | ||
@@ -688,2 +733,14 @@ * @summary Get a shift | ||
/** | ||
* Get a facility. | ||
* @summary Get a facility | ||
* @param {DefaultApiGetFacilityRequest} requestParameters Request parameters. | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getFacility(requestParameters, options) { | ||
return localVarFp | ||
.getFacility(requestParameters.externalFacilityId, options) | ||
.then((request) => request(axios, basePath)); | ||
}, | ||
/** | ||
* Get a shift. | ||
@@ -836,2 +893,15 @@ * @summary Get a shift | ||
/** | ||
* Get a facility. | ||
* @summary Get a facility | ||
* @param {DefaultApiGetFacilityRequest} requestParameters Request parameters. | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof DefaultApi | ||
*/ | ||
getFacility(requestParameters, options) { | ||
return (0, exports.DefaultApiFp)(this.configuration) | ||
.getFacility(requestParameters.externalFacilityId, options) | ||
.then((request) => request(this.axios, this.basePath)); | ||
} | ||
/** | ||
* Get a shift. | ||
@@ -838,0 +908,0 @@ * @summary Get a shift |
@@ -5,3 +5,3 @@ # Changelog | ||
## [0.8.0](https://github.com/ClipboardHealth/maple/compare/sdk-node-0.7.0...sdk-node-0.8.0) (2023-12-19) | ||
## [0.9.0](https://github.com/ClipboardHealth/maple/compare/sdk-node-0.8.0...sdk-node-0.9.0) (2024-01-11) | ||
@@ -11,2 +11,2 @@ | ||
* **MAPLE-2737:** Relax type of workerRequirements - SDK ([#50](https://github.com/ClipboardHealth/maple/issues/50)) ([dbacdf5](https://github.com/ClipboardHealth/maple/commit/dbacdf56c7935161b66aa426578008f00ef152d8)) | ||
* **MAPLE-2784:** Generate new SDK version ([#54](https://github.com/ClipboardHealth/maple/issues/54)) ([e7d76b2](https://github.com/ClipboardHealth/maple/commit/e7d76b2077b66ca09b0b9323c59462fff12dc335)) |
{ | ||
"name": "@maple-app/sdk-node", | ||
"version": "0.8.0", | ||
"version": "0.9.0", | ||
"description": "The Maple REST API SDK for Node.js.", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
170425
3257