@bitcredit/bcr-ebill-wasm 0.3.0 → 0.3.2
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/README.md +7 -0
- package/index.d.ts +300 -229
- package/index.js +59 -62
- package/index_bg.wasm +0 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# @bitcredit/bcr-ebill-wasm
|
|
2
|
+
|
|
3
|
+
WASM-version of the E-Bill API.
|
|
4
|
+
|
|
5
|
+
Check out the docs [here](https://github.com/BitcreditProtocol/E-Bill/blob/master/docs/wasm.md).
|
|
6
|
+
|
|
7
|
+
Check out the changelog [here](https://github.com/BitcreditProtocol/E-Bill/blob/master/CHANGELOG.md).
|
package/index.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
export function initialize_api(cfg: Config): Promise<void>;
|
|
4
|
+
/**
|
|
5
|
+
* Entry point invoked by JavaScript in a worker.
|
|
6
|
+
*/
|
|
7
|
+
export function task_worker_entry_point(ptr: number): void;
|
|
4
8
|
export enum ContactTypeWeb {
|
|
5
9
|
Person = 0,
|
|
6
10
|
Company = 1,
|
|
@@ -9,52 +13,6 @@ export enum IdentityTypeWeb {
|
|
|
9
13
|
Person = 0,
|
|
10
14
|
Company = 1,
|
|
11
15
|
}
|
|
12
|
-
export interface ContactsResponse {
|
|
13
|
-
contacts: ContactWeb[];
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface NewContactPayload {
|
|
17
|
-
t: number;
|
|
18
|
-
node_id: string;
|
|
19
|
-
name: string;
|
|
20
|
-
email: string;
|
|
21
|
-
postal_address: PostalAddressWeb;
|
|
22
|
-
date_of_birth_or_registration: string | undefined;
|
|
23
|
-
country_of_birth_or_registration: string | undefined;
|
|
24
|
-
city_of_birth_or_registration: string | undefined;
|
|
25
|
-
identification_number: string | undefined;
|
|
26
|
-
avatar_file_upload_id: string | undefined;
|
|
27
|
-
proof_document_file_upload_id: string | undefined;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export interface EditContactPayload {
|
|
31
|
-
node_id: string;
|
|
32
|
-
name: string | undefined;
|
|
33
|
-
email: string | undefined;
|
|
34
|
-
postal_address: OptionalPostalAddressWeb;
|
|
35
|
-
date_of_birth_or_registration: string | undefined;
|
|
36
|
-
country_of_birth_or_registration: string | undefined;
|
|
37
|
-
city_of_birth_or_registration: string | undefined;
|
|
38
|
-
identification_number: string | undefined;
|
|
39
|
-
avatar_file_upload_id: string | undefined;
|
|
40
|
-
proof_document_file_upload_id: string | undefined;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export interface ContactWeb {
|
|
44
|
-
t: ContactTypeWeb;
|
|
45
|
-
node_id: string;
|
|
46
|
-
name: string;
|
|
47
|
-
email: string;
|
|
48
|
-
postal_address: PostalAddressWeb;
|
|
49
|
-
date_of_birth_or_registration: string | undefined;
|
|
50
|
-
country_of_birth_or_registration: string | undefined;
|
|
51
|
-
city_of_birth_or_registration: string | undefined;
|
|
52
|
-
identification_number: string | undefined;
|
|
53
|
-
avatar_file: FileWeb | undefined;
|
|
54
|
-
proof_document_file: FileWeb | undefined;
|
|
55
|
-
nostr_relays: string[];
|
|
56
|
-
}
|
|
57
|
-
|
|
58
16
|
export interface BillId {
|
|
59
17
|
id: string;
|
|
60
18
|
}
|
|
@@ -72,7 +30,7 @@ export interface BitcreditBillPayload {
|
|
|
72
30
|
country_of_payment: string;
|
|
73
31
|
city_of_payment: string;
|
|
74
32
|
language: string;
|
|
75
|
-
|
|
33
|
+
file_upload_ids: string[];
|
|
76
34
|
}
|
|
77
35
|
|
|
78
36
|
export interface BillNumbersToWordsForSum {
|
|
@@ -202,41 +160,110 @@ export interface BitcreditEbillQuote {
|
|
|
202
160
|
|
|
203
161
|
export interface BitcreditBillWeb {
|
|
204
162
|
id: string;
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
163
|
+
participants: BillParticipantsWeb;
|
|
164
|
+
data: BillDataWeb;
|
|
165
|
+
status: BillStatusWeb;
|
|
166
|
+
current_waiting_state: BillCurrentWaitingStateWeb | undefined;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export type BillCurrentWaitingStateWeb = { Sell: BillWaitingForSellStateWeb } | { Payment: BillWaitingForPaymentStateWeb } | { Recourse: BillWaitingForRecourseStateWeb };
|
|
170
|
+
|
|
171
|
+
export interface BillWaitingForSellStateWeb {
|
|
172
|
+
time_of_request: number;
|
|
173
|
+
buyer: IdentityPublicDataWeb;
|
|
174
|
+
seller: IdentityPublicDataWeb;
|
|
175
|
+
currency: string;
|
|
176
|
+
sum: string;
|
|
177
|
+
link_to_pay: string;
|
|
178
|
+
address_to_pay: string;
|
|
179
|
+
mempool_link_for_address_to_pay: string;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export interface BillWaitingForPaymentStateWeb {
|
|
183
|
+
time_of_request: number;
|
|
184
|
+
payer: IdentityPublicDataWeb;
|
|
211
185
|
payee: IdentityPublicDataWeb;
|
|
212
|
-
endorsee: IdentityPublicDataWeb | undefined;
|
|
213
186
|
currency: string;
|
|
214
187
|
sum: string;
|
|
215
|
-
maturity_date: string;
|
|
216
|
-
issue_date: string;
|
|
217
|
-
country_of_payment: string;
|
|
218
|
-
city_of_payment: string;
|
|
219
|
-
language: string;
|
|
220
|
-
accepted: boolean;
|
|
221
|
-
endorsed: boolean;
|
|
222
|
-
requested_to_pay: boolean;
|
|
223
|
-
requested_to_accept: boolean;
|
|
224
|
-
paid: boolean;
|
|
225
|
-
waiting_for_payment: boolean;
|
|
226
|
-
buyer: IdentityPublicDataWeb | undefined;
|
|
227
|
-
seller: IdentityPublicDataWeb | undefined;
|
|
228
|
-
in_recourse: boolean;
|
|
229
|
-
recourser: IdentityPublicDataWeb | undefined;
|
|
230
|
-
recoursee: IdentityPublicDataWeb | undefined;
|
|
231
|
-
link_for_buy: string;
|
|
232
188
|
link_to_pay: string;
|
|
233
|
-
link_to_pay_recourse: string;
|
|
234
189
|
address_to_pay: string;
|
|
235
190
|
mempool_link_for_address_to_pay: string;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export interface BillWaitingForRecourseStateWeb {
|
|
194
|
+
time_of_request: number;
|
|
195
|
+
recourser: IdentityPublicDataWeb;
|
|
196
|
+
recoursee: IdentityPublicDataWeb;
|
|
197
|
+
currency: string;
|
|
198
|
+
sum: string;
|
|
199
|
+
link_to_pay: string;
|
|
200
|
+
address_to_pay: string;
|
|
201
|
+
mempool_link_for_address_to_pay: string;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export interface BillStatusWeb {
|
|
205
|
+
acceptance: BillAcceptanceStatusWeb;
|
|
206
|
+
payment: BillPaymentStatusWeb;
|
|
207
|
+
sell: BillSellStatusWeb;
|
|
208
|
+
recourse: BillRecourseStatusWeb;
|
|
209
|
+
redeemed_funds_available: boolean;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
export interface BillAcceptanceStatusWeb {
|
|
213
|
+
time_of_request_to_accept: number | undefined;
|
|
214
|
+
requested_to_accept: boolean;
|
|
215
|
+
accepted: boolean;
|
|
216
|
+
request_to_accept_timed_out: boolean;
|
|
217
|
+
rejected_to_accept: boolean;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
export interface BillPaymentStatusWeb {
|
|
221
|
+
time_of_request_to_pay: number | undefined;
|
|
222
|
+
requested_to_pay: boolean;
|
|
223
|
+
paid: boolean;
|
|
224
|
+
request_to_pay_timed_out: boolean;
|
|
225
|
+
rejected_to_pay: boolean;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export interface BillSellStatusWeb {
|
|
229
|
+
time_of_last_offer_to_sell: number | undefined;
|
|
230
|
+
sold: boolean;
|
|
231
|
+
offered_to_sell: boolean;
|
|
232
|
+
offer_to_sell_timed_out: boolean;
|
|
233
|
+
rejected_offer_to_sell: boolean;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
export interface BillRecourseStatusWeb {
|
|
237
|
+
time_of_last_request_to_recourse: number | undefined;
|
|
238
|
+
recoursed: boolean;
|
|
239
|
+
requested_to_recourse: boolean;
|
|
240
|
+
request_to_recourse_timed_out: boolean;
|
|
241
|
+
rejected_request_to_recourse: boolean;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
export interface BillDataWeb {
|
|
245
|
+
language: string;
|
|
246
|
+
time_of_drawing: number;
|
|
247
|
+
issue_date: string;
|
|
248
|
+
time_of_maturity: number;
|
|
249
|
+
maturity_date: string;
|
|
250
|
+
country_of_issuing: string;
|
|
251
|
+
city_of_issuing: string;
|
|
252
|
+
country_of_payment: string;
|
|
253
|
+
city_of_payment: string;
|
|
254
|
+
currency: string;
|
|
255
|
+
sum: string;
|
|
236
256
|
files: FileWeb[];
|
|
237
257
|
active_notification: NotificationWeb | undefined;
|
|
238
|
-
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export interface BillParticipantsWeb {
|
|
261
|
+
drawee: IdentityPublicDataWeb;
|
|
262
|
+
drawer: IdentityPublicDataWeb;
|
|
263
|
+
payee: IdentityPublicDataWeb;
|
|
264
|
+
endorsee: IdentityPublicDataWeb | undefined;
|
|
239
265
|
endorsements_count: number;
|
|
266
|
+
all_participant_node_ids: string[];
|
|
240
267
|
}
|
|
241
268
|
|
|
242
269
|
export interface LightBitcreditBillWeb {
|
|
@@ -275,90 +302,6 @@ export interface LightIdentityPublicDataWeb {
|
|
|
275
302
|
node_id: string;
|
|
276
303
|
}
|
|
277
304
|
|
|
278
|
-
export interface CompaniesResponse {
|
|
279
|
-
companies: CompanyWeb[];
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
export interface CompanyWeb {
|
|
283
|
-
id: string;
|
|
284
|
-
name: string;
|
|
285
|
-
country_of_registration: string | undefined;
|
|
286
|
-
city_of_registration: string | undefined;
|
|
287
|
-
postal_address: PostalAddressWeb;
|
|
288
|
-
email: string;
|
|
289
|
-
registration_number: string | undefined;
|
|
290
|
-
registration_date: string | undefined;
|
|
291
|
-
proof_of_registration_file: FileWeb | undefined;
|
|
292
|
-
logo_file: FileWeb | undefined;
|
|
293
|
-
signatories: string[];
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
export interface CreateCompanyPayload {
|
|
297
|
-
name: string;
|
|
298
|
-
country_of_registration: string | undefined;
|
|
299
|
-
city_of_registration: string | undefined;
|
|
300
|
-
postal_address: PostalAddressWeb;
|
|
301
|
-
email: string;
|
|
302
|
-
registration_number: string | undefined;
|
|
303
|
-
registration_date: string | undefined;
|
|
304
|
-
proof_of_registration_file_upload_id: string | undefined;
|
|
305
|
-
logo_file_upload_id: string | undefined;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
export interface EditCompanyPayload {
|
|
309
|
-
id: string;
|
|
310
|
-
name: string | undefined;
|
|
311
|
-
email: string | undefined;
|
|
312
|
-
postal_address: OptionalPostalAddressWeb;
|
|
313
|
-
country_of_registration: string | undefined;
|
|
314
|
-
city_of_registration: string | undefined;
|
|
315
|
-
registration_number: string | undefined;
|
|
316
|
-
registration_date: string | undefined;
|
|
317
|
-
logo_file_upload_id: string | undefined;
|
|
318
|
-
proof_of_registration_file_upload_id: string | undefined;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
export interface AddSignatoryPayload {
|
|
322
|
-
id: string;
|
|
323
|
-
signatory_node_id: string;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
export interface RemoveSignatoryPayload {
|
|
327
|
-
id: string;
|
|
328
|
-
signatory_node_id: string;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
export interface ListSignatoriesResponse {
|
|
332
|
-
signatories: SignatoryResponse[];
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
export interface SignatoryResponse {
|
|
336
|
-
t: ContactTypeWeb;
|
|
337
|
-
node_id: string;
|
|
338
|
-
name: string;
|
|
339
|
-
postal_address: PostalAddressWeb;
|
|
340
|
-
avatar_file: FileWeb | undefined;
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
export interface JsErrorData {
|
|
344
|
-
error: string;
|
|
345
|
-
message: string;
|
|
346
|
-
code: number;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
export interface NotificationWeb {
|
|
350
|
-
id: string;
|
|
351
|
-
node_id: string | undefined;
|
|
352
|
-
notification_type: NotificationTypeWeb;
|
|
353
|
-
reference_id: string | undefined;
|
|
354
|
-
description: string;
|
|
355
|
-
datetime: string;
|
|
356
|
-
active: boolean;
|
|
357
|
-
payload: any | undefined;
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
export type NotificationTypeWeb = "General" | "Bill";
|
|
361
|
-
|
|
362
305
|
export interface StatusResponse {
|
|
363
306
|
bitcoin_network: string;
|
|
364
307
|
app_version: string;
|
|
@@ -436,19 +379,10 @@ export interface UploadFile {
|
|
|
436
379
|
name: string;
|
|
437
380
|
}
|
|
438
381
|
|
|
439
|
-
export interface
|
|
382
|
+
export interface UploadFileResponse {
|
|
440
383
|
file_upload_id: string;
|
|
441
384
|
}
|
|
442
385
|
|
|
443
|
-
export interface Config {
|
|
444
|
-
bitcoin_network: string;
|
|
445
|
-
nostr_relay: string;
|
|
446
|
-
surreal_db_connection: string;
|
|
447
|
-
data_dir: string;
|
|
448
|
-
job_runner_initial_delay_seconds: number;
|
|
449
|
-
job_runner_check_interval_seconds: number;
|
|
450
|
-
}
|
|
451
|
-
|
|
452
386
|
export interface SwitchIdentity {
|
|
453
387
|
t: IdentityTypeWeb | undefined;
|
|
454
388
|
node_id: string;
|
|
@@ -498,6 +432,146 @@ export interface SeedPhrase {
|
|
|
498
432
|
seed_phrase: string;
|
|
499
433
|
}
|
|
500
434
|
|
|
435
|
+
export interface CompaniesResponse {
|
|
436
|
+
companies: CompanyWeb[];
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
export interface CompanyWeb {
|
|
440
|
+
id: string;
|
|
441
|
+
name: string;
|
|
442
|
+
country_of_registration: string | undefined;
|
|
443
|
+
city_of_registration: string | undefined;
|
|
444
|
+
postal_address: PostalAddressWeb;
|
|
445
|
+
email: string;
|
|
446
|
+
registration_number: string | undefined;
|
|
447
|
+
registration_date: string | undefined;
|
|
448
|
+
proof_of_registration_file: FileWeb | undefined;
|
|
449
|
+
logo_file: FileWeb | undefined;
|
|
450
|
+
signatories: string[];
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
export interface CreateCompanyPayload {
|
|
454
|
+
name: string;
|
|
455
|
+
country_of_registration: string | undefined;
|
|
456
|
+
city_of_registration: string | undefined;
|
|
457
|
+
postal_address: PostalAddressWeb;
|
|
458
|
+
email: string;
|
|
459
|
+
registration_number: string | undefined;
|
|
460
|
+
registration_date: string | undefined;
|
|
461
|
+
proof_of_registration_file_upload_id: string | undefined;
|
|
462
|
+
logo_file_upload_id: string | undefined;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
export interface EditCompanyPayload {
|
|
466
|
+
id: string;
|
|
467
|
+
name: string | undefined;
|
|
468
|
+
email: string | undefined;
|
|
469
|
+
postal_address: OptionalPostalAddressWeb;
|
|
470
|
+
country_of_registration: string | undefined;
|
|
471
|
+
city_of_registration: string | undefined;
|
|
472
|
+
registration_number: string | undefined;
|
|
473
|
+
registration_date: string | undefined;
|
|
474
|
+
logo_file_upload_id: string | undefined;
|
|
475
|
+
proof_of_registration_file_upload_id: string | undefined;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
export interface AddSignatoryPayload {
|
|
479
|
+
id: string;
|
|
480
|
+
signatory_node_id: string;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
export interface RemoveSignatoryPayload {
|
|
484
|
+
id: string;
|
|
485
|
+
signatory_node_id: string;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
export interface ListSignatoriesResponse {
|
|
489
|
+
signatories: SignatoryResponse[];
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export interface SignatoryResponse {
|
|
493
|
+
t: ContactTypeWeb;
|
|
494
|
+
node_id: string;
|
|
495
|
+
name: string;
|
|
496
|
+
postal_address: PostalAddressWeb;
|
|
497
|
+
avatar_file: FileWeb | undefined;
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
export interface ContactsResponse {
|
|
501
|
+
contacts: ContactWeb[];
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
export interface NewContactPayload {
|
|
505
|
+
t: number;
|
|
506
|
+
node_id: string;
|
|
507
|
+
name: string;
|
|
508
|
+
email: string;
|
|
509
|
+
postal_address: PostalAddressWeb;
|
|
510
|
+
date_of_birth_or_registration: string | undefined;
|
|
511
|
+
country_of_birth_or_registration: string | undefined;
|
|
512
|
+
city_of_birth_or_registration: string | undefined;
|
|
513
|
+
identification_number: string | undefined;
|
|
514
|
+
avatar_file_upload_id: string | undefined;
|
|
515
|
+
proof_document_file_upload_id: string | undefined;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
export interface EditContactPayload {
|
|
519
|
+
node_id: string;
|
|
520
|
+
name: string | undefined;
|
|
521
|
+
email: string | undefined;
|
|
522
|
+
postal_address: OptionalPostalAddressWeb;
|
|
523
|
+
date_of_birth_or_registration: string | undefined;
|
|
524
|
+
country_of_birth_or_registration: string | undefined;
|
|
525
|
+
city_of_birth_or_registration: string | undefined;
|
|
526
|
+
identification_number: string | undefined;
|
|
527
|
+
avatar_file_upload_id: string | undefined;
|
|
528
|
+
proof_document_file_upload_id: string | undefined;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
export interface ContactWeb {
|
|
532
|
+
t: ContactTypeWeb;
|
|
533
|
+
node_id: string;
|
|
534
|
+
name: string;
|
|
535
|
+
email: string;
|
|
536
|
+
postal_address: PostalAddressWeb;
|
|
537
|
+
date_of_birth_or_registration: string | undefined;
|
|
538
|
+
country_of_birth_or_registration: string | undefined;
|
|
539
|
+
city_of_birth_or_registration: string | undefined;
|
|
540
|
+
identification_number: string | undefined;
|
|
541
|
+
avatar_file: FileWeb | undefined;
|
|
542
|
+
proof_document_file: FileWeb | undefined;
|
|
543
|
+
nostr_relays: string[];
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
export interface NotificationWeb {
|
|
547
|
+
id: string;
|
|
548
|
+
node_id: string | undefined;
|
|
549
|
+
notification_type: NotificationTypeWeb;
|
|
550
|
+
reference_id: string | undefined;
|
|
551
|
+
description: string;
|
|
552
|
+
datetime: string;
|
|
553
|
+
active: boolean;
|
|
554
|
+
payload: any | undefined;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
export type NotificationTypeWeb = "General" | "Bill";
|
|
558
|
+
|
|
559
|
+
export type JsErrorType = "NoFileForFileUploadId" | "NotFound" | "Validation" | "ExternalApi" | "Io" | "Crypto" | "Persistence" | "Blockchain" | "Serialization" | "Init" | "NotificationNetwork" | "NotificationMessage" | "InvalidBillType" | "InvalidOperation" | "BillAlreadyAccepted" | "BillAlreadyRequestedToAccept" | "BillNotAccepted" | "CallerIsNotDrawee" | "CallerIsNotHolder" | "CallerIsNotRecoursee" | "CallerIsNotBuyer" | "RequestAlreadyExpired" | "RequestAlreadyRejected" | "BillAlreadyPaid" | "BillWasNotRequestedToAccept" | "BillWasNotRequestedToPay" | "BillWasNotOfferedToSell" | "BillRequestToAcceptDidNotExpireAndWasNotRejected" | "BillRequestToPayDidNotExpireAndWasNotRejected" | "RecourseeNotPastHolder" | "BillWasNotRequestedToRecourse" | "BillIsNotRequestedToRecourseAndWaitingForPayment" | "BillIsNotOfferToSellWaitingForPayment" | "BillSellDataInvalid" | "BillRecourseDataInvalid" | "BillIsRequestedToPayAndWaitingForPayment" | "BillIsOfferedToSellAndWaitingForPayment" | "BillIsInRecourseAndWaitingForPayment" | "BillIsRequestedToPay";
|
|
560
|
+
|
|
561
|
+
export interface JsErrorData {
|
|
562
|
+
error: JsErrorType;
|
|
563
|
+
message: string;
|
|
564
|
+
code: number;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
export interface Config {
|
|
568
|
+
log_level: string | undefined;
|
|
569
|
+
bitcoin_network: string;
|
|
570
|
+
nostr_relay: string;
|
|
571
|
+
job_runner_initial_delay_seconds: number;
|
|
572
|
+
job_runner_check_interval_seconds: number;
|
|
573
|
+
}
|
|
574
|
+
|
|
501
575
|
export class Api {
|
|
502
576
|
private constructor();
|
|
503
577
|
free(): void;
|
|
@@ -517,11 +591,10 @@ export class Bill {
|
|
|
517
591
|
past_endorsees(id: string): Promise<PastEndorseesResponse>;
|
|
518
592
|
bitcoin_key(id: string): Promise<BillCombinedBitcoinKeyWeb>;
|
|
519
593
|
attachment(bill_id: string, file_name: string): Promise<BinaryFileResponse>;
|
|
520
|
-
upload(payload: UploadFile): Promise<
|
|
594
|
+
upload(payload: UploadFile): Promise<UploadFileResponse>;
|
|
521
595
|
search(payload: BillsSearchFilterPayload): Promise<LightBillsResponse>;
|
|
522
596
|
list_light(): Promise<LightBillsResponse>;
|
|
523
597
|
list(): Promise<BillsResponse>;
|
|
524
|
-
list_all(): Promise<BillsResponse>;
|
|
525
598
|
numbers_to_words_for_sum(id: string): Promise<BillNumbersToWordsForSum>;
|
|
526
599
|
detail(id: string): Promise<BitcreditBillWeb>;
|
|
527
600
|
check_payment(): Promise<void>;
|
|
@@ -545,7 +618,7 @@ export class Company {
|
|
|
545
618
|
free(): void;
|
|
546
619
|
static new(): Company;
|
|
547
620
|
file(id: string, file_name: string): Promise<BinaryFileResponse>;
|
|
548
|
-
upload(payload: UploadFile): Promise<
|
|
621
|
+
upload(payload: UploadFile): Promise<UploadFileResponse>;
|
|
549
622
|
list(): Promise<CompaniesResponse>;
|
|
550
623
|
list_signatories(id: string): Promise<ListSignatoriesResponse>;
|
|
551
624
|
detail(id: string): Promise<CompanyWeb>;
|
|
@@ -559,7 +632,7 @@ export class Contact {
|
|
|
559
632
|
free(): void;
|
|
560
633
|
static new(): Contact;
|
|
561
634
|
file(id: string, file_name: string): Promise<BinaryFileResponse>;
|
|
562
|
-
upload(payload: UploadFile): Promise<
|
|
635
|
+
upload(payload: UploadFile): Promise<UploadFileResponse>;
|
|
563
636
|
list(): Promise<ContactsResponse>;
|
|
564
637
|
detail(node_id: string): Promise<ContactWeb>;
|
|
565
638
|
remove(node_id: string): Promise<void>;
|
|
@@ -581,7 +654,7 @@ export class Identity {
|
|
|
581
654
|
free(): void;
|
|
582
655
|
static new(): Identity;
|
|
583
656
|
file(file_name: string): Promise<BinaryFileResponse>;
|
|
584
|
-
upload(payload: UploadFile): Promise<
|
|
657
|
+
upload(payload: UploadFile): Promise<UploadFileResponse>;
|
|
585
658
|
detail(): Promise<any>;
|
|
586
659
|
create(payload: NewIdentityPayload): Promise<void>;
|
|
587
660
|
change(payload: ChangeIdentityPayload): Promise<void>;
|
|
@@ -598,7 +671,6 @@ export class Notification {
|
|
|
598
671
|
list(active?: boolean | null, reference_id?: string | null, notification_type?: string | null, limit?: bigint | null, offset?: bigint | null): Promise<NotificationWeb[]>;
|
|
599
672
|
mark_as_done(notification_id: string): Promise<void>;
|
|
600
673
|
trigger_test_msg(payload: any): Promise<void>;
|
|
601
|
-
trigger_test_notification(node_id: string): Promise<void>;
|
|
602
674
|
}
|
|
603
675
|
export class Quote {
|
|
604
676
|
private constructor();
|
|
@@ -612,26 +684,6 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
|
612
684
|
|
|
613
685
|
export interface InitOutput {
|
|
614
686
|
readonly memory: WebAssembly.Memory;
|
|
615
|
-
readonly __wbg_contact_free: (a: number, b: number) => void;
|
|
616
|
-
readonly contact_new: () => number;
|
|
617
|
-
readonly contact_file: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
618
|
-
readonly contact_upload: (a: number, b: any) => any;
|
|
619
|
-
readonly contact_list: (a: number) => any;
|
|
620
|
-
readonly contact_detail: (a: number, b: number, c: number) => any;
|
|
621
|
-
readonly contact_remove: (a: number, b: number, c: number) => any;
|
|
622
|
-
readonly contact_create: (a: number, b: any) => any;
|
|
623
|
-
readonly contact_edit: (a: number, b: any) => any;
|
|
624
|
-
readonly __wbg_quote_free: (a: number, b: number) => void;
|
|
625
|
-
readonly quote_get: (a: number, b: number, c: number) => any;
|
|
626
|
-
readonly quote_accept: (a: number, b: number, c: number) => any;
|
|
627
|
-
readonly quote_new: () => number;
|
|
628
|
-
readonly __wbg_general_free: (a: number, b: number) => void;
|
|
629
|
-
readonly general_new: () => number;
|
|
630
|
-
readonly general_status: (a: number) => any;
|
|
631
|
-
readonly general_currencies: (a: number) => any;
|
|
632
|
-
readonly general_temp_file: (a: number, b: number, c: number) => any;
|
|
633
|
-
readonly general_overview: (a: number, b: number, c: number) => any;
|
|
634
|
-
readonly general_search: (a: number, b: any) => any;
|
|
635
687
|
readonly __wbg_identity_free: (a: number, b: number) => void;
|
|
636
688
|
readonly identity_new: () => number;
|
|
637
689
|
readonly identity_file: (a: number, b: number, c: number) => any;
|
|
@@ -643,33 +695,10 @@ export interface InitOutput {
|
|
|
643
695
|
readonly identity_switch: (a: number, b: any) => any;
|
|
644
696
|
readonly identity_seed_backup: (a: number) => any;
|
|
645
697
|
readonly identity_seed_recover: (a: number, b: any) => any;
|
|
646
|
-
readonly
|
|
647
|
-
readonly
|
|
648
|
-
readonly
|
|
649
|
-
readonly
|
|
650
|
-
readonly api_identity: () => number;
|
|
651
|
-
readonly api_notification: () => number;
|
|
652
|
-
readonly api_contact: () => number;
|
|
653
|
-
readonly api_company: () => number;
|
|
654
|
-
readonly api_quote: () => number;
|
|
655
|
-
readonly __wbg_company_free: (a: number, b: number) => void;
|
|
656
|
-
readonly company_new: () => number;
|
|
657
|
-
readonly company_file: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
658
|
-
readonly company_upload: (a: number, b: any) => any;
|
|
659
|
-
readonly company_list: (a: number) => any;
|
|
660
|
-
readonly company_list_signatories: (a: number, b: number, c: number) => any;
|
|
661
|
-
readonly company_detail: (a: number, b: number, c: number) => any;
|
|
662
|
-
readonly company_create: (a: number, b: any) => any;
|
|
663
|
-
readonly company_edit: (a: number, b: any) => any;
|
|
664
|
-
readonly company_add_signatory: (a: number, b: any) => any;
|
|
665
|
-
readonly company_remove_signatory: (a: number, b: any) => any;
|
|
666
|
-
readonly notification_subscribe: (a: number, b: any) => any;
|
|
667
|
-
readonly notification_list: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: bigint, i: number, j: bigint) => any;
|
|
668
|
-
readonly notification_mark_as_done: (a: number, b: number, c: number) => any;
|
|
669
|
-
readonly notification_trigger_test_msg: (a: number, b: any) => any;
|
|
670
|
-
readonly notification_trigger_test_notification: (a: number, b: number, c: number) => any;
|
|
671
|
-
readonly notification_new: () => number;
|
|
672
|
-
readonly __wbg_notification_free: (a: number, b: number) => void;
|
|
698
|
+
readonly __wbg_quote_free: (a: number, b: number) => void;
|
|
699
|
+
readonly quote_get: (a: number, b: number, c: number) => any;
|
|
700
|
+
readonly quote_accept: (a: number, b: number, c: number) => any;
|
|
701
|
+
readonly quote_new: () => number;
|
|
673
702
|
readonly __wbg_bill_free: (a: number, b: number) => void;
|
|
674
703
|
readonly bill_new: () => number;
|
|
675
704
|
readonly bill_endorsements: (a: number, b: number, c: number) => any;
|
|
@@ -680,7 +709,6 @@ export interface InitOutput {
|
|
|
680
709
|
readonly bill_search: (a: number, b: any) => any;
|
|
681
710
|
readonly bill_list_light: (a: number) => any;
|
|
682
711
|
readonly bill_list: (a: number) => any;
|
|
683
|
-
readonly bill_list_all: (a: number) => any;
|
|
684
712
|
readonly bill_numbers_to_words_for_sum: (a: number, b: number, c: number) => any;
|
|
685
713
|
readonly bill_detail: (a: number, b: number, c: number) => any;
|
|
686
714
|
readonly bill_check_payment: (a: number) => any;
|
|
@@ -698,6 +726,49 @@ export interface InitOutput {
|
|
|
698
726
|
readonly bill_reject_to_pay_recourse: (a: number, b: any) => any;
|
|
699
727
|
readonly bill_request_to_recourse_bill_payment: (a: number, b: any) => any;
|
|
700
728
|
readonly bill_request_to_recourse_bill_acceptance: (a: number, b: any) => any;
|
|
729
|
+
readonly __wbg_company_free: (a: number, b: number) => void;
|
|
730
|
+
readonly company_file: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
731
|
+
readonly company_upload: (a: number, b: any) => any;
|
|
732
|
+
readonly company_list: (a: number) => any;
|
|
733
|
+
readonly company_list_signatories: (a: number, b: number, c: number) => any;
|
|
734
|
+
readonly company_detail: (a: number, b: number, c: number) => any;
|
|
735
|
+
readonly company_create: (a: number, b: any) => any;
|
|
736
|
+
readonly company_edit: (a: number, b: any) => any;
|
|
737
|
+
readonly company_add_signatory: (a: number, b: any) => any;
|
|
738
|
+
readonly company_remove_signatory: (a: number, b: any) => any;
|
|
739
|
+
readonly __wbg_general_free: (a: number, b: number) => void;
|
|
740
|
+
readonly general_status: (a: number) => any;
|
|
741
|
+
readonly general_currencies: (a: number) => any;
|
|
742
|
+
readonly general_temp_file: (a: number, b: number, c: number) => any;
|
|
743
|
+
readonly general_overview: (a: number, b: number, c: number) => any;
|
|
744
|
+
readonly general_search: (a: number, b: any) => any;
|
|
745
|
+
readonly company_new: () => number;
|
|
746
|
+
readonly general_new: () => number;
|
|
747
|
+
readonly __wbg_api_free: (a: number, b: number) => void;
|
|
748
|
+
readonly api_bill: () => number;
|
|
749
|
+
readonly api_general: () => number;
|
|
750
|
+
readonly api_identity: () => number;
|
|
751
|
+
readonly api_notification: () => number;
|
|
752
|
+
readonly api_contact: () => number;
|
|
753
|
+
readonly api_company: () => number;
|
|
754
|
+
readonly api_quote: () => number;
|
|
755
|
+
readonly __wbg_contact_free: (a: number, b: number) => void;
|
|
756
|
+
readonly contact_new: () => number;
|
|
757
|
+
readonly contact_file: (a: number, b: number, c: number, d: number, e: number) => any;
|
|
758
|
+
readonly contact_upload: (a: number, b: any) => any;
|
|
759
|
+
readonly contact_list: (a: number) => any;
|
|
760
|
+
readonly contact_detail: (a: number, b: number, c: number) => any;
|
|
761
|
+
readonly contact_remove: (a: number, b: number, c: number) => any;
|
|
762
|
+
readonly contact_create: (a: number, b: any) => any;
|
|
763
|
+
readonly contact_edit: (a: number, b: any) => any;
|
|
764
|
+
readonly __wbg_notification_free: (a: number, b: number) => void;
|
|
765
|
+
readonly notification_new: () => number;
|
|
766
|
+
readonly notification_subscribe: (a: number, b: any) => any;
|
|
767
|
+
readonly notification_list: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: bigint, i: number, j: bigint) => any;
|
|
768
|
+
readonly notification_mark_as_done: (a: number, b: number, c: number) => any;
|
|
769
|
+
readonly notification_trigger_test_msg: (a: number, b: any) => any;
|
|
770
|
+
readonly initialize_api: (a: any) => any;
|
|
771
|
+
readonly task_worker_entry_point: (a: number) => [number, number];
|
|
701
772
|
readonly ring_core_0_17_14__bn_mul_mont: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
702
773
|
readonly rustsecp256k1_v0_10_0_context_create: (a: number) => number;
|
|
703
774
|
readonly rustsecp256k1_v0_10_0_context_destroy: (a: number) => void;
|
|
@@ -710,15 +781,15 @@ export interface InitOutput {
|
|
|
710
781
|
readonly __wbindgen_export_4: WebAssembly.Table;
|
|
711
782
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
712
783
|
readonly __wbindgen_export_6: WebAssembly.Table;
|
|
713
|
-
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbe6873c45b27b351: (a: number, b: number) => void;
|
|
714
|
-
readonly closure3939_externref_shim_multivalue_shim: (a: number, b: number, c: any) => [number, number];
|
|
715
784
|
readonly __externref_table_dealloc: (a: number) => void;
|
|
716
|
-
readonly
|
|
717
|
-
readonly
|
|
718
|
-
readonly
|
|
719
|
-
readonly
|
|
720
|
-
readonly
|
|
721
|
-
readonly
|
|
785
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h22fb1808b8ab2d8a: (a: number, b: number) => void;
|
|
786
|
+
readonly closure4143_externref_shim_multivalue_shim: (a: number, b: number, c: any) => [number, number];
|
|
787
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3908efabe940eeba: (a: number, b: number) => void;
|
|
788
|
+
readonly closure5666_externref_shim: (a: number, b: number, c: any) => void;
|
|
789
|
+
readonly closure5903_externref_shim: (a: number, b: number, c: any) => void;
|
|
790
|
+
readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1098717e74983065: (a: number, b: number) => void;
|
|
791
|
+
readonly closure6117_externref_shim: (a: number, b: number, c: any) => void;
|
|
792
|
+
readonly closure6249_externref_shim: (a: number, b: number, c: any, d: any) => void;
|
|
722
793
|
readonly __wbindgen_start: () => void;
|
|
723
794
|
}
|
|
724
795
|
|
package/index.js
CHANGED
|
@@ -211,44 +211,55 @@ export function initialize_api(cfg) {
|
|
|
211
211
|
return ret;
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
-
function __wbg_adapter_54(arg0, arg1) {
|
|
215
|
-
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hbe6873c45b27b351(arg0, arg1);
|
|
216
|
-
}
|
|
217
|
-
|
|
218
214
|
function takeFromExternrefTable0(idx) {
|
|
219
215
|
const value = wasm.__wbindgen_export_4.get(idx);
|
|
220
216
|
wasm.__externref_table_dealloc(idx);
|
|
221
217
|
return value;
|
|
222
218
|
}
|
|
219
|
+
/**
|
|
220
|
+
* Entry point invoked by JavaScript in a worker.
|
|
221
|
+
* @param {number} ptr
|
|
222
|
+
*/
|
|
223
|
+
export function task_worker_entry_point(ptr) {
|
|
224
|
+
const ret = wasm.task_worker_entry_point(ptr);
|
|
225
|
+
if (ret[1]) {
|
|
226
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
function __wbg_adapter_54(arg0, arg1) {
|
|
231
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h22fb1808b8ab2d8a(arg0, arg1);
|
|
232
|
+
}
|
|
233
|
+
|
|
223
234
|
function __wbg_adapter_57(arg0, arg1, arg2) {
|
|
224
|
-
const ret = wasm.
|
|
235
|
+
const ret = wasm.closure4143_externref_shim_multivalue_shim(arg0, arg1, arg2);
|
|
225
236
|
if (ret[1]) {
|
|
226
237
|
throw takeFromExternrefTable0(ret[0]);
|
|
227
238
|
}
|
|
228
239
|
}
|
|
229
240
|
|
|
230
241
|
function __wbg_adapter_60(arg0, arg1) {
|
|
231
|
-
wasm.
|
|
242
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3908efabe940eeba(arg0, arg1);
|
|
232
243
|
}
|
|
233
244
|
|
|
234
245
|
function __wbg_adapter_63(arg0, arg1, arg2) {
|
|
235
|
-
wasm.
|
|
246
|
+
wasm.closure5666_externref_shim(arg0, arg1, arg2);
|
|
236
247
|
}
|
|
237
248
|
|
|
238
249
|
function __wbg_adapter_66(arg0, arg1, arg2) {
|
|
239
|
-
wasm.
|
|
250
|
+
wasm.closure5903_externref_shim(arg0, arg1, arg2);
|
|
240
251
|
}
|
|
241
252
|
|
|
242
253
|
function __wbg_adapter_69(arg0, arg1) {
|
|
243
|
-
wasm.
|
|
254
|
+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h1098717e74983065(arg0, arg1);
|
|
244
255
|
}
|
|
245
256
|
|
|
246
257
|
function __wbg_adapter_72(arg0, arg1, arg2) {
|
|
247
|
-
wasm.
|
|
258
|
+
wasm.closure6117_externref_shim(arg0, arg1, arg2);
|
|
248
259
|
}
|
|
249
260
|
|
|
250
|
-
function
|
|
251
|
-
wasm.
|
|
261
|
+
function __wbg_adapter_430(arg0, arg1, arg2, arg3) {
|
|
262
|
+
wasm.closure6249_externref_shim(arg0, arg1, arg2, arg3);
|
|
252
263
|
}
|
|
253
264
|
|
|
254
265
|
/**
|
|
@@ -421,7 +432,7 @@ export class Bill {
|
|
|
421
432
|
}
|
|
422
433
|
/**
|
|
423
434
|
* @param {UploadFile} payload
|
|
424
|
-
* @returns {
|
|
435
|
+
* @returns {UploadFileResponse}
|
|
425
436
|
*/
|
|
426
437
|
upload(payload) {
|
|
427
438
|
const ret = wasm.bill_upload(this.__wbg_ptr, payload);
|
|
@@ -449,13 +460,6 @@ export class Bill {
|
|
|
449
460
|
const ret = wasm.bill_list(this.__wbg_ptr);
|
|
450
461
|
return ret;
|
|
451
462
|
}
|
|
452
|
-
/**
|
|
453
|
-
* @returns {BillsResponse}
|
|
454
|
-
*/
|
|
455
|
-
list_all() {
|
|
456
|
-
const ret = wasm.bill_list_all(this.__wbg_ptr);
|
|
457
|
-
return ret;
|
|
458
|
-
}
|
|
459
463
|
/**
|
|
460
464
|
* @param {string} id
|
|
461
465
|
* @returns {BillNumbersToWordsForSum}
|
|
@@ -626,7 +630,7 @@ export class Company {
|
|
|
626
630
|
* @returns {Company}
|
|
627
631
|
*/
|
|
628
632
|
static new() {
|
|
629
|
-
const ret = wasm.
|
|
633
|
+
const ret = wasm.bill_new();
|
|
630
634
|
return Company.__wrap(ret);
|
|
631
635
|
}
|
|
632
636
|
/**
|
|
@@ -644,7 +648,7 @@ export class Company {
|
|
|
644
648
|
}
|
|
645
649
|
/**
|
|
646
650
|
* @param {UploadFile} payload
|
|
647
|
-
* @returns {
|
|
651
|
+
* @returns {UploadFileResponse}
|
|
648
652
|
*/
|
|
649
653
|
upload(payload) {
|
|
650
654
|
const ret = wasm.company_upload(this.__wbg_ptr, payload);
|
|
@@ -758,7 +762,7 @@ export class Contact {
|
|
|
758
762
|
}
|
|
759
763
|
/**
|
|
760
764
|
* @param {UploadFile} payload
|
|
761
|
-
* @returns {
|
|
765
|
+
* @returns {UploadFileResponse}
|
|
762
766
|
*/
|
|
763
767
|
upload(payload) {
|
|
764
768
|
const ret = wasm.contact_upload(this.__wbg_ptr, payload);
|
|
@@ -838,7 +842,7 @@ export class General {
|
|
|
838
842
|
* @returns {General}
|
|
839
843
|
*/
|
|
840
844
|
static new() {
|
|
841
|
-
const ret = wasm.
|
|
845
|
+
const ret = wasm.bill_new();
|
|
842
846
|
return General.__wrap(ret);
|
|
843
847
|
}
|
|
844
848
|
/**
|
|
@@ -929,7 +933,7 @@ export class Identity {
|
|
|
929
933
|
}
|
|
930
934
|
/**
|
|
931
935
|
* @param {UploadFile} payload
|
|
932
|
-
* @returns {
|
|
936
|
+
* @returns {UploadFileResponse}
|
|
933
937
|
*/
|
|
934
938
|
upload(payload) {
|
|
935
939
|
const ret = wasm.identity_upload(this.__wbg_ptr, payload);
|
|
@@ -1019,7 +1023,7 @@ export class Notification {
|
|
|
1019
1023
|
* @returns {Notification}
|
|
1020
1024
|
*/
|
|
1021
1025
|
static new() {
|
|
1022
|
-
const ret = wasm.
|
|
1026
|
+
const ret = wasm.notification_new();
|
|
1023
1027
|
return Notification.__wrap(ret);
|
|
1024
1028
|
}
|
|
1025
1029
|
/**
|
|
@@ -1064,16 +1068,6 @@ export class Notification {
|
|
|
1064
1068
|
const ret = wasm.notification_trigger_test_msg(this.__wbg_ptr, payload);
|
|
1065
1069
|
return ret;
|
|
1066
1070
|
}
|
|
1067
|
-
/**
|
|
1068
|
-
* @param {string} node_id
|
|
1069
|
-
* @returns {Promise<void>}
|
|
1070
|
-
*/
|
|
1071
|
-
trigger_test_notification(node_id) {
|
|
1072
|
-
const ptr0 = passStringToWasm0(node_id, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1073
|
-
const len0 = WASM_VECTOR_LEN;
|
|
1074
|
-
const ret = wasm.notification_trigger_test_notification(this.__wbg_ptr, ptr0, len0);
|
|
1075
|
-
return ret;
|
|
1076
|
-
}
|
|
1077
1071
|
}
|
|
1078
1072
|
|
|
1079
1073
|
const QuoteFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -1105,7 +1099,7 @@ export class Quote {
|
|
|
1105
1099
|
* @returns {Quote}
|
|
1106
1100
|
*/
|
|
1107
1101
|
static new() {
|
|
1108
|
-
const ret = wasm.
|
|
1102
|
+
const ret = wasm.identity_new();
|
|
1109
1103
|
return Quote.__wrap(ret);
|
|
1110
1104
|
}
|
|
1111
1105
|
/**
|
|
@@ -1210,11 +1204,11 @@ function __wbg_get_imports() {
|
|
|
1210
1204
|
const ret = clearInterval(arg0);
|
|
1211
1205
|
return ret;
|
|
1212
1206
|
};
|
|
1213
|
-
imports.wbg.
|
|
1207
|
+
imports.wbg.__wbg_clearTimeout_5a54f8841c30079a = function(arg0) {
|
|
1214
1208
|
const ret = clearTimeout(arg0);
|
|
1215
1209
|
return ret;
|
|
1216
1210
|
};
|
|
1217
|
-
imports.wbg.
|
|
1211
|
+
imports.wbg.__wbg_clearTimeout_86721db0036bea98 = function(arg0) {
|
|
1218
1212
|
const ret = clearTimeout(arg0);
|
|
1219
1213
|
return ret;
|
|
1220
1214
|
};
|
|
@@ -1295,14 +1289,14 @@ function __wbg_get_imports() {
|
|
|
1295
1289
|
const ret = arg0.fetch(arg1);
|
|
1296
1290
|
return ret;
|
|
1297
1291
|
};
|
|
1298
|
-
imports.wbg.
|
|
1292
|
+
imports.wbg.__wbg_fetch_d36a73832f0a45e8 = function(arg0) {
|
|
1299
1293
|
const ret = fetch(arg0);
|
|
1300
1294
|
return ret;
|
|
1301
1295
|
};
|
|
1302
|
-
imports.wbg.
|
|
1296
|
+
imports.wbg.__wbg_getRandomValues_21a0191e74d0e1d3 = function() { return handleError(function (arg0, arg1) {
|
|
1303
1297
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1304
1298
|
}, arguments) };
|
|
1305
|
-
imports.wbg.
|
|
1299
|
+
imports.wbg.__wbg_getRandomValues_3d90134a348e46b3 = function() { return handleError(function (arg0, arg1) {
|
|
1306
1300
|
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1307
1301
|
}, arguments) };
|
|
1308
1302
|
imports.wbg.__wbg_getRandomValues_bcb4912f16000dc4 = function() { return handleError(function (arg0, arg1) {
|
|
@@ -1464,7 +1458,7 @@ function __wbg_get_imports() {
|
|
|
1464
1458
|
const a = state0.a;
|
|
1465
1459
|
state0.a = 0;
|
|
1466
1460
|
try {
|
|
1467
|
-
return
|
|
1461
|
+
return __wbg_adapter_430(a, state0.b, arg0, arg1);
|
|
1468
1462
|
} finally {
|
|
1469
1463
|
state0.a = a;
|
|
1470
1464
|
}
|
|
@@ -1535,6 +1529,10 @@ function __wbg_get_imports() {
|
|
|
1535
1529
|
const ret = arg0.node;
|
|
1536
1530
|
return ret;
|
|
1537
1531
|
};
|
|
1532
|
+
imports.wbg.__wbg_now_698fd875f24e9a0f = function() { return handleError(function () {
|
|
1533
|
+
const ret = Date.now();
|
|
1534
|
+
return ret;
|
|
1535
|
+
}, arguments) };
|
|
1538
1536
|
imports.wbg.__wbg_now_71123b9940376874 = function(arg0) {
|
|
1539
1537
|
const ret = arg0.now();
|
|
1540
1538
|
return ret;
|
|
@@ -1543,10 +1541,6 @@ function __wbg_get_imports() {
|
|
|
1543
1541
|
const ret = Date.now();
|
|
1544
1542
|
return ret;
|
|
1545
1543
|
};
|
|
1546
|
-
imports.wbg.__wbg_now_9e28294e2edd6344 = function() { return handleError(function () {
|
|
1547
|
-
const ret = Date.now();
|
|
1548
|
-
return ret;
|
|
1549
|
-
}, arguments) };
|
|
1550
1544
|
imports.wbg.__wbg_now_d18023d54d4e5500 = function(arg0) {
|
|
1551
1545
|
const ret = arg0.now();
|
|
1552
1546
|
return ret;
|
|
@@ -1583,6 +1577,9 @@ function __wbg_get_imports() {
|
|
|
1583
1577
|
const ret = arg0.performance;
|
|
1584
1578
|
return ret;
|
|
1585
1579
|
};
|
|
1580
|
+
imports.wbg.__wbg_postMessage_83a8d58d3fcb6c13 = function() { return handleError(function (arg0, arg1) {
|
|
1581
|
+
arg0.postMessage(arg1);
|
|
1582
|
+
}, arguments) };
|
|
1586
1583
|
imports.wbg.__wbg_process_5c1d670bc53614b8 = function(arg0) {
|
|
1587
1584
|
const ret = arg0.process;
|
|
1588
1585
|
return ret;
|
|
@@ -1642,7 +1639,7 @@ function __wbg_get_imports() {
|
|
|
1642
1639
|
const ret = setInterval(arg0, arg1);
|
|
1643
1640
|
return ret;
|
|
1644
1641
|
}, arguments) };
|
|
1645
|
-
imports.wbg.
|
|
1642
|
+
imports.wbg.__wbg_setTimeout_2e707715f8cc9497 = function(arg0, arg1) {
|
|
1646
1643
|
const ret = setTimeout(arg0, arg1);
|
|
1647
1644
|
return ret;
|
|
1648
1645
|
};
|
|
@@ -1858,32 +1855,32 @@ function __wbg_get_imports() {
|
|
|
1858
1855
|
const ret = false;
|
|
1859
1856
|
return ret;
|
|
1860
1857
|
};
|
|
1861
|
-
imports.wbg.
|
|
1862
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1858
|
+
imports.wbg.__wbindgen_closure_wrapper21843 = function(arg0, arg1, arg2) {
|
|
1859
|
+
const ret = makeMutClosure(arg0, arg1, 4144, __wbg_adapter_57);
|
|
1863
1860
|
return ret;
|
|
1864
1861
|
};
|
|
1865
|
-
imports.wbg.
|
|
1866
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1862
|
+
imports.wbg.__wbindgen_closure_wrapper22360 = function(arg0, arg1, arg2) {
|
|
1863
|
+
const ret = makeMutClosure(arg0, arg1, 4296, __wbg_adapter_60);
|
|
1867
1864
|
return ret;
|
|
1868
1865
|
};
|
|
1869
|
-
imports.wbg.
|
|
1870
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1866
|
+
imports.wbg.__wbindgen_closure_wrapper27496 = function(arg0, arg1, arg2) {
|
|
1867
|
+
const ret = makeMutClosure(arg0, arg1, 5667, __wbg_adapter_63);
|
|
1871
1868
|
return ret;
|
|
1872
1869
|
};
|
|
1873
|
-
imports.wbg.
|
|
1874
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1870
|
+
imports.wbg.__wbindgen_closure_wrapper28173 = function(arg0, arg1, arg2) {
|
|
1871
|
+
const ret = makeMutClosure(arg0, arg1, 5904, __wbg_adapter_66);
|
|
1875
1872
|
return ret;
|
|
1876
1873
|
};
|
|
1877
|
-
imports.wbg.
|
|
1878
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1874
|
+
imports.wbg.__wbindgen_closure_wrapper29490 = function(arg0, arg1, arg2) {
|
|
1875
|
+
const ret = makeMutClosure(arg0, arg1, 6108, __wbg_adapter_69);
|
|
1879
1876
|
return ret;
|
|
1880
1877
|
};
|
|
1881
|
-
imports.wbg.
|
|
1882
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1878
|
+
imports.wbg.__wbindgen_closure_wrapper29515 = function(arg0, arg1, arg2) {
|
|
1879
|
+
const ret = makeMutClosure(arg0, arg1, 6118, __wbg_adapter_72);
|
|
1883
1880
|
return ret;
|
|
1884
1881
|
};
|
|
1885
|
-
imports.wbg.
|
|
1886
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1882
|
+
imports.wbg.__wbindgen_closure_wrapper3240 = function(arg0, arg1, arg2) {
|
|
1883
|
+
const ret = makeMutClosure(arg0, arg1, 1312, __wbg_adapter_54);
|
|
1887
1884
|
return ret;
|
|
1888
1885
|
};
|
|
1889
1886
|
imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
|
package/index_bg.wasm
CHANGED
|
Binary file
|