@notabene/javascript-sdk 1.14.3 → 1.15.2

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/lib/index.js CHANGED
@@ -4,6 +4,22 @@ var $4mxld$zoid = require("zoid");
4
4
  function $parcel$export(e, n, v, s) {
5
5
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
6
6
  }
7
+ function $parcel$exportWildcard(dest, source) {
8
+ Object.keys(source).forEach(function(key) {
9
+ if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) {
10
+ return;
11
+ }
12
+
13
+ Object.defineProperty(dest, key, {
14
+ enumerable: true,
15
+ get: function get() {
16
+ return source[key];
17
+ }
18
+ });
19
+ });
20
+
21
+ return dest;
22
+ }
7
23
  function $parcel$interopDefault(a) {
8
24
  return a && a.__esModule ? a.default : a;
9
25
  }
@@ -11,23 +27,80 @@ function $parcel$interopDefault(a) {
11
27
  $parcel$export(module.exports, "Notabene", () => $fef5d623a19b12b5$export$2e2bcd8739ae039);
12
28
 
13
29
 
14
- let $fef5d623a19b12b5$export$7f2c168e71c689ea;
15
- (function($fef5d623a19b12b5$export$7f2c168e71c689ea) {
16
- $fef5d623a19b12b5$export$7f2c168e71c689ea["ALL"] = "ALL";
17
- $fef5d623a19b12b5$export$7f2c168e71c689ea["VASP_2_VASP_ONLY"] = "VASP_2_VASP_ONLY";
18
- $fef5d623a19b12b5$export$7f2c168e71c689ea["SELF_TRANSACTION_ONLY"] = "SELF_TRANSACTION_ONLY";
19
- })($fef5d623a19b12b5$export$7f2c168e71c689ea || ($fef5d623a19b12b5$export$7f2c168e71c689ea = {}));
20
- let $fef5d623a19b12b5$export$1a2fd016dc0a19e9;
21
- (function($fef5d623a19b12b5$export$1a2fd016dc0a19e9) {
22
- $fef5d623a19b12b5$export$1a2fd016dc0a19e9["SIGNATURE"] = "SIGNATURE";
23
- $fef5d623a19b12b5$export$1a2fd016dc0a19e9["DECLARATION"] = "DECLARATION";
24
- $fef5d623a19b12b5$export$1a2fd016dc0a19e9["SIGNATURE_OR_DECLARATION"] = "SIGNATURE_OR_DECLARATION";
25
- })($fef5d623a19b12b5$export$1a2fd016dc0a19e9 || ($fef5d623a19b12b5$export$1a2fd016dc0a19e9 = {}));
30
+ const $fd25ee12f453fb93$var$generalProps = {
31
+ vaspDID: {
32
+ type: 'string',
33
+ required: true
34
+ },
35
+ transaction: {
36
+ type: 'object',
37
+ required: false
38
+ },
39
+ error: {
40
+ type: 'object',
41
+ required: false
42
+ },
43
+ onError: {
44
+ type: 'function',
45
+ required: true
46
+ },
47
+ storeTransaction: {
48
+ type: 'function',
49
+ required: true
50
+ },
51
+ theme: {
52
+ type: 'object',
53
+ required: false
54
+ },
55
+ dictionary: {
56
+ type: 'object',
57
+ required: false
58
+ },
59
+ transactionTypeAllowed: {
60
+ type: 'string',
61
+ required: false
62
+ },
63
+ nonCustodialDeclarationType: {
64
+ type: 'string',
65
+ required: false
66
+ },
67
+ beneficiaryDetails: {
68
+ type: 'array',
69
+ required: false
70
+ }
71
+ };
72
+ const $fd25ee12f453fb93$export$1aafbfc7f973e450 = {
73
+ ...$fd25ee12f453fb93$var$generalProps,
74
+ onRequireAdditionalInformation: {
75
+ type: 'function',
76
+ required: true
77
+ },
78
+ onValidStateChange: {
79
+ type: 'function',
80
+ required: true
81
+ }
82
+ };
83
+ const $fd25ee12f453fb93$export$73ab9d0d47d71b0c = {
84
+ ...$fd25ee12f453fb93$var$generalProps,
85
+ close: {
86
+ type: 'function'
87
+ },
88
+ popupOpen: {
89
+ type: 'boolean',
90
+ required: true
91
+ },
92
+ setPopupOpen: {
93
+ type: 'function',
94
+ required: true
95
+ }
96
+ };
97
+
98
+
26
99
  class $fef5d623a19b12b5$export$2e2bcd8739ae039 {
27
100
  constructor(config){
28
101
  this.config = config;
29
- this.config.nonCustodialDeclarationType = config.nonCustodialDeclarationType || $fef5d623a19b12b5$export$1a2fd016dc0a19e9.SIGNATURE;
30
- this.config.transactionTypeAllowed = config.transactionTypeAllowed || $fef5d623a19b12b5$export$7f2c168e71c689ea.ALL;
102
+ this.config.nonCustodialDeclarationType = config.nonCustodialDeclarationType || 'SIGNATURE';
103
+ this.config.transactionTypeAllowed = config.transactionTypeAllowed || 'ALL';
31
104
  this.widgetRendered = false;
32
105
  this.shouldBeDestroyed = false;
33
106
  this.popupRendered = false;
@@ -68,31 +141,6 @@ class $fef5d623a19b12b5$export$2e2bcd8739ae039 {
68
141
  this.popupRendered = false;
69
142
  }
70
143
  setTransaction(tx) {
71
- const validProperties = [
72
- 'transactionAsset',
73
- 'transactionAmount',
74
- 'beneficiaryAccountNumber',
75
- 'beneficiaryAccountNumber',
76
- 'originatorVASPdid',
77
- 'originatorDid',
78
- 'transactionBlockchainInfo',
79
- 'beneficiaryVASPname',
80
- 'beneficiaryVASPdid',
81
- 'beneficiaryName',
82
- 'beneficiaryGeographicAddress',
83
- 'beneficiaryNationalIdentification',
84
- 'beneficiaryDateAndPlaceOfBirth',
85
- 'beneficiaryPersonType',
86
- 'beneficiaryDid',
87
- 'isNonCustodial',
88
- 'originatorEqualsBeneficiary',
89
- 'beneficiaryProof',
90
- 'isValid',
91
- 'errors',
92
- ];
93
- if (tx) Object.keys(tx).forEach((key)=>{
94
- if (!validProperties.includes(key)) throw new Error(`Notabene: Invalid transaction property ${key}`);
95
- });
96
144
  this.tx = tx;
97
145
  if (this.widgetRendered) {
98
146
  this.widget.updateProps({
@@ -143,56 +191,7 @@ class $fef5d623a19b12b5$export$2e2bcd8739ae039 {
143
191
  width: '100%',
144
192
  height: '280px'
145
193
  },
146
- props: {
147
- vaspDID: {
148
- type: 'string',
149
- required: true
150
- },
151
- transaction: {
152
- type: 'object',
153
- required: false
154
- },
155
- onRequireAdditionalInformation: {
156
- type: 'function',
157
- required: true
158
- },
159
- onValidStateChange: {
160
- type: 'function',
161
- required: true
162
- },
163
- error: {
164
- type: 'object',
165
- required: false
166
- },
167
- onError: {
168
- type: 'function',
169
- required: true
170
- },
171
- storeTransaction: {
172
- type: 'function',
173
- required: true
174
- },
175
- theme: {
176
- type: 'object',
177
- required: false
178
- },
179
- dictionary: {
180
- type: 'object',
181
- required: false
182
- },
183
- transactionTypeAllowed: {
184
- type: 'string',
185
- required: false
186
- },
187
- nonCustodialDeclarationType: {
188
- type: 'string',
189
- required: false
190
- },
191
- beneficiaryDetails: {
192
- type: 'array',
193
- required: false
194
- }
195
- }
194
+ props: $fd25ee12f453fb93$export$1aafbfc7f973e450
196
195
  })({
197
196
  vaspDID: this.config.vaspDID,
198
197
  transaction: {},
@@ -242,59 +241,7 @@ class $fef5d623a19b12b5$export$2e2bcd8739ae039 {
242
241
  width: '100%',
243
242
  height: '100%'
244
243
  },
245
- props: {
246
- vaspDID: {
247
- type: 'string',
248
- required: true
249
- },
250
- transaction: {
251
- type: 'object',
252
- required: false
253
- },
254
- storeTransaction: {
255
- type: 'function',
256
- required: true
257
- },
258
- close: {
259
- type: 'function'
260
- },
261
- theme: {
262
- type: 'object',
263
- required: false
264
- },
265
- dictionary: {
266
- type: 'object',
267
- required: false
268
- },
269
- transactionTypeAllowed: {
270
- type: 'string',
271
- required: false
272
- },
273
- nonCustodialDeclarationType: {
274
- type: 'string',
275
- required: false
276
- },
277
- popupOpen: {
278
- type: 'boolean',
279
- required: true
280
- },
281
- setPopupOpen: {
282
- type: 'function',
283
- required: true
284
- },
285
- error: {
286
- type: 'object',
287
- required: false
288
- },
289
- onError: {
290
- type: 'function',
291
- required: true
292
- },
293
- beneficiaryDetails: {
294
- type: 'array',
295
- required: false
296
- }
297
- },
244
+ props: $fd25ee12f453fb93$export$73ab9d0d47d71b0c,
298
245
  containerTemplate: ({ uid: uid , doc: doc , frame: frame , prerenderFrame: prerenderFrame })=>{
299
246
  return $4mxld$jsxpragmatic.node('div', {
300
247
  id: uid,
@@ -315,7 +262,6 @@ class $fef5d623a19b12b5$export$2e2bcd8739ae039 {
315
262
  background-color: rgba(0,0,0,0.5);
316
263
  }
317
264
  .nb-popup {
318
- max-width: 608px;
319
265
  width: 100%;
320
266
  height: 100%;
321
267
  }
@@ -372,5 +318,9 @@ class $fef5d623a19b12b5$export$2e2bcd8739ae039 {
372
318
  if (window) window.Notabene = $fef5d623a19b12b5$export$2e2bcd8739ae039;
373
319
 
374
320
 
321
+ var $48505191f6b4c91c$exports = {};
322
+
323
+
324
+ $parcel$exportWildcard(module.exports, $48505191f6b4c91c$exports);
375
325
 
376
326
 
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  },
9
9
  "author": "Notabene <developers@notabene.id>",
10
10
  "license": "MIT",
11
- "version": "1.14.3",
11
+ "version": "1.15.2",
12
12
  "main": "dist/index.js",
13
13
  "packageManager": "yarn@3.2.1",
14
14
  "browserslist": "> 0.5%, last 2 versions, not dead",
@@ -89,6 +89,7 @@
89
89
  ]
90
90
  },
91
91
  "dependencies": {
92
+ "@notabene/validation": "^1.8.0",
92
93
  "jsx-pragmatic": "^2.0.22",
93
94
  "zoid": "^9.0.86"
94
95
  }
package/public/index.html CHANGED
@@ -14,18 +14,19 @@
14
14
  container: '#container',
15
15
  authToken: 'eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NkstUiJ9.eyJpYXQiOjE2NjQyOTQ4MjgsImV4cCI6bnVsbCwidmMiOnsiQGNvbnRleHQiOlsiaHR0cHM6Ly93d3cudzMub3JnLzIwMTgvY3JlZGVudGlhbHMvdjEiLCJodHRwczovL2FwaS5ub3RhYmVuZS5pZC9zY2hlbWFzL3YxIl0sInR5cGUiOlsiVmVyaWZpYWJsZUNyZWRlbnRpYWwiLCJBY2Nlc3NUb2tlbiJdLCJjcmVkZW50aWFsU3ViamVjdCI6eyJzY29wZSI6ImN1c3RvbWVyIn19LCJzdWIiOiJkaWQ6ZXRocjoweGIxMDlkYWM4Y2RmOThiNTk5NzdjMzUyZjM5OGMzZGQ0MjE3NGFhNTQiLCJpc3MiOiJkaWQ6ZXRocjoweGIxMDlkYWM4Y2RmOThiNTk5NzdjMzUyZjM5OGMzZGQ0MjE3NGFhNTQifQ.vgRl581FJnwp2FOeggHzI_81PBQuQMcvCcQlaMcGpc6AsbcAgYCK3-XCk1j1QWx7W4dcv62Qec_Ui2pecijwzQE',
16
16
  onValidStateChange: (isValid) => {
17
- console.log(isValid)
18
- console.log(nb.tx)
17
+ if(isValid){
18
+ console.log('tx: %o',nb.tx)
19
+ }
19
20
  },
20
21
  onError: (err) => {
21
22
  // If any errors are encountered, this function will be called.
22
23
  alert(err.message);
23
24
  },
24
- vaspDID: 'did:ethr:0x8049eb912be2ffb0a9cf559932e215f04ecf9c46',
25
+ vaspDID: 'did:ethr:0x40174bc317b02c5c4812e8bd1ec67908f6b08074',
25
26
  theme:{
26
27
  // primaryColor: '#fff',
27
- // primaryFontColor: '#fff',
28
- // secondaryFontColor: '#fff',
28
+ // primaryFontColor: '#fff',
29
+ // secondaryFontColor: '#fff',
29
30
  // backgroundColor: 'black',
30
31
  // mode: 'dark',
31
32
  },
@@ -0,0 +1,302 @@
1
+ /**
2
+ * 5.3.8
3
+ * NaturalPersonNameTypeCode
4
+ *
5
+ * `ALIA` Alias name - A name other than the legal name by which a natural person is also known.
6
+ * `BIRT` Name at birth - The name given to a natural person at birth.
7
+ * `MAID` Maiden name - The original name of a natural person who has changed their name after marriage.
8
+ * `LEGL` Legal name - The name that identifies a natural person for legal, official or administrative purposes.
9
+ * `MISC` Unspecified - A name by which a natural person may be known but which cannot otherwise be categorized or the category of which the sender is unable to determine.
10
+ */
11
+ export type NaturalPersonNameTypeCode =
12
+ | 'ALIA'
13
+ | 'BIRT'
14
+ | 'MAID'
15
+ | 'LEGL'
16
+ | 'MISC';
17
+
18
+ /**
19
+ * 5.3.9
20
+ * LegalPersonNameTypeCode
21
+ *
22
+ * `LEGL` Legal name - Official name under which an organisation is registered.
23
+ * `SHRT` Short name - Specifies the short name of the organisation.
24
+ * `TRAD` Trading name - Name used by a business for commercial purposes, although its registered legal name, used for contracts and other formal situations, may be another.
25
+ */
26
+ export type LegalPersonNameTypeCode = 'LEGL' | 'SHRT' | 'TRAD';
27
+
28
+ /**
29
+ * 5.3.11
30
+ * AddressTypeCode
31
+ *
32
+ * `HOME` Residential - Address is the home address.
33
+ * `BIZZ` Business - Address is the business address.
34
+ * `GEOG` Geographic - Address is the unspecified physical (geographical) address suitable for identification of the natural or legal person.
35
+ */
36
+ export type AddressTypeCode = 'HOME' | 'BIZZ' | 'GEOG';
37
+
38
+ /**
39
+ * 5.3.14
40
+ * NationalIdentifierTypeCode
41
+ *
42
+ * `ARNU` Alien registration number - Number assigned by a government agency to identify foreign nationals.
43
+ * `CCPT` Passport number - Number assigned by a passport authority.
44
+ * `RAID` Registration authority identifier - Identifier of a legal entity as maintained by a registration authority.
45
+ * `DRLC` Driver license number - Number assigned to a driver's license.
46
+ * `FIIN` Foreign investment identity number - Number assigned to a foreign investor (other than the alien number).
47
+ * `TXID` Tax identification number - Number assigned by a tax authority to an entity.
48
+ * `SOCS` Social security number - Number assigned by a social security agency.
49
+ * `IDCD` Identity card number - Number assigned by a national authority to an identity card.
50
+ * `LEIX` Legal Entity Identifier - Legal Entity Identifier (LEI) assigned in accordance with ISO 17442 11 .
51
+ * `MISC` Unspecified - A national identifier which may be known but which cannot otherwise be categorized or the category of which the sender is unable to determine.
52
+ */
53
+ export type NationalIdentifierTypeCode =
54
+ | 'ARNU'
55
+ | 'CCPT'
56
+ | 'RAID'
57
+ | 'DRLC'
58
+ | 'FIIN'
59
+ | 'TXID'
60
+ | 'SOCS'
61
+ | 'IDCD'
62
+ | 'LEIX'
63
+ | 'MISC';
64
+
65
+ /**
66
+ * 5.3.16
67
+ * TransliterationMethodCode
68
+ *
69
+ * `arab` Arabic (Arabic language) - ISO 233-2:1993
70
+ * `aran` Arabic (Persian language) - ISO 233-3:1999
71
+ * `armn` Armenian - ISO 9985:1996
72
+ * `cyrl` Cyrillic - ISO 9:1995
73
+ * `deva` Devanagari & related Indic - ISO 15919:2001
74
+ * `geor` Georgian - ISO 9984:1996
75
+ * `grek` Greek - ISO 843:1997
76
+ * `hani` Han (Hanzi, Kanji, Hanja) - ISO 7098:2015
77
+ * `hebr` Hebrew - ISO 259-2:1994
78
+ * `kana` Kana - ISO 3602:1989
79
+ * `kore` Korean - Revised Romanization of Korean
80
+ * `thai` Thai - ISO 11940-2:2007
81
+ * `othr` Script other than those listed above - Unspecified
82
+ */
83
+ export type TransliterationMethodCode =
84
+ | 'arab'
85
+ | 'aran'
86
+ | 'armn'
87
+ | 'cyrl'
88
+ | 'deva'
89
+ | 'geor'
90
+ | 'grek'
91
+ | 'hani'
92
+ | 'hebr'
93
+ | 'kana'
94
+ | 'kore'
95
+ | 'thai'
96
+ | 'othr';
97
+
98
+ /**
99
+ * 5.2.8
100
+ * NationalIdentification
101
+ */
102
+ export type NationalIdentification = {
103
+ nationalIdentifier?: string; //Max35Text
104
+ nationalIdentifierType?: NationalIdentifierTypeCode;
105
+ countryOfIssue?: string; //CountryCode (^[A-Z]{2}$)
106
+ registrationAuthority?: string; //RegistrationAuthority (^RA([0-9]{6})$)
107
+ };
108
+
109
+ /**
110
+ * 5.2.7
111
+ * DateAndPlaceOfBirth
112
+ */
113
+ export type DateAndPlaceOfBirth = {
114
+ dateOfBirth?: string; //YYYY-MM-DD
115
+ placeOfBirth?: string; //Max70Text
116
+ };
117
+
118
+ /**
119
+ * 5.2.6
120
+ * Address
121
+ */
122
+ export type Address = {
123
+ addressType?: AddressTypeCode;
124
+ department?: string; //Max50Text
125
+ subDepartment?: string; //Max70Text
126
+ streetName?: string; //Max70Text
127
+ buildingNumber?: string; //Max16Text
128
+ buildingName?: string; //Max35Text
129
+ floor?: string; //Max70Text
130
+ postBox?: string; //Max16Text
131
+ room?: string; //Max70Text
132
+ postCode?: string; //Max16Text
133
+ townName?: string; //Max35Text
134
+ townLocationName?: string; //Max35Text
135
+ districtName?: string; //Max35Text
136
+ countrySubDivision?: string; //Max35Text
137
+ addressLine?: string[]; //Max35Text max 7 items in array
138
+ country?: string; //CountryCode (^[A-Z]= {2}$)
139
+ };
140
+
141
+ /**
142
+ * 5.2.5
143
+ * LocalNaturalPersonNameID
144
+ */
145
+ export type LocalNaturalPersonNameID = {
146
+ primaryIdentifier?: string; //LocalMax100Text
147
+ secondaryIdentifier?: string; //LocalMax100Text
148
+ nameIdentifierType?: NaturalPersonNameTypeCode;
149
+ };
150
+
151
+ /**
152
+ * 5.2.4
153
+ * NaturalPersonNameID
154
+ */
155
+ export type NaturalPersonNameID = {
156
+ primaryIdentifier?: string; //Max100Text
157
+ secondaryIdentifier?: string; //Max100Text
158
+ nameIdentifierType?: NaturalPersonNameTypeCode;
159
+ };
160
+
161
+ /**
162
+ * 5.2.3
163
+ * NaturalPersonName
164
+ */
165
+ export type NaturalPersonName = {
166
+ nameIdentifier?: NaturalPersonNameID[];
167
+ localNameIdentifier?: LocalNaturalPersonNameID[];
168
+ phoneticNameIdentifier?: LocalNaturalPersonNameID[];
169
+ };
170
+
171
+ /**
172
+ * 5.2.2
173
+ * NaturalPerson
174
+ */
175
+ export type NaturalPerson = {
176
+ name?: NaturalPersonName[];
177
+ geographicAddress?: Address[];
178
+ nationalIdentification?: NationalIdentification;
179
+ customerIdentification?: string; //Max50Text
180
+ dateAndPlaceOfBirth?: DateAndPlaceOfBirth;
181
+ countryOfResidence?: string; //CountryCode (^[A-Z]{2}$)
182
+ };
183
+
184
+ /**
185
+ * 5.2.12
186
+ * LocalLegalPersonNameID
187
+ */
188
+ export type LocalLegalPersonNameID = {
189
+ legalPersonName?: string; //LocalMax100Text
190
+ legalPersonNameIdentifierType?: LegalPersonNameTypeCode;
191
+ };
192
+
193
+ /**
194
+ * 5.2.11
195
+ * LegalPersonNameID
196
+ */
197
+ export type LegalPersonNameID = {
198
+ legalPersonName?: string; //Max100Text
199
+ legalPersonNameIdentifierType?: LegalPersonNameTypeCode;
200
+ };
201
+
202
+ /**
203
+ * 5.2.10
204
+ * LegalPersonName
205
+ */
206
+ export type LegalPersonName = {
207
+ nameIdentifier?: LegalPersonNameID[];
208
+ localNameIdentifier?: LocalLegalPersonNameID[];
209
+ phoneticNameIdentifier?: LocalLegalPersonNameID[];
210
+ };
211
+
212
+ /**
213
+ * 5.2.9
214
+ * LegalPerson
215
+ */
216
+ export type LegalPerson = {
217
+ name?: LegalPersonName;
218
+ geographicAddress?: Address[];
219
+ customerNumber?: string; //Max50Text
220
+ nationalIdentification?: NationalIdentification;
221
+ countryOfRegistration?: string; //CountryCode (^[A-Z]{2}$);
222
+ };
223
+
224
+ /**
225
+ * 5.2.1
226
+ * Person
227
+ */
228
+ export type Person = {
229
+ naturalPerson?: NaturalPerson;
230
+ legalPerson?: LegalPerson;
231
+ };
232
+
233
+ /**
234
+ * 5.2.13
235
+ * IntermediaryVASP
236
+ */
237
+ export type IntermediaryVASP = {
238
+ intermediaryVASP?: Person;
239
+ sequence?: number;
240
+ };
241
+
242
+ /**
243
+ * 6.2
244
+ * The originator is defined in Section 1.1 as the account holder who allows the VA transfer from that account or, where there is no account, the natural or legal person that places the order with the originating VASP to perform the VA transfer.
245
+ */
246
+ export type Originator = {
247
+ originatorPersons?: Person[];
248
+ accountNumber?: string[]; //Max100Text
249
+ };
250
+
251
+ /**
252
+ * 6.3
253
+ * The beneficiary is defined in Section 1.1 as the natural or legal person or legal arrangement who is identified by the originator as the receiver of the requested VA transfer.
254
+ */
255
+ export type Beneficiary = {
256
+ beneficiaryPersons?: Person[];
257
+ accountNumber?: string[]; //max100
258
+ };
259
+
260
+ /**
261
+ * 6.4
262
+ * The originating VASP is defined in Section 1.1 as the VASP which initiates the VA transfer, and transfers the VA upon receiving the request for a VA transfer on behalf of the originator.
263
+ */
264
+ export type OriginatingVASP = {
265
+ originatingVASP?: Person;
266
+ };
267
+
268
+ /**
269
+ * 6.5
270
+ * The originating VASP is defined in Section 1.1 as the VASP which initiates the VA transfer, and transfers the VA upon receiving the request for a VA transfer on behalf of the originator.
271
+ */
272
+ export type BeneficiaryVASP = {
273
+ beneficiaryVASP?: Person;
274
+ };
275
+
276
+ /**
277
+ * 6.6
278
+ * The transfer path refers to the intermediary VASP(s) participating in a serial chain that receive(s) and retransmit(s) a VA transfer on behalf of the originating VASP and the beneficiary VASP, or another intermediary VASP, together with their corresponding sequence number.
279
+ */
280
+ export type TransferPath = {
281
+ transferPath?: IntermediaryVASP[];
282
+ };
283
+
284
+ /**
285
+ * 6.7
286
+ * Data describing the contents of the payload.
287
+ */
288
+ export type PayloadMetadata = {
289
+ transferPath?: TransliterationMethodCode[];
290
+ };
291
+
292
+ /**
293
+ * IVMS101 definition
294
+ */
295
+ export type IVMS101 = {
296
+ originator?: Originator;
297
+ beneficiary?: Beneficiary;
298
+ originatingVASP?: OriginatingVASP;
299
+ beneficiaryVASP?: BeneficiaryVASP;
300
+ transferPath?: TransferPath;
301
+ payloadMetadata?: PayloadMetadata;
302
+ };
package/src/lib/index.ts CHANGED
@@ -1 +1,2 @@
1
1
  export { default as Notabene } from '../notabene';
2
+ export * from '../types';
@@ -1,4 +1,5 @@
1
1
  import Notabene from '../notabene';
2
+ export * from '../types';
2
3
 
3
4
  declare global {
4
5
  interface Window {