@bitcredit/bcr-ebill-wasm 0.4.9 → 0.4.11
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 +78 -23
- package/index.js +75 -45
- package/index_bg.wasm +0 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -34,7 +34,6 @@ export interface BitcreditBillPayload {
|
|
|
34
34
|
currency: string;
|
|
35
35
|
country_of_payment: string;
|
|
36
36
|
city_of_payment: string;
|
|
37
|
-
language: string;
|
|
38
37
|
file_upload_ids: string[];
|
|
39
38
|
}
|
|
40
39
|
|
|
@@ -58,11 +57,13 @@ export interface OfferToSellBitcreditBillPayload {
|
|
|
58
57
|
bill_id: string;
|
|
59
58
|
sum: string;
|
|
60
59
|
currency: string;
|
|
60
|
+
buying_deadline: string;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
export interface RequestToPayBitcreditBillPayload {
|
|
64
64
|
bill_id: string;
|
|
65
65
|
currency: string;
|
|
66
|
+
payment_deadline: string;
|
|
66
67
|
}
|
|
67
68
|
|
|
68
69
|
export interface RequestRecourseForPaymentPayload {
|
|
@@ -70,11 +71,13 @@ export interface RequestRecourseForPaymentPayload {
|
|
|
70
71
|
recoursee: string;
|
|
71
72
|
currency: string;
|
|
72
73
|
sum: string;
|
|
74
|
+
recourse_deadline: string;
|
|
73
75
|
}
|
|
74
76
|
|
|
75
77
|
export interface RequestRecourseForAcceptancePayload {
|
|
76
78
|
bill_id: string;
|
|
77
79
|
recoursee: string;
|
|
80
|
+
recourse_deadline: string;
|
|
78
81
|
}
|
|
79
82
|
|
|
80
83
|
export interface AcceptBitcreditBillPayload {
|
|
@@ -83,6 +86,7 @@ export interface AcceptBitcreditBillPayload {
|
|
|
83
86
|
|
|
84
87
|
export interface RequestToAcceptBitcreditBillPayload {
|
|
85
88
|
bill_id: string;
|
|
89
|
+
acceptance_deadline: string;
|
|
86
90
|
}
|
|
87
91
|
|
|
88
92
|
export interface RejectActionBillPayload {
|
|
@@ -138,6 +142,19 @@ export interface BillsResponse {
|
|
|
138
142
|
bills: BitcreditBillWeb[];
|
|
139
143
|
}
|
|
140
144
|
|
|
145
|
+
export interface BillHistoryResponse {
|
|
146
|
+
blocks: BillHistoryBlockWeb[];
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export interface BillHistoryBlockWeb {
|
|
150
|
+
block_id: number;
|
|
151
|
+
block_type: BillOpCodeWeb;
|
|
152
|
+
pay_to_the_order_of: LightBillParticipantWeb | undefined;
|
|
153
|
+
signed: LightSignedByWeb;
|
|
154
|
+
signing_timestamp: number;
|
|
155
|
+
signing_address: PostalAddressWeb | undefined;
|
|
156
|
+
}
|
|
157
|
+
|
|
141
158
|
export interface LightBillsResponse {
|
|
142
159
|
bills: LightBitcreditBillWeb[];
|
|
143
160
|
}
|
|
@@ -217,6 +234,7 @@ export interface BillWaitingStatePaymentDataWeb {
|
|
|
217
234
|
tx_id: string | undefined;
|
|
218
235
|
in_mempool: boolean;
|
|
219
236
|
confirmations: number;
|
|
237
|
+
payment_deadline: number | undefined;
|
|
220
238
|
}
|
|
221
239
|
|
|
222
240
|
export interface BillWaitingForSellStateWeb {
|
|
@@ -254,6 +272,7 @@ export interface BillAcceptanceStatusWeb {
|
|
|
254
272
|
accepted: boolean;
|
|
255
273
|
request_to_accept_timed_out: boolean;
|
|
256
274
|
rejected_to_accept: boolean;
|
|
275
|
+
acceptance_deadline_timestamp: number | undefined;
|
|
257
276
|
}
|
|
258
277
|
|
|
259
278
|
export interface BillPaymentStatusWeb {
|
|
@@ -262,6 +281,7 @@ export interface BillPaymentStatusWeb {
|
|
|
262
281
|
paid: boolean;
|
|
263
282
|
request_to_pay_timed_out: boolean;
|
|
264
283
|
rejected_to_pay: boolean;
|
|
284
|
+
payment_deadline_timestamp: number | undefined;
|
|
265
285
|
}
|
|
266
286
|
|
|
267
287
|
export interface BillSellStatusWeb {
|
|
@@ -270,6 +290,7 @@ export interface BillSellStatusWeb {
|
|
|
270
290
|
offered_to_sell: boolean;
|
|
271
291
|
offer_to_sell_timed_out: boolean;
|
|
272
292
|
rejected_offer_to_sell: boolean;
|
|
293
|
+
buying_deadline_timestamp: number | undefined;
|
|
273
294
|
}
|
|
274
295
|
|
|
275
296
|
export interface BillRecourseStatusWeb {
|
|
@@ -278,6 +299,7 @@ export interface BillRecourseStatusWeb {
|
|
|
278
299
|
requested_to_recourse: boolean;
|
|
279
300
|
request_to_recourse_timed_out: boolean;
|
|
280
301
|
rejected_request_to_recourse: boolean;
|
|
302
|
+
recourse_deadline_timestamp: number | undefined;
|
|
281
303
|
}
|
|
282
304
|
|
|
283
305
|
export interface BillMintStatusWeb {
|
|
@@ -285,7 +307,6 @@ export interface BillMintStatusWeb {
|
|
|
285
307
|
}
|
|
286
308
|
|
|
287
309
|
export interface BillDataWeb {
|
|
288
|
-
language: string;
|
|
289
310
|
time_of_drawing: number;
|
|
290
311
|
issue_date: string;
|
|
291
312
|
time_of_maturity: number;
|
|
@@ -329,7 +350,7 @@ export type BillParticipantWeb = { Anon: BillAnonParticipantWeb } | { Ident: Bil
|
|
|
329
350
|
export interface BillAnonParticipantWeb {
|
|
330
351
|
node_id: string;
|
|
331
352
|
email: string | undefined;
|
|
332
|
-
nostr_relays:
|
|
353
|
+
nostr_relays: Url[];
|
|
333
354
|
}
|
|
334
355
|
|
|
335
356
|
export interface BillIdentParticipantWeb {
|
|
@@ -338,7 +359,7 @@ export interface BillIdentParticipantWeb {
|
|
|
338
359
|
name: string;
|
|
339
360
|
postal_address: PostalAddressWeb;
|
|
340
361
|
email: string | undefined;
|
|
341
|
-
nostr_relays:
|
|
362
|
+
nostr_relays: Url[];
|
|
342
363
|
}
|
|
343
364
|
|
|
344
365
|
export interface LightBillIdentParticipantWithAddressWeb {
|
|
@@ -365,6 +386,8 @@ export interface ShareBillWithCourtPayload {
|
|
|
365
386
|
court_node_id: string;
|
|
366
387
|
}
|
|
367
388
|
|
|
389
|
+
export type BillOpCodeWeb = "Issue" | "Accept" | "Endorse" | "RequestToAccept" | "RequestToPay" | "OfferToSell" | "Sell" | "Mint" | "RejectToAccept" | "RejectToPay" | "RejectToBuy" | "RejectToPayRecourse" | "RequestRecourse" | "Recourse";
|
|
390
|
+
|
|
368
391
|
export interface CompaniesResponse {
|
|
369
392
|
companies: CompanyWeb[];
|
|
370
393
|
}
|
|
@@ -387,7 +410,7 @@ export interface CreateCompanyPayload {
|
|
|
387
410
|
name: string;
|
|
388
411
|
country_of_registration: string | undefined;
|
|
389
412
|
city_of_registration: string | undefined;
|
|
390
|
-
postal_address:
|
|
413
|
+
postal_address: CreatePostalAddressWeb;
|
|
391
414
|
email: string;
|
|
392
415
|
registration_number: string | undefined;
|
|
393
416
|
registration_date: string | undefined;
|
|
@@ -399,7 +422,7 @@ export interface EditCompanyPayload {
|
|
|
399
422
|
id: string;
|
|
400
423
|
name: string | undefined;
|
|
401
424
|
email: string | undefined;
|
|
402
|
-
postal_address:
|
|
425
|
+
postal_address: CreateOptionalPostalAddressWeb;
|
|
403
426
|
country_of_registration: string | undefined;
|
|
404
427
|
city_of_registration: string | undefined;
|
|
405
428
|
registration_number: string | undefined;
|
|
@@ -426,8 +449,13 @@ export interface SignatoryResponse {
|
|
|
426
449
|
t: ContactTypeWeb;
|
|
427
450
|
node_id: string;
|
|
428
451
|
name: string;
|
|
429
|
-
postal_address: PostalAddressWeb;
|
|
452
|
+
postal_address: PostalAddressWeb | undefined;
|
|
430
453
|
avatar_file: FileWeb | undefined;
|
|
454
|
+
is_logical: boolean;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
export interface ResyncCompanyPayload {
|
|
458
|
+
node_id: string;
|
|
431
459
|
}
|
|
432
460
|
|
|
433
461
|
export interface ContactsResponse {
|
|
@@ -439,7 +467,7 @@ export interface NewContactPayload {
|
|
|
439
467
|
node_id: string;
|
|
440
468
|
name: string;
|
|
441
469
|
email: string | undefined;
|
|
442
|
-
postal_address:
|
|
470
|
+
postal_address: CreatePostalAddressWeb | undefined;
|
|
443
471
|
date_of_birth_or_registration: string | undefined;
|
|
444
472
|
country_of_birth_or_registration: string | undefined;
|
|
445
473
|
city_of_birth_or_registration: string | undefined;
|
|
@@ -452,7 +480,7 @@ export interface EditContactPayload {
|
|
|
452
480
|
node_id: string;
|
|
453
481
|
name: string | undefined;
|
|
454
482
|
email: string | undefined;
|
|
455
|
-
postal_address:
|
|
483
|
+
postal_address: CreateOptionalPostalAddressWeb;
|
|
456
484
|
date_of_birth_or_registration: string | undefined;
|
|
457
485
|
country_of_birth_or_registration: string | undefined;
|
|
458
486
|
city_of_birth_or_registration: string | undefined;
|
|
@@ -473,13 +501,13 @@ export interface ContactWeb {
|
|
|
473
501
|
name: string;
|
|
474
502
|
email: string | undefined;
|
|
475
503
|
postal_address: PostalAddressWeb | undefined;
|
|
476
|
-
date_of_birth_or_registration: string
|
|
504
|
+
date_of_birth_or_registration: string;
|
|
477
505
|
country_of_birth_or_registration: string | undefined;
|
|
478
506
|
city_of_birth_or_registration: string | undefined;
|
|
479
507
|
identification_number: string | undefined;
|
|
480
508
|
avatar_file: FileWeb | undefined;
|
|
481
509
|
proof_document_file: FileWeb | undefined;
|
|
482
|
-
nostr_relays:
|
|
510
|
+
nostr_relays: Url[];
|
|
483
511
|
is_logical: boolean;
|
|
484
512
|
}
|
|
485
513
|
|
|
@@ -492,7 +520,7 @@ export interface NewIdentityPayload {
|
|
|
492
520
|
t: number;
|
|
493
521
|
name: string;
|
|
494
522
|
email: string | undefined;
|
|
495
|
-
postal_address:
|
|
523
|
+
postal_address: CreateOptionalPostalAddressWeb;
|
|
496
524
|
date_of_birth: string | undefined;
|
|
497
525
|
country_of_birth: string | undefined;
|
|
498
526
|
city_of_birth: string | undefined;
|
|
@@ -504,7 +532,7 @@ export interface NewIdentityPayload {
|
|
|
504
532
|
export interface ChangeIdentityPayload {
|
|
505
533
|
name: string | undefined;
|
|
506
534
|
email: string | undefined;
|
|
507
|
-
postal_address:
|
|
535
|
+
postal_address: CreateOptionalPostalAddressWeb;
|
|
508
536
|
date_of_birth: string | undefined;
|
|
509
537
|
country_of_birth: string | undefined;
|
|
510
538
|
city_of_birth: string | undefined;
|
|
@@ -527,7 +555,7 @@ export interface IdentityWeb {
|
|
|
527
555
|
identification_number: string | undefined;
|
|
528
556
|
profile_picture_file: FileWeb | undefined;
|
|
529
557
|
identity_document_file: FileWeb | undefined;
|
|
530
|
-
nostr_relays:
|
|
558
|
+
nostr_relays: Url[];
|
|
531
559
|
}
|
|
532
560
|
|
|
533
561
|
/**
|
|
@@ -635,6 +663,13 @@ export interface CurrencyResponse {
|
|
|
635
663
|
code: string;
|
|
636
664
|
}
|
|
637
665
|
|
|
666
|
+
export interface CreateOptionalPostalAddressWeb {
|
|
667
|
+
country: string | undefined;
|
|
668
|
+
city: string | undefined;
|
|
669
|
+
zip: string | undefined;
|
|
670
|
+
address: string | undefined;
|
|
671
|
+
}
|
|
672
|
+
|
|
638
673
|
export interface OptionalPostalAddressWeb {
|
|
639
674
|
country: string | undefined;
|
|
640
675
|
city: string | undefined;
|
|
@@ -642,6 +677,13 @@ export interface OptionalPostalAddressWeb {
|
|
|
642
677
|
address: string | undefined;
|
|
643
678
|
}
|
|
644
679
|
|
|
680
|
+
export interface CreatePostalAddressWeb {
|
|
681
|
+
country: string;
|
|
682
|
+
city: string;
|
|
683
|
+
zip: string | undefined;
|
|
684
|
+
address: string;
|
|
685
|
+
}
|
|
686
|
+
|
|
645
687
|
export interface PostalAddressWeb {
|
|
646
688
|
country: string;
|
|
647
689
|
city: string;
|
|
@@ -686,7 +728,7 @@ export interface UploadFileResponse {
|
|
|
686
728
|
file_upload_id: string;
|
|
687
729
|
}
|
|
688
730
|
|
|
689
|
-
export type JsErrorType = "FieldEmpty" | "InvalidSum" | "InvalidCurrency" | "InvalidPaymentAddress" | "InvalidContentType" | "IdentityCantBeAnon" | "InvalidContactType" | "InvalidIdentityType" | "InvalidDate" | "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" | "NoFileForFileUploadId" | "NotFound" | "ExternalApi" | "Io" | "Crypto" | "Persistence" | "Blockchain" | "InvalidRelayUrl" | "Serialization" | "Init" | "NotificationNetwork" | "NotificationMessage" | "InvalidOperation" | "BillAlreadyAccepted" | "BillWasRejectedToAccept" | "BillAcceptanceExpired" | "BillWasRejectedToPay" | "BillPaymentExpired" | "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" | "SignatoryNotInContacts" | "SignatoryAlreadySignatory" | "CantRemoveLastSignatory" | "NotASignatory" | "InvalidSecp256k1Key" | "FileIsTooBig" | "FileIsEmpty" | "TooManyFiles" | "InvalidFileName" | "UnknownNodeId" | "BackupNotSupported" | "CallerMustBeSignatory" | "InvalidBase58" | "InvalidSignature" | "InvalidUrl" | "InvalidIdentityProofStatus" | "Json";
|
|
731
|
+
export type JsErrorType = "FieldEmpty" | "FieldInvalid" | "InvalidSum" | "InvalidCurrency" | "InvalidPaymentAddress" | "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" | "NoFileForFileUploadId" | "NotFound" | "ExternalApi" | "Io" | "Crypto" | "Persistence" | "Blockchain" | "InvalidRelayUrl" | "Serialization" | "Init" | "NotificationNetwork" | "NotificationMessage" | "InvalidOperation" | "BillAlreadyAccepted" | "BillWasRejectedToAccept" | "BillAcceptanceExpired" | "BillWasRejectedToPay" | "BillPaymentExpired" | "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" | "SignatoryNotInContacts" | "SignatoryAlreadySignatory" | "CantRemoveLastSignatory" | "NotASignatory" | "InvalidSecp256k1Key" | "FileIsTooBig" | "FileIsEmpty" | "TooManyFiles" | "InvalidFileName" | "UnknownNodeId" | "BackupNotSupported" | "CallerMustBeSignatory" | "InvalidBase58" | "InvalidSignature" | "InvalidUrl" | "InvalidIdentityProofStatus" | "Json";
|
|
690
732
|
|
|
691
733
|
export interface JsErrorData {
|
|
692
734
|
error: JsErrorType;
|
|
@@ -703,6 +745,7 @@ export interface Config {
|
|
|
703
745
|
nostr_only_known_contacts: boolean | undefined;
|
|
704
746
|
job_runner_initial_delay_seconds: number;
|
|
705
747
|
job_runner_check_interval_seconds: number;
|
|
748
|
+
transport_initial_subscription_delay_seconds: number | undefined;
|
|
706
749
|
default_mint_url: string;
|
|
707
750
|
default_mint_node_id: string;
|
|
708
751
|
num_confirmations_for_payment: number;
|
|
@@ -804,6 +847,7 @@ export class Bill {
|
|
|
804
847
|
sync_bill_chain(payload: ResyncBillPayload): Promise<void>;
|
|
805
848
|
dev_mode_get_full_bill_chain(bill_id: string): Promise<string[]>;
|
|
806
849
|
share_bill_with_court(payload: ShareBillWithCourtPayload): Promise<void>;
|
|
850
|
+
bill_history(bill_id: string): Promise<BillHistoryResponse>;
|
|
807
851
|
}
|
|
808
852
|
export class Company {
|
|
809
853
|
private constructor();
|
|
@@ -822,6 +866,10 @@ export class Company {
|
|
|
822
866
|
remove_signatory(payload: RemoveSignatoryPayload): Promise<void>;
|
|
823
867
|
share_contact_details(payload: ShareCompanyContactTo): Promise<void>;
|
|
824
868
|
dev_mode_get_full_company_chain(company_id: string): Promise<string[]>;
|
|
869
|
+
/**
|
|
870
|
+
* Given a node id, resync the company chain via block transport
|
|
871
|
+
*/
|
|
872
|
+
sync_company_chain(payload: ResyncCompanyPayload): Promise<void>;
|
|
825
873
|
}
|
|
826
874
|
export class Contact {
|
|
827
875
|
private constructor();
|
|
@@ -868,6 +916,10 @@ export class Identity {
|
|
|
868
916
|
seed_recover(payload: SeedPhrase): Promise<void>;
|
|
869
917
|
share_contact_details(payload: ShareContactTo): Promise<void>;
|
|
870
918
|
dev_mode_get_full_identity_chain(): Promise<string[]>;
|
|
919
|
+
/**
|
|
920
|
+
* Resync the identity chain via block transport
|
|
921
|
+
*/
|
|
922
|
+
sync_identity_chain(): Promise<void>;
|
|
871
923
|
}
|
|
872
924
|
export class IdentityProof {
|
|
873
925
|
private constructor();
|
|
@@ -959,6 +1011,7 @@ export interface InitOutput {
|
|
|
959
1011
|
readonly bill_sync_bill_chain: (a: number, b: any) => any;
|
|
960
1012
|
readonly bill_dev_mode_get_full_bill_chain: (a: number, b: number, c: number) => any;
|
|
961
1013
|
readonly bill_share_bill_with_court: (a: number, b: any) => any;
|
|
1014
|
+
readonly bill_bill_history: (a: number, b: number, c: number) => any;
|
|
962
1015
|
readonly company_file: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
963
1016
|
readonly company_file_base64: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
964
1017
|
readonly company_upload: (a: number, b: any) => any;
|
|
@@ -971,6 +1024,7 @@ export interface InitOutput {
|
|
|
971
1024
|
readonly company_remove_signatory: (a: number, b: any) => any;
|
|
972
1025
|
readonly company_share_contact_details: (a: number, b: any) => any;
|
|
973
1026
|
readonly company_dev_mode_get_full_company_chain: (a: number, b: number, c: number) => any;
|
|
1027
|
+
readonly company_sync_company_chain: (a: number, b: any) => any;
|
|
974
1028
|
readonly contact_file: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
975
1029
|
readonly contact_file_base64: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
976
1030
|
readonly contact_upload: (a: number, b: any) => any;
|
|
@@ -999,6 +1053,7 @@ export interface InitOutput {
|
|
|
999
1053
|
readonly identity_seed_recover: (a: number, b: any) => any;
|
|
1000
1054
|
readonly identity_share_contact_details: (a: number, b: any) => any;
|
|
1001
1055
|
readonly identity_dev_mode_get_full_identity_chain: (a: number) => any;
|
|
1056
|
+
readonly identity_sync_identity_chain: (a: number) => any;
|
|
1002
1057
|
readonly identityproof_get_identity_stamp: (a: number) => any;
|
|
1003
1058
|
readonly identityproof_list: (a: number) => any;
|
|
1004
1059
|
readonly identityproof_add: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
@@ -1033,13 +1088,13 @@ export interface InitOutput {
|
|
|
1033
1088
|
readonly api_notification: () => number;
|
|
1034
1089
|
readonly api_contact: () => number;
|
|
1035
1090
|
readonly api_company: () => number;
|
|
1091
|
+
readonly __wbg_identity_free: (a: number, b: number) => void;
|
|
1092
|
+
readonly __wbg_identityproof_free: (a: number, b: number) => void;
|
|
1036
1093
|
readonly __wbg_notification_free: (a: number, b: number) => void;
|
|
1037
1094
|
readonly __wbg_general_free: (a: number, b: number) => void;
|
|
1038
1095
|
readonly __wbg_contact_free: (a: number, b: number) => void;
|
|
1039
|
-
readonly __wbg_bill_free: (a: number, b: number) => void;
|
|
1040
|
-
readonly __wbg_identity_free: (a: number, b: number) => void;
|
|
1041
|
-
readonly __wbg_identityproof_free: (a: number, b: number) => void;
|
|
1042
1096
|
readonly __wbg_company_free: (a: number, b: number) => void;
|
|
1097
|
+
readonly __wbg_bill_free: (a: number, b: number) => void;
|
|
1043
1098
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
1044
1099
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
1045
1100
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
@@ -1048,11 +1103,11 @@ export interface InitOutput {
|
|
|
1048
1103
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
1049
1104
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
1050
1105
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
1051
|
-
readonly
|
|
1052
|
-
readonly
|
|
1053
|
-
readonly
|
|
1054
|
-
readonly
|
|
1055
|
-
readonly
|
|
1106
|
+
readonly wasm_bindgen__convert__closures_____invoke__h73608bf8a2f16823: (a: number, b: number) => void;
|
|
1107
|
+
readonly closure359_externref_shim: (a: number, b: number, c: any) => void;
|
|
1108
|
+
readonly closure891_externref_shim_multivalue_shim: (a: number, b: number, c: any) => [number, number];
|
|
1109
|
+
readonly wasm_bindgen__convert__closures_____invoke__h091d06eb50e30703: (a: number, b: number) => void;
|
|
1110
|
+
readonly closure673_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
1056
1111
|
readonly __wbindgen_start: () => void;
|
|
1057
1112
|
}
|
|
1058
1113
|
|
package/index.js
CHANGED
|
@@ -262,27 +262,27 @@ export function task_worker_entry_point(ptr) {
|
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
|
|
265
|
-
function
|
|
266
|
-
wasm.
|
|
265
|
+
function __wbg_adapter_10(arg0, arg1) {
|
|
266
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h73608bf8a2f16823(arg0, arg1);
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
-
function
|
|
270
|
-
wasm.
|
|
269
|
+
function __wbg_adapter_13(arg0, arg1, arg2) {
|
|
270
|
+
wasm.closure359_externref_shim(arg0, arg1, arg2);
|
|
271
271
|
}
|
|
272
272
|
|
|
273
|
-
function
|
|
274
|
-
wasm.
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
function __wbg_adapter_31(arg0, arg1, arg2) {
|
|
278
|
-
const ret = wasm.closure875_externref_shim_multivalue_shim(arg0, arg1, arg2);
|
|
273
|
+
function __wbg_adapter_16(arg0, arg1, arg2) {
|
|
274
|
+
const ret = wasm.closure891_externref_shim_multivalue_shim(arg0, arg1, arg2);
|
|
279
275
|
if (ret[1]) {
|
|
280
276
|
throw takeFromExternrefTable0(ret[0]);
|
|
281
277
|
}
|
|
282
278
|
}
|
|
283
279
|
|
|
284
|
-
function
|
|
285
|
-
wasm.
|
|
280
|
+
function __wbg_adapter_23(arg0, arg1) {
|
|
281
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h091d06eb50e30703(arg0, arg1);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
function __wbg_adapter_231(arg0, arg1, arg2, arg3) {
|
|
285
|
+
wasm.closure673_externref_shim(arg0, arg1, arg2, arg3);
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
/**
|
|
@@ -768,6 +768,16 @@ export class Bill {
|
|
|
768
768
|
const ret = wasm.bill_share_bill_with_court(this.__wbg_ptr, payload);
|
|
769
769
|
return ret;
|
|
770
770
|
}
|
|
771
|
+
/**
|
|
772
|
+
* @param {string} bill_id
|
|
773
|
+
* @returns {BillHistoryResponse}
|
|
774
|
+
*/
|
|
775
|
+
bill_history(bill_id) {
|
|
776
|
+
const ptr0 = passStringToWasm0(bill_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
777
|
+
const len0 = WASM_VECTOR_LEN;
|
|
778
|
+
const ret = wasm.bill_bill_history(this.__wbg_ptr, ptr0, len0);
|
|
779
|
+
return ret;
|
|
780
|
+
}
|
|
771
781
|
}
|
|
772
782
|
if (Symbol.dispose) Bill.prototype[Symbol.dispose] = Bill.prototype.free;
|
|
773
783
|
|
|
@@ -914,6 +924,15 @@ export class Company {
|
|
|
914
924
|
const ret = wasm.company_dev_mode_get_full_company_chain(this.__wbg_ptr, ptr0, len0);
|
|
915
925
|
return ret;
|
|
916
926
|
}
|
|
927
|
+
/**
|
|
928
|
+
* Given a node id, resync the company chain via block transport
|
|
929
|
+
* @param {ResyncCompanyPayload} payload
|
|
930
|
+
* @returns {Promise<void>}
|
|
931
|
+
*/
|
|
932
|
+
sync_company_chain(payload) {
|
|
933
|
+
const ret = wasm.company_sync_company_chain(this.__wbg_ptr, payload);
|
|
934
|
+
return ret;
|
|
935
|
+
}
|
|
917
936
|
}
|
|
918
937
|
if (Symbol.dispose) Company.prototype[Symbol.dispose] = Company.prototype.free;
|
|
919
938
|
|
|
@@ -1258,6 +1277,14 @@ export class Identity {
|
|
|
1258
1277
|
const ret = wasm.identity_dev_mode_get_full_identity_chain(this.__wbg_ptr);
|
|
1259
1278
|
return ret;
|
|
1260
1279
|
}
|
|
1280
|
+
/**
|
|
1281
|
+
* Resync the identity chain via block transport
|
|
1282
|
+
* @returns {Promise<void>}
|
|
1283
|
+
*/
|
|
1284
|
+
sync_identity_chain() {
|
|
1285
|
+
const ret = wasm.identity_sync_identity_chain(this.__wbg_ptr);
|
|
1286
|
+
return ret;
|
|
1287
|
+
}
|
|
1261
1288
|
}
|
|
1262
1289
|
if (Symbol.dispose) Identity.prototype[Symbol.dispose] = Identity.prototype.free;
|
|
1263
1290
|
|
|
@@ -1536,7 +1563,7 @@ function __wbg_get_imports() {
|
|
|
1536
1563
|
const ret = clearTimeout(arg0);
|
|
1537
1564
|
return ret;
|
|
1538
1565
|
};
|
|
1539
|
-
imports.wbg.
|
|
1566
|
+
imports.wbg.__wbg_clearTimeout_7a42b49784aea641 = function(arg0) {
|
|
1540
1567
|
const ret = clearTimeout(arg0);
|
|
1541
1568
|
return ret;
|
|
1542
1569
|
};
|
|
@@ -1616,15 +1643,18 @@ function __wbg_get_imports() {
|
|
|
1616
1643
|
imports.wbg.__wbg_error_e98c298703cffa97 = function(arg0, arg1) {
|
|
1617
1644
|
console.error(getStringFromWasm0(arg0, arg1));
|
|
1618
1645
|
};
|
|
1619
|
-
imports.wbg.
|
|
1620
|
-
const ret =
|
|
1646
|
+
imports.wbg.__wbg_fetch_74a3e84ebd2c9a0e = function(arg0) {
|
|
1647
|
+
const ret = fetch(arg0);
|
|
1621
1648
|
return ret;
|
|
1622
1649
|
};
|
|
1623
|
-
imports.wbg.
|
|
1624
|
-
const ret = fetch(
|
|
1650
|
+
imports.wbg.__wbg_fetch_87aed7f306ec6d63 = function(arg0, arg1) {
|
|
1651
|
+
const ret = arg0.fetch(arg1);
|
|
1625
1652
|
return ret;
|
|
1626
1653
|
};
|
|
1627
|
-
imports.wbg.
|
|
1654
|
+
imports.wbg.__wbg_getRandomValues_1c61fac11405ffdc = function() { return handleError(function (arg0, arg1) {
|
|
1655
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1656
|
+
}, arguments) };
|
|
1657
|
+
imports.wbg.__wbg_getRandomValues_38a1ff1ea09f6cc7 = function() { return handleError(function (arg0, arg1) {
|
|
1628
1658
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1629
1659
|
}, arguments) };
|
|
1630
1660
|
imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
@@ -1790,7 +1820,7 @@ function __wbg_get_imports() {
|
|
|
1790
1820
|
const a = state0.a;
|
|
1791
1821
|
state0.a = 0;
|
|
1792
1822
|
try {
|
|
1793
|
-
return
|
|
1823
|
+
return __wbg_adapter_231(a, state0.b, arg0, arg1);
|
|
1794
1824
|
} finally {
|
|
1795
1825
|
state0.a = a;
|
|
1796
1826
|
}
|
|
@@ -1869,7 +1899,7 @@ function __wbg_get_imports() {
|
|
|
1869
1899
|
const ret = arg0.now();
|
|
1870
1900
|
return ret;
|
|
1871
1901
|
};
|
|
1872
|
-
imports.wbg.
|
|
1902
|
+
imports.wbg.__wbg_now_98430d19d580dbab = function() { return handleError(function () {
|
|
1873
1903
|
const ret = Date.now();
|
|
1874
1904
|
return ret;
|
|
1875
1905
|
}, arguments) };
|
|
@@ -1970,7 +2000,7 @@ function __wbg_get_imports() {
|
|
|
1970
2000
|
const ret = globalThis.setInterval(arg0, arg1);
|
|
1971
2001
|
return ret;
|
|
1972
2002
|
};
|
|
1973
|
-
imports.wbg.
|
|
2003
|
+
imports.wbg.__wbg_setTimeout_7bb3429662ab1e70 = function(arg0, arg1) {
|
|
1974
2004
|
const ret = setTimeout(arg0, arg1);
|
|
1975
2005
|
return ret;
|
|
1976
2006
|
};
|
|
@@ -2249,12 +2279,12 @@ function __wbg_get_imports() {
|
|
|
2249
2279
|
};
|
|
2250
2280
|
imports.wbg.__wbindgen_cast_2b95a68344a644f3 = function(arg0, arg1) {
|
|
2251
2281
|
// Cast intrinsic for `Closure(Closure { dtor_idx: 273, function: Function { arguments: [], shim_idx: 274, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
|
|
2252
|
-
const ret = makeClosure(arg0, arg1, 273,
|
|
2282
|
+
const ret = makeClosure(arg0, arg1, 273, __wbg_adapter_10);
|
|
2253
2283
|
return ret;
|
|
2254
2284
|
};
|
|
2255
|
-
imports.wbg.
|
|
2256
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
2257
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2285
|
+
imports.wbg.__wbindgen_cast_40244a9e2f654bfd = function(arg0, arg1) {
|
|
2286
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 482, function: Function { arguments: [], shim_idx: 483, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2287
|
+
const ret = makeMutClosure(arg0, arg1, 482, __wbg_adapter_23);
|
|
2258
2288
|
return ret;
|
|
2259
2289
|
};
|
|
2260
2290
|
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
@@ -2262,14 +2292,9 @@ function __wbg_get_imports() {
|
|
|
2262
2292
|
const ret = BigInt.asUintN(64, arg0);
|
|
2263
2293
|
return ret;
|
|
2264
2294
|
};
|
|
2265
|
-
imports.wbg.
|
|
2266
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
2267
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2268
|
-
return ret;
|
|
2269
|
-
};
|
|
2270
|
-
imports.wbg.__wbindgen_cast_85f47878ea48a1cc = function(arg0, arg1) {
|
|
2271
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 726, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 360, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2272
|
-
const ret = makeMutClosure(arg0, arg1, 726, __wbg_adapter_6);
|
|
2295
|
+
imports.wbg.__wbindgen_cast_95ac9040f2c9c09a = function(arg0, arg1) {
|
|
2296
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 482, function: Function { arguments: [Externref], shim_idx: 359, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2297
|
+
const ret = makeMutClosure(arg0, arg1, 482, __wbg_adapter_13);
|
|
2273
2298
|
return ret;
|
|
2274
2299
|
};
|
|
2275
2300
|
imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
@@ -2277,19 +2302,19 @@ function __wbg_get_imports() {
|
|
|
2277
2302
|
const ret = arg0;
|
|
2278
2303
|
return ret;
|
|
2279
2304
|
};
|
|
2280
|
-
imports.wbg.
|
|
2281
|
-
// Cast intrinsic for `
|
|
2282
|
-
const ret =
|
|
2305
|
+
imports.wbg.__wbindgen_cast_9c532814b5a699e1 = function(arg0, arg1) {
|
|
2306
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 748, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 359, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2307
|
+
const ret = makeMutClosure(arg0, arg1, 748, __wbg_adapter_13);
|
|
2283
2308
|
return ret;
|
|
2284
2309
|
};
|
|
2285
|
-
imports.wbg.
|
|
2286
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
2287
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2310
|
+
imports.wbg.__wbindgen_cast_ca64ae4bc910e254 = function(arg0, arg1) {
|
|
2311
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 887, function: Function { arguments: [], shim_idx: 483, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2312
|
+
const ret = makeMutClosure(arg0, arg1, 887, __wbg_adapter_23);
|
|
2288
2313
|
return ret;
|
|
2289
2314
|
};
|
|
2290
|
-
imports.wbg.
|
|
2291
|
-
// Cast intrinsic for `
|
|
2292
|
-
const ret =
|
|
2315
|
+
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
2316
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
2317
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
2293
2318
|
return ret;
|
|
2294
2319
|
};
|
|
2295
2320
|
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
@@ -2297,9 +2322,14 @@ function __wbg_get_imports() {
|
|
|
2297
2322
|
const ret = arg0;
|
|
2298
2323
|
return ret;
|
|
2299
2324
|
};
|
|
2300
|
-
imports.wbg.
|
|
2301
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
2302
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
2325
|
+
imports.wbg.__wbindgen_cast_e29869381abd34df = function(arg0, arg1) {
|
|
2326
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 890, function: Function { arguments: [NamedExternref("Event")], shim_idx: 891, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
2327
|
+
const ret = makeMutClosure(arg0, arg1, 890, __wbg_adapter_16);
|
|
2328
|
+
return ret;
|
|
2329
|
+
};
|
|
2330
|
+
imports.wbg.__wbindgen_cast_ef1296fe0ce0c82f = function(arg0, arg1) {
|
|
2331
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 273, function: Function { arguments: [NamedExternref("MessageEvent")], shim_idx: 359, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
2332
|
+
const ret = makeMutClosure(arg0, arg1, 273, __wbg_adapter_13);
|
|
2303
2333
|
return ret;
|
|
2304
2334
|
};
|
|
2305
2335
|
imports.wbg.__wbindgen_init_externref_table = function() {
|
package/index_bg.wasm
CHANGED
|
Binary file
|