@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,162 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL TaskService
|
|
3
|
+
* The EMIL Task API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { CreatePriorityRequestDto } from '../models';
|
|
16
|
+
import { CreatePriorityResponseClass } from '../models';
|
|
17
|
+
import { GetPriorityResponseClass } from '../models';
|
|
18
|
+
/**
|
|
19
|
+
* PrioritiesApi - axios parameter creator
|
|
20
|
+
* @export
|
|
21
|
+
*/
|
|
22
|
+
export declare const PrioritiesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
23
|
+
/**
|
|
24
|
+
* This will create priority.
|
|
25
|
+
* @summary Create the priority
|
|
26
|
+
* @param {CreatePriorityRequestDto} createPriorityRequestDto
|
|
27
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
28
|
+
* @param {*} [options] Override http request option.
|
|
29
|
+
* @throws {RequiredError}
|
|
30
|
+
*/
|
|
31
|
+
createPriority: (createPriorityRequestDto: CreatePriorityRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
|
+
/**
|
|
33
|
+
* This will get priority.
|
|
34
|
+
* @summary Retrieve the priority
|
|
35
|
+
* @param {string} code
|
|
36
|
+
* @param {string} expand
|
|
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
|
+
getPriority: (code: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* PrioritiesApi - functional programming interface
|
|
45
|
+
* @export
|
|
46
|
+
*/
|
|
47
|
+
export declare const PrioritiesApiFp: (configuration?: Configuration) => {
|
|
48
|
+
/**
|
|
49
|
+
* This will create priority.
|
|
50
|
+
* @summary Create the priority
|
|
51
|
+
* @param {CreatePriorityRequestDto} createPriorityRequestDto
|
|
52
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
53
|
+
* @param {*} [options] Override http request option.
|
|
54
|
+
* @throws {RequiredError}
|
|
55
|
+
*/
|
|
56
|
+
createPriority(createPriorityRequestDto: CreatePriorityRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePriorityResponseClass>>;
|
|
57
|
+
/**
|
|
58
|
+
* This will get priority.
|
|
59
|
+
* @summary Retrieve the priority
|
|
60
|
+
* @param {string} code
|
|
61
|
+
* @param {string} expand
|
|
62
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
63
|
+
* @param {*} [options] Override http request option.
|
|
64
|
+
* @throws {RequiredError}
|
|
65
|
+
*/
|
|
66
|
+
getPriority(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPriorityResponseClass>>;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* PrioritiesApi - factory interface
|
|
70
|
+
* @export
|
|
71
|
+
*/
|
|
72
|
+
export declare const PrioritiesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
73
|
+
/**
|
|
74
|
+
* This will create priority.
|
|
75
|
+
* @summary Create the priority
|
|
76
|
+
* @param {CreatePriorityRequestDto} createPriorityRequestDto
|
|
77
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
78
|
+
* @param {*} [options] Override http request option.
|
|
79
|
+
* @throws {RequiredError}
|
|
80
|
+
*/
|
|
81
|
+
createPriority(createPriorityRequestDto: CreatePriorityRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePriorityResponseClass>;
|
|
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(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetPriorityResponseClass>;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Request parameters for createPriority operation in PrioritiesApi.
|
|
95
|
+
* @export
|
|
96
|
+
* @interface PrioritiesApiCreatePriorityRequest
|
|
97
|
+
*/
|
|
98
|
+
export interface PrioritiesApiCreatePriorityRequest {
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @type {CreatePriorityRequestDto}
|
|
102
|
+
* @memberof PrioritiesApiCreatePriority
|
|
103
|
+
*/
|
|
104
|
+
readonly createPriorityRequestDto: CreatePriorityRequestDto;
|
|
105
|
+
/**
|
|
106
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
107
|
+
* @type {string}
|
|
108
|
+
* @memberof PrioritiesApiCreatePriority
|
|
109
|
+
*/
|
|
110
|
+
readonly authorization?: string;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Request parameters for getPriority operation in PrioritiesApi.
|
|
114
|
+
* @export
|
|
115
|
+
* @interface PrioritiesApiGetPriorityRequest
|
|
116
|
+
*/
|
|
117
|
+
export interface PrioritiesApiGetPriorityRequest {
|
|
118
|
+
/**
|
|
119
|
+
*
|
|
120
|
+
* @type {string}
|
|
121
|
+
* @memberof PrioritiesApiGetPriority
|
|
122
|
+
*/
|
|
123
|
+
readonly code: string;
|
|
124
|
+
/**
|
|
125
|
+
*
|
|
126
|
+
* @type {string}
|
|
127
|
+
* @memberof PrioritiesApiGetPriority
|
|
128
|
+
*/
|
|
129
|
+
readonly expand: string;
|
|
130
|
+
/**
|
|
131
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
132
|
+
* @type {string}
|
|
133
|
+
* @memberof PrioritiesApiGetPriority
|
|
134
|
+
*/
|
|
135
|
+
readonly authorization?: string;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* PrioritiesApi - object-oriented interface
|
|
139
|
+
* @export
|
|
140
|
+
* @class PrioritiesApi
|
|
141
|
+
* @extends {BaseAPI}
|
|
142
|
+
*/
|
|
143
|
+
export declare class PrioritiesApi extends BaseAPI {
|
|
144
|
+
/**
|
|
145
|
+
* This will create priority.
|
|
146
|
+
* @summary Create the priority
|
|
147
|
+
* @param {PrioritiesApiCreatePriorityRequest} requestParameters Request parameters.
|
|
148
|
+
* @param {*} [options] Override http request option.
|
|
149
|
+
* @throws {RequiredError}
|
|
150
|
+
* @memberof PrioritiesApi
|
|
151
|
+
*/
|
|
152
|
+
createPriority(requestParameters: PrioritiesApiCreatePriorityRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePriorityResponseClass, any, {}>>;
|
|
153
|
+
/**
|
|
154
|
+
* This will get priority.
|
|
155
|
+
* @summary Retrieve the priority
|
|
156
|
+
* @param {PrioritiesApiGetPriorityRequest} requestParameters Request parameters.
|
|
157
|
+
* @param {*} [options] Override http request option.
|
|
158
|
+
* @throws {RequiredError}
|
|
159
|
+
* @memberof PrioritiesApi
|
|
160
|
+
*/
|
|
161
|
+
getPriority(requestParameters: PrioritiesApiGetPriorityRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPriorityResponseClass, any, {}>>;
|
|
162
|
+
}
|
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL TaskService
|
|
6
|
+
* The EMIL Task API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __assign = (this && this.__assign) || function () {
|
|
31
|
+
__assign = Object.assign || function(t) {
|
|
32
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
+
s = arguments[i];
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
return __assign.apply(this, arguments);
|
|
40
|
+
};
|
|
41
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
+
function step(op) {
|
|
55
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
+
switch (op[0]) {
|
|
60
|
+
case 0: case 1: t = op; break;
|
|
61
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
+
default:
|
|
65
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
+
if (t[2]) _.ops.pop();
|
|
70
|
+
_.trys.pop(); continue;
|
|
71
|
+
}
|
|
72
|
+
op = body.call(thisArg, _);
|
|
73
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
+
};
|
|
80
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
+
exports.PrioritiesApi = exports.PrioritiesApiFactory = exports.PrioritiesApiFp = exports.PrioritiesApiAxiosParamCreator = void 0;
|
|
82
|
+
var axios_1 = __importDefault(require("axios"));
|
|
83
|
+
// Some imports not used depending on template conditions
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
var common_1 = require("../common");
|
|
86
|
+
// @ts-ignore
|
|
87
|
+
var base_1 = require("../base");
|
|
88
|
+
/**
|
|
89
|
+
* PrioritiesApi - axios parameter creator
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
var PrioritiesApiAxiosParamCreator = function (configuration) {
|
|
93
|
+
var _this = this;
|
|
94
|
+
return {
|
|
95
|
+
/**
|
|
96
|
+
* This will create priority.
|
|
97
|
+
* @summary Create the priority
|
|
98
|
+
* @param {CreatePriorityRequestDto} createPriorityRequestDto
|
|
99
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
createPriority: function (createPriorityRequestDto, authorization, options) {
|
|
104
|
+
if (options === void 0) { options = {}; }
|
|
105
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
switch (_a.label) {
|
|
109
|
+
case 0:
|
|
110
|
+
// verify required parameter 'createPriorityRequestDto' is not null or undefined
|
|
111
|
+
(0, common_1.assertParamExists)('createPriority', 'createPriorityRequestDto', createPriorityRequestDto);
|
|
112
|
+
localVarPath = "/taskservice/v1/priorities";
|
|
113
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
|
+
if (configuration) {
|
|
115
|
+
baseOptions = configuration.baseOptions;
|
|
116
|
+
baseAccessToken = configuration.accessToken;
|
|
117
|
+
}
|
|
118
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
119
|
+
localVarHeaderParameter = {};
|
|
120
|
+
localVarQueryParameter = {};
|
|
121
|
+
// authentication bearer required
|
|
122
|
+
// http bearer authentication required
|
|
123
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
124
|
+
case 1:
|
|
125
|
+
// authentication bearer required
|
|
126
|
+
// http bearer authentication required
|
|
127
|
+
_a.sent();
|
|
128
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
129
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
130
|
+
}
|
|
131
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
133
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
135
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPriorityRequestDto, localVarRequestOptions, configuration);
|
|
136
|
+
return [2 /*return*/, {
|
|
137
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
138
|
+
options: localVarRequestOptions,
|
|
139
|
+
}];
|
|
140
|
+
}
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
},
|
|
144
|
+
/**
|
|
145
|
+
* This will get priority.
|
|
146
|
+
* @summary Retrieve the priority
|
|
147
|
+
* @param {string} code
|
|
148
|
+
* @param {string} expand
|
|
149
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
150
|
+
* @param {*} [options] Override http request option.
|
|
151
|
+
* @throws {RequiredError}
|
|
152
|
+
*/
|
|
153
|
+
getPriority: function (code, expand, authorization, options) {
|
|
154
|
+
if (options === void 0) { options = {}; }
|
|
155
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
156
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
157
|
+
return __generator(this, function (_a) {
|
|
158
|
+
switch (_a.label) {
|
|
159
|
+
case 0:
|
|
160
|
+
// verify required parameter 'code' is not null or undefined
|
|
161
|
+
(0, common_1.assertParamExists)('getPriority', 'code', code);
|
|
162
|
+
// verify required parameter 'expand' is not null or undefined
|
|
163
|
+
(0, common_1.assertParamExists)('getPriority', 'expand', expand);
|
|
164
|
+
localVarPath = "/taskservice/v1/priorities/{code}"
|
|
165
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
166
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
167
|
+
if (configuration) {
|
|
168
|
+
baseOptions = configuration.baseOptions;
|
|
169
|
+
baseAccessToken = configuration.accessToken;
|
|
170
|
+
}
|
|
171
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
172
|
+
localVarHeaderParameter = {};
|
|
173
|
+
localVarQueryParameter = {};
|
|
174
|
+
// authentication bearer required
|
|
175
|
+
// http bearer authentication required
|
|
176
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
177
|
+
case 1:
|
|
178
|
+
// authentication bearer required
|
|
179
|
+
// http bearer authentication required
|
|
180
|
+
_a.sent();
|
|
181
|
+
if (expand !== undefined) {
|
|
182
|
+
localVarQueryParameter['expand'] = expand;
|
|
183
|
+
}
|
|
184
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
185
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
186
|
+
}
|
|
187
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
188
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
189
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
190
|
+
return [2 /*return*/, {
|
|
191
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
192
|
+
options: localVarRequestOptions,
|
|
193
|
+
}];
|
|
194
|
+
}
|
|
195
|
+
});
|
|
196
|
+
});
|
|
197
|
+
},
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
exports.PrioritiesApiAxiosParamCreator = PrioritiesApiAxiosParamCreator;
|
|
201
|
+
/**
|
|
202
|
+
* PrioritiesApi - functional programming interface
|
|
203
|
+
* @export
|
|
204
|
+
*/
|
|
205
|
+
var PrioritiesApiFp = function (configuration) {
|
|
206
|
+
var localVarAxiosParamCreator = (0, exports.PrioritiesApiAxiosParamCreator)(configuration);
|
|
207
|
+
return {
|
|
208
|
+
/**
|
|
209
|
+
* This will create priority.
|
|
210
|
+
* @summary Create the priority
|
|
211
|
+
* @param {CreatePriorityRequestDto} createPriorityRequestDto
|
|
212
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
213
|
+
* @param {*} [options] Override http request option.
|
|
214
|
+
* @throws {RequiredError}
|
|
215
|
+
*/
|
|
216
|
+
createPriority: function (createPriorityRequestDto, authorization, options) {
|
|
217
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
218
|
+
var localVarAxiosArgs;
|
|
219
|
+
return __generator(this, function (_a) {
|
|
220
|
+
switch (_a.label) {
|
|
221
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPriority(createPriorityRequestDto, authorization, options)];
|
|
222
|
+
case 1:
|
|
223
|
+
localVarAxiosArgs = _a.sent();
|
|
224
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
});
|
|
228
|
+
},
|
|
229
|
+
/**
|
|
230
|
+
* This will get priority.
|
|
231
|
+
* @summary Retrieve the priority
|
|
232
|
+
* @param {string} code
|
|
233
|
+
* @param {string} expand
|
|
234
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
235
|
+
* @param {*} [options] Override http request option.
|
|
236
|
+
* @throws {RequiredError}
|
|
237
|
+
*/
|
|
238
|
+
getPriority: function (code, expand, authorization, options) {
|
|
239
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
240
|
+
var localVarAxiosArgs;
|
|
241
|
+
return __generator(this, function (_a) {
|
|
242
|
+
switch (_a.label) {
|
|
243
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPriority(code, expand, authorization, options)];
|
|
244
|
+
case 1:
|
|
245
|
+
localVarAxiosArgs = _a.sent();
|
|
246
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
});
|
|
250
|
+
},
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
exports.PrioritiesApiFp = PrioritiesApiFp;
|
|
254
|
+
/**
|
|
255
|
+
* PrioritiesApi - factory interface
|
|
256
|
+
* @export
|
|
257
|
+
*/
|
|
258
|
+
var PrioritiesApiFactory = function (configuration, basePath, axios) {
|
|
259
|
+
var localVarFp = (0, exports.PrioritiesApiFp)(configuration);
|
|
260
|
+
return {
|
|
261
|
+
/**
|
|
262
|
+
* This will create priority.
|
|
263
|
+
* @summary Create the priority
|
|
264
|
+
* @param {CreatePriorityRequestDto} createPriorityRequestDto
|
|
265
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
266
|
+
* @param {*} [options] Override http request option.
|
|
267
|
+
* @throws {RequiredError}
|
|
268
|
+
*/
|
|
269
|
+
createPriority: function (createPriorityRequestDto, authorization, options) {
|
|
270
|
+
return localVarFp.createPriority(createPriorityRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
271
|
+
},
|
|
272
|
+
/**
|
|
273
|
+
* This will get priority.
|
|
274
|
+
* @summary Retrieve the priority
|
|
275
|
+
* @param {string} code
|
|
276
|
+
* @param {string} expand
|
|
277
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
278
|
+
* @param {*} [options] Override http request option.
|
|
279
|
+
* @throws {RequiredError}
|
|
280
|
+
*/
|
|
281
|
+
getPriority: function (code, expand, authorization, options) {
|
|
282
|
+
return localVarFp.getPriority(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
283
|
+
},
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
exports.PrioritiesApiFactory = PrioritiesApiFactory;
|
|
287
|
+
/**
|
|
288
|
+
* PrioritiesApi - object-oriented interface
|
|
289
|
+
* @export
|
|
290
|
+
* @class PrioritiesApi
|
|
291
|
+
* @extends {BaseAPI}
|
|
292
|
+
*/
|
|
293
|
+
var PrioritiesApi = /** @class */ (function (_super) {
|
|
294
|
+
__extends(PrioritiesApi, _super);
|
|
295
|
+
function PrioritiesApi() {
|
|
296
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* This will create priority.
|
|
300
|
+
* @summary Create the priority
|
|
301
|
+
* @param {PrioritiesApiCreatePriorityRequest} requestParameters Request parameters.
|
|
302
|
+
* @param {*} [options] Override http request option.
|
|
303
|
+
* @throws {RequiredError}
|
|
304
|
+
* @memberof PrioritiesApi
|
|
305
|
+
*/
|
|
306
|
+
PrioritiesApi.prototype.createPriority = function (requestParameters, options) {
|
|
307
|
+
var _this = this;
|
|
308
|
+
return (0, exports.PrioritiesApiFp)(this.configuration).createPriority(requestParameters.createPriorityRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
309
|
+
};
|
|
310
|
+
/**
|
|
311
|
+
* This will get priority.
|
|
312
|
+
* @summary Retrieve the priority
|
|
313
|
+
* @param {PrioritiesApiGetPriorityRequest} requestParameters Request parameters.
|
|
314
|
+
* @param {*} [options] Override http request option.
|
|
315
|
+
* @throws {RequiredError}
|
|
316
|
+
* @memberof PrioritiesApi
|
|
317
|
+
*/
|
|
318
|
+
PrioritiesApi.prototype.getPriority = function (requestParameters, options) {
|
|
319
|
+
var _this = this;
|
|
320
|
+
return (0, exports.PrioritiesApiFp)(this.configuration).getPriority(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
321
|
+
};
|
|
322
|
+
return PrioritiesApi;
|
|
323
|
+
}(base_1.BaseAPI));
|
|
324
|
+
exports.PrioritiesApi = PrioritiesApi;
|