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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/.openapi-generator/FILES +12 -1
  2. package/README.md +2 -2
  3. package/api/{default-api.ts → health-api.ts} +13 -13
  4. package/api/reminders-api.ts +891 -0
  5. package/api/task-client-api.ts +2144 -0
  6. package/api.ts +6 -2
  7. package/dist/api/{default-api.d.ts → health-api.d.ts} +10 -10
  8. package/dist/api/{default-api.js → health-api.js} +22 -22
  9. package/dist/api/reminders-api.d.ts +496 -0
  10. package/dist/api/reminders-api.js +827 -0
  11. package/dist/api/task-client-api.d.ts +1194 -0
  12. package/dist/api/task-client-api.js +1842 -0
  13. package/dist/api.d.ts +3 -1
  14. package/dist/api.js +3 -1
  15. package/dist/models/create-reminder-request-dto.d.ts +61 -0
  16. package/dist/models/create-reminder-request-dto.js +22 -0
  17. package/dist/models/create-reminder-response-class.d.ts +25 -0
  18. package/dist/models/create-reminder-response-class.js +15 -0
  19. package/dist/models/get-reminder-counts-response-class.d.ts +42 -0
  20. package/dist/models/get-reminder-counts-response-class.js +15 -0
  21. package/dist/models/get-reminder-response-class.d.ts +25 -0
  22. package/dist/models/get-reminder-response-class.js +15 -0
  23. package/dist/models/index.d.ts +9 -0
  24. package/dist/models/index.js +9 -0
  25. package/dist/models/list-reminders-response-class.d.ts +43 -0
  26. package/dist/models/list-reminders-response-class.js +15 -0
  27. package/dist/models/mark-reminder-done-response-class.d.ts +25 -0
  28. package/dist/models/mark-reminder-done-response-class.js +15 -0
  29. package/dist/models/patch-reminder-request-dto.d.ts +67 -0
  30. package/dist/models/patch-reminder-request-dto.js +22 -0
  31. package/dist/models/patch-reminder-response-class.d.ts +25 -0
  32. package/dist/models/patch-reminder-response-class.js +15 -0
  33. package/dist/models/reminder-class.d.ts +120 -0
  34. package/dist/models/reminder-class.js +15 -0
  35. package/models/create-reminder-request-dto.ts +70 -0
  36. package/models/create-reminder-response-class.ts +31 -0
  37. package/models/get-reminder-counts-response-class.ts +48 -0
  38. package/models/get-reminder-response-class.ts +31 -0
  39. package/models/index.ts +9 -0
  40. package/models/list-reminders-response-class.ts +49 -0
  41. package/models/mark-reminder-done-response-class.ts +31 -0
  42. package/models/patch-reminder-request-dto.ts +76 -0
  43. package/models/patch-reminder-response-class.ts +31 -0
  44. package/models/reminder-class.ts +126 -0
  45. package/package.json +2 -2
@@ -0,0 +1,827 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL TaskService
6
+ * The EMIL Task API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.RemindersApi = exports.RemindersApiFactory = exports.RemindersApiFp = exports.RemindersApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ // URLSearchParams not necessarily used
89
+ // @ts-ignore
90
+ var url_1 = require("url");
91
+ var FormData = require('form-data');
92
+ /**
93
+ * RemindersApi - axios parameter creator
94
+ * @export
95
+ */
96
+ var RemindersApiAxiosParamCreator = function (configuration) {
97
+ var _this = this;
98
+ return {
99
+ /**
100
+ * This will create a reminder. **Required Permissions** \"task-management.reminders.create\"
101
+ * @summary Create the reminder
102
+ * @param {CreateReminderRequestDto} createReminderRequestDto
103
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ createReminder: function (createReminderRequestDto, authorization, options) {
108
+ if (options === void 0) { options = {}; }
109
+ return __awaiter(_this, void 0, void 0, function () {
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ return __generator(this, function (_a) {
112
+ switch (_a.label) {
113
+ case 0:
114
+ // verify required parameter 'createReminderRequestDto' is not null or undefined
115
+ (0, common_1.assertParamExists)('createReminder', 'createReminderRequestDto', createReminderRequestDto);
116
+ localVarPath = "/taskservice/v1/reminders";
117
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ baseAccessToken = configuration.accessToken;
121
+ }
122
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
123
+ localVarHeaderParameter = {};
124
+ localVarQueryParameter = {};
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
+ case 1:
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ _a.sent();
132
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ }
135
+ localVarHeaderParameter['Content-Type'] = 'application/json';
136
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createReminderRequestDto, localVarRequestOptions, configuration);
140
+ return [2 /*return*/, {
141
+ url: (0, common_1.toPathString)(localVarUrlObj),
142
+ options: localVarRequestOptions,
143
+ }];
144
+ }
145
+ });
146
+ });
147
+ },
148
+ /**
149
+ * This will delete a reminder. **Required Permissions** \"task-management.reminders.delete\"
150
+ * @summary Delete the reminder
151
+ * @param {string} code Unique identifier for the object.
152
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
+ * @param {*} [options] Override http request option.
154
+ * @throws {RequiredError}
155
+ */
156
+ deleteReminder: function (code, authorization, options) {
157
+ if (options === void 0) { options = {}; }
158
+ return __awaiter(_this, void 0, void 0, function () {
159
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
160
+ return __generator(this, function (_a) {
161
+ switch (_a.label) {
162
+ case 0:
163
+ // verify required parameter 'code' is not null or undefined
164
+ (0, common_1.assertParamExists)('deleteReminder', 'code', code);
165
+ localVarPath = "/taskservice/v1/reminders/{code}"
166
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
167
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
168
+ if (configuration) {
169
+ baseOptions = configuration.baseOptions;
170
+ baseAccessToken = configuration.accessToken;
171
+ }
172
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
173
+ localVarHeaderParameter = {};
174
+ localVarQueryParameter = {};
175
+ // authentication bearer required
176
+ // http bearer authentication required
177
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
178
+ case 1:
179
+ // authentication bearer required
180
+ // http bearer authentication required
181
+ _a.sent();
182
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
184
+ }
185
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
187
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
188
+ return [2 /*return*/, {
189
+ url: (0, common_1.toPathString)(localVarUrlObj),
190
+ options: localVarRequestOptions,
191
+ }];
192
+ }
193
+ });
194
+ });
195
+ },
196
+ /**
197
+ * This will get a reminder by code. **Required Permissions** \"task-management.reminders.view\"
198
+ * @summary Retrieve the reminder
199
+ * @param {string} code Unique identifier for the object.
200
+ * @param {string} expand
201
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
202
+ * @param {*} [options] Override http request option.
203
+ * @throws {RequiredError}
204
+ */
205
+ getReminder: function (code, expand, authorization, options) {
206
+ if (options === void 0) { options = {}; }
207
+ return __awaiter(_this, void 0, void 0, function () {
208
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
209
+ return __generator(this, function (_a) {
210
+ switch (_a.label) {
211
+ case 0:
212
+ // verify required parameter 'code' is not null or undefined
213
+ (0, common_1.assertParamExists)('getReminder', 'code', code);
214
+ // verify required parameter 'expand' is not null or undefined
215
+ (0, common_1.assertParamExists)('getReminder', 'expand', expand);
216
+ localVarPath = "/taskservice/v1/reminders/{code}"
217
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
218
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
219
+ if (configuration) {
220
+ baseOptions = configuration.baseOptions;
221
+ baseAccessToken = configuration.accessToken;
222
+ }
223
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
224
+ localVarHeaderParameter = {};
225
+ localVarQueryParameter = {};
226
+ // authentication bearer required
227
+ // http bearer authentication required
228
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
229
+ case 1:
230
+ // authentication bearer required
231
+ // http bearer authentication required
232
+ _a.sent();
233
+ if (expand !== undefined) {
234
+ localVarQueryParameter['expand'] = expand;
235
+ }
236
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
237
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
238
+ }
239
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
240
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
241
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
242
+ return [2 /*return*/, {
243
+ url: (0, common_1.toPathString)(localVarUrlObj),
244
+ options: localVarRequestOptions,
245
+ }];
246
+ }
247
+ });
248
+ });
249
+ },
250
+ /**
251
+ * 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\"
252
+ * @summary Retrieve the reminder counts
253
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
254
+ * @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.
255
+ * @param {*} [options] Override http request option.
256
+ * @throws {RequiredError}
257
+ */
258
+ getReminderCounts: function (authorization, filters, options) {
259
+ if (options === void 0) { options = {}; }
260
+ return __awaiter(_this, void 0, void 0, function () {
261
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
262
+ return __generator(this, function (_a) {
263
+ switch (_a.label) {
264
+ case 0:
265
+ localVarPath = "/taskservice/v1/reminders/counts";
266
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
267
+ if (configuration) {
268
+ baseOptions = configuration.baseOptions;
269
+ baseAccessToken = configuration.accessToken;
270
+ }
271
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
272
+ localVarHeaderParameter = {};
273
+ localVarQueryParameter = {};
274
+ // authentication bearer required
275
+ // http bearer authentication required
276
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
277
+ case 1:
278
+ // authentication bearer required
279
+ // http bearer authentication required
280
+ _a.sent();
281
+ if (filters !== undefined) {
282
+ localVarQueryParameter['filters'] = filters;
283
+ }
284
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
285
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
286
+ }
287
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
288
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
289
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
290
+ return [2 /*return*/, {
291
+ url: (0, common_1.toPathString)(localVarUrlObj),
292
+ options: localVarRequestOptions,
293
+ }];
294
+ }
295
+ });
296
+ });
297
+ },
298
+ /**
299
+ * Retrieves a list of reminders. **Required Permissions** \"task-management.reminders.view\"
300
+ * @summary List reminders
301
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
302
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
303
+ * @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.
304
+ * @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;
305
+ * @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;
306
+ * @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;
307
+ * @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;
308
+ * @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;
309
+ * @param {*} [options] Override http request option.
310
+ * @throws {RequiredError}
311
+ */
312
+ listReminders: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
313
+ if (options === void 0) { options = {}; }
314
+ return __awaiter(_this, void 0, void 0, function () {
315
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
316
+ return __generator(this, function (_a) {
317
+ switch (_a.label) {
318
+ case 0:
319
+ localVarPath = "/taskservice/v1/reminders";
320
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
321
+ if (configuration) {
322
+ baseOptions = configuration.baseOptions;
323
+ baseAccessToken = configuration.accessToken;
324
+ }
325
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
326
+ localVarHeaderParameter = {};
327
+ localVarQueryParameter = {};
328
+ // authentication bearer required
329
+ // http bearer authentication required
330
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
331
+ case 1:
332
+ // authentication bearer required
333
+ // http bearer authentication required
334
+ _a.sent();
335
+ if (pageSize !== undefined) {
336
+ localVarQueryParameter['pageSize'] = pageSize;
337
+ }
338
+ if (pageToken !== undefined) {
339
+ localVarQueryParameter['pageToken'] = pageToken;
340
+ }
341
+ if (filter !== undefined) {
342
+ localVarQueryParameter['filter'] = filter;
343
+ }
344
+ if (search !== undefined) {
345
+ localVarQueryParameter['search'] = search;
346
+ }
347
+ if (order !== undefined) {
348
+ localVarQueryParameter['order'] = order;
349
+ }
350
+ if (expand !== undefined) {
351
+ localVarQueryParameter['expand'] = expand;
352
+ }
353
+ if (filters !== undefined) {
354
+ localVarQueryParameter['filters'] = filters;
355
+ }
356
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
357
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
358
+ }
359
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
360
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
361
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
362
+ return [2 /*return*/, {
363
+ url: (0, common_1.toPathString)(localVarUrlObj),
364
+ options: localVarRequestOptions,
365
+ }];
366
+ }
367
+ });
368
+ });
369
+ },
370
+ /**
371
+ * This will mark a reminder as done. **Required Permissions** \"task-management.reminders.update\"
372
+ * @summary Create the reminder done
373
+ * @param {string} code
374
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
375
+ * @param {*} [options] Override http request option.
376
+ * @throws {RequiredError}
377
+ */
378
+ markReminderDone: function (code, authorization, options) {
379
+ if (options === void 0) { options = {}; }
380
+ return __awaiter(_this, void 0, void 0, function () {
381
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
382
+ return __generator(this, function (_a) {
383
+ switch (_a.label) {
384
+ case 0:
385
+ // verify required parameter 'code' is not null or undefined
386
+ (0, common_1.assertParamExists)('markReminderDone', 'code', code);
387
+ localVarPath = "/taskservice/v1/reminders/{code}/done"
388
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
389
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
390
+ if (configuration) {
391
+ baseOptions = configuration.baseOptions;
392
+ baseAccessToken = configuration.accessToken;
393
+ }
394
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
395
+ localVarHeaderParameter = {};
396
+ localVarQueryParameter = {};
397
+ // authentication bearer required
398
+ // http bearer authentication required
399
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
400
+ case 1:
401
+ // authentication bearer required
402
+ // http bearer authentication required
403
+ _a.sent();
404
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
405
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
406
+ }
407
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
408
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
409
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
410
+ return [2 /*return*/, {
411
+ url: (0, common_1.toPathString)(localVarUrlObj),
412
+ options: localVarRequestOptions,
413
+ }];
414
+ }
415
+ });
416
+ });
417
+ },
418
+ /**
419
+ * This will patch a reminder. **Required Permissions** \"task-management.reminders.update\"
420
+ * @summary Update the reminder
421
+ * @param {PatchReminderRequestDto} patchReminderRequestDto
422
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
423
+ * @param {*} [options] Override http request option.
424
+ * @throws {RequiredError}
425
+ */
426
+ patchReminder: function (patchReminderRequestDto, authorization, options) {
427
+ if (options === void 0) { options = {}; }
428
+ return __awaiter(_this, void 0, void 0, function () {
429
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
430
+ return __generator(this, function (_a) {
431
+ switch (_a.label) {
432
+ case 0:
433
+ // verify required parameter 'patchReminderRequestDto' is not null or undefined
434
+ (0, common_1.assertParamExists)('patchReminder', 'patchReminderRequestDto', patchReminderRequestDto);
435
+ localVarPath = "/taskservice/v1/reminders";
436
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
437
+ if (configuration) {
438
+ baseOptions = configuration.baseOptions;
439
+ baseAccessToken = configuration.accessToken;
440
+ }
441
+ localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
442
+ localVarHeaderParameter = {};
443
+ localVarQueryParameter = {};
444
+ // authentication bearer required
445
+ // http bearer authentication required
446
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
447
+ case 1:
448
+ // authentication bearer required
449
+ // http bearer authentication required
450
+ _a.sent();
451
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
452
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
453
+ }
454
+ localVarHeaderParameter['Content-Type'] = 'application/json';
455
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
456
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
457
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
458
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchReminderRequestDto, localVarRequestOptions, configuration);
459
+ return [2 /*return*/, {
460
+ url: (0, common_1.toPathString)(localVarUrlObj),
461
+ options: localVarRequestOptions,
462
+ }];
463
+ }
464
+ });
465
+ });
466
+ },
467
+ };
468
+ };
469
+ exports.RemindersApiAxiosParamCreator = RemindersApiAxiosParamCreator;
470
+ /**
471
+ * RemindersApi - functional programming interface
472
+ * @export
473
+ */
474
+ var RemindersApiFp = function (configuration) {
475
+ var localVarAxiosParamCreator = (0, exports.RemindersApiAxiosParamCreator)(configuration);
476
+ return {
477
+ /**
478
+ * This will create a reminder. **Required Permissions** \"task-management.reminders.create\"
479
+ * @summary Create the reminder
480
+ * @param {CreateReminderRequestDto} createReminderRequestDto
481
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
482
+ * @param {*} [options] Override http request option.
483
+ * @throws {RequiredError}
484
+ */
485
+ createReminder: function (createReminderRequestDto, authorization, options) {
486
+ return __awaiter(this, void 0, void 0, function () {
487
+ var localVarAxiosArgs;
488
+ return __generator(this, function (_a) {
489
+ switch (_a.label) {
490
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createReminder(createReminderRequestDto, authorization, options)];
491
+ case 1:
492
+ localVarAxiosArgs = _a.sent();
493
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
494
+ }
495
+ });
496
+ });
497
+ },
498
+ /**
499
+ * This will delete a reminder. **Required Permissions** \"task-management.reminders.delete\"
500
+ * @summary Delete the reminder
501
+ * @param {string} code Unique identifier for the object.
502
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
503
+ * @param {*} [options] Override http request option.
504
+ * @throws {RequiredError}
505
+ */
506
+ deleteReminder: function (code, authorization, options) {
507
+ return __awaiter(this, void 0, void 0, function () {
508
+ var localVarAxiosArgs;
509
+ return __generator(this, function (_a) {
510
+ switch (_a.label) {
511
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteReminder(code, authorization, options)];
512
+ case 1:
513
+ localVarAxiosArgs = _a.sent();
514
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
515
+ }
516
+ });
517
+ });
518
+ },
519
+ /**
520
+ * This will get a reminder by code. **Required Permissions** \"task-management.reminders.view\"
521
+ * @summary Retrieve the reminder
522
+ * @param {string} code Unique identifier for the object.
523
+ * @param {string} expand
524
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
525
+ * @param {*} [options] Override http request option.
526
+ * @throws {RequiredError}
527
+ */
528
+ getReminder: function (code, expand, authorization, options) {
529
+ return __awaiter(this, void 0, void 0, function () {
530
+ var localVarAxiosArgs;
531
+ return __generator(this, function (_a) {
532
+ switch (_a.label) {
533
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getReminder(code, expand, authorization, options)];
534
+ case 1:
535
+ localVarAxiosArgs = _a.sent();
536
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
537
+ }
538
+ });
539
+ });
540
+ },
541
+ /**
542
+ * 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\"
543
+ * @summary Retrieve the reminder counts
544
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
545
+ * @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.
546
+ * @param {*} [options] Override http request option.
547
+ * @throws {RequiredError}
548
+ */
549
+ getReminderCounts: function (authorization, filters, options) {
550
+ return __awaiter(this, void 0, void 0, function () {
551
+ var localVarAxiosArgs;
552
+ return __generator(this, function (_a) {
553
+ switch (_a.label) {
554
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getReminderCounts(authorization, filters, options)];
555
+ case 1:
556
+ localVarAxiosArgs = _a.sent();
557
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
558
+ }
559
+ });
560
+ });
561
+ },
562
+ /**
563
+ * Retrieves a list of reminders. **Required Permissions** \"task-management.reminders.view\"
564
+ * @summary List reminders
565
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
566
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
567
+ * @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.
568
+ * @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;
569
+ * @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;
570
+ * @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;
571
+ * @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;
572
+ * @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;
573
+ * @param {*} [options] Override http request option.
574
+ * @throws {RequiredError}
575
+ */
576
+ listReminders: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
577
+ return __awaiter(this, void 0, void 0, function () {
578
+ var localVarAxiosArgs;
579
+ return __generator(this, function (_a) {
580
+ switch (_a.label) {
581
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
582
+ case 1:
583
+ localVarAxiosArgs = _a.sent();
584
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
585
+ }
586
+ });
587
+ });
588
+ },
589
+ /**
590
+ * This will mark a reminder as done. **Required Permissions** \"task-management.reminders.update\"
591
+ * @summary Create the reminder done
592
+ * @param {string} code
593
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
594
+ * @param {*} [options] Override http request option.
595
+ * @throws {RequiredError}
596
+ */
597
+ markReminderDone: function (code, authorization, options) {
598
+ return __awaiter(this, void 0, void 0, function () {
599
+ var localVarAxiosArgs;
600
+ return __generator(this, function (_a) {
601
+ switch (_a.label) {
602
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.markReminderDone(code, authorization, options)];
603
+ case 1:
604
+ localVarAxiosArgs = _a.sent();
605
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
606
+ }
607
+ });
608
+ });
609
+ },
610
+ /**
611
+ * This will patch a reminder. **Required Permissions** \"task-management.reminders.update\"
612
+ * @summary Update the reminder
613
+ * @param {PatchReminderRequestDto} patchReminderRequestDto
614
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
615
+ * @param {*} [options] Override http request option.
616
+ * @throws {RequiredError}
617
+ */
618
+ patchReminder: function (patchReminderRequestDto, authorization, options) {
619
+ return __awaiter(this, void 0, void 0, function () {
620
+ var localVarAxiosArgs;
621
+ return __generator(this, function (_a) {
622
+ switch (_a.label) {
623
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchReminder(patchReminderRequestDto, authorization, options)];
624
+ case 1:
625
+ localVarAxiosArgs = _a.sent();
626
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
627
+ }
628
+ });
629
+ });
630
+ },
631
+ };
632
+ };
633
+ exports.RemindersApiFp = RemindersApiFp;
634
+ /**
635
+ * RemindersApi - factory interface
636
+ * @export
637
+ */
638
+ var RemindersApiFactory = function (configuration, basePath, axios) {
639
+ var localVarFp = (0, exports.RemindersApiFp)(configuration);
640
+ return {
641
+ /**
642
+ * This will create a reminder. **Required Permissions** \"task-management.reminders.create\"
643
+ * @summary Create the reminder
644
+ * @param {CreateReminderRequestDto} createReminderRequestDto
645
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
646
+ * @param {*} [options] Override http request option.
647
+ * @throws {RequiredError}
648
+ */
649
+ createReminder: function (createReminderRequestDto, authorization, options) {
650
+ return localVarFp.createReminder(createReminderRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
651
+ },
652
+ /**
653
+ * This will delete a reminder. **Required Permissions** \"task-management.reminders.delete\"
654
+ * @summary Delete the reminder
655
+ * @param {string} code Unique identifier for the object.
656
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
657
+ * @param {*} [options] Override http request option.
658
+ * @throws {RequiredError}
659
+ */
660
+ deleteReminder: function (code, authorization, options) {
661
+ return localVarFp.deleteReminder(code, authorization, options).then(function (request) { return request(axios, basePath); });
662
+ },
663
+ /**
664
+ * This will get a reminder by code. **Required Permissions** \"task-management.reminders.view\"
665
+ * @summary Retrieve the reminder
666
+ * @param {string} code Unique identifier for the object.
667
+ * @param {string} expand
668
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
669
+ * @param {*} [options] Override http request option.
670
+ * @throws {RequiredError}
671
+ */
672
+ getReminder: function (code, expand, authorization, options) {
673
+ return localVarFp.getReminder(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
674
+ },
675
+ /**
676
+ * 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\"
677
+ * @summary Retrieve the reminder counts
678
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
679
+ * @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.
680
+ * @param {*} [options] Override http request option.
681
+ * @throws {RequiredError}
682
+ */
683
+ getReminderCounts: function (authorization, filters, options) {
684
+ return localVarFp.getReminderCounts(authorization, filters, options).then(function (request) { return request(axios, basePath); });
685
+ },
686
+ /**
687
+ * Retrieves a list of reminders. **Required Permissions** \"task-management.reminders.view\"
688
+ * @summary List reminders
689
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
690
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
691
+ * @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.
692
+ * @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;
693
+ * @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;
694
+ * @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;
695
+ * @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;
696
+ * @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;
697
+ * @param {*} [options] Override http request option.
698
+ * @throws {RequiredError}
699
+ */
700
+ listReminders: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
701
+ return localVarFp.listReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
702
+ },
703
+ /**
704
+ * This will mark a reminder as done. **Required Permissions** \"task-management.reminders.update\"
705
+ * @summary Create the reminder done
706
+ * @param {string} code
707
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
708
+ * @param {*} [options] Override http request option.
709
+ * @throws {RequiredError}
710
+ */
711
+ markReminderDone: function (code, authorization, options) {
712
+ return localVarFp.markReminderDone(code, authorization, options).then(function (request) { return request(axios, basePath); });
713
+ },
714
+ /**
715
+ * This will patch a reminder. **Required Permissions** \"task-management.reminders.update\"
716
+ * @summary Update the reminder
717
+ * @param {PatchReminderRequestDto} patchReminderRequestDto
718
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
719
+ * @param {*} [options] Override http request option.
720
+ * @throws {RequiredError}
721
+ */
722
+ patchReminder: function (patchReminderRequestDto, authorization, options) {
723
+ return localVarFp.patchReminder(patchReminderRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
724
+ },
725
+ };
726
+ };
727
+ exports.RemindersApiFactory = RemindersApiFactory;
728
+ /**
729
+ * RemindersApi - object-oriented interface
730
+ * @export
731
+ * @class RemindersApi
732
+ * @extends {BaseAPI}
733
+ */
734
+ var RemindersApi = /** @class */ (function (_super) {
735
+ __extends(RemindersApi, _super);
736
+ function RemindersApi() {
737
+ return _super !== null && _super.apply(this, arguments) || this;
738
+ }
739
+ /**
740
+ * This will create a reminder. **Required Permissions** \"task-management.reminders.create\"
741
+ * @summary Create the reminder
742
+ * @param {RemindersApiCreateReminderRequest} requestParameters Request parameters.
743
+ * @param {*} [options] Override http request option.
744
+ * @throws {RequiredError}
745
+ * @memberof RemindersApi
746
+ */
747
+ RemindersApi.prototype.createReminder = function (requestParameters, options) {
748
+ var _this = this;
749
+ return (0, exports.RemindersApiFp)(this.configuration).createReminder(requestParameters.createReminderRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
750
+ };
751
+ /**
752
+ * This will delete a reminder. **Required Permissions** \"task-management.reminders.delete\"
753
+ * @summary Delete the reminder
754
+ * @param {RemindersApiDeleteReminderRequest} requestParameters Request parameters.
755
+ * @param {*} [options] Override http request option.
756
+ * @throws {RequiredError}
757
+ * @memberof RemindersApi
758
+ */
759
+ RemindersApi.prototype.deleteReminder = function (requestParameters, options) {
760
+ var _this = this;
761
+ return (0, exports.RemindersApiFp)(this.configuration).deleteReminder(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
762
+ };
763
+ /**
764
+ * This will get a reminder by code. **Required Permissions** \"task-management.reminders.view\"
765
+ * @summary Retrieve the reminder
766
+ * @param {RemindersApiGetReminderRequest} requestParameters Request parameters.
767
+ * @param {*} [options] Override http request option.
768
+ * @throws {RequiredError}
769
+ * @memberof RemindersApi
770
+ */
771
+ RemindersApi.prototype.getReminder = function (requestParameters, options) {
772
+ var _this = this;
773
+ return (0, exports.RemindersApiFp)(this.configuration).getReminder(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
774
+ };
775
+ /**
776
+ * 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\"
777
+ * @summary Retrieve the reminder counts
778
+ * @param {RemindersApiGetReminderCountsRequest} requestParameters Request parameters.
779
+ * @param {*} [options] Override http request option.
780
+ * @throws {RequiredError}
781
+ * @memberof RemindersApi
782
+ */
783
+ RemindersApi.prototype.getReminderCounts = function (requestParameters, options) {
784
+ var _this = this;
785
+ if (requestParameters === void 0) { requestParameters = {}; }
786
+ return (0, exports.RemindersApiFp)(this.configuration).getReminderCounts(requestParameters.authorization, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
787
+ };
788
+ /**
789
+ * Retrieves a list of reminders. **Required Permissions** \"task-management.reminders.view\"
790
+ * @summary List reminders
791
+ * @param {RemindersApiListRemindersRequest} requestParameters Request parameters.
792
+ * @param {*} [options] Override http request option.
793
+ * @throws {RequiredError}
794
+ * @memberof RemindersApi
795
+ */
796
+ RemindersApi.prototype.listReminders = function (requestParameters, options) {
797
+ var _this = this;
798
+ if (requestParameters === void 0) { requestParameters = {}; }
799
+ return (0, exports.RemindersApiFp)(this.configuration).listReminders(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
800
+ };
801
+ /**
802
+ * This will mark a reminder as done. **Required Permissions** \"task-management.reminders.update\"
803
+ * @summary Create the reminder done
804
+ * @param {RemindersApiMarkReminderDoneRequest} requestParameters Request parameters.
805
+ * @param {*} [options] Override http request option.
806
+ * @throws {RequiredError}
807
+ * @memberof RemindersApi
808
+ */
809
+ RemindersApi.prototype.markReminderDone = function (requestParameters, options) {
810
+ var _this = this;
811
+ return (0, exports.RemindersApiFp)(this.configuration).markReminderDone(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
812
+ };
813
+ /**
814
+ * This will patch a reminder. **Required Permissions** \"task-management.reminders.update\"
815
+ * @summary Update the reminder
816
+ * @param {RemindersApiPatchReminderRequest} requestParameters Request parameters.
817
+ * @param {*} [options] Override http request option.
818
+ * @throws {RequiredError}
819
+ * @memberof RemindersApi
820
+ */
821
+ RemindersApi.prototype.patchReminder = function (requestParameters, options) {
822
+ var _this = this;
823
+ return (0, exports.RemindersApiFp)(this.configuration).patchReminder(requestParameters.patchReminderRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
824
+ };
825
+ return RemindersApi;
826
+ }(base_1.BaseAPI));
827
+ exports.RemindersApi = RemindersApi;