@notabene/javascript-sdk 2.14.1-next.1 → 2.14.1-next.3
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/dist/cjs/notabene.cjs +23 -1
- package/dist/cjs/notabene.d.ts +6 -2
- package/dist/cjs/package.json +1 -1
- package/dist/esm/notabene.d.ts +6 -2
- package/dist/esm/notabene.js +12099 -467
- package/dist/esm/package.json +1 -1
- package/dist/notabene.d.ts +6 -2
- package/dist/notabene.js +12099 -467
- package/package.json +1 -1
- package/src/responseTransformer/__tests__/transformer.test.ts +41 -0
- package/src/responseTransformer/__tests__/utils.test.ts +35 -0
- package/src/responseTransformer/mappers.ts +19 -11
- package/src/responseTransformer/types.ts +1 -0
- package/src/responseTransformer/utils.ts +24 -1
- package/src/types.ts +5 -2
- package/src/utils/arbitraries.ts +1 -1
package/dist/cjs/notabene.d.ts
CHANGED
|
@@ -104,7 +104,7 @@ declare type Beneficiary = {
|
|
|
104
104
|
* @public
|
|
105
105
|
*/
|
|
106
106
|
declare type BeneficiaryFields = {
|
|
107
|
-
destination
|
|
107
|
+
destination: Destination;
|
|
108
108
|
};
|
|
109
109
|
|
|
110
110
|
declare type BeneficiaryV2 = {
|
|
@@ -1495,7 +1495,7 @@ declare type Originator = {
|
|
|
1495
1495
|
* @public
|
|
1496
1496
|
*/
|
|
1497
1497
|
declare type OriginatorFields = {
|
|
1498
|
-
source
|
|
1498
|
+
source: Source | Source[];
|
|
1499
1499
|
};
|
|
1500
1500
|
|
|
1501
1501
|
declare type OriginatorV2 = {
|
|
@@ -1699,6 +1699,7 @@ declare interface ResponseToIVMS101RequestConfig extends BaseRequestConfig {
|
|
|
1699
1699
|
|
|
1700
1700
|
declare interface ResponseToTxCreateRequestConfig extends BaseRequestConfig {
|
|
1701
1701
|
referenceId?: string;
|
|
1702
|
+
settlementAddress?: string;
|
|
1702
1703
|
}
|
|
1703
1704
|
|
|
1704
1705
|
export declare type ResponseToTxRequestConfig = ResponseToTxCreateRequestConfig & ResponseToIVMS101RequestConfig;
|
|
@@ -1820,8 +1821,11 @@ export declare enum Status {
|
|
|
1820
1821
|
*/
|
|
1821
1822
|
export declare type Theme = {
|
|
1822
1823
|
mode: 'light' | 'dark';
|
|
1824
|
+
backgroundColor?: string;
|
|
1823
1825
|
primaryColor?: string;
|
|
1826
|
+
primaryForeground?: string;
|
|
1824
1827
|
secondaryColor?: string;
|
|
1828
|
+
secondaryForeground?: string;
|
|
1825
1829
|
fontFamily?: string;
|
|
1826
1830
|
logo?: string;
|
|
1827
1831
|
};
|
package/dist/cjs/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"author": "Notabene <developers@notabene.id>",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"packageManager": "yarn@4.5.1",
|
|
13
|
-
"version": "2.14.1-next.
|
|
13
|
+
"version": "2.14.1-next.3",
|
|
14
14
|
"source": "src/notabene.ts",
|
|
15
15
|
"main": "dist/cjs/notabene.cjs",
|
|
16
16
|
"module": "dist/esm/notabene.js",
|
package/dist/esm/notabene.d.ts
CHANGED
|
@@ -104,7 +104,7 @@ declare type Beneficiary = {
|
|
|
104
104
|
* @public
|
|
105
105
|
*/
|
|
106
106
|
declare type BeneficiaryFields = {
|
|
107
|
-
destination
|
|
107
|
+
destination: Destination;
|
|
108
108
|
};
|
|
109
109
|
|
|
110
110
|
declare type BeneficiaryV2 = {
|
|
@@ -1495,7 +1495,7 @@ declare type Originator = {
|
|
|
1495
1495
|
* @public
|
|
1496
1496
|
*/
|
|
1497
1497
|
declare type OriginatorFields = {
|
|
1498
|
-
source
|
|
1498
|
+
source: Source | Source[];
|
|
1499
1499
|
};
|
|
1500
1500
|
|
|
1501
1501
|
declare type OriginatorV2 = {
|
|
@@ -1699,6 +1699,7 @@ declare interface ResponseToIVMS101RequestConfig extends BaseRequestConfig {
|
|
|
1699
1699
|
|
|
1700
1700
|
declare interface ResponseToTxCreateRequestConfig extends BaseRequestConfig {
|
|
1701
1701
|
referenceId?: string;
|
|
1702
|
+
settlementAddress?: string;
|
|
1702
1703
|
}
|
|
1703
1704
|
|
|
1704
1705
|
export declare type ResponseToTxRequestConfig = ResponseToTxCreateRequestConfig & ResponseToIVMS101RequestConfig;
|
|
@@ -1820,8 +1821,11 @@ export declare enum Status {
|
|
|
1820
1821
|
*/
|
|
1821
1822
|
export declare type Theme = {
|
|
1822
1823
|
mode: 'light' | 'dark';
|
|
1824
|
+
backgroundColor?: string;
|
|
1823
1825
|
primaryColor?: string;
|
|
1826
|
+
primaryForeground?: string;
|
|
1824
1827
|
secondaryColor?: string;
|
|
1828
|
+
secondaryForeground?: string;
|
|
1825
1829
|
fontFamily?: string;
|
|
1826
1830
|
logo?: string;
|
|
1827
1831
|
};
|