@cinerino/sdk 16.4.0-alpha.7 → 16.4.0-alpha.8

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.
@@ -1,6 +1,12 @@
1
1
  import { factory } from '../factory';
2
2
  import { IOptions, Service } from '../service';
3
3
  type IKeyOfProjection = keyof factory.task.ITask<factory.taskName>;
4
+ type IFindParams = Pick<factory.task.ISearchConditions, 'dateAborted' | 'id' | 'identifier' | 'limit' | 'name' | 'page' | 'runsFrom' | 'runsThrough' | 'sort' | 'status'> & {
5
+ $projection?: Partial<Record<IKeyOfProjection, 1>>;
6
+ data?: never;
7
+ lastTriedFrom?: never;
8
+ lastTriedThrough?: never;
9
+ };
4
10
  /**
5
11
  * タスクサービス
6
12
  */
@@ -15,8 +21,6 @@ export declare class TaskService extends Service<IOptions> {
15
21
  /**
16
22
  * タスク検索
17
23
  */
18
- projectFields(params: Omit<factory.task.ISearchConditions, 'project'> & {
19
- $projection?: Partial<Record<IKeyOfProjection, 1>>;
20
- }): Promise<factory.task.ITask<factory.taskName>[]>;
24
+ findTasks(params: IFindParams): Promise<factory.task.ITask<factory.taskName>[]>;
21
25
  }
22
26
  export {};
@@ -30,7 +30,7 @@ class TaskService extends service_1.Service {
30
30
  /**
31
31
  * タスク検索
32
32
  */
33
- async projectFields(params) {
33
+ async findTasks(params) {
34
34
  return this.fetch({
35
35
  uri: '/tasks',
36
36
  method: 'GET',