@cinerino/sdk 10.21.0 → 10.22.0-alpha.1

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.
@@ -34,7 +34,7 @@ async function main() {
34
34
  if (applications.length > 0) {
35
35
  const result = await authorizationService.create([{
36
36
  object: {
37
- typeOf: factory.iam.RoleType.OrganizationRole,
37
+ typeOf: factory.role.RoleType.OrganizationRole,
38
38
  member: {
39
39
  hasRole: [
40
40
  { roleName: 'sellers.inventoryManager' }
@@ -10,7 +10,7 @@ declare type AVAILABLE_ROLE_NAMES =
10
10
  */
11
11
  | 'sellers.inventoryManager';
12
12
  export interface IObjectAsRole {
13
- typeOf: factory.iam.RoleType.OrganizationRole;
13
+ typeOf: factory.role.RoleType.OrganizationRole;
14
14
  member: {
15
15
  /**
16
16
  * 承認相手に与えるロール
@@ -36,7 +36,7 @@ export declare class IAMService extends Service {
36
36
  /**
37
37
  * IAMロール検索
38
38
  */
39
- searchRoles(params: factory.iam.IRoleSearchConditions): Promise<ISearchResult<factory.iam.IRole[]>>;
39
+ projectRoles(params: factory.role.organizationRole.ISearchConditions): Promise<factory.role.organizationRole.IRole[]>;
40
40
  /**
41
41
  * IAMメンバー作成
42
42
  */
@@ -163,7 +163,7 @@ var IAMService = /** @class */ (function (_super) {
163
163
  /**
164
164
  * IAMロール検索
165
165
  */
166
- IAMService.prototype.searchRoles = function (params) {
166
+ IAMService.prototype.projectRoles = function (params) {
167
167
  return __awaiter(this, void 0, void 0, function () {
168
168
  var _this = this;
169
169
  return __generator(this, function (_a) {
@@ -173,18 +173,9 @@ var IAMService = /** @class */ (function (_super) {
173
173
  qs: params,
174
174
  expectedStatusCodes: [http_status_1.OK]
175
175
  })
176
- .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
177
- var _a;
178
- return __generator(this, function (_b) {
179
- switch (_b.label) {
180
- case 0:
181
- _a = {};
182
- return [4 /*yield*/, response.json()];
183
- case 1: return [2 /*return*/, (_a.data = _b.sent(),
184
- _a)];
185
- }
186
- });
187
- }); })];
176
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
177
+ return [2 /*return*/, response.json()];
178
+ }); }); })];
188
179
  });
189
180
  });
190
181
  };