@bitcredit/bcr-ebill-wasm 0.5.6 → 0.5.7-hotfix-1

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 CHANGED
@@ -257,6 +257,7 @@ export interface BillsSearchFilter {
257
257
  search_term: string | undefined;
258
258
  date_range: DateRange | undefined;
259
259
  role: BillsFilterRoleWeb;
260
+ participants?: string[];
260
261
  currency: string;
261
262
  }
262
263
 
@@ -731,7 +732,7 @@ export interface PastPaymentDataPaymentWeb {
731
732
  currency: string;
732
733
  sum: string;
733
734
  address_to_pay: string;
734
- private_descriptor_to_spend: string;
735
+ private_descriptor_to_spend: string | undefined;
735
736
  status: PaymentStatusWeb;
736
737
  }
737
738
 
@@ -742,7 +743,7 @@ export interface PastPaymentDataRecourseWeb {
742
743
  currency: string;
743
744
  sum: string;
744
745
  address_to_pay: string;
745
- private_descriptor_to_spend: string;
746
+ private_descriptor_to_spend: string | undefined;
746
747
  status: PaymentStatusWeb;
747
748
  }
748
749
 
@@ -753,7 +754,7 @@ export interface PastPaymentDataSellWeb {
753
754
  currency: string;
754
755
  sum: string;
755
756
  address_to_pay: string;
756
- private_descriptor_to_spend: string;
757
+ private_descriptor_to_spend: string | undefined;
757
758
  status: PaymentStatusWeb;
758
759
  }
759
760
 
@@ -814,6 +815,13 @@ export interface RequestToMintBitcreditBillPayload {
814
815
  bill_id: string;
815
816
  }
816
817
 
818
+ export interface RequestToPayAsMintBitcreditBillPayload {
819
+ bill_id: string;
820
+ currency: string;
821
+ payment_deadline: string;
822
+ payment_address: string;
823
+ }
824
+
817
825
  export interface RequestToPayBitcreditBillPayload {
818
826
  bill_id: string;
819
827
  currency: string;
@@ -938,7 +946,7 @@ export type CompanyStatusWeb = "Invited" | "Active" | "None";
938
946
 
939
947
  export type GeneralSearchFilterItemTypeWeb = "Company" | "Bill" | "Contact";
940
948
 
941
- export type JsErrorType = "FieldEmpty" | "FieldInvalid" | "InvalidSum" | "InvalidCurrency" | "InvalidBitcoinAddress" | "InvalidContentType" | "IdentityCantBeAnon" | "InvalidContactType" | "InvalidIdentityType" | "InvalidDate" | "InvalidCountry" | "InvalidTimestamp" | "DeadlineBeforeMinimum" | "SelfDraftedBillCantBeBlank" | "RequestToMintForBillAndMintAlreadyActive" | "SignerCantBeAnon" | "ContactIsAnonymous" | "InvalidContact" | "InvalidMint" | "IssueDateAfterMaturityDate" | "MaturityDateInThePast" | "RequestToPayBeforeMaturityDate" | "InvalidFileUploadId" | "InvalidNodeId" | "InvalidBillId" | "InvalidBillType" | "DraweeCantBePayee" | "EndorserCantBeEndorsee" | "BuyerCantBeSeller" | "RecourserCantBeRecoursee" | "DraweeNotInContacts" | "PayeeNotInContacts" | "MintNotInContacts" | "BuyerNotInContacts" | "EndorseeNotInContacts" | "RecourseeNotInContacts" | "NoPaymentForSweep" | "CancelMintRequestNotPending" | "RejectMintRequestNotOffered" | "AcceptMintRequestNotOffered" | "AcceptMintOfferExpired" | "NoConfirmedEmailForIdentIdentity" | "NoFileForFileUploadId" | "NotFound" | "ExternalApi" | "Crypto" | "Persistence" | "Blockchain" | "Protocol" | "InvalidRelayUrl" | "Serialization" | "Init" | "NotificationNetwork" | "NotificationMessage" | "InvalidOperation" | "BillAlreadyAccepted" | "BillWasRejectedToAccept" | "BillAcceptanceExpired" | "BillWasRejectedToPay" | "BillPaymentExpired" | "BillWasRecoursedToTheEnd" | "BillAlreadyRequestedToAccept" | "BillNotAccepted" | "CallerIsNotDrawee" | "CallerIsNotHolder" | "CallerIsNotRecoursee" | "CallerIsNotBuyer" | "RequestAlreadyRejected" | "BillAlreadyPaid" | "BillWasNotRequestedToPay" | "BillWasNotOfferedToSell" | "BillRequestToAcceptDidNotExpireAndWasNotRejected" | "BillRequestToPayDidNotExpireAndWasNotRejected" | "RecourseeNotPastHolder" | "BillWasNotRequestedToRecourse" | "BillIsNotRequestedToRecourseAndWaitingForPayment" | "BillIsNotOfferToSellWaitingForPayment" | "BillSellDataInvalid" | "BillRecourseDataInvalid" | "BillIsRequestedToPayAndWaitingForPayment" | "BillIsOfferedToSellAndWaitingForPayment" | "BillIsInRecourseAndWaitingForPayment" | "SignatoryNotInContacts" | "SignatoryAlreadySignatory" | "CantRemoveLastSignatory" | "NotASignatory" | "NotARemovedOrRejectedSignatory" | "NotInvitedAsSignatory" | "NoSignerIdentityProof" | "FileIsTooBig" | "FileIsEmpty" | "TooManyFiles" | "InvalidFileName" | "UnknownNodeId" | "CallerMustBeSignatory" | "InvalidIdentityProof" | "InvalidReferenceBlock" | "InvalidSignature" | "InvalidHash" | "InvalidUrl" | "InvalidIdentityProofStatus" | "Json" | "InvalidBillAction" | "InvalidCompanyAction" | "CompanySignerCreatorMismatch" | "InvalidMintRequestId";
949
+ export type JsErrorType = "FieldEmpty" | "FieldInvalid" | "InvalidSum" | "InvalidCurrency" | "InvalidBitcoinAddress" | "InvalidBitcoinDescriptor" | "InvalidContentType" | "IdentityCantBeAnon" | "InvalidContactType" | "InvalidIdentityType" | "InvalidDate" | "InvalidCountry" | "InvalidTimestamp" | "DeadlineBeforeMinimum" | "SelfDraftedBillCantBeBlank" | "RequestToMintForBillAndMintAlreadyActive" | "SignerCantBeAnon" | "ContactIsAnonymous" | "InvalidContact" | "InvalidMint" | "IssueDateAfterMaturityDate" | "MaturityDateInThePast" | "RequestToPayBeforeMaturityDate" | "InvalidFileUploadId" | "InvalidNodeId" | "InvalidBillId" | "InvalidBillType" | "DraweeCantBePayee" | "EndorserCantBeEndorsee" | "BuyerCantBeSeller" | "RecourserCantBeRecoursee" | "DraweeNotInContacts" | "PayeeNotInContacts" | "MintNotInContacts" | "BuyerNotInContacts" | "EndorseeNotInContacts" | "RecourseeNotInContacts" | "NoPaymentForSweep" | "CancelMintRequestNotPending" | "RejectMintRequestNotOffered" | "AcceptMintRequestNotOffered" | "AcceptMintOfferExpired" | "NoConfirmedEmailForIdentIdentity" | "NoFileForFileUploadId" | "NotFound" | "ExternalApi" | "Crypto" | "Persistence" | "Blockchain" | "Protocol" | "InvalidRelayUrl" | "Serialization" | "Init" | "NotificationNetwork" | "NotificationMessage" | "InvalidOperation" | "BillAlreadyAccepted" | "BillWasRejectedToAccept" | "BillAcceptanceExpired" | "BillWasRejectedToPay" | "BillPaymentExpired" | "BillWasRecoursedToTheEnd" | "BillAlreadyRequestedToAccept" | "BillNotAccepted" | "CallerIsNotDrawee" | "CallerIsNotHolder" | "CallerIsNotRecoursee" | "CallerIsNotBuyer" | "RequestAlreadyRejected" | "BillAlreadyPaid" | "BillWasNotRequestedToPay" | "BillWasNotOfferedToSell" | "BillRequestToAcceptDidNotExpireAndWasNotRejected" | "BillRequestToPayDidNotExpireAndWasNotRejected" | "RecourseeNotPastHolder" | "BillWasNotRequestedToRecourse" | "BillIsNotRequestedToRecourseAndWaitingForPayment" | "BillIsNotOfferToSellWaitingForPayment" | "BillSellDataInvalid" | "BillRecourseDataInvalid" | "BillIsRequestedToPayAndWaitingForPayment" | "BillIsOfferedToSellAndWaitingForPayment" | "BillIsInRecourseAndWaitingForPayment" | "SignatoryNotInContacts" | "SignatoryAlreadySignatory" | "CantRemoveLastSignatory" | "NotASignatory" | "NotARemovedOrRejectedSignatory" | "NotInvitedAsSignatory" | "NoSignerIdentityProof" | "FileIsTooBig" | "FileIsEmpty" | "TooManyFiles" | "InvalidFileName" | "UnknownNodeId" | "CallerMustBeSignatory" | "InvalidIdentityProof" | "InvalidReferenceBlock" | "MintRequestToPayWithoutCustomAddress" | "InvalidSignature" | "InvalidHash" | "InvalidUrl" | "InvalidIdentityProofStatus" | "Json" | "InvalidBillAction" | "InvalidCompanyAction" | "CompanySignerCreatorMismatch" | "InvalidMintRequestId";
942
950
 
943
951
  export type LightBillParticipantWeb = { Anon: LightBillAnonParticipantWeb } | { Ident: LightBillIdentParticipantWithAddressWeb };
944
952
 
@@ -1008,6 +1016,7 @@ export class Bill {
1008
1016
  request_to_accept(payload: RequestToAcceptBitcreditBillPayload): Promise<TSResult<void>>;
1009
1017
  request_to_mint(payload: RequestToMintBitcreditBillPayload): Promise<TSResult<void>>;
1010
1018
  request_to_pay(payload: RequestToPayBitcreditBillPayload): Promise<TSResult<void>>;
1019
+ request_to_pay_as_mint(payload: RequestToPayAsMintBitcreditBillPayload): Promise<TSResult<void>>;
1011
1020
  request_to_recourse_bill_acceptance(payload: RequestRecourseForPaymentPayload): Promise<TSResult<void>>;
1012
1021
  request_to_recourse_bill_payment(payload: RequestRecourseForPaymentPayload): Promise<TSResult<void>>;
1013
1022
  search(payload: BillsSearchFilterPayload): Promise<TSResult<LightBillsResponse>>;
@@ -1194,6 +1203,7 @@ export interface InitOutput {
1194
1203
  readonly bill_request_to_accept: (a: number, b: any) => any;
1195
1204
  readonly bill_request_to_mint: (a: number, b: any) => any;
1196
1205
  readonly bill_request_to_pay: (a: number, b: any) => any;
1206
+ readonly bill_request_to_pay_as_mint: (a: number, b: any) => any;
1197
1207
  readonly bill_request_to_recourse_bill_acceptance: (a: number, b: any) => any;
1198
1208
  readonly bill_request_to_recourse_bill_payment: (a: number, b: any) => any;
1199
1209
  readonly bill_search: (a: number, b: any) => any;
@@ -1287,27 +1297,25 @@ export interface InitOutput {
1287
1297
  readonly identity_new: () => number;
1288
1298
  readonly notification_new: () => number;
1289
1299
  readonly __wbg_company_free: (a: number, b: number) => void;
1290
- readonly __wbg_identity_free: (a: number, b: number) => void;
1291
- readonly __wbg_general_free: (a: number, b: number) => void;
1292
- readonly __wbg_bill_free: (a: number, b: number) => void;
1293
1300
  readonly __wbg_contact_free: (a: number, b: number) => void;
1294
1301
  readonly __wbg_notification_free: (a: number, b: number) => void;
1295
- readonly wasm_bindgen__closure__destroy__h2224c54b4af2fbad: (a: number, b: number) => void;
1296
- readonly wasm_bindgen__closure__destroy__hcf84bd8f683a66b8: (a: number, b: number) => void;
1297
- readonly wasm_bindgen__closure__destroy__had1eeb50d5c61eb8: (a: number, b: number) => void;
1298
- readonly wasm_bindgen__convert__closures_____invoke__hd77882154a27f786: (a: number, b: number, c: any) => [number, number];
1299
- readonly wasm_bindgen__convert__closures_____invoke__he8ceb6485339bd81: (a: number, b: number, c: any) => [number, number];
1300
- readonly wasm_bindgen__convert__closures_____invoke__hab9ab5b39ed8bcc8: (a: number, b: number, c: any, d: any) => void;
1301
- readonly wasm_bindgen__convert__closures_____invoke__h928c64866f63543d: (a: number, b: number, c: any) => void;
1302
- readonly wasm_bindgen__convert__closures_____invoke__h928c64866f63543d_2: (a: number, b: number, c: any) => void;
1303
- readonly wasm_bindgen__convert__closures_____invoke__h44a768595d33e06f: (a: number, b: number) => void;
1304
- readonly wasm_bindgen__convert__closures_____invoke__h45d9f4012aef2b30: (a: number, b: number) => void;
1302
+ readonly __wbg_general_free: (a: number, b: number) => void;
1303
+ readonly __wbg_identity_free: (a: number, b: number) => void;
1304
+ readonly __wbg_bill_free: (a: number, b: number) => void;
1305
+ readonly wasm_bindgen__convert__closures_____invoke__hc4af5cf763ea88dc: (a: number, b: number, c: any) => [number, number];
1306
+ readonly wasm_bindgen__convert__closures_____invoke__h9b3f848d6b8a7b02: (a: number, b: number, c: any) => [number, number];
1307
+ readonly wasm_bindgen__convert__closures_____invoke__h3cb0ecfd731c1cb8: (a: number, b: number, c: any, d: any) => void;
1308
+ readonly wasm_bindgen__convert__closures_____invoke__h6885ed42f1508ba9: (a: number, b: number, c: any) => void;
1309
+ readonly wasm_bindgen__convert__closures_____invoke__h6885ed42f1508ba9_3: (a: number, b: number, c: any) => void;
1310
+ readonly wasm_bindgen__convert__closures_____invoke__h0c99fe7cbd42df16: (a: number, b: number) => void;
1311
+ readonly wasm_bindgen__convert__closures_____invoke__h767845a7fa5b6823: (a: number, b: number) => void;
1305
1312
  readonly __wbindgen_malloc: (a: number, b: number) => number;
1306
1313
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
1307
1314
  readonly __wbindgen_exn_store: (a: number) => void;
1308
1315
  readonly __externref_table_alloc: () => number;
1309
1316
  readonly __wbindgen_externrefs: WebAssembly.Table;
1310
1317
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
1318
+ readonly __wbindgen_destroy_closure: (a: number, b: number) => void;
1311
1319
  readonly __externref_table_dealloc: (a: number) => void;
1312
1320
  readonly __wbindgen_start: () => void;
1313
1321
  }