@bitcredit/bcr-ebill-wasm 0.5.3 → 0.5.4
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 +45 -7
- package/index.js +3 -3
- package/index_bg.wasm +0 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -59,6 +59,22 @@ export interface BillAnonParticipantWeb {
|
|
|
59
59
|
|
|
60
60
|
export interface BillCallerActionsWeb {
|
|
61
61
|
bill_actions: BillCallerBillActionWeb[];
|
|
62
|
+
payment_actions: BillCallerPaymentActionWeb[];
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export interface BillCallerPaymentStateWeb {
|
|
66
|
+
time_of_request: number;
|
|
67
|
+
currency: string;
|
|
68
|
+
sum: string;
|
|
69
|
+
link_to_pay: string;
|
|
70
|
+
address_to_pay: string;
|
|
71
|
+
mempool_link_for_address_to_pay: string;
|
|
72
|
+
status: PaymentStatusWeb;
|
|
73
|
+
payment_deadline: number;
|
|
74
|
+
tx_id: string | undefined;
|
|
75
|
+
in_mempool: boolean;
|
|
76
|
+
confirmations: number;
|
|
77
|
+
private_descriptor_to_spend: string | undefined;
|
|
62
78
|
}
|
|
63
79
|
|
|
64
80
|
export interface BillCombinedBitcoinKeyWeb {
|
|
@@ -147,6 +163,12 @@ export interface BillSellStatusWeb {
|
|
|
147
163
|
buying_deadline_timestamp: number | undefined;
|
|
148
164
|
}
|
|
149
165
|
|
|
166
|
+
export interface BillStateWeb {
|
|
167
|
+
mint: BillMintStateWeb;
|
|
168
|
+
accept: BillAcceptStateWeb;
|
|
169
|
+
payment: BillPaymentStateWeb;
|
|
170
|
+
}
|
|
171
|
+
|
|
150
172
|
export interface BillStatusWeb {
|
|
151
173
|
acceptance: BillAcceptanceStatusWeb;
|
|
152
174
|
payment: BillPaymentStatusWeb;
|
|
@@ -230,6 +252,7 @@ export interface BitcreditBillWeb {
|
|
|
230
252
|
participants: BillParticipantsWeb;
|
|
231
253
|
data: BillDataWeb;
|
|
232
254
|
status: BillStatusWeb;
|
|
255
|
+
state: BillStateWeb;
|
|
233
256
|
current_waiting_state: BillCurrentWaitingStateWeb | undefined;
|
|
234
257
|
actions: BillCallerActionsWeb;
|
|
235
258
|
}
|
|
@@ -490,6 +513,11 @@ export interface LightBillIdentParticipantWithAddressWeb {
|
|
|
490
513
|
postal_address: PostalAddressWeb;
|
|
491
514
|
}
|
|
492
515
|
|
|
516
|
+
export interface LightBillSignatoryWeb {
|
|
517
|
+
name: string | undefined;
|
|
518
|
+
node_id: string;
|
|
519
|
+
}
|
|
520
|
+
|
|
493
521
|
export interface LightBillsResponse {
|
|
494
522
|
bills: LightBitcreditBillWeb[];
|
|
495
523
|
}
|
|
@@ -511,7 +539,7 @@ export interface LightBitcreditBillWeb {
|
|
|
511
539
|
|
|
512
540
|
export interface LightSignedByWeb {
|
|
513
541
|
data: LightBillParticipantWeb;
|
|
514
|
-
signatory:
|
|
542
|
+
signatory: LightBillSignatoryWeb | undefined;
|
|
515
543
|
}
|
|
516
544
|
|
|
517
545
|
export interface ListSignatoriesResponse {
|
|
@@ -649,7 +677,7 @@ export interface PastPaymentDataPaymentWeb {
|
|
|
649
677
|
address_to_pay: string;
|
|
650
678
|
private_descriptor_to_spend: string;
|
|
651
679
|
mempool_link_for_address_to_pay: string;
|
|
652
|
-
status:
|
|
680
|
+
status: PaymentStatusWeb;
|
|
653
681
|
}
|
|
654
682
|
|
|
655
683
|
export interface PastPaymentDataRecourseWeb {
|
|
@@ -662,7 +690,7 @@ export interface PastPaymentDataRecourseWeb {
|
|
|
662
690
|
address_to_pay: string;
|
|
663
691
|
private_descriptor_to_spend: string;
|
|
664
692
|
mempool_link_for_address_to_pay: string;
|
|
665
|
-
status:
|
|
693
|
+
status: PaymentStatusWeb;
|
|
666
694
|
}
|
|
667
695
|
|
|
668
696
|
export interface PastPaymentDataSellWeb {
|
|
@@ -675,7 +703,7 @@ export interface PastPaymentDataSellWeb {
|
|
|
675
703
|
address_to_pay: string;
|
|
676
704
|
private_descriptor_to_spend: string;
|
|
677
705
|
mempool_link_for_address_to_pay: string;
|
|
678
|
-
status:
|
|
706
|
+
status: PaymentStatusWeb;
|
|
679
707
|
}
|
|
680
708
|
|
|
681
709
|
export interface PastPaymentsResponse {
|
|
@@ -833,14 +861,24 @@ export interface VerifyEmailPayload {
|
|
|
833
861
|
confirmation_code: string;
|
|
834
862
|
}
|
|
835
863
|
|
|
864
|
+
export type BillAcceptStateWeb = "None" | { Requested: number } | { Accepted: number } | { Expired: number } | { Rejected: number };
|
|
865
|
+
|
|
836
866
|
export type BillCallerBillActionWeb = "RequestAcceptance" | "Accept" | "RequestToPay" | "OfferToSell" | "Sell" | "Endorse" | "RequestRecourseForAcceptance" | "RequestRecourseForPayment" | "Recourse" | "Mint" | "RejectAcceptance" | "RejectPayment" | "RejectBuying" | "RejectPaymentForRecourse";
|
|
837
867
|
|
|
868
|
+
export type BillCallerPaymentActionWeb = { Pay: BillCallerPaymentWeb } | { CheckPayment: BillCallerPaymentWeb };
|
|
869
|
+
|
|
870
|
+
export type BillCallerPaymentWeb = { Sell: { buyer: BillParticipantWeb; seller: BillParticipantWeb; state: BillCallerPaymentStateWeb } } | { Payment: { payer: BillIdentParticipantWeb; payee: BillParticipantWeb; state: BillCallerPaymentStateWeb } } | { Recourse: { recourser: BillParticipantWeb; recoursee: BillIdentParticipantWeb; state: BillCallerPaymentStateWeb } };
|
|
871
|
+
|
|
838
872
|
export type BillCurrentWaitingStateWeb = { Sell: BillWaitingForSellStateWeb } | { Payment: BillWaitingForPaymentStateWeb } | { Recourse: BillWaitingForRecourseStateWeb };
|
|
839
873
|
|
|
874
|
+
export type BillMintStateWeb = "None" | "Requested";
|
|
875
|
+
|
|
840
876
|
export type BillOpCodeWeb = "Issue" | "Accept" | "Endorse" | "RequestToAccept" | "RequestToPay" | "OfferToSell" | "Sell" | "Mint" | "RejectToAccept" | "RejectToPay" | "RejectToBuy" | "RejectToPayRecourse" | "RequestRecourse" | "Recourse";
|
|
841
877
|
|
|
842
878
|
export type BillParticipantWeb = { Anon: BillAnonParticipantWeb } | { Ident: BillIdentParticipantWeb };
|
|
843
879
|
|
|
880
|
+
export type BillPaymentStateWeb = "None" | { Requested: number } | { Paid: number } | { Expired: number } | { Rejected: number };
|
|
881
|
+
|
|
844
882
|
export type BillsFilterRoleWeb = "All" | "Payer" | "Payee" | "Contingent";
|
|
845
883
|
|
|
846
884
|
export type CompanySignatoryStatusWeb = { Invited: { ts: number; inviter: string } } | { InviteAccepted: { ts: number } } | { InviteRejected: { ts: number } } | { InviteAcceptedIdentityProven: { ts: number; confirmation: IdentityEmailConfirmationWeb } } | { Removed: { ts: number; remover: string } };
|
|
@@ -859,7 +897,7 @@ export type NotificationTypeWeb = "General" | "Company" | "Bill" | "Contact";
|
|
|
859
897
|
|
|
860
898
|
export type PastPaymentResultWeb = { Sell: PastPaymentDataSellWeb } | { Payment: PastPaymentDataPaymentWeb } | { Recourse: PastPaymentDataRecourseWeb };
|
|
861
899
|
|
|
862
|
-
export type
|
|
900
|
+
export type PaymentStatusWeb = { Requested: number } | { Paid: number } | { Rejected: number } | { Expired: number };
|
|
863
901
|
|
|
864
902
|
|
|
865
903
|
export class Api {
|
|
@@ -1189,10 +1227,10 @@ export interface InitOutput {
|
|
|
1189
1227
|
readonly general_new: () => number;
|
|
1190
1228
|
readonly identity_new: () => number;
|
|
1191
1229
|
readonly notification_new: () => number;
|
|
1192
|
-
readonly __wbg_company_free: (a: number, b: number) => void;
|
|
1193
|
-
readonly __wbg_bill_free: (a: number, b: number) => void;
|
|
1194
1230
|
readonly __wbg_notification_free: (a: number, b: number) => void;
|
|
1195
1231
|
readonly __wbg_contact_free: (a: number, b: number) => void;
|
|
1232
|
+
readonly __wbg_company_free: (a: number, b: number) => void;
|
|
1233
|
+
readonly __wbg_bill_free: (a: number, b: number) => void;
|
|
1196
1234
|
readonly __wbg_identity_free: (a: number, b: number) => void;
|
|
1197
1235
|
readonly __wbg_general_free: (a: number, b: number) => void;
|
|
1198
1236
|
readonly wasm_bindgen__closure__destroy__h09fbd19efde926e5: (a: number, b: number) => void;
|
package/index.js
CHANGED
|
@@ -1958,7 +1958,7 @@ function __wbg_get_imports() {
|
|
|
1958
1958
|
return ret;
|
|
1959
1959
|
},
|
|
1960
1960
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1961
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 56, function: Function { arguments: [Externref], shim_idx:
|
|
1961
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 56, function: Function { arguments: [Externref], shim_idx: 664, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1962
1962
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h09fbd19efde926e5, wasm_bindgen__convert__closures_____invoke__he28c7d7169170f6c);
|
|
1963
1963
|
return ret;
|
|
1964
1964
|
},
|
|
@@ -1983,12 +1983,12 @@ function __wbg_get_imports() {
|
|
|
1983
1983
|
return ret;
|
|
1984
1984
|
},
|
|
1985
1985
|
__wbindgen_cast_0000000000000006: function(arg0, arg1) {
|
|
1986
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1986
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 884, function: Function { arguments: [], shim_idx: 329, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1987
1987
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h449cff5b9e4d94fb, wasm_bindgen__convert__closures_____invoke__h18fe93cc93023748);
|
|
1988
1988
|
return ret;
|
|
1989
1989
|
},
|
|
1990
1990
|
__wbindgen_cast_0000000000000007: function(arg0, arg1) {
|
|
1991
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1991
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 889, function: Function { arguments: [NamedExternref("Event")], shim_idx: 890, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1992
1992
|
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__hf7912581150b7665, wasm_bindgen__convert__closures_____invoke__h5a11856e308f2f3b);
|
|
1993
1993
|
return ret;
|
|
1994
1994
|
},
|
package/index_bg.wasm
CHANGED
|
Binary file
|