@notabene/javascript-sdk 2.0.1 → 2.0.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/notabene.cjs +1 -1
- package/dist/notabene.d.ts +1565 -0
- package/dist/notabene.js +1 -1
- package/dist/tsdoc-metadata.json +11 -0
- package/docs/README.md +656 -0
- package/docs/_media/LICENSE.md +21 -0
- package/docs/_media/TransactionOptions.md +93 -0
- package/docs/_media/locales.ts +48 -0
- package/docs/ivms/types/README.md +46 -0
- package/docs/ivms/types/enumerations/PayloadVersionCode.md +33 -0
- package/docs/ivms/types/interfaces/PayloadMetadata.md +34 -0
- package/docs/ivms/types/type-aliases/Address.md +114 -0
- package/docs/ivms/types/type-aliases/AddressTypeCode.md +16 -0
- package/docs/ivms/types/type-aliases/Beneficiary.md +30 -0
- package/docs/ivms/types/type-aliases/BeneficiaryVASP.md +24 -0
- package/docs/ivms/types/type-aliases/DateAndPlaceOfBirth.md +30 -0
- package/docs/ivms/types/type-aliases/ISOCountryCode.md +22 -0
- package/docs/ivms/types/type-aliases/ISODate.md +23 -0
- package/docs/ivms/types/type-aliases/IVMS101.md +41 -0
- package/docs/ivms/types/type-aliases/IntermediaryVASP.md +30 -0
- package/docs/ivms/types/type-aliases/LegalPerson.md +48 -0
- package/docs/ivms/types/type-aliases/LegalPersonName.md +36 -0
- package/docs/ivms/types/type-aliases/LegalPersonNameID.md +30 -0
- package/docs/ivms/types/type-aliases/LegalPersonNameTypeCode.md +16 -0
- package/docs/ivms/types/type-aliases/LocalLegalPersonNameID.md +30 -0
- package/docs/ivms/types/type-aliases/LocalNaturalPersonNameID.md +36 -0
- package/docs/ivms/types/type-aliases/NationalIdentification.md +42 -0
- package/docs/ivms/types/type-aliases/NationalIdentifierTypeCode.md +16 -0
- package/docs/ivms/types/type-aliases/NaturalPerson.md +54 -0
- package/docs/ivms/types/type-aliases/NaturalPersonName.md +36 -0
- package/docs/ivms/types/type-aliases/NaturalPersonNameID.md +36 -0
- package/docs/ivms/types/type-aliases/NaturalPersonNameTypeCode.md +16 -0
- package/docs/ivms/types/type-aliases/OriginatingVASP.md +24 -0
- package/docs/ivms/types/type-aliases/Originator.md +30 -0
- package/docs/ivms/types/type-aliases/Person.md +30 -0
- package/docs/ivms/types/type-aliases/TransferPath.md +24 -0
- package/docs/ivms/types/type-aliases/TransliterationMethodCode.md +16 -0
- package/docs/modules.md +11 -0
- package/docs/notabene/README.md +368 -0
- package/docs/notabene/classes/EmbeddedComponent.md +347 -0
- package/docs/notabene/classes/default.md +221 -0
- package/docs/notabene/functions/decodeFragmentToObject.md +27 -0
- package/docs/notabene/interfaces/NotabeneConfig.md +69 -0
- package/docs/notabene/type-aliases/MessageCallback.md +31 -0
- package/docs/types/README.md +154 -0
- package/docs/types/enumerations/AgentType.md +29 -0
- package/docs/types/enumerations/CMType.md +90 -0
- package/docs/types/enumerations/HMType.md +35 -0
- package/docs/types/enumerations/PersonType.md +55 -0
- package/docs/types/enumerations/ProofStatus.md +57 -0
- package/docs/types/enumerations/ProofTypes.md +148 -0
- package/docs/types/enumerations/Status.md +59 -0
- package/docs/types/enumerations/ValidationSections.md +59 -0
- package/docs/types/interfaces/Agent.md +74 -0
- package/docs/types/interfaces/CallbackOptions.md +29 -0
- package/docs/types/interfaces/ComponentRequest.md +50 -0
- package/docs/types/interfaces/ComponentResponse.md +71 -0
- package/docs/types/interfaces/ConnectionRecord.md +111 -0
- package/docs/types/interfaces/ConnectionRequest.md +51 -0
- package/docs/types/interfaces/Counterparty.md +135 -0
- package/docs/types/interfaces/DeclarationProof.md +89 -0
- package/docs/types/interfaces/Deposit.md +147 -0
- package/docs/types/interfaces/DepositRequest.md +111 -0
- package/docs/types/interfaces/DepositRequestOptions.md +19 -0
- package/docs/types/interfaces/LegalPerson.md +202 -0
- package/docs/types/interfaces/MicroTransferProof.md +119 -0
- package/docs/types/interfaces/NaturalPerson.md +201 -0
- package/docs/types/interfaces/OwnershipProof.md +77 -0
- package/docs/types/interfaces/ScreenshotProof.md +79 -0
- package/docs/types/interfaces/SignatureProof.md +115 -0
- package/docs/types/interfaces/ThresholdOptions.md +47 -0
- package/docs/types/interfaces/Transaction.md +136 -0
- package/docs/types/interfaces/TransactionOptions.md +93 -0
- package/docs/types/interfaces/TransactionResponse.md +130 -0
- package/docs/types/interfaces/VASP.md +127 -0
- package/docs/types/interfaces/Wallet.md +117 -0
- package/docs/types/interfaces/Withdrawal.md +147 -0
- package/docs/types/type-aliases/BlockchainAddress.md +36 -0
- package/docs/types/type-aliases/CAIP10.md +39 -0
- package/docs/types/type-aliases/CAIP19.md +40 -0
- package/docs/types/type-aliases/CAIP2.md +39 -0
- package/docs/types/type-aliases/CAIP220.md +15 -0
- package/docs/types/type-aliases/Cancel.md +23 -0
- package/docs/types/type-aliases/Completed.md +35 -0
- package/docs/types/type-aliases/ComponentMessage.md +41 -0
- package/docs/types/type-aliases/ConnectionOptions.md +15 -0
- package/docs/types/type-aliases/CryptoCredential.md +15 -0
- package/docs/types/type-aliases/DID.md +15 -0
- package/docs/types/type-aliases/DTI.md +38 -0
- package/docs/types/type-aliases/Destination.md +15 -0
- package/docs/types/type-aliases/Error.md +29 -0
- package/docs/types/type-aliases/FieldOptions.md +15 -0
- package/docs/types/type-aliases/FieldTypes.md +25 -0
- package/docs/types/type-aliases/HostMessage.md +37 -0
- package/docs/types/type-aliases/ISOCurrency.md +15 -0
- package/docs/types/type-aliases/InvalidValue.md +45 -0
- package/docs/types/type-aliases/LEI.md +15 -0
- package/docs/types/type-aliases/LegalPersonFieldName.md +13 -0
- package/docs/types/type-aliases/LegalPersonFields.md +15 -0
- package/docs/types/type-aliases/NaturalPersonFieldName.md +15 -0
- package/docs/types/type-aliases/NaturalPersonFields.md +15 -0
- package/docs/types/type-aliases/NotabeneAsset.md +36 -0
- package/docs/types/type-aliases/Ready.md +21 -0
- package/docs/types/type-aliases/ResizeRequest.md +27 -0
- package/docs/types/type-aliases/Source.md +15 -0
- package/docs/types/type-aliases/Theme.md +33 -0
- package/docs/types/type-aliases/TransactionAsset.md +15 -0
- package/docs/types/type-aliases/TravelAddress.md +37 -0
- package/docs/types/type-aliases/URI.md +15 -0
- package/docs/types/type-aliases/UUID.md +27 -0
- package/docs/types/type-aliases/UpdateValue.md +54 -0
- package/docs/types/type-aliases/V1Asset.md +36 -0
- package/docs/types/type-aliases/V1Transaction.md +49 -0
- package/docs/types/type-aliases/VASPOptions.md +25 -0
- package/docs/types/type-aliases/ValidationError.md +25 -0
- package/package.json +16 -14
- package/src/components/EmbeddedComponent.ts +1 -0
- package/src/notabene.ts +21 -21
- package/src/types.ts +1 -1
- package/dist/js/notabene.js +0 -1
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../modules.md) / notabene
|
|
6
|
+
|
|
7
|
+
# notabene
|
|
8
|
+
|
|
9
|
+
## Index
|
|
10
|
+
|
|
11
|
+
### Classes
|
|
12
|
+
|
|
13
|
+
- [default](classes/default.md)
|
|
14
|
+
- [EmbeddedComponent](classes/EmbeddedComponent.md)
|
|
15
|
+
|
|
16
|
+
### Interfaces
|
|
17
|
+
|
|
18
|
+
- [NotabeneConfig](interfaces/NotabeneConfig.md)
|
|
19
|
+
|
|
20
|
+
### Type Aliases
|
|
21
|
+
|
|
22
|
+
- [MessageCallback](type-aliases/MessageCallback.md)
|
|
23
|
+
|
|
24
|
+
### Functions
|
|
25
|
+
|
|
26
|
+
- [decodeFragmentToObject](functions/decodeFragmentToObject.md)
|
|
27
|
+
|
|
28
|
+
## References
|
|
29
|
+
|
|
30
|
+
### Agent
|
|
31
|
+
|
|
32
|
+
Re-exports [Agent](../types/interfaces/Agent.md)
|
|
33
|
+
|
|
34
|
+
***
|
|
35
|
+
|
|
36
|
+
### AgentType
|
|
37
|
+
|
|
38
|
+
Re-exports [AgentType](../types/enumerations/AgentType.md)
|
|
39
|
+
|
|
40
|
+
***
|
|
41
|
+
|
|
42
|
+
### BlockchainAddress
|
|
43
|
+
|
|
44
|
+
Re-exports [BlockchainAddress](../types/type-aliases/BlockchainAddress.md)
|
|
45
|
+
|
|
46
|
+
***
|
|
47
|
+
|
|
48
|
+
### CAIP10
|
|
49
|
+
|
|
50
|
+
Re-exports [CAIP10](../types/type-aliases/CAIP10.md)
|
|
51
|
+
|
|
52
|
+
***
|
|
53
|
+
|
|
54
|
+
### CAIP19
|
|
55
|
+
|
|
56
|
+
Re-exports [CAIP19](../types/type-aliases/CAIP19.md)
|
|
57
|
+
|
|
58
|
+
***
|
|
59
|
+
|
|
60
|
+
### CAIP2
|
|
61
|
+
|
|
62
|
+
Re-exports [CAIP2](../types/type-aliases/CAIP2.md)
|
|
63
|
+
|
|
64
|
+
***
|
|
65
|
+
|
|
66
|
+
### CallbackOptions
|
|
67
|
+
|
|
68
|
+
Re-exports [CallbackOptions](../types/interfaces/CallbackOptions.md)
|
|
69
|
+
|
|
70
|
+
***
|
|
71
|
+
|
|
72
|
+
### Cancel
|
|
73
|
+
|
|
74
|
+
Re-exports [Cancel](../types/type-aliases/Cancel.md)
|
|
75
|
+
|
|
76
|
+
***
|
|
77
|
+
|
|
78
|
+
### CMType
|
|
79
|
+
|
|
80
|
+
Re-exports [CMType](../types/enumerations/CMType.md)
|
|
81
|
+
|
|
82
|
+
***
|
|
83
|
+
|
|
84
|
+
### Completed
|
|
85
|
+
|
|
86
|
+
Re-exports [Completed](../types/type-aliases/Completed.md)
|
|
87
|
+
|
|
88
|
+
***
|
|
89
|
+
|
|
90
|
+
### ComponentMessage
|
|
91
|
+
|
|
92
|
+
Re-exports [ComponentMessage](../types/type-aliases/ComponentMessage.md)
|
|
93
|
+
|
|
94
|
+
***
|
|
95
|
+
|
|
96
|
+
### ComponentResponse
|
|
97
|
+
|
|
98
|
+
Re-exports [ComponentResponse](../types/interfaces/ComponentResponse.md)
|
|
99
|
+
|
|
100
|
+
***
|
|
101
|
+
|
|
102
|
+
### ConnectionRequest
|
|
103
|
+
|
|
104
|
+
Re-exports [ConnectionRequest](../types/interfaces/ConnectionRequest.md)
|
|
105
|
+
|
|
106
|
+
***
|
|
107
|
+
|
|
108
|
+
### Counterparty
|
|
109
|
+
|
|
110
|
+
Re-exports [Counterparty](../types/interfaces/Counterparty.md)
|
|
111
|
+
|
|
112
|
+
***
|
|
113
|
+
|
|
114
|
+
### CryptoCredential
|
|
115
|
+
|
|
116
|
+
Re-exports [CryptoCredential](../types/type-aliases/CryptoCredential.md)
|
|
117
|
+
|
|
118
|
+
***
|
|
119
|
+
|
|
120
|
+
### DeclarationProof
|
|
121
|
+
|
|
122
|
+
Re-exports [DeclarationProof](../types/interfaces/DeclarationProof.md)
|
|
123
|
+
|
|
124
|
+
***
|
|
125
|
+
|
|
126
|
+
### Deposit
|
|
127
|
+
|
|
128
|
+
Re-exports [Deposit](../types/interfaces/Deposit.md)
|
|
129
|
+
|
|
130
|
+
***
|
|
131
|
+
|
|
132
|
+
### DepositRequest
|
|
133
|
+
|
|
134
|
+
Re-exports [DepositRequest](../types/interfaces/DepositRequest.md)
|
|
135
|
+
|
|
136
|
+
***
|
|
137
|
+
|
|
138
|
+
### Destination
|
|
139
|
+
|
|
140
|
+
Re-exports [Destination](../types/type-aliases/Destination.md)
|
|
141
|
+
|
|
142
|
+
***
|
|
143
|
+
|
|
144
|
+
### DID
|
|
145
|
+
|
|
146
|
+
Re-exports [DID](../types/type-aliases/DID.md)
|
|
147
|
+
|
|
148
|
+
***
|
|
149
|
+
|
|
150
|
+
### DTI
|
|
151
|
+
|
|
152
|
+
Re-exports [DTI](../types/type-aliases/DTI.md)
|
|
153
|
+
|
|
154
|
+
***
|
|
155
|
+
|
|
156
|
+
### Error
|
|
157
|
+
|
|
158
|
+
Re-exports [Error](../types/type-aliases/Error.md)
|
|
159
|
+
|
|
160
|
+
***
|
|
161
|
+
|
|
162
|
+
### FieldTypes
|
|
163
|
+
|
|
164
|
+
Re-exports [FieldTypes](../types/type-aliases/FieldTypes.md)
|
|
165
|
+
|
|
166
|
+
***
|
|
167
|
+
|
|
168
|
+
### HMType
|
|
169
|
+
|
|
170
|
+
Re-exports [HMType](../types/enumerations/HMType.md)
|
|
171
|
+
|
|
172
|
+
***
|
|
173
|
+
|
|
174
|
+
### HostMessage
|
|
175
|
+
|
|
176
|
+
Re-exports [HostMessage](../types/type-aliases/HostMessage.md)
|
|
177
|
+
|
|
178
|
+
***
|
|
179
|
+
|
|
180
|
+
### InvalidValue
|
|
181
|
+
|
|
182
|
+
Re-exports [InvalidValue](../types/type-aliases/InvalidValue.md)
|
|
183
|
+
|
|
184
|
+
***
|
|
185
|
+
|
|
186
|
+
### IVMS101
|
|
187
|
+
|
|
188
|
+
Re-exports [IVMS101](../ivms/types/type-aliases/IVMS101.md)
|
|
189
|
+
|
|
190
|
+
***
|
|
191
|
+
|
|
192
|
+
### LegalPerson
|
|
193
|
+
|
|
194
|
+
Re-exports [LegalPerson](../types/interfaces/LegalPerson.md)
|
|
195
|
+
|
|
196
|
+
***
|
|
197
|
+
|
|
198
|
+
### LEI
|
|
199
|
+
|
|
200
|
+
Re-exports [LEI](../types/type-aliases/LEI.md)
|
|
201
|
+
|
|
202
|
+
***
|
|
203
|
+
|
|
204
|
+
### MicroTransferProof
|
|
205
|
+
|
|
206
|
+
Re-exports [MicroTransferProof](../types/interfaces/MicroTransferProof.md)
|
|
207
|
+
|
|
208
|
+
***
|
|
209
|
+
|
|
210
|
+
### NationalIdentification
|
|
211
|
+
|
|
212
|
+
Re-exports [NationalIdentification](../ivms/types/type-aliases/NationalIdentification.md)
|
|
213
|
+
|
|
214
|
+
***
|
|
215
|
+
|
|
216
|
+
### NaturalPerson
|
|
217
|
+
|
|
218
|
+
Re-exports [NaturalPerson](../types/interfaces/NaturalPerson.md)
|
|
219
|
+
|
|
220
|
+
***
|
|
221
|
+
|
|
222
|
+
### NotabeneAsset
|
|
223
|
+
|
|
224
|
+
Re-exports [NotabeneAsset](../types/type-aliases/NotabeneAsset.md)
|
|
225
|
+
|
|
226
|
+
***
|
|
227
|
+
|
|
228
|
+
### OwnershipProof
|
|
229
|
+
|
|
230
|
+
Re-exports [OwnershipProof](../types/interfaces/OwnershipProof.md)
|
|
231
|
+
|
|
232
|
+
***
|
|
233
|
+
|
|
234
|
+
### PersonType
|
|
235
|
+
|
|
236
|
+
Re-exports [PersonType](../types/enumerations/PersonType.md)
|
|
237
|
+
|
|
238
|
+
***
|
|
239
|
+
|
|
240
|
+
### ProofStatus
|
|
241
|
+
|
|
242
|
+
Re-exports [ProofStatus](../types/enumerations/ProofStatus.md)
|
|
243
|
+
|
|
244
|
+
***
|
|
245
|
+
|
|
246
|
+
### ProofTypes
|
|
247
|
+
|
|
248
|
+
Re-exports [ProofTypes](../types/enumerations/ProofTypes.md)
|
|
249
|
+
|
|
250
|
+
***
|
|
251
|
+
|
|
252
|
+
### Ready
|
|
253
|
+
|
|
254
|
+
Re-exports [Ready](../types/type-aliases/Ready.md)
|
|
255
|
+
|
|
256
|
+
***
|
|
257
|
+
|
|
258
|
+
### ResizeRequest
|
|
259
|
+
|
|
260
|
+
Re-exports [ResizeRequest](../types/type-aliases/ResizeRequest.md)
|
|
261
|
+
|
|
262
|
+
***
|
|
263
|
+
|
|
264
|
+
### ScreenshotProof
|
|
265
|
+
|
|
266
|
+
Re-exports [ScreenshotProof](../types/interfaces/ScreenshotProof.md)
|
|
267
|
+
|
|
268
|
+
***
|
|
269
|
+
|
|
270
|
+
### SignatureProof
|
|
271
|
+
|
|
272
|
+
Re-exports [SignatureProof](../types/interfaces/SignatureProof.md)
|
|
273
|
+
|
|
274
|
+
***
|
|
275
|
+
|
|
276
|
+
### Status
|
|
277
|
+
|
|
278
|
+
Re-exports [Status](../types/enumerations/Status.md)
|
|
279
|
+
|
|
280
|
+
***
|
|
281
|
+
|
|
282
|
+
### Theme
|
|
283
|
+
|
|
284
|
+
Re-exports [Theme](../types/type-aliases/Theme.md)
|
|
285
|
+
|
|
286
|
+
***
|
|
287
|
+
|
|
288
|
+
### ThresholdOptions
|
|
289
|
+
|
|
290
|
+
Re-exports [ThresholdOptions](../types/interfaces/ThresholdOptions.md)
|
|
291
|
+
|
|
292
|
+
***
|
|
293
|
+
|
|
294
|
+
### Transaction
|
|
295
|
+
|
|
296
|
+
Re-exports [Transaction](../types/interfaces/Transaction.md)
|
|
297
|
+
|
|
298
|
+
***
|
|
299
|
+
|
|
300
|
+
### TransactionAsset
|
|
301
|
+
|
|
302
|
+
Re-exports [TransactionAsset](../types/type-aliases/TransactionAsset.md)
|
|
303
|
+
|
|
304
|
+
***
|
|
305
|
+
|
|
306
|
+
### TransactionOptions
|
|
307
|
+
|
|
308
|
+
Re-exports [TransactionOptions](../types/interfaces/TransactionOptions.md)
|
|
309
|
+
|
|
310
|
+
***
|
|
311
|
+
|
|
312
|
+
### TransactionResponse
|
|
313
|
+
|
|
314
|
+
Re-exports [TransactionResponse](../types/interfaces/TransactionResponse.md)
|
|
315
|
+
|
|
316
|
+
***
|
|
317
|
+
|
|
318
|
+
### TravelAddress
|
|
319
|
+
|
|
320
|
+
Re-exports [TravelAddress](../types/type-aliases/TravelAddress.md)
|
|
321
|
+
|
|
322
|
+
***
|
|
323
|
+
|
|
324
|
+
### UpdateValue
|
|
325
|
+
|
|
326
|
+
Re-exports [UpdateValue](../types/type-aliases/UpdateValue.md)
|
|
327
|
+
|
|
328
|
+
***
|
|
329
|
+
|
|
330
|
+
### V1Transaction
|
|
331
|
+
|
|
332
|
+
Re-exports [V1Transaction](../types/type-aliases/V1Transaction.md)
|
|
333
|
+
|
|
334
|
+
***
|
|
335
|
+
|
|
336
|
+
### ValidationError
|
|
337
|
+
|
|
338
|
+
Re-exports [ValidationError](../types/type-aliases/ValidationError.md)
|
|
339
|
+
|
|
340
|
+
***
|
|
341
|
+
|
|
342
|
+
### ValidationSections
|
|
343
|
+
|
|
344
|
+
Re-exports [ValidationSections](../types/enumerations/ValidationSections.md)
|
|
345
|
+
|
|
346
|
+
***
|
|
347
|
+
|
|
348
|
+
### VASP
|
|
349
|
+
|
|
350
|
+
Re-exports [VASP](../types/interfaces/VASP.md)
|
|
351
|
+
|
|
352
|
+
***
|
|
353
|
+
|
|
354
|
+
### VASPOptions
|
|
355
|
+
|
|
356
|
+
Re-exports [VASPOptions](../types/type-aliases/VASPOptions.md)
|
|
357
|
+
|
|
358
|
+
***
|
|
359
|
+
|
|
360
|
+
### Wallet
|
|
361
|
+
|
|
362
|
+
Re-exports [Wallet](../types/interfaces/Wallet.md)
|
|
363
|
+
|
|
364
|
+
***
|
|
365
|
+
|
|
366
|
+
### Withdrawal
|
|
367
|
+
|
|
368
|
+
Re-exports [Withdrawal](../types/interfaces/Withdrawal.md)
|
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
[**@notabene/javascript-sdk**](../../README.md) • **Docs**
|
|
2
|
+
|
|
3
|
+
***
|
|
4
|
+
|
|
5
|
+
[@notabene/javascript-sdk](../../modules.md) / [notabene](../README.md) / EmbeddedComponent
|
|
6
|
+
|
|
7
|
+
# Class: EmbeddedComponent\<V, O\>
|
|
8
|
+
|
|
9
|
+
An embedded Notabene component
|
|
10
|
+
|
|
11
|
+
## Type Parameters
|
|
12
|
+
|
|
13
|
+
• **V**
|
|
14
|
+
|
|
15
|
+
• **O**
|
|
16
|
+
|
|
17
|
+
## Constructors
|
|
18
|
+
|
|
19
|
+
### new EmbeddedComponent()
|
|
20
|
+
|
|
21
|
+
> **new EmbeddedComponent**\<`V`, `O`\>(`url`, `value`, `options`?): [`EmbeddedComponent`](EmbeddedComponent.md)\<`V`, `O`\>
|
|
22
|
+
|
|
23
|
+
Creates an instance of EmbeddedComponent.
|
|
24
|
+
|
|
25
|
+
#### Parameters
|
|
26
|
+
|
|
27
|
+
• **url**: `string`
|
|
28
|
+
|
|
29
|
+
The URL of the embedded component
|
|
30
|
+
|
|
31
|
+
• **value**: `Partial`\<`V`\>
|
|
32
|
+
|
|
33
|
+
The initial transaction value
|
|
34
|
+
|
|
35
|
+
• **options?**: `O`
|
|
36
|
+
|
|
37
|
+
#### Returns
|
|
38
|
+
|
|
39
|
+
[`EmbeddedComponent`](EmbeddedComponent.md)\<`V`, `O`\>
|
|
40
|
+
|
|
41
|
+
#### Defined in
|
|
42
|
+
|
|
43
|
+
[components/EmbeddedComponent.ts:34](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/components/EmbeddedComponent.ts#L34)
|
|
44
|
+
|
|
45
|
+
## Accessors
|
|
46
|
+
|
|
47
|
+
### errors
|
|
48
|
+
|
|
49
|
+
#### Get Signature
|
|
50
|
+
|
|
51
|
+
> **get** **errors**(): [`ValidationError`](../../types/type-aliases/ValidationError.md)[]
|
|
52
|
+
|
|
53
|
+
##### Returns
|
|
54
|
+
|
|
55
|
+
[`ValidationError`](../../types/type-aliases/ValidationError.md)[]
|
|
56
|
+
|
|
57
|
+
#### Defined in
|
|
58
|
+
|
|
59
|
+
[components/EmbeddedComponent.ts:72](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/components/EmbeddedComponent.ts#L72)
|
|
60
|
+
|
|
61
|
+
***
|
|
62
|
+
|
|
63
|
+
### options
|
|
64
|
+
|
|
65
|
+
#### Get Signature
|
|
66
|
+
|
|
67
|
+
> **get** **options**(): `undefined` \| `O`
|
|
68
|
+
|
|
69
|
+
##### Returns
|
|
70
|
+
|
|
71
|
+
`undefined` \| `O`
|
|
72
|
+
|
|
73
|
+
#### Defined in
|
|
74
|
+
|
|
75
|
+
[components/EmbeddedComponent.ts:68](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/components/EmbeddedComponent.ts#L68)
|
|
76
|
+
|
|
77
|
+
***
|
|
78
|
+
|
|
79
|
+
### url
|
|
80
|
+
|
|
81
|
+
#### Get Signature
|
|
82
|
+
|
|
83
|
+
> **get** **url**(): `string`
|
|
84
|
+
|
|
85
|
+
Gets the URL of the embedded component
|
|
86
|
+
|
|
87
|
+
##### Returns
|
|
88
|
+
|
|
89
|
+
`string`
|
|
90
|
+
|
|
91
|
+
The URL of the embedded component
|
|
92
|
+
|
|
93
|
+
#### Defined in
|
|
94
|
+
|
|
95
|
+
[components/EmbeddedComponent.ts:56](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/components/EmbeddedComponent.ts#L56)
|
|
96
|
+
|
|
97
|
+
***
|
|
98
|
+
|
|
99
|
+
### value
|
|
100
|
+
|
|
101
|
+
#### Get Signature
|
|
102
|
+
|
|
103
|
+
> **get** **value**(): `Partial`\<`V`\>
|
|
104
|
+
|
|
105
|
+
Gets the current transaction value
|
|
106
|
+
|
|
107
|
+
##### Returns
|
|
108
|
+
|
|
109
|
+
`Partial`\<`V`\>
|
|
110
|
+
|
|
111
|
+
The current transaction value
|
|
112
|
+
|
|
113
|
+
#### Defined in
|
|
114
|
+
|
|
115
|
+
[components/EmbeddedComponent.ts:64](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/components/EmbeddedComponent.ts#L64)
|
|
116
|
+
|
|
117
|
+
## Methods
|
|
118
|
+
|
|
119
|
+
### closeModal()
|
|
120
|
+
|
|
121
|
+
> **closeModal**(): `void`
|
|
122
|
+
|
|
123
|
+
Closes the modal dialog
|
|
124
|
+
|
|
125
|
+
#### Returns
|
|
126
|
+
|
|
127
|
+
`void`
|
|
128
|
+
|
|
129
|
+
#### Defined in
|
|
130
|
+
|
|
131
|
+
[components/EmbeddedComponent.ts:230](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/components/EmbeddedComponent.ts#L230)
|
|
132
|
+
|
|
133
|
+
***
|
|
134
|
+
|
|
135
|
+
### completion()
|
|
136
|
+
|
|
137
|
+
> **completion**(): `Promise`\<[`TransactionResponse`](../../types/interfaces/TransactionResponse.md)\<`V`\>\>
|
|
138
|
+
|
|
139
|
+
Waits for the component to complete and returns the transaction response
|
|
140
|
+
|
|
141
|
+
#### Returns
|
|
142
|
+
|
|
143
|
+
`Promise`\<[`TransactionResponse`](../../types/interfaces/TransactionResponse.md)\<`V`\>\>
|
|
144
|
+
|
|
145
|
+
A promise that resolves with the transaction response
|
|
146
|
+
|
|
147
|
+
#### Defined in
|
|
148
|
+
|
|
149
|
+
[components/EmbeddedComponent.ts:173](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/components/EmbeddedComponent.ts#L173)
|
|
150
|
+
|
|
151
|
+
***
|
|
152
|
+
|
|
153
|
+
### embed()
|
|
154
|
+
|
|
155
|
+
> **embed**(`parent`, `modal`): `void`
|
|
156
|
+
|
|
157
|
+
Embeds the component into a parent element
|
|
158
|
+
|
|
159
|
+
#### Parameters
|
|
160
|
+
|
|
161
|
+
• **parent**: `Element`
|
|
162
|
+
|
|
163
|
+
The parent element to embed the component into
|
|
164
|
+
|
|
165
|
+
• **modal**: `boolean` = `false`
|
|
166
|
+
|
|
167
|
+
#### Returns
|
|
168
|
+
|
|
169
|
+
`void`
|
|
170
|
+
|
|
171
|
+
#### Defined in
|
|
172
|
+
|
|
173
|
+
[components/EmbeddedComponent.ts:100](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/components/EmbeddedComponent.ts#L100)
|
|
174
|
+
|
|
175
|
+
***
|
|
176
|
+
|
|
177
|
+
### mount()
|
|
178
|
+
|
|
179
|
+
> **mount**(`parentId`): `void`
|
|
180
|
+
|
|
181
|
+
Mounts the component to a parent element
|
|
182
|
+
|
|
183
|
+
#### Parameters
|
|
184
|
+
|
|
185
|
+
• **parentId**: `string`
|
|
186
|
+
|
|
187
|
+
The ID of the parent element
|
|
188
|
+
|
|
189
|
+
#### Returns
|
|
190
|
+
|
|
191
|
+
`void`
|
|
192
|
+
|
|
193
|
+
#### Throws
|
|
194
|
+
|
|
195
|
+
Will throw an error if the parent element is not found
|
|
196
|
+
|
|
197
|
+
#### Defined in
|
|
198
|
+
|
|
199
|
+
[components/EmbeddedComponent.ts:90](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/components/EmbeddedComponent.ts#L90)
|
|
200
|
+
|
|
201
|
+
***
|
|
202
|
+
|
|
203
|
+
### off()
|
|
204
|
+
|
|
205
|
+
> **off**(`messageType`, `callback`): `void`
|
|
206
|
+
|
|
207
|
+
Removes an event listener for a specific message type
|
|
208
|
+
|
|
209
|
+
#### Parameters
|
|
210
|
+
|
|
211
|
+
• **messageType**: `string`
|
|
212
|
+
|
|
213
|
+
The type of message to stop listening for
|
|
214
|
+
|
|
215
|
+
• **callback**: [`MessageCallback`](../type-aliases/MessageCallback.md)\<`V`\>
|
|
216
|
+
|
|
217
|
+
The callback function to remove
|
|
218
|
+
|
|
219
|
+
#### Returns
|
|
220
|
+
|
|
221
|
+
`void`
|
|
222
|
+
|
|
223
|
+
#### Defined in
|
|
224
|
+
|
|
225
|
+
[components/EmbeddedComponent.ts:154](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/components/EmbeddedComponent.ts#L154)
|
|
226
|
+
|
|
227
|
+
***
|
|
228
|
+
|
|
229
|
+
### on()
|
|
230
|
+
|
|
231
|
+
> **on**(`messageType`, `callback`): () => `void`
|
|
232
|
+
|
|
233
|
+
Adds an event listener for a specific message type
|
|
234
|
+
|
|
235
|
+
#### Parameters
|
|
236
|
+
|
|
237
|
+
• **messageType**: `string`
|
|
238
|
+
|
|
239
|
+
The type of message to listen for
|
|
240
|
+
|
|
241
|
+
• **callback**: [`MessageCallback`](../type-aliases/MessageCallback.md)\<`V`\>
|
|
242
|
+
|
|
243
|
+
The callback function to execute when the message is received
|
|
244
|
+
|
|
245
|
+
#### Returns
|
|
246
|
+
|
|
247
|
+
`Function`
|
|
248
|
+
|
|
249
|
+
##### Returns
|
|
250
|
+
|
|
251
|
+
`void`
|
|
252
|
+
|
|
253
|
+
#### Defined in
|
|
254
|
+
|
|
255
|
+
[components/EmbeddedComponent.ts:144](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/components/EmbeddedComponent.ts#L144)
|
|
256
|
+
|
|
257
|
+
***
|
|
258
|
+
|
|
259
|
+
### open()
|
|
260
|
+
|
|
261
|
+
> **open**(): `void`
|
|
262
|
+
|
|
263
|
+
Opens the component URL in the current window
|
|
264
|
+
|
|
265
|
+
#### Returns
|
|
266
|
+
|
|
267
|
+
`void`
|
|
268
|
+
|
|
269
|
+
#### Defined in
|
|
270
|
+
|
|
271
|
+
[components/EmbeddedComponent.ts:80](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/components/EmbeddedComponent.ts#L80)
|
|
272
|
+
|
|
273
|
+
***
|
|
274
|
+
|
|
275
|
+
### openModal()
|
|
276
|
+
|
|
277
|
+
> **openModal**(): `Promise`\<[`TransactionResponse`](../../types/interfaces/TransactionResponse.md)\<`V`\>\>
|
|
278
|
+
|
|
279
|
+
Opens the component in a modal dialog
|
|
280
|
+
|
|
281
|
+
#### Returns
|
|
282
|
+
|
|
283
|
+
`Promise`\<[`TransactionResponse`](../../types/interfaces/TransactionResponse.md)\<`V`\>\>
|
|
284
|
+
|
|
285
|
+
#### Defined in
|
|
286
|
+
|
|
287
|
+
[components/EmbeddedComponent.ts:196](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/components/EmbeddedComponent.ts#L196)
|
|
288
|
+
|
|
289
|
+
***
|
|
290
|
+
|
|
291
|
+
### removeEmbed()
|
|
292
|
+
|
|
293
|
+
> **removeEmbed**(): `void`
|
|
294
|
+
|
|
295
|
+
#### Returns
|
|
296
|
+
|
|
297
|
+
`void`
|
|
298
|
+
|
|
299
|
+
#### Defined in
|
|
300
|
+
|
|
301
|
+
[components/EmbeddedComponent.ts:126](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/components/EmbeddedComponent.ts#L126)
|
|
302
|
+
|
|
303
|
+
***
|
|
304
|
+
|
|
305
|
+
### send()
|
|
306
|
+
|
|
307
|
+
> **send**(`message`): `void`
|
|
308
|
+
|
|
309
|
+
Sends a message to the embedded component
|
|
310
|
+
|
|
311
|
+
#### Parameters
|
|
312
|
+
|
|
313
|
+
• **message**: [`HostMessage`](../../types/type-aliases/HostMessage.md)\<`V`, `O`\>
|
|
314
|
+
|
|
315
|
+
The message to send
|
|
316
|
+
|
|
317
|
+
#### Returns
|
|
318
|
+
|
|
319
|
+
`void`
|
|
320
|
+
|
|
321
|
+
#### Defined in
|
|
322
|
+
|
|
323
|
+
[components/EmbeddedComponent.ts:134](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/components/EmbeddedComponent.ts#L134)
|
|
324
|
+
|
|
325
|
+
***
|
|
326
|
+
|
|
327
|
+
### update()
|
|
328
|
+
|
|
329
|
+
> **update**(`value`, `options`?): `void`
|
|
330
|
+
|
|
331
|
+
Updates the transaction value and sends an update message to the component
|
|
332
|
+
|
|
333
|
+
#### Parameters
|
|
334
|
+
|
|
335
|
+
• **value**: `Partial`\<`V`\>
|
|
336
|
+
|
|
337
|
+
The new transaction value
|
|
338
|
+
|
|
339
|
+
• **options?**: `O`
|
|
340
|
+
|
|
341
|
+
#### Returns
|
|
342
|
+
|
|
343
|
+
`void`
|
|
344
|
+
|
|
345
|
+
#### Defined in
|
|
346
|
+
|
|
347
|
+
[components/EmbeddedComponent.ts:162](https://gitlab.com/notabene/open-source/javascript-sdk/-/blob/675e0bac9f2136d1cf47e6f5980760f80d3d1995/src/components/EmbeddedComponent.ts#L162)
|