@bitcredit/bcr-ebill-wasm 0.4.13 → 0.5.0

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 (4) hide show
  1. package/index.d.ts +441 -428
  2. package/index.js +423 -452
  3. package/index_bg.wasm +0 -0
  4. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1,23 +1,5 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
- export function initialize_api(cfg: Config): Promise<void>;
4
- /**
5
- * Entry point invoked by JavaScript in a worker.
6
- */
7
- export function task_worker_entry_point(ptr: number): void;
8
- export enum ContactTypeWeb {
9
- Person = 0,
10
- Company = 1,
11
- Anon = 2,
12
- }
13
- export enum IdentityTypeWeb {
14
- Ident = 0,
15
- Anon = 1,
16
- }
17
- export enum SwitchIdentityTypeWeb {
18
- Person = 0,
19
- Company = 1,
20
- }
21
3
  export interface Config {
22
4
  log_level: string | undefined;
23
5
  app_url: string;
@@ -44,6 +26,11 @@ export interface Config {
44
26
  */
45
27
  export type TSResult<T> = { Success: T } | { Error: JsErrorData };
46
28
 
29
+ export interface NotificationStatusWeb {
30
+ node_id: string;
31
+ active: boolean;
32
+ }
33
+
47
34
  export interface NotificationWeb {
48
35
  id: string;
49
36
  node_id: string;
@@ -57,9 +44,12 @@ export interface NotificationWeb {
57
44
 
58
45
  export type NotificationTypeWeb = "General" | "Company" | "Bill" | "Contact";
59
46
 
60
- export interface NotificationStatusWeb {
61
- node_id: string;
62
- active: boolean;
47
+ export interface CurrencyResponse {
48
+ code: string;
49
+ }
50
+
51
+ export interface CurrenciesResponse {
52
+ currencies: CurrencyResponse[];
63
53
  }
64
54
 
65
55
  export interface OptionalPostalAddressWeb {
@@ -69,10 +59,22 @@ export interface OptionalPostalAddressWeb {
69
59
  address: string | undefined;
70
60
  }
71
61
 
72
- export interface GeneralSearchResponse {
73
- bills: LightBitcreditBillWeb[];
74
- contacts: ContactWeb[];
75
- companies: CompanyWeb[];
62
+ export interface OverviewResponse {
63
+ currency: string;
64
+ balances: OverviewBalanceResponse;
65
+ }
66
+
67
+ export interface CreatePostalAddressWeb {
68
+ country: string;
69
+ city: string;
70
+ zip: string | undefined;
71
+ address: string;
72
+ }
73
+
74
+ export interface GeneralSearchFilter {
75
+ search_term: string;
76
+ currency: string;
77
+ item_types: GeneralSearchFilterItemTypeWeb[];
76
78
  }
77
79
 
78
80
  export interface Base64FileResponse {
@@ -81,28 +83,26 @@ export interface Base64FileResponse {
81
83
  content_type: string;
82
84
  }
83
85
 
84
- export interface BalanceResponse {
85
- sum: string;
86
+ export interface GeneralSearchFilterPayload {
87
+ filter: GeneralSearchFilter;
86
88
  }
87
89
 
88
- export interface UploadFileResponse {
89
- file_upload_id: string;
90
+ export interface BinaryFileResponse {
91
+ data: number[];
92
+ name: string;
93
+ content_type: string;
90
94
  }
91
95
 
92
- export type GeneralSearchFilterItemTypeWeb = "Company" | "Bill" | "Contact";
93
-
94
- export interface CreatePostalAddressWeb {
95
- country: string;
96
- city: string;
97
- zip: string | undefined;
98
- address: string;
96
+ export interface GeneralSearchResponse {
97
+ bills: LightBitcreditBillWeb[];
98
+ contacts: ContactWeb[];
99
+ companies: CompanyWeb[];
99
100
  }
100
101
 
101
- export interface CreateOptionalPostalAddressWeb {
102
- country: string | undefined;
103
- city: string | undefined;
104
- zip: string | undefined;
105
- address: string | undefined;
102
+ export interface UploadFile {
103
+ data: number[];
104
+ extension: string | undefined;
105
+ name: string;
106
106
  }
107
107
 
108
108
  export interface StatusResponse {
@@ -110,15 +110,8 @@ export interface StatusResponse {
110
110
  app_version: string;
111
111
  }
112
112
 
113
- export interface OverviewResponse {
114
- currency: string;
115
- balances: OverviewBalanceResponse;
116
- }
117
-
118
- export interface UploadFile {
119
- data: number[];
120
- extension: string | undefined;
121
- name: string;
113
+ export interface BalanceResponse {
114
+ sum: string;
122
115
  }
123
116
 
124
117
  export interface PostalAddressWeb {
@@ -128,16 +121,19 @@ export interface PostalAddressWeb {
128
121
  address: string;
129
122
  }
130
123
 
124
+ export interface CreateOptionalPostalAddressWeb {
125
+ country: string | undefined;
126
+ city: string | undefined;
127
+ zip: string | undefined;
128
+ address: string | undefined;
129
+ }
130
+
131
131
  export interface FileWeb {
132
132
  name: string;
133
133
  hash: string;
134
134
  nostr_hash: string;
135
135
  }
136
136
 
137
- export interface CurrencyResponse {
138
- code: string;
139
- }
140
-
141
137
  export interface NotificationFilters {
142
138
  active: boolean | undefined;
143
139
  reference_id: string | undefined;
@@ -147,24 +143,10 @@ export interface NotificationFilters {
147
143
  offset: number | undefined;
148
144
  }
149
145
 
150
- export interface GeneralSearchFilter {
151
- search_term: string;
152
- currency: string;
153
- item_types: GeneralSearchFilterItemTypeWeb[];
154
- }
155
-
156
- export interface BinaryFileResponse {
157
- data: number[];
158
- name: string;
159
- content_type: string;
160
- }
161
-
162
- export interface CurrenciesResponse {
163
- currencies: CurrencyResponse[];
164
- }
146
+ export type GeneralSearchFilterItemTypeWeb = "Company" | "Bill" | "Contact";
165
147
 
166
- export interface GeneralSearchFilterPayload {
167
- filter: GeneralSearchFilter;
148
+ export interface UploadFileResponse {
149
+ file_upload_id: string;
168
150
  }
169
151
 
170
152
  export interface OverviewBalanceResponse {
@@ -173,161 +155,130 @@ export interface OverviewBalanceResponse {
173
155
  contingent: BalanceResponse;
174
156
  }
175
157
 
176
- export interface LightBitcreditBillWeb {
177
- id: string;
178
- drawee: LightBillIdentParticipantWeb;
179
- drawer: LightBillIdentParticipantWeb;
180
- payee: LightBillParticipantWeb;
181
- endorsee: LightBillParticipantWeb | undefined;
182
- active_notification: NotificationWeb | undefined;
183
- sum: string;
184
- currency: string;
185
- issue_date: string;
186
- time_of_drawing: number;
187
- time_of_maturity: number;
188
- last_block_time: number;
189
- }
190
-
191
- export interface LightSignedByWeb {
192
- data: LightBillParticipantWeb;
193
- signatory: LightBillIdentParticipantWeb | undefined;
194
- }
195
-
196
- export interface BillWaitingForSellStateWeb {
197
- buyer: BillParticipantWeb;
198
- seller: BillParticipantWeb;
199
- payment_data: BillWaitingStatePaymentDataWeb;
158
+ export interface LightBillAnonParticipantWeb {
159
+ node_id: string;
200
160
  }
201
161
 
202
- export interface BillCallerActionsWeb {
203
- bill_actions: BillCallerBillActionWeb[];
204
- }
162
+ export type BillCallerBillActionWeb = "RequestAcceptance" | "Accept" | "RequestToPay" | "OfferToSell" | "Sell" | "Endorse" | "RequestRecourseForAcceptance" | "RequestRecourseForPayment" | "Recourse" | "Mint" | "RejectAcceptance" | "RejectPayment" | "RejectBuying" | "RejectPaymentForRecourse";
205
163
 
206
- export interface BillMintStatusWeb {
207
- has_mint_requests: boolean;
164
+ export interface LightBillIdentParticipantWeb {
165
+ t: ContactTypeWeb;
166
+ name: string;
167
+ node_id: string;
208
168
  }
209
169
 
210
- export interface DateRange {
211
- from: string;
212
- to: string;
213
- }
170
+ export type LightBillParticipantWeb = { Anon: LightBillAnonParticipantWeb } | { Ident: LightBillIdentParticipantWithAddressWeb };
214
171
 
215
- export interface BitcreditBillWeb {
216
- id: string;
217
- participants: BillParticipantsWeb;
218
- data: BillDataWeb;
219
- status: BillStatusWeb;
220
- current_waiting_state: BillCurrentWaitingStateWeb | undefined;
221
- actions: BillCallerActionsWeb;
172
+ export interface BillHistoryBlockWeb {
173
+ block_id: number;
174
+ block_type: BillOpCodeWeb;
175
+ pay_to_the_order_of: LightBillParticipantWeb | undefined;
176
+ request_deadline: number | undefined;
177
+ signed: LightSignedByWeb;
178
+ signing_timestamp: number;
179
+ signing_address: PostalAddressWeb | undefined;
222
180
  }
223
181
 
224
- export type BillOpCodeWeb = "Issue" | "Accept" | "Endorse" | "RequestToAccept" | "RequestToPay" | "OfferToSell" | "Sell" | "Mint" | "RejectToAccept" | "RejectToPay" | "RejectToBuy" | "RejectToPayRecourse" | "RequestRecourse" | "Recourse";
225
-
226
- export interface PastEndorseeWeb {
227
- pay_to_the_order_of: LightBillIdentParticipantWeb;
182
+ export interface EndorsementWeb {
183
+ pay_to_the_order_of: LightBillParticipantWeb;
228
184
  signed: LightSignedByWeb;
229
185
  signing_timestamp: number;
230
186
  signing_address: PostalAddressWeb | undefined;
231
187
  }
232
188
 
233
- export type BillParticipantWeb = { Anon: BillAnonParticipantWeb } | { Ident: BillIdentParticipantWeb };
234
-
235
- export interface EndorseBitcreditBillPayload {
236
- endorsee: string;
189
+ export interface AcceptBitcreditBillPayload {
237
190
  bill_id: string;
238
191
  }
239
192
 
240
- export type BillCallerBillActionWeb = "RequestAcceptance" | "Accept" | "RequestToPay" | "OfferToSell" | "Sell" | "Endorse" | "RequestRecourseForAcceptance" | "RequestRecourseForPayment" | "Recourse" | "Mint" | "RejectAcceptance" | "RejectPayment" | "RejectBuying" | "RejectPaymentForRecourse";
241
-
242
- export interface BillNumbersToWordsForSum {
243
- sum: number;
244
- sum_as_words: string;
193
+ export interface BillWaitingStatePaymentDataWeb {
194
+ time_of_request: number;
195
+ currency: string;
196
+ sum: string;
197
+ link_to_pay: string;
198
+ address_to_pay: string;
199
+ mempool_link_for_address_to_pay: string;
200
+ tx_id: string | undefined;
201
+ in_mempool: boolean;
202
+ confirmations: number;
203
+ payment_deadline: number | undefined;
245
204
  }
246
205
 
247
- export interface BillHistoryBlockWeb {
248
- block_id: number;
249
- block_type: BillOpCodeWeb;
250
- pay_to_the_order_of: LightBillParticipantWeb | undefined;
251
- request_deadline: number | undefined;
252
- signed: LightSignedByWeb;
253
- signing_timestamp: number;
254
- signing_address: PostalAddressWeb | undefined;
206
+ export interface BillAcceptanceStatusWeb {
207
+ time_of_request_to_accept: number | undefined;
208
+ requested_to_accept: boolean;
209
+ accepted: boolean;
210
+ request_to_accept_timed_out: boolean;
211
+ rejected_to_accept: boolean;
212
+ acceptance_deadline_timestamp: number | undefined;
255
213
  }
256
214
 
257
- export interface BillsSearchFilter {
258
- search_term: string | undefined;
259
- date_range: DateRange | undefined;
260
- role: BillsFilterRoleWeb;
261
- currency: string;
215
+ export interface BillsResponse {
216
+ bills: BitcreditBillWeb[];
262
217
  }
263
218
 
264
- export type PastPaymentResultWeb = { Sell: PastPaymentDataSellWeb } | { Payment: PastPaymentDataPaymentWeb } | { Recourse: PastPaymentDataRecourseWeb };
219
+ export interface BillMintStatusWeb {
220
+ has_mint_requests: boolean;
221
+ }
265
222
 
266
- export interface BillPaymentStatusWeb {
267
- time_of_request_to_pay: number | undefined;
268
- requested_to_pay: boolean;
269
- paid: boolean;
270
- request_to_pay_timed_out: boolean;
271
- rejected_to_pay: boolean;
272
- payment_deadline_timestamp: number | undefined;
223
+ export interface LightSignedByWeb {
224
+ data: LightBillParticipantWeb;
225
+ signatory: LightBillIdentParticipantWeb | undefined;
273
226
  }
274
227
 
275
- export interface OfferToSellBitcreditBillPayload {
276
- buyer: string;
228
+ export interface RequestToPayBitcreditBillPayload {
277
229
  bill_id: string;
278
- sum: string;
279
230
  currency: string;
280
- buying_deadline: string;
231
+ payment_deadline: string;
281
232
  }
282
233
 
283
- export interface RequestRecourseForAcceptancePayload {
234
+ export type BillOpCodeWeb = "Issue" | "Accept" | "Endorse" | "RequestToAccept" | "RequestToPay" | "OfferToSell" | "Sell" | "Mint" | "RejectToAccept" | "RejectToPay" | "RejectToBuy" | "RejectToPayRecourse" | "RequestRecourse" | "Recourse";
235
+
236
+ export interface ResyncBillPayload {
284
237
  bill_id: string;
285
- recoursee: string;
286
- recourse_deadline: string;
287
238
  }
288
239
 
289
- export interface BillWaitingForPaymentStateWeb {
290
- payer: BillIdentParticipantWeb;
291
- payee: BillParticipantWeb;
240
+ export interface BillWaitingForSellStateWeb {
241
+ buyer: BillParticipantWeb;
242
+ seller: BillParticipantWeb;
292
243
  payment_data: BillWaitingStatePaymentDataWeb;
293
244
  }
294
245
 
295
- export interface BillStatusWeb {
296
- acceptance: BillAcceptanceStatusWeb;
297
- payment: BillPaymentStatusWeb;
298
- sell: BillSellStatusWeb;
299
- recourse: BillRecourseStatusWeb;
300
- mint: BillMintStatusWeb;
301
- redeemed_funds_available: boolean;
302
- has_requested_funds: boolean;
303
- last_block_time: number;
246
+ export type BillCurrentWaitingStateWeb = { Sell: BillWaitingForSellStateWeb } | { Payment: BillWaitingForPaymentStateWeb } | { Recourse: BillWaitingForRecourseStateWeb };
247
+
248
+ export interface PastPaymentDataSellWeb {
249
+ time_of_request: number;
250
+ buyer: BillParticipantWeb;
251
+ seller: BillParticipantWeb;
252
+ currency: string;
253
+ sum: string;
254
+ link_to_pay: string;
255
+ address_to_pay: string;
256
+ private_descriptor_to_spend: string;
257
+ mempool_link_for_address_to_pay: string;
258
+ status: PastPaymentStatusWeb;
304
259
  }
305
260
 
306
- export type PastPaymentStatusWeb = { Paid: number } | { Rejected: number } | { Expired: number };
261
+ export type BillsFilterRoleWeb = "All" | "Payer" | "Payee" | "Contingent";
307
262
 
308
- export interface AcceptBitcreditBillPayload {
263
+ export interface ShareBillWithCourtPayload {
309
264
  bill_id: string;
265
+ court_node_id: string;
310
266
  }
311
267
 
312
- export interface BillsSearchFilterPayload {
313
- filter: BillsSearchFilter;
314
- }
315
-
316
- export interface BillAnonParticipantWeb {
317
- node_id: string;
318
- nostr_relays: string[];
268
+ export interface RequestRecourseForAcceptancePayload {
269
+ bill_id: string;
270
+ recoursee: string;
271
+ recourse_deadline: string;
319
272
  }
320
273
 
321
- export interface RequestToPayBitcreditBillPayload {
274
+ export interface RejectActionBillPayload {
322
275
  bill_id: string;
323
- currency: string;
324
- payment_deadline: string;
325
276
  }
326
277
 
327
- export interface PastPaymentDataSellWeb {
278
+ export interface PastPaymentDataPaymentWeb {
328
279
  time_of_request: number;
329
- buyer: BillParticipantWeb;
330
- seller: BillParticipantWeb;
280
+ payer: BillIdentParticipantWeb;
281
+ payee: BillParticipantWeb;
331
282
  currency: string;
332
283
  sum: string;
333
284
  link_to_pay: string;
@@ -337,49 +288,81 @@ export interface PastPaymentDataSellWeb {
337
288
  status: PastPaymentStatusWeb;
338
289
  }
339
290
 
340
- export interface LightBillIdentParticipantWeb {
341
- t: ContactTypeWeb;
342
- name: string;
343
- node_id: string;
291
+ export interface EndorseBitcreditBillPayload {
292
+ endorsee: string;
293
+ bill_id: string;
344
294
  }
345
295
 
346
- export interface BillWaitingForRecourseStateWeb {
347
- recourser: BillParticipantWeb;
348
- recoursee: BillIdentParticipantWeb;
296
+ export interface PastPaymentsResponse {
297
+ past_payments: PastPaymentResultWeb[];
298
+ }
299
+
300
+ export interface BillWaitingForPaymentStateWeb {
301
+ payer: BillIdentParticipantWeb;
302
+ payee: BillParticipantWeb;
349
303
  payment_data: BillWaitingStatePaymentDataWeb;
350
304
  }
351
305
 
352
- export interface BillIdentParticipantWeb {
353
- t: ContactTypeWeb;
354
- node_id: string;
355
- name: string;
356
- postal_address: PostalAddressWeb;
357
- email: string | undefined;
358
- nostr_relays: string[];
306
+ export interface PastEndorseesResponse {
307
+ past_endorsees: PastEndorseeWeb[];
359
308
  }
360
309
 
361
- export interface RejectActionBillPayload {
310
+ export interface BillRecourseStatusWeb {
311
+ time_of_last_request_to_recourse: number | undefined;
312
+ recoursed: boolean;
313
+ requested_to_recourse: boolean;
314
+ request_to_recourse_timed_out: boolean;
315
+ rejected_request_to_recourse: boolean;
316
+ recourse_deadline_timestamp: number | undefined;
317
+ }
318
+
319
+ export interface BillsSearchFilterPayload {
320
+ filter: BillsSearchFilter;
321
+ }
322
+
323
+ export interface BillDataWeb {
324
+ time_of_drawing: number;
325
+ issue_date: string;
326
+ time_of_maturity: number;
327
+ maturity_date: string;
328
+ country_of_issuing: string;
329
+ city_of_issuing: string;
330
+ country_of_payment: string;
331
+ city_of_payment: string;
332
+ currency: string;
333
+ sum: string;
334
+ files: FileWeb[];
335
+ active_notification: NotificationWeb | undefined;
336
+ }
337
+
338
+ export type PastPaymentStatusWeb = { Paid: number } | { Rejected: number } | { Expired: number };
339
+
340
+ export interface RequestToAcceptBitcreditBillPayload {
362
341
  bill_id: string;
342
+ acceptance_deadline: string;
363
343
  }
364
344
 
365
- export interface BillAcceptanceStatusWeb {
366
- time_of_request_to_accept: number | undefined;
367
- requested_to_accept: boolean;
368
- accepted: boolean;
369
- request_to_accept_timed_out: boolean;
370
- rejected_to_accept: boolean;
371
- acceptance_deadline_timestamp: number | undefined;
345
+ export interface BillStatusWeb {
346
+ acceptance: BillAcceptanceStatusWeb;
347
+ payment: BillPaymentStatusWeb;
348
+ sell: BillSellStatusWeb;
349
+ recourse: BillRecourseStatusWeb;
350
+ mint: BillMintStatusWeb;
351
+ redeemed_funds_available: boolean;
352
+ has_requested_funds: boolean;
353
+ last_block_time: number;
372
354
  }
373
355
 
374
- export interface EndorsementsResponse {
375
- endorsements: EndorsementWeb[];
356
+ export interface BillNumbersToWordsForSum {
357
+ sum: number;
358
+ sum_as_words: string;
376
359
  }
377
360
 
378
- export interface LightBillIdentParticipantWithAddressWeb {
379
- t: ContactTypeWeb;
380
- name: string;
381
- node_id: string;
382
- postal_address: PostalAddressWeb;
361
+ export interface BillsSearchFilter {
362
+ search_term: string | undefined;
363
+ date_range: DateRange | undefined;
364
+ role: BillsFilterRoleWeb;
365
+ currency: string;
383
366
  }
384
367
 
385
368
  export interface PastPaymentDataRecourseWeb {
@@ -395,6 +378,38 @@ export interface PastPaymentDataRecourseWeb {
395
378
  status: PastPaymentStatusWeb;
396
379
  }
397
380
 
381
+ export interface BillIdentParticipantWeb {
382
+ t: ContactTypeWeb;
383
+ node_id: string;
384
+ name: string;
385
+ postal_address: PostalAddressWeb;
386
+ email: string | undefined;
387
+ nostr_relays: string[];
388
+ }
389
+
390
+ export interface LightBillIdentParticipantWithAddressWeb {
391
+ t: ContactTypeWeb;
392
+ name: string;
393
+ node_id: string;
394
+ postal_address: PostalAddressWeb;
395
+ }
396
+
397
+ export interface EndorsementsResponse {
398
+ endorsements: EndorsementWeb[];
399
+ }
400
+
401
+ export interface BillCombinedBitcoinKeyWeb {
402
+ private_descriptor: string;
403
+ }
404
+
405
+ export interface OfferToSellBitcreditBillPayload {
406
+ buyer: string;
407
+ bill_id: string;
408
+ sum: string;
409
+ currency: string;
410
+ buying_deadline: string;
411
+ }
412
+
398
413
  export interface BillParticipantsWeb {
399
414
  drawee: BillIdentParticipantWeb;
400
415
  drawer: BillIdentParticipantWeb;
@@ -404,19 +419,14 @@ export interface BillParticipantsWeb {
404
419
  all_participant_node_ids: string[];
405
420
  }
406
421
 
407
- export interface RequestToAcceptBitcreditBillPayload {
408
- bill_id: string;
409
- acceptance_deadline: string;
422
+ export interface BillIdResponse {
423
+ id: string;
410
424
  }
411
425
 
412
426
  export interface BillHistoryResponse {
413
427
  blocks: BillHistoryBlockWeb[];
414
428
  }
415
429
 
416
- export interface BillCombinedBitcoinKeyWeb {
417
- private_descriptor: string;
418
- }
419
-
420
430
  export interface BitcreditBillPayload {
421
431
  t: number;
422
432
  country_of_issuing: string;
@@ -432,39 +442,27 @@ export interface BitcreditBillPayload {
432
442
  file_upload_ids: string[];
433
443
  }
434
444
 
435
- export interface BillWaitingStatePaymentDataWeb {
436
- time_of_request: number;
437
- currency: string;
438
- sum: string;
439
- link_to_pay: string;
440
- address_to_pay: string;
441
- mempool_link_for_address_to_pay: string;
442
- tx_id: string | undefined;
443
- in_mempool: boolean;
444
- confirmations: number;
445
- payment_deadline: number | undefined;
446
- }
447
-
448
- export type BillCurrentWaitingStateWeb = { Sell: BillWaitingForSellStateWeb } | { Payment: BillWaitingForPaymentStateWeb } | { Recourse: BillWaitingForRecourseStateWeb };
449
-
450
- export interface LightBillAnonParticipantWeb {
451
- node_id: string;
445
+ export interface BitcreditBillWeb {
446
+ id: string;
447
+ participants: BillParticipantsWeb;
448
+ data: BillDataWeb;
449
+ status: BillStatusWeb;
450
+ current_waiting_state: BillCurrentWaitingStateWeb | undefined;
451
+ actions: BillCallerActionsWeb;
452
452
  }
453
453
 
454
- export interface BillsResponse {
455
- bills: BitcreditBillWeb[];
454
+ export interface BillWaitingForRecourseStateWeb {
455
+ recourser: BillParticipantWeb;
456
+ recoursee: BillIdentParticipantWeb;
457
+ payment_data: BillWaitingStatePaymentDataWeb;
456
458
  }
457
459
 
458
- export interface RequestRecourseForPaymentPayload {
459
- bill_id: string;
460
- recoursee: string;
461
- currency: string;
462
- sum: string;
463
- recourse_deadline: string;
460
+ export interface BillCallerActionsWeb {
461
+ bill_actions: BillCallerBillActionWeb[];
464
462
  }
465
463
 
466
- export interface PastPaymentsResponse {
467
- past_payments: PastPaymentResultWeb[];
464
+ export interface LightBillsResponse {
465
+ bills: LightBitcreditBillWeb[];
468
466
  }
469
467
 
470
468
  export interface BillSellStatusWeb {
@@ -476,78 +474,75 @@ export interface BillSellStatusWeb {
476
474
  buying_deadline_timestamp: number | undefined;
477
475
  }
478
476
 
479
- export interface BillIdResponse {
480
- id: string;
477
+ export interface PastEndorseeWeb {
478
+ pay_to_the_order_of: LightBillIdentParticipantWeb;
479
+ signed: LightSignedByWeb;
480
+ signing_timestamp: number;
481
+ signing_address: PostalAddressWeb | undefined;
482
+ }
483
+
484
+ export interface BillAnonParticipantWeb {
485
+ node_id: string;
486
+ nostr_relays: string[];
481
487
  }
482
488
 
489
+ export type BillParticipantWeb = { Anon: BillAnonParticipantWeb } | { Ident: BillIdentParticipantWeb };
490
+
483
491
  export interface RequestToMintBitcreditBillPayload {
484
492
  mint_node: string;
485
493
  bill_id: string;
486
494
  }
487
495
 
488
- export interface EndorsementWeb {
489
- pay_to_the_order_of: LightBillParticipantWeb;
490
- signed: LightSignedByWeb;
491
- signing_timestamp: number;
492
- signing_address: PostalAddressWeb | undefined;
493
- }
496
+ export type PastPaymentResultWeb = { Sell: PastPaymentDataSellWeb } | { Payment: PastPaymentDataPaymentWeb } | { Recourse: PastPaymentDataRecourseWeb };
494
497
 
495
- export interface BillDataWeb {
496
- time_of_drawing: number;
497
- issue_date: string;
498
- time_of_maturity: number;
499
- maturity_date: string;
500
- country_of_issuing: string;
501
- city_of_issuing: string;
502
- country_of_payment: string;
503
- city_of_payment: string;
498
+ export interface RequestRecourseForPaymentPayload {
499
+ bill_id: string;
500
+ recoursee: string;
504
501
  currency: string;
505
502
  sum: string;
506
- files: FileWeb[];
507
- active_notification: NotificationWeb | undefined;
508
- }
509
-
510
- export interface PastEndorseesResponse {
511
- past_endorsees: PastEndorseeWeb[];
503
+ recourse_deadline: string;
512
504
  }
513
505
 
514
- export type BillsFilterRoleWeb = "All" | "Payer" | "Payee" | "Contingent";
515
-
516
- export interface BillRecourseStatusWeb {
517
- time_of_last_request_to_recourse: number | undefined;
518
- recoursed: boolean;
519
- requested_to_recourse: boolean;
520
- request_to_recourse_timed_out: boolean;
521
- rejected_request_to_recourse: boolean;
522
- recourse_deadline_timestamp: number | undefined;
506
+ export interface DateRange {
507
+ from: string;
508
+ to: string;
523
509
  }
524
510
 
525
- export interface ShareBillWithCourtPayload {
526
- bill_id: string;
527
- court_node_id: string;
511
+ export interface BillPaymentStatusWeb {
512
+ time_of_request_to_pay: number | undefined;
513
+ requested_to_pay: boolean;
514
+ paid: boolean;
515
+ request_to_pay_timed_out: boolean;
516
+ rejected_to_pay: boolean;
517
+ payment_deadline_timestamp: number | undefined;
528
518
  }
529
519
 
530
- export interface ResyncBillPayload {
531
- bill_id: string;
520
+ export interface LightBitcreditBillWeb {
521
+ id: string;
522
+ drawee: LightBillIdentParticipantWeb;
523
+ drawer: LightBillIdentParticipantWeb;
524
+ payee: LightBillParticipantWeb;
525
+ endorsee: LightBillParticipantWeb | undefined;
526
+ active_notification: NotificationWeb | undefined;
527
+ sum: string;
528
+ currency: string;
529
+ issue_date: string;
530
+ time_of_drawing: number;
531
+ time_of_maturity: number;
532
+ last_block_time: number;
532
533
  }
533
534
 
534
- export type LightBillParticipantWeb = { Anon: LightBillAnonParticipantWeb } | { Ident: LightBillIdentParticipantWithAddressWeb };
535
-
536
- export interface PastPaymentDataPaymentWeb {
537
- time_of_request: number;
538
- payer: BillIdentParticipantWeb;
539
- payee: BillParticipantWeb;
540
- currency: string;
541
- sum: string;
542
- link_to_pay: string;
543
- address_to_pay: string;
544
- private_descriptor_to_spend: string;
545
- mempool_link_for_address_to_pay: string;
546
- status: PastPaymentStatusWeb;
535
+ export interface MintOfferWeb {
536
+ mint_request_id: string;
537
+ keyset_id: string;
538
+ expiration_timestamp: number;
539
+ discounted_sum: number;
540
+ proofs: string | undefined;
541
+ proofs_spent: boolean;
547
542
  }
548
543
 
549
- export interface LightBillsResponse {
550
- bills: LightBitcreditBillWeb[];
544
+ export interface MintRequestStateResponse {
545
+ request_states: MintRequestStateWeb[];
551
546
  }
552
547
 
553
548
  export interface MintRequestWeb {
@@ -561,48 +556,26 @@ export interface MintRequestWeb {
561
556
 
562
557
  export type MintRequestStatusWeb = "Pending" | { Denied: { timestamp: number } } | "Offered" | "Accepted" | { Rejected: { timestamp: number } } | { Cancelled: { timestamp: number } } | { Expired: { timestamp: number } };
563
558
 
564
- export interface MintOfferWeb {
565
- mint_request_id: string;
566
- keyset_id: string;
567
- expiration_timestamp: number;
568
- discounted_sum: number;
569
- proofs: string | undefined;
570
- proofs_spent: boolean;
571
- }
572
-
573
559
  export interface MintRequestStateWeb {
574
560
  request: MintRequestWeb;
575
- offer: MintOfferWeb | undefined;
576
- }
577
-
578
- export interface MintRequestStateResponse {
579
- request_states: MintRequestStateWeb[];
561
+ offer: MintOfferWeb | undefined;
580
562
  }
581
563
 
582
- export interface RemoveSignatoryPayload {
564
+ export interface CompanyKeysWeb {
583
565
  id: string;
584
- signatory_node_id: string;
585
566
  }
586
567
 
587
- export interface CompanySignatoryWeb {
588
- node_id: string;
589
- status: CompanySignatoryStatusWeb;
568
+ export interface CompaniesResponse {
569
+ companies: CompanyWeb[];
590
570
  }
591
571
 
592
- export interface CompanyWeb {
572
+ export interface AcceptCompanyInvitePayload {
593
573
  id: string;
594
- name: string;
595
- country_of_registration: string | undefined;
596
- city_of_registration: string | undefined;
597
- postal_address: PostalAddressWeb;
598
574
  email: string;
599
- registration_number: string | undefined;
600
- registration_date: string | undefined;
601
- proof_of_registration_file: FileWeb | undefined;
602
- logo_file: FileWeb | undefined;
603
- signatories: CompanySignatoryWeb[];
604
- creation_time: number;
605
- status: CompanyStatusWeb;
575
+ }
576
+
577
+ export interface ResyncCompanyPayload {
578
+ node_id: string;
606
579
  }
607
580
 
608
581
  export interface CreateCompanyPayload {
@@ -619,27 +592,24 @@ export interface CreateCompanyPayload {
619
592
  creator_email: string;
620
593
  }
621
594
 
622
- export interface AcceptCompanyInvitePayload {
595
+ export interface ChangeSignatoryEmailPayload {
623
596
  id: string;
624
597
  email: string;
625
598
  }
626
599
 
627
- export interface LocallyHideSignatoryPayload {
600
+ export interface InviteSignatoryPayload {
628
601
  id: string;
629
602
  signatory_node_id: string;
630
603
  }
631
604
 
632
- export type CompanyStatusWeb = "Invited" | "Active" | "None";
633
-
634
- export type CompanySignatoryStatusWeb = { Invited: { ts: number; inviter: string } } | { InviteAccepted: { ts: number } } | { InviteRejected: { ts: number } } | { InviteAcceptedIdentityProven: { ts: number; confirmation: IdentityEmailConfirmationWeb } } | { Removed: { ts: number; remover: string } };
635
-
636
- export interface ResyncCompanyPayload {
605
+ export interface SignatoryResponse {
606
+ t: ContactTypeWeb;
637
607
  node_id: string;
638
- }
639
-
640
- export interface ConfirmEmailPayload {
641
- id: string;
642
- email: string;
608
+ name: string;
609
+ postal_address: PostalAddressWeb | undefined;
610
+ avatar_file: FileWeb | undefined;
611
+ is_logical: boolean;
612
+ signatory: CompanySignatoryWeb;
643
613
  }
644
614
 
645
615
  export interface VerifyEmailPayload {
@@ -647,6 +617,12 @@ export interface VerifyEmailPayload {
647
617
  confirmation_code: string;
648
618
  }
649
619
 
620
+ export type CompanySignatoryStatusWeb = { Invited: { ts: number; inviter: string } } | { InviteAccepted: { ts: number } } | { InviteRejected: { ts: number } } | { InviteAcceptedIdentityProven: { ts: number; confirmation: IdentityEmailConfirmationWeb } } | { Removed: { ts: number; remover: string } };
621
+
622
+ export interface ListSignatoriesResponse {
623
+ signatories: SignatoryResponse[];
624
+ }
625
+
650
626
  export interface EditCompanyPayload {
651
627
  id: string;
652
628
  name: string | undefined;
@@ -660,36 +636,51 @@ export interface EditCompanyPayload {
660
636
  proof_of_registration_file_upload_id: string | undefined;
661
637
  }
662
638
 
663
- export interface CompanyKeysWeb {
664
- id: string;
665
- }
639
+ export type CompanyStatusWeb = "Invited" | "Active" | "None";
666
640
 
667
- export interface ListSignatoriesResponse {
668
- signatories: SignatoryResponse[];
641
+ export interface RemoveSignatoryPayload {
642
+ id: string;
643
+ signatory_node_id: string;
669
644
  }
670
645
 
671
- export interface InviteSignatoryPayload {
646
+ export interface LocallyHideSignatoryPayload {
672
647
  id: string;
673
648
  signatory_node_id: string;
674
649
  }
675
650
 
676
- export interface ChangeSignatoryEmailPayload {
651
+ export interface CompanySignatoryWeb {
652
+ node_id: string;
653
+ status: CompanySignatoryStatusWeb;
654
+ }
655
+
656
+ export interface CompanyWeb {
677
657
  id: string;
658
+ name: string;
659
+ country_of_registration: string | undefined;
660
+ city_of_registration: string | undefined;
661
+ postal_address: PostalAddressWeb;
678
662
  email: string;
663
+ registration_number: string | undefined;
664
+ registration_date: string | undefined;
665
+ proof_of_registration_file: FileWeb | undefined;
666
+ logo_file: FileWeb | undefined;
667
+ signatories: CompanySignatoryWeb[];
668
+ creation_time: number;
669
+ status: CompanyStatusWeb;
679
670
  }
680
671
 
681
- export interface SignatoryResponse {
682
- t: ContactTypeWeb;
683
- node_id: string;
684
- name: string;
685
- postal_address: PostalAddressWeb | undefined;
686
- avatar_file: FileWeb | undefined;
687
- is_logical: boolean;
688
- signatory: CompanySignatoryWeb;
672
+ export interface ConfirmEmailPayload {
673
+ id: string;
674
+ email: string;
689
675
  }
690
676
 
691
- export interface CompaniesResponse {
692
- companies: CompanyWeb[];
677
+ export interface PendingContactShareWeb {
678
+ id: string;
679
+ node_id: string;
680
+ contact: ContactWeb;
681
+ sender_node_id: string;
682
+ receiver_node_id: string;
683
+ received_at: number;
693
684
  }
694
685
 
695
686
  export interface ContactWeb {
@@ -714,19 +705,6 @@ export interface SearchContactsPayload {
714
705
  include_contact: boolean | undefined;
715
706
  }
716
707
 
717
- export interface PendingContactShareWeb {
718
- id: string;
719
- node_id: string;
720
- contact: ContactWeb;
721
- sender_node_id: string;
722
- receiver_node_id: string;
723
- received_at: number;
724
- }
725
-
726
- export interface PendingContactSharesResponse {
727
- pending_shares: PendingContactShareWeb[];
728
- }
729
-
730
708
  export interface NewContactPayload {
731
709
  t: number;
732
710
  node_id: string;
@@ -741,6 +719,19 @@ export interface NewContactPayload {
741
719
  proof_document_file_upload_id: string | undefined;
742
720
  }
743
721
 
722
+ export interface PendingContactSharesResponse {
723
+ pending_shares: PendingContactShareWeb[];
724
+ }
725
+
726
+ export interface ApproveContactSharePayload {
727
+ pending_share_id: string;
728
+ share_back: boolean;
729
+ }
730
+
731
+ export interface ContactsResponse {
732
+ contacts: ContactWeb[];
733
+ }
734
+
744
735
  export interface EditContactPayload {
745
736
  node_id: string;
746
737
  name: string | undefined;
@@ -754,13 +745,8 @@ export interface EditContactPayload {
754
745
  proof_document_file_upload_id: string | undefined;
755
746
  }
756
747
 
757
- export interface ApproveContactSharePayload {
758
- pending_share_id: string;
759
- share_back: boolean;
760
- }
761
-
762
- export interface ContactsResponse {
763
- contacts: ContactWeb[];
748
+ export interface ConfirmEmailPayload {
749
+ email: string;
764
750
  }
765
751
 
766
752
  export interface ShareContactTo {
@@ -770,19 +756,8 @@ export interface ShareContactTo {
770
756
  recipient: string;
771
757
  }
772
758
 
773
- export interface ChangeIdentityPayload {
774
- name: string | undefined;
775
- postal_address: CreateOptionalPostalAddressWeb;
776
- date_of_birth: string | undefined;
777
- country_of_birth: string | undefined;
778
- city_of_birth: string | undefined;
779
- identification_number: string | undefined;
780
- profile_picture_file_upload_id: string | undefined;
781
- identity_document_file_upload_id: string | undefined;
782
- }
783
-
784
- export interface ChangeIdentityEmailPayload {
785
- email: string;
759
+ export interface VerifyEmailPayload {
760
+ confirmation_code: string;
786
761
  }
787
762
 
788
763
  export interface SwitchIdentity {
@@ -790,10 +765,8 @@ export interface SwitchIdentity {
790
765
  node_id: string;
791
766
  }
792
767
 
793
- export interface NewIdentityPayload {
794
- t: number;
795
- name: string;
796
- email: string | undefined;
768
+ export interface ChangeIdentityPayload {
769
+ name: string | undefined;
797
770
  postal_address: CreateOptionalPostalAddressWeb;
798
771
  date_of_birth: string | undefined;
799
772
  country_of_birth: string | undefined;
@@ -803,8 +776,25 @@ export interface NewIdentityPayload {
803
776
  identity_document_file_upload_id: string | undefined;
804
777
  }
805
778
 
806
- export interface VerifyEmailPayload {
807
- confirmation_code: string;
779
+ /**
780
+ * Response for a private key seeed backup
781
+ */
782
+ export interface SeedPhrase {
783
+ /**
784
+ * The seed phrase of the current private key
785
+ */
786
+ seed_phrase: string;
787
+ }
788
+
789
+ export interface ShareCompanyContactTo {
790
+ /**
791
+ * The node id of the identity to share the contact details to
792
+ */
793
+ recipient: string;
794
+ /**
795
+ * The node id of the company to share the contact details for
796
+ */
797
+ company_id: string;
808
798
  }
809
799
 
810
800
  export interface IdentityWeb {
@@ -824,21 +814,6 @@ export interface IdentityWeb {
824
814
  nostr_relays: string[];
825
815
  }
826
816
 
827
- export interface ConfirmEmailPayload {
828
- email: string;
829
- }
830
-
831
- export interface ShareCompanyContactTo {
832
- /**
833
- * The node id of the identity to share the contact details to
834
- */
835
- recipient: string;
836
- /**
837
- * The node id of the company to share the contact details for
838
- */
839
- company_id: string;
840
- }
841
-
842
817
  export interface IdentityEmailConfirmationWeb {
843
818
  signature: string;
844
819
  witness: string;
@@ -848,14 +823,21 @@ export interface IdentityEmailConfirmationWeb {
848
823
  created_at: number;
849
824
  }
850
825
 
851
- /**
852
- * Response for a private key seeed backup
853
- */
854
- export interface SeedPhrase {
855
- /**
856
- * The seed phrase of the current private key
857
- */
858
- seed_phrase: string;
826
+ export interface ChangeIdentityEmailPayload {
827
+ email: string;
828
+ }
829
+
830
+ export interface NewIdentityPayload {
831
+ t: number;
832
+ name: string;
833
+ email: string | undefined;
834
+ postal_address: CreateOptionalPostalAddressWeb;
835
+ date_of_birth: string | undefined;
836
+ country_of_birth: string | undefined;
837
+ city_of_birth: string | undefined;
838
+ identification_number: string | undefined;
839
+ profile_picture_file_upload_id: string | undefined;
840
+ identity_document_file_upload_id: string | undefined;
859
841
  }
860
842
 
861
843
  export interface JsErrorData {
@@ -866,6 +848,7 @@ export interface JsErrorData {
866
848
 
867
849
  export type JsErrorType = "FieldEmpty" | "FieldInvalid" | "InvalidSum" | "InvalidCurrency" | "InvalidContentType" | "IdentityCantBeAnon" | "InvalidContactType" | "InvalidIdentityType" | "InvalidDate" | "InvalidCountry" | "InvalidTimestamp" | "DeadlineBeforeMinimum" | "SelfDraftedBillCantBeBlank" | "RequestToMintForBillAndMintAlreadyActive" | "SignerCantBeAnon" | "ContactIsAnonymous" | "InvalidContact" | "InvalidMint" | "IssueDateAfterMaturityDate" | "MaturityDateInThePast" | "InvalidFileUploadId" | "InvalidNodeId" | "InvalidBillId" | "InvalidBillType" | "DraweeCantBePayee" | "EndorserCantBeEndorsee" | "BuyerCantBeSeller" | "RecourserCantBeRecoursee" | "DraweeNotInContacts" | "PayeeNotInContacts" | "MintNotInContacts" | "BuyerNotInContacts" | "EndorseeNotInContacts" | "RecourseeNotInContacts" | "CancelMintRequestNotPending" | "RejectMintRequestNotOffered" | "AcceptMintRequestNotOffered" | "AcceptMintOfferExpired" | "NoConfirmedEmailForIdentIdentity" | "NoFileForFileUploadId" | "NotFound" | "ExternalApi" | "Crypto" | "Persistence" | "Blockchain" | "Protocol" | "InvalidRelayUrl" | "Serialization" | "Init" | "NotificationNetwork" | "NotificationMessage" | "InvalidOperation" | "BillAlreadyAccepted" | "BillWasRejectedToAccept" | "BillAcceptanceExpired" | "BillWasRejectedToPay" | "BillPaymentExpired" | "BillWasRecoursedToTheEnd" | "BillAlreadyRequestedToAccept" | "BillNotAccepted" | "CallerIsNotDrawee" | "CallerIsNotHolder" | "CallerIsNotRecoursee" | "CallerIsNotBuyer" | "RequestAlreadyRejected" | "BillAlreadyPaid" | "BillWasNotRequestedToPay" | "BillWasNotOfferedToSell" | "BillRequestToAcceptDidNotExpireAndWasNotRejected" | "BillRequestToPayDidNotExpireAndWasNotRejected" | "RecourseeNotPastHolder" | "BillWasNotRequestedToRecourse" | "BillIsNotRequestedToRecourseAndWaitingForPayment" | "BillIsNotOfferToSellWaitingForPayment" | "BillSellDataInvalid" | "BillRecourseDataInvalid" | "BillIsRequestedToPayAndWaitingForPayment" | "BillIsOfferedToSellAndWaitingForPayment" | "BillIsInRecourseAndWaitingForPayment" | "SignatoryNotInContacts" | "SignatoryAlreadySignatory" | "CantRemoveLastSignatory" | "NotASignatory" | "NotARemovedOrRejectedSignatory" | "NotInvitedAsSignatory" | "NoSignerIdentityProof" | "FileIsTooBig" | "FileIsEmpty" | "TooManyFiles" | "InvalidFileName" | "UnknownNodeId" | "CallerMustBeSignatory" | "InvalidSignature" | "InvalidHash" | "InvalidUrl" | "InvalidIdentityProofStatus" | "Json" | "InvalidBillAction" | "InvalidMintRequestId";
868
850
 
851
+
869
852
  export class Api {
870
853
  private constructor();
871
854
  free(): void;
@@ -877,6 +860,7 @@ export class Api {
877
860
  static general(): General;
878
861
  static identity(): Identity;
879
862
  }
863
+
880
864
  export class Bill {
881
865
  private constructor();
882
866
  free(): void;
@@ -932,6 +916,7 @@ export class Bill {
932
916
  search(payload: BillsSearchFilterPayload): Promise<TSResult<LightBillsResponse>>;
933
917
  upload(payload: UploadFile): Promise<TSResult<UploadFileResponse>>;
934
918
  }
919
+
935
920
  export class Company {
936
921
  private constructor();
937
922
  free(): void;
@@ -963,6 +948,7 @@ export class Company {
963
948
  detail(id: string): Promise<TSResult<CompanyWeb>>;
964
949
  upload(payload: UploadFile): Promise<TSResult<UploadFileResponse>>;
965
950
  }
951
+
966
952
  export class Contact {
967
953
  private constructor();
968
954
  free(): void;
@@ -983,6 +969,13 @@ export class Contact {
983
969
  search(payload: SearchContactsPayload): Promise<TSResult<ContactsResponse>>;
984
970
  upload(payload: UploadFile): Promise<TSResult<UploadFileResponse>>;
985
971
  }
972
+
973
+ export enum ContactTypeWeb {
974
+ Person = 0,
975
+ Company = 1,
976
+ Anon = 2,
977
+ }
978
+
986
979
  export class General {
987
980
  private constructor();
988
981
  free(): void;
@@ -994,6 +987,7 @@ export class General {
994
987
  overview(currency: string): Promise<TSResult<OverviewResponse>>;
995
988
  temp_file(file_upload_id: string): Promise<TSResult<BinaryFileResponse>>;
996
989
  }
990
+
997
991
  export class Identity {
998
992
  private constructor();
999
993
  free(): void;
@@ -1021,6 +1015,12 @@ export class Identity {
1021
1015
  switch(switch_identity_payload: SwitchIdentity): Promise<TSResult<void>>;
1022
1016
  upload(payload: UploadFile): Promise<TSResult<UploadFileResponse>>;
1023
1017
  }
1018
+
1019
+ export enum IdentityTypeWeb {
1020
+ Ident = 0,
1021
+ Anon = 1,
1022
+ }
1023
+
1024
1024
  export class Notification {
1025
1025
  private constructor();
1026
1026
  free(): void;
@@ -1037,6 +1037,18 @@ export class Notification {
1037
1037
  subscribe(callback: Function): Promise<void>;
1038
1038
  }
1039
1039
 
1040
+ export enum SwitchIdentityTypeWeb {
1041
+ Person = 0,
1042
+ Company = 1,
1043
+ }
1044
+
1045
+ export function initialize_api(cfg: Config): Promise<void>;
1046
+
1047
+ /**
1048
+ * Entry point invoked by JavaScript in a worker.
1049
+ */
1050
+ export function task_worker_entry_point(ptr: number): void;
1051
+
1040
1052
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
1041
1053
 
1042
1054
  export interface InitOutput {
@@ -1166,20 +1178,20 @@ export interface InitOutput {
1166
1178
  readonly general_new: () => number;
1167
1179
  readonly identity_new: () => number;
1168
1180
  readonly notification_new: () => number;
1169
- readonly __wbg_contact_free: (a: number, b: number) => void;
1170
- readonly __wbg_company_free: (a: number, b: number) => void;
1171
1181
  readonly __wbg_identity_free: (a: number, b: number) => void;
1172
- readonly __wbg_notification_free: (a: number, b: number) => void;
1173
- readonly __wbg_bill_free: (a: number, b: number) => void;
1174
1182
  readonly __wbg_general_free: (a: number, b: number) => void;
1175
- readonly wasm_bindgen__convert__closures_____invoke__h625e6e48994b4d4d: (a: number, b: number) => void;
1176
- readonly wasm_bindgen__closure__destroy__h527ee7579c097780: (a: number, b: number) => void;
1177
- readonly wasm_bindgen__convert__closures_____invoke__hefd514050543a57d: (a: number, b: number, c: any) => [number, number];
1178
- readonly wasm_bindgen__closure__destroy__had46d023ac555f7b: (a: number, b: number) => void;
1179
- readonly wasm_bindgen__closure__destroy__h3037230e8ee2d37d: (a: number, b: number) => void;
1180
- readonly wasm_bindgen__convert__closures_____invoke__hd658b83f8a6440c8: (a: number, b: number) => void;
1181
- readonly wasm_bindgen__convert__closures_____invoke__h0fbebb9798cf06eb: (a: number, b: number, c: any) => void;
1182
- readonly wasm_bindgen__convert__closures_____invoke__h0dd348e3cbf490c5: (a: number, b: number, c: any, d: any) => void;
1183
+ readonly __wbg_company_free: (a: number, b: number) => void;
1184
+ readonly __wbg_bill_free: (a: number, b: number) => void;
1185
+ readonly __wbg_notification_free: (a: number, b: number) => void;
1186
+ readonly __wbg_contact_free: (a: number, b: number) => void;
1187
+ readonly wasm_bindgen__convert__closures_____invoke__h0ca8d5cbec1408a5: (a: number, b: number) => void;
1188
+ readonly wasm_bindgen__closure__destroy__h192e95482c726bd9: (a: number, b: number) => void;
1189
+ readonly wasm_bindgen__closure__destroy__h2779723cb848264c: (a: number, b: number) => void;
1190
+ readonly wasm_bindgen__convert__closures_____invoke__h81816996ad0cef11: (a: number, b: number, c: any) => void;
1191
+ readonly wasm_bindgen__convert__closures_____invoke__hd5998c5271805815: (a: number, b: number, c: any) => [number, number];
1192
+ readonly wasm_bindgen__closure__destroy__hfb3b78a8c9ef7360: (a: number, b: number) => void;
1193
+ readonly wasm_bindgen__convert__closures_____invoke__he5b470d34baeaaa5: (a: number, b: number) => void;
1194
+ readonly wasm_bindgen__convert__closures_____invoke__h17913a0979187f06: (a: number, b: number, c: any, d: any) => void;
1183
1195
  readonly __wbindgen_malloc: (a: number, b: number) => number;
1184
1196
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
1185
1197
  readonly __wbindgen_exn_store: (a: number) => void;
@@ -1191,6 +1203,7 @@ export interface InitOutput {
1191
1203
  }
1192
1204
 
1193
1205
  export type SyncInitInput = BufferSource | WebAssembly.Module;
1206
+
1194
1207
  /**
1195
1208
  * Instantiates the given `module`, which can either be bytes or
1196
1209
  * a precompiled `WebAssembly.Module`.