@bitcredit/bcr-ebill-wasm 0.3.3 → 0.3.5
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/index.d.ts +218 -168
- package/index.js +34 -24
- package/index_bg.wasm +0 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -148,6 +148,53 @@ export interface PastEndorseesResponse {
|
|
|
148
148
|
past_endorsees: PastEndorseeWeb[];
|
|
149
149
|
}
|
|
150
150
|
|
|
151
|
+
export interface PastPaymentsResponse {
|
|
152
|
+
past_payments: PastPaymentResultWeb[];
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export type PastPaymentResultWeb = { Sell: PastPaymentDataSellWeb } | { Payment: PastPaymentDataPaymentWeb } | { Recourse: PastPaymentDataRecourseWeb };
|
|
156
|
+
|
|
157
|
+
export type PastPaymentStatusWeb = { Paid: number } | { Rejected: number } | { Expired: number };
|
|
158
|
+
|
|
159
|
+
export interface PastPaymentDataSellWeb {
|
|
160
|
+
time_of_request: number;
|
|
161
|
+
buyer: IdentityPublicDataWeb;
|
|
162
|
+
seller: IdentityPublicDataWeb;
|
|
163
|
+
currency: string;
|
|
164
|
+
sum: string;
|
|
165
|
+
link_to_pay: string;
|
|
166
|
+
address_to_pay: string;
|
|
167
|
+
private_key_to_spend: string;
|
|
168
|
+
mempool_link_for_address_to_pay: string;
|
|
169
|
+
status: PastPaymentStatusWeb;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export interface PastPaymentDataPaymentWeb {
|
|
173
|
+
time_of_request: number;
|
|
174
|
+
payer: IdentityPublicDataWeb;
|
|
175
|
+
payee: IdentityPublicDataWeb;
|
|
176
|
+
currency: string;
|
|
177
|
+
sum: string;
|
|
178
|
+
link_to_pay: string;
|
|
179
|
+
address_to_pay: string;
|
|
180
|
+
private_key_to_spend: string;
|
|
181
|
+
mempool_link_for_address_to_pay: string;
|
|
182
|
+
status: PastPaymentStatusWeb;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export interface PastPaymentDataRecourseWeb {
|
|
186
|
+
time_of_request: number;
|
|
187
|
+
recourser: IdentityPublicDataWeb;
|
|
188
|
+
recoursee: IdentityPublicDataWeb;
|
|
189
|
+
currency: string;
|
|
190
|
+
sum: string;
|
|
191
|
+
link_to_pay: string;
|
|
192
|
+
address_to_pay: string;
|
|
193
|
+
private_key_to_spend: string;
|
|
194
|
+
mempool_link_for_address_to_pay: string;
|
|
195
|
+
status: PastPaymentStatusWeb;
|
|
196
|
+
}
|
|
197
|
+
|
|
151
198
|
export interface BitcreditEbillQuote {
|
|
152
199
|
bill_id: string;
|
|
153
200
|
quote_id: string;
|
|
@@ -207,6 +254,7 @@ export interface BillStatusWeb {
|
|
|
207
254
|
sell: BillSellStatusWeb;
|
|
208
255
|
recourse: BillRecourseStatusWeb;
|
|
209
256
|
redeemed_funds_available: boolean;
|
|
257
|
+
has_requested_funds: boolean;
|
|
210
258
|
}
|
|
211
259
|
|
|
212
260
|
export interface BillAcceptanceStatusWeb {
|
|
@@ -302,58 +350,114 @@ export interface LightIdentityPublicDataWeb {
|
|
|
302
350
|
node_id: string;
|
|
303
351
|
}
|
|
304
352
|
|
|
305
|
-
export
|
|
353
|
+
export interface NotificationWeb {
|
|
354
|
+
id: string;
|
|
355
|
+
node_id: string | undefined;
|
|
356
|
+
notification_type: NotificationTypeWeb;
|
|
357
|
+
reference_id: string | undefined;
|
|
358
|
+
description: string;
|
|
359
|
+
datetime: string;
|
|
360
|
+
active: boolean;
|
|
361
|
+
payload: any | undefined;
|
|
362
|
+
}
|
|
306
363
|
|
|
307
|
-
export
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
364
|
+
export type NotificationTypeWeb = "General" | "Bill";
|
|
365
|
+
|
|
366
|
+
export interface StatusResponse {
|
|
367
|
+
bitcoin_network: string;
|
|
368
|
+
app_version: string;
|
|
311
369
|
}
|
|
312
370
|
|
|
313
|
-
export interface
|
|
371
|
+
export interface GeneralSearchResponse {
|
|
372
|
+
bills: LightBitcreditBillWeb[];
|
|
314
373
|
contacts: ContactWeb[];
|
|
374
|
+
companies: CompanyWeb[];
|
|
315
375
|
}
|
|
316
376
|
|
|
317
|
-
export interface
|
|
318
|
-
|
|
319
|
-
|
|
377
|
+
export interface GeneralSearchFilterPayload {
|
|
378
|
+
filter: GeneralSearchFilter;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
export type GeneralSearchFilterItemTypeWeb = "Company" | "Bill" | "Contact";
|
|
382
|
+
|
|
383
|
+
export interface GeneralSearchFilter {
|
|
384
|
+
search_term: string;
|
|
385
|
+
currency: string;
|
|
386
|
+
item_types: GeneralSearchFilterItemTypeWeb[];
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
export interface OverviewResponse {
|
|
390
|
+
currency: string;
|
|
391
|
+
balances: OverviewBalanceResponse;
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
export interface OverviewBalanceResponse {
|
|
395
|
+
payee: BalanceResponse;
|
|
396
|
+
payer: BalanceResponse;
|
|
397
|
+
contingent: BalanceResponse;
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
export interface BalanceResponse {
|
|
401
|
+
sum: string;
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
export interface CurrenciesResponse {
|
|
405
|
+
currencies: CurrencyResponse[];
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
export interface CurrencyResponse {
|
|
409
|
+
code: string;
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
export interface OptionalPostalAddressWeb {
|
|
413
|
+
country: string | undefined;
|
|
414
|
+
city: string | undefined;
|
|
415
|
+
zip: string | undefined;
|
|
416
|
+
address: string | undefined;
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
export interface PostalAddressWeb {
|
|
420
|
+
country: string;
|
|
421
|
+
city: string;
|
|
422
|
+
zip: string | undefined;
|
|
423
|
+
address: string;
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
export interface FileWeb {
|
|
320
427
|
name: string;
|
|
321
|
-
|
|
322
|
-
postal_address: PostalAddressWeb;
|
|
323
|
-
date_of_birth_or_registration: string | undefined;
|
|
324
|
-
country_of_birth_or_registration: string | undefined;
|
|
325
|
-
city_of_birth_or_registration: string | undefined;
|
|
326
|
-
identification_number: string | undefined;
|
|
327
|
-
avatar_file_upload_id: string | undefined;
|
|
328
|
-
proof_document_file_upload_id: string | undefined;
|
|
428
|
+
hash: string;
|
|
329
429
|
}
|
|
330
430
|
|
|
331
|
-
export interface
|
|
332
|
-
|
|
333
|
-
name: string
|
|
334
|
-
|
|
335
|
-
postal_address: OptionalPostalAddressWeb;
|
|
336
|
-
date_of_birth_or_registration: string | undefined;
|
|
337
|
-
country_of_birth_or_registration: string | undefined;
|
|
338
|
-
city_of_birth_or_registration: string | undefined;
|
|
339
|
-
identification_number: string | undefined;
|
|
340
|
-
avatar_file_upload_id: string | undefined;
|
|
341
|
-
proof_document_file_upload_id: string | undefined;
|
|
431
|
+
export interface BinaryFileResponse {
|
|
432
|
+
data: number[];
|
|
433
|
+
name: string;
|
|
434
|
+
content_type: string;
|
|
342
435
|
}
|
|
343
436
|
|
|
344
|
-
export interface
|
|
345
|
-
|
|
346
|
-
|
|
437
|
+
export interface UploadFile {
|
|
438
|
+
data: number[];
|
|
439
|
+
extension: string | undefined;
|
|
347
440
|
name: string;
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
export interface UploadFileResponse {
|
|
444
|
+
file_upload_id: string;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
export type JsErrorType = "FieldEmpty" | "InvalidSum" | "InvalidCurrency" | "InvalidPaymentAddress" | "InvalidContentType" | "InvalidContactType" | "InvalidDate" | "InvalidFileUploadId" | "InvalidBillType" | "DraweeCantBePayee" | "EndorserCantBeEndorsee" | "BuyerCantBeSeller" | "RecourserCantBeRecoursee" | "DraweeNotInContacts" | "PayeeNotInContacts" | "MintNotInContacts" | "BuyerNotInContacts" | "EndorseeNotInContacts" | "RecourseeNotInContacts" | "NoFileForFileUploadId" | "NotFound" | "ExternalApi" | "Io" | "Crypto" | "Persistence" | "Blockchain" | "Serialization" | "Init" | "NotificationNetwork" | "NotificationMessage" | "InvalidOperation" | "BillAlreadyAccepted" | "BillWasRejectedToAccept" | "BillAcceptanceExpired" | "BillWasRejectedToPay" | "BillPaymentExpired" | "BillWasRejectedToRecourse" | "BillRequestToRecourseExpired" | "BillWasRecoursedToTheEnd" | "BillAlreadyRequestedToAccept" | "BillNotAccepted" | "CallerIsNotDrawee" | "CallerIsNotHolder" | "CallerIsNotRecoursee" | "CallerIsNotBuyer" | "RequestAlreadyExpired" | "RequestAlreadyRejected" | "BillAlreadyPaid" | "BillWasNotRequestedToAccept" | "BillWasNotRequestedToPay" | "BillWasNotOfferedToSell" | "BillRequestToAcceptDidNotExpireAndWasNotRejected" | "BillRequestToPayDidNotExpireAndWasNotRejected" | "RecourseeNotPastHolder" | "BillWasNotRequestedToRecourse" | "BillIsNotRequestedToRecourseAndWaitingForPayment" | "BillIsNotOfferToSellWaitingForPayment" | "BillSellDataInvalid" | "BillRecourseDataInvalid" | "BillIsRequestedToPayAndWaitingForPayment" | "BillIsOfferedToSellAndWaitingForPayment" | "BillIsInRecourseAndWaitingForPayment" | "BillWasRequestedToPay" | "BillRequestedToPayBeforeMaturityDate" | "DrawerIsNotBillIssuer" | "SignatoryNotInContacts" | "SignatoryAlreadySignatory" | "CantRemoveLastSignatory" | "NotASignatory" | "InvalidSecp256k1Key" | "FileIsTooBig" | "InvalidFileName" | "UnknownNodeId" | "BackupNotSupported" | "CallerMustBeSignatory";
|
|
448
|
+
|
|
449
|
+
export interface JsErrorData {
|
|
450
|
+
error: JsErrorType;
|
|
451
|
+
message: string;
|
|
452
|
+
code: number;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
export interface Config {
|
|
456
|
+
log_level: string | undefined;
|
|
457
|
+
bitcoin_network: string;
|
|
458
|
+
nostr_relay: string;
|
|
459
|
+
job_runner_initial_delay_seconds: number;
|
|
460
|
+
job_runner_check_interval_seconds: number;
|
|
357
461
|
}
|
|
358
462
|
|
|
359
463
|
export interface SwitchIdentity {
|
|
@@ -405,14 +509,6 @@ export interface SeedPhrase {
|
|
|
405
509
|
seed_phrase: string;
|
|
406
510
|
}
|
|
407
511
|
|
|
408
|
-
export interface Config {
|
|
409
|
-
log_level: string | undefined;
|
|
410
|
-
bitcoin_network: string;
|
|
411
|
-
nostr_relay: string;
|
|
412
|
-
job_runner_initial_delay_seconds: number;
|
|
413
|
-
job_runner_check_interval_seconds: number;
|
|
414
|
-
}
|
|
415
|
-
|
|
416
512
|
export interface CompaniesResponse {
|
|
417
513
|
companies: CompanyWeb[];
|
|
418
514
|
}
|
|
@@ -478,98 +574,50 @@ export interface SignatoryResponse {
|
|
|
478
574
|
avatar_file: FileWeb | undefined;
|
|
479
575
|
}
|
|
480
576
|
|
|
481
|
-
export interface
|
|
482
|
-
id: string;
|
|
483
|
-
node_id: string | undefined;
|
|
484
|
-
notification_type: NotificationTypeWeb;
|
|
485
|
-
reference_id: string | undefined;
|
|
486
|
-
description: string;
|
|
487
|
-
datetime: string;
|
|
488
|
-
active: boolean;
|
|
489
|
-
payload: any | undefined;
|
|
490
|
-
}
|
|
491
|
-
|
|
492
|
-
export type NotificationTypeWeb = "General" | "Bill";
|
|
493
|
-
|
|
494
|
-
export interface StatusResponse {
|
|
495
|
-
bitcoin_network: string;
|
|
496
|
-
app_version: string;
|
|
497
|
-
}
|
|
498
|
-
|
|
499
|
-
export interface GeneralSearchResponse {
|
|
500
|
-
bills: LightBitcreditBillWeb[];
|
|
577
|
+
export interface ContactsResponse {
|
|
501
578
|
contacts: ContactWeb[];
|
|
502
|
-
companies: CompanyWeb[];
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
export interface GeneralSearchFilterPayload {
|
|
506
|
-
filter: GeneralSearchFilter;
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
export type GeneralSearchFilterItemTypeWeb = "Company" | "Bill" | "Contact";
|
|
510
|
-
|
|
511
|
-
export interface GeneralSearchFilter {
|
|
512
|
-
search_term: string;
|
|
513
|
-
currency: string;
|
|
514
|
-
item_types: GeneralSearchFilterItemTypeWeb[];
|
|
515
|
-
}
|
|
516
|
-
|
|
517
|
-
export interface OverviewResponse {
|
|
518
|
-
currency: string;
|
|
519
|
-
balances: OverviewBalanceResponse;
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
export interface OverviewBalanceResponse {
|
|
523
|
-
payee: BalanceResponse;
|
|
524
|
-
payer: BalanceResponse;
|
|
525
|
-
contingent: BalanceResponse;
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
export interface BalanceResponse {
|
|
529
|
-
sum: string;
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
export interface CurrenciesResponse {
|
|
533
|
-
currencies: CurrencyResponse[];
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
export interface CurrencyResponse {
|
|
537
|
-
code: string;
|
|
538
|
-
}
|
|
539
|
-
|
|
540
|
-
export interface OptionalPostalAddressWeb {
|
|
541
|
-
country: string | undefined;
|
|
542
|
-
city: string | undefined;
|
|
543
|
-
zip: string | undefined;
|
|
544
|
-
address: string | undefined;
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
export interface PostalAddressWeb {
|
|
548
|
-
country: string;
|
|
549
|
-
city: string;
|
|
550
|
-
zip: string | undefined;
|
|
551
|
-
address: string;
|
|
552
579
|
}
|
|
553
580
|
|
|
554
|
-
export interface
|
|
581
|
+
export interface NewContactPayload {
|
|
582
|
+
t: number;
|
|
583
|
+
node_id: string;
|
|
555
584
|
name: string;
|
|
556
|
-
|
|
585
|
+
email: string;
|
|
586
|
+
postal_address: PostalAddressWeb;
|
|
587
|
+
date_of_birth_or_registration: string | undefined;
|
|
588
|
+
country_of_birth_or_registration: string | undefined;
|
|
589
|
+
city_of_birth_or_registration: string | undefined;
|
|
590
|
+
identification_number: string | undefined;
|
|
591
|
+
avatar_file_upload_id: string | undefined;
|
|
592
|
+
proof_document_file_upload_id: string | undefined;
|
|
557
593
|
}
|
|
558
594
|
|
|
559
|
-
export interface
|
|
560
|
-
|
|
561
|
-
name: string;
|
|
562
|
-
|
|
595
|
+
export interface EditContactPayload {
|
|
596
|
+
node_id: string;
|
|
597
|
+
name: string | undefined;
|
|
598
|
+
email: string | undefined;
|
|
599
|
+
postal_address: OptionalPostalAddressWeb;
|
|
600
|
+
date_of_birth_or_registration: string | undefined;
|
|
601
|
+
country_of_birth_or_registration: string | undefined;
|
|
602
|
+
city_of_birth_or_registration: string | undefined;
|
|
603
|
+
identification_number: string | undefined;
|
|
604
|
+
avatar_file_upload_id: string | undefined;
|
|
605
|
+
proof_document_file_upload_id: string | undefined;
|
|
563
606
|
}
|
|
564
607
|
|
|
565
|
-
export interface
|
|
566
|
-
|
|
567
|
-
|
|
608
|
+
export interface ContactWeb {
|
|
609
|
+
t: ContactTypeWeb;
|
|
610
|
+
node_id: string;
|
|
568
611
|
name: string;
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
612
|
+
email: string;
|
|
613
|
+
postal_address: PostalAddressWeb;
|
|
614
|
+
date_of_birth_or_registration: string | undefined;
|
|
615
|
+
country_of_birth_or_registration: string | undefined;
|
|
616
|
+
city_of_birth_or_registration: string | undefined;
|
|
617
|
+
identification_number: string | undefined;
|
|
618
|
+
avatar_file: FileWeb | undefined;
|
|
619
|
+
proof_document_file: FileWeb | undefined;
|
|
620
|
+
nostr_relays: string[];
|
|
573
621
|
}
|
|
574
622
|
|
|
575
623
|
export class Api {
|
|
@@ -588,6 +636,7 @@ export class Bill {
|
|
|
588
636
|
free(): void;
|
|
589
637
|
static new(): Bill;
|
|
590
638
|
endorsements(id: string): Promise<EndorsementsResponse>;
|
|
639
|
+
past_payments(id: string): Promise<PastPaymentsResponse>;
|
|
591
640
|
past_endorsees(id: string): Promise<PastEndorseesResponse>;
|
|
592
641
|
bitcoin_key(id: string): Promise<BillCombinedBitcoinKeyWeb>;
|
|
593
642
|
attachment(bill_id: string, file_name: string): Promise<BinaryFileResponse>;
|
|
@@ -684,25 +733,10 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
684
733
|
|
|
685
734
|
export interface InitOutput {
|
|
686
735
|
readonly memory: WebAssembly.Memory;
|
|
687
|
-
readonly __wbg_quote_free: (a: number, b: number) => void;
|
|
688
|
-
readonly quote_new: () => number;
|
|
689
|
-
readonly quote_get: (a: number, b: number, c: number) => any;
|
|
690
|
-
readonly quote_accept: (a: number, b: number, c: number) => any;
|
|
691
|
-
readonly __wbg_identity_free: (a: number, b: number) => void;
|
|
692
|
-
readonly identity_new: () => number;
|
|
693
|
-
readonly identity_file: (a: number, b: number, c: number) => any;
|
|
694
|
-
readonly identity_upload: (a: number, b: any) => any;
|
|
695
|
-
readonly identity_detail: (a: number) => any;
|
|
696
|
-
readonly identity_create: (a: number, b: any) => any;
|
|
697
|
-
readonly identity_change: (a: number, b: any) => any;
|
|
698
|
-
readonly identity_active: (a: number) => any;
|
|
699
|
-
readonly identity_switch: (a: number, b: any) => any;
|
|
700
|
-
readonly identity_seed_backup: (a: number) => any;
|
|
701
|
-
readonly identity_seed_recover: (a: number, b: any) => any;
|
|
702
|
-
readonly initialize_api: (a: any) => any;
|
|
703
736
|
readonly __wbg_bill_free: (a: number, b: number) => void;
|
|
704
737
|
readonly bill_new: () => number;
|
|
705
738
|
readonly bill_endorsements: (a: number, b: number, c: number) => any;
|
|
739
|
+
readonly bill_past_payments: (a: number, b: number, c: number) => any;
|
|
706
740
|
readonly bill_past_endorsees: (a: number, b: number, c: number) => any;
|
|
707
741
|
readonly bill_bitcoin_key: (a: number, b: number, c: number) => any;
|
|
708
742
|
readonly bill_attachment: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
@@ -742,23 +776,8 @@ export interface InitOutput {
|
|
|
742
776
|
readonly notification_list: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: bigint, i: number, j: bigint) => any;
|
|
743
777
|
readonly notification_mark_as_done: (a: number, b: number, c: number) => any;
|
|
744
778
|
readonly notification_trigger_test_msg: (a: number, b: any) => any;
|
|
745
|
-
readonly __wbg_api_free: (a: number, b: number) => void;
|
|
746
|
-
readonly api_bill: () => number;
|
|
747
|
-
readonly notification_new: () => number;
|
|
748
779
|
readonly company_new: () => number;
|
|
749
|
-
readonly
|
|
750
|
-
readonly api_identity: () => number;
|
|
751
|
-
readonly api_notification: () => number;
|
|
752
|
-
readonly api_contact: () => number;
|
|
753
|
-
readonly api_company: () => number;
|
|
754
|
-
readonly api_quote: () => number;
|
|
755
|
-
readonly __wbg_general_free: (a: number, b: number) => void;
|
|
756
|
-
readonly general_new: () => number;
|
|
757
|
-
readonly general_status: (a: number) => any;
|
|
758
|
-
readonly general_currencies: (a: number) => any;
|
|
759
|
-
readonly general_temp_file: (a: number, b: number, c: number) => any;
|
|
760
|
-
readonly general_overview: (a: number, b: number, c: number) => any;
|
|
761
|
-
readonly general_search: (a: number, b: any) => any;
|
|
780
|
+
readonly notification_new: () => number;
|
|
762
781
|
readonly __wbg_contact_free: (a: number, b: number) => void;
|
|
763
782
|
readonly contact_new: () => number;
|
|
764
783
|
readonly contact_file: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
@@ -768,6 +787,37 @@ export interface InitOutput {
|
|
|
768
787
|
readonly contact_remove: (a: number, b: number, c: number) => any;
|
|
769
788
|
readonly contact_create: (a: number, b: any) => any;
|
|
770
789
|
readonly contact_edit: (a: number, b: any) => any;
|
|
790
|
+
readonly initialize_api: (a: any) => any;
|
|
791
|
+
readonly __wbg_general_free: (a: number, b: number) => void;
|
|
792
|
+
readonly general_new: () => number;
|
|
793
|
+
readonly general_status: (a: number) => any;
|
|
794
|
+
readonly general_currencies: (a: number) => any;
|
|
795
|
+
readonly general_temp_file: (a: number, b: number, c: number) => any;
|
|
796
|
+
readonly general_overview: (a: number, b: number, c: number) => any;
|
|
797
|
+
readonly general_search: (a: number, b: any) => any;
|
|
798
|
+
readonly __wbg_identity_free: (a: number, b: number) => void;
|
|
799
|
+
readonly identity_file: (a: number, b: number, c: number) => any;
|
|
800
|
+
readonly identity_upload: (a: number, b: any) => any;
|
|
801
|
+
readonly identity_detail: (a: number) => any;
|
|
802
|
+
readonly identity_create: (a: number, b: any) => any;
|
|
803
|
+
readonly identity_change: (a: number, b: any) => any;
|
|
804
|
+
readonly identity_active: (a: number) => any;
|
|
805
|
+
readonly identity_switch: (a: number, b: any) => any;
|
|
806
|
+
readonly identity_seed_backup: (a: number) => any;
|
|
807
|
+
readonly identity_seed_recover: (a: number, b: any) => any;
|
|
808
|
+
readonly identity_new: () => number;
|
|
809
|
+
readonly __wbg_quote_free: (a: number, b: number) => void;
|
|
810
|
+
readonly quote_new: () => number;
|
|
811
|
+
readonly quote_get: (a: number, b: number, c: number) => any;
|
|
812
|
+
readonly quote_accept: (a: number, b: number, c: number) => any;
|
|
813
|
+
readonly __wbg_api_free: (a: number, b: number) => void;
|
|
814
|
+
readonly api_bill: () => number;
|
|
815
|
+
readonly api_general: () => number;
|
|
816
|
+
readonly api_identity: () => number;
|
|
817
|
+
readonly api_notification: () => number;
|
|
818
|
+
readonly api_contact: () => number;
|
|
819
|
+
readonly api_company: () => number;
|
|
820
|
+
readonly api_quote: () => number;
|
|
771
821
|
readonly task_worker_entry_point: (a: number) => [number, number];
|
|
772
822
|
readonly ring_core_0_17_14__bn_mul_mont: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
773
823
|
readonly rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
@@ -783,13 +833,13 @@ export interface InitOutput {
|
|
|
783
833
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
784
834
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
785
835
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hea7ae37f53e31771: (a: number, b: number) => void;
|
|
786
|
-
readonly
|
|
836
|
+
readonly closure4190_externref_shim_multivalue_shim: (a: number, b: number, c: any) => [number, number];
|
|
787
837
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hda04f07252086208: (a: number, b: number) => void;
|
|
788
|
-
readonly
|
|
789
|
-
readonly
|
|
838
|
+
readonly closure5768_externref_shim: (a: number, b: number, c: any) => void;
|
|
839
|
+
readonly closure5960_externref_shim: (a: number, b: number, c: any) => void;
|
|
790
840
|
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1098717e74983065: (a: number, b: number) => void;
|
|
791
|
-
readonly
|
|
792
|
-
readonly
|
|
841
|
+
readonly closure6162_externref_shim: (a: number, b: number, c: any) => void;
|
|
842
|
+
readonly closure6299_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
793
843
|
readonly __wbindgen_start: () => void;
|
|
794
844
|
}
|
|
795
845
|
|
package/index.js
CHANGED
|
@@ -232,7 +232,7 @@ function __wbg_adapter_54(arg0, arg1) {
|
|
|
232
232
|
}
|
|
233
233
|
|
|
234
234
|
function __wbg_adapter_57(arg0, arg1, arg2) {
|
|
235
|
-
const ret = wasm.
|
|
235
|
+
const ret = wasm.closure4190_externref_shim_multivalue_shim(arg0, arg1, arg2);
|
|
236
236
|
if (ret[1]) {
|
|
237
237
|
throw takeFromExternrefTable0(ret[0]);
|
|
238
238
|
}
|
|
@@ -243,11 +243,11 @@ function __wbg_adapter_60(arg0, arg1) {
|
|
|
243
243
|
}
|
|
244
244
|
|
|
245
245
|
function __wbg_adapter_63(arg0, arg1, arg2) {
|
|
246
|
-
wasm.
|
|
246
|
+
wasm.closure5768_externref_shim(arg0, arg1, arg2);
|
|
247
247
|
}
|
|
248
248
|
|
|
249
249
|
function __wbg_adapter_66(arg0, arg1, arg2) {
|
|
250
|
-
wasm.
|
|
250
|
+
wasm.closure5960_externref_shim(arg0, arg1, arg2);
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
function __wbg_adapter_69(arg0, arg1) {
|
|
@@ -255,11 +255,11 @@ function __wbg_adapter_69(arg0, arg1) {
|
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
function __wbg_adapter_72(arg0, arg1, arg2) {
|
|
258
|
-
wasm.
|
|
258
|
+
wasm.closure6162_externref_shim(arg0, arg1, arg2);
|
|
259
259
|
}
|
|
260
260
|
|
|
261
|
-
function
|
|
262
|
-
wasm.
|
|
261
|
+
function __wbg_adapter_431(arg0, arg1, arg2, arg3) {
|
|
262
|
+
wasm.closure6299_externref_shim(arg0, arg1, arg2, arg3);
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
/**
|
|
@@ -397,6 +397,16 @@ export class Bill {
|
|
|
397
397
|
const ret = wasm.bill_endorsements(this.__wbg_ptr, ptr0, len0);
|
|
398
398
|
return ret;
|
|
399
399
|
}
|
|
400
|
+
/**
|
|
401
|
+
* @param {string} id
|
|
402
|
+
* @returns {PastPaymentsResponse}
|
|
403
|
+
*/
|
|
404
|
+
past_payments(id) {
|
|
405
|
+
const ptr0 = passStringToWasm0(id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
406
|
+
const len0 = WASM_VECTOR_LEN;
|
|
407
|
+
const ret = wasm.bill_past_payments(this.__wbg_ptr, ptr0, len0);
|
|
408
|
+
return ret;
|
|
409
|
+
}
|
|
400
410
|
/**
|
|
401
411
|
* @param {string} id
|
|
402
412
|
* @returns {PastEndorseesResponse}
|
|
@@ -630,7 +640,7 @@ export class Company {
|
|
|
630
640
|
* @returns {Company}
|
|
631
641
|
*/
|
|
632
642
|
static new() {
|
|
633
|
-
const ret = wasm.
|
|
643
|
+
const ret = wasm.bill_new();
|
|
634
644
|
return Company.__wrap(ret);
|
|
635
645
|
}
|
|
636
646
|
/**
|
|
@@ -918,7 +928,7 @@ export class Identity {
|
|
|
918
928
|
* @returns {Identity}
|
|
919
929
|
*/
|
|
920
930
|
static new() {
|
|
921
|
-
const ret = wasm.
|
|
931
|
+
const ret = wasm.general_new();
|
|
922
932
|
return Identity.__wrap(ret);
|
|
923
933
|
}
|
|
924
934
|
/**
|
|
@@ -1023,7 +1033,7 @@ export class Notification {
|
|
|
1023
1033
|
* @returns {Notification}
|
|
1024
1034
|
*/
|
|
1025
1035
|
static new() {
|
|
1026
|
-
const ret = wasm.
|
|
1036
|
+
const ret = wasm.bill_new();
|
|
1027
1037
|
return Notification.__wrap(ret);
|
|
1028
1038
|
}
|
|
1029
1039
|
/**
|
|
@@ -1458,7 +1468,7 @@ function __wbg_get_imports() {
|
|
|
1458
1468
|
const a = state0.a;
|
|
1459
1469
|
state0.a = 0;
|
|
1460
1470
|
try {
|
|
1461
|
-
return
|
|
1471
|
+
return __wbg_adapter_431(a, state0.b, arg0, arg1);
|
|
1462
1472
|
} finally {
|
|
1463
1473
|
state0.a = a;
|
|
1464
1474
|
}
|
|
@@ -1855,32 +1865,32 @@ function __wbg_get_imports() {
|
|
|
1855
1865
|
const ret = false;
|
|
1856
1866
|
return ret;
|
|
1857
1867
|
};
|
|
1858
|
-
imports.wbg.
|
|
1859
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1868
|
+
imports.wbg.__wbindgen_closure_wrapper21562 = function(arg0, arg1, arg2) {
|
|
1869
|
+
const ret = makeMutClosure(arg0, arg1, 4191, __wbg_adapter_57);
|
|
1860
1870
|
return ret;
|
|
1861
1871
|
};
|
|
1862
|
-
imports.wbg.
|
|
1863
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1872
|
+
imports.wbg.__wbindgen_closure_wrapper22074 = function(arg0, arg1, arg2) {
|
|
1873
|
+
const ret = makeMutClosure(arg0, arg1, 4339, __wbg_adapter_60);
|
|
1864
1874
|
return ret;
|
|
1865
1875
|
};
|
|
1866
|
-
imports.wbg.
|
|
1867
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1876
|
+
imports.wbg.__wbindgen_closure_wrapper27327 = function(arg0, arg1, arg2) {
|
|
1877
|
+
const ret = makeMutClosure(arg0, arg1, 5769, __wbg_adapter_63);
|
|
1868
1878
|
return ret;
|
|
1869
1879
|
};
|
|
1870
|
-
imports.wbg.
|
|
1871
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1880
|
+
imports.wbg.__wbindgen_closure_wrapper27986 = function(arg0, arg1, arg2) {
|
|
1881
|
+
const ret = makeMutClosure(arg0, arg1, 5961, __wbg_adapter_66);
|
|
1872
1882
|
return ret;
|
|
1873
1883
|
};
|
|
1874
|
-
imports.wbg.
|
|
1875
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1884
|
+
imports.wbg.__wbindgen_closure_wrapper29307 = function(arg0, arg1, arg2) {
|
|
1885
|
+
const ret = makeMutClosure(arg0, arg1, 6153, __wbg_adapter_69);
|
|
1876
1886
|
return ret;
|
|
1877
1887
|
};
|
|
1878
|
-
imports.wbg.
|
|
1879
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1888
|
+
imports.wbg.__wbindgen_closure_wrapper29332 = function(arg0, arg1, arg2) {
|
|
1889
|
+
const ret = makeMutClosure(arg0, arg1, 6163, __wbg_adapter_72);
|
|
1880
1890
|
return ret;
|
|
1881
1891
|
};
|
|
1882
|
-
imports.wbg.
|
|
1883
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1892
|
+
imports.wbg.__wbindgen_closure_wrapper3257 = function(arg0, arg1, arg2) {
|
|
1893
|
+
const ret = makeMutClosure(arg0, arg1, 1338, __wbg_adapter_54);
|
|
1884
1894
|
return ret;
|
|
1885
1895
|
};
|
|
1886
1896
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
package/index_bg.wasm
CHANGED
|
Binary file
|