@notabene/javascript-sdk 2.14.2-next.2 → 2.14.2-next.5
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 +6 -6
- package/dist/cjs/notabene.d.ts +2 -21
- package/dist/cjs/package.json +1 -1
- package/dist/esm/notabene.d.ts +2 -21
- package/dist/esm/notabene.js +834 -818
- package/dist/esm/package.json +1 -1
- package/dist/notabene.d.ts +2 -21
- package/dist/notabene.js +834 -818
- package/package.json +1 -1
- package/src/__tests__/notabene.test.ts +83 -11
- package/src/components/EmbeddedComponent.ts +4 -4
- package/src/ivms/v2Types.ts +1 -1
- package/src/notabene.ts +24 -4
- package/src/responseTransformer/__tests__/transformer.test.ts +1 -1
- package/src/responseTransformer/mappers.ts +1 -1
- package/src/responseTransformer/transformer.ts +2 -2
- package/src/responseTransformer/utils.ts +2 -2
- package/src/types.ts +1 -11
- package/src/utils/MessageEventManager.ts +1 -1
- package/src/utils/__tests__/connections.test.ts +2 -2
- package/src/utils/__tests__/encryption.test.ts +1 -1
package/dist/cjs/notabene.d.ts
CHANGED
|
@@ -653,6 +653,7 @@ export declare interface Counterparty {
|
|
|
653
653
|
*/
|
|
654
654
|
export declare type CounterpartyAssistConfig = boolean | {
|
|
655
655
|
counterpartyTypes: PersonType[];
|
|
656
|
+
/** @remarks Requires a transactionId to be passed in. */
|
|
656
657
|
identityVerification?: IdentityVerificationConfig;
|
|
657
658
|
};
|
|
658
659
|
|
|
@@ -938,8 +939,6 @@ export declare type HostMessage<T, O> = UpdateValue<T, O>;
|
|
|
938
939
|
declare type IdentityVerificationConfig = {
|
|
939
940
|
/** The required verification method. If not specified, none will be used */
|
|
940
941
|
requiredMethod?: IdentityVerificationMethod;
|
|
941
|
-
/** OAuth provider(s) to use for authentication. Can be a single provider or array of providers */
|
|
942
|
-
oAuth?: OAuthProvider[] | OAuthProvider;
|
|
943
942
|
};
|
|
944
943
|
|
|
945
944
|
/**
|
|
@@ -947,8 +946,7 @@ declare type IdentityVerificationConfig = {
|
|
|
947
946
|
* @public
|
|
948
947
|
*/
|
|
949
948
|
export declare enum IdentityVerificationMethod {
|
|
950
|
-
SMS = "sms"
|
|
951
|
-
EMAIL = "email"
|
|
949
|
+
SMS = "sms"
|
|
952
950
|
}
|
|
953
951
|
|
|
954
952
|
/**
|
|
@@ -1327,15 +1325,6 @@ declare type NaturalPersonV2 = Omit<NaturalPerson_2, 'name'> & {
|
|
|
1327
1325
|
name: NaturalPersonNameV2;
|
|
1328
1326
|
};
|
|
1329
1327
|
|
|
1330
|
-
/**
|
|
1331
|
-
* Primary constructor for Notabene UX elements
|
|
1332
|
-
*
|
|
1333
|
-
* This class provides methods to create and manage various Notabene components
|
|
1334
|
-
* such as withdrawal assist, deposit assist, connect, and deposit request.
|
|
1335
|
-
* It also handles URL generation and fragment decoding for these components.
|
|
1336
|
-
*
|
|
1337
|
-
* @public
|
|
1338
|
-
*/
|
|
1339
1328
|
declare class Notabene {
|
|
1340
1329
|
private nodeUrl?;
|
|
1341
1330
|
private authToken?;
|
|
@@ -1460,14 +1449,6 @@ export declare interface NotabeneConfig {
|
|
|
1460
1449
|
locale?: string;
|
|
1461
1450
|
}
|
|
1462
1451
|
|
|
1463
|
-
/**
|
|
1464
|
-
* Supported OAuth providers for authentication
|
|
1465
|
-
* @public
|
|
1466
|
-
*/
|
|
1467
|
-
export declare enum OAuthProvider {
|
|
1468
|
-
COINBASE = "coinbase"
|
|
1469
|
-
}
|
|
1470
|
-
|
|
1471
1452
|
/**
|
|
1472
1453
|
* Originating VASP
|
|
1473
1454
|
* Represents the VASP which initiates the VA transfer
|
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.2-next.
|
|
13
|
+
"version": "2.14.2-next.5",
|
|
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
|
@@ -653,6 +653,7 @@ export declare interface Counterparty {
|
|
|
653
653
|
*/
|
|
654
654
|
export declare type CounterpartyAssistConfig = boolean | {
|
|
655
655
|
counterpartyTypes: PersonType[];
|
|
656
|
+
/** @remarks Requires a transactionId to be passed in. */
|
|
656
657
|
identityVerification?: IdentityVerificationConfig;
|
|
657
658
|
};
|
|
658
659
|
|
|
@@ -938,8 +939,6 @@ export declare type HostMessage<T, O> = UpdateValue<T, O>;
|
|
|
938
939
|
declare type IdentityVerificationConfig = {
|
|
939
940
|
/** The required verification method. If not specified, none will be used */
|
|
940
941
|
requiredMethod?: IdentityVerificationMethod;
|
|
941
|
-
/** OAuth provider(s) to use for authentication. Can be a single provider or array of providers */
|
|
942
|
-
oAuth?: OAuthProvider[] | OAuthProvider;
|
|
943
942
|
};
|
|
944
943
|
|
|
945
944
|
/**
|
|
@@ -947,8 +946,7 @@ declare type IdentityVerificationConfig = {
|
|
|
947
946
|
* @public
|
|
948
947
|
*/
|
|
949
948
|
export declare enum IdentityVerificationMethod {
|
|
950
|
-
SMS = "sms"
|
|
951
|
-
EMAIL = "email"
|
|
949
|
+
SMS = "sms"
|
|
952
950
|
}
|
|
953
951
|
|
|
954
952
|
/**
|
|
@@ -1327,15 +1325,6 @@ declare type NaturalPersonV2 = Omit<NaturalPerson_2, 'name'> & {
|
|
|
1327
1325
|
name: NaturalPersonNameV2;
|
|
1328
1326
|
};
|
|
1329
1327
|
|
|
1330
|
-
/**
|
|
1331
|
-
* Primary constructor for Notabene UX elements
|
|
1332
|
-
*
|
|
1333
|
-
* This class provides methods to create and manage various Notabene components
|
|
1334
|
-
* such as withdrawal assist, deposit assist, connect, and deposit request.
|
|
1335
|
-
* It also handles URL generation and fragment decoding for these components.
|
|
1336
|
-
*
|
|
1337
|
-
* @public
|
|
1338
|
-
*/
|
|
1339
1328
|
declare class Notabene {
|
|
1340
1329
|
private nodeUrl?;
|
|
1341
1330
|
private authToken?;
|
|
@@ -1460,14 +1449,6 @@ export declare interface NotabeneConfig {
|
|
|
1460
1449
|
locale?: string;
|
|
1461
1450
|
}
|
|
1462
1451
|
|
|
1463
|
-
/**
|
|
1464
|
-
* Supported OAuth providers for authentication
|
|
1465
|
-
* @public
|
|
1466
|
-
*/
|
|
1467
|
-
export declare enum OAuthProvider {
|
|
1468
|
-
COINBASE = "coinbase"
|
|
1469
|
-
}
|
|
1470
|
-
|
|
1471
1452
|
/**
|
|
1472
1453
|
* Originating VASP
|
|
1473
1454
|
* Represents the VASP which initiates the VA transfer
|