@bitcredit/bcr-ebill-wasm 0.4.8 → 0.4.10
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 +139 -26
- package/index.js +341 -256
- 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
|
}
|
|
@@ -186,7 +203,7 @@ export interface PastPaymentDataPaymentWeb {
|
|
|
186
203
|
|
|
187
204
|
export interface PastPaymentDataRecourseWeb {
|
|
188
205
|
time_of_request: number;
|
|
189
|
-
recourser:
|
|
206
|
+
recourser: BillParticipantWeb;
|
|
190
207
|
recoursee: BillIdentParticipantWeb;
|
|
191
208
|
currency: string;
|
|
192
209
|
sum: string;
|
|
@@ -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 {
|
|
@@ -232,7 +250,7 @@ export interface BillWaitingForPaymentStateWeb {
|
|
|
232
250
|
}
|
|
233
251
|
|
|
234
252
|
export interface BillWaitingForRecourseStateWeb {
|
|
235
|
-
recourser:
|
|
253
|
+
recourser: BillParticipantWeb;
|
|
236
254
|
recoursee: BillIdentParticipantWeb;
|
|
237
255
|
payment_data: BillWaitingStatePaymentDataWeb;
|
|
238
256
|
}
|
|
@@ -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 {
|
|
@@ -360,6 +381,13 @@ export interface LightBillIdentParticipantWeb {
|
|
|
360
381
|
node_id: string;
|
|
361
382
|
}
|
|
362
383
|
|
|
384
|
+
export interface ShareBillWithCourtPayload {
|
|
385
|
+
bill_id: string;
|
|
386
|
+
court_node_id: string;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
export type BillOpCodeWeb = "Issue" | "Accept" | "Endorse" | "RequestToAccept" | "RequestToPay" | "OfferToSell" | "Sell" | "Mint" | "RejectToAccept" | "RejectToPay" | "RejectToBuy" | "RejectToPayRecourse" | "RequestRecourse" | "Recourse";
|
|
390
|
+
|
|
363
391
|
export interface CompaniesResponse {
|
|
364
392
|
companies: CompanyWeb[];
|
|
365
393
|
}
|
|
@@ -382,7 +410,7 @@ export interface CreateCompanyPayload {
|
|
|
382
410
|
name: string;
|
|
383
411
|
country_of_registration: string | undefined;
|
|
384
412
|
city_of_registration: string | undefined;
|
|
385
|
-
postal_address:
|
|
413
|
+
postal_address: CreatePostalAddressWeb;
|
|
386
414
|
email: string;
|
|
387
415
|
registration_number: string | undefined;
|
|
388
416
|
registration_date: string | undefined;
|
|
@@ -394,7 +422,7 @@ export interface EditCompanyPayload {
|
|
|
394
422
|
id: string;
|
|
395
423
|
name: string | undefined;
|
|
396
424
|
email: string | undefined;
|
|
397
|
-
postal_address:
|
|
425
|
+
postal_address: CreateOptionalPostalAddressWeb;
|
|
398
426
|
country_of_registration: string | undefined;
|
|
399
427
|
city_of_registration: string | undefined;
|
|
400
428
|
registration_number: string | undefined;
|
|
@@ -421,8 +449,13 @@ export interface SignatoryResponse {
|
|
|
421
449
|
t: ContactTypeWeb;
|
|
422
450
|
node_id: string;
|
|
423
451
|
name: string;
|
|
424
|
-
postal_address: PostalAddressWeb;
|
|
452
|
+
postal_address: PostalAddressWeb | undefined;
|
|
425
453
|
avatar_file: FileWeb | undefined;
|
|
454
|
+
is_logical: boolean;
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
export interface ResyncCompanyPayload {
|
|
458
|
+
node_id: string;
|
|
426
459
|
}
|
|
427
460
|
|
|
428
461
|
export interface ContactsResponse {
|
|
@@ -434,7 +467,7 @@ export interface NewContactPayload {
|
|
|
434
467
|
node_id: string;
|
|
435
468
|
name: string;
|
|
436
469
|
email: string | undefined;
|
|
437
|
-
postal_address:
|
|
470
|
+
postal_address: CreatePostalAddressWeb | undefined;
|
|
438
471
|
date_of_birth_or_registration: string | undefined;
|
|
439
472
|
country_of_birth_or_registration: string | undefined;
|
|
440
473
|
city_of_birth_or_registration: string | undefined;
|
|
@@ -447,7 +480,7 @@ export interface EditContactPayload {
|
|
|
447
480
|
node_id: string;
|
|
448
481
|
name: string | undefined;
|
|
449
482
|
email: string | undefined;
|
|
450
|
-
postal_address:
|
|
483
|
+
postal_address: CreateOptionalPostalAddressWeb;
|
|
451
484
|
date_of_birth_or_registration: string | undefined;
|
|
452
485
|
country_of_birth_or_registration: string | undefined;
|
|
453
486
|
city_of_birth_or_registration: string | undefined;
|
|
@@ -456,19 +489,26 @@ export interface EditContactPayload {
|
|
|
456
489
|
proof_document_file_upload_id: string | undefined;
|
|
457
490
|
}
|
|
458
491
|
|
|
492
|
+
export interface SearchContactsPayload {
|
|
493
|
+
search_term: string;
|
|
494
|
+
include_logical: boolean | undefined;
|
|
495
|
+
include_contact: boolean | undefined;
|
|
496
|
+
}
|
|
497
|
+
|
|
459
498
|
export interface ContactWeb {
|
|
460
499
|
t: ContactTypeWeb;
|
|
461
500
|
node_id: string;
|
|
462
501
|
name: string;
|
|
463
502
|
email: string | undefined;
|
|
464
503
|
postal_address: PostalAddressWeb | undefined;
|
|
465
|
-
date_of_birth_or_registration: string
|
|
504
|
+
date_of_birth_or_registration: string;
|
|
466
505
|
country_of_birth_or_registration: string | undefined;
|
|
467
506
|
city_of_birth_or_registration: string | undefined;
|
|
468
507
|
identification_number: string | undefined;
|
|
469
508
|
avatar_file: FileWeb | undefined;
|
|
470
509
|
proof_document_file: FileWeb | undefined;
|
|
471
|
-
nostr_relays:
|
|
510
|
+
nostr_relays: Url[];
|
|
511
|
+
is_logical: boolean;
|
|
472
512
|
}
|
|
473
513
|
|
|
474
514
|
export interface SwitchIdentity {
|
|
@@ -480,7 +520,7 @@ export interface NewIdentityPayload {
|
|
|
480
520
|
t: number;
|
|
481
521
|
name: string;
|
|
482
522
|
email: string | undefined;
|
|
483
|
-
postal_address:
|
|
523
|
+
postal_address: CreateOptionalPostalAddressWeb;
|
|
484
524
|
date_of_birth: string | undefined;
|
|
485
525
|
country_of_birth: string | undefined;
|
|
486
526
|
city_of_birth: string | undefined;
|
|
@@ -492,7 +532,7 @@ export interface NewIdentityPayload {
|
|
|
492
532
|
export interface ChangeIdentityPayload {
|
|
493
533
|
name: string | undefined;
|
|
494
534
|
email: string | undefined;
|
|
495
|
-
postal_address:
|
|
535
|
+
postal_address: CreateOptionalPostalAddressWeb;
|
|
496
536
|
date_of_birth: string | undefined;
|
|
497
537
|
country_of_birth: string | undefined;
|
|
498
538
|
city_of_birth: string | undefined;
|
|
@@ -515,13 +555,37 @@ export interface IdentityWeb {
|
|
|
515
555
|
identification_number: string | undefined;
|
|
516
556
|
profile_picture_file: FileWeb | undefined;
|
|
517
557
|
identity_document_file: FileWeb | undefined;
|
|
518
|
-
nostr_relays:
|
|
558
|
+
nostr_relays: Url[];
|
|
519
559
|
}
|
|
520
560
|
|
|
561
|
+
/**
|
|
562
|
+
* Response for a private key seeed backup
|
|
563
|
+
*/
|
|
521
564
|
export interface SeedPhrase {
|
|
565
|
+
/**
|
|
566
|
+
* The seed phrase of the current private key
|
|
567
|
+
*/
|
|
522
568
|
seed_phrase: string;
|
|
523
569
|
}
|
|
524
570
|
|
|
571
|
+
export interface ShareContactTo {
|
|
572
|
+
/**
|
|
573
|
+
* The node id of the identity to share the contact details to
|
|
574
|
+
*/
|
|
575
|
+
recipient: string;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
export interface ShareCompanyContactTo {
|
|
579
|
+
/**
|
|
580
|
+
* The node id of the identity to share the contact details to
|
|
581
|
+
*/
|
|
582
|
+
recipient: string;
|
|
583
|
+
/**
|
|
584
|
+
* The node id of the company to share the contact details for
|
|
585
|
+
*/
|
|
586
|
+
company_id: string;
|
|
587
|
+
}
|
|
588
|
+
|
|
525
589
|
export interface IdentityProofWeb {
|
|
526
590
|
id: string;
|
|
527
591
|
node_id: string;
|
|
@@ -530,6 +594,7 @@ export interface IdentityProofWeb {
|
|
|
530
594
|
timestamp: number;
|
|
531
595
|
status: IdentityProofStatusWeb;
|
|
532
596
|
status_last_checked_timestamp: number;
|
|
597
|
+
block_id: number;
|
|
533
598
|
}
|
|
534
599
|
|
|
535
600
|
export type IdentityProofStatusWeb = "Success" | "NotFound" | "FailureConnect" | "FailureClient" | "FailureServer";
|
|
@@ -598,6 +663,13 @@ export interface CurrencyResponse {
|
|
|
598
663
|
code: string;
|
|
599
664
|
}
|
|
600
665
|
|
|
666
|
+
export interface CreateOptionalPostalAddressWeb {
|
|
667
|
+
country: string | undefined;
|
|
668
|
+
city: string | undefined;
|
|
669
|
+
zip: string | undefined;
|
|
670
|
+
address: string | undefined;
|
|
671
|
+
}
|
|
672
|
+
|
|
601
673
|
export interface OptionalPostalAddressWeb {
|
|
602
674
|
country: string | undefined;
|
|
603
675
|
city: string | undefined;
|
|
@@ -605,6 +677,13 @@ export interface OptionalPostalAddressWeb {
|
|
|
605
677
|
address: string | undefined;
|
|
606
678
|
}
|
|
607
679
|
|
|
680
|
+
export interface CreatePostalAddressWeb {
|
|
681
|
+
country: string;
|
|
682
|
+
city: string;
|
|
683
|
+
zip: string | undefined;
|
|
684
|
+
address: string;
|
|
685
|
+
}
|
|
686
|
+
|
|
608
687
|
export interface PostalAddressWeb {
|
|
609
688
|
country: string;
|
|
610
689
|
city: string;
|
|
@@ -649,7 +728,7 @@ export interface UploadFileResponse {
|
|
|
649
728
|
file_upload_id: string;
|
|
650
729
|
}
|
|
651
730
|
|
|
652
|
-
export type JsErrorType = "FieldEmpty" | "InvalidSum" | "InvalidCurrency" | "InvalidPaymentAddress" | "InvalidContentType" | "IdentityCantBeAnon" | "
|
|
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";
|
|
653
732
|
|
|
654
733
|
export interface JsErrorData {
|
|
655
734
|
error: JsErrorType;
|
|
@@ -666,10 +745,12 @@ export interface Config {
|
|
|
666
745
|
nostr_only_known_contacts: boolean | undefined;
|
|
667
746
|
job_runner_initial_delay_seconds: number;
|
|
668
747
|
job_runner_check_interval_seconds: number;
|
|
748
|
+
transport_initial_subscription_delay_seconds: number | undefined;
|
|
669
749
|
default_mint_url: string;
|
|
670
750
|
default_mint_node_id: string;
|
|
671
751
|
num_confirmations_for_payment: number;
|
|
672
752
|
dev_mode: boolean;
|
|
753
|
+
default_court_url: string;
|
|
673
754
|
}
|
|
674
755
|
|
|
675
756
|
export interface MintRequestStateWeb {
|
|
@@ -704,6 +785,7 @@ export interface MintRequestWeb {
|
|
|
704
785
|
export class Api {
|
|
705
786
|
private constructor();
|
|
706
787
|
free(): void;
|
|
788
|
+
[Symbol.dispose](): void;
|
|
707
789
|
static general(): General;
|
|
708
790
|
static contact(): Contact;
|
|
709
791
|
static identity(): Identity;
|
|
@@ -715,6 +797,7 @@ export class Api {
|
|
|
715
797
|
export class Bill {
|
|
716
798
|
private constructor();
|
|
717
799
|
free(): void;
|
|
800
|
+
[Symbol.dispose](): void;
|
|
718
801
|
static new(): Bill;
|
|
719
802
|
endorsements(id: string): Promise<EndorsementsResponse>;
|
|
720
803
|
past_payments(id: string): Promise<PastPaymentsResponse>;
|
|
@@ -763,10 +846,13 @@ export class Bill {
|
|
|
763
846
|
*/
|
|
764
847
|
sync_bill_chain(payload: ResyncBillPayload): Promise<void>;
|
|
765
848
|
dev_mode_get_full_bill_chain(bill_id: string): Promise<string[]>;
|
|
849
|
+
share_bill_with_court(payload: ShareBillWithCourtPayload): Promise<void>;
|
|
850
|
+
bill_history(bill_id: string): Promise<BillHistoryResponse>;
|
|
766
851
|
}
|
|
767
852
|
export class Company {
|
|
768
853
|
private constructor();
|
|
769
854
|
free(): void;
|
|
855
|
+
[Symbol.dispose](): void;
|
|
770
856
|
static new(): Company;
|
|
771
857
|
file(id: string, file_name: string): Promise<BinaryFileResponse>;
|
|
772
858
|
file_base64(id: string, file_name: string): Promise<Base64FileResponse>;
|
|
@@ -778,15 +864,23 @@ export class Company {
|
|
|
778
864
|
edit(payload: EditCompanyPayload): Promise<void>;
|
|
779
865
|
add_signatory(payload: AddSignatoryPayload): Promise<void>;
|
|
780
866
|
remove_signatory(payload: RemoveSignatoryPayload): Promise<void>;
|
|
867
|
+
share_contact_details(payload: ShareCompanyContactTo): Promise<void>;
|
|
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>;
|
|
781
873
|
}
|
|
782
874
|
export class Contact {
|
|
783
875
|
private constructor();
|
|
784
876
|
free(): void;
|
|
877
|
+
[Symbol.dispose](): void;
|
|
785
878
|
static new(): Contact;
|
|
786
879
|
file(node_id: string, file_name: string): Promise<BinaryFileResponse>;
|
|
787
880
|
file_base64(node_id: string, file_name: string): Promise<Base64FileResponse>;
|
|
788
881
|
upload(payload: UploadFile): Promise<UploadFileResponse>;
|
|
789
882
|
list(): Promise<ContactsResponse>;
|
|
883
|
+
search(payload: SearchContactsPayload): Promise<ContactsResponse>;
|
|
790
884
|
detail(node_id: string): Promise<ContactWeb>;
|
|
791
885
|
remove(node_id: string): Promise<void>;
|
|
792
886
|
deanonymize(payload: NewContactPayload): Promise<ContactWeb>;
|
|
@@ -796,6 +890,7 @@ export class Contact {
|
|
|
796
890
|
export class General {
|
|
797
891
|
private constructor();
|
|
798
892
|
free(): void;
|
|
893
|
+
[Symbol.dispose](): void;
|
|
799
894
|
static new(): General;
|
|
800
895
|
status(): Promise<StatusResponse>;
|
|
801
896
|
currencies(): Promise<CurrenciesResponse>;
|
|
@@ -806,6 +901,7 @@ export class General {
|
|
|
806
901
|
export class Identity {
|
|
807
902
|
private constructor();
|
|
808
903
|
free(): void;
|
|
904
|
+
[Symbol.dispose](): void;
|
|
809
905
|
static new(): Identity;
|
|
810
906
|
file(file_name: string): Promise<BinaryFileResponse>;
|
|
811
907
|
file_base64(file_name: string): Promise<Base64FileResponse>;
|
|
@@ -818,10 +914,17 @@ export class Identity {
|
|
|
818
914
|
switch(switch_identity_payload: SwitchIdentity): Promise<void>;
|
|
819
915
|
seed_backup(): Promise<SeedPhrase>;
|
|
820
916
|
seed_recover(payload: SeedPhrase): Promise<void>;
|
|
917
|
+
share_contact_details(payload: ShareContactTo): Promise<void>;
|
|
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>;
|
|
821
923
|
}
|
|
822
924
|
export class IdentityProof {
|
|
823
925
|
private constructor();
|
|
824
926
|
free(): void;
|
|
927
|
+
[Symbol.dispose](): void;
|
|
825
928
|
static new(): IdentityProof;
|
|
826
929
|
/**
|
|
827
930
|
* Get identity stamp to post on social media for the currently selected identity
|
|
@@ -848,6 +951,7 @@ export class IdentityProof {
|
|
|
848
951
|
export class Notification {
|
|
849
952
|
private constructor();
|
|
850
953
|
free(): void;
|
|
954
|
+
[Symbol.dispose](): void;
|
|
851
955
|
static new(): Notification;
|
|
852
956
|
active_notifications_for_node_ids(node_ids: string[]): Promise<NotificationStatusWeb[]>;
|
|
853
957
|
subscribe(callback: Function): Promise<void>;
|
|
@@ -906,6 +1010,8 @@ export interface InitOutput {
|
|
|
906
1010
|
readonly bill_clear_bill_cache: (a: number) => any;
|
|
907
1011
|
readonly bill_sync_bill_chain: (a: number, b: any) => any;
|
|
908
1012
|
readonly bill_dev_mode_get_full_bill_chain: (a: number, b: number, c: number) => any;
|
|
1013
|
+
readonly bill_share_bill_with_court: (a: number, b: any) => any;
|
|
1014
|
+
readonly bill_bill_history: (a: number, b: number, c: number) => any;
|
|
909
1015
|
readonly company_file: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
910
1016
|
readonly company_file_base64: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
911
1017
|
readonly company_upload: (a: number, b: any) => any;
|
|
@@ -916,10 +1022,14 @@ export interface InitOutput {
|
|
|
916
1022
|
readonly company_edit: (a: number, b: any) => any;
|
|
917
1023
|
readonly company_add_signatory: (a: number, b: any) => any;
|
|
918
1024
|
readonly company_remove_signatory: (a: number, b: any) => any;
|
|
1025
|
+
readonly company_share_contact_details: (a: number, b: any) => any;
|
|
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;
|
|
919
1028
|
readonly contact_file: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
920
1029
|
readonly contact_file_base64: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
921
1030
|
readonly contact_upload: (a: number, b: any) => any;
|
|
922
1031
|
readonly contact_list: (a: number) => any;
|
|
1032
|
+
readonly contact_search: (a: number, b: any) => any;
|
|
923
1033
|
readonly contact_detail: (a: number, b: number, c: number) => any;
|
|
924
1034
|
readonly contact_remove: (a: number, b: number, c: number) => any;
|
|
925
1035
|
readonly contact_deanonymize: (a: number, b: any) => any;
|
|
@@ -941,6 +1051,9 @@ export interface InitOutput {
|
|
|
941
1051
|
readonly identity_switch: (a: number, b: any) => any;
|
|
942
1052
|
readonly identity_seed_backup: (a: number) => any;
|
|
943
1053
|
readonly identity_seed_recover: (a: number, b: any) => any;
|
|
1054
|
+
readonly identity_share_contact_details: (a: number, b: any) => any;
|
|
1055
|
+
readonly identity_dev_mode_get_full_identity_chain: (a: number) => any;
|
|
1056
|
+
readonly identity_sync_identity_chain: (a: number) => any;
|
|
944
1057
|
readonly identityproof_get_identity_stamp: (a: number) => any;
|
|
945
1058
|
readonly identityproof_list: (a: number) => any;
|
|
946
1059
|
readonly identityproof_add: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
@@ -975,13 +1088,13 @@ export interface InitOutput {
|
|
|
975
1088
|
readonly api_notification: () => number;
|
|
976
1089
|
readonly api_contact: () => number;
|
|
977
1090
|
readonly api_company: () => number;
|
|
978
|
-
readonly __wbg_bill_free: (a: number, b: number) => void;
|
|
979
|
-
readonly __wbg_contact_free: (a: number, b: number) => void;
|
|
980
|
-
readonly __wbg_general_free: (a: number, b: number) => void;
|
|
981
1091
|
readonly __wbg_identity_free: (a: number, b: number) => void;
|
|
1092
|
+
readonly __wbg_identityproof_free: (a: number, b: number) => void;
|
|
1093
|
+
readonly __wbg_bill_free: (a: number, b: number) => void;
|
|
982
1094
|
readonly __wbg_notification_free: (a: number, b: number) => void;
|
|
983
1095
|
readonly __wbg_company_free: (a: number, b: number) => void;
|
|
984
|
-
readonly
|
|
1096
|
+
readonly __wbg_general_free: (a: number, b: number) => void;
|
|
1097
|
+
readonly __wbg_contact_free: (a: number, b: number) => void;
|
|
985
1098
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
986
1099
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
987
1100
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
@@ -990,11 +1103,11 @@ export interface InitOutput {
|
|
|
990
1103
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
991
1104
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
992
1105
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
993
|
-
readonly
|
|
994
|
-
readonly
|
|
995
|
-
readonly
|
|
996
|
-
readonly
|
|
997
|
-
readonly
|
|
1106
|
+
readonly wasm_bindgen__convert__closures_____invoke__h0024fbaf88ae7e5c: (a: number, b: number) => void;
|
|
1107
|
+
readonly closure359_externref_shim: (a: number, b: number, c: any) => void;
|
|
1108
|
+
readonly closure890_externref_shim_multivalue_shim: (a: number, b: number, c: any) => [number, number];
|
|
1109
|
+
readonly wasm_bindgen__convert__closures_____invoke__h5610b5d87449537b: (a: number, b: number) => void;
|
|
1110
|
+
readonly closure677_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
998
1111
|
readonly __wbindgen_start: () => void;
|
|
999
1112
|
}
|
|
1000
1113
|
|