bkper-js 1.47.2 → 1.47.3

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/lib/index.d.ts CHANGED
@@ -7,10 +7,9 @@
7
7
  */
8
8
 
9
9
  /**
10
- *
11
10
  * This class defines an [Account](https://en.wikipedia.org/wiki/Account_(bookkeeping)) of a [[Book]].
12
11
  *
13
- * It mantains a balance of all amount [credited and debited](http://en.wikipedia.org/wiki/Debits_and_credits) in it by [[Transactions]].
12
+ * It maintains a balance of all amount [credited and debited](http://en.wikipedia.org/wiki/Debits_and_credits) in it by [[Transactions]].
14
13
  *
15
14
  * An Account can be grouped by [[Groups]].
16
15
  *
@@ -21,59 +20,75 @@ export declare class Account {
21
20
 
22
21
  constructor(book: Book, payload?: bkper.Account);
23
22
  /**
23
+ * Gets an immutable copy of the JSON payload.
24
+ *
24
25
  * @returns An immutable copy of the json payload
25
26
  */
26
27
  json(): bkper.Account;
27
28
  /**
28
- * Gets the account internal id.
29
+ * Gets the Account internal id.
30
+ *
31
+ * @returns The Account internal id
29
32
  */
30
33
  getId(): string | undefined;
31
34
  /**
32
- * Gets the account name.
35
+ * Gets the Account name.
36
+ *
37
+ * @returns The Account name
33
38
  */
34
39
  getName(): string | undefined;
35
40
  /**
36
- *
37
41
  * Sets the name of the Account.
38
42
  *
39
- * @returns This Account, for chainning.
43
+ * @param name - The name to set
44
+ *
45
+ * @returns This Account, for chaining
40
46
  */
41
47
  setName(name: string): Account;
42
48
  /**
43
- * @returns The name of this account without spaces or special characters.
49
+ * Gets the normalized name of this Account without spaces or special characters.
50
+ *
51
+ * @returns The name of this Account without spaces or special characters
44
52
  */
45
53
  getNormalizedName(): string;
46
54
  /**
47
- * @returns The type for of this account.
55
+ * Gets the type of this Account.
56
+ *
57
+ * @returns The [[AccountType]] of this Account
48
58
  */
49
59
  getType(): AccountType;
50
60
  /**
51
- *
52
61
  * Sets the type of the Account.
53
62
  *
54
- * @returns This Account, for chainning
63
+ * @param type - The [[AccountType]] to set
64
+ *
65
+ * @returns This Account, for chaining
55
66
  */
56
67
  setType(type: AccountType): Account;
57
68
  /**
58
69
  * Gets the custom properties stored in this Account.
70
+ *
71
+ * @returns The custom properties object
59
72
  */
60
73
  getProperties(): {
61
74
  [key: string]: string;
62
75
  };
63
76
  /**
64
- * Sets the custom properties of the Account
77
+ * Sets the custom properties of the Account.
65
78
  *
66
79
  * @param properties - Object with key/value pair properties
67
80
  *
68
- * @returns This Account, for chainning.
81
+ * @returns This Account, for chaining
69
82
  */
70
83
  setProperties(properties: {
71
84
  [key: string]: string;
72
85
  }): Account;
73
86
  /**
74
- * Gets the property value for given keys. First property found will be retrieved
87
+ * Gets the property value for given keys. First property found will be retrieved.
75
88
  *
76
89
  * @param keys - The property key
90
+ *
91
+ * @returns The property value or undefined if not found
77
92
  */
78
93
  getProperty(...keys: string[]): string | undefined;
79
94
  /**
@@ -82,116 +97,145 @@ export declare class Account {
82
97
  * @param key - The property key
83
98
  * @param value - The property value
84
99
  *
85
- * @returns This Account, for chainning.
100
+ * @returns This Account, for chaining
86
101
  */
87
102
  setProperty(key: string, value: string | null): Account;
88
103
  /**
89
- * Delete a custom property
104
+ * Deletes a custom property.
90
105
  *
91
106
  * @param key - The property key
92
107
  *
93
- * @returns This Account, for chainning.
108
+ * @returns This Account, for chaining
94
109
  */
95
110
  deleteProperty(key: string): Account;
96
111
  /**
97
112
  * Gets the balance based on credit nature of this Account.
113
+ *
98
114
  * @deprecated Use `Book.getBalancesReport` instead.
99
- * @returns The balance of this account.
115
+ *
116
+ * @returns The balance of this Account.
100
117
  */
101
118
  getBalance(): Amount;
102
119
  /**
103
120
  * Gets the raw balance, no matter credit nature of this Account.
121
+ *
104
122
  * @deprecated Use `Book.getBalancesReport` instead.
105
- * @returns The balance of this account.
123
+ *
124
+ * @returns The balance of this Account.
106
125
  */
107
126
  getBalanceRaw(): Amount;
108
127
  /**
109
- * Tell if this account is archived.
128
+ * Tells if this Account is archived.
129
+ *
130
+ * @returns True if the Account is archived
110
131
  */
111
132
  isArchived(): boolean | undefined;
112
133
  /**
113
- * Set account archived/unarchived.
134
+ * Sets Account archived/unarchived.
135
+ *
136
+ * @param archived - True to archive, false to unarchive
114
137
  *
115
- * @returns This Account, for chainning.
138
+ * @returns This Account, for chaining
116
139
  */
117
140
  setArchived(archived: boolean): Account;
118
141
  /**
119
- * Tell if the Account has any transaction already posted.
142
+ * Tells if the Account has any transaction already posted.
120
143
  *
121
144
  * Accounts with transaction posted, even with zero balance, can only be archived.
145
+ *
146
+ * @returns True if the Account has transactions posted
122
147
  */
123
148
  hasTransactionPosted(): boolean | undefined;
124
149
  /**
125
- *
126
- * Tell if the account is permanent.
150
+ * Tells if the Account is permanent.
127
151
  *
128
152
  * Permanent Accounts are the ones which final balance is relevant and keep its balances over time.
129
153
  *
130
- * They are also called [Real Accounts](http://en.wikipedia.org/wiki/Account_(accountancy)#Based_on_periodicity_of_flow)
154
+ * They are also called [Real Accounts](http://en.wikipedia.org/wiki/Account_(Accountancy)#Based_on_periodicity_of_flow)
131
155
  *
132
- * Usually represents assets or tangibles, capable of being perceived by the senses or the mind, like bank accounts, money, debts and so on.
156
+ * Usually represents assets or tangibles, capable of being perceived by the senses or the mind, like bank Accounts, money, debts and so on.
133
157
  *
134
158
  * @returns True if its a permanent Account
135
159
  */
136
160
  isPermanent(): boolean | undefined;
137
161
  /**
138
- * Tell if the account has a Credit nature or Debit otherwise
162
+ * Tells if the Account has a Credit nature or Debit otherwise.
139
163
  *
140
- * Credit accounts are just for representation purposes. It increase or decrease the absolute balance. It doesn't affect the overall balance or the behavior of the system.
164
+ * Credit Accounts are just for representation purposes. It increase or decrease the absolute balance. It doesn't affect the overall balance or the behavior of the system.
141
165
  *
142
- * The absolute balance of credit accounts increase when it participate as a credit/origin in a transaction. Its usually for Accounts that increase the balance of the assets, like revenue accounts.
166
+ * The absolute balance of credit Accounts increase when it participate as a credit/origin in a transaction. Its usually for Accounts that increase the balance of the assets, like revenue Accounts.
143
167
  *
144
168
  * ```
145
169
  * Crediting a credit
146
- * Thus ---------------------> account increases its absolute balance
170
+ * Thus ---------------------> Account increases its absolute balance
147
171
  * Debiting a debit
148
172
  *
149
173
  *
150
174
  * Debiting a credit
151
- * Thus ---------------------> account decreases its absolute balance
175
+ * Thus ---------------------> Account decreases its absolute balance
152
176
  * Crediting a debit
153
177
  * ```
154
178
  *
155
- * As a rule of thumb, and for simple understanding, almost all accounts are Debit nature (NOT credit), except the ones that "offers" amount for the books, like revenue accounts.
179
+ * As a rule of thumb, and for simple understanding, almost all Accounts are Debit nature (NOT credit), except the ones that "offers" amount for the books, like revenue Accounts.
180
+ *
181
+ * @returns True if the Account has credit nature
156
182
  */
157
183
  isCredit(): boolean | undefined;
158
184
  /**
159
- * Get the [[Groups]] of this account.
185
+ * Gets the [[Groups]] of this Account.
186
+ *
187
+ * @returns Promise with the [[Groups]] of this Account
160
188
  */
161
189
  getGroups(): Promise<Group[]>;
162
190
  /**
163
191
  * Sets the groups of the Account.
164
192
  *
165
- * @returns This Account, for chainning.
193
+ * @param groups - The groups to set
194
+ *
195
+ * @returns This Account, for chaining
166
196
  */
167
197
  setGroups(groups: Group[] | bkper.Group[]): Account;
168
198
  /**
169
- * Add a group to the Account.
199
+ * Adds a group to the Account.
200
+ *
201
+ * @param group - The group to add
170
202
  *
171
- * @returns This Account, for chainning.
203
+ * @returns This Account, for chaining
172
204
  */
173
205
  addGroup(group: Group | bkper.Group): Account;
174
206
  /**
175
- * Remove a group from the Account.
207
+ * Removes a group from the Account.
208
+ *
209
+ * @param group - The group name, id or object to remove
210
+ *
211
+ * @returns Promise with this Account, for chaining
176
212
  */
177
213
  removeGroup(group: string | Group): Promise<Account>;
178
214
  /**
179
- * Tell if this account is in the [[Group]]
215
+ * Tells if this Account is in the [[Group]].
216
+ *
217
+ * @param group - The Group name, id or object
180
218
  *
181
- * @param group - The Group name, id or object
219
+ * @returns Promise with true if the Account is in the group
182
220
  */
183
221
  isInGroup(group: string | Group): Promise<boolean>;
184
222
 
185
223
  /**
186
- * Perform create new account.
224
+ * Performs create new Account.
225
+ *
226
+ * @returns Promise with this Account after creation
187
227
  */
188
228
  create(): Promise<Account>;
189
229
  /**
190
- * Perform update account, applying pending changes.
230
+ * Performs update Account, applying pending changes.
231
+ *
232
+ * @returns Promise with this Account after update
191
233
  */
192
234
  update(): Promise<Account>;
193
235
  /**
194
- * Perform delete account.
236
+ * Performs delete Account.
237
+ *
238
+ * @returns Promise with this Account after deletion
195
239
  */
196
240
  remove(): Promise<Account>;
197
241
 
@@ -232,25 +276,31 @@ export declare class Agent {
232
276
  payload: bkper.Agent;
233
277
  constructor(payload?: bkper.Agent);
234
278
  /**
279
+ * Gets the wrapped plain JSON object.
280
+ *
235
281
  * @returns The wrapped plain json object
236
282
  */
237
283
  json(): bkper.Agent;
238
284
  /**
285
+ * Gets the Agent universal identifier.
239
286
  *
240
287
  * @returns The Agent universal identifier
241
288
  */
242
289
  getId(): string | undefined;
243
290
  /**
291
+ * Gets the Agent name.
244
292
  *
245
293
  * @returns The Agent name
246
294
  */
247
295
  getName(): string | undefined;
248
296
  /**
297
+ * Gets the Agent logo URL.
249
298
  *
250
299
  * @returns The Agent logo url
251
300
  */
252
301
  getLogoUrl(): string | undefined;
253
302
  /**
303
+ * Gets the Agent logo URL in dark mode.
254
304
  *
255
305
  * @returns The Agent logo url in dark mode
256
306
  */
@@ -268,73 +318,132 @@ export declare class Amount {
268
318
 
269
319
  /**
270
320
  * The Amount constructor.
321
+ *
322
+ * @param n - The number, string, or Amount to initialize with
271
323
  */
272
324
  constructor(n: number | string | Amount);
273
325
  /**
274
326
  * Returns an absolute Amount.
327
+ *
328
+ * @returns The absolute value as a new Amount
275
329
  */
276
330
  abs(): Amount;
277
331
  /**
278
- * Compare
332
+ * Compares this Amount with another value.
333
+ *
334
+ * @param n - The value to compare with
335
+ *
336
+ * @returns -1 if less than, 0 if equal, 1 if greater than
279
337
  */
280
338
  cmp(n: number | string | Amount): -1 | 0 | 1;
281
339
  /**
282
- * Divide by
340
+ * Divides this Amount by another value.
341
+ *
342
+ * @param n - The divisor value
343
+ *
344
+ * @returns The division result as a new Amount
283
345
  */
284
346
  div(n: number | string | Amount): Amount;
285
347
  /**
286
- * Equals to
348
+ * Checks if this Amount equals another value.
349
+ *
350
+ * @param n - The value to compare with
351
+ *
352
+ * @returns True if equal, false otherwise
287
353
  */
288
354
  eq(n: number | string | Amount): boolean;
289
355
  /**
290
- * Greater than
356
+ * Checks if this Amount is greater than another value.
357
+ *
358
+ * @param n - The value to compare with
359
+ *
360
+ * @returns True if greater than, false otherwise
291
361
  */
292
362
  gt(n: number | string | Amount): boolean;
293
363
  /**
294
- * Greater than or equal
364
+ * Checks if this Amount is greater than or equal to another value.
365
+ *
366
+ * @param n - The value to compare with
367
+ *
368
+ * @returns True if greater than or equal, false otherwise
295
369
  */
296
370
  gte(n: number | string | Amount): boolean;
297
371
  /**
298
- * Less than
372
+ * Checks if this Amount is less than another value.
373
+ *
374
+ * @param n - The value to compare with
375
+ *
376
+ * @returns True if less than, false otherwise
299
377
  */
300
378
  lt(n: number | string | Amount): boolean;
301
379
  /**
302
- * Less than or equal to
380
+ * Checks if this Amount is less than or equal to another value.
381
+ *
382
+ * @param n - The value to compare with
383
+ *
384
+ * @returns True if less than or equal, false otherwise
303
385
  */
304
386
  lte(n: number | string | Amount): boolean;
305
387
  /**
306
- * Sum
388
+ * Adds another value to this Amount.
389
+ *
390
+ * @param n - The value to add
391
+ *
392
+ * @returns The sum as a new Amount
307
393
  */
308
394
  plus(n: number | string | Amount): Amount;
309
395
  /**
310
- * Minus
396
+ * Subtracts another value from this Amount.
397
+ *
398
+ * @param n - The value to subtract
399
+ *
400
+ * @returns The difference as a new Amount
311
401
  */
312
402
  minus(n: number | string | Amount): Amount;
313
403
  /**
314
- * Modulo - the integer remainder of dividing this Amount by n.
404
+ * Calculates the modulo (remainder) of dividing this Amount by another value.
315
405
  *
316
406
  * Similar to % operator
317
407
  *
408
+ * @param n - The divisor value
409
+ *
410
+ * @returns The remainder as a new Amount
318
411
  */
319
412
  mod(n: number | string | Amount): Amount;
320
413
  /**
321
- * Round to a maximum of dp decimal places.
414
+ * Rounds this Amount to a maximum of dp decimal places.
415
+ *
416
+ * @param dp - The number of decimal places (optional)
417
+ *
418
+ * @returns The rounded value as a new Amount
322
419
  */
323
420
  round(dp?: number): Amount;
324
421
  /**
325
- * Multiply
422
+ * Multiplies this Amount by another value.
423
+ *
424
+ * @param n - The value to multiply by
425
+ *
426
+ * @returns The product as a new Amount
326
427
  */
327
428
  times(n: number | string | Amount): Amount;
328
429
  /**
329
- * Returns a string representing the value of this Amount in normal notation to a fixed number of decimal places dp.
430
+ * Returns a string representing the value of this Amount in normal notation to a fixed number of decimal places.
431
+ *
432
+ * @param dp - The number of decimal places (optional)
433
+ *
434
+ * @returns The formatted string representation
330
435
  */
331
436
  toFixed(dp?: number): string;
332
437
  /**
333
438
  * Returns a string representing the value of this Amount.
439
+ *
440
+ * @returns The string representation of this Amount
334
441
  */
335
442
  toString(): string;
336
443
  /**
337
444
  * Returns a primitive number representing the value of this Amount.
445
+ *
446
+ * @returns The numeric value of this Amount
338
447
  */
339
448
  toNumber(): number;
340
449
 
@@ -353,112 +462,157 @@ export declare class App {
353
462
  payload: bkper.App;
354
463
  constructor(payload?: bkper.App);
355
464
  /**
465
+ * Gets the wrapped plain JSON object.
466
+ *
356
467
  * @returns The wrapped plain json object
357
468
  */
358
469
  json(): bkper.App;
359
470
  /**
360
- *
361
471
  * Sets the webhook url for development.
362
472
  *
363
- * @returns This App, for chainning.
473
+ * @param webhookUrlDev - The webhook URL for development
474
+ *
475
+ * @returns This App, for chaining
364
476
  */
365
477
  setWebhookUrlDev(webhookUrlDev: string): App;
366
478
  /**
367
- *
368
479
  * Sets the conversation url for development.
369
480
  *
370
- * @returns This App, for chainning.
481
+ * @param conversationUrlDev - The conversation URL for development
482
+ *
483
+ * @returns This App, for chaining
371
484
  */
372
485
  setConversationUrlDev(conversationUrlDev: string): App;
373
486
  /**
487
+ * Gets the App universal identifier.
374
488
  *
375
489
  * @returns The App universal identifier
376
490
  */
377
491
  getId(): string | undefined;
378
492
  /**
379
- * @return The name of this App
493
+ * Gets the name of this App.
494
+ *
495
+ * @returns The name of this App
380
496
  */
381
497
  getName(): string | undefined;
382
498
  /**
383
- * @return True if this App has events bound to it
499
+ * Checks if this App has events bound to it.
500
+ *
501
+ * @returns True if this App has events bound to it
384
502
  */
385
503
  hasEvents(): boolean;
386
504
  /**
387
- * @return The events bound to this App
505
+ * Gets the events bound to this App.
506
+ *
507
+ * @returns The events bound to this App
388
508
  */
389
509
  getEvents(): EventType[] | undefined;
390
510
  /**
391
- * @return True if this App is published
511
+ * Checks if this App is published.
512
+ *
513
+ * @returns True if this App is published
392
514
  */
393
515
  isPublished(): boolean;
394
516
  /**
395
- * @return True if this App is conversational
517
+ * Checks if this App is conversational.
518
+ *
519
+ * @returns True if this App is conversational
396
520
  */
397
521
  isConversational(): boolean;
398
522
  /**
399
- * @return The logo url of this App
523
+ * Gets the logo url of this App.
524
+ *
525
+ * @returns The logo url of this App
400
526
  */
401
527
  getLogoUrl(): string | undefined;
402
528
  /**
403
- * @return The logo url of this App in dark mode
529
+ * Gets the logo url of this App in dark mode.
530
+ *
531
+ * @returns The logo url of this App in dark mode
404
532
  */
405
533
  getLogoUrlDark(): string | undefined;
406
534
  /**
407
- * @return The description of this App
535
+ * Gets the description of this App.
536
+ *
537
+ * @returns The description of this App
408
538
  */
409
539
  getDescription(): string | undefined;
410
540
  /**
411
- * Sets the whitelabeled user emails
541
+ * Sets the whitelabeled user emails.
542
+ *
543
+ * @param emails - The user emails to whitelist
412
544
  *
413
545
  * @returns This App for chaining
414
546
  */
415
547
  setUserEmails(emails?: string): App;
416
548
  /**
417
- * @return The name of the owner of this App
549
+ * Gets the name of the owner of this App.
550
+ *
551
+ * @returns The name of the owner of this App
418
552
  */
419
553
  getOwnerName(): string | undefined;
420
554
  /**
421
- * @return The menu url of this App
555
+ * Gets the menu url of this App.
556
+ *
557
+ * @returns The menu url of this App
422
558
  */
423
559
  getMenuUrl(): string | undefined;
424
560
  /**
425
- * @return The menu development url of this App
561
+ * Gets the menu development url of this App.
562
+ *
563
+ * @returns The menu development url of this App
426
564
  */
427
565
  getMenuUrlDev(): string | undefined;
428
566
  /**
429
- * @return The menu text of this App
567
+ * Gets the menu text of this App.
568
+ *
569
+ * @returns The menu text of this App
430
570
  */
431
571
  getMenuText(): string | undefined;
432
572
  /**
433
- * @return The menu popup width of this App
573
+ * Gets the menu popup width of this App.
574
+ *
575
+ * @returns The menu popup width of this App
434
576
  */
435
577
  getMenuPopupWidth(): string | undefined;
436
578
  /**
437
- * @return The menu popup height of this App
579
+ * Gets the menu popup height of this App.
580
+ *
581
+ * @returns The menu popup height of this App
438
582
  */
439
583
  getMenuPopupHeight(): string | undefined;
440
584
  /**
441
- * @return The logo url of the owner of this App
585
+ * Gets the logo url of the owner of this App.
586
+ *
587
+ * @returns The logo url of the owner of this App
442
588
  */
443
589
  getOwnerLogoUrl(): string | undefined;
444
590
  /**
445
- * @return The file patterns the App handles - E.g *.pdf *.csv
591
+ * Gets the file patterns the App handles.
592
+ *
593
+ * @returns The file patterns the App handles - E.g *.pdf *.csv
446
594
  */
447
595
  getFilePatterns(): string[] | undefined;
448
596
  /**
449
- * Sets the developer email
597
+ * Sets the developer email.
598
+ *
599
+ * @param email - The developer email to set
450
600
  *
451
601
  * @returns This App for chaining
452
602
  */
453
603
  setDeveloperEmail(email?: string): App;
454
604
  /**
455
- * Sets the client secret
605
+ * Sets the client secret.
606
+ *
607
+ * @param clientSecret - The client secret to set
456
608
  *
457
609
  * @returns This App for chaining
458
610
  */
459
611
  setClientSecret(clientSecret?: string): App;
460
612
  /**
461
- * Sets the readme text
613
+ * Sets the readme text.
614
+ *
615
+ * @param readme - The readme text to set
462
616
  *
463
617
  * @returns This App for chaining
464
618
  */
@@ -467,14 +621,20 @@ export declare class App {
467
621
  * Performs the app creation, applying pending changes.
468
622
  *
469
623
  * The App id MUST be unique. If another app is already existing, an error will be thrown.
624
+ *
625
+ * @returns This App after creation
470
626
  */
471
627
  create(): Promise<App>;
472
628
  /**
473
- * Partially update an App, applying pending changes.
629
+ * Partially updates an App, applying pending changes.
630
+ *
631
+ * @returns This App after the partial update
474
632
  */
475
633
  patch(): Promise<App>;
476
634
  /**
477
- * Perform update App, applying pending changes.
635
+ * Performs a full update of the App, applying pending changes.
636
+ *
637
+ * @returns This App after the update
478
638
  */
479
639
  update(): Promise<App>;
480
640
  }
@@ -488,49 +648,63 @@ export declare class App {
488
648
  */
489
649
  export declare interface BalancesContainer {
490
650
  /**
491
- * @returns The parent BalancesReport of the container
651
+ * Gets the parent [[BalancesReport]] of the container.
652
+ *
653
+ * @returns The parent [[BalancesReport]] of the container
492
654
  */
493
655
  getBalancesReport: () => BalancesReport;
494
656
  /**
657
+ * Gets the [[Account]] or [[Group]] name.
658
+ *
495
659
  * @returns The [[Account]] or [[Group]] name
496
660
  */
497
661
  getName: () => string | undefined;
498
662
  /**
499
- * @returns The [[Account]] or [[Group]] name without spaces or special characters.
663
+ * Gets the [[Account]] or [[Group]] name without spaces or special characters.
664
+ *
665
+ * @returns The [[Account]] or [[Group]] name without spaces or special characters
500
666
  */
501
667
  getNormalizedName: () => string | undefined;
502
668
  /**
669
+ * Gets the [[Group]] associated with this container.
670
+ *
503
671
  * @returns The [[Group]] associated with this container
504
672
  */
505
673
  getGroup: () => Promise<Group | null>;
506
674
  /**
675
+ * Gets the [[Account]] associated with this container.
676
+ *
507
677
  * @returns The [[Account]] associated with this container
508
678
  */
509
679
  getAccount: () => Promise<Account | null>;
510
680
  /**
511
- * @returns The parent BalanceContainer.
681
+ * Gets the parent BalanceContainer.
682
+ *
683
+ * @returns The parent BalanceContainer
512
684
  */
513
685
  getParent: () => BalancesContainer | null;
514
686
  /**
515
- * @returns The depth in the parent chain up to the root.
687
+ * Gets the depth in the parent chain up to the root.
688
+ *
689
+ * @returns The depth in the parent chain up to the root
516
690
  */
517
691
  getDepth: () => number;
518
692
  /**
519
- * @returns Gets the credit nature of the BalancesContainer, based on [[Account]] or [[Group]].
693
+ * Gets the credit nature of the BalancesContainer, based on [[Account]] or [[Group]].
520
694
  *
521
- * For [[Account]], the credit nature will be the same as the one from the Account
695
+ * For [[Account]], the credit nature will be the same as the one from the Account.
522
696
  *
523
697
  * For [[Group]], the credit nature will be the same, if all accounts containing on it has the same credit nature. False if mixed.
524
698
  *
699
+ * @returns The credit nature of the BalancesContainer
525
700
  */
526
701
  isCredit: () => boolean | undefined;
527
702
  /**
528
- *
529
- * Tell if this balance container is permament, based on the [[Account]] or [[Group]].
703
+ * Tell if this balance container is permanent, based on the [[Account]] or [[Group]].
530
704
  *
531
705
  * Permanent are the ones which final balance is relevant and keep its balances over time.
532
706
  *
533
- * They are also called [Real Accounts](http://en.wikipedia.org/wiki/Account_(accountancy)#Based_on_periodicity_of_flow)
707
+ * They are also called [Real Accounts](http://en.wikipedia.org/wiki/Account_(accountancy)#Based_on_periodicity_of_flow).
534
708
  *
535
709
  * Usually represents assets or liabilities, capable of being perceived by the senses or the mind, like bank accounts, money, debts and so on.
536
710
  *
@@ -538,61 +712,85 @@ export declare interface BalancesContainer {
538
712
  */
539
713
  isPermanent: () => boolean | undefined;
540
714
  /**
715
+ * Gets whether this balance container is from an [[Account]].
716
+ *
541
717
  * @returns True if this balance container if from an [[Account]]
542
718
  */
543
719
  isFromAccount: () => boolean;
544
720
  /**
721
+ * Gets whether this balance container is from a [[Group]].
722
+ *
545
723
  * @returns True if this balance container if from a [[Group]]
546
724
  */
547
725
  isFromGroup: () => boolean;
548
726
  /**
727
+ * Gets whether the balance container is from a parent group.
728
+ *
549
729
  * @returns True if the balance container is from a parent group
550
730
  */
551
731
  hasGroupBalances: () => boolean;
552
732
  /**
553
- * @returns The cumulative balance to the date.
733
+ * Gets the cumulative balance to the date.
734
+ *
735
+ * @returns The cumulative balance to the date
554
736
  */
555
737
  getCumulativeBalance: () => Amount;
556
738
  /**
557
- * @returns The cumulative raw balance to the date.
739
+ * Gets the cumulative raw balance to the date.
740
+ *
741
+ * @returns The cumulative raw balance to the date
558
742
  */
559
743
  getCumulativeBalanceRaw: () => Amount;
560
744
  /**
561
- * @returns The cumulative balance formatted according to [[Book]] decimal format and fraction digits.
745
+ * Gets the cumulative balance formatted according to [[Book]] decimal format and fraction digits.
746
+ *
747
+ * @returns The cumulative balance formatted according to [[Book]] decimal format and fraction digits
562
748
  */
563
749
  getCumulativeBalanceText: () => string;
564
750
  /**
565
- * @returns The cumulative raw balance formatted according to [[Book]] decimal format and fraction digits.
751
+ * Gets the cumulative raw balance formatted according to [[Book]] decimal format and fraction digits.
752
+ *
753
+ * @returns The cumulative raw balance formatted according to [[Book]] decimal format and fraction digits
566
754
  */
567
755
  getCumulativeBalanceRawText: () => string;
568
756
  /**
569
- * @returns The balance on the date period.
757
+ * Gets the balance on the date period.
758
+ *
759
+ * @returns The balance on the date period
570
760
  */
571
761
  getPeriodBalance: () => Amount;
572
762
  /**
573
- * @returns The raw balance on the date period.
763
+ * Gets the raw balance on the date period.
764
+ *
765
+ * @returns The raw balance on the date period
574
766
  */
575
767
  getPeriodBalanceRaw: () => Amount;
576
768
  /**
769
+ * Gets the balance on the date period formatted according to [[Book]] decimal format and fraction digits.
770
+ *
577
771
  * @returns The balance on the date period formatted according to [[Book]] decimal format and fraction digits
578
772
  */
579
773
  getPeriodBalanceText: () => string;
580
774
  /**
775
+ * Gets the raw balance on the date period formatted according to [[Book]] decimal format and fraction digits.
776
+ *
581
777
  * @returns The raw balance on the date period formatted according to [[Book]] decimal format and fraction digits
582
778
  */
583
779
  getPeriodBalanceRawText: () => string;
584
780
  /**
585
- * @returns All child [[BalancesContainers]].
781
+ * Gets all child [[BalancesContainers]].
586
782
  *
587
783
  * **NOTE**: Only for Group balance containers. Accounts returns null.
784
+ *
785
+ * @returns All child [[BalancesContainers]]
588
786
  */
589
787
  getBalancesContainers: () => BalancesContainer[];
590
788
  /**
591
789
  * Gets a specific [[BalancesContainer]].
592
790
  *
593
- * @param name The [[Account]] or [[Group]] name.
791
+ * @param name - The [[Account]] or [[Group]] name
594
792
  *
595
- * @returns The retrieved [[BalancesContainer]].
793
+ * @returns The retrieved [[BalancesContainer]]
596
794
  */
597
795
  getBalancesContainer: (name: string) => BalancesContainer;
598
796
  }
@@ -610,23 +808,29 @@ export declare class BalancesReport {
610
808
 
611
809
  constructor(book: Book, payload: bkper.Balances);
612
810
  /**
613
- * @returns The [[Book]] that generated the report.
811
+ * Gets the [[Book]] that generated the report.
812
+ *
813
+ * @returns The [[Book]] that generated the report
614
814
  */
615
815
  getBook(): Book;
616
816
  /**
617
- * @returns The [[Periodicity]] of the query used to generate the report.
817
+ * Gets the [[Periodicity]] of the query used to generate the report.
818
+ *
819
+ * @returns The [[Periodicity]] of the query used to generate the report
618
820
  */
619
821
  getPeriodicity(): Periodicity;
620
822
  /**
621
- * @returns All [[BalancesContainers]] of the report.
823
+ * Gets all [[BalancesContainers]] of the report.
824
+ *
825
+ * @returns All [[BalancesContainers]] of the report
622
826
  */
623
827
  getBalancesContainers(): BalancesContainer[];
624
828
  /**
625
829
  * Gets a specific [[BalancesContainer]].
626
830
  *
627
- * @param name The [[Account]] or [[Group]] name.
831
+ * @param name - The [[Account]] or [[Group]] name
628
832
  *
629
- * @returns The retrieved [[BalancesContainer]].
833
+ * @returns The retrieved [[BalancesContainer]]
630
834
  */
631
835
  getBalancesContainer(name: string): BalancesContainer;
632
836
 
@@ -659,7 +863,7 @@ export declare class Bkper {
659
863
  * @param id - The universal book id - The same bookId param of URL you access at app.bkper.com
660
864
  * @param includeAccounts - Optional parameter to include accounts in the retrieved Book
661
865
  *
662
- * @returns The retrieved Book, for chaining
866
+ * @returns The retrieved Book
663
867
  */
664
868
  static getBook(id: string, includeAccounts?: boolean): Promise<Book>;
665
869
  /**
@@ -696,7 +900,7 @@ export declare class Bkper {
696
900
  /**
697
901
  * Gets the current logged [[User]].
698
902
  *
699
- * @returns The retrieved User, for chaining
903
+ * @returns The retrieved User
700
904
  */
701
905
  static getUser(): Promise<User>;
702
906
  /**
@@ -732,8 +936,7 @@ export declare class Bkper {
732
936
  }
733
937
 
734
938
  /**
735
- *
736
- * A Book represents [General Ledger](https://en.wikipedia.org/wiki/General_ledger) for a company or business, but can also represent a [Ledger](https://en.wikipedia.org/wiki/Ledger) for a project or department
939
+ * A Book represents a [General Ledger](https://en.wikipedia.org/wiki/General_ledger) for a company or business, but can also represent a [Ledger](https://en.wikipedia.org/wiki/Ledger) for a project or department
737
940
  *
738
941
  * It contains all [[Accounts]] where [[Transactions]] are recorded/posted;
739
942
  *
@@ -750,189 +953,241 @@ export declare class Book {
750
953
 
751
954
  constructor(payload?: bkper.Book);
752
955
  /**
753
- * @returns An immutable copy of the json payload
956
+ * Gets an immutable copy of the JSON payload for this Book.
957
+ *
958
+ * @returns An immutable copy of the JSON payload
754
959
  */
755
960
  json(): bkper.Book;
756
961
  /**
757
- * Same as bookId param
962
+ * Gets the unique identifier of this Book.
963
+ *
964
+ * @returns This Book's unique identifier
758
965
  */
759
966
  getId(): string;
760
967
  /**
968
+ * Gets the name of this Book.
969
+ *
761
970
  * @returns The name of this Book
762
971
  */
763
972
  getName(): string | undefined;
764
973
  /**
765
- *
766
974
  * Sets the name of the Book.
767
975
  *
768
- * @returns This Book, for chainning.
976
+ * @param name - The name to set
977
+ *
978
+ * @returns This Book, for chaining
769
979
  */
770
980
  setName(name: string): Book;
771
981
  /**
982
+ * Gets the number of fraction digits supported by this Book.
983
+ *
772
984
  * @returns The number of fraction digits supported by this Book. Same as getDecimalPlaces
773
985
  */
774
986
  getFractionDigits(): number | undefined;
775
987
  /**
988
+ * Gets the number of decimal places supported by this Book.
989
+ *
776
990
  * @returns The number of decimal places supported by this Book. Same as getFractionDigits
777
991
  */
778
992
  getDecimalPlaces(): number | undefined;
779
993
  /**
994
+ * Sets the number of fraction digits (decimal places) supported by this Book.
780
995
  *
781
- * Sets the number of fraction digits (decimal places) supported by this Book
996
+ * @param fractionDigits - The number of fraction digits to set (0 to 8)
782
997
  *
783
- * @returns This Book, for chainning.
998
+ * @returns This Book, for chaining
784
999
  */
785
1000
  setFractionDigits(fractionDigits: number): Book;
786
1001
  /**
1002
+ * Gets the period slice for balances visualization.
1003
+ *
787
1004
  * @returns The period slice for balances visualization
788
1005
  */
789
1006
  getPeriod(): Period;
790
1007
  /**
791
- * Sets the period slice for balances visualization
1008
+ * Sets the period slice for balances visualization.
1009
+ *
1010
+ * @param period - The period to set
792
1011
  *
793
- * @returns This Book, for chainning.
1012
+ * @returns This Book, for chaining
794
1013
  */
795
1014
  setPeriod(period: Period): Book;
796
1015
  /**
797
- * @returns The start month when YEAR period set
1016
+ * Gets the start month when YEAR period is set.
1017
+ *
1018
+ * @returns The start month when YEAR period is set
798
1019
  */
799
1020
  getPeriodStartMonth(): Month;
800
1021
  /**
801
- * Sets the start month when YEAR period set
1022
+ * Sets the start month when YEAR period is set.
1023
+ *
1024
+ * @param month - The start month to set
802
1025
  *
803
- * @returns This Book, for chainning.
1026
+ * @returns This Book, for chaining
804
1027
  */
805
1028
  setPeriodStartMonth(month: Month): Book;
806
1029
  /**
1030
+ * Gets the transactions pagination page size.
1031
+ *
807
1032
  * @returns The transactions pagination page size
808
1033
  */
809
1034
  getPageSize(): number | undefined;
810
1035
  /**
811
- * Sets the transactions pagination page size
1036
+ * Sets the transactions pagination page size.
812
1037
  *
813
- * @returns This Book, for chainning.
1038
+ * @param pageSize - The page size to set
1039
+ *
1040
+ * @returns This Book, for chaining
814
1041
  */
815
1042
  setPageSize(pageSize: number): Book;
816
1043
  /**
1044
+ * Gets the name of the owner of the Book.
1045
+ *
817
1046
  * @returns The name of the owner of the Book
818
1047
  */
819
1048
  getOwnerName(): string | undefined;
820
1049
  /**
821
- * @returns The permission for the current user
1050
+ * Gets the permission for the current user in this Book.
1051
+ *
1052
+ * @returns The permission for the current user in this Book
822
1053
  */
823
1054
  getPermission(): Permission;
824
1055
  /**
825
- * @returns The collection of this book
1056
+ * Gets the collection of this Book, if any.
1057
+ *
1058
+ * @returns The collection of this Book, if any
826
1059
  */
827
1060
  getCollection(): Collection | undefined;
828
1061
  /**
1062
+ * Gets the date pattern of the Book.
1063
+ *
829
1064
  * @returns The date pattern of the Book. Current: dd/MM/yyyy | MM/dd/yyyy | yyyy/MM/dd
830
1065
  */
831
1066
  getDatePattern(): string | undefined;
832
1067
  /**
833
- *
834
1068
  * Sets the date pattern of the Book. Current: dd/MM/yyyy | MM/dd/yyyy | yyyy/MM/dd
835
1069
  *
836
- * @returns This Book, for chainning.
1070
+ * @returns This Book, for chaining
837
1071
  */
838
1072
  setDatePattern(datePattern: string): Book;
839
1073
  /**
1074
+ * Gets the lock date of the Book in ISO format yyyy-MM-dd.
1075
+ *
840
1076
  * @returns The lock date of the Book in ISO format yyyy-MM-dd
841
1077
  */
842
1078
  getLockDate(): string | undefined;
843
1079
  /**
844
- *
845
1080
  * Sets the lock date of the Book in ISO format yyyy-MM-dd.
846
1081
  *
847
- * @returns This Book, for chainning.
1082
+ * @returns This Book, for chaining
848
1083
  */
849
1084
  setLockDate(lockDate: string | null): Book;
850
1085
  /**
1086
+ * Gets the closing date of the Book in ISO format yyyy-MM-dd.
1087
+ *
851
1088
  * @returns The closing date of the Book in ISO format yyyy-MM-dd
852
1089
  */
853
1090
  getClosingDate(): string | undefined;
854
1091
  /**
855
- *
856
1092
  * Sets the closing date of the Book in ISO format yyyy-MM-dd.
857
1093
  *
858
- * @returns This Book, for chainning.
1094
+ * @returns This Book, for chaining
859
1095
  */
860
1096
  setClosingDate(closingDate: string | null): Book;
861
1097
  /**
1098
+ * Gets the decimal separator of the Book.
1099
+ *
862
1100
  * @returns The decimal separator of the Book
863
1101
  */
864
1102
  getDecimalSeparator(): DecimalSeparator;
865
1103
  /**
866
- *
867
1104
  * Sets the decimal separator of the Book
868
1105
  *
869
- * @returns This Book, for chainning.
1106
+ * @returns This Book, for chaining
870
1107
  */
871
1108
  setDecimalSeparator(decimalSeparator: DecimalSeparator): Book;
872
1109
  /**
1110
+ * Gets the time zone of the Book.
1111
+ *
873
1112
  * @returns The time zone of the Book
874
1113
  */
875
1114
  getTimeZone(): string | undefined;
876
1115
  /**
1116
+ * Sets the time zone of the Book.
877
1117
  *
878
- * Sets the time zone of the Book
879
- *
880
- * @returns This Book, for chainning.
1118
+ * @returns This Book, for chaining
881
1119
  */
882
1120
  setTimeZone(timeZone: string): Book;
883
1121
  /**
1122
+ * Gets the time zone offset of the book, in minutes.
1123
+ *
884
1124
  * @returns The time zone offset of the book, in minutes
885
1125
  */
886
1126
  getTimeZoneOffset(): number | undefined;
887
1127
  /**
1128
+ * Gets the auto post status of the Book.
1129
+ *
888
1130
  * @returns The auto post status of the Book
889
1131
  */
890
1132
  getAutoPost(): boolean | undefined;
891
1133
  /**
1134
+ * Sets the auto post status of the Book.
892
1135
  *
893
- * Sets the auto post status of the Book
894
- *
895
- * @returns This Book, for chainning.
1136
+ * @returns This Book, for chaining
896
1137
  */
897
1138
  setAutoPost(autoPost: boolean): Book;
898
1139
  /**
899
- * @returns The last update date of the book, in in milliseconds
1140
+ * Gets the last update date of the book, in milliseconds.
1141
+ *
1142
+ * @returns The last update date of the book, in milliseconds
900
1143
  */
901
1144
  getLastUpdateMs(): number | undefined;
902
1145
  /**
1146
+ * Gets the total number of posted transactions.
1147
+ *
903
1148
  * @returns The total number of posted transactions
904
1149
  */
905
1150
  getTotalTransactions(): number;
906
1151
  /**
1152
+ * Gets the total number of posted transactions on current month.
1153
+ *
907
1154
  * @returns The total number of posted transactions on current month
908
1155
  */
909
1156
  getTotalTransactionsCurrentMonth(): number;
910
1157
  /**
1158
+ * Gets the total number of posted transactions on current year.
1159
+ *
911
1160
  * @returns The total number of posted transactions on current year
912
1161
  */
913
1162
  getTotalTransactionsCurrentYear(): number;
914
1163
  /**
1164
+ * Gets the visibility of the book.
1165
+ *
915
1166
  * @returns The visibility of the book
916
1167
  */
917
1168
  getVisibility(): Visibility;
918
1169
  /**
919
- * Gets the custom properties stored in this Book
1170
+ * Gets the custom properties stored in this Book.
1171
+ *
1172
+ * @returns The custom properties object
920
1173
  */
921
1174
  getProperties(): {
922
1175
  [key: string]: string;
923
1176
  };
924
1177
  /**
925
- * Gets the property value for given keys. First property found will be retrieved
1178
+ * Gets the property value for given keys. First property found will be retrieved.
926
1179
  *
927
- * @param keys - The property key
1180
+ * @param keys - The property keys to search for
1181
+ *
1182
+ * @returns The property value or undefined if not found
928
1183
  */
929
1184
  getProperty(...keys: string[]): string | undefined;
930
1185
  /**
931
- * Sets the custom properties of the Book
1186
+ * Sets the custom properties of the Book.
932
1187
  *
933
1188
  * @param properties - Object with key/value pair properties
934
1189
  *
935
- * @returns This Book, for chainning.
1190
+ * @returns This Book, for chaining
936
1191
  */
937
1192
  setProperties(properties: {
938
1193
  [key: string]: string;
@@ -943,7 +1198,7 @@ export declare class Book {
943
1198
  * @param key - The property key
944
1199
  * @param value - The property value
945
1200
  *
946
- * @returns This Book, for chainning.
1201
+ * @returns This Book, for chaining
947
1202
  */
948
1203
  setProperty(key: string, value: string | null): Book;
949
1204
  /**
@@ -952,13 +1207,15 @@ export declare class Book {
952
1207
  * @param date - The date to format as string.
953
1208
  * @param timeZone - The output timezone of the result. Default to script's timeZone
954
1209
  *
955
- * @returns The date formated
1210
+ * @returns The formatted date
956
1211
  */
957
1212
  formatDate(date: Date, timeZone?: string): string;
958
1213
  /**
959
- * Parse a date string according to date pattern and timezone of the Book.
1214
+ * Parse a date string according to date pattern and timezone of the Book. Also parse ISO yyyy-mm-dd format.
960
1215
  *
961
- * Also parse ISO yyyy-mm-dd format.
1216
+ * @param date - The date string to parse
1217
+ *
1218
+ * @returns The parsed Date object
962
1219
  */
963
1220
  parseDate(date: string): Date;
964
1221
  /**
@@ -966,25 +1223,29 @@ export declare class Book {
966
1223
  *
967
1224
  * @param value - The value to be formatted.
968
1225
  *
969
- * @returns The value formated
1226
+ * @returns The formatted value
970
1227
  */
971
1228
  formatValue(value: Amount | number | null | undefined): string;
972
1229
  /**
973
1230
  * Parse a value string according to [[DecimalSeparator]] and fraction digits of the Book.
1231
+ *
1232
+ * @param value - The value string to parse
1233
+ *
1234
+ * @returns The parsed Amount or undefined if parsing fails
974
1235
  */
975
1236
  parseValue(value: string): Amount | undefined;
976
1237
  /**
977
- * Rounds a value according to the number of fraction digits of the Book
1238
+ * Rounds a value according to the number of fraction digits of the Book.
978
1239
  *
979
1240
  * @param value - The value to be rounded
980
1241
  *
981
- * @returns The value rounded
1242
+ * @returns The rounded value
982
1243
  */
983
1244
  round(value: Amount | number): Amount;
984
1245
  /**
985
1246
  * Batch create [[Transactions]] on the Book.
986
1247
  *
987
- * @param transactions The transactions to be created
1248
+ * @param transactions - The transactions to be created
988
1249
  *
989
1250
  * @returns The created Transactions
990
1251
  */
@@ -992,65 +1253,65 @@ export declare class Book {
992
1253
  /**
993
1254
  * Batch post [[Transactions]] on the Book.
994
1255
  *
995
- * @param transactions The transactions to be posted
996
- *
1256
+ * @param transactions - The transactions to be posted
997
1257
  */
998
1258
  batchPostTransactions(transactions: Transaction[]): Promise<void>;
999
1259
  /**
1000
1260
  * Batch update [[Transactions]] on the Book.
1001
1261
  *
1002
- * @param transactions The transactions to be updated
1262
+ * @param transactions - The transactions to be updated
1003
1263
  *
1004
- * @param updateChecked True to also update checked transactions
1264
+ * @param updateChecked - True to also update checked transactions
1005
1265
  *
1006
1266
  * @returns The updated draft Transactions
1007
- *
1008
1267
  */
1009
1268
  batchUpdateTransactions(transactions: Transaction[], updateChecked?: boolean): Promise<Transaction[]>;
1010
1269
  /**
1011
1270
  * Batch check [[Transactions]] on the Book.
1012
1271
  *
1013
- * @param transactions The transactions to be checked
1014
- *
1272
+ * @param transactions - The transactions to be checked
1015
1273
  */
1016
1274
  batchCheckTransactions(transactions: Transaction[]): Promise<void>;
1017
1275
  /**
1018
1276
  * Batch uncheck [[Transactions]] on the Book.
1019
1277
  *
1020
- * @param transactions The transactions to be unchecked
1021
- *
1278
+ * @param transactions - The transactions to be unchecked
1022
1279
  */
1023
1280
  batchUncheckTransactions(transactions: Transaction[]): Promise<void>;
1024
1281
  /**
1025
1282
  * Batch trash [[Transactions]] on the Book.
1026
1283
  *
1027
- * @param transactions The transactions to be trashed
1028
- *
1029
- * @param trashChecked True to also trash checked transactions
1030
- *
1284
+ * @param transactions - The transactions to be trashed
1285
+ * @param trashChecked - True to also trash checked transactions
1031
1286
  */
1032
1287
  batchTrashTransactions(transactions: Transaction[], trashChecked?: boolean): Promise<void>;
1033
1288
  /**
1034
1289
  * Batch untrash [[Transactions]] on the Book.
1035
1290
  *
1036
- * @param transactions The transactions to be untrashed
1037
- *
1291
+ * @param transactions - The transactions to be untrashed
1038
1292
  */
1039
1293
  batchUntrashTransactions(transactions: Transaction[]): Promise<void>;
1040
1294
  /**
1041
1295
  * Replay [[Events]] on the Book, in batch.
1296
+ *
1297
+ * @param events - The events to be replayed
1298
+ * @param errorOnly - True to only replay events with errors
1042
1299
  */
1043
1300
  batchReplayEvents(events: Event[], errorOnly?: boolean): Promise<void>;
1044
1301
  /**
1045
1302
  * Create [[Accounts]] on the Book, in batch.
1046
1303
  *
1047
- * @return The created Accounts
1304
+ * @param accounts - The accounts to be created
1305
+ *
1306
+ * @returns The created Accounts
1048
1307
  */
1049
1308
  batchCreateAccounts(accounts: Account[]): Promise<Account[]>;
1050
1309
  /**
1051
1310
  * Create [[Groups]] on the Book, in batch.
1052
1311
  *
1053
- * @return The created Groups
1312
+ * @param groups - The groups to be created
1313
+ *
1314
+ * @returns The created Groups
1054
1315
  */
1055
1316
  batchCreateGroups(groups: Group[]): Promise<Group[]>;
1056
1317
  /**
@@ -1058,35 +1319,35 @@ export declare class Book {
1058
1319
  */
1059
1320
  audit(): void;
1060
1321
  /**
1061
- * Retrieve installed [[Apps]] for this Book
1322
+ * Retrieve installed [[Apps]] for this Book.
1062
1323
  *
1063
- * @returns The Apps objects
1324
+ * @returns The retrieved Apps objects
1064
1325
  */
1065
1326
  getApps(): Promise<App[]>;
1066
1327
  /**
1067
1328
  * Gets the existing [[Integrations]] in the Book.
1068
1329
  *
1069
- * @returns The existing Integration objects
1330
+ * @returns The retrieved Integration objects
1070
1331
  */
1071
1332
  getIntegrations(): Promise<Integration[]>;
1072
1333
  /**
1073
1334
  * Creates a new [[Integration]] in the Book.
1074
1335
  *
1075
- * @param integration - The Integration object or wrapped plain json
1336
+ * @param integration - The [[Integration]] object or wrapped plain json
1076
1337
  *
1077
- * @returns The created Integration object
1338
+ * @returns The created [[Integration]] object
1078
1339
  */
1079
1340
  createIntegration(integration: bkper.Integration | Integration): Promise<Integration>;
1080
1341
  /**
1081
1342
  * Updates an existing [[Integration]] in the Book.
1082
1343
  *
1083
- * @param integration - The Integration wrapped plain json
1344
+ * @param integration - The [[Integration]] wrapped plain json
1084
1345
  *
1085
- * @returns The updated Integration object
1346
+ * @returns The updated [[Integration]] object
1086
1347
  */
1087
1348
  updateIntegration(integration: bkper.Integration): Promise<Integration>;
1088
1349
  /**
1089
- * Gets an [[Account]] object
1350
+ * Gets an [[Account]] object.
1090
1351
  *
1091
1352
  * @param idOrName - The id or name of the Account
1092
1353
  *
@@ -1102,7 +1363,7 @@ export declare class Book {
1102
1363
 
1103
1364
 
1104
1365
  /**
1105
- * Gets a [[Group]] object
1366
+ * Gets a [[Group]] object.
1106
1367
  *
1107
1368
  * @param idOrName - The id or name of the Group
1108
1369
  *
@@ -1110,16 +1371,16 @@ export declare class Book {
1110
1371
  */
1111
1372
  getGroup(idOrName?: string): Promise<Group | undefined>;
1112
1373
  /**
1113
- * Gets all [[Groups]] of this Book
1374
+ * Gets all [[Groups]] of this Book.
1114
1375
  *
1115
- * @returns The retrieved Group objects
1376
+ * @returns The retrieved [[Group]] objects
1116
1377
  */
1117
1378
  getGroups(): Promise<Group[]>;
1118
1379
 
1119
1380
  /**
1120
- * Gets all [[Accounts]] of this Book
1381
+ * Gets all [[Accounts]] of this Book.
1121
1382
  *
1122
- * @returns The retrieved Account objects
1383
+ * @returns The retrieved [[Account]] objects
1123
1384
  */
1124
1385
  getAccounts(): Promise<Account[]>;
1125
1386
 
@@ -1133,31 +1394,39 @@ export declare class Book {
1133
1394
  * Lists transactions in the Book based on the provided query, limit, and cursor, for pagination.
1134
1395
  *
1135
1396
  * @param query - The query string to filter transactions
1136
- * @param limit - The maximum number of transactions to return. Default to 100, max to 1000;
1397
+ * @param limit - The maximum number of transactions to return. Default to 100, max to 1000
1137
1398
  * @param cursor - The cursor for pagination
1138
1399
  *
1139
- * @returns A TransactionPage object containing the list of transactions
1400
+ * @returns A [[TransactionList]] object containing the list of transactions
1140
1401
  */
1141
1402
  listTransactions(query?: string, limit?: number, cursor?: string): Promise<TransactionList>;
1142
1403
  /**
1143
1404
  * Lists events in the Book based on the provided parameters.
1144
1405
  *
1145
- * @param afterDate - The start date (inclusive) for the events search range, in [RFC3339](https://en.wikipedia.org/wiki/ISO_8601#RFC_3339) format. Can be null.
1146
- * @param beforeDate - The end date (exclusive) for the events search range, in [RFC3339](https://en.wikipedia.org/wiki/ISO_8601#RFC_3339) format. Can be null.
1147
- * @param onError - True to search only for events on error.
1148
- * @param resourceId - The ID of the event's resource (Transaction, Account, or Group). Can be null.
1149
- * @param limit - The maximum number of events to return.
1150
- * @param cursor - The cursor for pagination. Can be null.
1406
+ * @param afterDate - The start date (inclusive) for the events search range, in [RFC3339](https://en.wikipedia.org/wiki/ISO_8601#RFC_3339) format. Can be null
1407
+ * @param beforeDate - The end date (exclusive) for the events search range, in [RFC3339](https://en.wikipedia.org/wiki/ISO_8601#RFC_3339) format. Can be null
1408
+ * @param onError - True to search only for events on error
1409
+ * @param resourceId - The ID of the event's resource (Transaction, Account, or Group). Can be null
1410
+ * @param limit - The maximum number of events to return
1411
+ * @param cursor - The cursor for pagination. Can be null
1151
1412
  *
1152
- * @returns An EventList object containing the list of events.
1413
+ * @returns An [[EventList]] object containing the list of events
1153
1414
  */
1154
1415
  listEvents(afterDate: string | null, beforeDate: string | null, onError: boolean, resourceId: string | null, limit: number, cursor?: string): Promise<EventList>;
1155
1416
  /**
1156
- * Retrieve a transaction by id
1417
+ * Retrieve a transaction by id.
1418
+ *
1419
+ * @param id - The transaction ID
1420
+ *
1421
+ * @returns The [[Transaction]] object
1157
1422
  */
1158
1423
  getTransaction(id: string): Promise<Transaction | undefined>;
1159
1424
  /**
1160
- * Retrieve a file by id
1425
+ * Retrieve a file by id.
1426
+ *
1427
+ * @param id - The file ID
1428
+ *
1429
+ * @returns The [[File]] object
1161
1430
  */
1162
1431
  getFile(id: string): Promise<File>;
1163
1432
  /**
@@ -1169,24 +1438,25 @@ export declare class Book {
1169
1438
  /**
1170
1439
  * Creates a copy of this Book
1171
1440
  *
1172
- * @param name The name for the copied book
1173
- * @param copyTransactions True to copy transactions from the source book (user must be the Book owner)
1174
- * @param fromDate Start date to consider if copying transactions (numeric value in YYYYMMDD format)
1441
+ * @param name - The name for the copied book
1442
+ * @param copyTransactions - True to copy transactions from the source book (user must be the Book owner)
1443
+ * @param fromDate - Start date to consider if copying transactions (numeric value in YYYYMMDD format)
1175
1444
  *
1176
1445
  * @returns The copied Book object
1177
1446
  */
1178
1447
  copy(name: string, copyTransactions?: boolean, fromDate?: number): Promise<Book>;
1179
1448
  /**
1180
1449
  * Perform update Book, applying pending changes.
1450
+ *
1451
+ * @returns The updated Book object
1181
1452
  */
1182
1453
  update(): Promise<Book>;
1183
1454
  /**
1455
+ * Create a [[BalancesReport]] based on query.
1184
1456
  *
1185
- * Create a [[BalancesReport]] based on query
1457
+ * @param query - The balances report query
1186
1458
  *
1187
- * @param query The balances report query
1188
- *
1189
- * @return The balances report
1459
+ * @returns The balances report
1190
1460
  *
1191
1461
  * Example:
1192
1462
  *
@@ -1197,10 +1467,14 @@ export declare class Book {
1197
1467
  *
1198
1468
  * var accountBalance = balancesReport.getBalancesContainer("Bank Account").getCumulativeBalance();
1199
1469
  * ```
1470
+ *
1471
+ * @returns The retrieved [[BalancesReport]] object
1200
1472
  */
1201
1473
  getBalancesReport(query: string): Promise<BalancesReport>;
1202
1474
  /**
1203
- * @return The saved queries from this book
1475
+ * Gets the saved queries from this book.
1476
+ *
1477
+ * @returns The saved queries from this book
1204
1478
  */
1205
1479
  getSavedQueries(): Promise<Query[]>;
1206
1480
  }
@@ -1216,22 +1490,32 @@ export declare class BotResponse {
1216
1490
 
1217
1491
  constructor(event: Event, payload?: bkper.BotResponse);
1218
1492
  /**
1219
- * @return The type of this Bot Response
1493
+ * Gets the type of this Bot Response.
1494
+ *
1495
+ * @returns The type of this Bot Response
1220
1496
  */
1221
1497
  getType(): BotResponseType | undefined;
1222
1498
  /**
1223
- * @return The agent id of this Bot Response
1499
+ * Gets the agent id of this Bot Response.
1500
+ *
1501
+ * @returns The agent id of this Bot Response
1224
1502
  */
1225
1503
  getAgentId(): string | undefined;
1226
1504
  /**
1227
- * @return The message of this Bot Response
1505
+ * Gets the message of this Bot Response.
1506
+ *
1507
+ * @returns The message of this Bot Response
1228
1508
  */
1229
1509
  getMessage(): string | undefined;
1230
1510
  /**
1511
+ * Gets the date this Bot Response was created.
1512
+ *
1231
1513
  * @returns The date this Bot Response was created
1232
1514
  */
1233
1515
  getCreatedAt(): Date | undefined;
1234
1516
  /**
1517
+ * Gets the Event this Bot Response is associated to.
1518
+ *
1235
1519
  * @returns The Event this Bot Response is associated to
1236
1520
  */
1237
1521
  getEvent(): Event;
@@ -1240,13 +1524,13 @@ export declare class BotResponse {
1240
1524
  *
1241
1525
  * @returns The updated Bot Response
1242
1526
  */
1243
- replay(): Promise<this>;
1527
+ replay(): Promise<BotResponse>;
1244
1528
  /**
1245
1529
  * Delete this Bot Response.
1246
1530
  *
1247
1531
  * @returns The deleted Bot Response
1248
1532
  */
1249
- remove(): Promise<this>;
1533
+ remove(): Promise<BotResponse>;
1250
1534
 
1251
1535
  }
1252
1536
 
@@ -1279,21 +1563,29 @@ export declare class Collection {
1279
1563
  payload: bkper.Collection;
1280
1564
  constructor(payload?: bkper.Collection);
1281
1565
  /**
1566
+ * Gets an immutable copy of the JSON payload for this Collection.
1567
+ *
1282
1568
  * @returns The wrapped plain json object
1283
1569
  */
1284
1570
  json(): bkper.Collection;
1285
1571
  /**
1572
+ * Gets the unique identifier of this Collection.
1573
+ *
1286
1574
  * @returns The id of this Collection
1287
1575
  */
1288
1576
  getId(): string | undefined;
1289
1577
  /**
1578
+ * Gets the name of this Collection.
1579
+ *
1290
1580
  * @returns The name of this Collection
1291
1581
  */
1292
1582
  getName(): string | undefined;
1293
1583
  /**
1294
1584
  * Sets the name of the Collection.
1295
1585
  *
1296
- * @returns This Collection, for chainning.
1586
+ * @param name - The name to set
1587
+ *
1588
+ * @returns This Collection, for chaining
1297
1589
  */
1298
1590
  setName(name: string): Collection;
1299
1591
  /**
@@ -1309,18 +1601,24 @@ export declare class Collection {
1309
1601
  */
1310
1602
  getPermission(): Permission | undefined;
1311
1603
  /**
1312
- * @returns All Books of this collection.
1604
+ * Gets all Books of this collection.
1605
+ *
1606
+ * @returns All Books of this collection
1313
1607
  */
1314
1608
  getBooks(): Book[];
1315
1609
  /**
1316
1610
  * Adds Books to this Collection.
1317
1611
  *
1612
+ * @param books - The Books to add to this Collection
1613
+ *
1318
1614
  * @returns The added Book objects
1319
1615
  */
1320
1616
  addBooks(books: Book[]): Promise<Book[]>;
1321
1617
  /**
1322
1618
  * Removes Books from this Collection.
1323
1619
  *
1620
+ * @param books - The Books to remove from this Collection
1621
+ *
1324
1622
  * @returns The removed Book objects
1325
1623
  */
1326
1624
  removeBooks(books: Book[]): Promise<Book[]>;
@@ -1406,6 +1704,8 @@ export declare class Connection {
1406
1704
  payload: bkper.Connection;
1407
1705
  constructor(payload?: bkper.Connection);
1408
1706
  /**
1707
+ * Gets an immutable copy of the JSON payload for this Connection.
1708
+ *
1409
1709
  * @returns An immutable copy of the json payload
1410
1710
  */
1411
1711
  json(): bkper.Connection;
@@ -1426,7 +1726,7 @@ export declare class Connection {
1426
1726
  *
1427
1727
  * @param agentId - The Connection agentId
1428
1728
  *
1429
- * @returns The Connection, for chainning
1729
+ * @returns The Connection, for chaining
1430
1730
  */
1431
1731
  setAgentId(agentId: string): Connection;
1432
1732
  /**
@@ -1458,7 +1758,7 @@ export declare class Connection {
1458
1758
  *
1459
1759
  * @param name - The name of the Connection
1460
1760
  *
1461
- * @returns The Connection, for chainning
1761
+ * @returns The Connection, for chaining
1462
1762
  */
1463
1763
  setName(name: string): Connection;
1464
1764
  /**
@@ -1466,7 +1766,7 @@ export declare class Connection {
1466
1766
  *
1467
1767
  * @param uuid - The universal unique identifier of the Connection
1468
1768
  *
1469
- * @returns The Connection, for chainning
1769
+ * @returns The Connection, for chaining
1470
1770
  */
1471
1771
  setUUID(uuid: string): Connection;
1472
1772
  /**
@@ -1486,7 +1786,7 @@ export declare class Connection {
1486
1786
  *
1487
1787
  * @param type - The Connection type
1488
1788
  *
1489
- * @returns The Connection, for chainning
1789
+ * @returns The Connection, for chaining
1490
1790
  */
1491
1791
  setType(type: "APP" | "BANK"): Connection;
1492
1792
  /**
@@ -1502,7 +1802,7 @@ export declare class Connection {
1502
1802
  *
1503
1803
  * @param properties - Object with key/value pair properties
1504
1804
  *
1505
- * @returns The Connection, for chainning
1805
+ * @returns The Connection, for chaining
1506
1806
  */
1507
1807
  setProperties(properties: {
1508
1808
  [key: string]: string;
@@ -1529,7 +1829,7 @@ export declare class Connection {
1529
1829
  *
1530
1830
  * @param key - The property key
1531
1831
  *
1532
- * @returns The Connection, for chainning
1832
+ * @returns The Connection, for chaining
1533
1833
  */
1534
1834
  deleteProperty(key: string): Connection;
1535
1835
  /**
@@ -1575,36 +1875,43 @@ export declare class Conversation {
1575
1875
 
1576
1876
  constructor(agent: Agent, payload?: bkper.Conversation);
1577
1877
  /**
1878
+ * Gets an immutable copy of the JSON payload for this Conversation.
1879
+ *
1578
1880
  * @returns The wrapped plain json object
1579
1881
  */
1580
1882
  json(): bkper.Conversation;
1581
1883
  /**
1884
+ * Gets the Agent associated to this Conversation.
1582
1885
  *
1583
1886
  * @returns The Agent associated to this Conversation
1584
1887
  */
1585
1888
  getAgent(): Agent;
1586
1889
  /**
1890
+ * Gets the Conversation universal identifier.
1587
1891
  *
1588
1892
  * @returns The Conversation universal identifier
1589
1893
  */
1590
1894
  getId(): string | undefined;
1591
1895
  /**
1896
+ * Gets the title of the Conversation.
1592
1897
  *
1593
1898
  * @returns The title of the Conversation
1594
1899
  */
1595
1900
  getTitle(): string | undefined;
1596
1901
  /**
1902
+ * Gets the Date the Conversation was created.
1597
1903
  *
1598
1904
  * @returns The Date the Conversation was created
1599
1905
  */
1600
1906
  getCreatedAt(): Date | undefined;
1601
1907
  /**
1908
+ * Gets the Date the Conversation was last updated.
1602
1909
  *
1603
1910
  * @returns The Date the Conversation was last updated
1604
1911
  */
1605
1912
  getUpdatedAt(): Date | undefined;
1606
1913
  /**
1607
- * Gets the Messages that compose this Conversation
1914
+ * Gets the Messages that compose this Conversation.
1608
1915
  *
1609
1916
  * @returns The Messages in this Conversation
1610
1917
  */
@@ -1612,7 +1919,7 @@ export declare class Conversation {
1612
1919
 
1613
1920
 
1614
1921
  /**
1615
- * Performs create Conversation
1922
+ * Performs create Conversation.
1616
1923
  *
1617
1924
  * @returns The created Conversation object
1618
1925
  */
@@ -1649,38 +1956,56 @@ export declare class Event {
1649
1956
 
1650
1957
  constructor(book: Book, payload?: bkper.Event);
1651
1958
  /**
1959
+ * Gets an immutable copy of the JSON payload for this Event.
1960
+ *
1652
1961
  * @returns The wrapped plain json object
1653
1962
  */
1654
1963
  json(): bkper.Event;
1655
1964
  /**
1965
+ * Gets the book in which the Event was created.
1966
+ *
1656
1967
  * @returns The book in which the Event was created
1657
1968
  */
1658
1969
  getBook(): Book;
1659
1970
  /**
1971
+ * Gets the id of the Event.
1972
+ *
1660
1973
  * @returns The id of the Event
1661
1974
  */
1662
1975
  getId(): string | undefined;
1663
1976
  /**
1977
+ * Gets the user who performed the Event.
1978
+ *
1664
1979
  * @returns The user who performed the Event
1665
1980
  */
1666
1981
  getUser(): User | undefined;
1667
1982
  /**
1983
+ * Gets the Agent who performed the Event.
1984
+ *
1668
1985
  * @returns The Agent who performed the Event
1669
1986
  */
1670
1987
  getAgent(): Agent | undefined;
1671
1988
  /**
1989
+ * Gets the date the Event was created.
1990
+ *
1672
1991
  * @returns The date the Event was created
1673
1992
  */
1674
1993
  getCreatedAt(): Date | undefined;
1675
1994
  /**
1995
+ * Gets the type of the Event.
1996
+ *
1676
1997
  * @returns The type of the Event
1677
1998
  */
1678
1999
  getType(): EventType | undefined;
1679
2000
  /**
2001
+ * Gets the Bot Responses associated to this Event.
2002
+ *
1680
2003
  * @returns The Bot Responses associated to this Event
1681
2004
  */
1682
2005
  getBotResponses(): BotResponse[];
1683
2006
  /**
2007
+ * Checks if this Event has at least one Bot Response of type ERROR.
2008
+ *
1684
2009
  * @returns True if this Event has at least one Bot Response of type ERROR
1685
2010
  */
1686
2011
  hasErrorResponse(): boolean;
@@ -1688,30 +2013,35 @@ export declare class Event {
1688
2013
 
1689
2014
  /**
1690
2015
  * A list associated with an event query.
2016
+ *
2017
+ * @public
1691
2018
  */
1692
2019
  export declare class EventList {
1693
2020
  private payload;
1694
2021
 
1695
2022
  constructor(book: Book, payload: bkper.EventList);
1696
2023
  /**
1697
- * @returns The cursor associated with the query for pagination.
2024
+ * Gets the cursor associated with the query for pagination.
2025
+ *
2026
+ * @returns The cursor associated with the query for pagination
1698
2027
  */
1699
2028
  getCursor(): string | undefined;
1700
2029
  /**
1701
- * @returns The first Event in the list.
2030
+ * Gets the first Event in the list.
2031
+ *
2032
+ * @returns The first Event in the list
1702
2033
  */
1703
2034
  getFirst(): Event | undefined;
1704
2035
  /**
1705
- *
1706
2036
  * Get the total number of events in the list.
1707
2037
  *
1708
- * @returns The total number of events.
2038
+ * @returns The total number of events
1709
2039
  */
1710
2040
  size(): number;
1711
2041
  /**
1712
2042
  * Get the events in the list.
1713
2043
  *
1714
- * @returns An array of Event objects.
2044
+ * @returns An array of Event objects
1715
2045
  */
1716
2046
  getItems(): Event[];
1717
2047
  }
@@ -1764,56 +2094,75 @@ export declare class File {
1764
2094
 
1765
2095
  constructor(book: Book, payload?: bkper.File);
1766
2096
  /**
2097
+ * Gets an immutable copy of the JSON payload for this File.
2098
+ *
1767
2099
  * @returns An immutable copy of the json payload
1768
2100
  */
1769
2101
  json(): bkper.File;
1770
2102
  /**
1771
- * Gets the File id
2103
+ * Gets the File id.
2104
+ *
2105
+ * @returns The File id
1772
2106
  */
1773
2107
  getId(): string | undefined;
1774
2108
  /**
1775
- * Gets the File name
2109
+ * Gets the File name.
2110
+ *
2111
+ * @returns The File name
1776
2112
  */
1777
2113
  getName(): string | undefined;
1778
2114
  /**
1779
- *
1780
2115
  * Sets the name of the File.
1781
2116
  *
1782
- * @returns This File, for chainning.
2117
+ * @param name - The name to set
2118
+ *
2119
+ * @returns This File, for chaining
1783
2120
  */
1784
2121
  setName(name: string): File;
1785
2122
  /**
1786
- * Gets the File content type
2123
+ * Gets the File content type.
2124
+ *
2125
+ * @returns The File content type
1787
2126
  */
1788
2127
  getContentType(): string | undefined;
1789
2128
  /**
1790
- *
1791
2129
  * Sets the File content type.
1792
2130
  *
1793
- * @returns This File, for chainning.
2131
+ * @param contentType - The content type to set
2132
+ *
2133
+ * @returns This File, for chaining
1794
2134
  */
1795
2135
  setContentType(contentType: string): File;
1796
2136
  /**
1797
- * Gets the file content Base64 encoded
2137
+ * Gets the file content Base64 encoded.
2138
+ *
2139
+ * @returns The file content Base64 encoded
1798
2140
  */
1799
2141
  getContent(): Promise<string | undefined>;
1800
2142
  /**
1801
- *
1802
2143
  * Sets the File content Base64 encoded.
1803
2144
  *
1804
- * @returns This File, for chainning.
2145
+ * @param content - The content to set (Base64 encoded)
2146
+ *
2147
+ * @returns This File, for chaining
1805
2148
  */
1806
2149
  setContent(content: string): File;
1807
2150
  /**
1808
- * Gets the file serving url for accessing via browser
2151
+ * Gets the file serving url for accessing via browser.
2152
+ *
2153
+ * @returns The file serving url
1809
2154
  */
1810
2155
  getUrl(): string | undefined;
1811
2156
  /**
1812
- * Gets the file size in bytes
2157
+ * Gets the file size in bytes.
2158
+ *
2159
+ * @returns The file size in bytes
1813
2160
  */
1814
2161
  getSize(): number | undefined;
1815
2162
  /**
1816
2163
  * Perform create new File.
2164
+ *
2165
+ * @returns The created File object
1817
2166
  */
1818
2167
  create(): Promise<File>;
1819
2168
  }
@@ -1837,27 +2186,33 @@ export declare class Group {
1837
2186
 
1838
2187
  constructor(book: Book, payload?: bkper.Group);
1839
2188
  /**
2189
+ * Gets an immutable copy of the json payload.
2190
+ *
1840
2191
  * @returns An immutable copy of the json payload
1841
2192
  */
1842
2193
  json(): bkper.Group;
1843
2194
  /**
2195
+ * Gets the id of this Group.
2196
+ *
1844
2197
  * @returns The id of this Group
1845
2198
  */
1846
2199
  getId(): string | undefined;
1847
2200
  /**
2201
+ * Gets the name of this Group.
2202
+ *
1848
2203
  * @returns The name of this Group
1849
2204
  */
1850
2205
  getName(): string | undefined;
1851
2206
  /**
1852
2207
  * Sets the name of the Group.
1853
2208
  *
1854
- * @returns This Group, for chainning.
2209
+ * @returns This Group, for chaining
1855
2210
  */
1856
2211
  setName(name: string): Group;
1857
2212
  /**
1858
2213
  * Tells if the Group is locked by the Book owner.
1859
2214
  *
1860
- * @returns True if the Group is locked.
2215
+ * @returns True if the Group is locked
1861
2216
  */
1862
2217
  isLocked(): boolean;
1863
2218
  /**
@@ -1865,23 +2220,31 @@ export declare class Group {
1865
2220
  *
1866
2221
  * @param locked - The locked state of the Group.
1867
2222
  *
1868
- * @returns This Group, for chainning.
2223
+ * @returns This Group, for chaining
1869
2224
  */
1870
2225
  setLocked(locked: boolean): Group;
1871
2226
  /**
2227
+ * Gets the normalized name of this group without spaces and special characters.
2228
+ *
1872
2229
  * @returns The name of this group without spaces and special characters
1873
2230
  */
1874
2231
  getNormalizedName(): string;
1875
2232
  /**
1876
- * @returns All Accounts of this group.
2233
+ * Gets all Accounts of this group.
2234
+ *
2235
+ * @returns All Accounts of this group
1877
2236
  */
1878
2237
  getAccounts(): Promise<Account[]>;
1879
2238
  /**
2239
+ * Gets the type of the accounts of this group.
2240
+ *
1880
2241
  * @returns The type for of the accounts of this group. Null if mixed
1881
2242
  */
1882
2243
  getType(): AccountType;
1883
2244
  /**
1884
- * Gets the custom properties stored in this Group
2245
+ * Gets the custom properties stored in this Group.
2246
+ *
2247
+ * @returns The custom properties as a key/value object
1885
2248
  */
1886
2249
  getProperties(): {
1887
2250
  [key: string]: string;
@@ -1891,15 +2254,17 @@ export declare class Group {
1891
2254
  *
1892
2255
  * @param properties - Object with key/value pair properties
1893
2256
  *
1894
- * @returns This Group, for chainning.
2257
+ * @returns This Group, for chaining
1895
2258
  */
1896
2259
  setProperties(properties: {
1897
2260
  [key: string]: string;
1898
2261
  }): Group;
1899
2262
  /**
1900
- * Gets the property value for given keys. First property found will be retrieved
2263
+ * Gets the property value for given keys. First property found will be retrieved.
1901
2264
  *
1902
2265
  * @param keys - The property key
2266
+ *
2267
+ * @returns The property value, or undefined if not found
1903
2268
  */
1904
2269
  getProperty(...keys: string[]): string | undefined;
1905
2270
  /**
@@ -1907,6 +2272,8 @@ export declare class Group {
1907
2272
  *
1908
2273
  * @param key - The property key
1909
2274
  * @param value - The property value
2275
+ *
2276
+ * @returns This Group, for chaining
1910
2277
  */
1911
2278
  setProperty(key: string, value: string | null): Group;
1912
2279
  /**
@@ -1914,117 +2281,141 @@ export declare class Group {
1914
2281
  *
1915
2282
  * @param key - The property key
1916
2283
  *
1917
- * @returns This Group, for chainning.
2284
+ * @returns This Group, for chaining
1918
2285
  */
1919
2286
  deleteProperty(key: string): Group;
1920
2287
  /**
1921
- * Tell if the Group is hidden on main transactions menu
2288
+ * Tells if the Group is hidden on main transactions menu.
2289
+ *
2290
+ * @returns True if the Group is hidden, false otherwise
1922
2291
  */
1923
2292
  isHidden(): boolean | undefined;
1924
2293
  /**
1925
- * Hide/Show group on main menu.
2294
+ * Hide/Show group on main menu.
2295
+ *
2296
+ * @param hidden - Whether to hide the group
2297
+ *
2298
+ * @returns This Group, for chaining
1926
2299
  */
1927
2300
  setHidden(hidden: boolean): Group;
1928
2301
  /**
1929
- * Tell if this is a credit (Incoming and Liabities) group
2302
+ * Tells if this is a credit (Incoming and Liabilities) group.
2303
+ *
2304
+ * @returns True if this is a credit group
1930
2305
  */
1931
2306
  isCredit(): boolean | undefined;
1932
2307
  /**
1933
- * Tell if this is a mixed (Assets/Liabilities or Incoming/Outgoing) group
2308
+ * Tells if this is a mixed (Assets/Liabilities or Incoming/Outgoing) group.
2309
+ *
2310
+ * @returns True if this is a mixed group
1934
2311
  */
1935
2312
  isMixed(): boolean | undefined;
1936
2313
  /**
1937
- * Tell if the Group is permanent
2314
+ * Tells if the Group is permanent.
2315
+ *
2316
+ * @returns True if the Group is permanent
1938
2317
  */
1939
2318
  isPermanent(): boolean | undefined;
1940
2319
  /**
2320
+ * Gets the parent Group.
2321
+ *
1941
2322
  * @returns The parent Group
1942
2323
  */
1943
2324
  getParent(): Group | undefined;
1944
2325
  /**
1945
2326
  * Sets the parent Group.
1946
2327
  *
1947
- * @returns This Group, for chainning.
2328
+ * @param group - The parent Group to set
2329
+ *
2330
+ * @returns This Group, for chaining
1948
2331
  */
1949
2332
  setParent(group: Group | null | undefined): Group;
1950
2333
  /**
1951
2334
  * Checks if the Group has a parent.
1952
2335
  *
1953
- * @returns True if the Group has a parent, otherwise false.
2336
+ * @returns True if the Group has a parent, otherwise false
1954
2337
  */
1955
2338
  hasParent(): boolean;
1956
2339
  /**
1957
- * Retrieves the children of the Group.
2340
+ * Gets the children of the Group.
1958
2341
  *
1959
- * @returns An array of child Groups.
2342
+ * @returns An array of child Groups
1960
2343
  */
1961
2344
  getChildren(): Group[];
1962
2345
 
1963
2346
  /**
1964
- * Retrieves all descendant Groups of the current Group.
2347
+ * Gets all descendant Groups of the current Group.
1965
2348
  *
1966
- * @returns A set of descendant Groups.
2349
+ * @returns A set of descendant Groups
1967
2350
  */
1968
2351
  getDescendants(): Set<Group>;
1969
2352
  /**
1970
- * Retrieves the IDs of all descendant Groups in a tree structure.
2353
+ * Gets the IDs of all descendant Groups in a tree structure.
1971
2354
  *
1972
- * @returns A set of descendant Group IDs.
2355
+ * @returns A set of descendant Group IDs
1973
2356
  */
1974
2357
  getDescendantTreeIds(): Set<string>;
1975
2358
  /**
1976
2359
  * Checks if the Group has any children.
1977
2360
  *
1978
- * @returns True if the Group has children, otherwise false.
2361
+ * @returns True if the Group has children, otherwise false
1979
2362
  */
1980
2363
  hasChildren(): boolean;
1981
2364
  /**
1982
2365
  * Checks if the Group is a leaf node (i.e., has no children).
1983
2366
  *
1984
- * @returns True if the Group is a leaf, otherwise false.
2367
+ * @returns True if the Group is a leaf, otherwise false
1985
2368
  */
1986
2369
  isLeaf(): boolean;
1987
2370
  /**
1988
2371
  * Checks if the Group is a root node (i.e., has no parent).
1989
2372
  *
1990
- * @returns True if the Group is a root, otherwise false.
2373
+ * @returns True if the Group is a root, otherwise false
1991
2374
  */
1992
2375
  isRoot(): boolean;
1993
2376
  /**
1994
- * Retrieves the depth of the Group in the hierarchy.
2377
+ * Gets the depth of the Group in the hierarchy.
1995
2378
  *
1996
- * @returns The depth of the Group.
2379
+ * @returns The depth of the Group
1997
2380
  */
1998
2381
  getDepth(): number;
1999
2382
  /**
2000
- * Retrieves the root Group of the current Group.
2383
+ * Gets the root Group of the current Group.
2001
2384
  *
2002
- * @returns The root Group.
2385
+ * @returns The root Group
2003
2386
  */
2004
2387
  getRoot(): Group;
2005
2388
  /**
2006
- * Retrieves the name of the root Group.
2389
+ * Gets the name of the root Group.
2007
2390
  *
2008
- * @returns The name of the root Group.
2391
+ * @returns The name of the root Group
2009
2392
  */
2010
2393
  getRootName(): string;
2011
2394
 
2012
2395
 
2013
2396
 
2014
2397
  /**
2398
+ * Tells if this group has any account in it.
2399
+ *
2015
2400
  * @returns True if this group has any account in it
2016
2401
  */
2017
2402
  hasAccounts(): boolean | undefined;
2018
2403
  /**
2019
- * Perform create new group.
2404
+ * Performs create new group.
2405
+ *
2406
+ * @returns A promise that resolves to this Group
2020
2407
  */
2021
2408
  create(): Promise<Group>;
2022
2409
  /**
2023
- * Perform update group, applying pending changes.
2410
+ * Performs update group, applying pending changes.
2411
+ *
2412
+ * @returns A promise that resolves to this Group
2024
2413
  */
2025
2414
  update(): Promise<Group>;
2026
2415
  /**
2027
- * Perform delete group.
2416
+ * Performs delete group.
2417
+ *
2418
+ * @returns A promise that resolves to this Group
2028
2419
  */
2029
2420
  remove(): Promise<Group>;
2030
2421
 
@@ -2039,6 +2430,8 @@ export declare class Integration {
2039
2430
  payload: bkper.Integration;
2040
2431
  constructor(payload?: bkper.Integration);
2041
2432
  /**
2433
+ * Gets an immutable copy of the JSON payload for this Integration.
2434
+ *
2042
2435
  * @returns An immutable copy of the json payload
2043
2436
  */
2044
2437
  json(): bkper.Integration;
@@ -2103,7 +2496,7 @@ export declare class Integration {
2103
2496
  *
2104
2497
  * @param properties - Object with key/value pair properties
2105
2498
  *
2106
- * @returns The Integration, for chainning
2499
+ * @returns The Integration, for chaining
2107
2500
  */
2108
2501
  setProperties(properties: {
2109
2502
  [key: string]: string;
@@ -2130,7 +2523,7 @@ export declare class Integration {
2130
2523
  *
2131
2524
  * @param key - The property key
2132
2525
  *
2133
- * @returns The Integration, for chainning
2526
+ * @returns The Integration, for chaining
2134
2527
  */
2135
2528
  deleteProperty(key: string): Integration;
2136
2529
  /**
@@ -2154,47 +2547,58 @@ export declare class Message {
2154
2547
 
2155
2548
  constructor(conversation: Conversation, payload?: bkper.Message);
2156
2549
  /**
2550
+ * Gets the wrapped plain json object.
2551
+ *
2157
2552
  * @returns The wrapped plain json object
2158
2553
  */
2159
2554
  json(): bkper.Message;
2160
2555
  /**
2556
+ * Gets the Message universal identifier.
2161
2557
  *
2162
2558
  * @returns The Message universal identifier
2163
2559
  */
2164
2560
  getId(): string | undefined;
2165
2561
  /**
2562
+ * Gets the Agent associated with the Message.
2166
2563
  *
2167
- * @returns The Agent associated with the Message, in any
2564
+ * @returns The Agent associated with the Message, if any
2168
2565
  */
2169
2566
  getAgent(): Agent | undefined;
2170
2567
  /**
2568
+ * Gets the Conversation of the Message.
2171
2569
  *
2172
2570
  * @returns The Conversation of the Message
2173
2571
  */
2174
2572
  getConversation(): Conversation;
2175
2573
  /**
2574
+ * Gets the User associated with the Message.
2176
2575
  *
2177
2576
  * @returns The User associated with the Message
2178
2577
  */
2179
2578
  getUser(): User | undefined;
2180
2579
  /**
2580
+ * Gets the Date the Message was created.
2181
2581
  *
2182
2582
  * @returns The Date the Message was created
2183
2583
  */
2184
2584
  getCreatedAt(): Date | undefined;
2185
2585
  /**
2586
+ * Gets the text content of the Message.
2186
2587
  *
2187
2588
  * @returns The text content of the Message
2188
2589
  */
2189
2590
  getContent(): string | undefined;
2190
2591
  /**
2592
+ * Sets the text content of the Message.
2191
2593
  *
2192
- * @param content The text content of the Message
2594
+ * @param content - The text content of the Message
2193
2595
  *
2194
2596
  * @returns This Message, for chaining
2195
2597
  */
2196
2598
  setContent(content: string): Message;
2197
2599
  /**
2600
+ * Gets the custom properties stored in this Message.
2601
+ *
2198
2602
  * @returns The custom properties stored in this Message
2199
2603
  */
2200
2604
  getProperties(): {
@@ -2205,7 +2609,7 @@ export declare class Message {
2205
2609
  *
2206
2610
  * @param properties - Object with key/value pair properties
2207
2611
  *
2208
- * @returns This Message, for chainning.
2612
+ * @returns This Message, for chaining
2209
2613
  */
2210
2614
  setProperties(properties: {
2211
2615
  [key: string]: string;
@@ -2224,7 +2628,7 @@ export declare class Message {
2224
2628
  * @param key - The property key
2225
2629
  * @param value - The property value
2226
2630
  *
2227
- * @returns This Message, for chainning.
2631
+ * @returns This Message, for chaining
2228
2632
  */
2229
2633
  setProperty(key: string, value: string | null): Message;
2230
2634
  /**
@@ -2232,7 +2636,7 @@ export declare class Message {
2232
2636
  *
2233
2637
  * @param key - The property key
2234
2638
  *
2235
- * @returns This Message, for chainning.
2639
+ * @returns This Message, for chaining
2236
2640
  */
2237
2641
  deleteProperty(key: string): Message;
2238
2642
  /**
@@ -2243,6 +2647,8 @@ export declare class Message {
2243
2647
  create(): Promise<Message>;
2244
2648
  /**
2245
2649
  * Streams the Message to the Bkper API.
2650
+ *
2651
+ * @returns A Promise that resolves when the streaming is complete
2246
2652
  */
2247
2653
  stream(): Promise<void>;
2248
2654
  }
@@ -2353,47 +2759,61 @@ export declare class Query {
2353
2759
 
2354
2760
  constructor(book: Book, payload?: bkper.Query);
2355
2761
  /**
2762
+ * Gets the wrapped plain json object.
2763
+ *
2356
2764
  * @returns The wrapped plain json object
2357
2765
  */
2358
2766
  json(): bkper.Query;
2359
2767
  /**
2768
+ * Gets the Query universal identifier.
2769
+ *
2360
2770
  * @returns The Query universal identifier
2361
2771
  */
2362
2772
  getId(): string | undefined;
2363
2773
  /**
2364
- * @return The title of this saved Query
2774
+ * Gets the title of this saved Query.
2775
+ *
2776
+ * @returns The title of this saved Query
2365
2777
  */
2366
2778
  getTitle(): string | undefined;
2367
2779
  /**
2368
2780
  * Sets the title of this saved Query.
2369
2781
  *
2370
- * @param title The title of this saved Query
2782
+ * @param title - The title of this saved Query
2371
2783
  *
2372
2784
  * @returns This Query, for chaining
2373
2785
  */
2374
2786
  setTitle(title: string): Query;
2375
2787
  /**
2376
- * @return This Query string to be executed
2788
+ * Gets the query string to be executed.
2789
+ *
2790
+ * @returns This Query string to be executed
2377
2791
  */
2378
2792
  getQuery(): string | undefined;
2379
2793
  /**
2380
2794
  * Sets the query string associated with this saved Query.
2381
2795
  *
2382
- * @param query The query string to be executed
2796
+ * @param query - The query string to be executed
2383
2797
  *
2384
2798
  * @returns This Query, for chaining
2385
2799
  */
2386
2800
  setQuery(query: string): Query;
2387
2801
  /**
2388
2802
  * Perform create new Query.
2803
+ *
2804
+ * @returns This Query, for chaining
2389
2805
  */
2390
2806
  create(): Promise<Query>;
2391
2807
  /**
2392
2808
  * Perform update Query, applying pending changes.
2809
+ *
2810
+ * @returns This Query, for chaining
2393
2811
  */
2394
2812
  update(): Promise<Query>;
2395
2813
  /**
2396
2814
  * Perform delete Query.
2815
+ *
2816
+ * @returns This Query, for chaining
2397
2817
  */
2398
2818
  remove(): Promise<Query>;
2399
2819
 
@@ -2410,6 +2830,8 @@ export declare class Template {
2410
2830
  payload: bkper.Template;
2411
2831
  constructor(json?: bkper.Template);
2412
2832
  /**
2833
+ * Gets an immutable copy of the JSON payload for this Template.
2834
+ *
2413
2835
  * @returns An immutable copy of the json payload
2414
2836
  */
2415
2837
  json(): bkper.Template;
@@ -2476,116 +2898,149 @@ export declare class Transaction {
2476
2898
 
2477
2899
  constructor(book: Book, payload?: bkper.Transaction);
2478
2900
  /**
2901
+ * Gets the JSON representation of the transaction.
2902
+ *
2479
2903
  * @returns An immutable copy of the json payload
2480
2904
  */
2481
2905
  json(): bkper.Transaction;
2482
2906
  /**
2483
- * @returns The book of the Transaction.
2907
+ * Gets the book associated with this transaction.
2908
+ *
2909
+ * @returns The book of the Transaction
2484
2910
  */
2485
2911
  getBook(): Book;
2486
2912
  /**
2487
- * @returns The id of the Transaction.
2913
+ * Gets the unique identifier of the transaction.
2914
+ *
2915
+ * @returns The id of the Transaction
2488
2916
  */
2489
2917
  getId(): string | undefined;
2490
2918
  /**
2919
+ * Gets the unique identifier of the agent that created this transaction.
2920
+ *
2491
2921
  * @returns The id of the agent that created this transaction
2492
2922
  */
2493
2923
  getAgentId(): string | undefined;
2494
2924
  /**
2925
+ * Gets the name of the agent that created this transaction.
2926
+ *
2495
2927
  * @returns The name of the agent that created this transaction
2496
2928
  */
2497
2929
  getAgentName(): string | undefined;
2498
2930
  /**
2931
+ * Gets the logo URL of the agent that created this transaction.
2932
+ *
2499
2933
  * @returns The logo of the agent that created this transaction
2500
2934
  */
2501
2935
  getAgentLogoUrl(): string | undefined;
2502
2936
  /**
2937
+ * Gets the dark mode logo URL of the agent that created this transaction.
2938
+ *
2503
2939
  * @returns The logo of the agent that created this transaction in dark mode
2504
2940
  */
2505
2941
  getAgentLogoUrlDark(): string | undefined;
2506
2942
  /**
2507
- * Remote ids are used to avoid duplication.
2943
+ * Gets the remote IDs associated with this transaction. Remote ids are used to avoid duplication.
2508
2944
  *
2509
- * @returns The remote ids of the Transaction.
2945
+ * @returns The remote ids of the Transaction
2510
2946
  */
2511
2947
  getRemoteIds(): string[];
2512
2948
  /**
2513
2949
  * Add a remote id to the Transaction.
2514
2950
  *
2515
- * @param remoteId - The remote id to add.
2951
+ * @param remoteId - The remote id to add
2516
2952
  *
2517
- * @returns This Transaction, for chainning.
2953
+ * @returns This Transaction, for chaining
2518
2954
  */
2519
2955
  addRemoteId(remoteId: string): Transaction;
2520
2956
  /**
2521
- * @returns True if transaction was already posted to the accounts. False if is still a Draft.
2957
+ * Checks if the transaction has been posted to the accounts.
2958
+ *
2959
+ * @returns True if transaction was already posted to the accounts. False if is still a Draft
2522
2960
  */
2523
2961
  isPosted(): boolean | undefined;
2524
2962
  /**
2525
- * @returns True if transaction is checked.
2963
+ * Checks if the transaction is marked as checked.
2964
+ *
2965
+ * @returns True if transaction is checked
2526
2966
  */
2527
2967
  isChecked(): boolean | undefined;
2528
2968
  /**
2529
2969
  * Set the check state of the Transaction.
2530
2970
  *
2531
- * @param checked - The check state.
2971
+ * @param checked - The check state
2532
2972
  *
2533
- * @returns This Transaction, for chainning.
2973
+ * @returns This Transaction, for chaining
2534
2974
  */
2535
2975
  setChecked(checked: boolean): Transaction;
2536
2976
  /**
2537
- * @returns True if transaction is in trash.
2977
+ * Checks if the transaction is in the trash.
2978
+ *
2979
+ * @returns True if transaction is in trash
2538
2980
  */
2539
2981
  isTrashed(): boolean | undefined;
2540
2982
  /**
2983
+ * Checks if the transaction is locked by the book's lock or closing date.
2984
+ *
2541
2985
  * @returns True if a transaction is locked by the book lock/closing date
2542
2986
  */
2543
2987
  isLocked(): boolean;
2544
2988
  /**
2545
- * @returns All #hashtags used on the transaction.
2989
+ * Gets all hashtags used in the transaction.
2990
+ *
2991
+ * @returns All #hashtags used on the transaction
2546
2992
  */
2547
2993
  getTags(): string[];
2548
2994
  /**
2549
- * @returns All urls of the transaction.
2995
+ * Gets all URLs associated with the transaction.
2996
+ *
2997
+ * @returns All urls of the transaction
2550
2998
  */
2551
2999
  getUrls(): string[];
2552
3000
  /**
2553
3001
  * Sets the Transaction urls. Url starts with https://
2554
3002
  *
2555
- * @param urls - The urls array.
3003
+ * @param urls - The urls array
2556
3004
  *
2557
- * @returns This Transaction, for chainning.
3005
+ * @returns This Transaction, for chaining
2558
3006
  */
2559
3007
  setUrls(urls: string[]): Transaction;
2560
3008
  /**
2561
3009
  * Add a url to the Transaction. Url starts with https://
2562
3010
  *
2563
- * @param url - The url to add.
3011
+ * @param url - The url to add
2564
3012
  *
2565
- * @returns This Transaction, for chainning.
3013
+ * @returns This Transaction, for chaining
2566
3014
  */
2567
3015
  addUrl(url: string): Transaction;
2568
3016
  /**
2569
- * @returns The files attached to the transaction.
3017
+ * Gets all files attached to the transaction.
3018
+ *
3019
+ * @returns The files attached to the transaction
2570
3020
  */
2571
3021
  getFiles(): File[];
2572
3022
  /**
2573
- *
2574
3023
  * Adds a file attachment to the Transaction.
2575
3024
  *
2576
3025
  * Files MUST be previously created in the Book.
2577
3026
  *
2578
3027
  * @param file - The file to add
2579
3028
  *
2580
- * @returns This Transaction, for chainning.
3029
+ * @returns This Transaction, for chaining
2581
3030
  */
2582
3031
  addFile(file: File): Transaction;
2583
3032
  /**
2584
3033
  * Check if the transaction has the specified tag.
3034
+ *
3035
+ * @param tag - The tag to check for
3036
+ *
3037
+ * @returns True if the transaction has the specified tag
2585
3038
  */
2586
3039
  hasTag(tag: string): boolean;
2587
3040
  /**
2588
3041
  * Gets the custom properties stored in this Transaction.
3042
+ *
3043
+ * @returns Object with key/value pair properties
2589
3044
  */
2590
3045
  getProperties(): {
2591
3046
  [key: string]: string;
@@ -2595,7 +3050,7 @@ export declare class Transaction {
2595
3050
  *
2596
3051
  * @param properties - Object with key/value pair properties
2597
3052
  *
2598
- * @returns This Transaction, for chainning.
3053
+ * @returns This Transaction, for chaining
2599
3054
  */
2600
3055
  setProperties(properties: {
2601
3056
  [key: string]: string;
@@ -2604,10 +3059,14 @@ export declare class Transaction {
2604
3059
  * Gets the property value for given keys. First property found will be retrieved
2605
3060
  *
2606
3061
  * @param keys - The property key
3062
+ *
3063
+ * @returns The property value or undefined if not found
2607
3064
  */
2608
3065
  getProperty(...keys: string[]): string | undefined;
2609
3066
  /**
2610
3067
  * Gets the custom properties keys stored in this Transaction.
3068
+ *
3069
+ * @returns Array of property keys
2611
3070
  */
2612
3071
  getPropertyKeys(): string[];
2613
3072
  /**
@@ -2616,7 +3075,7 @@ export declare class Transaction {
2616
3075
  * @param key - The property key
2617
3076
  * @param value - The property value
2618
3077
  *
2619
- * @returns This Transaction, for chainning.
3078
+ * @returns This Transaction, for chaining
2620
3079
  */
2621
3080
  setProperty(key: string, value: string | null): Transaction;
2622
3081
  /**
@@ -2624,165 +3083,202 @@ export declare class Transaction {
2624
3083
  *
2625
3084
  * @param key - The property key
2626
3085
  *
2627
- * @returns This Transaction, for chainning.
3086
+ * @returns This Transaction, for chaining
2628
3087
  */
2629
3088
  deleteProperty(key: string): Transaction;
2630
3089
  /**
2631
- * @returns The credit account. The same as origin account.
3090
+ * Gets the credit account associated with this Transaction. Same as origin account
3091
+ *
3092
+ * @returns The credit (origin) account
2632
3093
  */
2633
3094
  getCreditAccount(): Promise<Account | undefined>;
2634
3095
  /**
2635
- * @returns The credit account name.
3096
+ * Gets the name of this Transaction's credit account.
3097
+ *
3098
+ * @returns The credit account name
2636
3099
  */
2637
3100
  getCreditAccountName(): Promise<string | undefined>;
2638
3101
  /**
3102
+ * Sets the credit/origin [[Account]] of this Transaction. Same as from()
2639
3103
  *
2640
- * Sets the credit/origin Account of the Transaction. Same as from().
2641
- *
2642
- * @param account - Account id, name or object.
3104
+ * @param account - The Account object
2643
3105
  *
2644
- * @returns This Transaction, for chainning.
3106
+ * @returns This Transaction, for chaining
2645
3107
  */
2646
3108
  setCreditAccount(account: Account | bkper.Account): Transaction;
2647
3109
  /**
3110
+ * Sets the credit/origin [[Account]] of this Transaction. Same as setCreditAccount()
2648
3111
  *
2649
- * Sets the credit/origin Account of the Transaction. Same as setCreditAccount().
2650
- *
2651
- * @param account - Account id, name or object.
3112
+ * @param account - The Account object
2652
3113
  *
2653
- * @returns This Transaction, for chainning.
3114
+ * @returns This Transaction, for chaining
2654
3115
  */
2655
3116
  from(account: Account | bkper.Account): Transaction;
2656
3117
  /**
2657
- * @returns The debit account. The same as destination account.
3118
+ * Gets the debit account associated with this Transaction. Same as destination account
2658
3119
  *
3120
+ * @returns The debit (destination) account
2659
3121
  */
2660
3122
  getDebitAccount(): Promise<Account | undefined>;
2661
3123
  /**
2662
- * @returns The debit account name.
3124
+ * Gets the name of this Transaction's debit account.
3125
+ *
3126
+ * @returns The debit account name
2663
3127
  */
2664
3128
  getDebitAccountName(): Promise<string | undefined>;
2665
3129
  /**
3130
+ * Sets the debit/destination [[Account]] of this Transaction. Same as to()
2666
3131
  *
2667
- * Sets the debit/destination Account of the Transaction. Same as to().
2668
- *
2669
- * @param account - Account id, name or object.
3132
+ * @param account - The Account object
2670
3133
  *
2671
- * @returns This Transaction, for chainning.
3134
+ * @returns This Transaction, for chaining
2672
3135
  */
2673
3136
  setDebitAccount(account: Account | bkper.Account): Transaction;
2674
3137
  /**
3138
+ * Sets the debit/destination [[Account]] of this Transaction. Same as setDebitAccount()
2675
3139
  *
2676
- * Sets the debit/destination Account of the Transaction. Same as setDebitAccount().
2677
- *
2678
- * @param account - Account id, name or object.
3140
+ * @param account - The Account object
2679
3141
  *
2680
- * @returns This Transaction, for chainning.
3142
+ * @returns This Transaction, for chaining
2681
3143
  */
2682
3144
  to(account: Account | bkper.Account): Transaction;
2683
3145
  /**
2684
- * @returns The amount of the transaction.
3146
+ * Gets the amount of this Transaction.
3147
+ *
3148
+ * @returns The amount of this Transaction
2685
3149
  */
2686
3150
  getAmount(): Amount | undefined;
2687
3151
  /**
2688
- * @returns The amount of the transaction, formatted according to the Book format.
3152
+ * Gets the formatted amount of this Transaction according to the Book format.
3153
+ *
3154
+ * @returns The amount of this Transaction, formatted according to the Book format
2689
3155
  */
2690
3156
  getAmountFormatted(): string | undefined;
2691
3157
  /**
3158
+ * Sets the amount of this Transaction.
2692
3159
  *
2693
- * Sets the amount of the Transaction.
3160
+ * @param amount - The amount to set
2694
3161
  *
2695
- * @returns This Transaction, for chainning.
3162
+ * @returns This Transaction, for chaining
2696
3163
  */
2697
3164
  setAmount(amount: Amount | number | string): Transaction;
2698
3165
  /**
2699
- * Get the absolute amount of this transaction if the given account is at the credit side, else null.
3166
+ * Get the absolute amount of this Transaction if the given account is at the credit side.
3167
+ *
3168
+ * @param account - The account object, id or name
2700
3169
  *
2701
- * @param account - The account object, id or name.
3170
+ * @returns The credit amount or undefined
2702
3171
  */
2703
3172
  getCreditAmount(account: Account | string): Promise<Amount | undefined>;
2704
3173
  /**
2705
- * Gets the absolute amount of this transaction if the given account is at the debit side, else null.
3174
+ * Gets the absolute amount of this Transaction if the given account is at the debit side.
2706
3175
  *
2707
- * @param account - The account object, id or name.
3176
+ * @param account - The account object, id or name
3177
+ *
3178
+ * @returns The debit amount or undefined
2708
3179
  */
2709
3180
  getDebitAmount(account: Account | string): Promise<Amount | undefined>;
2710
3181
  /**
2711
3182
  * Gets the [[Account]] at the other side of the transaction given the one in one side.
2712
3183
  *
2713
- * @param account - The account object, id or name.
3184
+ * @param account - The account object, id or name
3185
+ *
3186
+ * @returns The account at the other side of the transaction
2714
3187
  */
2715
3188
  getOtherAccount(account: Account | string): Promise<Account | undefined>;
2716
3189
  /**
3190
+ * The Account name at the other side of this Transaction given the one in one side.
2717
3191
  *
2718
- * The account name at the other side of the transaction given the one in one side.
3192
+ * @param account - The Account object, id or name
2719
3193
  *
2720
- * @param account - The account object, id or name.
3194
+ * @returns The name of the Account at the other side
2721
3195
  */
2722
3196
  getOtherAccountName(account: string | Account): Promise<string | undefined>;
2723
3197
  /**
3198
+ * Tell if the given account is credit on this Transaction
2724
3199
  *
2725
- * Tell if the given account is credit on the transaction
3200
+ * @param account - The Account object
2726
3201
  *
2727
- * @param account - The account object
3202
+ * @returns True if the account is the credit account
2728
3203
  */
2729
3204
  isCredit(account?: Account): Promise<boolean>;
2730
3205
  /**
3206
+ * Tell if the given account is debit on the Transaction
2731
3207
  *
2732
- * Tell if the given account is debit on the transaction
3208
+ * @param account - The [[Account]] object
2733
3209
  *
2734
- * @param account - The account object
3210
+ * @returns True if the Account is the debit account
2735
3211
  */
2736
3212
  isDebit(account?: Account): Promise<boolean>;
2737
3213
 
2738
3214
  /**
2739
- * @returns The description of this transaction.
3215
+ * Gets the description of this Transaction.
3216
+ *
3217
+ * @returns The description of this Transaction
2740
3218
  */
2741
3219
  getDescription(): string;
2742
3220
  /**
2743
- *
2744
3221
  * Sets the description of the Transaction.
2745
3222
  *
2746
- * @returns This Transaction, for chainning.
3223
+ * @param description - The description to set
3224
+ *
3225
+ * @returns This Transaction, for chaining
2747
3226
  */
2748
3227
  setDescription(description: string): Transaction;
2749
3228
  /**
2750
- * @returns The Transaction date, in ISO format yyyy-MM-dd.
3229
+ * Gets the transaction date in ISO format.
3230
+ *
3231
+ * @returns The Transaction date, in ISO format yyyy-MM-dd
2751
3232
  */
2752
3233
  getDate(): string | undefined;
2753
3234
  /**
2754
- *
2755
3235
  * Sets the date of the Transaction.
2756
3236
  *
2757
- * @returns This Transaction, for chainning
3237
+ * @param date - The date to set as string or Date object
3238
+ *
3239
+ * @returns This Transaction, for chaining
2758
3240
  */
2759
3241
  setDate(date: string | Date): Transaction;
2760
3242
  /**
2761
- * @returns The Transaction Date object, on the time zone of the [[Book]].
3243
+ * Gets the transaction date as a Date object in the book's timezone.
3244
+ *
3245
+ * @returns The Transaction Date object, on the time zone of the [[Book]]
2762
3246
  */
2763
3247
  getDateObject(): Date;
2764
3248
  /**
2765
- * @returns The Transaction date number, in format YYYYMMDD.
3249
+ * Gets the transaction date as a numeric value.
3250
+ *
3251
+ * @returns The Transaction date number, in format YYYYMMDD
2766
3252
  */
2767
3253
  getDateValue(): number | undefined;
2768
3254
  /**
2769
- * @returns The Transaction date, formatted on the date pattern of the [[Book]].
3255
+ * Gets the transaction date formatted according to the book's date pattern.
3256
+ *
3257
+ * @returns The Transaction date, formatted on the date pattern of the [[Book]]
2770
3258
  */
2771
3259
  getDateFormatted(): string | undefined;
2772
3260
  /**
2773
- * @returns The date the transaction was created.
3261
+ * Gets the date when the transaction was created.
3262
+ *
3263
+ * @returns The date the transaction was created
2774
3264
  */
2775
3265
  getCreatedAt(): Date;
2776
3266
  /**
2777
- * @returns The date the transaction was created, formatted according to the date pattern of the [[Book]].
3267
+ * Gets the formatted creation date of the transaction.
3268
+ *
3269
+ * @returns The date the transaction was created, formatted according to the date pattern of the [[Book]]
2778
3270
  */
2779
3271
  getCreatedAtFormatted(): string;
2780
3272
  /**
2781
- * @returns The date the transaction was last updated.
3273
+ * Gets the date when the transaction was last updated.
3274
+ *
3275
+ * @returns The date the transaction was last updated
2782
3276
  */
2783
3277
  getUpdatedAt(): Date;
2784
3278
  /**
2785
- * @returns The date the transaction was last updated, formatted according to the date pattern of the [[Book]].
3279
+ * Gets the formatted last update date of the transaction.
3280
+ *
3281
+ * @returns The date the transaction was last updated, formatted according to the date pattern of the [[Book]]
2786
3282
  */
2787
3283
  getUpdatedAtFormatted(): string;
2788
3284
 
@@ -2794,35 +3290,51 @@ export declare class Transaction {
2794
3290
  *
2795
3291
  * Only comes with the last posted transaction of the day.
2796
3292
  *
2797
- * @param raw - True to get the raw balance, no matter the credit nature of the [[Account]].
3293
+ * @param raw - True to get the raw balance, no matter the credit nature of the [[Account]]
3294
+ *
3295
+ * @returns The account balance at the transaction date
2798
3296
  */
2799
3297
  getAccountBalance(raw?: boolean): Promise<Amount | undefined>;
2800
3298
  /**
2801
3299
  * Perform create new draft transaction.
3300
+ *
3301
+ * @returns This Transaction, for chaining
2802
3302
  */
2803
3303
  create(): Promise<Transaction>;
2804
3304
  /**
2805
- * Upddate transaction, applying pending changes.
3305
+ * Update transaction, applying pending changes.
3306
+ *
3307
+ * @returns This Transaction, for chaining
2806
3308
  */
2807
3309
  update(): Promise<Transaction>;
2808
3310
  /**
2809
3311
  * Perform check transaction.
3312
+ *
3313
+ * @returns This Transaction, for chaining
2810
3314
  */
2811
3315
  check(): Promise<Transaction>;
2812
3316
  /**
2813
3317
  * Perform uncheck transaction.
3318
+ *
3319
+ * @returns This Transaction, for chaining
2814
3320
  */
2815
3321
  uncheck(): Promise<Transaction>;
2816
3322
  /**
2817
3323
  * Perform post transaction, changing credit and debit [[Account]] balances.
3324
+ *
3325
+ * @returns This Transaction, for chaining
2818
3326
  */
2819
3327
  post(): Promise<Transaction>;
2820
3328
  /**
2821
3329
  * Trash the transaction.
3330
+ *
3331
+ * @returns This Transaction, for chaining
2822
3332
  */
2823
3333
  trash(): Promise<Transaction>;
2824
3334
  /**
2825
3335
  * Untrash the transaction.
3336
+ *
3337
+ * @returns This Transaction, for chaining
2826
3338
  */
2827
3339
  untrash(): Promise<Transaction>;
2828
3340
  /** @deprecated */
@@ -2833,40 +3345,51 @@ export declare class Transaction {
2833
3345
 
2834
3346
  /**
2835
3347
  * A list associated with a transaction query.
3348
+ *
3349
+ * @public
2836
3350
  */
2837
3351
  export declare class TransactionList {
2838
3352
  private payload;
2839
3353
 
2840
3354
  constructor(book: Book, payload: bkper.TransactionList);
2841
3355
  /**
2842
- * @returns The cursor associated with the query for pagination.
3356
+ * Gets the cursor associated with the query for pagination.
3357
+ *
3358
+ * @returns The cursor associated with the query for pagination
2843
3359
  */
2844
3360
  getCursor(): string | undefined;
2845
3361
  /**
2846
3362
  * Retrieves the account associated with the query, when filtering by account.
3363
+ *
3364
+ * @returns The account associated with the query, or undefined if not set
2847
3365
  */
2848
3366
  getAccount(): Promise<Account | undefined>;
2849
3367
  /**
2850
- * @returns The first Transaction in the list.
3368
+ * Gets the first Transaction in the list.
3369
+ *
3370
+ * @returns The first Transaction in the list
2851
3371
  */
2852
3372
  getFirst(): Transaction | undefined;
2853
3373
  /**
3374
+ * Gets the total number of transactions in the list.
2854
3375
  *
2855
- * Get the total number of transactions in the list.
2856
- *
2857
- * @returns The total number of transactions.
3376
+ * @returns The total number of transactions
2858
3377
  */
2859
3378
  size(): number;
2860
3379
  /**
2861
- * Get the transactions in the list.
3380
+ * Gets the transactions in the list.
2862
3381
  *
2863
- * @returns An array of Transaction objects.
3382
+ * @returns An array of Transaction objects
2864
3383
  */
2865
3384
  getItems(): Transaction[];
2866
3385
  }
2867
3386
 
2868
3387
  /**
2869
- * This class defines a User.
3388
+ * This class defines a User on the Bkper platform.
3389
+ *
3390
+ * Users can own and collaborate on [[Books]], manage [[Collections]], and connect to external services through [[Connections]].
3391
+ *
3392
+ * Each User has a unique identity, subscription plan details, and access permissions across the platform.
2870
3393
  *
2871
3394
  * @public
2872
3395
  */
@@ -2874,6 +3397,8 @@ export declare class User {
2874
3397
  payload: bkper.User;
2875
3398
  constructor(payload?: bkper.User);
2876
3399
  /**
3400
+ * Gets an immutable copy of the JSON payload for this User.
3401
+ *
2877
3402
  * @returns An immutable copy of the json payload
2878
3403
  */
2879
3404
  json(): bkper.User;