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
0
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.15.0 to 0.15.1

226

api.d.ts

@@ -385,2 +385,59 @@ /**

* @export
* @interface CreatePresenceVerificationApiRequestDataDto
*/
export interface CreatePresenceVerificationApiRequestDataDto {
/**
*
* @type {CreatePresenceVerificationDto}
* @memberof CreatePresenceVerificationApiRequestDataDto
*/
attributes: CreatePresenceVerificationDto;
/**
*
* @type {string}
* @memberof CreatePresenceVerificationApiRequestDataDto
*/
type: string;
}
/**
*
* @export
* @interface CreatePresenceVerificationApiRequestDto
*/
export interface CreatePresenceVerificationApiRequestDto {
/**
*
* @type {CreatePresenceVerificationApiRequestDataDto}
* @memberof CreatePresenceVerificationApiRequestDto
*/
data: CreatePresenceVerificationApiRequestDataDto;
}
/**
*
* @export
* @interface CreatePresenceVerificationDto
*/
export interface CreatePresenceVerificationDto {
/**
*
* @type {string}
* @memberof CreatePresenceVerificationDto
*/
externalUserId: string;
/**
*
* @type {string}
* @memberof CreatePresenceVerificationDto
*/
nfcHash: string;
/**
*
* @type {string}
* @memberof CreatePresenceVerificationDto
*/
externalFacilityId: string;
}
/**
*
* @export
* @interface CreateShiftIntegrationDto

@@ -643,2 +700,65 @@ */

* @export
* @interface PartnerPresenceVerificationIntegrationDto
*/
export interface PartnerPresenceVerificationIntegrationDto {
/**
*
* @type {string}
* @memberof PartnerPresenceVerificationIntegrationDto
*/
externalFacilityId: string;
/**
*
* @type {string}
* @memberof PartnerPresenceVerificationIntegrationDto
*/
externalUserId: string;
/**
*
* @type {string}
* @memberof PartnerPresenceVerificationIntegrationDto
*/
createdAt: string;
}
/**
*
* @export
* @interface PresenceVerificationApiResponseDataDto
*/
export interface PresenceVerificationApiResponseDataDto {
/**
*
* @type {PartnerPresenceVerificationIntegrationDto}
* @memberof PresenceVerificationApiResponseDataDto
*/
attributes: PartnerPresenceVerificationIntegrationDto;
/**
*
* @type {string}
* @memberof PresenceVerificationApiResponseDataDto
*/
id: string;
/**
*
* @type {string}
* @memberof PresenceVerificationApiResponseDataDto
*/
type: string;
}
/**
*
* @export
* @interface PresenceVerificationApiResponseDto
*/
export interface PresenceVerificationApiResponseDto {
/**
*
* @type {PresenceVerificationApiResponseDataDto}
* @memberof PresenceVerificationApiResponseDto
*/
data: PresenceVerificationApiResponseDataDto;
}
/**
*
* @export
* @interface RelationshipRelatedApiLink

@@ -940,2 +1060,8 @@ */

punchTime: string;
/**
*
* @type {string}
* @memberof TimecardPunchIntegrationDto
*/
presenceVerificationId?: string;
}

@@ -1131,2 +1257,11 @@ /**

/**
* Create a presence verification.
* @summary Create a presence verification
* @param {CreatePresenceVerificationApiRequestDto} createPresenceVerificationApiRequestDto
* @param {string} [idempotencyKey]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createPresenceVerification: (createPresenceVerificationApiRequestDto: CreatePresenceVerificationApiRequestDto, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**
* Create a shift.

@@ -1185,2 +1320,10 @@ * @summary Create a shift

/**
* Get presence verification.
* @summary Get presence verification
* @param {string} presenceVerificationId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getPresenceVerification: (presenceVerificationId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**
* Get a shift.

@@ -1246,2 +1389,11 @@ * @summary Get a shift

/**
* Create a presence verification.
* @summary Create a presence verification
* @param {CreatePresenceVerificationApiRequestDto} createPresenceVerificationApiRequestDto
* @param {string} [idempotencyKey]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createPresenceVerification(createPresenceVerificationApiRequestDto: CreatePresenceVerificationApiRequestDto, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PresenceVerificationApiResponseDto>>;
/**
* Create a shift.

@@ -1300,2 +1452,10 @@ * @summary Create a shift

/**
* Get presence verification.
* @summary Get presence verification
* @param {string} presenceVerificationId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getPresenceVerification(presenceVerificationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PresenceVerificationApiResponseDto>>;
/**
* Get a shift.

@@ -1361,2 +1521,10 @@ * @summary Get a shift

/**
* Create a presence verification.
* @summary Create a presence verification
* @param {DefaultApiCreatePresenceVerificationRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createPresenceVerification(requestParameters: DefaultApiCreatePresenceVerificationRequest, options?: AxiosRequestConfig): AxiosPromise<PresenceVerificationApiResponseDto>;
/**
* Create a shift.

@@ -1410,2 +1578,10 @@ * @summary Create a shift

/**
* Get presence verification.
* @summary Get presence verification
* @param {DefaultApiGetPresenceVerificationRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getPresenceVerification(requestParameters: DefaultApiGetPresenceVerificationRequest, options?: AxiosRequestConfig): AxiosPromise<PresenceVerificationApiResponseDto>;
/**
* Get a shift.

@@ -1460,2 +1636,21 @@ * @summary Get a shift

/**
* Request parameters for createPresenceVerification operation in DefaultApi.
* @export
* @interface DefaultApiCreatePresenceVerificationRequest
*/
export interface DefaultApiCreatePresenceVerificationRequest {
/**
*
* @type {CreatePresenceVerificationApiRequestDto}
* @memberof DefaultApiCreatePresenceVerification
*/
readonly createPresenceVerificationApiRequestDto: CreatePresenceVerificationApiRequestDto;
/**
*
* @type {string}
* @memberof DefaultApiCreatePresenceVerification
*/
readonly idempotencyKey?: string;
}
/**
* Request parameters for createShift operation in DefaultApi.

@@ -1569,2 +1764,15 @@ * @export

/**
* Request parameters for getPresenceVerification operation in DefaultApi.
* @export
* @interface DefaultApiGetPresenceVerificationRequest
*/
export interface DefaultApiGetPresenceVerificationRequest {
/**
*
* @type {string}
* @memberof DefaultApiGetPresenceVerification
*/
readonly presenceVerificationId: string;
}
/**
* Request parameters for getShift operation in DefaultApi.

@@ -1691,2 +1899,11 @@ * @export

/**
* Create a presence verification.
* @summary Create a presence verification
* @param {DefaultApiCreatePresenceVerificationRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DefaultApi
*/
createPresenceVerification(requestParameters: DefaultApiCreatePresenceVerificationRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<PresenceVerificationApiResponseDto, any>>;
/**
* Create a shift.

@@ -1746,2 +1963,11 @@ * @summary Create a shift

/**
* Get presence verification.
* @summary Get presence verification
* @param {DefaultApiGetPresenceVerificationRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DefaultApi
*/
getPresenceVerification(requestParameters: DefaultApiGetPresenceVerificationRequest, options?: AxiosRequestConfig): Promise<globalAxios.AxiosResponse<PresenceVerificationApiResponseDto, any>>;
/**
* Get a shift.

@@ -1748,0 +1974,0 @@ * @summary Get a shift

@@ -46,2 +46,42 @@ "use strict";

/**
* Create a presence verification.
* @summary Create a presence verification
* @param {CreatePresenceVerificationApiRequestDto} createPresenceVerificationApiRequestDto
* @param {string} [idempotencyKey]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createPresenceVerification: async (createPresenceVerificationApiRequestDto, idempotencyKey, options = {}) => {
// verify required parameter 'createPresenceVerificationApiRequestDto' is not null or undefined
(0, common_1.assertParamExists)("createPresenceVerification", "createPresenceVerificationApiRequestDto", createPresenceVerificationApiRequestDto);
const localVarPath = `/api/v1/presence-verification`;
// 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: "POST", ...baseOptions, ...options };
const localVarHeaderParameter = {};
const localVarQueryParameter = {};
// authentication x-api-key required
await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
if (idempotencyKey != null) {
localVarHeaderParameter["idempotency-key"] = String(idempotencyKey);
}
localVarHeaderParameter["Content-Type"] = "application/json";
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {
...localVarHeaderParameter,
...headersFromBaseOptions,
...options.headers,
};
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPresenceVerificationApiRequestDto, localVarRequestOptions, configuration);
return {
url: (0, common_1.toPathString)(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
* Create a shift.

@@ -276,2 +316,36 @@ * @summary Create a shift

/**
* Get presence verification.
* @summary Get presence verification
* @param {string} presenceVerificationId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getPresenceVerification: async (presenceVerificationId, options = {}) => {
// verify required parameter 'presenceVerificationId' is not null or undefined
(0, common_1.assertParamExists)("getPresenceVerification", "presenceVerificationId", presenceVerificationId);
const localVarPath = `/api/v1/presence-verification/{presenceVerificationId}`.replace(`{${"presenceVerificationId"}}`, encodeURIComponent(String(presenceVerificationId)));
// 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.

@@ -520,2 +594,14 @@ * @summary Get a shift

/**
* Create a presence verification.
* @summary Create a presence verification
* @param {CreatePresenceVerificationApiRequestDto} createPresenceVerificationApiRequestDto
* @param {string} [idempotencyKey]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async createPresenceVerification(createPresenceVerificationApiRequestDto, idempotencyKey, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.createPresenceVerification(createPresenceVerificationApiRequestDto, idempotencyKey, options);
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
},
/**
* Create a shift.

@@ -592,2 +678,13 @@ * @summary Create a shift

/**
* Get presence verification.
* @summary Get presence verification
* @param {string} presenceVerificationId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getPresenceVerification(presenceVerificationId, options) {
const localVarAxiosArgs = await localVarAxiosParamCreator.getPresenceVerification(presenceVerificationId, options);
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
},
/**
* Get a shift.

@@ -675,2 +772,14 @@ * @summary Get a shift

/**
* Create a presence verification.
* @summary Create a presence verification
* @param {DefaultApiCreatePresenceVerificationRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createPresenceVerification(requestParameters, options) {
return localVarFp
.createPresenceVerification(requestParameters.createPresenceVerificationApiRequestDto, requestParameters.idempotencyKey, options)
.then((request) => request(axios, basePath));
},
/**
* Create a shift.

@@ -748,2 +857,14 @@ * @summary Create a shift

/**
* Get presence verification.
* @summary Get presence verification
* @param {DefaultApiGetPresenceVerificationRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getPresenceVerification(requestParameters, options) {
return localVarFp
.getPresenceVerification(requestParameters.presenceVerificationId, options)
.then((request) => request(axios, basePath));
},
/**
* Get a shift.

@@ -831,2 +952,15 @@ * @summary Get a shift

/**
* Create a presence verification.
* @summary Create a presence verification
* @param {DefaultApiCreatePresenceVerificationRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DefaultApi
*/
createPresenceVerification(requestParameters, options) {
return (0, exports.DefaultApiFp)(this.configuration)
.createPresenceVerification(requestParameters.createPresenceVerificationApiRequestDto, requestParameters.idempotencyKey, options)
.then((request) => request(this.axios, this.basePath));
}
/**
* Create a shift.

@@ -910,2 +1044,15 @@ * @summary Create a shift

/**
* Get presence verification.
* @summary Get presence verification
* @param {DefaultApiGetPresenceVerificationRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DefaultApi
*/
getPresenceVerification(requestParameters, options) {
return (0, exports.DefaultApiFp)(this.configuration)
.getPresenceVerification(requestParameters.presenceVerificationId, options)
.then((request) => request(this.axios, this.basePath));
}
/**
* Get a shift.

@@ -912,0 +1059,0 @@ * @summary Get a shift

7

CHANGELOG.md

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

## [0.15.0](https://github.com/ClipboardHealth/maple/compare/sdk-node-0.14.0...sdk-node-0.15.0) (2024-07-23)
### Features
* **MAPLE-3674:** Update the create shift API integration flow to add the worked qualificatio - SDK ([2a3c38a](https://github.com/ClipboardHealth/maple/commit/2a3c38a815fa263f0ab59f744f85fdbc48b69ccb))
## [0.15.1](https://github.com/ClipboardHealth/maple/compare/sdk-node-0.15.0...sdk-node-0.15.1) (2024-10-22)
{
"name": "@maple-app/sdk-node",
"version": "0.15.0",
"version": "0.15.1",
"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

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