ynab 1.24.0 → 1.28.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.
@@ -10,7 +10,9 @@ export declare class TransactionsApi extends CodeGen.TransactionsApi {
10
10
  * @throws {RequiredError}
11
11
  * @memberof TransactionsApi
12
12
  */
13
- getTransactionsByType(budget_id: string, type: "uncategorized" | "unapproved", last_knowledge_of_server?: number, options?: any): Promise<CodeGen.TransactionsResponse>;
13
+ getTransactionsByType(budget_id: string, type: "uncategorized" | "unapproved", last_knowledge_of_server?: number, options?: any): Promise<CodeGen.TransactionsResponse & {
14
+ rateLimit: string | null;
15
+ }>;
14
16
  /**
15
17
  * Creates multiple transactions. Provide a body containing a 'transactions' array, multiple transactions will be created.
16
18
  * @summary Create a single transaction or multiple transactions
@@ -20,7 +22,9 @@ export declare class TransactionsApi extends CodeGen.TransactionsApi {
20
22
  * @throws {RequiredError}
21
23
  * @memberof TransactionsApi
22
24
  */
23
- createTransactions(budget_id: string, data: CodeGen.SaveTransactionsWrapper, options?: any): Promise<CodeGen.SaveTransactionsResponse>;
25
+ createTransactions(budget_id: string, data: CodeGen.SaveTransactionsWrapper, options?: any): Promise<CodeGen.SaveTransactionsResponse & {
26
+ rateLimit: string | null;
27
+ }>;
24
28
  /**
25
29
  * Creates multiple transactions. Although this endpoint is still supported, it is recommended to use 'POST /budgets/{budget_id}/transactions' to create multiple transactions.
26
30
  * @summary Bulk create transactions
@@ -29,5 +33,7 @@ export declare class TransactionsApi extends CodeGen.TransactionsApi {
29
33
  * @param {*} [options] - Override http request options.
30
34
  * @throws {RequiredError}
31
35
  */
32
- bulkCreateTransactions(budget_id: string, transactions: CodeGen.BulkTransactions, options?: any): Promise<CodeGen.BulkResponse>;
36
+ bulkCreateTransactions(budget_id: string, transactions: CodeGen.BulkTransactions, options?: any): Promise<CodeGen.BulkResponse & {
37
+ rateLimit: string | null;
38
+ }>;
33
39
  }
@@ -10,7 +10,9 @@ export declare class TransactionsApi extends CodeGen.TransactionsApi {
10
10
  * @throws {RequiredError}
11
11
  * @memberof TransactionsApi
12
12
  */
13
- getTransactionsByType(budget_id: string, type: "uncategorized" | "unapproved", last_knowledge_of_server?: number, options?: any): Promise<CodeGen.TransactionsResponse>;
13
+ getTransactionsByType(budget_id: string, type: "uncategorized" | "unapproved", last_knowledge_of_server?: number, options?: any): Promise<CodeGen.TransactionsResponse & {
14
+ rateLimit: string | null;
15
+ }>;
14
16
  /**
15
17
  * Creates multiple transactions. Provide a body containing a 'transactions' array, multiple transactions will be created.
16
18
  * @summary Create a single transaction or multiple transactions
@@ -20,7 +22,9 @@ export declare class TransactionsApi extends CodeGen.TransactionsApi {
20
22
  * @throws {RequiredError}
21
23
  * @memberof TransactionsApi
22
24
  */
23
- createTransactions(budget_id: string, data: CodeGen.SaveTransactionsWrapper, options?: any): Promise<CodeGen.SaveTransactionsResponse>;
25
+ createTransactions(budget_id: string, data: CodeGen.SaveTransactionsWrapper, options?: any): Promise<CodeGen.SaveTransactionsResponse & {
26
+ rateLimit: string | null;
27
+ }>;
24
28
  /**
25
29
  * Creates multiple transactions. Although this endpoint is still supported, it is recommended to use 'POST /budgets/{budget_id}/transactions' to create multiple transactions.
26
30
  * @summary Bulk create transactions
@@ -29,5 +33,7 @@ export declare class TransactionsApi extends CodeGen.TransactionsApi {
29
33
  * @param {*} [options] - Override http request options.
30
34
  * @throws {RequiredError}
31
35
  */
32
- bulkCreateTransactions(budget_id: string, transactions: CodeGen.BulkTransactions, options?: any): Promise<CodeGen.BulkResponse>;
36
+ bulkCreateTransactions(budget_id: string, transactions: CodeGen.BulkTransactions, options?: any): Promise<CodeGen.BulkResponse & {
37
+ rateLimit: string | null;
38
+ }>;
33
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ynab",
3
- "version": "1.24.0",
3
+ "version": "1.28.0",
4
4
  "description": "YNAB API Javascript (Node) Library",
5
5
  "author": "You Need a Budget, LLC",
6
6
  "keywords": [
@@ -24,18 +24,14 @@
24
24
  },
25
25
  "scripts": {
26
26
  "generate": "npx jbash ./.swagger-codegen/generate.js",
27
- "build": "tsc -b src/ test/ examples/ && tsc -p src/ --target ES5 --module ES2015 --outDir dist/esm && webpack --mode production && npm run build_examples",
27
+ "build": "tsc -b src/ test/ examples/ && tsc -b src/tsconfig.esm.json && webpack --mode production && npm run build_examples",
28
28
  "build_examples": "tsc -b examples/",
29
29
  "test": "TS_NODE_PROJECT=./test/tsconfig.json mocha --reporter spec --require ts-node/register/type-check 'test/**/*.ts'",
30
30
  "release": "npm run build && npm run test && git add dist/* && git commit -m 'Build dist/'; npm-github-release"
31
31
  },
32
- "dependencies": {
33
- "portable-fetch": "^3.0.0"
34
- },
35
32
  "devDependencies": {
36
33
  "@types/chai": "^4.2.12",
37
34
  "@types/fetch-mock": "^7.3.2",
38
- "@types/isomorphic-fetch": "0.0.35",
39
35
  "@types/mocha": "^8.0.2",
40
36
  "@types/node": "^14.0.27",
41
37
  "chai": "^4.2.0",
@@ -50,7 +46,7 @@
50
46
  "webpack": "^4.44.1",
51
47
  "webpack-cli": "^3.3.12"
52
48
  },
53
- "engines": {
54
- "npm": "^5.2.0"
49
+ "dependencies": {
50
+ "fetch-ponyfill": "^7.1.0"
55
51
  }
56
52
  }