@emilgroup/task-sdk-node 1.2.1-beta.0 → 1.2.1-beta.10

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 (45) hide show
  1. package/.openapi-generator/FILES +12 -1
  2. package/README.md +2 -2
  3. package/api/{default-api.ts → health-api.ts} +13 -13
  4. package/api/reminders-api.ts +891 -0
  5. package/api/task-client-api.ts +2144 -0
  6. package/api.ts +6 -2
  7. package/dist/api/{default-api.d.ts → health-api.d.ts} +10 -10
  8. package/dist/api/{default-api.js → health-api.js} +22 -22
  9. package/dist/api/reminders-api.d.ts +496 -0
  10. package/dist/api/reminders-api.js +827 -0
  11. package/dist/api/task-client-api.d.ts +1194 -0
  12. package/dist/api/task-client-api.js +1842 -0
  13. package/dist/api.d.ts +3 -1
  14. package/dist/api.js +3 -1
  15. package/dist/models/create-reminder-request-dto.d.ts +61 -0
  16. package/dist/models/create-reminder-request-dto.js +22 -0
  17. package/dist/models/create-reminder-response-class.d.ts +25 -0
  18. package/dist/models/create-reminder-response-class.js +15 -0
  19. package/dist/models/get-reminder-counts-response-class.d.ts +42 -0
  20. package/dist/models/get-reminder-counts-response-class.js +15 -0
  21. package/dist/models/get-reminder-response-class.d.ts +25 -0
  22. package/dist/models/get-reminder-response-class.js +15 -0
  23. package/dist/models/index.d.ts +9 -0
  24. package/dist/models/index.js +9 -0
  25. package/dist/models/list-reminders-response-class.d.ts +43 -0
  26. package/dist/models/list-reminders-response-class.js +15 -0
  27. package/dist/models/mark-reminder-done-response-class.d.ts +25 -0
  28. package/dist/models/mark-reminder-done-response-class.js +15 -0
  29. package/dist/models/patch-reminder-request-dto.d.ts +67 -0
  30. package/dist/models/patch-reminder-request-dto.js +22 -0
  31. package/dist/models/patch-reminder-response-class.d.ts +25 -0
  32. package/dist/models/patch-reminder-response-class.js +15 -0
  33. package/dist/models/reminder-class.d.ts +120 -0
  34. package/dist/models/reminder-class.js +15 -0
  35. package/models/create-reminder-request-dto.ts +70 -0
  36. package/models/create-reminder-response-class.ts +31 -0
  37. package/models/get-reminder-counts-response-class.ts +48 -0
  38. package/models/get-reminder-response-class.ts +31 -0
  39. package/models/index.ts +9 -0
  40. package/models/list-reminders-response-class.ts +49 -0
  41. package/models/mark-reminder-done-response-class.ts +31 -0
  42. package/models/patch-reminder-request-dto.ts +76 -0
  43. package/models/patch-reminder-response-class.ts +31 -0
  44. package/models/reminder-class.ts +126 -0
  45. package/package.json +2 -2
@@ -0,0 +1,891 @@
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 { CreateReminderRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateReminderResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { GetReminderCountsResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { GetReminderResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { ListRemindersResponseClass } from '../models';
33
+ // @ts-ignore
34
+ import { MarkReminderDoneResponseClass } from '../models';
35
+ // @ts-ignore
36
+ import { PatchReminderRequestDto } from '../models';
37
+ // @ts-ignore
38
+ import { PatchReminderResponseClass } from '../models';
39
+ // URLSearchParams not necessarily used
40
+ // @ts-ignore
41
+ import { URL, URLSearchParams } from 'url';
42
+ const FormData = require('form-data');
43
+ /**
44
+ * RemindersApi - axios parameter creator
45
+ * @export
46
+ */
47
+ export const RemindersApiAxiosParamCreator = function (configuration?: Configuration) {
48
+ return {
49
+ /**
50
+ * This will create a reminder. **Required Permissions** \"task-management.reminders.create\"
51
+ * @summary Create the reminder
52
+ * @param {CreateReminderRequestDto} createReminderRequestDto
53
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
54
+ * @param {*} [options] Override http request option.
55
+ * @throws {RequiredError}
56
+ */
57
+ createReminder: async (createReminderRequestDto: CreateReminderRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
58
+ // verify required parameter 'createReminderRequestDto' is not null or undefined
59
+ assertParamExists('createReminder', 'createReminderRequestDto', createReminderRequestDto)
60
+ const localVarPath = `/taskservice/v1/reminders`;
61
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
62
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
63
+ let baseOptions;
64
+ let baseAccessToken;
65
+ if (configuration) {
66
+ baseOptions = configuration.baseOptions;
67
+ baseAccessToken = configuration.accessToken;
68
+ }
69
+
70
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
71
+ const localVarHeaderParameter = {} as any;
72
+ const localVarQueryParameter = {} as any;
73
+
74
+ // authentication bearer required
75
+ // http bearer authentication required
76
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
77
+
78
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
79
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
80
+ }
81
+
82
+
83
+
84
+ localVarHeaderParameter['Content-Type'] = 'application/json';
85
+
86
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
87
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
88
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
89
+ localVarRequestOptions.data = serializeDataIfNeeded(createReminderRequestDto, localVarRequestOptions, configuration)
90
+
91
+ return {
92
+ url: toPathString(localVarUrlObj),
93
+ options: localVarRequestOptions,
94
+ };
95
+ },
96
+ /**
97
+ * This will delete a reminder. **Required Permissions** \"task-management.reminders.delete\"
98
+ * @summary Delete the reminder
99
+ * @param {string} code Unique identifier for the object.
100
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ */
104
+ deleteReminder: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
105
+ // verify required parameter 'code' is not null or undefined
106
+ assertParamExists('deleteReminder', 'code', code)
107
+ const localVarPath = `/taskservice/v1/reminders/{code}`
108
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
109
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
110
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
111
+ let baseOptions;
112
+ let baseAccessToken;
113
+ if (configuration) {
114
+ baseOptions = configuration.baseOptions;
115
+ baseAccessToken = configuration.accessToken;
116
+ }
117
+
118
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
119
+ const localVarHeaderParameter = {} as any;
120
+ const localVarQueryParameter = {} as any;
121
+
122
+ // authentication bearer required
123
+ // http bearer authentication required
124
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
125
+
126
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
127
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
128
+ }
129
+
130
+
131
+
132
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
133
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
135
+
136
+ return {
137
+ url: toPathString(localVarUrlObj),
138
+ options: localVarRequestOptions,
139
+ };
140
+ },
141
+ /**
142
+ * This will get a reminder by code. **Required Permissions** \"task-management.reminders.view\"
143
+ * @summary Retrieve the reminder
144
+ * @param {string} code Unique identifier for the object.
145
+ * @param {string} expand
146
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
147
+ * @param {*} [options] Override http request option.
148
+ * @throws {RequiredError}
149
+ */
150
+ getReminder: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
151
+ // verify required parameter 'code' is not null or undefined
152
+ assertParamExists('getReminder', 'code', code)
153
+ // verify required parameter 'expand' is not null or undefined
154
+ assertParamExists('getReminder', 'expand', expand)
155
+ const localVarPath = `/taskservice/v1/reminders/{code}`
156
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
157
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
158
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
159
+ let baseOptions;
160
+ let baseAccessToken;
161
+ if (configuration) {
162
+ baseOptions = configuration.baseOptions;
163
+ baseAccessToken = configuration.accessToken;
164
+ }
165
+
166
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
167
+ const localVarHeaderParameter = {} as any;
168
+ const localVarQueryParameter = {} as any;
169
+
170
+ // authentication bearer required
171
+ // http bearer authentication required
172
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
173
+
174
+ if (expand !== undefined) {
175
+ localVarQueryParameter['expand'] = expand;
176
+ }
177
+
178
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
180
+ }
181
+
182
+
183
+
184
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
185
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
186
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
187
+
188
+ return {
189
+ url: toPathString(localVarUrlObj),
190
+ options: localVarRequestOptions,
191
+ };
192
+ },
193
+ /**
194
+ * This will get reminder counts by status. Accepts the same advanced `filters` query parameter as the list reminders endpoint. **Required Permissions** \"task-management.reminders.view\"
195
+ * @summary Retrieve the reminder counts
196
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
197
+ * @param {string} [filters] Filters the response by one or multiple fields using the advanced filter syntax (same as the list reminders endpoint). Counts are computed over the filtered set.
198
+ * @param {*} [options] Override http request option.
199
+ * @throws {RequiredError}
200
+ */
201
+ getReminderCounts: async (authorization?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
202
+ const localVarPath = `/taskservice/v1/reminders/counts`;
203
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
204
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
205
+ let baseOptions;
206
+ let baseAccessToken;
207
+ if (configuration) {
208
+ baseOptions = configuration.baseOptions;
209
+ baseAccessToken = configuration.accessToken;
210
+ }
211
+
212
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
213
+ const localVarHeaderParameter = {} as any;
214
+ const localVarQueryParameter = {} as any;
215
+
216
+ // authentication bearer required
217
+ // http bearer authentication required
218
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
219
+
220
+ if (filters !== undefined) {
221
+ localVarQueryParameter['filters'] = filters;
222
+ }
223
+
224
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
225
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
226
+ }
227
+
228
+
229
+
230
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
231
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
232
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
233
+
234
+ return {
235
+ url: toPathString(localVarUrlObj),
236
+ options: localVarRequestOptions,
237
+ };
238
+ },
239
+ /**
240
+ * Retrieves a list of reminders. **Required Permissions** \"task-management.reminders.view\"
241
+ * @summary List reminders
242
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
243
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
244
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
245
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, isDone, status, userSub, entityNumber, dueAt, createdAt&lt;/i&gt;
246
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, title, description, entityCode, entityNumber, userSub, userName&lt;/i&gt;
247
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, dueAt, isDone, status&lt;/i&gt;
248
+ * @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;
249
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, isDone, status, userSub, entityNumber, dueAt, createdAt&lt;/i&gt;
250
+ * @param {*} [options] Override http request option.
251
+ * @throws {RequiredError}
252
+ */
253
+ listReminders: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
254
+ const localVarPath = `/taskservice/v1/reminders`;
255
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
256
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
257
+ let baseOptions;
258
+ let baseAccessToken;
259
+ if (configuration) {
260
+ baseOptions = configuration.baseOptions;
261
+ baseAccessToken = configuration.accessToken;
262
+ }
263
+
264
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
265
+ const localVarHeaderParameter = {} as any;
266
+ const localVarQueryParameter = {} as any;
267
+
268
+ // authentication bearer required
269
+ // http bearer authentication required
270
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
271
+
272
+ if (pageSize !== undefined) {
273
+ localVarQueryParameter['pageSize'] = pageSize;
274
+ }
275
+
276
+ if (pageToken !== undefined) {
277
+ localVarQueryParameter['pageToken'] = pageToken;
278
+ }
279
+
280
+ if (filter !== undefined) {
281
+ localVarQueryParameter['filter'] = filter;
282
+ }
283
+
284
+ if (search !== undefined) {
285
+ localVarQueryParameter['search'] = search;
286
+ }
287
+
288
+ if (order !== undefined) {
289
+ localVarQueryParameter['order'] = order;
290
+ }
291
+
292
+ if (expand !== undefined) {
293
+ localVarQueryParameter['expand'] = expand;
294
+ }
295
+
296
+ if (filters !== undefined) {
297
+ localVarQueryParameter['filters'] = filters;
298
+ }
299
+
300
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
301
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
302
+ }
303
+
304
+
305
+
306
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
307
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
308
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
309
+
310
+ return {
311
+ url: toPathString(localVarUrlObj),
312
+ options: localVarRequestOptions,
313
+ };
314
+ },
315
+ /**
316
+ * This will mark a reminder as done. **Required Permissions** \"task-management.reminders.update\"
317
+ * @summary Create the reminder done
318
+ * @param {string} code
319
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
320
+ * @param {*} [options] Override http request option.
321
+ * @throws {RequiredError}
322
+ */
323
+ markReminderDone: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
324
+ // verify required parameter 'code' is not null or undefined
325
+ assertParamExists('markReminderDone', 'code', code)
326
+ const localVarPath = `/taskservice/v1/reminders/{code}/done`
327
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
328
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
329
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
330
+ let baseOptions;
331
+ let baseAccessToken;
332
+ if (configuration) {
333
+ baseOptions = configuration.baseOptions;
334
+ baseAccessToken = configuration.accessToken;
335
+ }
336
+
337
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
338
+ const localVarHeaderParameter = {} as any;
339
+ const localVarQueryParameter = {} as any;
340
+
341
+ // authentication bearer required
342
+ // http bearer authentication required
343
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
344
+
345
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
346
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
347
+ }
348
+
349
+
350
+
351
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
352
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
353
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
354
+
355
+ return {
356
+ url: toPathString(localVarUrlObj),
357
+ options: localVarRequestOptions,
358
+ };
359
+ },
360
+ /**
361
+ * This will patch a reminder. **Required Permissions** \"task-management.reminders.update\"
362
+ * @summary Update the reminder
363
+ * @param {PatchReminderRequestDto} patchReminderRequestDto
364
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
365
+ * @param {*} [options] Override http request option.
366
+ * @throws {RequiredError}
367
+ */
368
+ patchReminder: async (patchReminderRequestDto: PatchReminderRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
369
+ // verify required parameter 'patchReminderRequestDto' is not null or undefined
370
+ assertParamExists('patchReminder', 'patchReminderRequestDto', patchReminderRequestDto)
371
+ const localVarPath = `/taskservice/v1/reminders`;
372
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
373
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
374
+ let baseOptions;
375
+ let baseAccessToken;
376
+ if (configuration) {
377
+ baseOptions = configuration.baseOptions;
378
+ baseAccessToken = configuration.accessToken;
379
+ }
380
+
381
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
382
+ const localVarHeaderParameter = {} as any;
383
+ const localVarQueryParameter = {} as any;
384
+
385
+ // authentication bearer required
386
+ // http bearer authentication required
387
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
388
+
389
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
390
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
391
+ }
392
+
393
+
394
+
395
+ localVarHeaderParameter['Content-Type'] = 'application/json';
396
+
397
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
398
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
399
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
400
+ localVarRequestOptions.data = serializeDataIfNeeded(patchReminderRequestDto, localVarRequestOptions, configuration)
401
+
402
+ return {
403
+ url: toPathString(localVarUrlObj),
404
+ options: localVarRequestOptions,
405
+ };
406
+ },
407
+ }
408
+ };
409
+
410
+ /**
411
+ * RemindersApi - functional programming interface
412
+ * @export
413
+ */
414
+ export const RemindersApiFp = function(configuration?: Configuration) {
415
+ const localVarAxiosParamCreator = RemindersApiAxiosParamCreator(configuration)
416
+ return {
417
+ /**
418
+ * This will create a reminder. **Required Permissions** \"task-management.reminders.create\"
419
+ * @summary Create the reminder
420
+ * @param {CreateReminderRequestDto} createReminderRequestDto
421
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
422
+ * @param {*} [options] Override http request option.
423
+ * @throws {RequiredError}
424
+ */
425
+ async createReminder(createReminderRequestDto: CreateReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateReminderResponseClass>> {
426
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createReminder(createReminderRequestDto, authorization, options);
427
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
428
+ },
429
+ /**
430
+ * This will delete a reminder. **Required Permissions** \"task-management.reminders.delete\"
431
+ * @summary Delete the reminder
432
+ * @param {string} code Unique identifier for the object.
433
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
434
+ * @param {*} [options] Override http request option.
435
+ * @throws {RequiredError}
436
+ */
437
+ async deleteReminder(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
438
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteReminder(code, authorization, options);
439
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
440
+ },
441
+ /**
442
+ * This will get a reminder by code. **Required Permissions** \"task-management.reminders.view\"
443
+ * @summary Retrieve the reminder
444
+ * @param {string} code Unique identifier for the object.
445
+ * @param {string} expand
446
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
447
+ * @param {*} [options] Override http request option.
448
+ * @throws {RequiredError}
449
+ */
450
+ async getReminder(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetReminderResponseClass>> {
451
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getReminder(code, expand, authorization, options);
452
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
453
+ },
454
+ /**
455
+ * This will get reminder counts by status. Accepts the same advanced `filters` query parameter as the list reminders endpoint. **Required Permissions** \"task-management.reminders.view\"
456
+ * @summary Retrieve the reminder counts
457
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
458
+ * @param {string} [filters] Filters the response by one or multiple fields using the advanced filter syntax (same as the list reminders endpoint). Counts are computed over the filtered set.
459
+ * @param {*} [options] Override http request option.
460
+ * @throws {RequiredError}
461
+ */
462
+ async getReminderCounts(authorization?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetReminderCountsResponseClass>> {
463
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getReminderCounts(authorization, filters, options);
464
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
465
+ },
466
+ /**
467
+ * Retrieves a list of reminders. **Required Permissions** \"task-management.reminders.view\"
468
+ * @summary List reminders
469
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
470
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
471
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
472
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, isDone, status, userSub, entityNumber, dueAt, createdAt&lt;/i&gt;
473
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, title, description, entityCode, entityNumber, userSub, userName&lt;/i&gt;
474
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, dueAt, isDone, status&lt;/i&gt;
475
+ * @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;
476
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, isDone, status, userSub, entityNumber, dueAt, createdAt&lt;/i&gt;
477
+ * @param {*} [options] Override http request option.
478
+ * @throws {RequiredError}
479
+ */
480
+ async listReminders(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListRemindersResponseClass>> {
481
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
482
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
483
+ },
484
+ /**
485
+ * This will mark a reminder as done. **Required Permissions** \"task-management.reminders.update\"
486
+ * @summary Create the reminder done
487
+ * @param {string} code
488
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
489
+ * @param {*} [options] Override http request option.
490
+ * @throws {RequiredError}
491
+ */
492
+ async markReminderDone(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MarkReminderDoneResponseClass>> {
493
+ const localVarAxiosArgs = await localVarAxiosParamCreator.markReminderDone(code, authorization, options);
494
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
495
+ },
496
+ /**
497
+ * This will patch a reminder. **Required Permissions** \"task-management.reminders.update\"
498
+ * @summary Update the reminder
499
+ * @param {PatchReminderRequestDto} patchReminderRequestDto
500
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
501
+ * @param {*} [options] Override http request option.
502
+ * @throws {RequiredError}
503
+ */
504
+ async patchReminder(patchReminderRequestDto: PatchReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchReminderResponseClass>> {
505
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchReminder(patchReminderRequestDto, authorization, options);
506
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
507
+ },
508
+ }
509
+ };
510
+
511
+ /**
512
+ * RemindersApi - factory interface
513
+ * @export
514
+ */
515
+ export const RemindersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
516
+ const localVarFp = RemindersApiFp(configuration)
517
+ return {
518
+ /**
519
+ * This will create a reminder. **Required Permissions** \"task-management.reminders.create\"
520
+ * @summary Create the reminder
521
+ * @param {CreateReminderRequestDto} createReminderRequestDto
522
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
523
+ * @param {*} [options] Override http request option.
524
+ * @throws {RequiredError}
525
+ */
526
+ createReminder(createReminderRequestDto: CreateReminderRequestDto, authorization?: string, options?: any): AxiosPromise<CreateReminderResponseClass> {
527
+ return localVarFp.createReminder(createReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
528
+ },
529
+ /**
530
+ * This will delete a reminder. **Required Permissions** \"task-management.reminders.delete\"
531
+ * @summary Delete the reminder
532
+ * @param {string} code Unique identifier for the object.
533
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
534
+ * @param {*} [options] Override http request option.
535
+ * @throws {RequiredError}
536
+ */
537
+ deleteReminder(code: string, authorization?: string, options?: any): AxiosPromise<void> {
538
+ return localVarFp.deleteReminder(code, authorization, options).then((request) => request(axios, basePath));
539
+ },
540
+ /**
541
+ * This will get a reminder by code. **Required Permissions** \"task-management.reminders.view\"
542
+ * @summary Retrieve the reminder
543
+ * @param {string} code Unique identifier for the object.
544
+ * @param {string} expand
545
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
546
+ * @param {*} [options] Override http request option.
547
+ * @throws {RequiredError}
548
+ */
549
+ getReminder(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetReminderResponseClass> {
550
+ return localVarFp.getReminder(code, expand, authorization, options).then((request) => request(axios, basePath));
551
+ },
552
+ /**
553
+ * This will get reminder counts by status. Accepts the same advanced `filters` query parameter as the list reminders endpoint. **Required Permissions** \"task-management.reminders.view\"
554
+ * @summary Retrieve the reminder counts
555
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
556
+ * @param {string} [filters] Filters the response by one or multiple fields using the advanced filter syntax (same as the list reminders endpoint). Counts are computed over the filtered set.
557
+ * @param {*} [options] Override http request option.
558
+ * @throws {RequiredError}
559
+ */
560
+ getReminderCounts(authorization?: string, filters?: string, options?: any): AxiosPromise<GetReminderCountsResponseClass> {
561
+ return localVarFp.getReminderCounts(authorization, filters, options).then((request) => request(axios, basePath));
562
+ },
563
+ /**
564
+ * Retrieves a list of reminders. **Required Permissions** \"task-management.reminders.view\"
565
+ * @summary List reminders
566
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
567
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
568
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
569
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, isDone, status, userSub, entityNumber, dueAt, createdAt&lt;/i&gt;
570
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, title, description, entityCode, entityNumber, userSub, userName&lt;/i&gt;
571
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, dueAt, isDone, status&lt;/i&gt;
572
+ * @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;
573
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, isDone, status, userSub, entityNumber, dueAt, createdAt&lt;/i&gt;
574
+ * @param {*} [options] Override http request option.
575
+ * @throws {RequiredError}
576
+ */
577
+ listReminders(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListRemindersResponseClass> {
578
+ return localVarFp.listReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
579
+ },
580
+ /**
581
+ * This will mark a reminder as done. **Required Permissions** \"task-management.reminders.update\"
582
+ * @summary Create the reminder done
583
+ * @param {string} code
584
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
585
+ * @param {*} [options] Override http request option.
586
+ * @throws {RequiredError}
587
+ */
588
+ markReminderDone(code: string, authorization?: string, options?: any): AxiosPromise<MarkReminderDoneResponseClass> {
589
+ return localVarFp.markReminderDone(code, authorization, options).then((request) => request(axios, basePath));
590
+ },
591
+ /**
592
+ * This will patch a reminder. **Required Permissions** \"task-management.reminders.update\"
593
+ * @summary Update the reminder
594
+ * @param {PatchReminderRequestDto} patchReminderRequestDto
595
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
596
+ * @param {*} [options] Override http request option.
597
+ * @throws {RequiredError}
598
+ */
599
+ patchReminder(patchReminderRequestDto: PatchReminderRequestDto, authorization?: string, options?: any): AxiosPromise<PatchReminderResponseClass> {
600
+ return localVarFp.patchReminder(patchReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
601
+ },
602
+ };
603
+ };
604
+
605
+ /**
606
+ * Request parameters for createReminder operation in RemindersApi.
607
+ * @export
608
+ * @interface RemindersApiCreateReminderRequest
609
+ */
610
+ export interface RemindersApiCreateReminderRequest {
611
+ /**
612
+ *
613
+ * @type {CreateReminderRequestDto}
614
+ * @memberof RemindersApiCreateReminder
615
+ */
616
+ readonly createReminderRequestDto: CreateReminderRequestDto
617
+
618
+ /**
619
+ * Bearer Token: provided by the login endpoint under the name accessToken.
620
+ * @type {string}
621
+ * @memberof RemindersApiCreateReminder
622
+ */
623
+ readonly authorization?: string
624
+ }
625
+
626
+ /**
627
+ * Request parameters for deleteReminder operation in RemindersApi.
628
+ * @export
629
+ * @interface RemindersApiDeleteReminderRequest
630
+ */
631
+ export interface RemindersApiDeleteReminderRequest {
632
+ /**
633
+ * Unique identifier for the object.
634
+ * @type {string}
635
+ * @memberof RemindersApiDeleteReminder
636
+ */
637
+ readonly code: string
638
+
639
+ /**
640
+ * Bearer Token: provided by the login endpoint under the name accessToken.
641
+ * @type {string}
642
+ * @memberof RemindersApiDeleteReminder
643
+ */
644
+ readonly authorization?: string
645
+ }
646
+
647
+ /**
648
+ * Request parameters for getReminder operation in RemindersApi.
649
+ * @export
650
+ * @interface RemindersApiGetReminderRequest
651
+ */
652
+ export interface RemindersApiGetReminderRequest {
653
+ /**
654
+ * Unique identifier for the object.
655
+ * @type {string}
656
+ * @memberof RemindersApiGetReminder
657
+ */
658
+ readonly code: string
659
+
660
+ /**
661
+ *
662
+ * @type {string}
663
+ * @memberof RemindersApiGetReminder
664
+ */
665
+ readonly expand: string
666
+
667
+ /**
668
+ * Bearer Token: provided by the login endpoint under the name accessToken.
669
+ * @type {string}
670
+ * @memberof RemindersApiGetReminder
671
+ */
672
+ readonly authorization?: string
673
+ }
674
+
675
+ /**
676
+ * Request parameters for getReminderCounts operation in RemindersApi.
677
+ * @export
678
+ * @interface RemindersApiGetReminderCountsRequest
679
+ */
680
+ export interface RemindersApiGetReminderCountsRequest {
681
+ /**
682
+ * Bearer Token: provided by the login endpoint under the name accessToken.
683
+ * @type {string}
684
+ * @memberof RemindersApiGetReminderCounts
685
+ */
686
+ readonly authorization?: string
687
+
688
+ /**
689
+ * Filters the response by one or multiple fields using the advanced filter syntax (same as the list reminders endpoint). Counts are computed over the filtered set.
690
+ * @type {string}
691
+ * @memberof RemindersApiGetReminderCounts
692
+ */
693
+ readonly filters?: string
694
+ }
695
+
696
+ /**
697
+ * Request parameters for listReminders operation in RemindersApi.
698
+ * @export
699
+ * @interface RemindersApiListRemindersRequest
700
+ */
701
+ export interface RemindersApiListRemindersRequest {
702
+ /**
703
+ * Bearer Token: provided by the login endpoint under the name accessToken.
704
+ * @type {string}
705
+ * @memberof RemindersApiListReminders
706
+ */
707
+ readonly authorization?: string
708
+
709
+ /**
710
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
711
+ * @type {number}
712
+ * @memberof RemindersApiListReminders
713
+ */
714
+ readonly pageSize?: number
715
+
716
+ /**
717
+ * 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
718
+ * @type {string}
719
+ * @memberof RemindersApiListReminders
720
+ */
721
+ readonly pageToken?: string
722
+
723
+ /**
724
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, isDone, status, userSub, entityNumber, dueAt, createdAt&lt;/i&gt;
725
+ * @type {string}
726
+ * @memberof RemindersApiListReminders
727
+ */
728
+ readonly filter?: string
729
+
730
+ /**
731
+ * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, title, description, entityCode, entityNumber, userSub, userName&lt;/i&gt;
732
+ * @type {string}
733
+ * @memberof RemindersApiListReminders
734
+ */
735
+ readonly search?: string
736
+
737
+ /**
738
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, updatedAt, dueAt, isDone, status&lt;/i&gt;
739
+ * @type {string}
740
+ * @memberof RemindersApiListReminders
741
+ */
742
+ readonly order?: string
743
+
744
+ /**
745
+ * 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;
746
+ * @type {string}
747
+ * @memberof RemindersApiListReminders
748
+ */
749
+ readonly expand?: string
750
+
751
+ /**
752
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, entityType, entityCode, isDone, status, userSub, entityNumber, dueAt, createdAt&lt;/i&gt;
753
+ * @type {string}
754
+ * @memberof RemindersApiListReminders
755
+ */
756
+ readonly filters?: string
757
+ }
758
+
759
+ /**
760
+ * Request parameters for markReminderDone operation in RemindersApi.
761
+ * @export
762
+ * @interface RemindersApiMarkReminderDoneRequest
763
+ */
764
+ export interface RemindersApiMarkReminderDoneRequest {
765
+ /**
766
+ *
767
+ * @type {string}
768
+ * @memberof RemindersApiMarkReminderDone
769
+ */
770
+ readonly code: string
771
+
772
+ /**
773
+ * Bearer Token: provided by the login endpoint under the name accessToken.
774
+ * @type {string}
775
+ * @memberof RemindersApiMarkReminderDone
776
+ */
777
+ readonly authorization?: string
778
+ }
779
+
780
+ /**
781
+ * Request parameters for patchReminder operation in RemindersApi.
782
+ * @export
783
+ * @interface RemindersApiPatchReminderRequest
784
+ */
785
+ export interface RemindersApiPatchReminderRequest {
786
+ /**
787
+ *
788
+ * @type {PatchReminderRequestDto}
789
+ * @memberof RemindersApiPatchReminder
790
+ */
791
+ readonly patchReminderRequestDto: PatchReminderRequestDto
792
+
793
+ /**
794
+ * Bearer Token: provided by the login endpoint under the name accessToken.
795
+ * @type {string}
796
+ * @memberof RemindersApiPatchReminder
797
+ */
798
+ readonly authorization?: string
799
+ }
800
+
801
+ /**
802
+ * RemindersApi - object-oriented interface
803
+ * @export
804
+ * @class RemindersApi
805
+ * @extends {BaseAPI}
806
+ */
807
+ export class RemindersApi extends BaseAPI {
808
+ /**
809
+ * This will create a reminder. **Required Permissions** \"task-management.reminders.create\"
810
+ * @summary Create the reminder
811
+ * @param {RemindersApiCreateReminderRequest} requestParameters Request parameters.
812
+ * @param {*} [options] Override http request option.
813
+ * @throws {RequiredError}
814
+ * @memberof RemindersApi
815
+ */
816
+ public createReminder(requestParameters: RemindersApiCreateReminderRequest, options?: AxiosRequestConfig) {
817
+ return RemindersApiFp(this.configuration).createReminder(requestParameters.createReminderRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
818
+ }
819
+
820
+ /**
821
+ * This will delete a reminder. **Required Permissions** \"task-management.reminders.delete\"
822
+ * @summary Delete the reminder
823
+ * @param {RemindersApiDeleteReminderRequest} requestParameters Request parameters.
824
+ * @param {*} [options] Override http request option.
825
+ * @throws {RequiredError}
826
+ * @memberof RemindersApi
827
+ */
828
+ public deleteReminder(requestParameters: RemindersApiDeleteReminderRequest, options?: AxiosRequestConfig) {
829
+ return RemindersApiFp(this.configuration).deleteReminder(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
830
+ }
831
+
832
+ /**
833
+ * This will get a reminder by code. **Required Permissions** \"task-management.reminders.view\"
834
+ * @summary Retrieve the reminder
835
+ * @param {RemindersApiGetReminderRequest} requestParameters Request parameters.
836
+ * @param {*} [options] Override http request option.
837
+ * @throws {RequiredError}
838
+ * @memberof RemindersApi
839
+ */
840
+ public getReminder(requestParameters: RemindersApiGetReminderRequest, options?: AxiosRequestConfig) {
841
+ return RemindersApiFp(this.configuration).getReminder(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
842
+ }
843
+
844
+ /**
845
+ * This will get reminder counts by status. Accepts the same advanced `filters` query parameter as the list reminders endpoint. **Required Permissions** \"task-management.reminders.view\"
846
+ * @summary Retrieve the reminder counts
847
+ * @param {RemindersApiGetReminderCountsRequest} requestParameters Request parameters.
848
+ * @param {*} [options] Override http request option.
849
+ * @throws {RequiredError}
850
+ * @memberof RemindersApi
851
+ */
852
+ public getReminderCounts(requestParameters: RemindersApiGetReminderCountsRequest = {}, options?: AxiosRequestConfig) {
853
+ return RemindersApiFp(this.configuration).getReminderCounts(requestParameters.authorization, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
854
+ }
855
+
856
+ /**
857
+ * Retrieves a list of reminders. **Required Permissions** \"task-management.reminders.view\"
858
+ * @summary List reminders
859
+ * @param {RemindersApiListRemindersRequest} requestParameters Request parameters.
860
+ * @param {*} [options] Override http request option.
861
+ * @throws {RequiredError}
862
+ * @memberof RemindersApi
863
+ */
864
+ public listReminders(requestParameters: RemindersApiListRemindersRequest = {}, options?: AxiosRequestConfig) {
865
+ return RemindersApiFp(this.configuration).listReminders(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
866
+ }
867
+
868
+ /**
869
+ * This will mark a reminder as done. **Required Permissions** \"task-management.reminders.update\"
870
+ * @summary Create the reminder done
871
+ * @param {RemindersApiMarkReminderDoneRequest} requestParameters Request parameters.
872
+ * @param {*} [options] Override http request option.
873
+ * @throws {RequiredError}
874
+ * @memberof RemindersApi
875
+ */
876
+ public markReminderDone(requestParameters: RemindersApiMarkReminderDoneRequest, options?: AxiosRequestConfig) {
877
+ return RemindersApiFp(this.configuration).markReminderDone(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
878
+ }
879
+
880
+ /**
881
+ * This will patch a reminder. **Required Permissions** \"task-management.reminders.update\"
882
+ * @summary Update the reminder
883
+ * @param {RemindersApiPatchReminderRequest} requestParameters Request parameters.
884
+ * @param {*} [options] Override http request option.
885
+ * @throws {RequiredError}
886
+ * @memberof RemindersApi
887
+ */
888
+ public patchReminder(requestParameters: RemindersApiPatchReminderRequest, options?: AxiosRequestConfig) {
889
+ return RemindersApiFp(this.configuration).patchReminder(requestParameters.patchReminderRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
890
+ }
891
+ }