@bitcredit/bcr-ebill-wasm 0.3.6 → 0.3.8

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
@@ -13,6 +13,188 @@ export enum IdentityTypeWeb {
13
13
  Person = 0,
14
14
  Company = 1,
15
15
  }
16
+ export interface NotificationWeb {
17
+ id: string;
18
+ node_id: string | undefined;
19
+ notification_type: NotificationTypeWeb;
20
+ reference_id: string | undefined;
21
+ description: string;
22
+ datetime: string;
23
+ active: boolean;
24
+ payload: any | undefined;
25
+ }
26
+
27
+ export type NotificationTypeWeb = "General" | "Bill";
28
+
29
+ export interface CompaniesResponse {
30
+ companies: CompanyWeb[];
31
+ }
32
+
33
+ export interface CompanyWeb {
34
+ id: string;
35
+ name: string;
36
+ country_of_registration: string | undefined;
37
+ city_of_registration: string | undefined;
38
+ postal_address: PostalAddressWeb;
39
+ email: string;
40
+ registration_number: string | undefined;
41
+ registration_date: string | undefined;
42
+ proof_of_registration_file: FileWeb | undefined;
43
+ logo_file: FileWeb | undefined;
44
+ signatories: string[];
45
+ }
46
+
47
+ export interface CreateCompanyPayload {
48
+ name: string;
49
+ country_of_registration: string | undefined;
50
+ city_of_registration: string | undefined;
51
+ postal_address: PostalAddressWeb;
52
+ email: string;
53
+ registration_number: string | undefined;
54
+ registration_date: string | undefined;
55
+ proof_of_registration_file_upload_id: string | undefined;
56
+ logo_file_upload_id: string | undefined;
57
+ }
58
+
59
+ export interface EditCompanyPayload {
60
+ id: string;
61
+ name: string | undefined;
62
+ email: string | undefined;
63
+ postal_address: OptionalPostalAddressWeb;
64
+ country_of_registration: string | undefined;
65
+ city_of_registration: string | undefined;
66
+ registration_number: string | undefined;
67
+ registration_date: string | undefined;
68
+ logo_file_upload_id: string | undefined;
69
+ proof_of_registration_file_upload_id: string | undefined;
70
+ }
71
+
72
+ export interface AddSignatoryPayload {
73
+ id: string;
74
+ signatory_node_id: string;
75
+ }
76
+
77
+ export interface RemoveSignatoryPayload {
78
+ id: string;
79
+ signatory_node_id: string;
80
+ }
81
+
82
+ export interface ListSignatoriesResponse {
83
+ signatories: SignatoryResponse[];
84
+ }
85
+
86
+ export interface SignatoryResponse {
87
+ t: ContactTypeWeb;
88
+ node_id: string;
89
+ name: string;
90
+ postal_address: PostalAddressWeb;
91
+ avatar_file: FileWeb | undefined;
92
+ }
93
+
94
+ export interface ContactsResponse {
95
+ contacts: ContactWeb[];
96
+ }
97
+
98
+ export interface NewContactPayload {
99
+ t: number;
100
+ node_id: string;
101
+ name: string;
102
+ email: string;
103
+ postal_address: PostalAddressWeb;
104
+ date_of_birth_or_registration: string | undefined;
105
+ country_of_birth_or_registration: string | undefined;
106
+ city_of_birth_or_registration: string | undefined;
107
+ identification_number: string | undefined;
108
+ avatar_file_upload_id: string | undefined;
109
+ proof_document_file_upload_id: string | undefined;
110
+ }
111
+
112
+ export interface EditContactPayload {
113
+ node_id: string;
114
+ name: string | undefined;
115
+ email: string | undefined;
116
+ postal_address: OptionalPostalAddressWeb;
117
+ date_of_birth_or_registration: string | undefined;
118
+ country_of_birth_or_registration: string | undefined;
119
+ city_of_birth_or_registration: string | undefined;
120
+ identification_number: string | undefined;
121
+ avatar_file_upload_id: string | undefined;
122
+ proof_document_file_upload_id: string | undefined;
123
+ }
124
+
125
+ export interface ContactWeb {
126
+ t: ContactTypeWeb;
127
+ node_id: string;
128
+ name: string;
129
+ email: string;
130
+ postal_address: PostalAddressWeb;
131
+ date_of_birth_or_registration: string | undefined;
132
+ country_of_birth_or_registration: string | undefined;
133
+ city_of_birth_or_registration: string | undefined;
134
+ identification_number: string | undefined;
135
+ avatar_file: FileWeb | undefined;
136
+ proof_document_file: FileWeb | undefined;
137
+ nostr_relays: string[];
138
+ }
139
+
140
+ export interface SwitchIdentity {
141
+ t: IdentityTypeWeb | undefined;
142
+ node_id: string;
143
+ }
144
+
145
+ export interface NewIdentityPayload {
146
+ name: string;
147
+ email: string;
148
+ postal_address: OptionalPostalAddressWeb;
149
+ date_of_birth: string | undefined;
150
+ country_of_birth: string | undefined;
151
+ city_of_birth: string | undefined;
152
+ identification_number: string | undefined;
153
+ profile_picture_file_upload_id: string | undefined;
154
+ identity_document_file_upload_id: string | undefined;
155
+ }
156
+
157
+ export interface ChangeIdentityPayload {
158
+ name: string | undefined;
159
+ email: string | undefined;
160
+ postal_address: OptionalPostalAddressWeb;
161
+ date_of_birth: string | undefined;
162
+ country_of_birth: string | undefined;
163
+ city_of_birth: string | undefined;
164
+ identification_number: string | undefined;
165
+ profile_picture_file_upload_id: string | undefined;
166
+ identity_document_file_upload_id: string | undefined;
167
+ }
168
+
169
+ export interface IdentityWeb {
170
+ node_id: string;
171
+ name: string;
172
+ email: string;
173
+ bitcoin_public_key: string;
174
+ npub: string;
175
+ postal_address: OptionalPostalAddressWeb;
176
+ date_of_birth: string | undefined;
177
+ country_of_birth: string | undefined;
178
+ city_of_birth: string | undefined;
179
+ identification_number: string | undefined;
180
+ profile_picture_file: FileWeb | undefined;
181
+ identity_document_file: FileWeb | undefined;
182
+ nostr_relay: string | undefined;
183
+ }
184
+
185
+ export interface SeedPhrase {
186
+ seed_phrase: string;
187
+ }
188
+
189
+ export interface Config {
190
+ log_level: string | undefined;
191
+ bitcoin_network: string;
192
+ esplora_base_url: string;
193
+ nostr_relay: string;
194
+ job_runner_initial_delay_seconds: number;
195
+ job_runner_check_interval_seconds: number;
196
+ }
197
+
16
198
  export interface BillId {
17
199
  id: string;
18
200
  }
@@ -350,19 +532,6 @@ export interface LightIdentityPublicDataWeb {
350
532
  node_id: string;
351
533
  }
352
534
 
353
- export interface NotificationWeb {
354
- id: string;
355
- node_id: string | undefined;
356
- notification_type: NotificationTypeWeb;
357
- reference_id: string | undefined;
358
- description: string;
359
- datetime: string;
360
- active: boolean;
361
- payload: any | undefined;
362
- }
363
-
364
- export type NotificationTypeWeb = "General" | "Bill";
365
-
366
535
  export interface StatusResponse {
367
536
  bitcoin_network: string;
368
537
  app_version: string;
@@ -423,6 +592,15 @@ export interface PostalAddressWeb {
423
592
  address: string;
424
593
  }
425
594
 
595
+ export interface NotificationFilters {
596
+ active: boolean | undefined;
597
+ reference_id: string | undefined;
598
+ notification_type: string | undefined;
599
+ node_ids: string[] | undefined;
600
+ limit: number | undefined;
601
+ offset: number | undefined;
602
+ }
603
+
426
604
  export interface FileWeb {
427
605
  name: string;
428
606
  hash: string;
@@ -452,174 +630,6 @@ export interface JsErrorData {
452
630
  code: number;
453
631
  }
454
632
 
455
- export interface CompaniesResponse {
456
- companies: CompanyWeb[];
457
- }
458
-
459
- export interface CompanyWeb {
460
- id: string;
461
- name: string;
462
- country_of_registration: string | undefined;
463
- city_of_registration: string | undefined;
464
- postal_address: PostalAddressWeb;
465
- email: string;
466
- registration_number: string | undefined;
467
- registration_date: string | undefined;
468
- proof_of_registration_file: FileWeb | undefined;
469
- logo_file: FileWeb | undefined;
470
- signatories: string[];
471
- }
472
-
473
- export interface CreateCompanyPayload {
474
- name: string;
475
- country_of_registration: string | undefined;
476
- city_of_registration: string | undefined;
477
- postal_address: PostalAddressWeb;
478
- email: string;
479
- registration_number: string | undefined;
480
- registration_date: string | undefined;
481
- proof_of_registration_file_upload_id: string | undefined;
482
- logo_file_upload_id: string | undefined;
483
- }
484
-
485
- export interface EditCompanyPayload {
486
- id: string;
487
- name: string | undefined;
488
- email: string | undefined;
489
- postal_address: OptionalPostalAddressWeb;
490
- country_of_registration: string | undefined;
491
- city_of_registration: string | undefined;
492
- registration_number: string | undefined;
493
- registration_date: string | undefined;
494
- logo_file_upload_id: string | undefined;
495
- proof_of_registration_file_upload_id: string | undefined;
496
- }
497
-
498
- export interface AddSignatoryPayload {
499
- id: string;
500
- signatory_node_id: string;
501
- }
502
-
503
- export interface RemoveSignatoryPayload {
504
- id: string;
505
- signatory_node_id: string;
506
- }
507
-
508
- export interface ListSignatoriesResponse {
509
- signatories: SignatoryResponse[];
510
- }
511
-
512
- export interface SignatoryResponse {
513
- t: ContactTypeWeb;
514
- node_id: string;
515
- name: string;
516
- postal_address: PostalAddressWeb;
517
- avatar_file: FileWeb | undefined;
518
- }
519
-
520
- export interface ContactsResponse {
521
- contacts: ContactWeb[];
522
- }
523
-
524
- export interface NewContactPayload {
525
- t: number;
526
- node_id: string;
527
- name: string;
528
- email: string;
529
- postal_address: PostalAddressWeb;
530
- date_of_birth_or_registration: string | undefined;
531
- country_of_birth_or_registration: string | undefined;
532
- city_of_birth_or_registration: string | undefined;
533
- identification_number: string | undefined;
534
- avatar_file_upload_id: string | undefined;
535
- proof_document_file_upload_id: string | undefined;
536
- }
537
-
538
- export interface EditContactPayload {
539
- node_id: string;
540
- name: string | undefined;
541
- email: string | undefined;
542
- postal_address: OptionalPostalAddressWeb;
543
- date_of_birth_or_registration: string | undefined;
544
- country_of_birth_or_registration: string | undefined;
545
- city_of_birth_or_registration: string | undefined;
546
- identification_number: string | undefined;
547
- avatar_file_upload_id: string | undefined;
548
- proof_document_file_upload_id: string | undefined;
549
- }
550
-
551
- export interface ContactWeb {
552
- t: ContactTypeWeb;
553
- node_id: string;
554
- name: string;
555
- email: string;
556
- postal_address: PostalAddressWeb;
557
- date_of_birth_or_registration: string | undefined;
558
- country_of_birth_or_registration: string | undefined;
559
- city_of_birth_or_registration: string | undefined;
560
- identification_number: string | undefined;
561
- avatar_file: FileWeb | undefined;
562
- proof_document_file: FileWeb | undefined;
563
- nostr_relays: string[];
564
- }
565
-
566
- export interface SwitchIdentity {
567
- t: IdentityTypeWeb | undefined;
568
- node_id: string;
569
- }
570
-
571
- export interface NewIdentityPayload {
572
- name: string;
573
- email: string;
574
- postal_address: OptionalPostalAddressWeb;
575
- date_of_birth: string | undefined;
576
- country_of_birth: string | undefined;
577
- city_of_birth: string | undefined;
578
- identification_number: string | undefined;
579
- profile_picture_file_upload_id: string | undefined;
580
- identity_document_file_upload_id: string | undefined;
581
- }
582
-
583
- export interface ChangeIdentityPayload {
584
- name: string | undefined;
585
- email: string | undefined;
586
- postal_address: OptionalPostalAddressWeb;
587
- date_of_birth: string | undefined;
588
- country_of_birth: string | undefined;
589
- city_of_birth: string | undefined;
590
- identification_number: string | undefined;
591
- profile_picture_file_upload_id: string | undefined;
592
- identity_document_file_upload_id: string | undefined;
593
- }
594
-
595
- export interface IdentityWeb {
596
- node_id: string;
597
- name: string;
598
- email: string;
599
- bitcoin_public_key: string;
600
- npub: string;
601
- postal_address: OptionalPostalAddressWeb;
602
- date_of_birth: string | undefined;
603
- country_of_birth: string | undefined;
604
- city_of_birth: string | undefined;
605
- identification_number: string | undefined;
606
- profile_picture_file: FileWeb | undefined;
607
- identity_document_file: FileWeb | undefined;
608
- nostr_relay: string | undefined;
609
- }
610
-
611
- export interface SeedPhrase {
612
- seed_phrase: string;
613
- }
614
-
615
- export interface Config {
616
- log_level: string | undefined;
617
- bitcoin_network: string;
618
- nostr_relay: string;
619
- job_runner_initial_delay_seconds: number;
620
- job_runner_check_interval_seconds: number;
621
- }
622
-
623
633
  export class Api {
624
634
  private constructor();
625
635
  free(): void;
@@ -718,7 +728,7 @@ export class Notification {
718
728
  free(): void;
719
729
  static new(): Notification;
720
730
  subscribe(callback: Function): Promise<void>;
721
- list(active?: boolean | null, reference_id?: string | null, notification_type?: string | null, limit?: bigint | null, offset?: bigint | null): Promise<NotificationWeb[]>;
731
+ list(filters: NotificationFilters): Promise<NotificationWeb[]>;
722
732
  mark_as_done(notification_id: string): Promise<void>;
723
733
  trigger_test_msg(payload: any): Promise<void>;
724
734
  }
@@ -775,20 +785,11 @@ export interface InitOutput {
775
785
  readonly identity_seed_recover: (a: number, b: any) => any;
776
786
  readonly __wbg_notification_free: (a: number, b: number) => void;
777
787
  readonly notification_subscribe: (a: number, b: any) => any;
778
- readonly notification_list: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: bigint, i: number, j: bigint) => any;
788
+ readonly notification_list: (a: number, b: any) => any;
779
789
  readonly notification_mark_as_done: (a: number, b: number, c: number) => any;
780
790
  readonly notification_trigger_test_msg: (a: number, b: any) => any;
781
791
  readonly identity_new: () => number;
782
792
  readonly notification_new: () => number;
783
- readonly __wbg_contact_free: (a: number, b: number) => void;
784
- readonly contact_new: () => number;
785
- readonly contact_file: (a: number, b: number, c: number, d: number, e: number) => any;
786
- readonly contact_upload: (a: number, b: any) => any;
787
- readonly contact_list: (a: number) => any;
788
- readonly contact_detail: (a: number, b: number, c: number) => any;
789
- readonly contact_remove: (a: number, b: number, c: number) => any;
790
- readonly contact_create: (a: number, b: any) => any;
791
- readonly contact_edit: (a: number, b: any) => any;
792
793
  readonly __wbg_api_free: (a: number, b: number) => void;
793
794
  readonly api_bill: () => number;
794
795
  readonly api_general: () => number;
@@ -797,6 +798,10 @@ export interface InitOutput {
797
798
  readonly api_contact: () => number;
798
799
  readonly api_company: () => number;
799
800
  readonly api_quote: () => number;
801
+ readonly __wbg_quote_free: (a: number, b: number) => void;
802
+ readonly quote_new: () => number;
803
+ readonly quote_get: (a: number, b: number, c: number) => any;
804
+ readonly quote_accept: (a: number, b: number, c: number) => any;
800
805
  readonly __wbg_company_free: (a: number, b: number) => void;
801
806
  readonly company_new: () => number;
802
807
  readonly company_file: (a: number, b: number, c: number, d: number, e: number) => any;
@@ -814,12 +819,17 @@ export interface InitOutput {
814
819
  readonly general_temp_file: (a: number, b: number, c: number) => any;
815
820
  readonly general_overview: (a: number, b: number, c: number) => any;
816
821
  readonly general_search: (a: number, b: any) => any;
817
- readonly general_new: () => number;
818
- readonly __wbg_quote_free: (a: number, b: number) => void;
819
- readonly quote_new: () => number;
820
- readonly quote_get: (a: number, b: number, c: number) => any;
821
- readonly quote_accept: (a: number, b: number, c: number) => any;
822
822
  readonly initialize_api: (a: any) => any;
823
+ readonly general_new: () => number;
824
+ readonly __wbg_contact_free: (a: number, b: number) => void;
825
+ readonly contact_new: () => number;
826
+ readonly contact_file: (a: number, b: number, c: number, d: number, e: number) => any;
827
+ readonly contact_upload: (a: number, b: any) => any;
828
+ readonly contact_list: (a: number) => any;
829
+ readonly contact_detail: (a: number, b: number, c: number) => any;
830
+ readonly contact_remove: (a: number, b: number, c: number) => any;
831
+ readonly contact_create: (a: number, b: any) => any;
832
+ readonly contact_edit: (a: number, b: any) => any;
823
833
  readonly task_worker_entry_point: (a: number) => [number, number];
824
834
  readonly ring_core_0_17_14__bn_mul_mont: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
825
835
  readonly rustsecp256k1_v0_10_0_context_create: (a: number) => number;
@@ -834,14 +844,14 @@ export interface InitOutput {
834
844
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
835
845
  readonly __wbindgen_export_6: WebAssembly.Table;
836
846
  readonly __externref_table_dealloc: (a: number) => void;
837
- readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__haac0262e037c701e: (a: number, b: number) => void;
838
- readonly closure4191_externref_shim_multivalue_shim: (a: number, b: number, c: any) => [number, number];
839
- readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h199fd957ff3fa4e6: (a: number, b: number) => void;
840
- readonly closure5777_externref_shim: (a: number, b: number, c: any) => void;
841
- readonly closure5969_externref_shim: (a: number, b: number, c: any) => void;
842
- readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__heddc2b70a452d7e9: (a: number, b: number) => void;
843
- readonly closure6171_externref_shim: (a: number, b: number, c: any) => void;
844
- readonly closure6308_externref_shim: (a: number, b: number, c: any, d: any) => void;
847
+ readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hfd10c66f94c7681f: (a: number, b: number) => void;
848
+ readonly closure4196_externref_shim_multivalue_shim: (a: number, b: number, c: any) => [number, number];
849
+ readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h16c0e63f20cd44fa: (a: number, b: number) => void;
850
+ readonly closure5794_externref_shim: (a: number, b: number, c: any) => void;
851
+ readonly closure5986_externref_shim: (a: number, b: number, c: any) => void;
852
+ readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc67bcbb225f7a8a4: (a: number, b: number) => void;
853
+ readonly closure6188_externref_shim: (a: number, b: number, c: any) => void;
854
+ readonly closure6329_externref_shim: (a: number, b: number, c: any, d: any) => void;
845
855
  readonly __wbindgen_start: () => void;
846
856
  }
847
857
 
package/index.js CHANGED
@@ -228,38 +228,38 @@ export function task_worker_entry_point(ptr) {
228
228
  }
229
229
 
230
230
  function __wbg_adapter_54(arg0, arg1) {
231
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__haac0262e037c701e(arg0, arg1);
231
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hfd10c66f94c7681f(arg0, arg1);
232
232
  }
233
233
 
234
234
  function __wbg_adapter_57(arg0, arg1, arg2) {
235
- const ret = wasm.closure4191_externref_shim_multivalue_shim(arg0, arg1, arg2);
235
+ const ret = wasm.closure4196_externref_shim_multivalue_shim(arg0, arg1, arg2);
236
236
  if (ret[1]) {
237
237
  throw takeFromExternrefTable0(ret[0]);
238
238
  }
239
239
  }
240
240
 
241
241
  function __wbg_adapter_60(arg0, arg1) {
242
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h199fd957ff3fa4e6(arg0, arg1);
242
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h16c0e63f20cd44fa(arg0, arg1);
243
243
  }
244
244
 
245
245
  function __wbg_adapter_63(arg0, arg1, arg2) {
246
- wasm.closure5777_externref_shim(arg0, arg1, arg2);
246
+ wasm.closure5794_externref_shim(arg0, arg1, arg2);
247
247
  }
248
248
 
249
249
  function __wbg_adapter_66(arg0, arg1, arg2) {
250
- wasm.closure5969_externref_shim(arg0, arg1, arg2);
250
+ wasm.closure5986_externref_shim(arg0, arg1, arg2);
251
251
  }
252
252
 
253
253
  function __wbg_adapter_69(arg0, arg1) {
254
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__heddc2b70a452d7e9(arg0, arg1);
254
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc67bcbb225f7a8a4(arg0, arg1);
255
255
  }
256
256
 
257
257
  function __wbg_adapter_72(arg0, arg1, arg2) {
258
- wasm.closure6171_externref_shim(arg0, arg1, arg2);
258
+ wasm.closure6188_externref_shim(arg0, arg1, arg2);
259
259
  }
260
260
 
261
261
  function __wbg_adapter_432(arg0, arg1, arg2, arg3) {
262
- wasm.closure6308_externref_shim(arg0, arg1, arg2, arg3);
262
+ wasm.closure6329_externref_shim(arg0, arg1, arg2, arg3);
263
263
  }
264
264
 
265
265
  /**
@@ -1052,19 +1052,11 @@ export class Notification {
1052
1052
  return ret;
1053
1053
  }
1054
1054
  /**
1055
- * @param {boolean | null} [active]
1056
- * @param {string | null} [reference_id]
1057
- * @param {string | null} [notification_type]
1058
- * @param {bigint | null} [limit]
1059
- * @param {bigint | null} [offset]
1055
+ * @param {NotificationFilters} filters
1060
1056
  * @returns {NotificationWeb[]}
1061
1057
  */
1062
- list(active, reference_id, notification_type, limit, offset) {
1063
- var ptr0 = isLikeNone(reference_id) ? 0 : passStringToWasm0(reference_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1064
- var len0 = WASM_VECTOR_LEN;
1065
- var ptr1 = isLikeNone(notification_type) ? 0 : passStringToWasm0(notification_type, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1066
- var len1 = WASM_VECTOR_LEN;
1067
- const ret = wasm.notification_list(this.__wbg_ptr, isLikeNone(active) ? 0xFFFFFF : active ? 1 : 0, ptr0, len0, ptr1, len1, !isLikeNone(limit), isLikeNone(limit) ? BigInt(0) : limit, !isLikeNone(offset), isLikeNone(offset) ? BigInt(0) : offset);
1058
+ list(filters) {
1059
+ const ret = wasm.notification_list(this.__wbg_ptr, filters);
1068
1060
  return ret;
1069
1061
  }
1070
1062
  /**
@@ -1255,7 +1247,7 @@ function __wbg_get_imports() {
1255
1247
  const ret = arg0.createObjectStore(getStringFromWasm0(arg1, arg2), arg3);
1256
1248
  return ret;
1257
1249
  }, arguments) };
1258
- imports.wbg.__wbg_crypto_ed58b8e10a292839 = function(arg0) {
1250
+ imports.wbg.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
1259
1251
  const ret = arg0.crypto;
1260
1252
  return ret;
1261
1253
  };
@@ -1316,7 +1308,7 @@ function __wbg_get_imports() {
1316
1308
  imports.wbg.__wbg_getRandomValues_3d90134a348e46b3 = function() { return handleError(function (arg0, arg1) {
1317
1309
  globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
1318
1310
  }, arguments) };
1319
- imports.wbg.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return handleError(function (arg0, arg1) {
1311
+ imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
1320
1312
  arg0.getRandomValues(arg1);
1321
1313
  }, arguments) };
1322
1314
  imports.wbg.__wbg_getTime_46267b1c24877e30 = function(arg0) {
@@ -1456,7 +1448,7 @@ function __wbg_get_imports() {
1456
1448
  imports.wbg.__wbg_log_cad59bb680daec67 = function(arg0, arg1, arg2, arg3) {
1457
1449
  console.log(arg0, arg1, arg2, arg3);
1458
1450
  };
1459
- imports.wbg.__wbg_msCrypto_0a36e2ec3a343d26 = function(arg0) {
1451
+ imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
1460
1452
  const ret = arg0.msCrypto;
1461
1453
  return ret;
1462
1454
  };
@@ -1542,7 +1534,7 @@ function __wbg_get_imports() {
1542
1534
  const ret = arg0.next();
1543
1535
  return ret;
1544
1536
  }, arguments) };
1545
- imports.wbg.__wbg_node_02999533c4ea02e3 = function(arg0) {
1537
+ imports.wbg.__wbg_node_905d3e251edff8a2 = function(arg0) {
1546
1538
  const ret = arg0.node;
1547
1539
  return ret;
1548
1540
  };
@@ -1597,7 +1589,7 @@ function __wbg_get_imports() {
1597
1589
  imports.wbg.__wbg_postMessage_83a8d58d3fcb6c13 = function() { return handleError(function (arg0, arg1) {
1598
1590
  arg0.postMessage(arg1);
1599
1591
  }, arguments) };
1600
- imports.wbg.__wbg_process_5c1d670bc53614b8 = function(arg0) {
1592
+ imports.wbg.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
1601
1593
  const ret = arg0.process;
1602
1594
  return ret;
1603
1595
  };
@@ -1620,7 +1612,7 @@ function __wbg_get_imports() {
1620
1612
  const ret = arg0.queueMicrotask;
1621
1613
  return ret;
1622
1614
  };
1623
- imports.wbg.__wbg_randomFillSync_ab2cfe79ebbf2740 = function() { return handleError(function (arg0, arg1) {
1615
+ imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
1624
1616
  arg0.randomFillSync(arg1);
1625
1617
  }, arguments) };
1626
1618
  imports.wbg.__wbg_readyState_7ef6e63c349899ed = function(arg0) {
@@ -1634,7 +1626,7 @@ function __wbg_get_imports() {
1634
1626
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1635
1627
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1636
1628
  };
1637
- imports.wbg.__wbg_require_79b1e9274cde3c87 = function() { return handleError(function () {
1629
+ imports.wbg.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
1638
1630
  const ret = module.require;
1639
1631
  return ret;
1640
1632
  }, arguments) };
@@ -1829,7 +1821,7 @@ function __wbg_get_imports() {
1829
1821
  const ret = arg0.value;
1830
1822
  return ret;
1831
1823
  };
1832
- imports.wbg.__wbg_versions_c71aa1626a93e0a1 = function(arg0) {
1824
+ imports.wbg.__wbg_versions_c01dfd4722a88165 = function(arg0) {
1833
1825
  const ret = arg0.versions;
1834
1826
  return ret;
1835
1827
  };
@@ -1872,32 +1864,32 @@ function __wbg_get_imports() {
1872
1864
  const ret = false;
1873
1865
  return ret;
1874
1866
  };
1875
- imports.wbg.__wbindgen_closure_wrapper21605 = function(arg0, arg1, arg2) {
1876
- const ret = makeMutClosure(arg0, arg1, 4192, __wbg_adapter_57);
1867
+ imports.wbg.__wbindgen_closure_wrapper21622 = function(arg0, arg1, arg2) {
1868
+ const ret = makeMutClosure(arg0, arg1, 4197, __wbg_adapter_57);
1877
1869
  return ret;
1878
1870
  };
1879
- imports.wbg.__wbindgen_closure_wrapper22122 = function(arg0, arg1, arg2) {
1880
- const ret = makeMutClosure(arg0, arg1, 4344, __wbg_adapter_60);
1871
+ imports.wbg.__wbindgen_closure_wrapper22190 = function(arg0, arg1, arg2) {
1872
+ const ret = makeMutClosure(arg0, arg1, 4361, __wbg_adapter_60);
1881
1873
  return ret;
1882
1874
  };
1883
- imports.wbg.__wbindgen_closure_wrapper27382 = function(arg0, arg1, arg2) {
1884
- const ret = makeMutClosure(arg0, arg1, 5778, __wbg_adapter_63);
1875
+ imports.wbg.__wbindgen_closure_wrapper27450 = function(arg0, arg1, arg2) {
1876
+ const ret = makeMutClosure(arg0, arg1, 5795, __wbg_adapter_63);
1885
1877
  return ret;
1886
1878
  };
1887
- imports.wbg.__wbindgen_closure_wrapper28042 = function(arg0, arg1, arg2) {
1888
- const ret = makeMutClosure(arg0, arg1, 5970, __wbg_adapter_66);
1879
+ imports.wbg.__wbindgen_closure_wrapper28104 = function(arg0, arg1, arg2) {
1880
+ const ret = makeMutClosure(arg0, arg1, 5987, __wbg_adapter_66);
1889
1881
  return ret;
1890
1882
  };
1891
- imports.wbg.__wbindgen_closure_wrapper29362 = function(arg0, arg1, arg2) {
1892
- const ret = makeMutClosure(arg0, arg1, 6162, __wbg_adapter_69);
1883
+ imports.wbg.__wbindgen_closure_wrapper29425 = function(arg0, arg1, arg2) {
1884
+ const ret = makeMutClosure(arg0, arg1, 6179, __wbg_adapter_69);
1893
1885
  return ret;
1894
1886
  };
1895
- imports.wbg.__wbindgen_closure_wrapper29387 = function(arg0, arg1, arg2) {
1896
- const ret = makeMutClosure(arg0, arg1, 6172, __wbg_adapter_72);
1887
+ imports.wbg.__wbindgen_closure_wrapper29450 = function(arg0, arg1, arg2) {
1888
+ const ret = makeMutClosure(arg0, arg1, 6189, __wbg_adapter_72);
1897
1889
  return ret;
1898
1890
  };
1899
- imports.wbg.__wbindgen_closure_wrapper3261 = function(arg0, arg1, arg2) {
1900
- const ret = makeMutClosure(arg0, arg1, 1346, __wbg_adapter_54);
1891
+ imports.wbg.__wbindgen_closure_wrapper3268 = function(arg0, arg1, arg2) {
1892
+ const ret = makeMutClosure(arg0, arg1, 1348, __wbg_adapter_54);
1901
1893
  return ret;
1902
1894
  };
1903
1895
  imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
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.3.6",
4
+ "version": "0.3.8",
5
5
  "files": [
6
6
  "index_bg.wasm",
7
7
  "index.js",