@cinerino/sdk 3.162.0-alpha.2 → 3.162.0-alpha.4

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.
@@ -8209,45 +8209,34 @@ var ProjectService = /** @class */ (function (_super) {
8209
8209
  };
8210
8210
  /**
8211
8211
  * プロジェクト検索
8212
+ * 廃止(2023-07-26~)
8212
8213
  */
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
- };
8214
+ // public async search(
8215
+ // params: factory.project.ISearchConditions & IProjectionSearchConditions
8216
+ // ): Promise<ISearchResult<factory.project.IProject[]>> {
8217
+ // return this.fetch({
8218
+ // uri: '/projects',
8219
+ // method: 'GET',
8220
+ // qs: params,
8221
+ // expectedStatusCodes: [OK]
8222
+ // })
8223
+ // .then(async (response) => {
8224
+ // return {
8225
+ // data: await response.json()
8226
+ // };
8227
+ // });
8228
+ // }
8238
8229
  /**
8239
- * プロジェクト取得
8230
+ * プロジェクト設定検索
8240
8231
  */
8241
- ProjectService.prototype.findById = function (params) {
8232
+ ProjectService.prototype.findSettingsById = function (params) {
8242
8233
  return __awaiter(this, void 0, void 0, function () {
8243
- var id, query;
8244
8234
  var _this = this;
8245
8235
  return __generator(this, function (_a) {
8246
- id = params.id, query = __rest(params, ["id"]);
8247
8236
  return [2 /*return*/, this.fetch({
8248
- uri: "/projects/" + id,
8237
+ uri: "/projects/" + params.id + "/settings",
8249
8238
  method: 'GET',
8250
- qs: query,
8239
+ // qs: query,
8251
8240
  expectedStatusCodes: [http_status_1.OK]
8252
8241
  })
8253
8242
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
@@ -4,6 +4,7 @@ export interface ISearchProjectConditions {
4
4
  limit?: number;
5
5
  page?: number;
6
6
  id?: {
7
+ $eq?: string;
7
8
  $regex?: string;
8
9
  };
9
10
  }
@@ -15,7 +16,7 @@ export declare class MeService extends Service<IOptions> {
15
16
  /**
16
17
  * マイプロジェクト検索
17
18
  */
18
- searchProjects(params: ISearchProjectConditions): Promise<ISearchResult<factory.project.IProject[]>>;
19
+ searchProjects(params: ISearchProjectConditions): Promise<ISearchResult<Omit<factory.project.IProject, 'settings'>[]>>;
19
20
  /**
20
21
  * リクエストユーザーのPMとしてのロールを検索する
21
22
  */
@@ -1,5 +1,5 @@
1
1
  import * as factory from '../factory';
2
- import { IOptions, IProjectionSearchConditions, ISearchResult, Service } from '../service';
2
+ import { IOptions, Service } from '../service';
3
3
  export interface IGetHealthResult {
4
4
  version?: string;
5
5
  status?: number;
@@ -16,14 +16,14 @@ export declare class ProjectService extends Service<IOptions> {
16
16
  create(params: factory.project.IProject): Promise<factory.project.IProject>;
17
17
  /**
18
18
  * プロジェクト検索
19
+ * 廃止(2023-07-26~)
19
20
  */
20
- search(params: factory.project.ISearchConditions & IProjectionSearchConditions): Promise<ISearchResult<factory.project.IProject[]>>;
21
21
  /**
22
- * プロジェクト取得
22
+ * プロジェクト設定検索
23
23
  */
24
- findById(params: {
24
+ findSettingsById(params: {
25
25
  id: string;
26
- } & IProjectionSearchConditions): Promise<factory.project.IProject>;
26
+ }): Promise<factory.project.ISettings>;
27
27
  /**
28
28
  * プロジェクト更新
29
29
  */
@@ -105,45 +105,34 @@ var ProjectService = /** @class */ (function (_super) {
105
105
  };
106
106
  /**
107
107
  * プロジェクト検索
108
+ * 廃止(2023-07-26~)
108
109
  */
109
- ProjectService.prototype.search = function (params) {
110
- return __awaiter(this, void 0, void 0, function () {
111
- var _this = this;
112
- return __generator(this, function (_a) {
113
- return [2 /*return*/, this.fetch({
114
- uri: '/projects',
115
- method: 'GET',
116
- qs: params,
117
- expectedStatusCodes: [http_status_1.OK]
118
- })
119
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
120
- var _a;
121
- return __generator(this, function (_b) {
122
- switch (_b.label) {
123
- case 0:
124
- _a = {};
125
- return [4 /*yield*/, response.json()];
126
- case 1: return [2 /*return*/, (_a.data = _b.sent(),
127
- _a)];
128
- }
129
- });
130
- }); })];
131
- });
132
- });
133
- };
110
+ // public async search(
111
+ // params: factory.project.ISearchConditions & IProjectionSearchConditions
112
+ // ): Promise<ISearchResult<factory.project.IProject[]>> {
113
+ // return this.fetch({
114
+ // uri: '/projects',
115
+ // method: 'GET',
116
+ // qs: params,
117
+ // expectedStatusCodes: [OK]
118
+ // })
119
+ // .then(async (response) => {
120
+ // return {
121
+ // data: await response.json()
122
+ // };
123
+ // });
124
+ // }
134
125
  /**
135
- * プロジェクト取得
126
+ * プロジェクト設定検索
136
127
  */
137
- ProjectService.prototype.findById = function (params) {
128
+ ProjectService.prototype.findSettingsById = function (params) {
138
129
  return __awaiter(this, void 0, void 0, function () {
139
- var id, query;
140
130
  var _this = this;
141
131
  return __generator(this, function (_a) {
142
- id = params.id, query = __rest(params, ["id"]);
143
132
  return [2 /*return*/, this.fetch({
144
- uri: "/projects/" + id,
133
+ uri: "/projects/" + params.id + "/settings",
145
134
  method: 'GET',
146
- qs: query,
135
+ // qs: query,
147
136
  expectedStatusCodes: [http_status_1.OK]
148
137
  })
149
138
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
package/lib/bundle.js CHANGED
@@ -8209,45 +8209,34 @@ var ProjectService = /** @class */ (function (_super) {
8209
8209
  };
8210
8210
  /**
8211
8211
  * プロジェクト検索
8212
+ * 廃止(2023-07-26~)
8212
8213
  */
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
- };
8214
+ // public async search(
8215
+ // params: factory.project.ISearchConditions & IProjectionSearchConditions
8216
+ // ): Promise<ISearchResult<factory.project.IProject[]>> {
8217
+ // return this.fetch({
8218
+ // uri: '/projects',
8219
+ // method: 'GET',
8220
+ // qs: params,
8221
+ // expectedStatusCodes: [OK]
8222
+ // })
8223
+ // .then(async (response) => {
8224
+ // return {
8225
+ // data: await response.json()
8226
+ // };
8227
+ // });
8228
+ // }
8238
8229
  /**
8239
- * プロジェクト取得
8230
+ * プロジェクト設定検索
8240
8231
  */
8241
- ProjectService.prototype.findById = function (params) {
8232
+ ProjectService.prototype.findSettingsById = function (params) {
8242
8233
  return __awaiter(this, void 0, void 0, function () {
8243
- var id, query;
8244
8234
  var _this = this;
8245
8235
  return __generator(this, function (_a) {
8246
- id = params.id, query = __rest(params, ["id"]);
8247
8236
  return [2 /*return*/, this.fetch({
8248
- uri: "/projects/" + id,
8237
+ uri: "/projects/" + params.id + "/settings",
8249
8238
  method: 'GET',
8250
- qs: query,
8239
+ // qs: query,
8251
8240
  expectedStatusCodes: [http_status_1.OK]
8252
8241
  })
8253
8242
  .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "3.162.0-alpha.2",
3
+ "version": "3.162.0-alpha.4",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {