@bitcredit/bcr-ebill-wasm 0.4.11-hotfix → 0.4.12

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
@@ -220,6 +220,7 @@ export interface BitcreditBillWeb {
220
220
  data: BillDataWeb;
221
221
  status: BillStatusWeb;
222
222
  current_waiting_state: BillCurrentWaitingStateWeb | undefined;
223
+ actions: BillCallerActionsWeb;
223
224
  }
224
225
 
225
226
  export type BillCurrentWaitingStateWeb = { Sell: BillWaitingForSellStateWeb } | { Payment: BillWaitingForPaymentStateWeb } | { Recourse: BillWaitingForRecourseStateWeb };
@@ -330,6 +331,12 @@ export interface BillParticipantsWeb {
330
331
  all_participant_node_ids: string[];
331
332
  }
332
333
 
334
+ export interface BillCallerActionsWeb {
335
+ bill_actions: BillCallerBillActionWeb[];
336
+ }
337
+
338
+ export type BillCallerBillActionWeb = "RequestAcceptance" | "Accept" | "RequestToPay" | "OfferToSell" | "Sell" | "Endorse" | "RequestRecourseForAcceptance" | "RequestRecourseForPayment" | "Recourse" | "Mint" | "RejectAcceptance" | "RejectPayment" | "RejectBuying" | "RejectPaymentForRecourse";
339
+
333
340
  export interface LightBitcreditBillWeb {
334
341
  id: string;
335
342
  drawee: LightBillIdentParticipantWeb;
@@ -350,7 +357,7 @@ export type BillParticipantWeb = { Anon: BillAnonParticipantWeb } | { Ident: Bil
350
357
  export interface BillAnonParticipantWeb {
351
358
  node_id: string;
352
359
  email: string | undefined;
353
- nostr_relays: Url[];
360
+ nostr_relays: string[];
354
361
  }
355
362
 
356
363
  export interface BillIdentParticipantWeb {
@@ -359,7 +366,7 @@ export interface BillIdentParticipantWeb {
359
366
  name: string;
360
367
  postal_address: PostalAddressWeb;
361
368
  email: string | undefined;
362
- nostr_relays: Url[];
369
+ nostr_relays: string[];
363
370
  }
364
371
 
365
372
  export interface LightBillIdentParticipantWithAddressWeb {
@@ -507,7 +514,7 @@ export interface ContactWeb {
507
514
  identification_number: string | undefined;
508
515
  avatar_file: FileWeb | undefined;
509
516
  proof_document_file: FileWeb | undefined;
510
- nostr_relays: Url[];
517
+ nostr_relays: string[];
511
518
  is_logical: boolean;
512
519
  }
513
520
 
@@ -555,7 +562,7 @@ export interface IdentityWeb {
555
562
  identification_number: string | undefined;
556
563
  profile_picture_file: FileWeb | undefined;
557
564
  identity_document_file: FileWeb | undefined;
558
- nostr_relays: Url[];
565
+ nostr_relays: string[];
559
566
  }
560
567
 
561
568
  /**
@@ -728,7 +735,7 @@ export interface UploadFileResponse {
728
735
  file_upload_id: string;
729
736
  }
730
737
 
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";
738
+ 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" | "InvalidBillAction";
732
739
 
733
740
  export interface JsErrorData {
734
741
  error: JsErrorType;
@@ -1088,12 +1095,12 @@ export interface InitOutput {
1088
1095
  readonly api_notification: () => number;
1089
1096
  readonly api_contact: () => number;
1090
1097
  readonly api_company: () => number;
1091
- readonly __wbg_general_free: (a: number, b: number) => void;
1092
1098
  readonly __wbg_identityproof_free: (a: number, b: number) => void;
1099
+ readonly __wbg_general_free: (a: number, b: number) => void;
1093
1100
  readonly __wbg_contact_free: (a: number, b: number) => void;
1094
1101
  readonly __wbg_notification_free: (a: number, b: number) => void;
1095
- readonly __wbg_company_free: (a: number, b: number) => void;
1096
1102
  readonly __wbg_identity_free: (a: number, b: number) => void;
1103
+ readonly __wbg_company_free: (a: number, b: number) => void;
1097
1104
  readonly __wbg_bill_free: (a: number, b: number) => void;
1098
1105
  readonly __wbindgen_malloc: (a: number, b: number) => number;
1099
1106
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
@@ -1103,10 +1110,10 @@ export interface InitOutput {
1103
1110
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
1104
1111
  readonly __wbindgen_export_6: WebAssembly.Table;
1105
1112
  readonly __externref_table_dealloc: (a: number) => void;
1106
- readonly wasm_bindgen__convert__closures_____invoke__h1bddd7db3334f1b6: (a: number, b: number) => void;
1107
1113
  readonly closure359_externref_shim: (a: number, b: number, c: any) => void;
1108
- readonly wasm_bindgen__convert__closures_____invoke__h421384210ea5cc16: (a: number, b: number) => void;
1114
+ readonly wasm_bindgen__convert__closures_____invoke__h1bddd7db3334f1b6: (a: number, b: number) => void;
1109
1115
  readonly closure890_externref_shim_multivalue_shim: (a: number, b: number, c: any) => [number, number];
1116
+ readonly wasm_bindgen__convert__closures_____invoke__h421384210ea5cc16: (a: number, b: number) => void;
1110
1117
  readonly closure677_externref_shim: (a: number, b: number, c: any, d: any) => void;
1111
1118
  readonly __wbindgen_start: () => void;
1112
1119
  }
package/index.js CHANGED
@@ -262,25 +262,25 @@ export function task_worker_entry_point(ptr) {
262
262
  }
263
263
  }
264
264
 
265
- function __wbg_adapter_6(arg0, arg1) {
266
- wasm.wasm_bindgen__convert__closures_____invoke__h1bddd7db3334f1b6(arg0, arg1);
267
- }
268
-
269
- function __wbg_adapter_11(arg0, arg1, arg2) {
265
+ function __wbg_adapter_6(arg0, arg1, arg2) {
270
266
  wasm.closure359_externref_shim(arg0, arg1, arg2);
271
267
  }
272
268
 
273
- function __wbg_adapter_22(arg0, arg1) {
274
- wasm.wasm_bindgen__convert__closures_____invoke__h421384210ea5cc16(arg0, arg1);
269
+ function __wbg_adapter_9(arg0, arg1) {
270
+ wasm.wasm_bindgen__convert__closures_____invoke__h1bddd7db3334f1b6(arg0, arg1);
275
271
  }
276
272
 
277
- function __wbg_adapter_31(arg0, arg1, arg2) {
273
+ function __wbg_adapter_16(arg0, arg1, arg2) {
278
274
  const ret = wasm.closure890_externref_shim_multivalue_shim(arg0, arg1, arg2);
279
275
  if (ret[1]) {
280
276
  throw takeFromExternrefTable0(ret[0]);
281
277
  }
282
278
  }
283
279
 
280
+ function __wbg_adapter_29(arg0, arg1) {
281
+ wasm.wasm_bindgen__convert__closures_____invoke__h421384210ea5cc16(arg0, arg1);
282
+ }
283
+
284
284
  function __wbg_adapter_231(arg0, arg1, arg2, arg3) {
285
285
  wasm.closure677_externref_shim(arg0, arg1, arg2, arg3);
286
286
  }
@@ -2274,12 +2274,12 @@ function __wbg_get_imports() {
2274
2274
  };
2275
2275
  imports.wbg.__wbindgen_cast_1e3eda00059a3c9b = function(arg0, arg1) {
2276
2276
  // Cast intrinsic for `Closure(Closure { dtor_idx: 668, function: Function { arguments: [Externref], shim_idx: 359, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2277
- const ret = makeMutClosure(arg0, arg1, 668, __wbg_adapter_11);
2277
+ const ret = makeMutClosure(arg0, arg1, 668, __wbg_adapter_6);
2278
2278
  return ret;
2279
2279
  };
2280
2280
  imports.wbg.__wbindgen_cast_1f0be5a03e92758f = function(arg0, arg1) {
2281
2281
  // 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`.
2282
- const ret = makeMutClosure(arg0, arg1, 889, __wbg_adapter_31);
2282
+ const ret = makeMutClosure(arg0, arg1, 889, __wbg_adapter_16);
2283
2283
  return ret;
2284
2284
  };
2285
2285
  imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
@@ -2289,7 +2289,7 @@ function __wbg_get_imports() {
2289
2289
  };
2290
2290
  imports.wbg.__wbindgen_cast_2b95a68344a644f3 = function(arg0, arg1) {
2291
2291
  // Cast intrinsic for `Closure(Closure { dtor_idx: 273, function: Function { arguments: [], shim_idx: 274, ret: Unit, inner_ret: Some(Unit) }, mutable: false }) -> Externref`.
2292
- const ret = makeClosure(arg0, arg1, 273, __wbg_adapter_22);
2292
+ const ret = makeClosure(arg0, arg1, 273, __wbg_adapter_29);
2293
2293
  return ret;
2294
2294
  };
2295
2295
  imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
@@ -2304,7 +2304,7 @@ function __wbg_get_imports() {
2304
2304
  };
2305
2305
  imports.wbg.__wbindgen_cast_bba2bd5078b2a92e = function(arg0, arg1) {
2306
2306
  // Cast intrinsic for `Closure(Closure { dtor_idx: 743, function: Function { arguments: [NamedExternref("CloseEvent")], shim_idx: 359, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2307
- const ret = makeMutClosure(arg0, arg1, 743, __wbg_adapter_11);
2307
+ const ret = makeMutClosure(arg0, arg1, 743, __wbg_adapter_6);
2308
2308
  return ret;
2309
2309
  };
2310
2310
  imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
@@ -2319,17 +2319,17 @@ function __wbg_get_imports() {
2319
2319
  };
2320
2320
  imports.wbg.__wbindgen_cast_d741fa484789fc2e = function(arg0, arg1) {
2321
2321
  // Cast intrinsic for `Closure(Closure { dtor_idx: 668, function: Function { arguments: [], shim_idx: 485, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2322
- const ret = makeMutClosure(arg0, arg1, 668, __wbg_adapter_6);
2322
+ const ret = makeMutClosure(arg0, arg1, 668, __wbg_adapter_9);
2323
2323
  return ret;
2324
2324
  };
2325
2325
  imports.wbg.__wbindgen_cast_e3d6704fc2f8f5a8 = function(arg0, arg1) {
2326
2326
  // Cast intrinsic for `Closure(Closure { dtor_idx: 484, function: Function { arguments: [], shim_idx: 485, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
2327
- const ret = makeMutClosure(arg0, arg1, 484, __wbg_adapter_6);
2327
+ const ret = makeMutClosure(arg0, arg1, 484, __wbg_adapter_9);
2328
2328
  return ret;
2329
2329
  };
2330
2330
  imports.wbg.__wbindgen_cast_ef1296fe0ce0c82f = function(arg0, arg1) {
2331
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_11);
2332
+ const ret = makeMutClosure(arg0, arg1, 273, __wbg_adapter_6);
2333
2333
  return ret;
2334
2334
  };
2335
2335
  imports.wbg.__wbindgen_init_externref_table = function() {
package/index_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bitcredit/bcr-ebill-wasm",
3
3
  "type": "module",
4
- "version": "0.4.11-hotfix",
4
+ "version": "0.4.12",
5
5
  "license": "MIT",
6
6
  "files": [
7
7
  "index_bg.wasm",