@fairandsmart/consents-ce 2.0.24 → 2.0.26
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/models/interfaces.d.ts +1 -0
- package/package.json +1 -1
- package/transactions/api.d.ts +3 -2
- package/transactions/api.js +7 -5
package/models/interfaces.d.ts
CHANGED
package/package.json
CHANGED
package/transactions/api.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ import { Observable } from "rxjs";
|
|
|
2
2
|
import { ConsentContext } from "../consents/interfaces";
|
|
3
3
|
import { TransactionDto, TransactionFilter } from "./interfaces";
|
|
4
4
|
import { CollectionPage } from "../common";
|
|
5
|
-
|
|
6
|
-
export declare function
|
|
5
|
+
import { RCApiOptions } from "../http";
|
|
6
|
+
export declare function listTransactions(filter: TransactionFilter, options?: RCApiOptions): Observable<CollectionPage<TransactionDto>>;
|
|
7
|
+
export declare function getTransactionContext(txid: string, options?: RCApiOptions): Observable<ConsentContext>;
|
package/transactions/api.js
CHANGED
|
@@ -2,24 +2,26 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getTransactionContext = exports.listTransactions = void 0;
|
|
4
4
|
var api_1 = require("../api");
|
|
5
|
-
function listTransactions(filter) {
|
|
5
|
+
function listTransactions(filter, options) {
|
|
6
6
|
return api_1.RightConsents.http({
|
|
7
|
-
method: '
|
|
7
|
+
method: 'POST',
|
|
8
8
|
url: "".concat(api_1.RightConsents.config.apiRoot, "/transactions"),
|
|
9
9
|
headers: {
|
|
10
10
|
'Content-Type': 'application/json',
|
|
11
11
|
},
|
|
12
|
-
body: filter
|
|
12
|
+
body: filter,
|
|
13
|
+
options: options
|
|
13
14
|
});
|
|
14
15
|
}
|
|
15
16
|
exports.listTransactions = listTransactions;
|
|
16
|
-
function getTransactionContext(txid) {
|
|
17
|
+
function getTransactionContext(txid, options) {
|
|
17
18
|
return api_1.RightConsents.http({
|
|
18
19
|
method: 'GET',
|
|
19
20
|
url: "".concat(api_1.RightConsents.config.apiRoot, "/transactions/").concat(txid, "/context"),
|
|
20
21
|
headers: {
|
|
21
22
|
'Content-Type': 'application/json',
|
|
22
|
-
}
|
|
23
|
+
},
|
|
24
|
+
options: options
|
|
23
25
|
});
|
|
24
26
|
}
|
|
25
27
|
exports.getTransactionContext = getTransactionContext;
|