@emilgroup/task-sdk 1.3.1-beta.4 → 1.3.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@1.3.1-beta.4 --save
20
+ npm install @emilgroup/task-sdk@1.3.1-beta.6 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/task-sdk@1.3.1-beta.4
24
+ yarn add @emilgroup/task-sdk@1.3.1-beta.6
25
25
  ```
26
26
 
27
27
  And then you can import `TasksApi`.
@@ -187,13 +187,14 @@ export const RemindersApiAxiosParamCreator = function (configuration?: Configura
187
187
  };
188
188
  },
189
189
  /**
190
- * This will get reminder counts by status. **Required Permissions** \"task-management.tasks.view\"
190
+ * 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\"
191
191
  * @summary Retrieve the reminder counts
192
192
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
193
+ * @param {string} [filters] Filters the response by one or multiple fields using the advanced filter syntax (same as the list reminders endpoint). Counts are computed over the filtered set.
193
194
  * @param {*} [options] Override http request option.
194
195
  * @throws {RequiredError}
195
196
  */
196
- getReminderCounts: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
197
+ getReminderCounts: async (authorization?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
197
198
  const localVarPath = `/taskservice/v1/reminders/counts`;
198
199
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
199
200
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -212,6 +213,10 @@ export const RemindersApiAxiosParamCreator = function (configuration?: Configura
212
213
  // http bearer authentication required
213
214
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
214
215
 
216
+ if (filters !== undefined) {
217
+ localVarQueryParameter['filters'] = filters;
218
+ }
219
+
215
220
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
216
221
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
217
222
  }
@@ -443,14 +448,15 @@ export const RemindersApiFp = function(configuration?: Configuration) {
443
448
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
444
449
  },
445
450
  /**
446
- * This will get reminder counts by status. **Required Permissions** \"task-management.tasks.view\"
451
+ * 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\"
447
452
  * @summary Retrieve the reminder counts
448
453
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
454
+ * @param {string} [filters] Filters the response by one or multiple fields using the advanced filter syntax (same as the list reminders endpoint). Counts are computed over the filtered set.
449
455
  * @param {*} [options] Override http request option.
450
456
  * @throws {RequiredError}
451
457
  */
452
- async getReminderCounts(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetReminderCountsResponseClass>> {
453
- const localVarAxiosArgs = await localVarAxiosParamCreator.getReminderCounts(authorization, options);
458
+ async getReminderCounts(authorization?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetReminderCountsResponseClass>> {
459
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getReminderCounts(authorization, filters, options);
454
460
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
455
461
  },
456
462
  /**
@@ -540,14 +546,15 @@ export const RemindersApiFactory = function (configuration?: Configuration, base
540
546
  return localVarFp.getReminder(code, expand, authorization, options).then((request) => request(axios, basePath));
541
547
  },
542
548
  /**
543
- * This will get reminder counts by status. **Required Permissions** \"task-management.tasks.view\"
549
+ * 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\"
544
550
  * @summary Retrieve the reminder counts
545
551
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
552
+ * @param {string} [filters] Filters the response by one or multiple fields using the advanced filter syntax (same as the list reminders endpoint). Counts are computed over the filtered set.
546
553
  * @param {*} [options] Override http request option.
547
554
  * @throws {RequiredError}
548
555
  */
549
- getReminderCounts(authorization?: string, options?: any): AxiosPromise<GetReminderCountsResponseClass> {
550
- return localVarFp.getReminderCounts(authorization, options).then((request) => request(axios, basePath));
556
+ getReminderCounts(authorization?: string, filters?: string, options?: any): AxiosPromise<GetReminderCountsResponseClass> {
557
+ return localVarFp.getReminderCounts(authorization, filters, options).then((request) => request(axios, basePath));
551
558
  },
552
559
  /**
553
560
  * Retrieves a list of reminders. **Required Permissions** \"task-management.tasks.view\"
@@ -673,6 +680,13 @@ export interface RemindersApiGetReminderCountsRequest {
673
680
  * @memberof RemindersApiGetReminderCounts
674
681
  */
675
682
  readonly authorization?: string
683
+
684
+ /**
685
+ * Filters the response by one or multiple fields using the advanced filter syntax (same as the list reminders endpoint). Counts are computed over the filtered set.
686
+ * @type {string}
687
+ * @memberof RemindersApiGetReminderCounts
688
+ */
689
+ readonly filters?: string
676
690
  }
677
691
 
678
692
  /**
@@ -824,7 +838,7 @@ export class RemindersApi extends BaseAPI {
824
838
  }
825
839
 
826
840
  /**
827
- * This will get reminder counts by status. **Required Permissions** \"task-management.tasks.view\"
841
+ * 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\"
828
842
  * @summary Retrieve the reminder counts
829
843
  * @param {RemindersApiGetReminderCountsRequest} requestParameters Request parameters.
830
844
  * @param {*} [options] Override http request option.
@@ -832,7 +846,7 @@ export class RemindersApi extends BaseAPI {
832
846
  * @memberof RemindersApi
833
847
  */
834
848
  public getReminderCounts(requestParameters: RemindersApiGetReminderCountsRequest = {}, options?: AxiosRequestConfig) {
835
- return RemindersApiFp(this.configuration).getReminderCounts(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
849
+ return RemindersApiFp(this.configuration).getReminderCounts(requestParameters.authorization, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
836
850
  }
837
851
 
838
852
  /**
@@ -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.
@@ -244,13 +244,14 @@ var RemindersApiAxiosParamCreator = function (configuration) {
244
244
  });
245
245
  },
246
246
  /**
247
- * This will get reminder counts by status. **Required Permissions** \"task-management.tasks.view\"
247
+ * 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\"
248
248
  * @summary Retrieve the reminder counts
249
249
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
250
+ * @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.
250
251
  * @param {*} [options] Override http request option.
251
252
  * @throws {RequiredError}
252
253
  */
253
- getReminderCounts: function (authorization, options) {
254
+ getReminderCounts: function (authorization, filters, options) {
254
255
  if (options === void 0) { options = {}; }
255
256
  return __awaiter(_this, void 0, void 0, function () {
256
257
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -273,6 +274,9 @@ var RemindersApiAxiosParamCreator = function (configuration) {
273
274
  // authentication bearer required
274
275
  // http bearer authentication required
275
276
  _a.sent();
277
+ if (filters !== undefined) {
278
+ localVarQueryParameter['filters'] = filters;
279
+ }
276
280
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
277
281
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
278
282
  }
@@ -531,18 +535,19 @@ var RemindersApiFp = function (configuration) {
531
535
  });
532
536
  },
533
537
  /**
534
- * This will get reminder counts by status. **Required Permissions** \"task-management.tasks.view\"
538
+ * 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\"
535
539
  * @summary Retrieve the reminder counts
536
540
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
541
+ * @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.
537
542
  * @param {*} [options] Override http request option.
538
543
  * @throws {RequiredError}
539
544
  */
540
- getReminderCounts: function (authorization, options) {
545
+ getReminderCounts: function (authorization, filters, options) {
541
546
  return __awaiter(this, void 0, void 0, function () {
542
547
  var localVarAxiosArgs;
543
548
  return __generator(this, function (_a) {
544
549
  switch (_a.label) {
545
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getReminderCounts(authorization, options)];
550
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getReminderCounts(authorization, filters, options)];
546
551
  case 1:
547
552
  localVarAxiosArgs = _a.sent();
548
553
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -664,14 +669,15 @@ var RemindersApiFactory = function (configuration, basePath, axios) {
664
669
  return localVarFp.getReminder(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
665
670
  },
666
671
  /**
667
- * This will get reminder counts by status. **Required Permissions** \"task-management.tasks.view\"
672
+ * 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\"
668
673
  * @summary Retrieve the reminder counts
669
674
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
675
+ * @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.
670
676
  * @param {*} [options] Override http request option.
671
677
  * @throws {RequiredError}
672
678
  */
673
- getReminderCounts: function (authorization, options) {
674
- return localVarFp.getReminderCounts(authorization, options).then(function (request) { return request(axios, basePath); });
679
+ getReminderCounts: function (authorization, filters, options) {
680
+ return localVarFp.getReminderCounts(authorization, filters, options).then(function (request) { return request(axios, basePath); });
675
681
  },
676
682
  /**
677
683
  * Retrieves a list of reminders. **Required Permissions** \"task-management.tasks.view\"
@@ -763,7 +769,7 @@ var RemindersApi = /** @class */ (function (_super) {
763
769
  return (0, exports.RemindersApiFp)(this.configuration).getReminder(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
764
770
  };
765
771
  /**
766
- * This will get reminder counts by status. **Required Permissions** \"task-management.tasks.view\"
772
+ * 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\"
767
773
  * @summary Retrieve the reminder counts
768
774
  * @param {RemindersApiGetReminderCountsRequest} requestParameters Request parameters.
769
775
  * @param {*} [options] Override http request option.
@@ -773,7 +779,7 @@ var RemindersApi = /** @class */ (function (_super) {
773
779
  RemindersApi.prototype.getReminderCounts = function (requestParameters, options) {
774
780
  var _this = this;
775
781
  if (requestParameters === void 0) { requestParameters = {}; }
776
- return (0, exports.RemindersApiFp)(this.configuration).getReminderCounts(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
782
+ return (0, exports.RemindersApiFp)(this.configuration).getReminderCounts(requestParameters.authorization, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
777
783
  };
778
784
  /**
779
785
  * 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",
3
- "version": "1.3.1-beta.4",
3
+ "version": "1.3.1-beta.6",
4
4
  "description": "OpenAPI client for @emilgroup/task-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [