@emilgroup/task-sdk-node 1.0.1-beta.3 → 1.0.1-beta.35

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.
Files changed (61) hide show
  1. package/.openapi-generator/FILES +9 -6
  2. package/README.md +2 -2
  3. package/api/assignees-api.ts +166 -0
  4. package/api/categories-api.ts +111 -85
  5. package/api/default-api.ts +1 -1
  6. package/api/hub-spot-api.ts +4 -4
  7. package/api/statuses-api.ts +71 -73
  8. package/api/tasks-api.ts +119 -93
  9. package/api.ts +2 -0
  10. package/dist/api/assignees-api.d.ts +96 -0
  11. package/dist/api/assignees-api.js +228 -0
  12. package/dist/api/categories-api.d.ts +83 -65
  13. package/dist/api/categories-api.js +75 -65
  14. package/dist/api/default-api.js +1 -1
  15. package/dist/api/hub-spot-api.d.ts +4 -4
  16. package/dist/api/hub-spot-api.js +4 -4
  17. package/dist/api/statuses-api.d.ts +60 -60
  18. package/dist/api/statuses-api.js +54 -56
  19. package/dist/api/tasks-api.d.ts +91 -73
  20. package/dist/api/tasks-api.js +81 -71
  21. package/dist/api.d.ts +1 -0
  22. package/dist/api.js +1 -0
  23. package/dist/models/assignee-class.d.ts +24 -0
  24. package/dist/models/create-status-request-dto.d.ts +6 -0
  25. package/dist/models/create-task-request-dto.d.ts +23 -4
  26. package/dist/models/create-task-request-dto.js +7 -1
  27. package/dist/models/index.d.ts +8 -6
  28. package/dist/models/index.js +8 -6
  29. package/dist/models/list-assignees-response-class.d.ts +43 -0
  30. package/dist/models/{update-category-request-dto.d.ts → patch-category-request-dto.d.ts} +7 -7
  31. package/dist/models/{update-category-response-class.d.ts → patch-category-response-class.d.ts} +3 -3
  32. package/dist/models/{update-status-request-dto.d.ts → patch-status-request-dto.d.ts} +13 -7
  33. package/dist/models/{update-status-response-class.d.ts → patch-status-response-class.d.ts} +3 -3
  34. package/dist/models/patch-task-request-dto.d.ts +139 -0
  35. package/dist/models/patch-task-request-dto.js +22 -0
  36. package/dist/models/{update-task-response-class.d.ts → patch-task-response-class.d.ts} +3 -3
  37. package/dist/models/patch-task-response-class.js +15 -0
  38. package/dist/models/status-class.d.ts +6 -0
  39. package/dist/models/task-class.d.ts +34 -4
  40. package/models/assignee-class.ts +30 -0
  41. package/models/create-status-request-dto.ts +6 -0
  42. package/models/create-task-request-dto.ts +24 -4
  43. package/models/index.ts +8 -6
  44. package/models/list-assignees-response-class.ts +49 -0
  45. package/models/{update-category-request-dto.ts → patch-category-request-dto.ts} +7 -7
  46. package/models/{update-category-response-class.ts → patch-category-response-class.ts} +3 -3
  47. package/models/{update-status-request-dto.ts → patch-status-request-dto.ts} +13 -7
  48. package/models/{update-status-response-class.ts → patch-status-response-class.ts} +3 -3
  49. package/models/patch-task-request-dto.ts +148 -0
  50. package/models/{update-task-response-class.ts → patch-task-response-class.ts} +3 -3
  51. package/models/status-class.ts +6 -0
  52. package/models/task-class.ts +34 -4
  53. package/package.json +2 -2
  54. package/dist/models/update-task-request-dto.d.ts +0 -72
  55. package/models/update-task-request-dto.ts +0 -78
  56. /package/dist/models/{update-category-request-dto.js → assignee-class.js} +0 -0
  57. /package/dist/models/{update-category-response-class.js → list-assignees-response-class.js} +0 -0
  58. /package/dist/models/{update-status-request-dto.js → patch-category-request-dto.js} +0 -0
  59. /package/dist/models/{update-status-response-class.js → patch-category-response-class.js} +0 -0
  60. /package/dist/models/{update-task-request-dto.js → patch-status-request-dto.js} +0 -0
  61. /package/dist/models/{update-task-response-class.js → patch-status-response-class.js} +0 -0
@@ -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,16 +33,17 @@ 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
40
+ models/patch-category-request-dto.ts
41
+ models/patch-category-response-class.ts
42
+ models/patch-status-request-dto.ts
43
+ models/patch-status-response-class.ts
44
+ models/patch-task-request-dto.ts
45
+ models/patch-task-response-class.ts
37
46
  models/status-class.ts
38
47
  models/task-class.ts
39
- models/update-category-request-dto.ts
40
- models/update-category-response-class.ts
41
- models/update-status-request-dto.ts
42
- models/update-status-response-class.ts
43
- models/update-task-request-dto.ts
44
- models/update-task-response-class.ts
45
48
  package.json
46
49
  tsconfig.json
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.3 --save
20
+ npm install @emilgroup/task-sdk-node@1.0.1-beta.35 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/task-sdk-node@1.0.1-beta.3
24
+ yarn add @emilgroup/task-sdk-node@1.0.1-beta.35
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. **Required Permissions** \"task-management.tasks.view\"
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. **Required Permissions** \"task-management.tasks.view\"
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. **Required Permissions** \"task-management.tasks.view\"
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. **Required Permissions** \"task-management.tasks.view\"
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
+ }