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