bkper-js 2.14.0 → 2.14.1
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/CHANGELOG.md +1 -0
- package/lib/index.d.ts +14 -14
- package/lib/model/Account.js +1 -1
- package/lib/model/Book.js +1 -1
- package/lib/model/Connection.js +1 -1
- package/lib/model/File.js +1 -1
- package/lib/model/Group.js +1 -1
- package/lib/model/Integration.js +1 -1
- package/lib/model/Transaction.js +2 -2
- package/lib/tsdoc-metadata.json +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/lib/index.d.ts
CHANGED
|
@@ -95,11 +95,11 @@ export declare class Account extends Resource<bkper.Account> {
|
|
|
95
95
|
* Sets a custom property in the Account.
|
|
96
96
|
*
|
|
97
97
|
* @param key - The property key
|
|
98
|
-
* @param value - The property value
|
|
98
|
+
* @param value - The property value, or null/undefined to clean it
|
|
99
99
|
*
|
|
100
100
|
* @returns This Account, for chaining
|
|
101
101
|
*/
|
|
102
|
-
setProperty(key: string, value: string | null): Account;
|
|
102
|
+
setProperty(key: string, value: string | null | undefined): Account;
|
|
103
103
|
/**
|
|
104
104
|
* Deletes a custom property.
|
|
105
105
|
*
|
|
@@ -1578,11 +1578,11 @@ export declare class Book extends Resource<bkper.Book> {
|
|
|
1578
1578
|
* Sets a custom property in the Book.
|
|
1579
1579
|
*
|
|
1580
1580
|
* @param key - The property key
|
|
1581
|
-
* @param value - The property value
|
|
1581
|
+
* @param value - The property value, or null/undefined to clean it
|
|
1582
1582
|
*
|
|
1583
1583
|
* @returns This Book, for chaining
|
|
1584
1584
|
*/
|
|
1585
|
-
setProperty(key: string, value: string | null): Book;
|
|
1585
|
+
setProperty(key: string, value: string | null | undefined): Book;
|
|
1586
1586
|
/**
|
|
1587
1587
|
* Formats a date according to date pattern of the Book.
|
|
1588
1588
|
*
|
|
@@ -2344,11 +2344,11 @@ export declare class Connection extends Resource<bkper.Connection> {
|
|
|
2344
2344
|
* Sets a custom property in the Connection.
|
|
2345
2345
|
*
|
|
2346
2346
|
* @param key - The property key
|
|
2347
|
-
* @param value - The property value
|
|
2347
|
+
* @param value - The property value, or null/undefined to clean it
|
|
2348
2348
|
*
|
|
2349
2349
|
* @returns The Connection, for chaining
|
|
2350
2350
|
*/
|
|
2351
|
-
setProperty(key: string, value: string | null): Connection;
|
|
2351
|
+
setProperty(key: string, value: string | null | undefined): Connection;
|
|
2352
2352
|
/**
|
|
2353
2353
|
* Deletes a custom property stored in the Connection.
|
|
2354
2354
|
*
|
|
@@ -2651,11 +2651,11 @@ export declare class File extends Resource<bkper.File> {
|
|
|
2651
2651
|
* Sets a custom property in the File.
|
|
2652
2652
|
*
|
|
2653
2653
|
* @param key - The property key
|
|
2654
|
-
* @param value - The property value
|
|
2654
|
+
* @param value - The property value, or null/undefined to clean it
|
|
2655
2655
|
*
|
|
2656
2656
|
* @returns This File, for chaining
|
|
2657
2657
|
*/
|
|
2658
|
-
setProperty(key: string, value: string | null): File;
|
|
2658
|
+
setProperty(key: string, value: string | null | undefined): File;
|
|
2659
2659
|
/**
|
|
2660
2660
|
* Deletes a custom property.
|
|
2661
2661
|
*
|
|
@@ -2778,11 +2778,11 @@ export declare class Group extends Resource<bkper.Group> {
|
|
|
2778
2778
|
* Sets a custom property in the Group.
|
|
2779
2779
|
*
|
|
2780
2780
|
* @param key - The property key
|
|
2781
|
-
* @param value - The property value
|
|
2781
|
+
* @param value - The property value, or null/undefined to clean it
|
|
2782
2782
|
*
|
|
2783
2783
|
* @returns This Group, for chaining
|
|
2784
2784
|
*/
|
|
2785
|
-
setProperty(key: string, value: string | null): Group;
|
|
2785
|
+
setProperty(key: string, value: string | null | undefined): Group;
|
|
2786
2786
|
/**
|
|
2787
2787
|
* Delete a custom property
|
|
2788
2788
|
*
|
|
@@ -3029,11 +3029,11 @@ export declare class Integration extends Resource<bkper.Integration> {
|
|
|
3029
3029
|
* Sets a custom property in the Integration.
|
|
3030
3030
|
*
|
|
3031
3031
|
* @param key - The property key
|
|
3032
|
-
* @param value - The property value
|
|
3032
|
+
* @param value - The property value, or null/undefined to clean it
|
|
3033
3033
|
*
|
|
3034
3034
|
* @returns The Integration, for chaining
|
|
3035
3035
|
*/
|
|
3036
|
-
setProperty(key: string, value: string | null): Integration;
|
|
3036
|
+
setProperty(key: string, value: string | null | undefined): Integration;
|
|
3037
3037
|
/**
|
|
3038
3038
|
* Deletes a custom property stored in the Integration.
|
|
3039
3039
|
*
|
|
@@ -3487,11 +3487,11 @@ export declare class Transaction extends Resource<bkper.Transaction> {
|
|
|
3487
3487
|
* Sets a custom property in the Transaction.
|
|
3488
3488
|
*
|
|
3489
3489
|
* @param key - The property key
|
|
3490
|
-
* @param value - The property value
|
|
3490
|
+
* @param value - The property value, or null/undefined to clean it
|
|
3491
3491
|
*
|
|
3492
3492
|
* @returns This Transaction, for chaining
|
|
3493
3493
|
*/
|
|
3494
|
-
setProperty(key: string, value: string | null): Transaction;
|
|
3494
|
+
setProperty(key: string, value: string | null | undefined): Transaction;
|
|
3495
3495
|
/**
|
|
3496
3496
|
* Delete a custom property
|
|
3497
3497
|
*
|
package/lib/model/Account.js
CHANGED
|
@@ -137,7 +137,7 @@ export class Account extends Resource {
|
|
|
137
137
|
* Sets a custom property in the Account.
|
|
138
138
|
*
|
|
139
139
|
* @param key - The property key
|
|
140
|
-
* @param value - The property value
|
|
140
|
+
* @param value - The property value, or null/undefined to clean it
|
|
141
141
|
*
|
|
142
142
|
* @returns This Account, for chaining
|
|
143
143
|
*/
|
package/lib/model/Book.js
CHANGED
|
@@ -420,7 +420,7 @@ export class Book extends Resource {
|
|
|
420
420
|
* Sets a custom property in the Book.
|
|
421
421
|
*
|
|
422
422
|
* @param key - The property key
|
|
423
|
-
* @param value - The property value
|
|
423
|
+
* @param value - The property value, or null/undefined to clean it
|
|
424
424
|
*
|
|
425
425
|
* @returns This Book, for chaining
|
|
426
426
|
*/
|
package/lib/model/Connection.js
CHANGED
|
@@ -174,7 +174,7 @@ export class Connection extends Resource {
|
|
|
174
174
|
* Sets a custom property in the Connection.
|
|
175
175
|
*
|
|
176
176
|
* @param key - The property key
|
|
177
|
-
* @param value - The property value
|
|
177
|
+
* @param value - The property value, or null/undefined to clean it
|
|
178
178
|
*
|
|
179
179
|
* @returns The Connection, for chaining
|
|
180
180
|
*/
|
package/lib/model/File.js
CHANGED
|
@@ -165,7 +165,7 @@ export class File extends Resource {
|
|
|
165
165
|
* Sets a custom property in the File.
|
|
166
166
|
*
|
|
167
167
|
* @param key - The property key
|
|
168
|
-
* @param value - The property value
|
|
168
|
+
* @param value - The property value, or null/undefined to clean it
|
|
169
169
|
*
|
|
170
170
|
* @returns This File, for chaining
|
|
171
171
|
*/
|
package/lib/model/Group.js
CHANGED
|
@@ -180,7 +180,7 @@ export class Group extends Resource {
|
|
|
180
180
|
* Sets a custom property in the Group.
|
|
181
181
|
*
|
|
182
182
|
* @param key - The property key
|
|
183
|
-
* @param value - The property value
|
|
183
|
+
* @param value - The property value, or null/undefined to clean it
|
|
184
184
|
*
|
|
185
185
|
* @returns This Group, for chaining
|
|
186
186
|
*/
|
package/lib/model/Integration.js
CHANGED
|
@@ -147,7 +147,7 @@ export class Integration extends Resource {
|
|
|
147
147
|
* Sets a custom property in the Integration.
|
|
148
148
|
*
|
|
149
149
|
* @param key - The property key
|
|
150
|
-
* @param value - The property value
|
|
150
|
+
* @param value - The property value, or null/undefined to clean it
|
|
151
151
|
*
|
|
152
152
|
* @returns The Integration, for chaining
|
|
153
153
|
*/
|
package/lib/model/Transaction.js
CHANGED
|
@@ -371,7 +371,7 @@ export class Transaction extends Resource {
|
|
|
371
371
|
* Sets a custom property in the Transaction.
|
|
372
372
|
*
|
|
373
373
|
* @param key - The property key
|
|
374
|
-
* @param value - The property value
|
|
374
|
+
* @param value - The property value, or null/undefined to clean it
|
|
375
375
|
*
|
|
376
376
|
* @returns This Transaction, for chaining
|
|
377
377
|
*/
|
|
@@ -713,7 +713,7 @@ export class Transaction extends Resource {
|
|
|
713
713
|
let dateObject = Utils.parseDate(date, this.book.getDatePattern(), this.book.getTimeZone());
|
|
714
714
|
this.payload.date = Utils.formatDateISO(dateObject, this.book.getTimeZone());
|
|
715
715
|
}
|
|
716
|
-
else if (date.indexOf("-")) {
|
|
716
|
+
else if (date.indexOf("-") >= 0) {
|
|
717
717
|
this.payload.date = date;
|
|
718
718
|
}
|
|
719
719
|
}
|
package/lib/tsdoc-metadata.json
CHANGED