@emilgroup/task-sdk 1.3.1-beta.0 → 1.3.1-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +2 -2
  3. package/api/reminders-api.ts +873 -0
  4. package/api.ts +2 -0
  5. package/dist/api/reminders-api.d.ts +487 -0
  6. package/dist/api/reminders-api.js +817 -0
  7. package/dist/api.d.ts +1 -0
  8. package/dist/api.js +1 -0
  9. package/dist/models/create-reminder-request-dto.d.ts +54 -0
  10. package/dist/models/create-reminder-request-dto.js +15 -0
  11. package/dist/models/create-reminder-response-class.d.ts +25 -0
  12. package/dist/models/create-reminder-response-class.js +15 -0
  13. package/dist/models/get-reminder-counts-response-class.d.ts +30 -0
  14. package/dist/models/get-reminder-counts-response-class.js +15 -0
  15. package/dist/models/get-reminder-response-class.d.ts +25 -0
  16. package/dist/models/get-reminder-response-class.js +15 -0
  17. package/dist/models/index.d.ts +9 -0
  18. package/dist/models/index.js +9 -0
  19. package/dist/models/list-reminders-response-class.d.ts +43 -0
  20. package/dist/models/list-reminders-response-class.js +15 -0
  21. package/dist/models/mark-reminder-done-response-class.d.ts +25 -0
  22. package/dist/models/mark-reminder-done-response-class.js +15 -0
  23. package/dist/models/patch-reminder-request-dto.d.ts +42 -0
  24. package/dist/models/patch-reminder-request-dto.js +15 -0
  25. package/dist/models/patch-reminder-response-class.d.ts +25 -0
  26. package/dist/models/patch-reminder-response-class.js +15 -0
  27. package/dist/models/reminder-class.d.ts +120 -0
  28. package/dist/models/reminder-class.js +15 -0
  29. package/models/create-reminder-request-dto.ts +60 -0
  30. package/models/create-reminder-response-class.ts +31 -0
  31. package/models/get-reminder-counts-response-class.ts +36 -0
  32. package/models/get-reminder-response-class.ts +31 -0
  33. package/models/index.ts +9 -0
  34. package/models/list-reminders-response-class.ts +49 -0
  35. package/models/mark-reminder-done-response-class.ts +31 -0
  36. package/models/patch-reminder-request-dto.ts +48 -0
  37. package/models/patch-reminder-response-class.ts +31 -0
  38. package/models/reminder-class.ts +126 -0
  39. package/package.json +1 -1
@@ -0,0 +1,873 @@
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.
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.
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.
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.
191
+ * @summary Retrieve the reminder counts
192
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ getReminderCounts: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
197
+ const localVarPath = `/taskservice/v1/reminders/counts`;
198
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
199
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
200
+ let baseOptions;
201
+ let baseAccessToken;
202
+ if (configuration) {
203
+ baseOptions = configuration.baseOptions;
204
+ baseAccessToken = configuration.accessToken;
205
+ }
206
+
207
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
208
+ const localVarHeaderParameter = {} as any;
209
+ const localVarQueryParameter = {} as any;
210
+
211
+ // authentication bearer required
212
+ // http bearer authentication required
213
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
214
+
215
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
216
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
217
+ }
218
+
219
+
220
+
221
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
222
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
223
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
224
+
225
+ return {
226
+ url: toPathString(localVarUrlObj),
227
+ options: localVarRequestOptions,
228
+ };
229
+ },
230
+ /**
231
+ * Retrieves a list of reminders.
232
+ * @summary List reminders
233
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
234
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
235
+ * @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.
236
+ * @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, userSub, dueAt, createdAt&lt;/i&gt;
237
+ * @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: title, description&lt;/i&gt;
238
+ * @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&lt;/i&gt;
239
+ * @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;
240
+ * @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, userSub, dueAt, createdAt&lt;/i&gt;
241
+ * @param {*} [options] Override http request option.
242
+ * @throws {RequiredError}
243
+ */
244
+ listReminders: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
245
+ const localVarPath = `/taskservice/v1/reminders`;
246
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
247
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
248
+ let baseOptions;
249
+ let baseAccessToken;
250
+ if (configuration) {
251
+ baseOptions = configuration.baseOptions;
252
+ baseAccessToken = configuration.accessToken;
253
+ }
254
+
255
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
256
+ const localVarHeaderParameter = {} as any;
257
+ const localVarQueryParameter = {} as any;
258
+
259
+ // authentication bearer required
260
+ // http bearer authentication required
261
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
262
+
263
+ if (pageSize !== undefined) {
264
+ localVarQueryParameter['pageSize'] = pageSize;
265
+ }
266
+
267
+ if (pageToken !== undefined) {
268
+ localVarQueryParameter['pageToken'] = pageToken;
269
+ }
270
+
271
+ if (filter !== undefined) {
272
+ localVarQueryParameter['filter'] = filter;
273
+ }
274
+
275
+ if (search !== undefined) {
276
+ localVarQueryParameter['search'] = search;
277
+ }
278
+
279
+ if (order !== undefined) {
280
+ localVarQueryParameter['order'] = order;
281
+ }
282
+
283
+ if (expand !== undefined) {
284
+ localVarQueryParameter['expand'] = expand;
285
+ }
286
+
287
+ if (filters !== undefined) {
288
+ localVarQueryParameter['filters'] = filters;
289
+ }
290
+
291
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
292
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
293
+ }
294
+
295
+
296
+
297
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
298
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
299
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
300
+
301
+ return {
302
+ url: toPathString(localVarUrlObj),
303
+ options: localVarRequestOptions,
304
+ };
305
+ },
306
+ /**
307
+ * This will mark a reminder as done.
308
+ * @summary Create the reminder done
309
+ * @param {string} code
310
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
311
+ * @param {*} [options] Override http request option.
312
+ * @throws {RequiredError}
313
+ */
314
+ markReminderDone: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
315
+ // verify required parameter 'code' is not null or undefined
316
+ assertParamExists('markReminderDone', 'code', code)
317
+ const localVarPath = `/taskservice/v1/reminders/{code}/done`
318
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
319
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
320
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
321
+ let baseOptions;
322
+ let baseAccessToken;
323
+ if (configuration) {
324
+ baseOptions = configuration.baseOptions;
325
+ baseAccessToken = configuration.accessToken;
326
+ }
327
+
328
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
329
+ const localVarHeaderParameter = {} as any;
330
+ const localVarQueryParameter = {} as any;
331
+
332
+ // authentication bearer required
333
+ // http bearer authentication required
334
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
335
+
336
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
337
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
338
+ }
339
+
340
+
341
+
342
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
343
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
344
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
345
+
346
+ return {
347
+ url: toPathString(localVarUrlObj),
348
+ options: localVarRequestOptions,
349
+ };
350
+ },
351
+ /**
352
+ * This will patch a reminder.
353
+ * @summary Update the reminder
354
+ * @param {PatchReminderRequestDto} patchReminderRequestDto
355
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
356
+ * @param {*} [options] Override http request option.
357
+ * @throws {RequiredError}
358
+ */
359
+ patchReminder: async (patchReminderRequestDto: PatchReminderRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
360
+ // verify required parameter 'patchReminderRequestDto' is not null or undefined
361
+ assertParamExists('patchReminder', 'patchReminderRequestDto', patchReminderRequestDto)
362
+ const localVarPath = `/taskservice/v1/reminders`;
363
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
364
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
365
+ let baseOptions;
366
+ let baseAccessToken;
367
+ if (configuration) {
368
+ baseOptions = configuration.baseOptions;
369
+ baseAccessToken = configuration.accessToken;
370
+ }
371
+
372
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
373
+ const localVarHeaderParameter = {} as any;
374
+ const localVarQueryParameter = {} as any;
375
+
376
+ // authentication bearer required
377
+ // http bearer authentication required
378
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
379
+
380
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
381
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
382
+ }
383
+
384
+
385
+
386
+ localVarHeaderParameter['Content-Type'] = 'application/json';
387
+
388
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
389
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
390
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
391
+ localVarRequestOptions.data = serializeDataIfNeeded(patchReminderRequestDto, localVarRequestOptions, configuration)
392
+
393
+ return {
394
+ url: toPathString(localVarUrlObj),
395
+ options: localVarRequestOptions,
396
+ };
397
+ },
398
+ }
399
+ };
400
+
401
+ /**
402
+ * RemindersApi - functional programming interface
403
+ * @export
404
+ */
405
+ export const RemindersApiFp = function(configuration?: Configuration) {
406
+ const localVarAxiosParamCreator = RemindersApiAxiosParamCreator(configuration)
407
+ return {
408
+ /**
409
+ * This will create a reminder.
410
+ * @summary Create the reminder
411
+ * @param {CreateReminderRequestDto} createReminderRequestDto
412
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
413
+ * @param {*} [options] Override http request option.
414
+ * @throws {RequiredError}
415
+ */
416
+ async createReminder(createReminderRequestDto: CreateReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateReminderResponseClass>> {
417
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createReminder(createReminderRequestDto, authorization, options);
418
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
419
+ },
420
+ /**
421
+ * This will delete a reminder.
422
+ * @summary Delete the reminder
423
+ * @param {string} code Unique identifier for the object.
424
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
425
+ * @param {*} [options] Override http request option.
426
+ * @throws {RequiredError}
427
+ */
428
+ async deleteReminder(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
429
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteReminder(code, authorization, options);
430
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
431
+ },
432
+ /**
433
+ * This will get a reminder by code.
434
+ * @summary Retrieve the reminder
435
+ * @param {string} code Unique identifier for the object.
436
+ * @param {string} expand
437
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
438
+ * @param {*} [options] Override http request option.
439
+ * @throws {RequiredError}
440
+ */
441
+ async getReminder(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetReminderResponseClass>> {
442
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getReminder(code, expand, authorization, options);
443
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
444
+ },
445
+ /**
446
+ * This will get reminder counts by status.
447
+ * @summary Retrieve the reminder counts
448
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
449
+ * @param {*} [options] Override http request option.
450
+ * @throws {RequiredError}
451
+ */
452
+ async getReminderCounts(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetReminderCountsResponseClass>> {
453
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getReminderCounts(authorization, options);
454
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
455
+ },
456
+ /**
457
+ * Retrieves a list of reminders.
458
+ * @summary List reminders
459
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
460
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
461
+ * @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.
462
+ * @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, userSub, dueAt, createdAt&lt;/i&gt;
463
+ * @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: title, description&lt;/i&gt;
464
+ * @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&lt;/i&gt;
465
+ * @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;
466
+ * @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, userSub, dueAt, createdAt&lt;/i&gt;
467
+ * @param {*} [options] Override http request option.
468
+ * @throws {RequiredError}
469
+ */
470
+ 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>> {
471
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
472
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
473
+ },
474
+ /**
475
+ * This will mark a reminder as done.
476
+ * @summary Create the reminder done
477
+ * @param {string} code
478
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
479
+ * @param {*} [options] Override http request option.
480
+ * @throws {RequiredError}
481
+ */
482
+ async markReminderDone(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MarkReminderDoneResponseClass>> {
483
+ const localVarAxiosArgs = await localVarAxiosParamCreator.markReminderDone(code, authorization, options);
484
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
485
+ },
486
+ /**
487
+ * This will patch a reminder.
488
+ * @summary Update the reminder
489
+ * @param {PatchReminderRequestDto} patchReminderRequestDto
490
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
491
+ * @param {*} [options] Override http request option.
492
+ * @throws {RequiredError}
493
+ */
494
+ async patchReminder(patchReminderRequestDto: PatchReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchReminderResponseClass>> {
495
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchReminder(patchReminderRequestDto, authorization, options);
496
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
497
+ },
498
+ }
499
+ };
500
+
501
+ /**
502
+ * RemindersApi - factory interface
503
+ * @export
504
+ */
505
+ export const RemindersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
506
+ const localVarFp = RemindersApiFp(configuration)
507
+ return {
508
+ /**
509
+ * This will create a reminder.
510
+ * @summary Create the reminder
511
+ * @param {CreateReminderRequestDto} createReminderRequestDto
512
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
513
+ * @param {*} [options] Override http request option.
514
+ * @throws {RequiredError}
515
+ */
516
+ createReminder(createReminderRequestDto: CreateReminderRequestDto, authorization?: string, options?: any): AxiosPromise<CreateReminderResponseClass> {
517
+ return localVarFp.createReminder(createReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
518
+ },
519
+ /**
520
+ * This will delete a reminder.
521
+ * @summary Delete the reminder
522
+ * @param {string} code Unique identifier for the object.
523
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
524
+ * @param {*} [options] Override http request option.
525
+ * @throws {RequiredError}
526
+ */
527
+ deleteReminder(code: string, authorization?: string, options?: any): AxiosPromise<void> {
528
+ return localVarFp.deleteReminder(code, authorization, options).then((request) => request(axios, basePath));
529
+ },
530
+ /**
531
+ * This will get a reminder by code.
532
+ * @summary Retrieve the reminder
533
+ * @param {string} code Unique identifier for the object.
534
+ * @param {string} expand
535
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
536
+ * @param {*} [options] Override http request option.
537
+ * @throws {RequiredError}
538
+ */
539
+ getReminder(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetReminderResponseClass> {
540
+ return localVarFp.getReminder(code, expand, authorization, options).then((request) => request(axios, basePath));
541
+ },
542
+ /**
543
+ * This will get reminder counts by status.
544
+ * @summary Retrieve the reminder counts
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
+ getReminderCounts(authorization?: string, options?: any): AxiosPromise<GetReminderCountsResponseClass> {
550
+ return localVarFp.getReminderCounts(authorization, options).then((request) => request(axios, basePath));
551
+ },
552
+ /**
553
+ * Retrieves a list of reminders.
554
+ * @summary List reminders
555
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
556
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
557
+ * @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.
558
+ * @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, userSub, dueAt, createdAt&lt;/i&gt;
559
+ * @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: title, description&lt;/i&gt;
560
+ * @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&lt;/i&gt;
561
+ * @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;
562
+ * @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, userSub, dueAt, createdAt&lt;/i&gt;
563
+ * @param {*} [options] Override http request option.
564
+ * @throws {RequiredError}
565
+ */
566
+ listReminders(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListRemindersResponseClass> {
567
+ return localVarFp.listReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
568
+ },
569
+ /**
570
+ * This will mark a reminder as done.
571
+ * @summary Create the reminder done
572
+ * @param {string} code
573
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
574
+ * @param {*} [options] Override http request option.
575
+ * @throws {RequiredError}
576
+ */
577
+ markReminderDone(code: string, authorization?: string, options?: any): AxiosPromise<MarkReminderDoneResponseClass> {
578
+ return localVarFp.markReminderDone(code, authorization, options).then((request) => request(axios, basePath));
579
+ },
580
+ /**
581
+ * This will patch a reminder.
582
+ * @summary Update the reminder
583
+ * @param {PatchReminderRequestDto} patchReminderRequestDto
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
+ patchReminder(patchReminderRequestDto: PatchReminderRequestDto, authorization?: string, options?: any): AxiosPromise<PatchReminderResponseClass> {
589
+ return localVarFp.patchReminder(patchReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
590
+ },
591
+ };
592
+ };
593
+
594
+ /**
595
+ * Request parameters for createReminder operation in RemindersApi.
596
+ * @export
597
+ * @interface RemindersApiCreateReminderRequest
598
+ */
599
+ export interface RemindersApiCreateReminderRequest {
600
+ /**
601
+ *
602
+ * @type {CreateReminderRequestDto}
603
+ * @memberof RemindersApiCreateReminder
604
+ */
605
+ readonly createReminderRequestDto: CreateReminderRequestDto
606
+
607
+ /**
608
+ * Bearer Token: provided by the login endpoint under the name accessToken.
609
+ * @type {string}
610
+ * @memberof RemindersApiCreateReminder
611
+ */
612
+ readonly authorization?: string
613
+ }
614
+
615
+ /**
616
+ * Request parameters for deleteReminder operation in RemindersApi.
617
+ * @export
618
+ * @interface RemindersApiDeleteReminderRequest
619
+ */
620
+ export interface RemindersApiDeleteReminderRequest {
621
+ /**
622
+ * Unique identifier for the object.
623
+ * @type {string}
624
+ * @memberof RemindersApiDeleteReminder
625
+ */
626
+ readonly code: string
627
+
628
+ /**
629
+ * Bearer Token: provided by the login endpoint under the name accessToken.
630
+ * @type {string}
631
+ * @memberof RemindersApiDeleteReminder
632
+ */
633
+ readonly authorization?: string
634
+ }
635
+
636
+ /**
637
+ * Request parameters for getReminder operation in RemindersApi.
638
+ * @export
639
+ * @interface RemindersApiGetReminderRequest
640
+ */
641
+ export interface RemindersApiGetReminderRequest {
642
+ /**
643
+ * Unique identifier for the object.
644
+ * @type {string}
645
+ * @memberof RemindersApiGetReminder
646
+ */
647
+ readonly code: string
648
+
649
+ /**
650
+ *
651
+ * @type {string}
652
+ * @memberof RemindersApiGetReminder
653
+ */
654
+ readonly expand: string
655
+
656
+ /**
657
+ * Bearer Token: provided by the login endpoint under the name accessToken.
658
+ * @type {string}
659
+ * @memberof RemindersApiGetReminder
660
+ */
661
+ readonly authorization?: string
662
+ }
663
+
664
+ /**
665
+ * Request parameters for getReminderCounts operation in RemindersApi.
666
+ * @export
667
+ * @interface RemindersApiGetReminderCountsRequest
668
+ */
669
+ export interface RemindersApiGetReminderCountsRequest {
670
+ /**
671
+ * Bearer Token: provided by the login endpoint under the name accessToken.
672
+ * @type {string}
673
+ * @memberof RemindersApiGetReminderCounts
674
+ */
675
+ readonly authorization?: string
676
+ }
677
+
678
+ /**
679
+ * Request parameters for listReminders operation in RemindersApi.
680
+ * @export
681
+ * @interface RemindersApiListRemindersRequest
682
+ */
683
+ export interface RemindersApiListRemindersRequest {
684
+ /**
685
+ * Bearer Token: provided by the login endpoint under the name accessToken.
686
+ * @type {string}
687
+ * @memberof RemindersApiListReminders
688
+ */
689
+ readonly authorization?: string
690
+
691
+ /**
692
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
693
+ * @type {number}
694
+ * @memberof RemindersApiListReminders
695
+ */
696
+ readonly pageSize?: number
697
+
698
+ /**
699
+ * 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.
700
+ * @type {string}
701
+ * @memberof RemindersApiListReminders
702
+ */
703
+ readonly pageToken?: string
704
+
705
+ /**
706
+ * 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, userSub, dueAt, createdAt&lt;/i&gt;
707
+ * @type {string}
708
+ * @memberof RemindersApiListReminders
709
+ */
710
+ readonly filter?: string
711
+
712
+ /**
713
+ * 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: title, description&lt;/i&gt;
714
+ * @type {string}
715
+ * @memberof RemindersApiListReminders
716
+ */
717
+ readonly search?: string
718
+
719
+ /**
720
+ * 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&lt;/i&gt;
721
+ * @type {string}
722
+ * @memberof RemindersApiListReminders
723
+ */
724
+ readonly order?: string
725
+
726
+ /**
727
+ * 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;
728
+ * @type {string}
729
+ * @memberof RemindersApiListReminders
730
+ */
731
+ readonly expand?: string
732
+
733
+ /**
734
+ * 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, userSub, dueAt, createdAt&lt;/i&gt;
735
+ * @type {string}
736
+ * @memberof RemindersApiListReminders
737
+ */
738
+ readonly filters?: string
739
+ }
740
+
741
+ /**
742
+ * Request parameters for markReminderDone operation in RemindersApi.
743
+ * @export
744
+ * @interface RemindersApiMarkReminderDoneRequest
745
+ */
746
+ export interface RemindersApiMarkReminderDoneRequest {
747
+ /**
748
+ *
749
+ * @type {string}
750
+ * @memberof RemindersApiMarkReminderDone
751
+ */
752
+ readonly code: string
753
+
754
+ /**
755
+ * Bearer Token: provided by the login endpoint under the name accessToken.
756
+ * @type {string}
757
+ * @memberof RemindersApiMarkReminderDone
758
+ */
759
+ readonly authorization?: string
760
+ }
761
+
762
+ /**
763
+ * Request parameters for patchReminder operation in RemindersApi.
764
+ * @export
765
+ * @interface RemindersApiPatchReminderRequest
766
+ */
767
+ export interface RemindersApiPatchReminderRequest {
768
+ /**
769
+ *
770
+ * @type {PatchReminderRequestDto}
771
+ * @memberof RemindersApiPatchReminder
772
+ */
773
+ readonly patchReminderRequestDto: PatchReminderRequestDto
774
+
775
+ /**
776
+ * Bearer Token: provided by the login endpoint under the name accessToken.
777
+ * @type {string}
778
+ * @memberof RemindersApiPatchReminder
779
+ */
780
+ readonly authorization?: string
781
+ }
782
+
783
+ /**
784
+ * RemindersApi - object-oriented interface
785
+ * @export
786
+ * @class RemindersApi
787
+ * @extends {BaseAPI}
788
+ */
789
+ export class RemindersApi extends BaseAPI {
790
+ /**
791
+ * This will create a reminder.
792
+ * @summary Create the reminder
793
+ * @param {RemindersApiCreateReminderRequest} requestParameters Request parameters.
794
+ * @param {*} [options] Override http request option.
795
+ * @throws {RequiredError}
796
+ * @memberof RemindersApi
797
+ */
798
+ public createReminder(requestParameters: RemindersApiCreateReminderRequest, options?: AxiosRequestConfig) {
799
+ return RemindersApiFp(this.configuration).createReminder(requestParameters.createReminderRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
800
+ }
801
+
802
+ /**
803
+ * This will delete a reminder.
804
+ * @summary Delete the reminder
805
+ * @param {RemindersApiDeleteReminderRequest} requestParameters Request parameters.
806
+ * @param {*} [options] Override http request option.
807
+ * @throws {RequiredError}
808
+ * @memberof RemindersApi
809
+ */
810
+ public deleteReminder(requestParameters: RemindersApiDeleteReminderRequest, options?: AxiosRequestConfig) {
811
+ return RemindersApiFp(this.configuration).deleteReminder(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
812
+ }
813
+
814
+ /**
815
+ * This will get a reminder by code.
816
+ * @summary Retrieve the reminder
817
+ * @param {RemindersApiGetReminderRequest} requestParameters Request parameters.
818
+ * @param {*} [options] Override http request option.
819
+ * @throws {RequiredError}
820
+ * @memberof RemindersApi
821
+ */
822
+ public getReminder(requestParameters: RemindersApiGetReminderRequest, options?: AxiosRequestConfig) {
823
+ return RemindersApiFp(this.configuration).getReminder(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
824
+ }
825
+
826
+ /**
827
+ * This will get reminder counts by status.
828
+ * @summary Retrieve the reminder counts
829
+ * @param {RemindersApiGetReminderCountsRequest} requestParameters Request parameters.
830
+ * @param {*} [options] Override http request option.
831
+ * @throws {RequiredError}
832
+ * @memberof RemindersApi
833
+ */
834
+ public getReminderCounts(requestParameters: RemindersApiGetReminderCountsRequest = {}, options?: AxiosRequestConfig) {
835
+ return RemindersApiFp(this.configuration).getReminderCounts(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
836
+ }
837
+
838
+ /**
839
+ * Retrieves a list of reminders.
840
+ * @summary List reminders
841
+ * @param {RemindersApiListRemindersRequest} requestParameters Request parameters.
842
+ * @param {*} [options] Override http request option.
843
+ * @throws {RequiredError}
844
+ * @memberof RemindersApi
845
+ */
846
+ public listReminders(requestParameters: RemindersApiListRemindersRequest = {}, options?: AxiosRequestConfig) {
847
+ 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));
848
+ }
849
+
850
+ /**
851
+ * This will mark a reminder as done.
852
+ * @summary Create the reminder done
853
+ * @param {RemindersApiMarkReminderDoneRequest} requestParameters Request parameters.
854
+ * @param {*} [options] Override http request option.
855
+ * @throws {RequiredError}
856
+ * @memberof RemindersApi
857
+ */
858
+ public markReminderDone(requestParameters: RemindersApiMarkReminderDoneRequest, options?: AxiosRequestConfig) {
859
+ return RemindersApiFp(this.configuration).markReminderDone(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
860
+ }
861
+
862
+ /**
863
+ * This will patch a reminder.
864
+ * @summary Update the reminder
865
+ * @param {RemindersApiPatchReminderRequest} requestParameters Request parameters.
866
+ * @param {*} [options] Override http request option.
867
+ * @throws {RequiredError}
868
+ * @memberof RemindersApi
869
+ */
870
+ public patchReminder(requestParameters: RemindersApiPatchReminderRequest, options?: AxiosRequestConfig) {
871
+ return RemindersApiFp(this.configuration).patchReminder(requestParameters.patchReminderRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
872
+ }
873
+ }