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.3.6 to 0.3.7

24

api.d.ts

@@ -865,6 +865,7 @@ /**

* @param {CreateBatchShiftsIntegrationApiRequestDto} createBatchShiftsIntegrationApiRequestDto
* @param {string} [idempotencyKey]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createShift: (createBatchShiftsIntegrationApiRequestDto: CreateBatchShiftsIntegrationApiRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
createShift: (createBatchShiftsIntegrationApiRequestDto: CreateBatchShiftsIntegrationApiRequestDto, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**

@@ -884,6 +885,7 @@ * Create a shift assignment, creating the worker if it does not exist.

* @param {CompleteShiftApiRequestDto} completeShiftApiRequestDto
* @param {string} [idempotencyKey]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createShiftCompletion: (shiftId: string, completeShiftApiRequestDto: CompleteShiftApiRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
createShiftCompletion: (shiftId: string, completeShiftApiRequestDto: CompleteShiftApiRequestDto, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**

@@ -951,6 +953,7 @@ * Delete a shift.

* @param {CreateBatchShiftsIntegrationApiRequestDto} createBatchShiftsIntegrationApiRequestDto
* @param {string} [idempotencyKey]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createShift(createBatchShiftsIntegrationApiRequestDto: CreateBatchShiftsIntegrationApiRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShiftIntegrationBatchApiResponseDto>>;
createShift(createBatchShiftsIntegrationApiRequestDto: CreateBatchShiftsIntegrationApiRequestDto, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShiftIntegrationBatchApiResponseDto>>;
/**

@@ -970,6 +973,7 @@ * Create a shift assignment, creating the worker if it does not exist.

* @param {CompleteShiftApiRequestDto} completeShiftApiRequestDto
* @param {string} [idempotencyKey]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createShiftCompletion(shiftId: string, completeShiftApiRequestDto: CompleteShiftApiRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TimecardApiResponseDto>>;
createShiftCompletion(shiftId: string, completeShiftApiRequestDto: CompleteShiftApiRequestDto, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TimecardApiResponseDto>>;
/**

@@ -1118,2 +1122,8 @@ * Delete a shift.

readonly createBatchShiftsIntegrationApiRequestDto: CreateBatchShiftsIntegrationApiRequestDto;
/**
*
* @type {string}
* @memberof DefaultApiCreateShift
*/
readonly idempotencyKey?: string;
}

@@ -1157,2 +1167,8 @@ /**

readonly completeShiftApiRequestDto: CompleteShiftApiRequestDto;
/**
*
* @type {string}
* @memberof DefaultApiCreateShiftCompletion
*/
readonly idempotencyKey?: string;
}

@@ -1159,0 +1175,0 @@ /**

30

api.js

@@ -62,6 +62,7 @@ "use strict";

* @param {CreateBatchShiftsIntegrationApiRequestDto} createBatchShiftsIntegrationApiRequestDto
* @param {string} [idempotencyKey]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createShift: async (createBatchShiftsIntegrationApiRequestDto, options = {}) => {
createShift: async (createBatchShiftsIntegrationApiRequestDto, idempotencyKey, options = {}) => {
// verify required parameter 'createBatchShiftsIntegrationApiRequestDto' is not null or undefined

@@ -81,2 +82,5 @@ (0, common_1.assertParamExists)("createShift", "createBatchShiftsIntegrationApiRequestDto", createBatchShiftsIntegrationApiRequestDto);

await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
if (idempotencyKey != null) {
localVarHeaderParameter["idempotency-key"] = String(idempotencyKey);
}
localVarHeaderParameter["Content-Type"] = "application/json";

@@ -140,6 +144,7 @@ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);

* @param {CompleteShiftApiRequestDto} completeShiftApiRequestDto
* @param {string} [idempotencyKey]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createShiftCompletion: async (shiftId, completeShiftApiRequestDto, options = {}) => {
createShiftCompletion: async (shiftId, completeShiftApiRequestDto, idempotencyKey, options = {}) => {
// verify required parameter 'shiftId' is not null or undefined

@@ -161,2 +166,5 @@ (0, common_1.assertParamExists)("createShiftCompletion", "shiftId", shiftId);

await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "x-api-key", configuration);
if (idempotencyKey != null) {
localVarHeaderParameter["idempotency-key"] = String(idempotencyKey);
}
localVarHeaderParameter["Content-Type"] = "application/json";

@@ -414,7 +422,8 @@ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);

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

@@ -439,7 +448,8 @@ },

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

@@ -536,3 +546,3 @@ },

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

@@ -561,3 +571,3 @@ },

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

@@ -657,3 +667,3 @@ },

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

@@ -684,3 +694,3 @@ }

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

@@ -687,0 +697,0 @@ }

@@ -12,3 +12,3 @@ "use strict";

separator: " ",
versionRegex: /^v1, /g,
versionRegex: /^v1,/g,
};

@@ -24,3 +24,3 @@ function toBuffer(input) {

const signature = versionedSignature.replace(SIGNATURE.versionRegex, "");
if (signature.length === computedSignature.length)
if (signature.length !== computedSignature.length)
return false;

@@ -27,0 +27,0 @@ return (0, node_crypto_1.timingSafeEqual)(toBuffer(signature), toBuffer(computedSignature));

{
"name": "@maple-app/sdk-node",
"version": "0.3.6",
"version": "0.3.7",
"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

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