@emilgroup/task-sdk-node 1.2.1-beta.4 → 1.2.1-beta.6

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.
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/task-sdk-node@1.2.1-beta.4 --save
20
+ npm install @emilgroup/task-sdk-node@1.2.1-beta.6 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/task-sdk-node@1.2.1-beta.4
24
+ yarn add @emilgroup/task-sdk-node@1.2.1-beta.6
25
25
  ```
26
26
 
27
27
  And then you can import `TasksApi`.
@@ -191,13 +191,14 @@ export const RemindersApiAxiosParamCreator = function (configuration?: Configura
191
191
  };
192
192
  },
193
193
  /**
194
- * This will get reminder counts by status. **Required Permissions** \"task-management.tasks.view\"
194
+ * This will get reminder counts by status. Accepts the same advanced `filters` query parameter as the list reminders endpoint. **Required Permissions** \"task-management.tasks.view\"
195
195
  * @summary Retrieve the reminder counts
196
196
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
197
+ * @param {string} [filters] Filters the response by one or multiple fields using the advanced filter syntax (same as the list reminders endpoint). Counts are computed over the filtered set.
197
198
  * @param {*} [options] Override http request option.
198
199
  * @throws {RequiredError}
199
200
  */
200
- getReminderCounts: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
201
+ getReminderCounts: async (authorization?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
201
202
  const localVarPath = `/taskservice/v1/reminders/counts`;
202
203
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
203
204
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -216,6 +217,10 @@ export const RemindersApiAxiosParamCreator = function (configuration?: Configura
216
217
  // http bearer authentication required
217
218
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
218
219
 
220
+ if (filters !== undefined) {
221
+ localVarQueryParameter['filters'] = filters;
222
+ }
223
+
219
224
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
220
225
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
221
226
  }
@@ -447,14 +452,15 @@ export const RemindersApiFp = function(configuration?: Configuration) {
447
452
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
448
453
  },
449
454
  /**
450
- * This will get reminder counts by status. **Required Permissions** \"task-management.tasks.view\"
455
+ * This will get reminder counts by status. Accepts the same advanced `filters` query parameter as the list reminders endpoint. **Required Permissions** \"task-management.tasks.view\"
451
456
  * @summary Retrieve the reminder counts
452
457
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
458
+ * @param {string} [filters] Filters the response by one or multiple fields using the advanced filter syntax (same as the list reminders endpoint). Counts are computed over the filtered set.
453
459
  * @param {*} [options] Override http request option.
454
460
  * @throws {RequiredError}
455
461
  */
456
- async getReminderCounts(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetReminderCountsResponseClass>> {
457
- const localVarAxiosArgs = await localVarAxiosParamCreator.getReminderCounts(authorization, options);
462
+ async getReminderCounts(authorization?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetReminderCountsResponseClass>> {
463
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getReminderCounts(authorization, filters, options);
458
464
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
459
465
  },
460
466
  /**
@@ -544,14 +550,15 @@ export const RemindersApiFactory = function (configuration?: Configuration, base
544
550
  return localVarFp.getReminder(code, expand, authorization, options).then((request) => request(axios, basePath));
545
551
  },
546
552
  /**
547
- * This will get reminder counts by status. **Required Permissions** \"task-management.tasks.view\"
553
+ * This will get reminder counts by status. Accepts the same advanced `filters` query parameter as the list reminders endpoint. **Required Permissions** \"task-management.tasks.view\"
548
554
  * @summary Retrieve the reminder counts
549
555
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
556
+ * @param {string} [filters] Filters the response by one or multiple fields using the advanced filter syntax (same as the list reminders endpoint). Counts are computed over the filtered set.
550
557
  * @param {*} [options] Override http request option.
551
558
  * @throws {RequiredError}
552
559
  */
553
- getReminderCounts(authorization?: string, options?: any): AxiosPromise<GetReminderCountsResponseClass> {
554
- return localVarFp.getReminderCounts(authorization, options).then((request) => request(axios, basePath));
560
+ getReminderCounts(authorization?: string, filters?: string, options?: any): AxiosPromise<GetReminderCountsResponseClass> {
561
+ return localVarFp.getReminderCounts(authorization, filters, options).then((request) => request(axios, basePath));
555
562
  },
556
563
  /**
557
564
  * Retrieves a list of reminders. **Required Permissions** \"task-management.tasks.view\"
@@ -677,6 +684,13 @@ export interface RemindersApiGetReminderCountsRequest {
677
684
  * @memberof RemindersApiGetReminderCounts
678
685
  */
679
686
  readonly authorization?: string
687
+
688
+ /**
689
+ * Filters the response by one or multiple fields using the advanced filter syntax (same as the list reminders endpoint). Counts are computed over the filtered set.
690
+ * @type {string}
691
+ * @memberof RemindersApiGetReminderCounts
692
+ */
693
+ readonly filters?: string
680
694
  }
681
695
 
682
696
  /**
@@ -828,7 +842,7 @@ export class RemindersApi extends BaseAPI {
828
842
  }
829
843
 
830
844
  /**
831
- * This will get reminder counts by status. **Required Permissions** \"task-management.tasks.view\"
845
+ * This will get reminder counts by status. Accepts the same advanced `filters` query parameter as the list reminders endpoint. **Required Permissions** \"task-management.tasks.view\"
832
846
  * @summary Retrieve the reminder counts
833
847
  * @param {RemindersApiGetReminderCountsRequest} requestParameters Request parameters.
834
848
  * @param {*} [options] Override http request option.
@@ -836,7 +850,7 @@ export class RemindersApi extends BaseAPI {
836
850
  * @memberof RemindersApi
837
851
  */
838
852
  public getReminderCounts(requestParameters: RemindersApiGetReminderCountsRequest = {}, options?: AxiosRequestConfig) {
839
- return RemindersApiFp(this.configuration).getReminderCounts(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
853
+ return RemindersApiFp(this.configuration).getReminderCounts(requestParameters.authorization, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
840
854
  }
841
855
 
842
856
  /**
@@ -54,13 +54,14 @@ export declare const RemindersApiAxiosParamCreator: (configuration?: Configurati
54
54
  */
55
55
  getReminder: (code: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
56
56
  /**
57
- * This will get reminder counts by status. **Required Permissions** \"task-management.tasks.view\"
57
+ * This will get reminder counts by status. Accepts the same advanced `filters` query parameter as the list reminders endpoint. **Required Permissions** \"task-management.tasks.view\"
58
58
  * @summary Retrieve the reminder counts
59
59
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
60
+ * @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.
60
61
  * @param {*} [options] Override http request option.
61
62
  * @throws {RequiredError}
62
63
  */
63
- getReminderCounts: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
64
+ getReminderCounts: (authorization?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
64
65
  /**
65
66
  * Retrieves a list of reminders. **Required Permissions** \"task-management.tasks.view\"
66
67
  * @summary List reminders
@@ -129,13 +130,14 @@ export declare const RemindersApiFp: (configuration?: Configuration) => {
129
130
  */
130
131
  getReminder(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetReminderResponseClass>>;
131
132
  /**
132
- * This will get reminder counts by status. **Required Permissions** \"task-management.tasks.view\"
133
+ * This will get reminder counts by status. Accepts the same advanced `filters` query parameter as the list reminders endpoint. **Required Permissions** \"task-management.tasks.view\"
133
134
  * @summary Retrieve the reminder counts
134
135
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
136
+ * @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.
135
137
  * @param {*} [options] Override http request option.
136
138
  * @throws {RequiredError}
137
139
  */
138
- getReminderCounts(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetReminderCountsResponseClass>>;
140
+ getReminderCounts(authorization?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetReminderCountsResponseClass>>;
139
141
  /**
140
142
  * Retrieves a list of reminders. **Required Permissions** \"task-management.tasks.view\"
141
143
  * @summary List reminders
@@ -204,13 +206,14 @@ export declare const RemindersApiFactory: (configuration?: Configuration, basePa
204
206
  */
205
207
  getReminder(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetReminderResponseClass>;
206
208
  /**
207
- * This will get reminder counts by status. **Required Permissions** \"task-management.tasks.view\"
209
+ * This will get reminder counts by status. Accepts the same advanced `filters` query parameter as the list reminders endpoint. **Required Permissions** \"task-management.tasks.view\"
208
210
  * @summary Retrieve the reminder counts
209
211
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
212
+ * @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.
210
213
  * @param {*} [options] Override http request option.
211
214
  * @throws {RequiredError}
212
215
  */
213
- getReminderCounts(authorization?: string, options?: any): AxiosPromise<GetReminderCountsResponseClass>;
216
+ getReminderCounts(authorization?: string, filters?: string, options?: any): AxiosPromise<GetReminderCountsResponseClass>;
214
217
  /**
215
218
  * Retrieves a list of reminders. **Required Permissions** \"task-management.tasks.view\"
216
219
  * @summary List reminders
@@ -320,6 +323,12 @@ export interface RemindersApiGetReminderCountsRequest {
320
323
  * @memberof RemindersApiGetReminderCounts
321
324
  */
322
325
  readonly authorization?: string;
326
+ /**
327
+ * 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.
328
+ * @type {string}
329
+ * @memberof RemindersApiGetReminderCounts
330
+ */
331
+ readonly filters?: string;
323
332
  }
324
333
  /**
325
334
  * Request parameters for listReminders operation in RemindersApi.
@@ -449,7 +458,7 @@ export declare class RemindersApi extends BaseAPI {
449
458
  */
450
459
  getReminder(requestParameters: RemindersApiGetReminderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetReminderResponseClass, any, {}>>;
451
460
  /**
452
- * This will get reminder counts by status. **Required Permissions** \"task-management.tasks.view\"
461
+ * This will get reminder counts by status. Accepts the same advanced `filters` query parameter as the list reminders endpoint. **Required Permissions** \"task-management.tasks.view\"
453
462
  * @summary Retrieve the reminder counts
454
463
  * @param {RemindersApiGetReminderCountsRequest} requestParameters Request parameters.
455
464
  * @param {*} [options] Override http request option.
@@ -248,13 +248,14 @@ var RemindersApiAxiosParamCreator = function (configuration) {
248
248
  });
249
249
  },
250
250
  /**
251
- * This will get reminder counts by status. **Required Permissions** \"task-management.tasks.view\"
251
+ * This will get reminder counts by status. Accepts the same advanced `filters` query parameter as the list reminders endpoint. **Required Permissions** \"task-management.tasks.view\"
252
252
  * @summary Retrieve the reminder counts
253
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.
254
255
  * @param {*} [options] Override http request option.
255
256
  * @throws {RequiredError}
256
257
  */
257
- getReminderCounts: function (authorization, options) {
258
+ getReminderCounts: function (authorization, filters, options) {
258
259
  if (options === void 0) { options = {}; }
259
260
  return __awaiter(_this, void 0, void 0, function () {
260
261
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -277,6 +278,9 @@ var RemindersApiAxiosParamCreator = function (configuration) {
277
278
  // authentication bearer required
278
279
  // http bearer authentication required
279
280
  _a.sent();
281
+ if (filters !== undefined) {
282
+ localVarQueryParameter['filters'] = filters;
283
+ }
280
284
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
281
285
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
282
286
  }
@@ -535,18 +539,19 @@ var RemindersApiFp = function (configuration) {
535
539
  });
536
540
  },
537
541
  /**
538
- * This will get reminder counts by status. **Required Permissions** \"task-management.tasks.view\"
542
+ * This will get reminder counts by status. Accepts the same advanced `filters` query parameter as the list reminders endpoint. **Required Permissions** \"task-management.tasks.view\"
539
543
  * @summary Retrieve the reminder counts
540
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.
541
546
  * @param {*} [options] Override http request option.
542
547
  * @throws {RequiredError}
543
548
  */
544
- getReminderCounts: function (authorization, options) {
549
+ getReminderCounts: function (authorization, filters, options) {
545
550
  return __awaiter(this, void 0, void 0, function () {
546
551
  var localVarAxiosArgs;
547
552
  return __generator(this, function (_a) {
548
553
  switch (_a.label) {
549
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getReminderCounts(authorization, options)];
554
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getReminderCounts(authorization, filters, options)];
550
555
  case 1:
551
556
  localVarAxiosArgs = _a.sent();
552
557
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -668,14 +673,15 @@ var RemindersApiFactory = function (configuration, basePath, axios) {
668
673
  return localVarFp.getReminder(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
669
674
  },
670
675
  /**
671
- * This will get reminder counts by status. **Required Permissions** \"task-management.tasks.view\"
676
+ * This will get reminder counts by status. Accepts the same advanced `filters` query parameter as the list reminders endpoint. **Required Permissions** \"task-management.tasks.view\"
672
677
  * @summary Retrieve the reminder counts
673
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.
674
680
  * @param {*} [options] Override http request option.
675
681
  * @throws {RequiredError}
676
682
  */
677
- getReminderCounts: function (authorization, options) {
678
- return localVarFp.getReminderCounts(authorization, options).then(function (request) { return request(axios, basePath); });
683
+ getReminderCounts: function (authorization, filters, options) {
684
+ return localVarFp.getReminderCounts(authorization, filters, options).then(function (request) { return request(axios, basePath); });
679
685
  },
680
686
  /**
681
687
  * Retrieves a list of reminders. **Required Permissions** \"task-management.tasks.view\"
@@ -767,7 +773,7 @@ var RemindersApi = /** @class */ (function (_super) {
767
773
  return (0, exports.RemindersApiFp)(this.configuration).getReminder(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
768
774
  };
769
775
  /**
770
- * This will get reminder counts by status. **Required Permissions** \"task-management.tasks.view\"
776
+ * This will get reminder counts by status. Accepts the same advanced `filters` query parameter as the list reminders endpoint. **Required Permissions** \"task-management.tasks.view\"
771
777
  * @summary Retrieve the reminder counts
772
778
  * @param {RemindersApiGetReminderCountsRequest} requestParameters Request parameters.
773
779
  * @param {*} [options] Override http request option.
@@ -777,7 +783,7 @@ var RemindersApi = /** @class */ (function (_super) {
777
783
  RemindersApi.prototype.getReminderCounts = function (requestParameters, options) {
778
784
  var _this = this;
779
785
  if (requestParameters === void 0) { requestParameters = {}; }
780
- return (0, exports.RemindersApiFp)(this.configuration).getReminderCounts(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
786
+ return (0, exports.RemindersApiFp)(this.configuration).getReminderCounts(requestParameters.authorization, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
781
787
  };
782
788
  /**
783
789
  * Retrieves a list of reminders. **Required Permissions** \"task-management.tasks.view\"
@@ -27,4 +27,16 @@ export interface GetReminderCountsResponseClass {
27
27
  * @memberof GetReminderCountsResponseClass
28
28
  */
29
29
  'overdueCount': number;
30
+ /**
31
+ * plannedCount
32
+ * @type {number}
33
+ * @memberof GetReminderCountsResponseClass
34
+ */
35
+ 'plannedCount': number;
36
+ /**
37
+ * doneCount
38
+ * @type {number}
39
+ * @memberof GetReminderCountsResponseClass
40
+ */
41
+ 'doneCount': number;
30
42
  }
@@ -32,5 +32,17 @@ export interface GetReminderCountsResponseClass {
32
32
  * @memberof GetReminderCountsResponseClass
33
33
  */
34
34
  'overdueCount': number;
35
+ /**
36
+ * plannedCount
37
+ * @type {number}
38
+ * @memberof GetReminderCountsResponseClass
39
+ */
40
+ 'plannedCount': number;
41
+ /**
42
+ * doneCount
43
+ * @type {number}
44
+ * @memberof GetReminderCountsResponseClass
45
+ */
46
+ 'doneCount': number;
35
47
  }
36
48
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/task-sdk-node",
3
- "version": "1.2.1-beta.4",
3
+ "version": "1.2.1-beta.6",
4
4
  "description": "OpenAPI client for @emilgroup/task-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [