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

@smallstack/axios-api-client

Package Overview
Dependencies
Maintainers
2
Versions
1094
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smallstack/axios-api-client - npm Package Compare versions

Comparing version 1.54.0-rc.2 to 1.54.0-rc.3

src/lib/generated/models/schedule-task-dto.d.ts

4

package.json
{
"name": "@smallstack/axios-api-client",
"version": "1.54.0-rc.2",
"version": "1.54.0-rc.3",
"main": "src/index.js",

@@ -8,3 +8,3 @@ "typings": "src/index.d.ts",

"axios": "^0.21.1",
"@smallstack/core-common": "1.54.0-rc.2",
"@smallstack/core-common": "1.54.0-rc.3",
"base-64": "^1.0.0",

@@ -11,0 +11,0 @@ "underscore": "1.12.0"

@@ -13,2 +13,3 @@ /**

import { CreateTaskDto } from '../models';
import { ScheduleTaskDto } from '../models';
import { TaskDto } from '../models';

@@ -94,2 +95,10 @@ import { TaskPageDto } from '../models';

putTask: (id: string, task: TaskDto, translate?: string, options?: any) => Promise<RequestArgs>;
/**
*
* @param {ScheduleTaskDto} scheduleTask
* @param {string} [translate]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
scheduleTask: (scheduleTask: ScheduleTaskDto, translate?: string, options?: any) => Promise<RequestArgs>;
};

@@ -173,2 +182,10 @@ /**

putTask(id: string, task: TaskDto, translate?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TaskDto>>;
/**
*
* @param {ScheduleTaskDto} scheduleTask
* @param {string} [translate]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
scheduleTask(scheduleTask: ScheduleTaskDto, translate?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TaskDto>>;
};

@@ -252,2 +269,10 @@ /**

putTask(id: string, task: TaskDto, translate?: string, options?: any): AxiosPromise<TaskDto>;
/**
*
* @param {ScheduleTaskDto} scheduleTask
* @param {string} [translate]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
scheduleTask(scheduleTask: ScheduleTaskDto, translate?: string, options?: any): AxiosPromise<TaskDto>;
};

@@ -455,2 +480,21 @@ /**

/**
* Request parameters for scheduleTask operation in TasksApi.
* @export
* @interface TasksApiScheduleTaskRequest
*/
export interface TasksApiScheduleTaskRequest {
/**
*
* @type {ScheduleTaskDto}
* @memberof TasksApiScheduleTask
*/
readonly scheduleTask: ScheduleTaskDto;
/**
*
* @type {string}
* @memberof TasksApiScheduleTask
*/
readonly translate?: string;
}
/**
* TasksApi - object-oriented interface

@@ -526,2 +570,10 @@ * @export

putTask(requestParameters: TasksApiPutTaskRequest, options?: any): Promise<import("axios").AxiosResponse<TaskDto>>;
/**
*
* @param {TasksApiScheduleTaskRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof TasksApi
*/
scheduleTask(requestParameters: TasksApiScheduleTaskRequest, options?: any): Promise<import("axios").AxiosResponse<TaskDto>>;
}

@@ -470,2 +470,58 @@ "use strict";

}),
/**
*
* @param {ScheduleTaskDto} scheduleTask
* @param {string} [translate]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
scheduleTask: (scheduleTask, translate, options = {}) => tslib_1.__awaiter(this, void 0, void 0, function* () {
// verify required parameter 'scheduleTask' is not null or undefined
if (scheduleTask === null || scheduleTask === undefined) {
throw new base_1.RequiredError('scheduleTask', 'Required parameter scheduleTask was null or undefined when calling scheduleTask.');
}
const localVarPath = `/tasks/schedule`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
let baseOptions;
if (axiosClientConfiguration) {
baseOptions = axiosClientConfiguration.baseOptions;
}
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
const localVarHeaderParameter = {};
const localVarQueryParameter = {};
// authentication bearer required
// http bearer authentication required
if (axiosClientConfiguration && axiosClientConfiguration.accessToken) {
const accessToken = typeof axiosClientConfiguration.accessToken === 'function'
? yield axiosClientConfiguration.accessToken()
: yield axiosClientConfiguration.accessToken;
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
}
if (translate !== undefined) {
localVarQueryParameter['translate'] = translate;
}
localVarHeaderParameter['Content-Type'] = 'application/json';
const queryParameters = new URLSearchParams(localVarUrlObj.search);
for (const key in localVarQueryParameter) {
queryParameters.set(key, localVarQueryParameter[key]);
}
for (const key in options.query) {
queryParameters.set(key, options.query[key]);
}
localVarUrlObj.search = (new URLSearchParams(queryParameters)).toString();
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
const nonString = typeof scheduleTask !== 'string';
const needsSerialization = nonString && axiosClientConfiguration && axiosClientConfiguration.isJsonMime
? axiosClientConfiguration.isJsonMime(localVarRequestOptions.headers['Content-Type'])
: nonString;
localVarRequestOptions.data = needsSerialization
? JSON.stringify(scheduleTask !== undefined ? scheduleTask : {})
: (scheduleTask || "");
return {
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
options: localVarRequestOptions,
};
}),
};

@@ -615,2 +671,18 @@ };

},
/**
*
* @param {ScheduleTaskDto} scheduleTask
* @param {string} [translate]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
scheduleTask(scheduleTask, translate, options) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const localVarAxiosArgs = yield exports.TasksApiAxiosParamCreator(axiosClientConfiguration).scheduleTask(scheduleTask, translate, options);
return (axios = axios_1.default, basePath = base_1.BASE_PATH) => {
const axiosRequestArgs = Object.assign(Object.assign({}, localVarAxiosArgs.options), { url: ((axiosClientConfiguration === null || axiosClientConfiguration === void 0 ? void 0 : axiosClientConfiguration.basePath) || basePath) + localVarAxiosArgs.url });
return axios.request(axiosRequestArgs);
};
});
},
};

@@ -712,2 +784,12 @@ };

},
/**
*
* @param {ScheduleTaskDto} scheduleTask
* @param {string} [translate]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
scheduleTask(scheduleTask, translate, options) {
return exports.TasksApiFp(axiosClientConfiguration).scheduleTask(scheduleTask, translate, options).then((request) => request(axios, basePath));
},
};

@@ -802,4 +884,14 @@ };

}
/**
*
* @param {TasksApiScheduleTaskRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof TasksApi
*/
scheduleTask(requestParameters, options) {
return exports.TasksApiFp(this.axiosClientConfiguration).scheduleTask(requestParameters.scheduleTask, requestParameters.translate, options).then((request) => request(this.axios, this.basePath));
}
}
exports.TasksApi = TasksApi;
//# sourceMappingURL=tasks-api.js.map

@@ -127,2 +127,3 @@ export * from './accepted-opt-in-dto';

export * from './reset-password-with-token-response-dto';
export * from './schedule-task-dto';
export * from './send-email-options-dto';

@@ -129,0 +130,0 @@ export * from './shopping-cart-dto';

@@ -130,2 +130,3 @@ "use strict";

tslib_1.__exportStar(require("./reset-password-with-token-response-dto"), exports);
tslib_1.__exportStar(require("./schedule-task-dto"), exports);
tslib_1.__exportStar(require("./send-email-options-dto"), exports);

@@ -132,0 +133,0 @@ tslib_1.__exportStar(require("./shopping-cart-dto"), exports);

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