@bitcredit/bcr-ebill-wasm 0.4.6 → 0.4.7

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
@@ -523,14 +523,16 @@ export interface SeedPhrase {
523
523
 
524
524
  export interface IdentityProofWeb {
525
525
  id: string;
526
- node_id: NodeId;
527
- stamp: IdentityProofStamp;
528
- url: Url;
526
+ node_id: string;
527
+ stamp: string;
528
+ url: string;
529
529
  timestamp: number;
530
530
  status: IdentityProofStatusWeb;
531
531
  status_last_checked_timestamp: number;
532
532
  }
533
533
 
534
+ export type IdentityProofStatusWeb = "Success" | "NotFound" | "FailureConnect" | "FailureClient" | "FailureServer";
535
+
534
536
  export interface NotificationStatusWeb {
535
537
  node_id: string;
536
538
  active: boolean;
@@ -666,6 +668,7 @@ export interface Config {
666
668
  default_mint_url: string;
667
669
  default_mint_node_id: string;
668
670
  num_confirmations_for_payment: number;
671
+ dev_mode: boolean;
669
672
  }
670
673
 
671
674
  export interface MintRequestStateWeb {
@@ -758,6 +761,7 @@ export class Bill {
758
761
  * Given a bill id, resync the chain via block transport
759
762
  */
760
763
  sync_bill_chain(payload: ResyncBillPayload): Promise<void>;
764
+ dev_mode_get_full_bill_chain(bill_id: string): Promise<string[]>;
761
765
  }
762
766
  export class Company {
763
767
  private constructor();
@@ -900,6 +904,7 @@ export interface InitOutput {
900
904
  readonly bill_request_to_recourse_bill_acceptance: (a: number, b: any) => any;
901
905
  readonly bill_clear_bill_cache: (a: number) => any;
902
906
  readonly bill_sync_bill_chain: (a: number, b: any) => any;
907
+ readonly bill_dev_mode_get_full_bill_chain: (a: number, b: number, c: number) => any;
903
908
  readonly company_file: (a: number, b: number, c: number, d: number, e: number) => any;
904
909
  readonly company_file_base64: (a: number, b: number, c: number, d: number, e: number) => any;
905
910
  readonly company_upload: (a: number, b: any) => any;
@@ -969,13 +974,13 @@ export interface InitOutput {
969
974
  readonly api_notification: () => number;
970
975
  readonly api_contact: () => number;
971
976
  readonly api_company: () => number;
972
- readonly __wbg_identityproof_free: (a: number, b: number) => void;
973
- readonly __wbg_identity_free: (a: number, b: number) => void;
974
977
  readonly __wbg_notification_free: (a: number, b: number) => void;
975
- readonly __wbg_general_free: (a: number, b: number) => void;
976
978
  readonly __wbg_contact_free: (a: number, b: number) => void;
977
- readonly __wbg_bill_free: (a: number, b: number) => void;
978
979
  readonly __wbg_company_free: (a: number, b: number) => void;
980
+ readonly __wbg_identity_free: (a: number, b: number) => void;
981
+ readonly __wbg_identityproof_free: (a: number, b: number) => void;
982
+ readonly __wbg_general_free: (a: number, b: number) => void;
983
+ readonly __wbg_bill_free: (a: number, b: number) => void;
979
984
  readonly __wbindgen_malloc: (a: number, b: number) => number;
980
985
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
981
986
  readonly __wbindgen_exn_store: (a: number) => void;
package/index.js CHANGED
@@ -280,7 +280,7 @@ function __wbg_adapter_65(arg0, arg1, arg2) {
280
280
  }
281
281
  }
282
282
 
283
- function __wbg_adapter_259(arg0, arg1, arg2, arg3) {
283
+ function __wbg_adapter_260(arg0, arg1, arg2, arg3) {
284
284
  wasm.closure643_externref_shim(arg0, arg1, arg2, arg3);
285
285
  }
286
286
 
@@ -748,6 +748,16 @@ export class Bill {
748
748
  const ret = wasm.bill_sync_bill_chain(this.__wbg_ptr, payload);
749
749
  return ret;
750
750
  }
751
+ /**
752
+ * @param {string} bill_id
753
+ * @returns {string[]}
754
+ */
755
+ dev_mode_get_full_bill_chain(bill_id) {
756
+ const ptr0 = passStringToWasm0(bill_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
757
+ const len0 = WASM_VECTOR_LEN;
758
+ const ret = wasm.bill_dev_mode_get_full_bill_chain(this.__wbg_ptr, ptr0, len0);
759
+ return ret;
760
+ }
751
761
  }
752
762
 
753
763
  const CompanyFinalization = (typeof FinalizationRegistry === 'undefined')
@@ -1742,7 +1752,7 @@ function __wbg_get_imports() {
1742
1752
  const a = state0.a;
1743
1753
  state0.a = 0;
1744
1754
  try {
1745
- return __wbg_adapter_259(a, state0.b, arg0, arg1);
1755
+ return __wbg_adapter_260(a, state0.b, arg0, arg1);
1746
1756
  } finally {
1747
1757
  state0.a = a;
1748
1758
  }
@@ -2129,35 +2139,35 @@ function __wbg_get_imports() {
2129
2139
  const ret = false;
2130
2140
  return ret;
2131
2141
  };
2132
- imports.wbg.__wbindgen_closure_wrapper10286 = function(arg0, arg1, arg2) {
2142
+ imports.wbg.__wbindgen_closure_wrapper10325 = function(arg0, arg1, arg2) {
2133
2143
  const ret = makeMutClosure(arg0, arg1, 711, __wbg_adapter_55);
2134
2144
  return ret;
2135
2145
  };
2136
- imports.wbg.__wbindgen_closure_wrapper11305 = function(arg0, arg1, arg2) {
2146
+ imports.wbg.__wbindgen_closure_wrapper11340 = function(arg0, arg1, arg2) {
2137
2147
  const ret = makeMutClosure(arg0, arg1, 857, __wbg_adapter_58);
2138
2148
  return ret;
2139
2149
  };
2140
- imports.wbg.__wbindgen_closure_wrapper11335 = function(arg0, arg1, arg2) {
2150
+ imports.wbg.__wbindgen_closure_wrapper11370 = function(arg0, arg1, arg2) {
2141
2151
  const ret = makeMutClosure(arg0, arg1, 860, __wbg_adapter_65);
2142
2152
  return ret;
2143
2153
  };
2144
- imports.wbg.__wbindgen_closure_wrapper20108 = function(arg0, arg1, arg2) {
2154
+ imports.wbg.__wbindgen_closure_wrapper20143 = function(arg0, arg1, arg2) {
2145
2155
  const ret = makeMutClosure(arg0, arg1, 633, __wbg_adapter_55);
2146
2156
  return ret;
2147
2157
  };
2148
- imports.wbg.__wbindgen_closure_wrapper20149 = function(arg0, arg1, arg2) {
2158
+ imports.wbg.__wbindgen_closure_wrapper20184 = function(arg0, arg1, arg2) {
2149
2159
  const ret = makeMutClosure(arg0, arg1, 633, __wbg_adapter_58);
2150
2160
  return ret;
2151
2161
  };
2152
- imports.wbg.__wbindgen_closure_wrapper2189 = function(arg0, arg1, arg2) {
2162
+ imports.wbg.__wbindgen_closure_wrapper2213 = function(arg0, arg1, arg2) {
2153
2163
  const ret = makeClosure(arg0, arg1, 352, __wbg_adapter_52);
2154
2164
  return ret;
2155
2165
  };
2156
- imports.wbg.__wbindgen_closure_wrapper2894 = function(arg0, arg1, arg2) {
2166
+ imports.wbg.__wbindgen_closure_wrapper2915 = function(arg0, arg1, arg2) {
2157
2167
  const ret = makeMutClosure(arg0, arg1, 352, __wbg_adapter_55);
2158
2168
  return ret;
2159
2169
  };
2160
- imports.wbg.__wbindgen_closure_wrapper5457 = function(arg0, arg1, arg2) {
2170
+ imports.wbg.__wbindgen_closure_wrapper5516 = function(arg0, arg1, arg2) {
2161
2171
  const ret = makeMutClosure(arg0, arg1, 633, __wbg_adapter_58);
2162
2172
  return ret;
2163
2173
  };
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.6",
4
+ "version": "0.4.7",
5
5
  "license": "MIT",
6
6
  "files": [
7
7
  "index_bg.wasm",