@emilgroup/task-sdk 1.0.1-beta.9 → 1.1.1-beta.13
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 +3 -0
- package/README.md +2 -2
- package/api/assignees-api.ts +162 -0
- package/api/categories-api.ts +85 -59
- package/api/default-api.ts +1 -1
- package/api/hub-spot-api.ts +4 -4
- package/api/statuses-api.ts +45 -47
- package/api/tasks-api.ts +49 -51
- package/api.ts +2 -0
- package/dist/api/assignees-api.d.ts +96 -0
- package/dist/api/assignees-api.js +224 -0
- package/dist/api/categories-api.d.ts +65 -47
- package/dist/api/categories-api.js +59 -49
- package/dist/api/default-api.js +1 -1
- package/dist/api/hub-spot-api.d.ts +4 -4
- package/dist/api/hub-spot-api.js +4 -4
- package/dist/api/statuses-api.d.ts +42 -42
- package/dist/api/statuses-api.js +38 -40
- package/dist/api/tasks-api.d.ts +46 -46
- package/dist/api/tasks-api.js +41 -43
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/assignee-class.d.ts +24 -0
- package/dist/models/assignee-class.js +15 -0
- package/dist/models/create-status-request-dto.d.ts +6 -0
- package/dist/models/create-task-request-dto.d.ts +23 -4
- package/dist/models/create-task-request-dto.js +7 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/list-assignees-response-class.d.ts +43 -0
- package/dist/models/list-assignees-response-class.js +15 -0
- package/dist/models/patch-status-request-dto.d.ts +6 -0
- package/dist/models/patch-task-request-dto.d.ts +36 -5
- package/dist/models/patch-task-request-dto.js +7 -0
- package/dist/models/status-class.d.ts +6 -0
- package/dist/models/task-class.d.ts +34 -4
- package/models/assignee-class.ts +30 -0
- package/models/create-status-request-dto.ts +6 -0
- package/models/create-task-request-dto.ts +24 -4
- package/models/index.ts +2 -0
- package/models/list-assignees-response-class.ts +49 -0
- package/models/patch-status-request-dto.ts +6 -0
- package/models/patch-task-request-dto.ts +39 -5
- package/models/status-class.ts +6 -0
- package/models/task-class.ts +34 -4
- package/package.json +2 -1
|
@@ -0,0 +1,96 @@
|
|
|
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 { ListAssigneesResponseClass } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* AssigneesApi - axios parameter creator
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const AssigneesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
* Retrieves a list of distinct assignees from tasks. **Required Permissions** \"task-management.tasks.view\"
|
|
23
|
+
* @summary List assignees
|
|
24
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
25
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
26
|
+
* @param {*} [options] Override http request option.
|
|
27
|
+
* @throws {RequiredError}
|
|
28
|
+
*/
|
|
29
|
+
listAssignees: (authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* AssigneesApi - functional programming interface
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export declare const AssigneesApiFp: (configuration?: Configuration) => {
|
|
36
|
+
/**
|
|
37
|
+
* Retrieves a list of distinct assignees from tasks. **Required Permissions** \"task-management.tasks.view\"
|
|
38
|
+
* @summary List assignees
|
|
39
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
40
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
listAssignees(authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAssigneesResponseClass>>;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* AssigneesApi - factory interface
|
|
48
|
+
* @export
|
|
49
|
+
*/
|
|
50
|
+
export declare const AssigneesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
51
|
+
/**
|
|
52
|
+
* Retrieves a list of distinct assignees from tasks. **Required Permissions** \"task-management.tasks.view\"
|
|
53
|
+
* @summary List assignees
|
|
54
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
55
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
56
|
+
* @param {*} [options] Override http request option.
|
|
57
|
+
* @throws {RequiredError}
|
|
58
|
+
*/
|
|
59
|
+
listAssignees(authorization?: string, expand?: string, options?: any): AxiosPromise<ListAssigneesResponseClass>;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Request parameters for listAssignees operation in AssigneesApi.
|
|
63
|
+
* @export
|
|
64
|
+
* @interface AssigneesApiListAssigneesRequest
|
|
65
|
+
*/
|
|
66
|
+
export interface AssigneesApiListAssigneesRequest {
|
|
67
|
+
/**
|
|
68
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof AssigneesApiListAssignees
|
|
71
|
+
*/
|
|
72
|
+
readonly authorization?: string;
|
|
73
|
+
/**
|
|
74
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof AssigneesApiListAssignees
|
|
77
|
+
*/
|
|
78
|
+
readonly expand?: string;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* AssigneesApi - object-oriented interface
|
|
82
|
+
* @export
|
|
83
|
+
* @class AssigneesApi
|
|
84
|
+
* @extends {BaseAPI}
|
|
85
|
+
*/
|
|
86
|
+
export declare class AssigneesApi extends BaseAPI {
|
|
87
|
+
/**
|
|
88
|
+
* Retrieves a list of distinct assignees from tasks. **Required Permissions** \"task-management.tasks.view\"
|
|
89
|
+
* @summary List assignees
|
|
90
|
+
* @param {AssigneesApiListAssigneesRequest} requestParameters Request parameters.
|
|
91
|
+
* @param {*} [options] Override http request option.
|
|
92
|
+
* @throws {RequiredError}
|
|
93
|
+
* @memberof AssigneesApi
|
|
94
|
+
*/
|
|
95
|
+
listAssignees(requestParameters?: AssigneesApiListAssigneesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListAssigneesResponseClass, any, {}>>;
|
|
96
|
+
}
|
|
@@ -0,0 +1,224 @@
|
|
|
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.AssigneesApi = exports.AssigneesApiFactory = exports.AssigneesApiFp = exports.AssigneesApiAxiosParamCreator = 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
|
+
* AssigneesApi - axios parameter creator
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
var AssigneesApiAxiosParamCreator = function (configuration) {
|
|
93
|
+
var _this = this;
|
|
94
|
+
return {
|
|
95
|
+
/**
|
|
96
|
+
* Retrieves a list of distinct assignees from tasks. **Required Permissions** \"task-management.tasks.view\"
|
|
97
|
+
* @summary List assignees
|
|
98
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
99
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
100
|
+
* @param {*} [options] Override http request option.
|
|
101
|
+
* @throws {RequiredError}
|
|
102
|
+
*/
|
|
103
|
+
listAssignees: function (authorization, expand, 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
|
+
localVarPath = "/taskservice/v1/assignees";
|
|
111
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
112
|
+
if (configuration) {
|
|
113
|
+
baseOptions = configuration.baseOptions;
|
|
114
|
+
baseAccessToken = configuration.accessToken;
|
|
115
|
+
}
|
|
116
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
117
|
+
localVarHeaderParameter = {};
|
|
118
|
+
localVarQueryParameter = {};
|
|
119
|
+
// authentication bearer required
|
|
120
|
+
// http bearer authentication required
|
|
121
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
122
|
+
case 1:
|
|
123
|
+
// authentication bearer required
|
|
124
|
+
// http bearer authentication required
|
|
125
|
+
_a.sent();
|
|
126
|
+
if (expand !== undefined) {
|
|
127
|
+
localVarQueryParameter['expand'] = expand;
|
|
128
|
+
}
|
|
129
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
130
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
131
|
+
}
|
|
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
|
+
return [2 /*return*/, {
|
|
136
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
137
|
+
options: localVarRequestOptions,
|
|
138
|
+
}];
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
},
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
exports.AssigneesApiAxiosParamCreator = AssigneesApiAxiosParamCreator;
|
|
146
|
+
/**
|
|
147
|
+
* AssigneesApi - functional programming interface
|
|
148
|
+
* @export
|
|
149
|
+
*/
|
|
150
|
+
var AssigneesApiFp = function (configuration) {
|
|
151
|
+
var localVarAxiosParamCreator = (0, exports.AssigneesApiAxiosParamCreator)(configuration);
|
|
152
|
+
return {
|
|
153
|
+
/**
|
|
154
|
+
* Retrieves a list of distinct assignees from tasks. **Required Permissions** \"task-management.tasks.view\"
|
|
155
|
+
* @summary List assignees
|
|
156
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
157
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
158
|
+
* @param {*} [options] Override http request option.
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
*/
|
|
161
|
+
listAssignees: function (authorization, expand, options) {
|
|
162
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
163
|
+
var localVarAxiosArgs;
|
|
164
|
+
return __generator(this, function (_a) {
|
|
165
|
+
switch (_a.label) {
|
|
166
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listAssignees(authorization, expand, options)];
|
|
167
|
+
case 1:
|
|
168
|
+
localVarAxiosArgs = _a.sent();
|
|
169
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
});
|
|
173
|
+
},
|
|
174
|
+
};
|
|
175
|
+
};
|
|
176
|
+
exports.AssigneesApiFp = AssigneesApiFp;
|
|
177
|
+
/**
|
|
178
|
+
* AssigneesApi - factory interface
|
|
179
|
+
* @export
|
|
180
|
+
*/
|
|
181
|
+
var AssigneesApiFactory = function (configuration, basePath, axios) {
|
|
182
|
+
var localVarFp = (0, exports.AssigneesApiFp)(configuration);
|
|
183
|
+
return {
|
|
184
|
+
/**
|
|
185
|
+
* Retrieves a list of distinct assignees from tasks. **Required Permissions** \"task-management.tasks.view\"
|
|
186
|
+
* @summary List assignees
|
|
187
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
188
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
189
|
+
* @param {*} [options] Override http request option.
|
|
190
|
+
* @throws {RequiredError}
|
|
191
|
+
*/
|
|
192
|
+
listAssignees: function (authorization, expand, options) {
|
|
193
|
+
return localVarFp.listAssignees(authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
194
|
+
},
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
exports.AssigneesApiFactory = AssigneesApiFactory;
|
|
198
|
+
/**
|
|
199
|
+
* AssigneesApi - object-oriented interface
|
|
200
|
+
* @export
|
|
201
|
+
* @class AssigneesApi
|
|
202
|
+
* @extends {BaseAPI}
|
|
203
|
+
*/
|
|
204
|
+
var AssigneesApi = /** @class */ (function (_super) {
|
|
205
|
+
__extends(AssigneesApi, _super);
|
|
206
|
+
function AssigneesApi() {
|
|
207
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Retrieves a list of distinct assignees from tasks. **Required Permissions** \"task-management.tasks.view\"
|
|
211
|
+
* @summary List assignees
|
|
212
|
+
* @param {AssigneesApiListAssigneesRequest} requestParameters Request parameters.
|
|
213
|
+
* @param {*} [options] Override http request option.
|
|
214
|
+
* @throws {RequiredError}
|
|
215
|
+
* @memberof AssigneesApi
|
|
216
|
+
*/
|
|
217
|
+
AssigneesApi.prototype.listAssignees = function (requestParameters, options) {
|
|
218
|
+
var _this = this;
|
|
219
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
220
|
+
return (0, exports.AssigneesApiFp)(this.configuration).listAssignees(requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
221
|
+
};
|
|
222
|
+
return AssigneesApi;
|
|
223
|
+
}(base_1.BaseAPI));
|
|
224
|
+
exports.AssigneesApi = AssigneesApi;
|
|
@@ -24,7 +24,7 @@ import { PatchCategoryResponseClass } from '../models';
|
|
|
24
24
|
*/
|
|
25
25
|
export declare const CategoriesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
26
26
|
/**
|
|
27
|
-
* This will create a category.
|
|
27
|
+
* This will create a category. **Required Permissions** \"task-management.tasks.create\"
|
|
28
28
|
* @summary Create the category
|
|
29
29
|
* @param {CreateCategoryRequestDto} createCategoryRequestDto
|
|
30
30
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -33,7 +33,7 @@ export declare const CategoriesApiAxiosParamCreator: (configuration?: Configurat
|
|
|
33
33
|
*/
|
|
34
34
|
createCategory: (createCategoryRequestDto: CreateCategoryRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
35
35
|
/**
|
|
36
|
-
* This will delete a task category by code.
|
|
36
|
+
* This will delete a task category by code. **Required Permissions** \"task-management.tasks.delete\"
|
|
37
37
|
* @summary Delete the category
|
|
38
38
|
* @param {string} code Unique identifier for the object.
|
|
39
39
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -42,30 +42,32 @@ export declare const CategoriesApiAxiosParamCreator: (configuration?: Configurat
|
|
|
42
42
|
*/
|
|
43
43
|
deleteCategory: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
44
|
/**
|
|
45
|
-
* Get category by code.
|
|
45
|
+
* Get category by code. **Required Permissions** \"task-management.tasks.view\"
|
|
46
46
|
* @summary Retrieve the category
|
|
47
47
|
* @param {string} code
|
|
48
|
-
* @param {string} expand
|
|
49
48
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
49
|
+
* @param {string} [expand] Expand to fetch additional information about the category.
|
|
50
50
|
* @param {*} [options] Override http request option.
|
|
51
51
|
* @throws {RequiredError}
|
|
52
52
|
*/
|
|
53
|
-
getCategory: (code: string,
|
|
53
|
+
getCategory: (code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
54
|
/**
|
|
55
|
-
* Retrieves a list of categories.
|
|
55
|
+
* Retrieves a list of categories. **Required Permissions** \"task-management.tasks.view\"
|
|
56
56
|
* @summary List categories
|
|
57
57
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
58
|
-
* @param {
|
|
59
|
-
* @param {string} [
|
|
60
|
-
* @param {string} [
|
|
58
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
59
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
60
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
61
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: name, slug</i>
|
|
61
62
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i>
|
|
62
63
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
64
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
63
65
|
* @param {*} [options] Override http request option.
|
|
64
66
|
* @throws {RequiredError}
|
|
65
67
|
*/
|
|
66
|
-
listCategories: (authorization?: string,
|
|
68
|
+
listCategories: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
67
69
|
/**
|
|
68
|
-
* This will partially update a category by code with the provided fields.
|
|
70
|
+
* This will partially update a category by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
69
71
|
* @summary Update the category
|
|
70
72
|
* @param {string} code
|
|
71
73
|
* @param {PatchCategoryRequestDto} patchCategoryRequestDto
|
|
@@ -81,7 +83,7 @@ export declare const CategoriesApiAxiosParamCreator: (configuration?: Configurat
|
|
|
81
83
|
*/
|
|
82
84
|
export declare const CategoriesApiFp: (configuration?: Configuration) => {
|
|
83
85
|
/**
|
|
84
|
-
* This will create a category.
|
|
86
|
+
* This will create a category. **Required Permissions** \"task-management.tasks.create\"
|
|
85
87
|
* @summary Create the category
|
|
86
88
|
* @param {CreateCategoryRequestDto} createCategoryRequestDto
|
|
87
89
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -90,7 +92,7 @@ export declare const CategoriesApiFp: (configuration?: Configuration) => {
|
|
|
90
92
|
*/
|
|
91
93
|
createCategory(createCategoryRequestDto: CreateCategoryRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCategoryResponseClass>>;
|
|
92
94
|
/**
|
|
93
|
-
* This will delete a task category by code.
|
|
95
|
+
* This will delete a task category by code. **Required Permissions** \"task-management.tasks.delete\"
|
|
94
96
|
* @summary Delete the category
|
|
95
97
|
* @param {string} code Unique identifier for the object.
|
|
96
98
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -99,30 +101,32 @@ export declare const CategoriesApiFp: (configuration?: Configuration) => {
|
|
|
99
101
|
*/
|
|
100
102
|
deleteCategory(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
101
103
|
/**
|
|
102
|
-
* Get category by code.
|
|
104
|
+
* Get category by code. **Required Permissions** \"task-management.tasks.view\"
|
|
103
105
|
* @summary Retrieve the category
|
|
104
106
|
* @param {string} code
|
|
105
|
-
* @param {string} expand
|
|
106
107
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
108
|
+
* @param {string} [expand] Expand to fetch additional information about the category.
|
|
107
109
|
* @param {*} [options] Override http request option.
|
|
108
110
|
* @throws {RequiredError}
|
|
109
111
|
*/
|
|
110
|
-
getCategory(code: string,
|
|
112
|
+
getCategory(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCategoryResponseClass>>;
|
|
111
113
|
/**
|
|
112
|
-
* Retrieves a list of categories.
|
|
114
|
+
* Retrieves a list of categories. **Required Permissions** \"task-management.tasks.view\"
|
|
113
115
|
* @summary List categories
|
|
114
116
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
115
|
-
* @param {
|
|
116
|
-
* @param {string} [
|
|
117
|
-
* @param {string} [
|
|
117
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
118
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
119
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
120
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: name, slug</i>
|
|
118
121
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i>
|
|
119
122
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
123
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
120
124
|
* @param {*} [options] Override http request option.
|
|
121
125
|
* @throws {RequiredError}
|
|
122
126
|
*/
|
|
123
|
-
listCategories(authorization?: string,
|
|
127
|
+
listCategories(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCategoriesResponseClass>>;
|
|
124
128
|
/**
|
|
125
|
-
* This will partially update a category by code with the provided fields.
|
|
129
|
+
* This will partially update a category by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
126
130
|
* @summary Update the category
|
|
127
131
|
* @param {string} code
|
|
128
132
|
* @param {PatchCategoryRequestDto} patchCategoryRequestDto
|
|
@@ -138,7 +142,7 @@ export declare const CategoriesApiFp: (configuration?: Configuration) => {
|
|
|
138
142
|
*/
|
|
139
143
|
export declare const CategoriesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
140
144
|
/**
|
|
141
|
-
* This will create a category.
|
|
145
|
+
* This will create a category. **Required Permissions** \"task-management.tasks.create\"
|
|
142
146
|
* @summary Create the category
|
|
143
147
|
* @param {CreateCategoryRequestDto} createCategoryRequestDto
|
|
144
148
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -147,7 +151,7 @@ export declare const CategoriesApiFactory: (configuration?: Configuration, baseP
|
|
|
147
151
|
*/
|
|
148
152
|
createCategory(createCategoryRequestDto: CreateCategoryRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCategoryResponseClass>;
|
|
149
153
|
/**
|
|
150
|
-
* This will delete a task category by code.
|
|
154
|
+
* This will delete a task category by code. **Required Permissions** \"task-management.tasks.delete\"
|
|
151
155
|
* @summary Delete the category
|
|
152
156
|
* @param {string} code Unique identifier for the object.
|
|
153
157
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -156,30 +160,32 @@ export declare const CategoriesApiFactory: (configuration?: Configuration, baseP
|
|
|
156
160
|
*/
|
|
157
161
|
deleteCategory(code: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
158
162
|
/**
|
|
159
|
-
* Get category by code.
|
|
163
|
+
* Get category by code. **Required Permissions** \"task-management.tasks.view\"
|
|
160
164
|
* @summary Retrieve the category
|
|
161
165
|
* @param {string} code
|
|
162
|
-
* @param {string} expand
|
|
163
166
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
167
|
+
* @param {string} [expand] Expand to fetch additional information about the category.
|
|
164
168
|
* @param {*} [options] Override http request option.
|
|
165
169
|
* @throws {RequiredError}
|
|
166
170
|
*/
|
|
167
|
-
getCategory(code: string,
|
|
171
|
+
getCategory(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetCategoryResponseClass>;
|
|
168
172
|
/**
|
|
169
|
-
* Retrieves a list of categories.
|
|
173
|
+
* Retrieves a list of categories. **Required Permissions** \"task-management.tasks.view\"
|
|
170
174
|
* @summary List categories
|
|
171
175
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
172
|
-
* @param {
|
|
173
|
-
* @param {string} [
|
|
174
|
-
* @param {string} [
|
|
176
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
177
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
178
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
179
|
+
* @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: name, slug</i>
|
|
175
180
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, name, slug</i>
|
|
176
181
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
182
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
177
183
|
* @param {*} [options] Override http request option.
|
|
178
184
|
* @throws {RequiredError}
|
|
179
185
|
*/
|
|
180
|
-
listCategories(authorization?: string,
|
|
186
|
+
listCategories(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCategoriesResponseClass>;
|
|
181
187
|
/**
|
|
182
|
-
* This will partially update a category by code with the provided fields.
|
|
188
|
+
* This will partially update a category by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
183
189
|
* @summary Update the category
|
|
184
190
|
* @param {string} code
|
|
185
191
|
* @param {PatchCategoryRequestDto} patchCategoryRequestDto
|
|
@@ -240,17 +246,17 @@ export interface CategoriesApiGetCategoryRequest {
|
|
|
240
246
|
*/
|
|
241
247
|
readonly code: string;
|
|
242
248
|
/**
|
|
243
|
-
*
|
|
249
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
244
250
|
* @type {string}
|
|
245
251
|
* @memberof CategoriesApiGetCategory
|
|
246
252
|
*/
|
|
247
|
-
readonly
|
|
253
|
+
readonly authorization?: string;
|
|
248
254
|
/**
|
|
249
|
-
*
|
|
255
|
+
* Expand to fetch additional information about the category.
|
|
250
256
|
* @type {string}
|
|
251
257
|
* @memberof CategoriesApiGetCategory
|
|
252
258
|
*/
|
|
253
|
-
readonly
|
|
259
|
+
readonly expand?: string;
|
|
254
260
|
}
|
|
255
261
|
/**
|
|
256
262
|
* Request parameters for listCategories operation in CategoriesApi.
|
|
@@ -265,19 +271,25 @@ export interface CategoriesApiListCategoriesRequest {
|
|
|
265
271
|
*/
|
|
266
272
|
readonly authorization?: string;
|
|
267
273
|
/**
|
|
268
|
-
*
|
|
274
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
275
|
+
* @type {number}
|
|
276
|
+
* @memberof CategoriesApiListCategories
|
|
277
|
+
*/
|
|
278
|
+
readonly pageSize?: number;
|
|
279
|
+
/**
|
|
280
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
269
281
|
* @type {string}
|
|
270
282
|
* @memberof CategoriesApiListCategories
|
|
271
283
|
*/
|
|
272
|
-
readonly
|
|
284
|
+
readonly pageToken?: string;
|
|
273
285
|
/**
|
|
274
|
-
*
|
|
286
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
275
287
|
* @type {string}
|
|
276
288
|
* @memberof CategoriesApiListCategories
|
|
277
289
|
*/
|
|
278
|
-
readonly
|
|
290
|
+
readonly filter?: string;
|
|
279
291
|
/**
|
|
280
|
-
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields:
|
|
292
|
+
* Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: name, slug</i>
|
|
281
293
|
* @type {string}
|
|
282
294
|
* @memberof CategoriesApiListCategories
|
|
283
295
|
*/
|
|
@@ -294,6 +306,12 @@ export interface CategoriesApiListCategoriesRequest {
|
|
|
294
306
|
* @memberof CategoriesApiListCategories
|
|
295
307
|
*/
|
|
296
308
|
readonly expand?: string;
|
|
309
|
+
/**
|
|
310
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, name, createdAt, updatedAt</i>
|
|
311
|
+
* @type {string}
|
|
312
|
+
* @memberof CategoriesApiListCategories
|
|
313
|
+
*/
|
|
314
|
+
readonly filters?: string;
|
|
297
315
|
}
|
|
298
316
|
/**
|
|
299
317
|
* Request parameters for patchCategory operation in CategoriesApi.
|
|
@@ -328,7 +346,7 @@ export interface CategoriesApiPatchCategoryRequest {
|
|
|
328
346
|
*/
|
|
329
347
|
export declare class CategoriesApi extends BaseAPI {
|
|
330
348
|
/**
|
|
331
|
-
* This will create a category.
|
|
349
|
+
* This will create a category. **Required Permissions** \"task-management.tasks.create\"
|
|
332
350
|
* @summary Create the category
|
|
333
351
|
* @param {CategoriesApiCreateCategoryRequest} requestParameters Request parameters.
|
|
334
352
|
* @param {*} [options] Override http request option.
|
|
@@ -337,7 +355,7 @@ export declare class CategoriesApi extends BaseAPI {
|
|
|
337
355
|
*/
|
|
338
356
|
createCategory(requestParameters: CategoriesApiCreateCategoryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCategoryResponseClass, any, {}>>;
|
|
339
357
|
/**
|
|
340
|
-
* This will delete a task category by code.
|
|
358
|
+
* This will delete a task category by code. **Required Permissions** \"task-management.tasks.delete\"
|
|
341
359
|
* @summary Delete the category
|
|
342
360
|
* @param {CategoriesApiDeleteCategoryRequest} requestParameters Request parameters.
|
|
343
361
|
* @param {*} [options] Override http request option.
|
|
@@ -346,7 +364,7 @@ export declare class CategoriesApi extends BaseAPI {
|
|
|
346
364
|
*/
|
|
347
365
|
deleteCategory(requestParameters: CategoriesApiDeleteCategoryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
348
366
|
/**
|
|
349
|
-
* Get category by code.
|
|
367
|
+
* Get category by code. **Required Permissions** \"task-management.tasks.view\"
|
|
350
368
|
* @summary Retrieve the category
|
|
351
369
|
* @param {CategoriesApiGetCategoryRequest} requestParameters Request parameters.
|
|
352
370
|
* @param {*} [options] Override http request option.
|
|
@@ -355,7 +373,7 @@ export declare class CategoriesApi extends BaseAPI {
|
|
|
355
373
|
*/
|
|
356
374
|
getCategory(requestParameters: CategoriesApiGetCategoryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCategoryResponseClass, any, {}>>;
|
|
357
375
|
/**
|
|
358
|
-
* Retrieves a list of categories.
|
|
376
|
+
* Retrieves a list of categories. **Required Permissions** \"task-management.tasks.view\"
|
|
359
377
|
* @summary List categories
|
|
360
378
|
* @param {CategoriesApiListCategoriesRequest} requestParameters Request parameters.
|
|
361
379
|
* @param {*} [options] Override http request option.
|
|
@@ -364,7 +382,7 @@ export declare class CategoriesApi extends BaseAPI {
|
|
|
364
382
|
*/
|
|
365
383
|
listCategories(requestParameters?: CategoriesApiListCategoriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListCategoriesResponseClass, any, {}>>;
|
|
366
384
|
/**
|
|
367
|
-
* This will partially update a category by code with the provided fields.
|
|
385
|
+
* This will partially update a category by code with the provided fields. **Required Permissions** \"task-management.tasks.update\"
|
|
368
386
|
* @summary Update the category
|
|
369
387
|
* @param {CategoriesApiPatchCategoryRequest} requestParameters Request parameters.
|
|
370
388
|
* @param {*} [options] Override http request option.
|