@emilgroup/task-sdk-node 1.0.1-beta.10 → 1.0.1-beta.11

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.
@@ -3,6 +3,7 @@
3
3
  .openapi-generator-ignore
4
4
  README.md
5
5
  api.ts
6
+ api/assignees-api.ts
6
7
  api/categories-api.ts
7
8
  api/default-api.ts
8
9
  api/hub-spot-api.ts
@@ -13,6 +14,7 @@ common.ts
13
14
  configuration.ts
14
15
  git_push.sh
15
16
  index.ts
17
+ models/assignee-class.ts
16
18
  models/category-class.ts
17
19
  models/create-category-request-dto.ts
18
20
  models/create-category-response-class.ts
@@ -31,6 +33,7 @@ models/hub-spot-ticket-name-value-dto.ts
31
33
  models/index.ts
32
34
  models/inline-response200.ts
33
35
  models/inline-response503.ts
36
+ models/list-assignees-response-class.ts
34
37
  models/list-categories-response-class.ts
35
38
  models/list-statuses-response-class.ts
36
39
  models/list-tasks-response-class.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/task-sdk-node@1.0.1-beta.10 --save
20
+ npm install @emilgroup/task-sdk-node@1.0.1-beta.11 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/task-sdk-node@1.0.1-beta.10
24
+ yarn add @emilgroup/task-sdk-node@1.0.1-beta.11
25
25
  ```
26
26
 
27
27
  And then you can import `TasksApi`.
@@ -0,0 +1,166 @@
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 { ListAssigneesResponseClass } from '../models';
25
+ // URLSearchParams not necessarily used
26
+ // @ts-ignore
27
+ import { URL, URLSearchParams } from 'url';
28
+ const FormData = require('form-data');
29
+ /**
30
+ * AssigneesApi - axios parameter creator
31
+ * @export
32
+ */
33
+ export const AssigneesApiAxiosParamCreator = function (configuration?: Configuration) {
34
+ return {
35
+ /**
36
+ * Retrieves a list of distinct assignees from tasks.
37
+ * @summary List assignees
38
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
39
+ * @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/>
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ listAssignees: async (authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
44
+ const localVarPath = `/taskservice/v1/assignees`;
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: 'GET', ...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 (expand !== undefined) {
63
+ localVarQueryParameter['expand'] = expand;
64
+ }
65
+
66
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
67
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
68
+ }
69
+
70
+
71
+
72
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
73
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
74
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
75
+
76
+ return {
77
+ url: toPathString(localVarUrlObj),
78
+ options: localVarRequestOptions,
79
+ };
80
+ },
81
+ }
82
+ };
83
+
84
+ /**
85
+ * AssigneesApi - functional programming interface
86
+ * @export
87
+ */
88
+ export const AssigneesApiFp = function(configuration?: Configuration) {
89
+ const localVarAxiosParamCreator = AssigneesApiAxiosParamCreator(configuration)
90
+ return {
91
+ /**
92
+ * Retrieves a list of distinct assignees from tasks.
93
+ * @summary List assignees
94
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
95
+ * @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.&lt;br/&gt; &lt;br/&gt;
96
+ * @param {*} [options] Override http request option.
97
+ * @throws {RequiredError}
98
+ */
99
+ async listAssignees(authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListAssigneesResponseClass>> {
100
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAssignees(authorization, expand, options);
101
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
102
+ },
103
+ }
104
+ };
105
+
106
+ /**
107
+ * AssigneesApi - factory interface
108
+ * @export
109
+ */
110
+ export const AssigneesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
111
+ const localVarFp = AssigneesApiFp(configuration)
112
+ return {
113
+ /**
114
+ * Retrieves a list of distinct assignees from tasks.
115
+ * @summary List assignees
116
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
117
+ * @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.&lt;br/&gt; &lt;br/&gt;
118
+ * @param {*} [options] Override http request option.
119
+ * @throws {RequiredError}
120
+ */
121
+ listAssignees(authorization?: string, expand?: string, options?: any): AxiosPromise<ListAssigneesResponseClass> {
122
+ return localVarFp.listAssignees(authorization, expand, options).then((request) => request(axios, basePath));
123
+ },
124
+ };
125
+ };
126
+
127
+ /**
128
+ * Request parameters for listAssignees operation in AssigneesApi.
129
+ * @export
130
+ * @interface AssigneesApiListAssigneesRequest
131
+ */
132
+ export interface AssigneesApiListAssigneesRequest {
133
+ /**
134
+ * Bearer Token: provided by the login endpoint under the name accessToken.
135
+ * @type {string}
136
+ * @memberof AssigneesApiListAssignees
137
+ */
138
+ readonly authorization?: string
139
+
140
+ /**
141
+ * 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.&lt;br/&gt; &lt;br/&gt;
142
+ * @type {string}
143
+ * @memberof AssigneesApiListAssignees
144
+ */
145
+ readonly expand?: string
146
+ }
147
+
148
+ /**
149
+ * AssigneesApi - object-oriented interface
150
+ * @export
151
+ * @class AssigneesApi
152
+ * @extends {BaseAPI}
153
+ */
154
+ export class AssigneesApi extends BaseAPI {
155
+ /**
156
+ * Retrieves a list of distinct assignees from tasks.
157
+ * @summary List assignees
158
+ * @param {AssigneesApiListAssigneesRequest} requestParameters Request parameters.
159
+ * @param {*} [options] Override http request option.
160
+ * @throws {RequiredError}
161
+ * @memberof AssigneesApi
162
+ */
163
+ public listAssignees(requestParameters: AssigneesApiListAssigneesRequest = {}, options?: AxiosRequestConfig) {
164
+ return AssigneesApiFp(this.configuration).listAssignees(requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
165
+ }
166
+ }
package/api.ts CHANGED
@@ -24,6 +24,7 @@ import FormData from 'form-data'
24
24
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
25
25
  // @ts-ignore
26
26
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
27
+ import { AssigneesApi } from './api';
27
28
  import { CategoriesApi } from './api';
28
29
  import { DefaultApi } from './api';
29
30
  import { HubSpotApi } from './api';
@@ -31,6 +32,7 @@ import { StatusesApi } from './api';
31
32
  import { TasksApi } from './api';
32
33
 
33
34
 
35
+ export * from './api/assignees-api';
34
36
  export * from './api/categories-api';
35
37
  export * from './api/default-api';
36
38
  export * from './api/hub-spot-api';
@@ -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.
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.&lt;br/&gt; &lt;br/&gt;
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.
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.&lt;br/&gt; &lt;br/&gt;
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.
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.&lt;br/&gt; &lt;br/&gt;
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.&lt;br/&gt; &lt;br/&gt;
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.
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,228 @@
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
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * AssigneesApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var AssigneesApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * Retrieves a list of distinct assignees from tasks.
101
+ * @summary List assignees
102
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
103
+ * @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.&lt;br/&gt; &lt;br/&gt;
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ listAssignees: function (authorization, expand, options) {
108
+ if (options === void 0) { options = {}; }
109
+ return __awaiter(_this, void 0, void 0, function () {
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ return __generator(this, function (_a) {
112
+ switch (_a.label) {
113
+ case 0:
114
+ localVarPath = "/taskservice/v1/assignees";
115
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
116
+ if (configuration) {
117
+ baseOptions = configuration.baseOptions;
118
+ baseAccessToken = configuration.accessToken;
119
+ }
120
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
121
+ localVarHeaderParameter = {};
122
+ localVarQueryParameter = {};
123
+ // authentication bearer required
124
+ // http bearer authentication required
125
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
126
+ case 1:
127
+ // authentication bearer required
128
+ // http bearer authentication required
129
+ _a.sent();
130
+ if (expand !== undefined) {
131
+ localVarQueryParameter['expand'] = expand;
132
+ }
133
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
134
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
135
+ }
136
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
+ return [2 /*return*/, {
140
+ url: (0, common_1.toPathString)(localVarUrlObj),
141
+ options: localVarRequestOptions,
142
+ }];
143
+ }
144
+ });
145
+ });
146
+ },
147
+ };
148
+ };
149
+ exports.AssigneesApiAxiosParamCreator = AssigneesApiAxiosParamCreator;
150
+ /**
151
+ * AssigneesApi - functional programming interface
152
+ * @export
153
+ */
154
+ var AssigneesApiFp = function (configuration) {
155
+ var localVarAxiosParamCreator = (0, exports.AssigneesApiAxiosParamCreator)(configuration);
156
+ return {
157
+ /**
158
+ * Retrieves a list of distinct assignees from tasks.
159
+ * @summary List assignees
160
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
161
+ * @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.&lt;br/&gt; &lt;br/&gt;
162
+ * @param {*} [options] Override http request option.
163
+ * @throws {RequiredError}
164
+ */
165
+ listAssignees: function (authorization, expand, options) {
166
+ return __awaiter(this, void 0, void 0, function () {
167
+ var localVarAxiosArgs;
168
+ return __generator(this, function (_a) {
169
+ switch (_a.label) {
170
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listAssignees(authorization, expand, options)];
171
+ case 1:
172
+ localVarAxiosArgs = _a.sent();
173
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
174
+ }
175
+ });
176
+ });
177
+ },
178
+ };
179
+ };
180
+ exports.AssigneesApiFp = AssigneesApiFp;
181
+ /**
182
+ * AssigneesApi - factory interface
183
+ * @export
184
+ */
185
+ var AssigneesApiFactory = function (configuration, basePath, axios) {
186
+ var localVarFp = (0, exports.AssigneesApiFp)(configuration);
187
+ return {
188
+ /**
189
+ * Retrieves a list of distinct assignees from tasks.
190
+ * @summary List assignees
191
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
192
+ * @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.&lt;br/&gt; &lt;br/&gt;
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ listAssignees: function (authorization, expand, options) {
197
+ return localVarFp.listAssignees(authorization, expand, options).then(function (request) { return request(axios, basePath); });
198
+ },
199
+ };
200
+ };
201
+ exports.AssigneesApiFactory = AssigneesApiFactory;
202
+ /**
203
+ * AssigneesApi - object-oriented interface
204
+ * @export
205
+ * @class AssigneesApi
206
+ * @extends {BaseAPI}
207
+ */
208
+ var AssigneesApi = /** @class */ (function (_super) {
209
+ __extends(AssigneesApi, _super);
210
+ function AssigneesApi() {
211
+ return _super !== null && _super.apply(this, arguments) || this;
212
+ }
213
+ /**
214
+ * Retrieves a list of distinct assignees from tasks.
215
+ * @summary List assignees
216
+ * @param {AssigneesApiListAssigneesRequest} requestParameters Request parameters.
217
+ * @param {*} [options] Override http request option.
218
+ * @throws {RequiredError}
219
+ * @memberof AssigneesApi
220
+ */
221
+ AssigneesApi.prototype.listAssignees = function (requestParameters, options) {
222
+ var _this = this;
223
+ if (requestParameters === void 0) { requestParameters = {}; }
224
+ return (0, exports.AssigneesApiFp)(this.configuration).listAssignees(requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
225
+ };
226
+ return AssigneesApi;
227
+ }(base_1.BaseAPI));
228
+ exports.AssigneesApi = AssigneesApi;
package/dist/api.d.ts CHANGED
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ export * from './api/assignees-api';
12
13
  export * from './api/categories-api';
13
14
  export * from './api/default-api';
14
15
  export * from './api/hub-spot-api';
package/dist/api.js CHANGED
@@ -27,6 +27,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
27
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
+ __exportStar(require("./api/assignees-api"), exports);
30
31
  __exportStar(require("./api/categories-api"), exports);
31
32
  __exportStar(require("./api/default-api"), exports);
32
33
  __exportStar(require("./api/hub-spot-api"), exports);
@@ -0,0 +1,24 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface AssigneeClass
16
+ */
17
+ export interface AssigneeClass {
18
+ /**
19
+ * Assignee code/identifier
20
+ * @type {string}
21
+ * @memberof AssigneeClass
22
+ */
23
+ 'code': string;
24
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,4 @@
1
+ export * from './assignee-class';
1
2
  export * from './category-class';
2
3
  export * from './create-category-request-dto';
3
4
  export * from './create-category-response-class';
@@ -15,6 +16,7 @@ export * from './hub-spot-ticket-error-class';
15
16
  export * from './hub-spot-ticket-name-value-dto';
16
17
  export * from './inline-response200';
17
18
  export * from './inline-response503';
19
+ export * from './list-assignees-response-class';
18
20
  export * from './list-categories-response-class';
19
21
  export * from './list-statuses-response-class';
20
22
  export * from './list-tasks-response-class';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./assignee-class"), exports);
17
18
  __exportStar(require("./category-class"), exports);
18
19
  __exportStar(require("./create-category-request-dto"), exports);
19
20
  __exportStar(require("./create-category-response-class"), exports);
@@ -31,6 +32,7 @@ __exportStar(require("./hub-spot-ticket-error-class"), exports);
31
32
  __exportStar(require("./hub-spot-ticket-name-value-dto"), exports);
32
33
  __exportStar(require("./inline-response200"), exports);
33
34
  __exportStar(require("./inline-response503"), exports);
35
+ __exportStar(require("./list-assignees-response-class"), exports);
34
36
  __exportStar(require("./list-categories-response-class"), exports);
35
37
  __exportStar(require("./list-statuses-response-class"), exports);
36
38
  __exportStar(require("./list-tasks-response-class"), exports);
@@ -0,0 +1,43 @@
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 { AssigneeClass } from './assignee-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListAssigneesResponseClass
17
+ */
18
+ export interface ListAssigneesResponseClass {
19
+ /**
20
+ * List of assignees
21
+ * @type {Array<AssigneeClass>}
22
+ * @memberof ListAssigneesResponseClass
23
+ */
24
+ 'items': Array<AssigneeClass>;
25
+ /**
26
+ * Token for next page
27
+ * @type {string}
28
+ * @memberof ListAssigneesResponseClass
29
+ */
30
+ 'nextPageToken': string;
31
+ /**
32
+ * Number of items per page
33
+ * @type {number}
34
+ * @memberof ListAssigneesResponseClass
35
+ */
36
+ 'itemsPerPage': number;
37
+ /**
38
+ * Total number of items
39
+ * @type {number}
40
+ * @memberof ListAssigneesResponseClass
41
+ */
42
+ 'totalItems': number;
43
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,30 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface AssigneeClass
21
+ */
22
+ export interface AssigneeClass {
23
+ /**
24
+ * Assignee code/identifier
25
+ * @type {string}
26
+ * @memberof AssigneeClass
27
+ */
28
+ 'code': string;
29
+ }
30
+
package/models/index.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './assignee-class';
1
2
  export * from './category-class';
2
3
  export * from './create-category-request-dto';
3
4
  export * from './create-category-response-class';
@@ -15,6 +16,7 @@ export * from './hub-spot-ticket-error-class';
15
16
  export * from './hub-spot-ticket-name-value-dto';
16
17
  export * from './inline-response200';
17
18
  export * from './inline-response503';
19
+ export * from './list-assignees-response-class';
18
20
  export * from './list-categories-response-class';
19
21
  export * from './list-statuses-response-class';
20
22
  export * from './list-tasks-response-class';
@@ -0,0 +1,49 @@
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 { AssigneeClass } from './assignee-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface ListAssigneesResponseClass
22
+ */
23
+ export interface ListAssigneesResponseClass {
24
+ /**
25
+ * List of assignees
26
+ * @type {Array<AssigneeClass>}
27
+ * @memberof ListAssigneesResponseClass
28
+ */
29
+ 'items': Array<AssigneeClass>;
30
+ /**
31
+ * Token for next page
32
+ * @type {string}
33
+ * @memberof ListAssigneesResponseClass
34
+ */
35
+ 'nextPageToken': string;
36
+ /**
37
+ * Number of items per page
38
+ * @type {number}
39
+ * @memberof ListAssigneesResponseClass
40
+ */
41
+ 'itemsPerPage': number;
42
+ /**
43
+ * Total number of items
44
+ * @type {number}
45
+ * @memberof ListAssigneesResponseClass
46
+ */
47
+ 'totalItems': number;
48
+ }
49
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/task-sdk-node",
3
- "version": "1.0.1-beta.10",
3
+ "version": "1.0.1-beta.11",
4
4
  "description": "OpenAPI client for @emilgroup/task-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [