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