@emilgroup/task-sdk 1.0.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +51 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +51 -0
- package/api/categories-api.ts +651 -0
- package/api/default-api.ts +124 -0
- package/api/hub-spot-api.ts +165 -0
- package/api/priorities-api.ts +284 -0
- package/api/statuses-api.ts +651 -0
- package/api/tasks-api.ts +651 -0
- package/api.ts +37 -0
- package/base.ts +331 -0
- package/common.ts +198 -0
- package/configuration.ts +110 -0
- package/dist/api/categories-api.d.ts +366 -0
- package/dist/api/categories-api.js +626 -0
- package/dist/api/default-api.d.ts +70 -0
- package/dist/api/default-api.js +200 -0
- package/dist/api/hub-spot-api.d.ts +97 -0
- package/dist/api/hub-spot-api.js +224 -0
- package/dist/api/priorities-api.d.ts +162 -0
- package/dist/api/priorities-api.js +324 -0
- package/dist/api/statuses-api.d.ts +366 -0
- package/dist/api/statuses-api.js +626 -0
- package/dist/api/tasks-api.d.ts +366 -0
- package/dist/api/tasks-api.js +626 -0
- package/dist/api.d.ts +17 -0
- package/dist/api.js +35 -0
- package/dist/base.d.ts +86 -0
- package/dist/base.js +367 -0
- package/dist/common.d.ts +91 -0
- package/dist/common.js +276 -0
- package/dist/configuration.d.ts +89 -0
- package/dist/configuration.js +52 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- package/dist/models/category-class.d.ts +60 -0
- package/dist/models/category-class.js +15 -0
- package/dist/models/create-category-request-dto.d.ts +24 -0
- package/dist/models/create-category-request-dto.js +15 -0
- package/dist/models/create-category-response-class.d.ts +25 -0
- package/dist/models/create-category-response-class.js +15 -0
- package/dist/models/create-hub-spot-ticket-request-dto.d.ts +31 -0
- package/dist/models/create-hub-spot-ticket-request-dto.js +15 -0
- package/dist/models/create-hub-spot-ticket-response-class.d.ts +25 -0
- package/dist/models/create-hub-spot-ticket-response-class.js +15 -0
- package/dist/models/create-priority-request-dto.d.ts +24 -0
- package/dist/models/create-priority-request-dto.js +15 -0
- package/dist/models/create-priority-response-class.d.ts +25 -0
- package/dist/models/create-priority-response-class.js +15 -0
- package/dist/models/create-status-request-dto.d.ts +24 -0
- package/dist/models/create-status-request-dto.js +15 -0
- package/dist/models/create-status-response-class.d.ts +25 -0
- package/dist/models/create-status-response-class.js +15 -0
- package/dist/models/create-task-request-dto.d.ts +54 -0
- package/dist/models/create-task-request-dto.js +15 -0
- package/dist/models/create-task-response-class.d.ts +25 -0
- package/dist/models/create-task-response-class.js +15 -0
- package/dist/models/get-category-response-class.d.ts +25 -0
- package/dist/models/get-category-response-class.js +15 -0
- package/dist/models/get-priority-response-class.d.ts +25 -0
- package/dist/models/get-priority-response-class.js +15 -0
- package/dist/models/get-status-response-class.d.ts +25 -0
- package/dist/models/get-status-response-class.js +15 -0
- package/dist/models/get-task-response-class.d.ts +25 -0
- package/dist/models/get-task-response-class.js +15 -0
- package/dist/models/hub-spot-ticket-class.d.ts +49 -0
- package/dist/models/hub-spot-ticket-class.js +15 -0
- package/dist/models/hub-spot-ticket-error-class.d.ts +30 -0
- package/dist/models/hub-spot-ticket-error-class.js +15 -0
- package/dist/models/hub-spot-ticket-name-value-dto.d.ts +30 -0
- package/dist/models/hub-spot-ticket-name-value-dto.js +15 -0
- package/dist/models/index.d.ts +32 -0
- package/dist/models/index.js +48 -0
- package/dist/models/inline-response200.d.ts +54 -0
- package/dist/models/inline-response200.js +15 -0
- package/dist/models/inline-response503.d.ts +54 -0
- package/dist/models/inline-response503.js +15 -0
- package/dist/models/list-categories-response-class.d.ts +43 -0
- package/dist/models/list-categories-response-class.js +15 -0
- package/dist/models/list-statuses-response-class.d.ts +43 -0
- package/dist/models/list-statuses-response-class.js +15 -0
- package/dist/models/list-tasks-response-class.d.ts +43 -0
- package/dist/models/list-tasks-response-class.js +15 -0
- package/dist/models/priority-class.d.ts +60 -0
- package/dist/models/priority-class.js +15 -0
- package/dist/models/status-class.d.ts +60 -0
- package/dist/models/status-class.js +15 -0
- package/dist/models/task-class.d.ts +99 -0
- package/dist/models/task-class.js +15 -0
- package/dist/models/update-category-request-dto.d.ts +30 -0
- package/dist/models/update-category-request-dto.js +15 -0
- package/dist/models/update-category-response-class.d.ts +25 -0
- package/dist/models/update-category-response-class.js +15 -0
- package/dist/models/update-status-request-dto.d.ts +30 -0
- package/dist/models/update-status-request-dto.js +15 -0
- package/dist/models/update-status-response-class.d.ts +25 -0
- package/dist/models/update-status-response-class.js +15 -0
- package/dist/models/update-task-request-dto.d.ts +60 -0
- package/dist/models/update-task-request-dto.js +15 -0
- package/dist/models/update-task-response-class.d.ts +25 -0
- package/dist/models/update-task-response-class.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/category-class.ts +66 -0
- package/models/create-category-request-dto.ts +30 -0
- package/models/create-category-response-class.ts +31 -0
- package/models/create-hub-spot-ticket-request-dto.ts +37 -0
- package/models/create-hub-spot-ticket-response-class.ts +31 -0
- package/models/create-priority-request-dto.ts +30 -0
- package/models/create-priority-response-class.ts +31 -0
- package/models/create-status-request-dto.ts +30 -0
- package/models/create-status-response-class.ts +31 -0
- package/models/create-task-request-dto.ts +60 -0
- package/models/create-task-response-class.ts +31 -0
- package/models/get-category-response-class.ts +31 -0
- package/models/get-priority-response-class.ts +31 -0
- package/models/get-status-response-class.ts +31 -0
- package/models/get-task-response-class.ts +31 -0
- package/models/hub-spot-ticket-class.ts +55 -0
- package/models/hub-spot-ticket-error-class.ts +36 -0
- package/models/hub-spot-ticket-name-value-dto.ts +36 -0
- package/models/index.ts +32 -0
- package/models/inline-response200.ts +48 -0
- package/models/inline-response503.ts +48 -0
- package/models/list-categories-response-class.ts +49 -0
- package/models/list-statuses-response-class.ts +49 -0
- package/models/list-tasks-response-class.ts +49 -0
- package/models/priority-class.ts +66 -0
- package/models/status-class.ts +66 -0
- package/models/task-class.ts +105 -0
- package/models/update-category-request-dto.ts +36 -0
- package/models/update-category-response-class.ts +31 -0
- package/models/update-status-request-dto.ts +36 -0
- package/models/update-status-response-class.ts +31 -0
- package/models/update-task-request-dto.ts +66 -0
- package/models/update-task-response-class.ts +31 -0
- package/package.json +26 -0
- package/tsconfig.json +23 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL TaskService
|
|
5
|
+
* The EMIL Task API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { InlineResponse200 } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { InlineResponse503 } from '../models';
|
|
27
|
+
/**
|
|
28
|
+
* DefaultApi - axios parameter creator
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
|
+
return {
|
|
33
|
+
/**
|
|
34
|
+
* Returns the health status of the TaskService service. This endpoint is used to monitor the operational status of the TaskService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
35
|
+
* @summary Health Check
|
|
36
|
+
* @param {*} [options] Override http request option.
|
|
37
|
+
* @throws {RequiredError}
|
|
38
|
+
*/
|
|
39
|
+
check: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
40
|
+
const localVarPath = `/taskserviceervice/health`;
|
|
41
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
43
|
+
let baseOptions;
|
|
44
|
+
let baseAccessToken;
|
|
45
|
+
if (configuration) {
|
|
46
|
+
baseOptions = configuration.baseOptions;
|
|
47
|
+
baseAccessToken = configuration.accessToken;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
51
|
+
const localVarHeaderParameter = {} as any;
|
|
52
|
+
const localVarQueryParameter = {} as any;
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
57
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
58
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
59
|
+
|
|
60
|
+
return {
|
|
61
|
+
url: toPathString(localVarUrlObj),
|
|
62
|
+
options: localVarRequestOptions,
|
|
63
|
+
};
|
|
64
|
+
},
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* DefaultApi - functional programming interface
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export const DefaultApiFp = function(configuration?: Configuration) {
|
|
73
|
+
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
|
|
74
|
+
return {
|
|
75
|
+
/**
|
|
76
|
+
* Returns the health status of the TaskService service. This endpoint is used to monitor the operational status of the TaskService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
77
|
+
* @summary Health Check
|
|
78
|
+
* @param {*} [options] Override http request option.
|
|
79
|
+
* @throws {RequiredError}
|
|
80
|
+
*/
|
|
81
|
+
async check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>> {
|
|
82
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.check(options);
|
|
83
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
84
|
+
},
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* DefaultApi - factory interface
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
93
|
+
const localVarFp = DefaultApiFp(configuration)
|
|
94
|
+
return {
|
|
95
|
+
/**
|
|
96
|
+
* Returns the health status of the TaskService service. This endpoint is used to monitor the operational status of the TaskService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
97
|
+
* @summary Health Check
|
|
98
|
+
* @param {*} [options] Override http request option.
|
|
99
|
+
* @throws {RequiredError}
|
|
100
|
+
*/
|
|
101
|
+
check(options?: any): AxiosPromise<InlineResponse200> {
|
|
102
|
+
return localVarFp.check(options).then((request) => request(axios, basePath));
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* DefaultApi - object-oriented interface
|
|
109
|
+
* @export
|
|
110
|
+
* @class DefaultApi
|
|
111
|
+
* @extends {BaseAPI}
|
|
112
|
+
*/
|
|
113
|
+
export class DefaultApi extends BaseAPI {
|
|
114
|
+
/**
|
|
115
|
+
* Returns the health status of the TaskService service. This endpoint is used to monitor the operational status of the TaskService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
116
|
+
* @summary Health Check
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
* @memberof DefaultApi
|
|
120
|
+
*/
|
|
121
|
+
public check(options?: AxiosRequestConfig) {
|
|
122
|
+
return DefaultApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
123
|
+
}
|
|
124
|
+
}
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL TaskService
|
|
5
|
+
* The EMIL Task API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { CreateHubSpotTicketRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreateHubSpotTicketResponseClass } from '../models';
|
|
27
|
+
/**
|
|
28
|
+
* HubSpotApi - axios parameter creator
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export const HubSpotApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
|
+
return {
|
|
33
|
+
/**
|
|
34
|
+
* This will create hub spot ticket.
|
|
35
|
+
* @summary Create the hub spot ticket
|
|
36
|
+
* @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto
|
|
37
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
createHubSpotTicket: async (createHubSpotTicketRequestDto: CreateHubSpotTicketRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42
|
+
// verify required parameter 'createHubSpotTicketRequestDto' is not null or undefined
|
|
43
|
+
assertParamExists('createHubSpotTicket', 'createHubSpotTicketRequestDto', createHubSpotTicketRequestDto)
|
|
44
|
+
const localVarPath = `/taskservice/v1/hub-spot-tickets`;
|
|
45
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
47
|
+
let baseOptions;
|
|
48
|
+
let baseAccessToken;
|
|
49
|
+
if (configuration) {
|
|
50
|
+
baseOptions = configuration.baseOptions;
|
|
51
|
+
baseAccessToken = configuration.accessToken;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
55
|
+
const localVarHeaderParameter = {} as any;
|
|
56
|
+
const localVarQueryParameter = {} as any;
|
|
57
|
+
|
|
58
|
+
// authentication bearer required
|
|
59
|
+
// http bearer authentication required
|
|
60
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
61
|
+
|
|
62
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
63
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
69
|
+
|
|
70
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
71
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
72
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
73
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createHubSpotTicketRequestDto, localVarRequestOptions, configuration)
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
url: toPathString(localVarUrlObj),
|
|
77
|
+
options: localVarRequestOptions,
|
|
78
|
+
};
|
|
79
|
+
},
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* HubSpotApi - functional programming interface
|
|
85
|
+
* @export
|
|
86
|
+
*/
|
|
87
|
+
export const HubSpotApiFp = function(configuration?: Configuration) {
|
|
88
|
+
const localVarAxiosParamCreator = HubSpotApiAxiosParamCreator(configuration)
|
|
89
|
+
return {
|
|
90
|
+
/**
|
|
91
|
+
* This will create hub spot ticket.
|
|
92
|
+
* @summary Create the hub spot ticket
|
|
93
|
+
* @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto
|
|
94
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
95
|
+
* @param {*} [options] Override http request option.
|
|
96
|
+
* @throws {RequiredError}
|
|
97
|
+
*/
|
|
98
|
+
async createHubSpotTicket(createHubSpotTicketRequestDto: CreateHubSpotTicketRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateHubSpotTicketResponseClass>> {
|
|
99
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createHubSpotTicket(createHubSpotTicketRequestDto, authorization, options);
|
|
100
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
101
|
+
},
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* HubSpotApi - factory interface
|
|
107
|
+
* @export
|
|
108
|
+
*/
|
|
109
|
+
export const HubSpotApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
110
|
+
const localVarFp = HubSpotApiFp(configuration)
|
|
111
|
+
return {
|
|
112
|
+
/**
|
|
113
|
+
* This will create hub spot ticket.
|
|
114
|
+
* @summary Create the hub spot ticket
|
|
115
|
+
* @param {CreateHubSpotTicketRequestDto} createHubSpotTicketRequestDto
|
|
116
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
*/
|
|
120
|
+
createHubSpotTicket(createHubSpotTicketRequestDto: CreateHubSpotTicketRequestDto, authorization?: string, options?: any): AxiosPromise<CreateHubSpotTicketResponseClass> {
|
|
121
|
+
return localVarFp.createHubSpotTicket(createHubSpotTicketRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Request parameters for createHubSpotTicket operation in HubSpotApi.
|
|
128
|
+
* @export
|
|
129
|
+
* @interface HubSpotApiCreateHubSpotTicketRequest
|
|
130
|
+
*/
|
|
131
|
+
export interface HubSpotApiCreateHubSpotTicketRequest {
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {CreateHubSpotTicketRequestDto}
|
|
135
|
+
* @memberof HubSpotApiCreateHubSpotTicket
|
|
136
|
+
*/
|
|
137
|
+
readonly createHubSpotTicketRequestDto: CreateHubSpotTicketRequestDto
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
141
|
+
* @type {string}
|
|
142
|
+
* @memberof HubSpotApiCreateHubSpotTicket
|
|
143
|
+
*/
|
|
144
|
+
readonly authorization?: string
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* HubSpotApi - object-oriented interface
|
|
149
|
+
* @export
|
|
150
|
+
* @class HubSpotApi
|
|
151
|
+
* @extends {BaseAPI}
|
|
152
|
+
*/
|
|
153
|
+
export class HubSpotApi extends BaseAPI {
|
|
154
|
+
/**
|
|
155
|
+
* This will create hub spot ticket.
|
|
156
|
+
* @summary Create the hub spot ticket
|
|
157
|
+
* @param {HubSpotApiCreateHubSpotTicketRequest} requestParameters Request parameters.
|
|
158
|
+
* @param {*} [options] Override http request option.
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
* @memberof HubSpotApi
|
|
161
|
+
*/
|
|
162
|
+
public createHubSpotTicket(requestParameters: HubSpotApiCreateHubSpotTicketRequest, options?: AxiosRequestConfig) {
|
|
163
|
+
return HubSpotApiFp(this.configuration).createHubSpotTicket(requestParameters.createHubSpotTicketRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
164
|
+
}
|
|
165
|
+
}
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL TaskService
|
|
5
|
+
* The EMIL Task API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { CreatePriorityRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreatePriorityResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { GetPriorityResponseClass } from '../models';
|
|
29
|
+
/**
|
|
30
|
+
* PrioritiesApi - axios parameter creator
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export const PrioritiesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
34
|
+
return {
|
|
35
|
+
/**
|
|
36
|
+
* This will create priority.
|
|
37
|
+
* @summary Create the priority
|
|
38
|
+
* @param {CreatePriorityRequestDto} createPriorityRequestDto
|
|
39
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
40
|
+
* @param {*} [options] Override http request option.
|
|
41
|
+
* @throws {RequiredError}
|
|
42
|
+
*/
|
|
43
|
+
createPriority: async (createPriorityRequestDto: CreatePriorityRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44
|
+
// verify required parameter 'createPriorityRequestDto' is not null or undefined
|
|
45
|
+
assertParamExists('createPriority', 'createPriorityRequestDto', createPriorityRequestDto)
|
|
46
|
+
const localVarPath = `/taskservice/v1/priorities`;
|
|
47
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
48
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
49
|
+
let baseOptions;
|
|
50
|
+
let baseAccessToken;
|
|
51
|
+
if (configuration) {
|
|
52
|
+
baseOptions = configuration.baseOptions;
|
|
53
|
+
baseAccessToken = configuration.accessToken;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
57
|
+
const localVarHeaderParameter = {} as any;
|
|
58
|
+
const localVarQueryParameter = {} as any;
|
|
59
|
+
|
|
60
|
+
// authentication bearer required
|
|
61
|
+
// http bearer authentication required
|
|
62
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
63
|
+
|
|
64
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
65
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
71
|
+
|
|
72
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
73
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
74
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
75
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPriorityRequestDto, localVarRequestOptions, configuration)
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
url: toPathString(localVarUrlObj),
|
|
79
|
+
options: localVarRequestOptions,
|
|
80
|
+
};
|
|
81
|
+
},
|
|
82
|
+
/**
|
|
83
|
+
* This will get priority.
|
|
84
|
+
* @summary Retrieve the priority
|
|
85
|
+
* @param {string} code
|
|
86
|
+
* @param {string} expand
|
|
87
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
88
|
+
* @param {*} [options] Override http request option.
|
|
89
|
+
* @throws {RequiredError}
|
|
90
|
+
*/
|
|
91
|
+
getPriority: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
92
|
+
// verify required parameter 'code' is not null or undefined
|
|
93
|
+
assertParamExists('getPriority', 'code', code)
|
|
94
|
+
// verify required parameter 'expand' is not null or undefined
|
|
95
|
+
assertParamExists('getPriority', 'expand', expand)
|
|
96
|
+
const localVarPath = `/taskservice/v1/priorities/{code}`
|
|
97
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
98
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
99
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
100
|
+
let baseOptions;
|
|
101
|
+
let baseAccessToken;
|
|
102
|
+
if (configuration) {
|
|
103
|
+
baseOptions = configuration.baseOptions;
|
|
104
|
+
baseAccessToken = configuration.accessToken;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
108
|
+
const localVarHeaderParameter = {} as any;
|
|
109
|
+
const localVarQueryParameter = {} as any;
|
|
110
|
+
|
|
111
|
+
// authentication bearer required
|
|
112
|
+
// http bearer authentication required
|
|
113
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
114
|
+
|
|
115
|
+
if (expand !== undefined) {
|
|
116
|
+
localVarQueryParameter['expand'] = expand;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
120
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
126
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
127
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
128
|
+
|
|
129
|
+
return {
|
|
130
|
+
url: toPathString(localVarUrlObj),
|
|
131
|
+
options: localVarRequestOptions,
|
|
132
|
+
};
|
|
133
|
+
},
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* PrioritiesApi - functional programming interface
|
|
139
|
+
* @export
|
|
140
|
+
*/
|
|
141
|
+
export const PrioritiesApiFp = function(configuration?: Configuration) {
|
|
142
|
+
const localVarAxiosParamCreator = PrioritiesApiAxiosParamCreator(configuration)
|
|
143
|
+
return {
|
|
144
|
+
/**
|
|
145
|
+
* This will create priority.
|
|
146
|
+
* @summary Create the priority
|
|
147
|
+
* @param {CreatePriorityRequestDto} createPriorityRequestDto
|
|
148
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
149
|
+
* @param {*} [options] Override http request option.
|
|
150
|
+
* @throws {RequiredError}
|
|
151
|
+
*/
|
|
152
|
+
async createPriority(createPriorityRequestDto: CreatePriorityRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePriorityResponseClass>> {
|
|
153
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPriority(createPriorityRequestDto, authorization, options);
|
|
154
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
155
|
+
},
|
|
156
|
+
/**
|
|
157
|
+
* This will get priority.
|
|
158
|
+
* @summary Retrieve the priority
|
|
159
|
+
* @param {string} code
|
|
160
|
+
* @param {string} expand
|
|
161
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
162
|
+
* @param {*} [options] Override http request option.
|
|
163
|
+
* @throws {RequiredError}
|
|
164
|
+
*/
|
|
165
|
+
async getPriority(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPriorityResponseClass>> {
|
|
166
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPriority(code, expand, authorization, options);
|
|
167
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
168
|
+
},
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* PrioritiesApi - factory interface
|
|
174
|
+
* @export
|
|
175
|
+
*/
|
|
176
|
+
export const PrioritiesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
177
|
+
const localVarFp = PrioritiesApiFp(configuration)
|
|
178
|
+
return {
|
|
179
|
+
/**
|
|
180
|
+
* This will create priority.
|
|
181
|
+
* @summary Create the priority
|
|
182
|
+
* @param {CreatePriorityRequestDto} createPriorityRequestDto
|
|
183
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
184
|
+
* @param {*} [options] Override http request option.
|
|
185
|
+
* @throws {RequiredError}
|
|
186
|
+
*/
|
|
187
|
+
createPriority(createPriorityRequestDto: CreatePriorityRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePriorityResponseClass> {
|
|
188
|
+
return localVarFp.createPriority(createPriorityRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
189
|
+
},
|
|
190
|
+
/**
|
|
191
|
+
* This will get priority.
|
|
192
|
+
* @summary Retrieve the priority
|
|
193
|
+
* @param {string} code
|
|
194
|
+
* @param {string} expand
|
|
195
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
196
|
+
* @param {*} [options] Override http request option.
|
|
197
|
+
* @throws {RequiredError}
|
|
198
|
+
*/
|
|
199
|
+
getPriority(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetPriorityResponseClass> {
|
|
200
|
+
return localVarFp.getPriority(code, expand, authorization, options).then((request) => request(axios, basePath));
|
|
201
|
+
},
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* Request parameters for createPriority operation in PrioritiesApi.
|
|
207
|
+
* @export
|
|
208
|
+
* @interface PrioritiesApiCreatePriorityRequest
|
|
209
|
+
*/
|
|
210
|
+
export interface PrioritiesApiCreatePriorityRequest {
|
|
211
|
+
/**
|
|
212
|
+
*
|
|
213
|
+
* @type {CreatePriorityRequestDto}
|
|
214
|
+
* @memberof PrioritiesApiCreatePriority
|
|
215
|
+
*/
|
|
216
|
+
readonly createPriorityRequestDto: CreatePriorityRequestDto
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
220
|
+
* @type {string}
|
|
221
|
+
* @memberof PrioritiesApiCreatePriority
|
|
222
|
+
*/
|
|
223
|
+
readonly authorization?: string
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* Request parameters for getPriority operation in PrioritiesApi.
|
|
228
|
+
* @export
|
|
229
|
+
* @interface PrioritiesApiGetPriorityRequest
|
|
230
|
+
*/
|
|
231
|
+
export interface PrioritiesApiGetPriorityRequest {
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
* @type {string}
|
|
235
|
+
* @memberof PrioritiesApiGetPriority
|
|
236
|
+
*/
|
|
237
|
+
readonly code: string
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
*
|
|
241
|
+
* @type {string}
|
|
242
|
+
* @memberof PrioritiesApiGetPriority
|
|
243
|
+
*/
|
|
244
|
+
readonly expand: string
|
|
245
|
+
|
|
246
|
+
/**
|
|
247
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
248
|
+
* @type {string}
|
|
249
|
+
* @memberof PrioritiesApiGetPriority
|
|
250
|
+
*/
|
|
251
|
+
readonly authorization?: string
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* PrioritiesApi - object-oriented interface
|
|
256
|
+
* @export
|
|
257
|
+
* @class PrioritiesApi
|
|
258
|
+
* @extends {BaseAPI}
|
|
259
|
+
*/
|
|
260
|
+
export class PrioritiesApi extends BaseAPI {
|
|
261
|
+
/**
|
|
262
|
+
* This will create priority.
|
|
263
|
+
* @summary Create the priority
|
|
264
|
+
* @param {PrioritiesApiCreatePriorityRequest} requestParameters Request parameters.
|
|
265
|
+
* @param {*} [options] Override http request option.
|
|
266
|
+
* @throws {RequiredError}
|
|
267
|
+
* @memberof PrioritiesApi
|
|
268
|
+
*/
|
|
269
|
+
public createPriority(requestParameters: PrioritiesApiCreatePriorityRequest, options?: AxiosRequestConfig) {
|
|
270
|
+
return PrioritiesApiFp(this.configuration).createPriority(requestParameters.createPriorityRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* This will get priority.
|
|
275
|
+
* @summary Retrieve the priority
|
|
276
|
+
* @param {PrioritiesApiGetPriorityRequest} requestParameters Request parameters.
|
|
277
|
+
* @param {*} [options] Override http request option.
|
|
278
|
+
* @throws {RequiredError}
|
|
279
|
+
* @memberof PrioritiesApi
|
|
280
|
+
*/
|
|
281
|
+
public getPriority(requestParameters: PrioritiesApiGetPriorityRequest, options?: AxiosRequestConfig) {
|
|
282
|
+
return PrioritiesApiFp(this.configuration).getPriority(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
283
|
+
}
|
|
284
|
+
}
|