@cinerino/sdk 16.4.0-alpha.10 → 16.4.0-alpha.11
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.
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { factory } from '../factory';
|
|
2
|
-
import {
|
|
2
|
+
import { Service } from '../service';
|
|
3
3
|
/**
|
|
4
4
|
* 資産取引サービス
|
|
5
5
|
*/
|
|
6
6
|
export declare class AssetTransactionService extends Service {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* 資産取引検索
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
findAssetTransactions<T extends factory.assetTransactionType>(params: factory.assetTransaction.ISearchConditions<T>): Promise<factory.assetTransaction.ITransaction<T>[]>;
|
|
11
11
|
}
|
|
@@ -8,20 +8,16 @@ const service_1 = require("../service");
|
|
|
8
8
|
*/
|
|
9
9
|
class AssetTransactionService extends service_1.Service {
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* 資産取引検索
|
|
12
12
|
*/
|
|
13
|
-
async
|
|
13
|
+
async findAssetTransactions(params) {
|
|
14
14
|
return this.fetch({
|
|
15
15
|
uri: '/assetTransactions',
|
|
16
16
|
method: 'GET',
|
|
17
17
|
qs: params,
|
|
18
18
|
expectedStatusCodes: [http_status_1.status.OK]
|
|
19
19
|
})
|
|
20
|
-
.then(async (response) =>
|
|
21
|
-
return {
|
|
22
|
-
data: await response.json()
|
|
23
|
-
};
|
|
24
|
-
});
|
|
20
|
+
.then(async (response) => response.json());
|
|
25
21
|
}
|
|
26
22
|
}
|
|
27
23
|
exports.AssetTransactionService = AssetTransactionService;
|