@bitcredit/bcr-ebill-wasm 0.3.8 → 0.3.10

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022 Bitcredit
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/index.d.ts CHANGED
@@ -13,188 +13,6 @@ 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
-
198
16
  export interface BillId {
199
17
  id: string;
200
18
  }
@@ -532,6 +350,179 @@ export interface LightIdentityPublicDataWeb {
532
350
  node_id: string;
533
351
  }
534
352
 
353
+ export interface CompaniesResponse {
354
+ companies: CompanyWeb[];
355
+ }
356
+
357
+ export interface CompanyWeb {
358
+ id: string;
359
+ name: string;
360
+ country_of_registration: string | undefined;
361
+ city_of_registration: string | undefined;
362
+ postal_address: PostalAddressWeb;
363
+ email: string;
364
+ registration_number: string | undefined;
365
+ registration_date: string | undefined;
366
+ proof_of_registration_file: FileWeb | undefined;
367
+ logo_file: FileWeb | undefined;
368
+ signatories: string[];
369
+ }
370
+
371
+ export interface CreateCompanyPayload {
372
+ name: string;
373
+ country_of_registration: string | undefined;
374
+ city_of_registration: string | undefined;
375
+ postal_address: PostalAddressWeb;
376
+ email: string;
377
+ registration_number: string | undefined;
378
+ registration_date: string | undefined;
379
+ proof_of_registration_file_upload_id: string | undefined;
380
+ logo_file_upload_id: string | undefined;
381
+ }
382
+
383
+ export interface EditCompanyPayload {
384
+ id: string;
385
+ name: string | undefined;
386
+ email: string | undefined;
387
+ postal_address: OptionalPostalAddressWeb;
388
+ country_of_registration: string | undefined;
389
+ city_of_registration: string | undefined;
390
+ registration_number: string | undefined;
391
+ registration_date: string | undefined;
392
+ logo_file_upload_id: string | undefined;
393
+ proof_of_registration_file_upload_id: string | undefined;
394
+ }
395
+
396
+ export interface AddSignatoryPayload {
397
+ id: string;
398
+ signatory_node_id: string;
399
+ }
400
+
401
+ export interface RemoveSignatoryPayload {
402
+ id: string;
403
+ signatory_node_id: string;
404
+ }
405
+
406
+ export interface ListSignatoriesResponse {
407
+ signatories: SignatoryResponse[];
408
+ }
409
+
410
+ export interface SignatoryResponse {
411
+ t: ContactTypeWeb;
412
+ node_id: string;
413
+ name: string;
414
+ postal_address: PostalAddressWeb;
415
+ avatar_file: FileWeb | undefined;
416
+ }
417
+
418
+ export interface ContactsResponse {
419
+ contacts: ContactWeb[];
420
+ }
421
+
422
+ export interface NewContactPayload {
423
+ t: number;
424
+ node_id: string;
425
+ name: string;
426
+ email: string;
427
+ postal_address: PostalAddressWeb;
428
+ date_of_birth_or_registration: string | undefined;
429
+ country_of_birth_or_registration: string | undefined;
430
+ city_of_birth_or_registration: string | undefined;
431
+ identification_number: string | undefined;
432
+ avatar_file_upload_id: string | undefined;
433
+ proof_document_file_upload_id: string | undefined;
434
+ }
435
+
436
+ export interface EditContactPayload {
437
+ node_id: string;
438
+ name: string | undefined;
439
+ email: string | undefined;
440
+ postal_address: OptionalPostalAddressWeb;
441
+ date_of_birth_or_registration: string | undefined;
442
+ country_of_birth_or_registration: string | undefined;
443
+ city_of_birth_or_registration: string | undefined;
444
+ identification_number: string | undefined;
445
+ avatar_file_upload_id: string | undefined;
446
+ proof_document_file_upload_id: string | undefined;
447
+ }
448
+
449
+ export interface ContactWeb {
450
+ t: ContactTypeWeb;
451
+ node_id: string;
452
+ name: string;
453
+ email: string;
454
+ postal_address: PostalAddressWeb;
455
+ date_of_birth_or_registration: string | undefined;
456
+ country_of_birth_or_registration: string | undefined;
457
+ city_of_birth_or_registration: string | undefined;
458
+ identification_number: string | undefined;
459
+ avatar_file: FileWeb | undefined;
460
+ proof_document_file: FileWeb | undefined;
461
+ nostr_relays: string[];
462
+ }
463
+
464
+ export interface SwitchIdentity {
465
+ t: IdentityTypeWeb | undefined;
466
+ node_id: string;
467
+ }
468
+
469
+ export interface NewIdentityPayload {
470
+ name: string;
471
+ email: string;
472
+ postal_address: OptionalPostalAddressWeb;
473
+ date_of_birth: string | undefined;
474
+ country_of_birth: string | undefined;
475
+ city_of_birth: string | undefined;
476
+ identification_number: string | undefined;
477
+ profile_picture_file_upload_id: string | undefined;
478
+ identity_document_file_upload_id: string | undefined;
479
+ }
480
+
481
+ export interface ChangeIdentityPayload {
482
+ name: string | undefined;
483
+ email: string | undefined;
484
+ postal_address: OptionalPostalAddressWeb;
485
+ date_of_birth: string | undefined;
486
+ country_of_birth: string | undefined;
487
+ city_of_birth: string | undefined;
488
+ identification_number: string | undefined;
489
+ profile_picture_file_upload_id: string | undefined;
490
+ identity_document_file_upload_id: string | undefined;
491
+ }
492
+
493
+ export interface IdentityWeb {
494
+ node_id: string;
495
+ name: string;
496
+ email: string;
497
+ bitcoin_public_key: string;
498
+ npub: string;
499
+ postal_address: OptionalPostalAddressWeb;
500
+ date_of_birth: string | undefined;
501
+ country_of_birth: string | undefined;
502
+ city_of_birth: string | undefined;
503
+ identification_number: string | undefined;
504
+ profile_picture_file: FileWeb | undefined;
505
+ identity_document_file: FileWeb | undefined;
506
+ nostr_relay: string | undefined;
507
+ }
508
+
509
+ export interface SeedPhrase {
510
+ seed_phrase: string;
511
+ }
512
+
513
+ export interface NotificationWeb {
514
+ id: string;
515
+ node_id: string | undefined;
516
+ notification_type: NotificationTypeWeb;
517
+ reference_id: string | undefined;
518
+ description: string;
519
+ datetime: string;
520
+ active: boolean;
521
+ payload: any | undefined;
522
+ }
523
+
524
+ export type NotificationTypeWeb = "General" | "Bill";
525
+
535
526
  export interface StatusResponse {
536
527
  bitcoin_network: string;
537
528
  app_version: string;
@@ -622,7 +613,7 @@ export interface UploadFileResponse {
622
613
  file_upload_id: string;
623
614
  }
624
615
 
625
- export type JsErrorType = "FieldEmpty" | "InvalidSum" | "InvalidCurrency" | "InvalidPaymentAddress" | "InvalidContentType" | "InvalidContactType" | "InvalidDate" | "IssueDateAfterMaturityDate" | "MaturityDateInThePast" | "InvalidFileUploadId" | "InvalidBillType" | "DraweeCantBePayee" | "EndorserCantBeEndorsee" | "BuyerCantBeSeller" | "RecourserCantBeRecoursee" | "DraweeNotInContacts" | "PayeeNotInContacts" | "MintNotInContacts" | "BuyerNotInContacts" | "EndorseeNotInContacts" | "RecourseeNotInContacts" | "NoFileForFileUploadId" | "NotFound" | "ExternalApi" | "Io" | "Crypto" | "Persistence" | "Blockchain" | "Serialization" | "Init" | "NotificationNetwork" | "NotificationMessage" | "InvalidOperation" | "BillAlreadyAccepted" | "BillWasRejectedToAccept" | "BillAcceptanceExpired" | "BillWasRejectedToPay" | "BillPaymentExpired" | "BillWasRejectedToRecourse" | "BillRequestToRecourseExpired" | "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" | "BillRequestedToPayBeforeMaturityDate" | "DrawerIsNotBillIssuer" | "SignatoryNotInContacts" | "SignatoryAlreadySignatory" | "CantRemoveLastSignatory" | "NotASignatory" | "InvalidSecp256k1Key" | "FileIsTooBig" | "InvalidFileName" | "UnknownNodeId" | "BackupNotSupported" | "CallerMustBeSignatory";
616
+ export type JsErrorType = "FieldEmpty" | "InvalidSum" | "InvalidCurrency" | "InvalidPaymentAddress" | "InvalidContentType" | "InvalidContactType" | "InvalidDate" | "IssueDateAfterMaturityDate" | "MaturityDateInThePast" | "InvalidFileUploadId" | "InvalidBillType" | "DraweeCantBePayee" | "EndorserCantBeEndorsee" | "BuyerCantBeSeller" | "RecourserCantBeRecoursee" | "DraweeNotInContacts" | "PayeeNotInContacts" | "MintNotInContacts" | "BuyerNotInContacts" | "EndorseeNotInContacts" | "RecourseeNotInContacts" | "NoFileForFileUploadId" | "NotFound" | "ExternalApi" | "Io" | "Crypto" | "Persistence" | "Blockchain" | "Serialization" | "Init" | "NotificationNetwork" | "NotificationMessage" | "InvalidOperation" | "BillAlreadyAccepted" | "BillWasRejectedToAccept" | "BillAcceptanceExpired" | "BillWasRejectedToPay" | "BillPaymentExpired" | "BillWasRejectedToRecourse" | "BillRequestToRecourseExpired" | "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" | "DrawerIsNotBillIssuer" | "SignatoryNotInContacts" | "SignatoryAlreadySignatory" | "CantRemoveLastSignatory" | "NotASignatory" | "InvalidSecp256k1Key" | "FileIsTooBig" | "InvalidFileName" | "UnknownNodeId" | "BackupNotSupported" | "CallerMustBeSignatory";
626
617
 
627
618
  export interface JsErrorData {
628
619
  error: JsErrorType;
@@ -630,6 +621,15 @@ export interface JsErrorData {
630
621
  code: number;
631
622
  }
632
623
 
624
+ export interface Config {
625
+ log_level: string | undefined;
626
+ bitcoin_network: string;
627
+ esplora_base_url: string;
628
+ nostr_relay: string;
629
+ job_runner_initial_delay_seconds: number;
630
+ job_runner_check_interval_seconds: number;
631
+ }
632
+
633
633
  export class Api {
634
634
  private constructor();
635
635
  free(): void;
@@ -744,8 +744,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
744
744
 
745
745
  export interface InitOutput {
746
746
  readonly memory: WebAssembly.Memory;
747
- readonly __wbg_bill_free: (a: number, b: number) => void;
748
- readonly bill_new: () => number;
749
747
  readonly bill_endorsements: (a: number, b: number, c: number) => any;
750
748
  readonly bill_past_payments: (a: number, b: number, c: number) => any;
751
749
  readonly bill_past_endorsees: (a: number, b: number, c: number) => any;
@@ -773,7 +771,27 @@ export interface InitOutput {
773
771
  readonly bill_request_to_recourse_bill_payment: (a: number, b: any) => any;
774
772
  readonly bill_request_to_recourse_bill_acceptance: (a: number, b: any) => any;
775
773
  readonly bill_clear_bill_cache: (a: number) => any;
776
- readonly __wbg_identity_free: (a: number, b: number) => void;
774
+ readonly company_file: (a: number, b: number, c: number, d: number, e: number) => any;
775
+ readonly company_upload: (a: number, b: any) => any;
776
+ readonly company_list: (a: number) => any;
777
+ readonly company_list_signatories: (a: number, b: number, c: number) => any;
778
+ readonly company_detail: (a: number, b: number, c: number) => any;
779
+ readonly company_create: (a: number, b: any) => any;
780
+ readonly company_edit: (a: number, b: any) => any;
781
+ readonly company_add_signatory: (a: number, b: any) => any;
782
+ readonly company_remove_signatory: (a: number, b: any) => any;
783
+ readonly contact_file: (a: number, b: number, c: number, d: number, e: number) => any;
784
+ readonly contact_upload: (a: number, b: any) => any;
785
+ readonly contact_list: (a: number) => any;
786
+ readonly contact_detail: (a: number, b: number, c: number) => any;
787
+ readonly contact_remove: (a: number, b: number, c: number) => any;
788
+ readonly contact_create: (a: number, b: any) => any;
789
+ readonly contact_edit: (a: number, b: any) => any;
790
+ readonly general_status: (a: number) => any;
791
+ readonly general_currencies: (a: number) => any;
792
+ readonly general_temp_file: (a: number, b: number, c: number) => any;
793
+ readonly general_overview: (a: number, b: number, c: number) => any;
794
+ readonly general_search: (a: number, b: any) => any;
777
795
  readonly identity_file: (a: number, b: number, c: number) => any;
778
796
  readonly identity_upload: (a: number, b: any) => any;
779
797
  readonly identity_detail: (a: number) => any;
@@ -783,59 +801,41 @@ export interface InitOutput {
783
801
  readonly identity_switch: (a: number, b: any) => any;
784
802
  readonly identity_seed_backup: (a: number) => any;
785
803
  readonly identity_seed_recover: (a: number, b: any) => any;
786
- readonly __wbg_notification_free: (a: number, b: number) => void;
787
804
  readonly notification_subscribe: (a: number, b: any) => any;
788
805
  readonly notification_list: (a: number, b: any) => any;
789
806
  readonly notification_mark_as_done: (a: number, b: number, c: number) => any;
790
807
  readonly notification_trigger_test_msg: (a: number, b: any) => any;
791
- readonly identity_new: () => number;
792
- readonly notification_new: () => number;
808
+ readonly quote_get: (a: number, b: number, c: number) => any;
809
+ readonly quote_accept: (a: number, b: number, c: number) => any;
793
810
  readonly __wbg_api_free: (a: number, b: number) => void;
794
811
  readonly api_bill: () => number;
812
+ readonly initialize_api: (a: any) => any;
813
+ readonly ring_core_0_17_14__bn_mul_mont: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
814
+ readonly rustsecp256k1_v0_10_0_context_create: (a: number) => number;
815
+ readonly rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
816
+ readonly rustsecp256k1_v0_10_0_default_illegal_callback_fn: (a: number, b: number) => void;
817
+ readonly rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
818
+ readonly task_worker_entry_point: (a: number) => [number, number];
819
+ readonly company_new: () => number;
820
+ readonly contact_new: () => number;
821
+ readonly general_new: () => number;
822
+ readonly identity_new: () => number;
823
+ readonly notification_new: () => number;
824
+ readonly quote_new: () => number;
825
+ readonly bill_new: () => number;
795
826
  readonly api_general: () => number;
796
827
  readonly api_identity: () => number;
797
828
  readonly api_notification: () => number;
798
829
  readonly api_contact: () => number;
799
830
  readonly api_company: () => number;
800
831
  readonly api_quote: () => number;
832
+ readonly __wbg_notification_free: (a: number, b: number) => void;
833
+ readonly __wbg_bill_free: (a: number, b: number) => void;
834
+ readonly __wbg_identity_free: (a: number, b: number) => void;
801
835
  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;
805
836
  readonly __wbg_company_free: (a: number, b: number) => void;
806
- readonly company_new: () => number;
807
- readonly company_file: (a: number, b: number, c: number, d: number, e: number) => any;
808
- readonly company_upload: (a: number, b: any) => any;
809
- readonly company_list: (a: number) => any;
810
- readonly company_list_signatories: (a: number, b: number, c: number) => any;
811
- readonly company_detail: (a: number, b: number, c: number) => any;
812
- readonly company_create: (a: number, b: any) => any;
813
- readonly company_edit: (a: number, b: any) => any;
814
- readonly company_add_signatory: (a: number, b: any) => any;
815
- readonly company_remove_signatory: (a: number, b: any) => any;
816
- readonly __wbg_general_free: (a: number, b: number) => void;
817
- readonly general_status: (a: number) => any;
818
- readonly general_currencies: (a: number) => any;
819
- readonly general_temp_file: (a: number, b: number, c: number) => any;
820
- readonly general_overview: (a: number, b: number, c: number) => any;
821
- readonly general_search: (a: number, b: any) => any;
822
- readonly initialize_api: (a: any) => any;
823
- readonly general_new: () => number;
824
837
  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;
833
- readonly task_worker_entry_point: (a: number) => [number, number];
834
- readonly ring_core_0_17_14__bn_mul_mont: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
835
- readonly rustsecp256k1_v0_10_0_context_create: (a: number) => number;
836
- readonly rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
837
- readonly rustsecp256k1_v0_10_0_default_illegal_callback_fn: (a: number, b: number) => void;
838
- readonly rustsecp256k1_v0_10_0_default_error_callback_fn: (a: number, b: number) => void;
838
+ readonly __wbg_general_free: (a: number, b: number) => void;
839
839
  readonly __wbindgen_malloc: (a: number, b: number) => number;
840
840
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
841
841
  readonly __wbindgen_exn_store: (a: number) => void;
@@ -844,14 +844,10 @@ export interface InitOutput {
844
844
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
845
845
  readonly __wbindgen_export_6: WebAssembly.Table;
846
846
  readonly __externref_table_dealloc: (a: number) => 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;
847
+ readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4f8a4b89d400fd7b: (a: number, b: number) => void;
848
+ readonly closure247_externref_shim: (a: number, b: number, c: any) => void;
849
+ readonly closure726_externref_shim_multivalue_shim: (a: number, b: number, c: any) => [number, number];
850
+ readonly closure499_externref_shim: (a: number, b: number, c: any, d: any) => void;
855
851
  readonly __wbindgen_start: () => void;
856
852
  }
857
853
 
package/index.js CHANGED
@@ -228,38 +228,22 @@ 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__hfd10c66f94c7681f(arg0, arg1);
231
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h4f8a4b89d400fd7b(arg0, arg1);
232
232
  }
233
233
 
234
234
  function __wbg_adapter_57(arg0, arg1, arg2) {
235
- const ret = wasm.closure4196_externref_shim_multivalue_shim(arg0, arg1, arg2);
235
+ wasm.closure247_externref_shim(arg0, arg1, arg2);
236
+ }
237
+
238
+ function __wbg_adapter_64(arg0, arg1, arg2) {
239
+ const ret = wasm.closure726_externref_shim_multivalue_shim(arg0, arg1, arg2);
236
240
  if (ret[1]) {
237
241
  throw takeFromExternrefTable0(ret[0]);
238
242
  }
239
243
  }
240
244
 
241
- function __wbg_adapter_60(arg0, arg1) {
242
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h16c0e63f20cd44fa(arg0, arg1);
243
- }
244
-
245
- function __wbg_adapter_63(arg0, arg1, arg2) {
246
- wasm.closure5794_externref_shim(arg0, arg1, arg2);
247
- }
248
-
249
- function __wbg_adapter_66(arg0, arg1, arg2) {
250
- wasm.closure5986_externref_shim(arg0, arg1, arg2);
251
- }
252
-
253
- function __wbg_adapter_69(arg0, arg1) {
254
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hc67bcbb225f7a8a4(arg0, arg1);
255
- }
256
-
257
- function __wbg_adapter_72(arg0, arg1, arg2) {
258
- wasm.closure6188_externref_shim(arg0, arg1, arg2);
259
- }
260
-
261
- function __wbg_adapter_432(arg0, arg1, arg2, arg3) {
262
- wasm.closure6329_externref_shim(arg0, arg1, arg2, arg3);
245
+ function __wbg_adapter_241(arg0, arg1, arg2, arg3) {
246
+ wasm.closure499_externref_shim(arg0, arg1, arg2, arg3);
263
247
  }
264
248
 
265
249
  /**
@@ -384,7 +368,7 @@ export class Bill {
384
368
  * @returns {Bill}
385
369
  */
386
370
  static new() {
387
- const ret = wasm.bill_new();
371
+ const ret = wasm.api_bill();
388
372
  return Bill.__wrap(ret);
389
373
  }
390
374
  /**
@@ -647,7 +631,7 @@ export class Company {
647
631
  * @returns {Company}
648
632
  */
649
633
  static new() {
650
- const ret = wasm.company_new();
634
+ const ret = wasm.api_bill();
651
635
  return Company.__wrap(ret);
652
636
  }
653
637
  /**
@@ -761,7 +745,7 @@ export class Contact {
761
745
  * @returns {Contact}
762
746
  */
763
747
  static new() {
764
- const ret = wasm.contact_new();
748
+ const ret = wasm.api_bill();
765
749
  return Contact.__wrap(ret);
766
750
  }
767
751
  /**
@@ -859,7 +843,7 @@ export class General {
859
843
  * @returns {General}
860
844
  */
861
845
  static new() {
862
- const ret = wasm.company_new();
846
+ const ret = wasm.api_bill();
863
847
  return General.__wrap(ret);
864
848
  }
865
849
  /**
@@ -935,7 +919,7 @@ export class Identity {
935
919
  * @returns {Identity}
936
920
  */
937
921
  static new() {
938
- const ret = wasm.bill_new();
922
+ const ret = wasm.api_bill();
939
923
  return Identity.__wrap(ret);
940
924
  }
941
925
  /**
@@ -1040,7 +1024,7 @@ export class Notification {
1040
1024
  * @returns {Notification}
1041
1025
  */
1042
1026
  static new() {
1043
- const ret = wasm.bill_new();
1027
+ const ret = wasm.api_bill();
1044
1028
  return Notification.__wrap(ret);
1045
1029
  }
1046
1030
  /**
@@ -1108,7 +1092,7 @@ export class Quote {
1108
1092
  * @returns {Quote}
1109
1093
  */
1110
1094
  static new() {
1111
- const ret = wasm.quote_new();
1095
+ const ret = wasm.api_bill();
1112
1096
  return Quote.__wrap(ret);
1113
1097
  }
1114
1098
  /**
@@ -1467,7 +1451,7 @@ function __wbg_get_imports() {
1467
1451
  const a = state0.a;
1468
1452
  state0.a = 0;
1469
1453
  try {
1470
- return __wbg_adapter_432(a, state0.b, arg0, arg1);
1454
+ return __wbg_adapter_241(a, state0.b, arg0, arg1);
1471
1455
  } finally {
1472
1456
  state0.a = a;
1473
1457
  }
@@ -1864,32 +1848,32 @@ function __wbg_get_imports() {
1864
1848
  const ret = false;
1865
1849
  return ret;
1866
1850
  };
1867
- imports.wbg.__wbindgen_closure_wrapper21622 = function(arg0, arg1, arg2) {
1868
- const ret = makeMutClosure(arg0, arg1, 4197, __wbg_adapter_57);
1851
+ imports.wbg.__wbindgen_closure_wrapper1478 = function(arg0, arg1, arg2) {
1852
+ const ret = makeMutClosure(arg0, arg1, 488, __wbg_adapter_54);
1869
1853
  return ret;
1870
1854
  };
1871
- imports.wbg.__wbindgen_closure_wrapper22190 = function(arg0, arg1, arg2) {
1872
- const ret = makeMutClosure(arg0, arg1, 4361, __wbg_adapter_60);
1855
+ imports.wbg.__wbindgen_closure_wrapper18013 = function(arg0, arg1, arg2) {
1856
+ const ret = makeMutClosure(arg0, arg1, 488, __wbg_adapter_57);
1873
1857
  return ret;
1874
1858
  };
1875
- imports.wbg.__wbindgen_closure_wrapper27450 = function(arg0, arg1, arg2) {
1876
- const ret = makeMutClosure(arg0, arg1, 5795, __wbg_adapter_63);
1859
+ imports.wbg.__wbindgen_closure_wrapper18054 = function(arg0, arg1, arg2) {
1860
+ const ret = makeMutClosure(arg0, arg1, 488, __wbg_adapter_54);
1877
1861
  return ret;
1878
1862
  };
1879
- imports.wbg.__wbindgen_closure_wrapper28104 = function(arg0, arg1, arg2) {
1880
- const ret = makeMutClosure(arg0, arg1, 5987, __wbg_adapter_66);
1863
+ imports.wbg.__wbindgen_closure_wrapper2166 = function(arg0, arg1, arg2) {
1864
+ const ret = makeMutClosure(arg0, arg1, 248, __wbg_adapter_57);
1881
1865
  return ret;
1882
1866
  };
1883
- imports.wbg.__wbindgen_closure_wrapper29425 = function(arg0, arg1, arg2) {
1884
- const ret = makeMutClosure(arg0, arg1, 6179, __wbg_adapter_69);
1867
+ imports.wbg.__wbindgen_closure_wrapper7700 = function(arg0, arg1, arg2) {
1868
+ const ret = makeMutClosure(arg0, arg1, 488, __wbg_adapter_57);
1885
1869
  return ret;
1886
1870
  };
1887
- imports.wbg.__wbindgen_closure_wrapper29450 = function(arg0, arg1, arg2) {
1888
- const ret = makeMutClosure(arg0, arg1, 6189, __wbg_adapter_72);
1871
+ imports.wbg.__wbindgen_closure_wrapper8707 = function(arg0, arg1, arg2) {
1872
+ const ret = makeMutClosure(arg0, arg1, 488, __wbg_adapter_54);
1889
1873
  return ret;
1890
1874
  };
1891
- imports.wbg.__wbindgen_closure_wrapper3268 = function(arg0, arg1, arg2) {
1892
- const ret = makeMutClosure(arg0, arg1, 1348, __wbg_adapter_54);
1875
+ imports.wbg.__wbindgen_closure_wrapper8726 = function(arg0, arg1, arg2) {
1876
+ const ret = makeMutClosure(arg0, arg1, 248, __wbg_adapter_64);
1893
1877
  return ret;
1894
1878
  };
1895
1879
  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.8",
4
+ "version": "0.3.10",
5
5
  "files": [
6
6
  "index_bg.wasm",
7
7
  "index.js",