@cinerino/sdk 3.162.0-alpha.3 → 3.162.0-alpha.5

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
  */
@@ -8209,45 +8214,34 @@ var ProjectService = /** @class */ (function (_super) {
8209
8214
  };
8210
8215
  /**
8211
8216
  * プロジェクト検索
8217
+ * 廃止(2023-07-26~)
8212
8218
  */
8213
- ProjectService.prototype.search = function (params) {
8214
- return __awaiter(this, void 0, void 0, function () {
8215
- var _this = this;
8216
- return __generator(this, function (_a) {
8217
- return [2 /*return*/, this.fetch({
8218
- uri: '/projects',
8219
- method: 'GET',
8220
- qs: params,
8221
- expectedStatusCodes: [http_status_1.OK]
8222
- })
8223
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
8224
- var _a;
8225
- return __generator(this, function (_b) {
8226
- switch (_b.label) {
8227
- case 0:
8228
- _a = {};
8229
- return [4 /*yield*/, response.json()];
8230
- case 1: return [2 /*return*/, (_a.data = _b.sent(),
8231
- _a)];
8232
- }
8233
- });
8234
- }); })];
8235
- });
8236
- });
8237
- };
8219
+ // public async search(
8220
+ // params: factory.project.ISearchConditions & IProjectionSearchConditions
8221
+ // ): Promise<ISearchResult<factory.project.IProject[]>> {
8222
+ // return this.fetch({
8223
+ // uri: '/projects',
8224
+ // method: 'GET',
8225
+ // qs: params,
8226
+ // expectedStatusCodes: [OK]
8227
+ // })
8228
+ // .then(async (response) => {
8229
+ // return {
8230
+ // data: await response.json()
8231
+ // };
8232
+ // });
8233
+ // }
8238
8234
  /**
8239
- * プロジェクト取得
8235
+ * プロジェクト設定検索
8240
8236
  */
8241
- ProjectService.prototype.findById = function (params) {
8237
+ ProjectService.prototype.findSettingsById = function (params) {
8242
8238
  return __awaiter(this, void 0, void 0, function () {
8243
- var id, query;
8244
8239
  var _this = this;
8245
8240
  return __generator(this, function (_a) {
8246
- id = params.id, query = __rest(params, ["id"]);
8247
8241
  return [2 /*return*/, this.fetch({
8248
- uri: "/projects/" + id,
8242
+ uri: "/projects/" + params.id + "/settings",
8249
8243
  method: 'GET',
8250
- qs: query,
8244
+ // qs: query,
8251
8245
  expectedStatusCodes: [http_status_1.OK]
8252
8246
  })
8253
8247
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
@@ -8298,24 +8292,6 @@ var ProjectService = /** @class */ (function (_super) {
8298
8292
  });
8299
8293
  });
8300
8294
  };
8301
- /**
8302
- * DB統計取得
8303
- */
8304
- ProjectService.prototype.getDBStats = function (_) {
8305
- return __awaiter(this, void 0, void 0, function () {
8306
- var _this = this;
8307
- return __generator(this, function (_a) {
8308
- return [2 /*return*/, this.fetch({
8309
- uri: '/stats/dbStats',
8310
- method: 'GET',
8311
- expectedStatusCodes: [http_status_1.OK]
8312
- })
8313
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
8314
- return [2 /*return*/, response.json()];
8315
- }); }); })];
8316
- });
8317
- });
8318
- };
8319
8295
  return ProjectService;
8320
8296
  }(service_1.Service));
8321
8297
  exports.ProjectService = ProjectService;
@@ -1,10 +1,5 @@
1
1
  import * as factory from '../factory';
2
- import { IOptions, IProjectionSearchConditions, Service } from '../service';
3
- export interface IGetHealthResult {
4
- version?: string;
5
- status?: number;
6
- message?: string;
7
- }
2
+ import { IOptions, Service } from '../service';
8
3
  /**
9
4
  * プロジェクトサービス
10
5
  */
@@ -19,11 +14,11 @@ export declare class ProjectService extends Service<IOptions> {
19
14
  * 廃止(2023-07-26~)
20
15
  */
21
16
  /**
22
- * プロジェクト取得
17
+ * プロジェクト設定検索
23
18
  */
24
- findById(params: {
19
+ findSettingsById(params: {
25
20
  id: string;
26
- } & IProjectionSearchConditions): Promise<factory.project.IProject>;
21
+ }): Promise<factory.project.ISettings>;
27
22
  /**
28
23
  * プロジェクト更新
29
24
  */
@@ -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
  */
@@ -123,18 +128,16 @@ var ProjectService = /** @class */ (function (_super) {
123
128
  // });
124
129
  // }
125
130
  /**
126
- * プロジェクト取得
131
+ * プロジェクト設定検索
127
132
  */
128
- ProjectService.prototype.findById = function (params) {
133
+ ProjectService.prototype.findSettingsById = function (params) {
129
134
  return __awaiter(this, void 0, void 0, function () {
130
- var id, query;
131
135
  var _this = this;
132
136
  return __generator(this, function (_a) {
133
- id = params.id, query = __rest(params, ["id"]);
134
137
  return [2 /*return*/, this.fetch({
135
- uri: "/projects/" + id,
138
+ uri: "/projects/" + params.id + "/settings",
136
139
  method: 'GET',
137
- qs: query,
140
+ // qs: query,
138
141
  expectedStatusCodes: [http_status_1.OK]
139
142
  })
140
143
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
@@ -185,24 +188,6 @@ var ProjectService = /** @class */ (function (_super) {
185
188
  });
186
189
  });
187
190
  };
188
- /**
189
- * DB統計取得
190
- */
191
- ProjectService.prototype.getDBStats = function (_) {
192
- return __awaiter(this, void 0, void 0, function () {
193
- var _this = this;
194
- return __generator(this, function (_a) {
195
- return [2 /*return*/, this.fetch({
196
- uri: '/stats/dbStats',
197
- method: 'GET',
198
- expectedStatusCodes: [http_status_1.OK]
199
- })
200
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
201
- return [2 /*return*/, response.json()];
202
- }); }); })];
203
- });
204
- });
205
- };
206
191
  return ProjectService;
207
192
  }(service_1.Service));
208
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
  */
@@ -8227,18 +8232,16 @@ var ProjectService = /** @class */ (function (_super) {
8227
8232
  // });
8228
8233
  // }
8229
8234
  /**
8230
- * プロジェクト取得
8235
+ * プロジェクト設定検索
8231
8236
  */
8232
- ProjectService.prototype.findById = function (params) {
8237
+ ProjectService.prototype.findSettingsById = function (params) {
8233
8238
  return __awaiter(this, void 0, void 0, function () {
8234
- var id, query;
8235
8239
  var _this = this;
8236
8240
  return __generator(this, function (_a) {
8237
- id = params.id, query = __rest(params, ["id"]);
8238
8241
  return [2 /*return*/, this.fetch({
8239
- uri: "/projects/" + id,
8242
+ uri: "/projects/" + params.id + "/settings",
8240
8243
  method: 'GET',
8241
- qs: query,
8244
+ // qs: query,
8242
8245
  expectedStatusCodes: [http_status_1.OK]
8243
8246
  })
8244
8247
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
@@ -8289,24 +8292,6 @@ var ProjectService = /** @class */ (function (_super) {
8289
8292
  });
8290
8293
  });
8291
8294
  };
8292
- /**
8293
- * DB統計取得
8294
- */
8295
- ProjectService.prototype.getDBStats = function (_) {
8296
- return __awaiter(this, void 0, void 0, function () {
8297
- var _this = this;
8298
- return __generator(this, function (_a) {
8299
- return [2 /*return*/, this.fetch({
8300
- uri: '/stats/dbStats',
8301
- method: 'GET',
8302
- expectedStatusCodes: [http_status_1.OK]
8303
- })
8304
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
8305
- return [2 /*return*/, response.json()];
8306
- }); }); })];
8307
- });
8308
- });
8309
- };
8310
8295
  return ProjectService;
8311
8296
  }(service_1.Service));
8312
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.3",
3
+ "version": "3.162.0-alpha.5",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {