@notabene/javascript-sdk 2.8.0-next.2 → 2.8.0-next.4

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.
Files changed (121) hide show
  1. package/dist/cjs/notabene.d.ts +1645 -0
  2. package/dist/cjs/package.json +107 -0
  3. package/dist/esm/notabene.d.ts +1645 -0
  4. package/dist/esm/notabene.js +393 -0
  5. package/dist/esm/package.json +107 -0
  6. package/dist/notabene.d.ts +5 -5
  7. package/docs/_media/TransactionOptions.md +6 -6
  8. package/docs/ivms/types/enumerations/PayloadVersionCode.md +2 -2
  9. package/docs/ivms/types/interfaces/PayloadMetadata.md +2 -2
  10. package/docs/ivms/types/type-aliases/Address.md +1 -1
  11. package/docs/ivms/types/type-aliases/AddressTypeCode.md +1 -1
  12. package/docs/ivms/types/type-aliases/Beneficiary.md +1 -1
  13. package/docs/ivms/types/type-aliases/BeneficiaryVASP.md +1 -1
  14. package/docs/ivms/types/type-aliases/DateAndPlaceOfBirth.md +1 -1
  15. package/docs/ivms/types/type-aliases/ISOCountryCode.md +1 -1
  16. package/docs/ivms/types/type-aliases/ISODate.md +1 -1
  17. package/docs/ivms/types/type-aliases/IVMS101.md +1 -1
  18. package/docs/ivms/types/type-aliases/IntermediaryVASP.md +1 -1
  19. package/docs/ivms/types/type-aliases/LegalPerson.md +1 -1
  20. package/docs/ivms/types/type-aliases/LegalPersonName.md +1 -1
  21. package/docs/ivms/types/type-aliases/LegalPersonNameID.md +1 -1
  22. package/docs/ivms/types/type-aliases/LegalPersonNameTypeCode.md +1 -1
  23. package/docs/ivms/types/type-aliases/LocalLegalPersonNameID.md +1 -1
  24. package/docs/ivms/types/type-aliases/LocalNaturalPersonNameID.md +1 -1
  25. package/docs/ivms/types/type-aliases/NationalIdentification.md +1 -1
  26. package/docs/ivms/types/type-aliases/NationalIdentifierTypeCode.md +1 -1
  27. package/docs/ivms/types/type-aliases/NaturalPerson.md +1 -1
  28. package/docs/ivms/types/type-aliases/NaturalPersonName.md +1 -1
  29. package/docs/ivms/types/type-aliases/NaturalPersonNameID.md +1 -1
  30. package/docs/ivms/types/type-aliases/NaturalPersonNameTypeCode.md +1 -1
  31. package/docs/ivms/types/type-aliases/OriginatingVASP.md +1 -1
  32. package/docs/ivms/types/type-aliases/Originator.md +1 -1
  33. package/docs/ivms/types/type-aliases/Person.md +1 -1
  34. package/docs/ivms/types/type-aliases/TransferPath.md +1 -1
  35. package/docs/ivms/types/type-aliases/TransliterationMethodCode.md +1 -1
  36. package/docs/notabene/README.md +30 -0
  37. package/docs/notabene/classes/EmbeddedComponent.md +17 -17
  38. package/docs/notabene/classes/default.md +7 -7
  39. package/docs/notabene/functions/decodeFragmentToObject.md +1 -1
  40. package/docs/notabene/interfaces/NotabeneConfig.md +5 -5
  41. package/docs/notabene/type-aliases/MessageCallback.md +1 -1
  42. package/docs/types/README.md +2 -0
  43. package/docs/types/enumerations/AgentType.md +2 -2
  44. package/docs/types/enumerations/CMType.md +7 -7
  45. package/docs/types/enumerations/ErrorIdentifierCode.md +4 -4
  46. package/docs/types/enumerations/HMType.md +2 -2
  47. package/docs/types/enumerations/PersonType.md +3 -3
  48. package/docs/types/enumerations/ProofStatus.md +4 -4
  49. package/docs/types/enumerations/ProofTypes.md +36 -14
  50. package/docs/types/enumerations/Status.md +5 -5
  51. package/docs/types/enumerations/VASPSearchControl.md +2 -2
  52. package/docs/types/enumerations/ValidationSections.md +4 -4
  53. package/docs/types/interfaces/Agent.md +6 -6
  54. package/docs/types/interfaces/CallbackOptions.md +2 -2
  55. package/docs/types/interfaces/ComponentRequest.md +2 -2
  56. package/docs/types/interfaces/ComponentResponse.md +4 -4
  57. package/docs/types/interfaces/ConnectionRecord.md +7 -7
  58. package/docs/types/interfaces/ConnectionRequest.md +3 -3
  59. package/docs/types/interfaces/Counterparty.md +10 -10
  60. package/docs/types/interfaces/DeclarationProof.md +6 -6
  61. package/docs/types/interfaces/Deposit.md +25 -11
  62. package/docs/types/interfaces/DepositRequest.md +7 -7
  63. package/docs/types/interfaces/DepositRequestOptions.md +1 -1
  64. package/docs/types/interfaces/DepositTransaction.md +9 -9
  65. package/docs/types/interfaces/LegalPerson.md +13 -13
  66. package/docs/types/interfaces/MicroTransferProof.md +9 -9
  67. package/docs/types/interfaces/NaturalPerson.md +13 -13
  68. package/docs/types/interfaces/OwnershipProof.md +4 -4
  69. package/docs/types/interfaces/RefreshSource.md +27 -0
  70. package/docs/types/interfaces/Refreshable.md +22 -0
  71. package/docs/types/interfaces/ScreenshotProof.md +5 -5
  72. package/docs/types/interfaces/SignatureProof.md +23 -9
  73. package/docs/types/interfaces/ThresholdOptions.md +3 -3
  74. package/docs/types/interfaces/Transaction.md +8 -8
  75. package/docs/types/interfaces/TransactionOptions.md +6 -6
  76. package/docs/types/interfaces/TransactionResponse.md +9 -9
  77. package/docs/types/interfaces/VASP.md +9 -9
  78. package/docs/types/interfaces/Wallet.md +8 -8
  79. package/docs/types/interfaces/Withdrawal.md +24 -10
  80. package/docs/types/type-aliases/BlockchainAddress.md +1 -1
  81. package/docs/types/type-aliases/CAIP10.md +1 -1
  82. package/docs/types/type-aliases/CAIP19.md +1 -1
  83. package/docs/types/type-aliases/CAIP2.md +1 -1
  84. package/docs/types/type-aliases/CAIP220.md +1 -1
  85. package/docs/types/type-aliases/Cancel.md +1 -1
  86. package/docs/types/type-aliases/Completed.md +1 -1
  87. package/docs/types/type-aliases/ComponentMessage.md +1 -1
  88. package/docs/types/type-aliases/ConnectionOptions.md +1 -1
  89. package/docs/types/type-aliases/CryptoCredential.md +1 -1
  90. package/docs/types/type-aliases/DID.md +1 -1
  91. package/docs/types/type-aliases/DTI.md +1 -1
  92. package/docs/types/type-aliases/Destination.md +1 -1
  93. package/docs/types/type-aliases/Error.md +1 -1
  94. package/docs/types/type-aliases/FieldOptions.md +2 -2
  95. package/docs/types/type-aliases/FieldTypes.md +1 -1
  96. package/docs/types/type-aliases/HostMessage.md +1 -1
  97. package/docs/types/type-aliases/ISOCurrency.md +1 -1
  98. package/docs/types/type-aliases/InvalidValue.md +1 -1
  99. package/docs/types/type-aliases/LEI.md +1 -1
  100. package/docs/types/type-aliases/LegalPersonFieldName.md +1 -1
  101. package/docs/types/type-aliases/LegalPersonFields.md +1 -1
  102. package/docs/types/type-aliases/NaturalPersonFieldName.md +1 -1
  103. package/docs/types/type-aliases/NaturalPersonFields.md +1 -1
  104. package/docs/types/type-aliases/NotabeneAsset.md +1 -1
  105. package/docs/types/type-aliases/Ready.md +1 -1
  106. package/docs/types/type-aliases/ResizeRequest.md +1 -1
  107. package/docs/types/type-aliases/Source.md +1 -1
  108. package/docs/types/type-aliases/Theme.md +1 -1
  109. package/docs/types/type-aliases/TransactionAsset.md +1 -1
  110. package/docs/types/type-aliases/TravelAddress.md +1 -1
  111. package/docs/types/type-aliases/URI.md +1 -1
  112. package/docs/types/type-aliases/UUID.md +1 -1
  113. package/docs/types/type-aliases/UpdateValue.md +1 -1
  114. package/docs/types/type-aliases/V1Asset.md +1 -1
  115. package/docs/types/type-aliases/V1Transaction.md +1 -1
  116. package/docs/types/type-aliases/VASPOptions.md +1 -1
  117. package/docs/types/type-aliases/ValidationError.md +1 -1
  118. package/package.json +23 -3
  119. package/src/notabene.ts +10 -0
  120. package/src/types.ts +1 -0
  121. /package/dist/{notabene.cjs → cjs/notabene.cjs} +0 -0
@@ -36,4 +36,4 @@ through these message types:
36
36
 
37
37
  ## Defined in
38
38
 
39
- [types.ts:907](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L907)
39
+ [types.ts:923](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L923)
@@ -12,4 +12,4 @@ An object representing options for a Connection Request
12
12
 
13
13
  ## Defined in
14
14
 
15
- [types.ts:583](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L583)
15
+ [types.ts:598](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L598)
@@ -12,4 +12,4 @@ A crypto credential
12
12
 
13
13
  ## Defined in
14
14
 
15
- [types.ts:191](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L191)
15
+ [types.ts:191](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L191)
@@ -12,4 +12,4 @@ A Decentralized Identifier
12
12
 
13
13
  ## Defined in
14
14
 
15
- [types.ts:219](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L219)
15
+ [types.ts:219](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L219)
@@ -35,4 +35,4 @@ Format: `DTI[NNNNN]` where N is a digit
35
35
 
36
36
  ## Defined in
37
37
 
38
- [types.ts:117](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L117)
38
+ [types.ts:117](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L117)
@@ -12,4 +12,4 @@ The destination of a transaction either a blockchain address, a CAIP-19 address,
12
12
 
13
13
  ## Defined in
14
14
 
15
- [types.ts:197](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L197)
15
+ [types.ts:197](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L197)
@@ -42,4 +42,4 @@ Identifier code of the error message
42
42
 
43
43
  ## Defined in
44
44
 
45
- [types.ts:858](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L858)
45
+ [types.ts:874](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L874)
@@ -6,10 +6,10 @@
6
6
 
7
7
  # Type Alias: FieldOptions
8
8
 
9
- > **FieldOptions**: `boolean` \| \{ `optional`: `boolean`; `transmit`: `boolean`; \}
9
+ > **FieldOptions**: `boolean` \| `string`[] \| \{ `optional`: `boolean`; `transmit`: `boolean`; \}
10
10
 
11
11
  Field properties
12
12
 
13
13
  ## Defined in
14
14
 
15
- [types.ts:699](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L699)
15
+ [types.ts:714](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L714)
@@ -22,4 +22,4 @@ Field type configuration
22
22
 
23
23
  ## Defined in
24
24
 
25
- [types.ts:711](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L711)
25
+ [types.ts:727](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L727)
@@ -34,4 +34,4 @@ without requiring full reinitialization.
34
34
 
35
35
  ## Defined in
36
36
 
37
- [types.ts:970](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L970)
37
+ [types.ts:986](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L986)
@@ -12,4 +12,4 @@
12
12
 
13
13
  ## Defined in
14
14
 
15
- [types.ts:231](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L231)
15
+ [types.ts:231](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L231)
@@ -42,4 +42,4 @@ Array of validation errors
42
42
 
43
43
  ## Defined in
44
44
 
45
- [types.ts:880](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L880)
45
+ [types.ts:896](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L896)
@@ -12,4 +12,4 @@ A LEI Legal Entity Identifier
12
12
 
13
13
  ## Defined in
14
14
 
15
- [types.ts:225](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L225)
15
+ [types.ts:225](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L225)
@@ -10,4 +10,4 @@
10
10
 
11
11
  ## Defined in
12
12
 
13
- [types.ts:430](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L430)
13
+ [types.ts:430](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L430)
@@ -12,4 +12,4 @@ Field properties by field name
12
12
 
13
13
  ## Defined in
14
14
 
15
- [types.ts:444](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L444)
15
+ [types.ts:444](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L444)
@@ -12,4 +12,4 @@ Field names for NaturalPerson
12
12
 
13
13
  ## Defined in
14
14
 
15
- [types.ts:383](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L383)
15
+ [types.ts:383](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L383)
@@ -12,4 +12,4 @@ Field properties by field name for Natural persons
12
12
 
13
13
  ## Defined in
14
14
 
15
- [types.ts:398](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L398)
15
+ [types.ts:398](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L398)
@@ -33,4 +33,4 @@ system that may be used alongside CAIP-19 and DTI identifiers.
33
33
 
34
34
  ## Defined in
35
35
 
36
- [types.ts:139](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L139)
36
+ [types.ts:139](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L139)
@@ -18,4 +18,4 @@ Represents a ready component message
18
18
 
19
19
  ## Defined in
20
20
 
21
- [types.ts:827](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L827)
21
+ [types.ts:843](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L843)
@@ -24,4 +24,4 @@ Represents a resize request component message. This is handled by the library.
24
24
 
25
25
  ## Defined in
26
26
 
27
- [types.ts:835](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L835)
27
+ [types.ts:851](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L851)
@@ -12,4 +12,4 @@ The source of a transaction
12
12
 
13
13
  ## Defined in
14
14
 
15
- [types.ts:207](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L207)
15
+ [types.ts:207](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L207)
@@ -34,4 +34,4 @@ The theme of the Notabene SDK
34
34
 
35
35
  ## Defined in
36
36
 
37
- [types.ts:237](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L237)
37
+ [types.ts:237](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L237)
@@ -12,4 +12,4 @@ The asset of a transaction either a Notabene asset, a CAIP-19 asset, or a DTI.
12
12
 
13
13
  ## Defined in
14
14
 
15
- [types.ts:145](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L145)
15
+ [types.ts:145](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L145)
@@ -34,4 +34,4 @@ VASPs and blockchain networks while maintaining privacy.
34
34
 
35
35
  ## Defined in
36
36
 
37
- [types.ts:186](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L186)
37
+ [types.ts:186](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L186)
@@ -12,4 +12,4 @@ A Uniform Resource Identifier
12
12
 
13
13
  ## Defined in
14
14
 
15
- [types.ts:213](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L213)
15
+ [types.ts:213](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L213)
@@ -24,4 +24,4 @@ Format: 8-4-4-4-12 hexadecimal digits
24
24
 
25
25
  ## Defined in
26
26
 
27
- [types.ts:39](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L39)
27
+ [types.ts:39](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L39)
@@ -51,4 +51,4 @@ and its configuration without requiring a full reload/reinitialize.
51
51
 
52
52
  ## Defined in
53
53
 
54
- [types.ts:948](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L948)
54
+ [types.ts:964](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L964)
@@ -33,4 +33,4 @@ Used for backwards compatibility with V1 API transaction payloads:
33
33
 
34
34
  ## Defined in
35
35
 
36
- [types.ts:614](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L614)
36
+ [types.ts:629](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L629)
@@ -54,4 +54,4 @@ Transaction payload suitable for calling Notabene v1 tx/create
54
54
 
55
55
  ## Defined in
56
56
 
57
- [types.ts:620](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L620)
57
+ [types.ts:635](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L635)
@@ -26,4 +26,4 @@ Options for which VASPs to be searchable
26
26
 
27
27
  ## Defined in
28
28
 
29
- [types.ts:733](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L733)
29
+ [types.ts:749](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L749)
@@ -22,4 +22,4 @@ Validation error
22
22
 
23
23
  ## Defined in
24
24
 
25
- [types.ts:690](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/7c1287c0f294e150fbd0ad5bc728bba0920f5ad7/src/types.ts#L690)
25
+ [types.ts:705](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/80aada173fac6a9b5f05869abafa3c1c6cc56aa9/src/types.ts#L705)
package/package.json CHANGED
@@ -10,10 +10,30 @@
10
10
  "author": "Notabene <developers@notabene.id>",
11
11
  "license": "MIT",
12
12
  "packageManager": "yarn@4.5.1",
13
- "version": "2.8.0-next.2",
13
+ "version": "2.8.0-next.4",
14
14
  "source": "src/notabene.ts",
15
- "main": "dist/notabene.js",
15
+ "main": "dist/cjs/notabene.cjs",
16
+ "module": "dist/esm/notabene.js",
16
17
  "types": "dist/notabene.d.ts",
18
+ "exports": {
19
+ ".": {
20
+ "types": {
21
+ "import": "./dist/esm/notabene.d.ts",
22
+ "require": "./dist/cjs/notabene.d.ts"
23
+ },
24
+ "import": "./dist/esm/notabene.js",
25
+ "require": "./dist/cjs/notabene.cjs"
26
+ },
27
+ "./src/types": {
28
+ "types": {
29
+ "import": "./dist/esm/notabene.d.ts",
30
+ "require": "./dist/cjs/notabene.d.ts"
31
+ },
32
+ "import": "./dist/esm/notabene.js",
33
+ "require": "./dist/cjs/notabene.cjs"
34
+ },
35
+ "./src/ivms/types": "./src/ivms/types.ts"
36
+ },
17
37
  "browserslist": "> 0.5%, last 2 versions, not dead",
18
38
  "publishConfig": {
19
39
  "access": "public"
@@ -32,7 +52,7 @@
32
52
  "preview": "vite preview",
33
53
  "build:dev": "yarn build && yarn dev",
34
54
  "build:clean": "rimraf dist ts-out coverage temp",
35
- "build": "vite build && yarn typecheck && api-extractor run --local && yarn docs",
55
+ "build": "vite build && yarn typecheck && api-extractor run --local && node scripts/copy-types.mjs && yarn docs",
36
56
  "lint": "eslint . --max-warnings 0",
37
57
  "lint:fix": "yarn lint --fix --cache --no-warn-ignored",
38
58
  "format": "prettier --write --cache .",
package/src/notabene.ts CHANGED
@@ -22,15 +22,20 @@ import type {
22
22
  DID,
23
23
  DTI,
24
24
  Error,
25
+ FieldOptions,
25
26
  FieldTypes,
26
27
  HostMessage,
27
28
  InvalidValue,
28
29
  IVMS101,
29
30
  LegalPerson,
31
+ LegalPersonFieldName,
32
+ LegalPersonFields,
30
33
  LEI,
31
34
  MicroTransferProof,
32
35
  NationalIdentification,
33
36
  NaturalPerson,
37
+ NaturalPersonFieldName,
38
+ NaturalPersonFields,
34
39
  NotabeneAsset,
35
40
  OwnershipProof,
36
41
  Ready,
@@ -104,16 +109,21 @@ export type {
104
109
  DID,
105
110
  DTI,
106
111
  Error,
112
+ FieldOptions,
107
113
  FieldTypes,
108
114
  HostMessage,
109
115
  InvalidValue,
110
116
  IVMS101,
111
117
  LegalPerson,
118
+ LegalPersonFieldName,
119
+ LegalPersonFields,
112
120
  LEI,
113
121
  MessageCallback,
114
122
  MicroTransferProof,
115
123
  NationalIdentification,
116
124
  NaturalPerson,
125
+ NaturalPersonFieldName,
126
+ NaturalPersonFields,
117
127
  NotabeneAsset,
118
128
  OwnershipProof,
119
129
  Ready,
package/src/types.ts CHANGED
@@ -713,6 +713,7 @@ export type ValidationError = {
713
713
  */
714
714
  export type FieldOptions =
715
715
  | boolean
716
+ | string[] // fields to show
716
717
  | {
717
718
  optional: boolean; // Shown but optional
718
719
  transmit: boolean; // Transmit as part of IVMS 101 to counterparty
File without changes