@cinerino/sdk 3.28.0-alpha.0 → 3.28.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.
@@ -8435,6 +8435,34 @@ var PersonOwnershipInfoService = /** @class */ (function (_super) {
8435
8435
  });
8436
8436
  });
8437
8437
  };
8438
+ /**
8439
+ * 所有権検索
8440
+ */
8441
+ PersonOwnershipInfoService.prototype.search = function (params) {
8442
+ return __awaiter(this, void 0, void 0, function () {
8443
+ var _this = this;
8444
+ return __generator(this, function (_a) {
8445
+ return [2 /*return*/, this.fetch({
8446
+ uri: "/people/" + String(params.id) + "/ownershipInfos",
8447
+ method: 'GET',
8448
+ qs: params,
8449
+ expectedStatusCodes: [http_status_1.OK]
8450
+ })
8451
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
8452
+ var _a;
8453
+ return __generator(this, function (_b) {
8454
+ switch (_b.label) {
8455
+ case 0:
8456
+ _a = {};
8457
+ return [4 /*yield*/, response.json()];
8458
+ case 1: return [2 /*return*/, (_a.data = _b.sent(),
8459
+ _a)];
8460
+ }
8461
+ });
8462
+ }); })];
8463
+ });
8464
+ });
8465
+ };
8438
8466
  return PersonOwnershipInfoService;
8439
8467
  }(service_1.Service));
8440
8468
  exports.PersonOwnershipInfoService = PersonOwnershipInfoService;
@@ -0,0 +1,32 @@
1
+ // tslint:disable:no-implicit-dependencies no-console no-magic-numbers
2
+ import * as client from '../../../lib/';
3
+
4
+ const project = { id: process.env.PROJECT_ID };
5
+
6
+ async function main() {
7
+ const authClient = new client.auth.ClientCredentials({
8
+ domain: <string>process.env.CHEVRE_AUTHORIZE_SERVER_DOMAIN,
9
+ clientId: <string>process.env.CHEVRE_CLIENT_ID,
10
+ clientSecret: <string>process.env.CHEVRE_CLIENT_SECRET,
11
+ scopes: [],
12
+ state: ''
13
+ });
14
+
15
+ const personOwnershipInfoService = new client.chevre.service.person.OwnershipInfo({
16
+ endpoint: <string>process.env.CHEVRE_ENDPOINT,
17
+ auth: authClient,
18
+ project
19
+ });
20
+
21
+ const data = await personOwnershipInfoService.searchCreditCards({
22
+ id: '708b007c-79e2-4a3f-8f7a-4bcfc56f4583'
23
+ });
24
+ console.log(data);
25
+ console.log(data.length);
26
+ }
27
+
28
+ main()
29
+ .then(() => {
30
+ console.log('main processed.');
31
+ })
32
+ .catch(console.error);
package/lib/bundle.js CHANGED
@@ -8435,6 +8435,34 @@ var PersonOwnershipInfoService = /** @class */ (function (_super) {
8435
8435
  });
8436
8436
  });
8437
8437
  };
8438
+ /**
8439
+ * 所有権検索
8440
+ */
8441
+ PersonOwnershipInfoService.prototype.search = function (params) {
8442
+ return __awaiter(this, void 0, void 0, function () {
8443
+ var _this = this;
8444
+ return __generator(this, function (_a) {
8445
+ return [2 /*return*/, this.fetch({
8446
+ uri: "/people/" + String(params.id) + "/ownershipInfos",
8447
+ method: 'GET',
8448
+ qs: params,
8449
+ expectedStatusCodes: [http_status_1.OK]
8450
+ })
8451
+ .then(function (response) { return __awaiter(_this, void 0, void 0, function () {
8452
+ var _a;
8453
+ return __generator(this, function (_b) {
8454
+ switch (_b.label) {
8455
+ case 0:
8456
+ _a = {};
8457
+ return [4 /*yield*/, response.json()];
8458
+ case 1: return [2 /*return*/, (_a.data = _b.sent(),
8459
+ _a)];
8460
+ }
8461
+ });
8462
+ }); })];
8463
+ });
8464
+ });
8465
+ };
8438
8466
  return PersonOwnershipInfoService;
8439
8467
  }(service_1.Service));
8440
8468
  exports.PersonOwnershipInfoService = PersonOwnershipInfoService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cinerino/sdk",
3
- "version": "3.28.0-alpha.0",
3
+ "version": "3.28.0-alpha.1",
4
4
  "description": "Cinerino SDK",
5
5
  "main": "./lib/index.js",
6
6
  "browser": {
@@ -97,7 +97,7 @@
97
97
  "watchify": "^3.11.1"
98
98
  },
99
99
  "dependencies": {
100
- "@cinerino/api-abstract-client": "3.28.0-alpha.0",
100
+ "@cinerino/api-abstract-client": "3.28.0-alpha.1",
101
101
  "debug": "^3.2.6",
102
102
  "http-status": "^1.4.2",
103
103
  "idtoken-verifier": "^2.0.3",