@cinerino/sdk 10.22.0-alpha.0 → 10.22.0-alpha.2

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
- projectRoles(params: factory.iam.IRoleSearchConditions): Promise<factory.iam.IRole[]>;
39
+ projectRoles(params: factory.role.organizationRole.ISearchConditions): Promise<factory.role.organizationRole.IRole[]>;
40
40
  /**
41
41
  * IAMメンバー作成
42
42
  */
@@ -4,17 +4,20 @@ declare type IIdentity = factory.creativeWork.certification.webApplication.ICert
4
4
  interface ISavingIdentity {
5
5
  clientId: string;
6
6
  clientSecret: string;
7
- iss: string;
7
+ iss: string[];
8
8
  }
9
9
  /**
10
10
  * アイデンティティサービス
11
11
  */
12
12
  export declare class IdentityService extends Service {
13
- create(params: ISavingIdentity): Promise<{
13
+ createIdentity(params: ISavingIdentity): Promise<{
14
14
  id: string;
15
15
  }>;
16
- projectFields(params: Omit<factory.creativeWork.certification.webApplication.ISearchConditions, 'project'>): Promise<IIdentity[]>;
17
- deleteById(params: {
16
+ projectIdentityFields(params: Omit<factory.creativeWork.certification.webApplication.ISearchConditions, 'project'>): Promise<IIdentity[]>;
17
+ updateIdentityById(params: ISavingIdentity & {
18
+ id: string;
19
+ }): Promise<void>;
20
+ deleteIdentityById(params: {
18
21
  id: string;
19
22
  }): Promise<void>;
20
23
  }
@@ -50,6 +50,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
50
50
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
51
  }
52
52
  };
53
+ var __rest = (this && this.__rest) || function (s, e) {
54
+ var t = {};
55
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
56
+ t[p] = s[p];
57
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
58
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
59
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
60
+ t[p[i]] = s[p[i]];
61
+ }
62
+ return t;
63
+ };
53
64
  Object.defineProperty(exports, "__esModule", { value: true });
54
65
  exports.IdentityService = void 0;
55
66
  var http_status_1 = require("http-status");
@@ -62,7 +73,7 @@ var IdentityService = /** @class */ (function (_super) {
62
73
  function IdentityService() {
63
74
  return _super !== null && _super.apply(this, arguments) || this;
64
75
  }
65
- IdentityService.prototype.create = function (params) {
76
+ IdentityService.prototype.createIdentity = function (params) {
66
77
  return __awaiter(this, void 0, void 0, function () {
67
78
  var _this = this;
68
79
  return __generator(this, function (_a) {
@@ -78,7 +89,7 @@ var IdentityService = /** @class */ (function (_super) {
78
89
  });
79
90
  });
80
91
  };
81
- IdentityService.prototype.projectFields = function (params) {
92
+ IdentityService.prototype.projectIdentityFields = function (params) {
82
93
  return __awaiter(this, void 0, void 0, function () {
83
94
  var _this = this;
84
95
  return __generator(this, function (_a) {
@@ -94,7 +105,27 @@ var IdentityService = /** @class */ (function (_super) {
94
105
  });
95
106
  });
96
107
  };
97
- IdentityService.prototype.deleteById = function (params) {
108
+ IdentityService.prototype.updateIdentityById = function (params) {
109
+ return __awaiter(this, void 0, void 0, function () {
110
+ var id, body;
111
+ return __generator(this, function (_a) {
112
+ switch (_a.label) {
113
+ case 0:
114
+ id = params.id, body = __rest(params, ["id"]);
115
+ return [4 /*yield*/, this.fetch({
116
+ uri: "/identities/" + encodeURIComponent(String(id)),
117
+ method: 'PUT',
118
+ body: body,
119
+ expectedStatusCodes: [http_status_1.NO_CONTENT]
120
+ })];
121
+ case 1:
122
+ _a.sent();
123
+ return [2 /*return*/];
124
+ }
125
+ });
126
+ });
127
+ };
128
+ IdentityService.prototype.deleteIdentityById = function (params) {
98
129
  return __awaiter(this, void 0, void 0, function () {
99
130
  var id;
100
131
  return __generator(this, function (_a) {