@notabene/javascript-sdk 2.16.0-next.4 → 2.16.0-next.6
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/README.md +8 -0
- package/dist/cjs/notabene.cjs +1 -1
- package/dist/cjs/notabene.d.ts +36 -3
- package/dist/cjs/package.json +1 -1
- package/dist/esm/notabene.d.ts +36 -3
- package/dist/esm/notabene.js +1 -1
- package/dist/esm/package.json +1 -1
- package/dist/notabene.d.ts +36 -3
- package/dist/notabene.js +1 -1
- package/package.json +1 -1
- package/src/notabene.ts +2 -0
- package/src/responseTransformer/transformer.ts +1 -3
- package/src/types.ts +47 -8
- package/src/utils/arbitraries.ts +44 -7
package/README.md
CHANGED
|
@@ -806,6 +806,7 @@ const options: TransactionOptions = {
|
|
|
806
806
|
},
|
|
807
807
|
},
|
|
808
808
|
vasps: {
|
|
809
|
+
// V1 options — `searchable` is mutually exclusive with V2 `showTrustStatus` below
|
|
809
810
|
addUnknown: true, // Allow users to add a missing VASP - Defaults to false
|
|
810
811
|
onlyActive: true, // Only list active VASPs - Default false
|
|
811
812
|
searchable: [
|
|
@@ -813,6 +814,13 @@ const options: TransactionOptions = {
|
|
|
813
814
|
VASPSearchControl.PENDING, // JS: 'pending'
|
|
814
815
|
], // Control searches for VASPs - Defaults to undefined
|
|
815
816
|
},
|
|
817
|
+
// V2 alternative — filter by trust status instead of `searchable`. `addUnknown`
|
|
818
|
+
// and `onlyActive` remain valid; `searchable` cannot be combined with `showTrustStatus`:
|
|
819
|
+
// vasps: {
|
|
820
|
+
// addUnknown: true,
|
|
821
|
+
// onlyActive: true,
|
|
822
|
+
// showTrustStatus: ['TRUSTED', 'NEW'], // 'TRUSTED' | 'NEW' | 'FLAGGED' | 'BANNED'
|
|
823
|
+
// },
|
|
816
824
|
counterpartyAssist: { // Allows users to share a link to collect counterparty data
|
|
817
825
|
counterpartyTypes: [
|
|
818
826
|
PersonType.LEGAL, // JS: 'legal'
|