@cinerino/sdk 16.3.0 → 16.4.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.
- package/lib/abstract/chevreAdmin/customer.d.ts +3 -4
- package/lib/abstract/chevreAdmin/customer.js +1 -1
- package/lib/abstract/chevreConsole/customer.d.ts +6 -7
- package/lib/abstract/chevreConsole/customer.js +3 -3
- package/lib/abstract/chevreConsole.d.ts +0 -9
- package/lib/abstract/chevreConsole.js +0 -9
- package/lib/abstract/chevreTxc/offer.d.ts +2 -0
- package/lib/abstract/chevreTxc/offer.js +4 -2
- package/lib/abstract/cloud/admin/customer.d.ts +2 -2
- package/lib/abstract/cloud/admin/customer.js +1 -25
- package/lib/abstract/cloud/txc/transaction/forceAsync.d.ts +2 -0
- package/lib/abstract/cloud/txc/transaction/forceAsync.js +2 -2
- package/lib/abstract/cloud/txc/transaction/placeOrder.d.ts +4 -0
- package/lib/abstract/cloud/txc/transaction/placeOrder.js +4 -30
- package/lib/bundle.js +3 -3
- package/lib/bundle.js.map +4 -4
- package/package.json +2 -2
- package/lib/abstract/chevreConsole/assetTransaction/reserve.d.ts +0 -25
- package/lib/abstract/chevreConsole/assetTransaction/reserve.js +0 -59
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cinerino/sdk",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.4.0-alpha.1",
|
|
4
4
|
"description": "Cinerino SDK",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"browser": {
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"watchify": "3.11.1"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@chevre/factory": "10.1.0-alpha.
|
|
75
|
+
"@chevre/factory": "10.1.0-alpha.1",
|
|
76
76
|
"debug": "4.4.3",
|
|
77
77
|
"http-status": "2.1.0",
|
|
78
78
|
"idtoken-verifier": "2.2.4",
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { factory } from '../../factory';
|
|
2
|
-
import { Service } from '../../service';
|
|
3
|
-
/**
|
|
4
|
-
* 予約取引サービス
|
|
5
|
-
*/
|
|
6
|
-
export declare class ReserveAssetTransactionService extends Service {
|
|
7
|
-
/**
|
|
8
|
-
* 取引を開始する
|
|
9
|
-
*/
|
|
10
|
-
start(params: factory.assetTransaction.reserve.IStartParamsWithoutDetail): Promise<{
|
|
11
|
-
id: string;
|
|
12
|
-
}>;
|
|
13
|
-
startWithNoResponse(params: factory.assetTransaction.reserve.IStartParamsWithoutDetail): Promise<void>;
|
|
14
|
-
/**
|
|
15
|
-
* 取引確定
|
|
16
|
-
*/
|
|
17
|
-
confirm(params: factory.assetTransaction.reserve.IConfirmParams): Promise<void>;
|
|
18
|
-
/**
|
|
19
|
-
* 取引中止
|
|
20
|
-
*/
|
|
21
|
-
cancel(params: {
|
|
22
|
-
id?: string;
|
|
23
|
-
transactionNumber?: string;
|
|
24
|
-
}): Promise<void>;
|
|
25
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReserveAssetTransactionService = void 0;
|
|
4
|
-
const http_status_1 = require("http-status");
|
|
5
|
-
const service_1 = require("../../service");
|
|
6
|
-
/**
|
|
7
|
-
* 予約取引サービス
|
|
8
|
-
*/
|
|
9
|
-
class ReserveAssetTransactionService extends service_1.Service {
|
|
10
|
-
/**
|
|
11
|
-
* 取引を開始する
|
|
12
|
-
*/
|
|
13
|
-
async start(params) {
|
|
14
|
-
return this.fetch({
|
|
15
|
-
uri: '/assetTransactions/reserve/start',
|
|
16
|
-
method: 'POST',
|
|
17
|
-
body: params,
|
|
18
|
-
expectedStatusCodes: [http_status_1.status.OK]
|
|
19
|
-
})
|
|
20
|
-
.then(async (response) => response.json());
|
|
21
|
-
}
|
|
22
|
-
async startWithNoResponse(params) {
|
|
23
|
-
await this.fetch({
|
|
24
|
-
uri: '/assetTransactions/reserve/start',
|
|
25
|
-
method: 'POST',
|
|
26
|
-
body: params,
|
|
27
|
-
qs: { expectsNoContent: '1' },
|
|
28
|
-
expectedStatusCodes: [http_status_1.status.NO_CONTENT]
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* 取引確定
|
|
33
|
-
*/
|
|
34
|
-
async confirm(params) {
|
|
35
|
-
const { transactionNumber, id, ...body } = params;
|
|
36
|
-
await this.fetch({
|
|
37
|
-
uri: (typeof transactionNumber === 'string')
|
|
38
|
-
? `/assetTransactions/reserve/${transactionNumber}/confirm?transactionNumber=1`
|
|
39
|
-
: `/assetTransactions/reserve/${encodeURIComponent(String(id))}/confirm`,
|
|
40
|
-
method: 'PUT',
|
|
41
|
-
expectedStatusCodes: [http_status_1.status.NO_CONTENT],
|
|
42
|
-
body
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
/**
|
|
46
|
-
* 取引中止
|
|
47
|
-
*/
|
|
48
|
-
async cancel(params) {
|
|
49
|
-
await this.fetch({
|
|
50
|
-
uri: (typeof params.transactionNumber === 'string')
|
|
51
|
-
? `/assetTransactions/reserve/${params.transactionNumber}/cancel?transactionNumber=1`
|
|
52
|
-
: `/assetTransactions/reserve/${encodeURIComponent(String(params.id))}/cancel`,
|
|
53
|
-
method: 'PUT',
|
|
54
|
-
expectedStatusCodes: [http_status_1.status.NO_CONTENT]
|
|
55
|
-
// body: params
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
exports.ReserveAssetTransactionService = ReserveAssetTransactionService;
|