ynab 1.52.0 → 1.53.0

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/dist/esm/api.d.ts CHANGED
@@ -135,6 +135,36 @@ export interface Account {
135
135
  * @memberof Account
136
136
  */
137
137
  direct_import_in_error?: boolean | null;
138
+ /**
139
+ * A date/time specifying when the account was last reconciled.
140
+ * @type {string}
141
+ * @memberof Account
142
+ */
143
+ last_reconciled_at?: string | null;
144
+ /**
145
+ * The original debt/loan account balance, specified in milliunits format.
146
+ * @type {number}
147
+ * @memberof Account
148
+ */
149
+ debt_original_balance?: number | null;
150
+ /**
151
+ * The debt/loan account interest rate(s), by effective date.
152
+ * @type {LoanAccountPeriodicValue}
153
+ * @memberof Account
154
+ */
155
+ debt_interest_rates?: LoanAccountPeriodicValue | null;
156
+ /**
157
+ * The minimum payment amount(s) for the debt/loan account, by effective date. The amounts are specified in milliunits format.
158
+ * @type {LoanAccountPeriodicValue}
159
+ * @memberof Account
160
+ */
161
+ debt_minimum_payments?: LoanAccountPeriodicValue | null;
162
+ /**
163
+ * The escrow value(s) for the debt/loan account, by effective date. The amounts are specified in milliunits format.
164
+ * @type {LoanAccountPeriodicValue}
165
+ * @memberof Account
166
+ */
167
+ debt_escrow_amounts?: LoanAccountPeriodicValue | null;
138
168
  /**
139
169
  * Whether or not the account has been deleted. Deleted accounts will only be included in delta requests.
140
170
  * @type {boolean}
@@ -540,6 +570,24 @@ export interface Category {
540
570
  * @memberof Category
541
571
  */
542
572
  goal_type?: Category.GoalTypeEnum | null;
573
+ /**
574
+ * The day of the goal
575
+ * @type {number}
576
+ * @memberof Category
577
+ */
578
+ goal_day?: number | null;
579
+ /**
580
+ * The goal cadence
581
+ * @type {number}
582
+ * @memberof Category
583
+ */
584
+ goal_cadence?: number | null;
585
+ /**
586
+ * The goal cadence frequency
587
+ * @type {number}
588
+ * @memberof Category
589
+ */
590
+ goal_cadence_frequency?: number | null;
543
591
  /**
544
592
  * The month a goal was created
545
593
  * @type {string}
@@ -807,6 +855,14 @@ export interface HybridTransactionsResponseData {
807
855
  */
808
856
  server_knowledge?: number | null;
809
857
  }
858
+ /**
859
+ *
860
+ * @export
861
+ * @interface LoanAccountPeriodicValue
862
+ */
863
+ export interface LoanAccountPeriodicValue {
864
+ [key: string]: number;
865
+ }
810
866
  /**
811
867
  *
812
868
  * @export
@@ -1862,6 +1918,12 @@ export interface TransactionSummary {
1862
1918
  * @memberof TransactionSummary
1863
1919
  */
1864
1920
  import_payee_name_original?: string | null;
1921
+ /**
1922
+ * If the transaction is a debt/loan account transaction, the type of transaction
1923
+ * @type {string}
1924
+ * @memberof TransactionSummary
1925
+ */
1926
+ debt_transaction_type?: TransactionSummary.DebtTransactionTypeEnum | null;
1865
1927
  /**
1866
1928
  * Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests.
1867
1929
  * @type {boolean}
@@ -1895,6 +1957,20 @@ export declare namespace TransactionSummary {
1895
1957
  Blue,
1896
1958
  Purple
1897
1959
  }
1960
+ /**
1961
+ * @export
1962
+ * @enum {string}
1963
+ */
1964
+ enum DebtTransactionTypeEnum {
1965
+ Payment,
1966
+ Refund,
1967
+ Fee,
1968
+ Interest,
1969
+ Escrow,
1970
+ BalancedAdjustment,
1971
+ Credit,
1972
+ Charge
1973
+ }
1898
1974
  }
1899
1975
  /**
1900
1976
  *
@@ -2241,6 +2317,12 @@ export interface HybridTransaction {
2241
2317
  * @memberof HybridTransaction
2242
2318
  */
2243
2319
  import_payee_name_original?: string | null;
2320
+ /**
2321
+ * If the transaction is a debt/loan account transaction, the type of transaction
2322
+ * @type {string}
2323
+ * @memberof HybridTransaction
2324
+ */
2325
+ debt_transaction_type?: HybridTransaction.DebtTransactionTypeEnum | null;
2244
2326
  /**
2245
2327
  * Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests.
2246
2328
  * @type {boolean}
@@ -2304,6 +2386,20 @@ export declare namespace HybridTransaction {
2304
2386
  Blue,
2305
2387
  Purple
2306
2388
  }
2389
+ /**
2390
+ * @export
2391
+ * @enum {string}
2392
+ */
2393
+ enum DebtTransactionTypeEnum {
2394
+ Payment,
2395
+ Refund,
2396
+ Fee,
2397
+ Interest,
2398
+ Escrow,
2399
+ BalancedAdjustment,
2400
+ Credit,
2401
+ Charge
2402
+ }
2307
2403
  /**
2308
2404
  * @export
2309
2405
  * @enum {string}
@@ -2834,6 +2930,12 @@ export interface TransactionDetail {
2834
2930
  * @memberof TransactionDetail
2835
2931
  */
2836
2932
  import_payee_name_original?: string | null;
2933
+ /**
2934
+ * If the transaction is a debt/loan account transaction, the type of transaction
2935
+ * @type {string}
2936
+ * @memberof TransactionDetail
2937
+ */
2938
+ debt_transaction_type?: TransactionDetail.DebtTransactionTypeEnum | null;
2837
2939
  /**
2838
2940
  * Whether or not the transaction has been deleted. Deleted transactions will only be included in delta requests.
2839
2941
  * @type {boolean}
@@ -2891,6 +2993,20 @@ export declare namespace TransactionDetail {
2891
2993
  Blue,
2892
2994
  Purple
2893
2995
  }
2996
+ /**
2997
+ * @export
2998
+ * @enum {string}
2999
+ */
3000
+ enum DebtTransactionTypeEnum {
3001
+ Payment,
3002
+ Refund,
3003
+ Fee,
3004
+ Interest,
3005
+ Escrow,
3006
+ BalancedAdjustment,
3007
+ Credit,
3008
+ Charge
3009
+ }
2894
3010
  }
2895
3011
  /**
2896
3012
  * AccountsApi - fetch parameter creator
package/dist/esm/api.js CHANGED
@@ -69,7 +69,7 @@ if (!globalThis.fetch) {
69
69
  globalThis.Headers = fetchPonyfill.Headers;
70
70
  globalThis.Request = fetchPonyfill.Request;
71
71
  }
72
- var USER_AGENT = "api_client/js/1.42.0";
72
+ var USER_AGENT = "api_client/js/1.45.0";
73
73
  function convertDateToFullDateStringFormat(date) {
74
74
  // Convert to RFC 3339 "full-date" format, like "2017-11-27"
75
75
  if (date instanceof Date) {
@@ -259,6 +259,21 @@ export var TransactionSummary;
259
259
  FlagColorEnum[FlagColorEnum["Blue"] = 'blue'] = "Blue";
260
260
  FlagColorEnum[FlagColorEnum["Purple"] = 'purple'] = "Purple";
261
261
  })(FlagColorEnum = TransactionSummary.FlagColorEnum || (TransactionSummary.FlagColorEnum = {}));
262
+ /**
263
+ * @export
264
+ * @enum {string}
265
+ */
266
+ var DebtTransactionTypeEnum;
267
+ (function (DebtTransactionTypeEnum) {
268
+ DebtTransactionTypeEnum[DebtTransactionTypeEnum["Payment"] = 'payment'] = "Payment";
269
+ DebtTransactionTypeEnum[DebtTransactionTypeEnum["Refund"] = 'refund'] = "Refund";
270
+ DebtTransactionTypeEnum[DebtTransactionTypeEnum["Fee"] = 'fee'] = "Fee";
271
+ DebtTransactionTypeEnum[DebtTransactionTypeEnum["Interest"] = 'interest'] = "Interest";
272
+ DebtTransactionTypeEnum[DebtTransactionTypeEnum["Escrow"] = 'escrow'] = "Escrow";
273
+ DebtTransactionTypeEnum[DebtTransactionTypeEnum["BalancedAdjustment"] = 'balancedAdjustment'] = "BalancedAdjustment";
274
+ DebtTransactionTypeEnum[DebtTransactionTypeEnum["Credit"] = 'credit'] = "Credit";
275
+ DebtTransactionTypeEnum[DebtTransactionTypeEnum["Charge"] = 'charge'] = "Charge";
276
+ })(DebtTransactionTypeEnum = TransactionSummary.DebtTransactionTypeEnum || (TransactionSummary.DebtTransactionTypeEnum = {}));
262
277
  })(TransactionSummary || (TransactionSummary = {}));
263
278
  /**
264
279
  * @export
@@ -289,6 +304,21 @@ export var HybridTransaction;
289
304
  FlagColorEnum[FlagColorEnum["Blue"] = 'blue'] = "Blue";
290
305
  FlagColorEnum[FlagColorEnum["Purple"] = 'purple'] = "Purple";
291
306
  })(FlagColorEnum = HybridTransaction.FlagColorEnum || (HybridTransaction.FlagColorEnum = {}));
307
+ /**
308
+ * @export
309
+ * @enum {string}
310
+ */
311
+ var DebtTransactionTypeEnum;
312
+ (function (DebtTransactionTypeEnum) {
313
+ DebtTransactionTypeEnum[DebtTransactionTypeEnum["Payment"] = 'payment'] = "Payment";
314
+ DebtTransactionTypeEnum[DebtTransactionTypeEnum["Refund"] = 'refund'] = "Refund";
315
+ DebtTransactionTypeEnum[DebtTransactionTypeEnum["Fee"] = 'fee'] = "Fee";
316
+ DebtTransactionTypeEnum[DebtTransactionTypeEnum["Interest"] = 'interest'] = "Interest";
317
+ DebtTransactionTypeEnum[DebtTransactionTypeEnum["Escrow"] = 'escrow'] = "Escrow";
318
+ DebtTransactionTypeEnum[DebtTransactionTypeEnum["BalancedAdjustment"] = 'balancedAdjustment'] = "BalancedAdjustment";
319
+ DebtTransactionTypeEnum[DebtTransactionTypeEnum["Credit"] = 'credit'] = "Credit";
320
+ DebtTransactionTypeEnum[DebtTransactionTypeEnum["Charge"] = 'charge'] = "Charge";
321
+ })(DebtTransactionTypeEnum = HybridTransaction.DebtTransactionTypeEnum || (HybridTransaction.DebtTransactionTypeEnum = {}));
292
322
  /**
293
323
  * @export
294
324
  * @enum {string}
@@ -428,6 +458,21 @@ export var TransactionDetail;
428
458
  FlagColorEnum[FlagColorEnum["Blue"] = 'blue'] = "Blue";
429
459
  FlagColorEnum[FlagColorEnum["Purple"] = 'purple'] = "Purple";
430
460
  })(FlagColorEnum = TransactionDetail.FlagColorEnum || (TransactionDetail.FlagColorEnum = {}));
461
+ /**
462
+ * @export
463
+ * @enum {string}
464
+ */
465
+ var DebtTransactionTypeEnum;
466
+ (function (DebtTransactionTypeEnum) {
467
+ DebtTransactionTypeEnum[DebtTransactionTypeEnum["Payment"] = 'payment'] = "Payment";
468
+ DebtTransactionTypeEnum[DebtTransactionTypeEnum["Refund"] = 'refund'] = "Refund";
469
+ DebtTransactionTypeEnum[DebtTransactionTypeEnum["Fee"] = 'fee'] = "Fee";
470
+ DebtTransactionTypeEnum[DebtTransactionTypeEnum["Interest"] = 'interest'] = "Interest";
471
+ DebtTransactionTypeEnum[DebtTransactionTypeEnum["Escrow"] = 'escrow'] = "Escrow";
472
+ DebtTransactionTypeEnum[DebtTransactionTypeEnum["BalancedAdjustment"] = 'balancedAdjustment'] = "BalancedAdjustment";
473
+ DebtTransactionTypeEnum[DebtTransactionTypeEnum["Credit"] = 'credit'] = "Credit";
474
+ DebtTransactionTypeEnum[DebtTransactionTypeEnum["Charge"] = 'charge'] = "Charge";
475
+ })(DebtTransactionTypeEnum = TransactionDetail.DebtTransactionTypeEnum || (TransactionDetail.DebtTransactionTypeEnum = {}));
431
476
  })(TransactionDetail || (TransactionDetail = {}));
432
477
  /**
433
478
  * AccountsApi - fetch parameter creator
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ynab",
3
- "version": "1.52.0",
3
+ "version": "1.53.0",
4
4
  "description": "YNAB API Javascript (Node) Library",
5
5
  "author": "YNAB",
6
6
  "email": "api@ynab.com",
@@ -32,7 +32,7 @@
32
32
  "build": "tsc -b src/ test/ examples/ && tsc -b src/tsconfig.esm.json && webpack --mode production && npm run build_examples",
33
33
  "build_examples": "tsc -b examples/",
34
34
  "test": "TS_NODE_PROJECT=./test/tsconfig.json mocha --reporter spec --require ts-node/register/type-check 'test/**/*.ts'",
35
- "prepublishOnly": "npm run build && npm run test && git add dist/* && git commit -m 'Build dist/'"
35
+ "prepublishOnly": "npm run build && npm run test && git add dist/*"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/chai": "^4.2.12",