@cinerino/sdk 3.162.0-alpha.4 → 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.
@@ -8180,6 +8180,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
8180
8180
  exports.ProjectService = void 0;
8181
8181
  var http_status_1 = require("http-status");
8182
8182
  var service_1 = require("../service");
8183
+ // export interface IGetHealthResult {
8184
+ // version?: string;
8185
+ // status?: number;
8186
+ // message?: string;
8187
+ // }
8183
8188
  /**
8184
8189
  * プロジェクトサービス
8185
8190
  */
@@ -8287,24 +8292,6 @@ var ProjectService = /** @class */ (function (_super) {
8287
8292
  });
8288
8293
  });
8289
8294
  };
8290
- /**
8291
- * DB統計取得
8292
- */
8293
- ProjectService.prototype.getDBStats = function (_) {
8294
- return __awaiter(this, void 0, void 0, function () {
8295
- var _this = this;
8296
- return __generator(this, function (_a) {
8297
- return [2 /*return*/, this.fetch({
8298
- uri: '/stats/dbStats',
8299
- method: 'GET',
8300
- expectedStatusCodes: [http_status_1.OK]
8301
- })
8302
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
8303
- return [2 /*return*/, response.json()];
8304
- }); }); })];
8305
- });
8306
- });
8307
- };
8308
8295
  return ProjectService;
8309
8296
  }(service_1.Service));
8310
8297
  exports.ProjectService = ProjectService;
@@ -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
  */
@@ -1,10 +1,5 @@
1
1
  import * as factory from '../factory';
2
2
  import { IOptions, Service } from '../service';
3
- export interface IGetHealthResult {
4
- version?: string;
5
- status?: number;
6
- message?: string;
7
- }
8
3
  /**
9
4
  * プロジェクトサービス
10
5
  */
@@ -34,8 +29,4 @@ export declare class ProjectService extends Service<IOptions> {
34
29
  cleanUpDatabase(params: {
35
30
  id: string;
36
31
  }): Promise<void>;
37
- /**
38
- * DB統計取得
39
- */
40
- getDBStats(_: any): Promise<any>;
41
32
  }
@@ -76,6 +76,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
76
76
  exports.ProjectService = void 0;
77
77
  var http_status_1 = require("http-status");
78
78
  var service_1 = require("../service");
79
+ // export interface IGetHealthResult {
80
+ // version?: string;
81
+ // status?: number;
82
+ // message?: string;
83
+ // }
79
84
  /**
80
85
  * プロジェクトサービス
81
86
  */
@@ -183,24 +188,6 @@ var ProjectService = /** @class */ (function (_super) {
183
188
  });
184
189
  });
185
190
  };
186
- /**
187
- * DB統計取得
188
- */
189
- ProjectService.prototype.getDBStats = function (_) {
190
- return __awaiter(this, void 0, void 0, function () {
191
- var _this = this;
192
- return __generator(this, function (_a) {
193
- return [2 /*return*/, this.fetch({
194
- uri: '/stats/dbStats',
195
- method: 'GET',
196
- expectedStatusCodes: [http_status_1.OK]
197
- })
198
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
199
- return [2 /*return*/, response.json()];
200
- }); }); })];
201
- });
202
- });
203
- };
204
191
  return ProjectService;
205
192
  }(service_1.Service));
206
193
  exports.ProjectService = ProjectService;
package/lib/bundle.js CHANGED
@@ -8180,6 +8180,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
8180
8180
  exports.ProjectService = void 0;
8181
8181
  var http_status_1 = require("http-status");
8182
8182
  var service_1 = require("../service");
8183
+ // export interface IGetHealthResult {
8184
+ // version?: string;
8185
+ // status?: number;
8186
+ // message?: string;
8187
+ // }
8183
8188
  /**
8184
8189
  * プロジェクトサービス
8185
8190
  */
@@ -8287,24 +8292,6 @@ var ProjectService = /** @class */ (function (_super) {
8287
8292
  });
8288
8293
  });
8289
8294
  };
8290
- /**
8291
- * DB統計取得
8292
- */
8293
- ProjectService.prototype.getDBStats = function (_) {
8294
- return __awaiter(this, void 0, void 0, function () {
8295
- var _this = this;
8296
- return __generator(this, function (_a) {
8297
- return [2 /*return*/, this.fetch({
8298
- uri: '/stats/dbStats',
8299
- method: 'GET',
8300
- expectedStatusCodes: [http_status_1.OK]
8301
- })
8302
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
8303
- return [2 /*return*/, response.json()];
8304
- }); }); })];
8305
- });
8306
- });
8307
- };
8308
8295
  return ProjectService;
8309
8296
  }(service_1.Service));
8310
8297
  exports.ProjectService = ProjectService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "3.162.0-alpha.4",
3
+ "version": "3.162.0-alpha.6",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {