@cinerino/sdk 3.162.0-alpha.5 → 3.162.0-alpha.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.
@@ -9,17 +9,23 @@ async function main() {
9
9
  const loginTicket = authClient.verifyIdToken({});
10
10
  console.log('username is', loginTicket.getUsername());
11
11
 
12
+ // const authClient = new client.auth.ClientCredentials({
13
+ // domain: <string>process.env.TEST_AUTHORIZE_SERVER_DOMAIN,
14
+ // clientId: <string>process.env.TEST_CLIENT_ID,
15
+ // clientSecret: <string>process.env.TEST_CLIENT_SECRET,
16
+ // scopes: [],
17
+ // state: ''
18
+ // });
19
+
12
20
  const projectService = new client.service.Project({
13
21
  endpoint: <string>process.env.API_ENDPOINT,
14
22
  auth: authClient
15
23
  });
16
24
 
17
- const { data } = await projectService.search({
18
- limit: 10,
19
- page: 1
25
+ const project = await projectService.findById({
26
+ id: String(process.env.PROJECT_ID)
20
27
  });
21
- console.log(data);
22
- console.log(data.length, 'projects returned');
28
+ console.log(project);
23
29
  }
24
30
 
25
31
  main()
@@ -1,5 +1,5 @@
1
1
  import * as factory from '../factory';
2
- import { IOptions, ISearchResult, Service } from '../service';
2
+ import { IOptions, IProjectionSearchConditions, ISearchResult, Service } from '../service';
3
3
  export interface ISearchProjectConditions {
4
4
  limit?: number;
5
5
  page?: number;
@@ -16,7 +16,7 @@ export declare class MeService extends Service<IOptions> {
16
16
  /**
17
17
  * マイプロジェクト検索
18
18
  */
19
- searchProjects(params: ISearchProjectConditions): Promise<ISearchResult<Omit<factory.project.IProject, 'settings'>[]>>;
19
+ searchProjects(params: ISearchProjectConditions & IProjectionSearchConditions): Promise<ISearchResult<Omit<factory.project.IProject, 'settings'>[]>>;
20
20
  /**
21
21
  * リクエストユーザーのPMとしてのロールを検索する
22
22
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "3.162.0-alpha.5",
3
+ "version": "3.162.0-alpha.6",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {