@cinerino/sdk 10.22.0-alpha.1 → 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.
|
@@ -6071,6 +6071,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
6071
6071
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
6072
6072
|
}
|
|
6073
6073
|
};
|
|
6074
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
6075
|
+
var t = {};
|
|
6076
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
6077
|
+
t[p] = s[p];
|
|
6078
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6079
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
6080
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
6081
|
+
t[p[i]] = s[p[i]];
|
|
6082
|
+
}
|
|
6083
|
+
return t;
|
|
6084
|
+
};
|
|
6074
6085
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6075
6086
|
exports.IdentityService = void 0;
|
|
6076
6087
|
var http_status_1 = require("http-status");
|
|
@@ -6083,7 +6094,7 @@ var IdentityService = /** @class */ (function (_super) {
|
|
|
6083
6094
|
function IdentityService() {
|
|
6084
6095
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
6085
6096
|
}
|
|
6086
|
-
IdentityService.prototype.
|
|
6097
|
+
IdentityService.prototype.createIdentity = function (params) {
|
|
6087
6098
|
return __awaiter(this, void 0, void 0, function () {
|
|
6088
6099
|
var _this = this;
|
|
6089
6100
|
return __generator(this, function (_a) {
|
|
@@ -6099,7 +6110,7 @@ var IdentityService = /** @class */ (function (_super) {
|
|
|
6099
6110
|
});
|
|
6100
6111
|
});
|
|
6101
6112
|
};
|
|
6102
|
-
IdentityService.prototype.
|
|
6113
|
+
IdentityService.prototype.projectIdentityFields = function (params) {
|
|
6103
6114
|
return __awaiter(this, void 0, void 0, function () {
|
|
6104
6115
|
var _this = this;
|
|
6105
6116
|
return __generator(this, function (_a) {
|
|
@@ -6115,7 +6126,27 @@ var IdentityService = /** @class */ (function (_super) {
|
|
|
6115
6126
|
});
|
|
6116
6127
|
});
|
|
6117
6128
|
};
|
|
6118
|
-
IdentityService.prototype.
|
|
6129
|
+
IdentityService.prototype.updateIdentityById = function (params) {
|
|
6130
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
6131
|
+
var id, body;
|
|
6132
|
+
return __generator(this, function (_a) {
|
|
6133
|
+
switch (_a.label) {
|
|
6134
|
+
case 0:
|
|
6135
|
+
id = params.id, body = __rest(params, ["id"]);
|
|
6136
|
+
return [4 /*yield*/, this.fetch({
|
|
6137
|
+
uri: "/identities/" + encodeURIComponent(String(id)),
|
|
6138
|
+
method: 'PUT',
|
|
6139
|
+
body: body,
|
|
6140
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
6141
|
+
})];
|
|
6142
|
+
case 1:
|
|
6143
|
+
_a.sent();
|
|
6144
|
+
return [2 /*return*/];
|
|
6145
|
+
}
|
|
6146
|
+
});
|
|
6147
|
+
});
|
|
6148
|
+
};
|
|
6149
|
+
IdentityService.prototype.deleteIdentityById = function (params) {
|
|
6119
6150
|
return __awaiter(this, void 0, void 0, function () {
|
|
6120
6151
|
var id;
|
|
6121
6152
|
return __generator(this, function (_a) {
|
|
@@ -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
|
-
|
|
13
|
+
createIdentity(params: ISavingIdentity): Promise<{
|
|
14
14
|
id: string;
|
|
15
15
|
}>;
|
|
16
|
-
|
|
17
|
-
|
|
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.
|
|
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.
|
|
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.
|
|
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) {
|
package/lib/bundle.js
CHANGED
|
@@ -7433,6 +7433,17 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
7433
7433
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
7434
7434
|
}
|
|
7435
7435
|
};
|
|
7436
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
7437
|
+
var t = {};
|
|
7438
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
7439
|
+
t[p] = s[p];
|
|
7440
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7441
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7442
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
7443
|
+
t[p[i]] = s[p[i]];
|
|
7444
|
+
}
|
|
7445
|
+
return t;
|
|
7446
|
+
};
|
|
7436
7447
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7437
7448
|
exports.IdentityService = void 0;
|
|
7438
7449
|
var http_status_1 = require("http-status");
|
|
@@ -7445,7 +7456,7 @@ var IdentityService = /** @class */ (function (_super) {
|
|
|
7445
7456
|
function IdentityService() {
|
|
7446
7457
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
7447
7458
|
}
|
|
7448
|
-
IdentityService.prototype.
|
|
7459
|
+
IdentityService.prototype.createIdentity = function (params) {
|
|
7449
7460
|
return __awaiter(this, void 0, void 0, function () {
|
|
7450
7461
|
var _this = this;
|
|
7451
7462
|
return __generator(this, function (_a) {
|
|
@@ -7461,7 +7472,7 @@ var IdentityService = /** @class */ (function (_super) {
|
|
|
7461
7472
|
});
|
|
7462
7473
|
});
|
|
7463
7474
|
};
|
|
7464
|
-
IdentityService.prototype.
|
|
7475
|
+
IdentityService.prototype.projectIdentityFields = function (params) {
|
|
7465
7476
|
return __awaiter(this, void 0, void 0, function () {
|
|
7466
7477
|
var _this = this;
|
|
7467
7478
|
return __generator(this, function (_a) {
|
|
@@ -7477,7 +7488,27 @@ var IdentityService = /** @class */ (function (_super) {
|
|
|
7477
7488
|
});
|
|
7478
7489
|
});
|
|
7479
7490
|
};
|
|
7480
|
-
IdentityService.prototype.
|
|
7491
|
+
IdentityService.prototype.updateIdentityById = function (params) {
|
|
7492
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
7493
|
+
var id, body;
|
|
7494
|
+
return __generator(this, function (_a) {
|
|
7495
|
+
switch (_a.label) {
|
|
7496
|
+
case 0:
|
|
7497
|
+
id = params.id, body = __rest(params, ["id"]);
|
|
7498
|
+
return [4 /*yield*/, this.fetch({
|
|
7499
|
+
uri: "/identities/" + encodeURIComponent(String(id)),
|
|
7500
|
+
method: 'PUT',
|
|
7501
|
+
body: body,
|
|
7502
|
+
expectedStatusCodes: [http_status_1.NO_CONTENT]
|
|
7503
|
+
})];
|
|
7504
|
+
case 1:
|
|
7505
|
+
_a.sent();
|
|
7506
|
+
return [2 /*return*/];
|
|
7507
|
+
}
|
|
7508
|
+
});
|
|
7509
|
+
});
|
|
7510
|
+
};
|
|
7511
|
+
IdentityService.prototype.deleteIdentityById = function (params) {
|
|
7481
7512
|
return __awaiter(this, void 0, void 0, function () {
|
|
7482
7513
|
var id;
|
|
7483
7514
|
return __generator(this, function (_a) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cinerino/sdk",
|
|
3
|
-
"version": "10.22.0-alpha.
|
|
3
|
+
"version": "10.22.0-alpha.2",
|
|
4
4
|
"description": "Cinerino SDK",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"browser": {
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"watchify": "^3.11.1"
|
|
93
93
|
},
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@chevre/factory": "4.
|
|
95
|
+
"@chevre/factory": "4.395.0-alpha.0",
|
|
96
96
|
"debug": "3.2.7",
|
|
97
97
|
"http-status": "1.7.4",
|
|
98
98
|
"idtoken-verifier": "2.0.3",
|