Socket
Socket
Sign inDemoInstall

ynab

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ynab - npm Package Compare versions

Comparing version 0.7.0 to 0.8.0

65

dist/api.d.ts

@@ -229,3 +229,3 @@ /// <reference path="../src/portable-fetch.d.ts" />

/**
*
* The last time any changes were made to the budget from either a web or mobile client.
* @type {string}

@@ -277,11 +277,11 @@ * @memberof BudgetSummary

* @export
* @interface BulkTransactionCreateResponse
* @interface BulkIdWrapper
*/
export interface BulkTransactionCreateResponse {
export interface BulkIdWrapper {
/**
*
* @type {BulkTransactionIds}
* @memberof BulkTransactionCreateResponse
* @type {BulkIds}
* @memberof BulkIdWrapper
*/
data: BulkTransactionIds;
bulk: BulkIds;
}

@@ -291,11 +291,17 @@ /**

* @export
* @interface BulkTransactionIds
* @interface BulkIds
*/
export interface BulkTransactionIds {
export interface BulkIds {
/**
*
* The list of Transaction IDs that were created.
* @type {Array&lt;string&gt;}
* @memberof BulkTransactionIds
* @memberof BulkIds
*/
transaction_ids: Array<string>;
/**
* If any Transactions were not created because they had an import_id matching a transaction already on the same account, the specified import_id(s) will be included in this list.
* @type {Array&lt;string&gt;}
* @memberof BulkIds
*/
duplicate_import_ids: Array<string>;
}

@@ -305,2 +311,15 @@ /**

* @export
* @interface BulkResponse
*/
export interface BulkResponse {
/**
*
* @type {BulkIdWrapper}
* @memberof BulkResponse
*/
data: BulkIdWrapper;
}
/**
*
* @export
* @interface BulkTransactions

@@ -821,2 +840,8 @@ */

flag_color?: SaveTransaction.FlagColorEnum;
/**
* If specified for a new transaction, the transaction will be treated as Imported and assigned this import_id. If another transaction on the same account with this same import_id is later attempted to be created, it will be skipped to prevent duplication. Transactions imported through File Based Import or Direct Import and not through the API, are assigned an import_id in the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurance]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'. Using a consistent format will prevent duplicates through Direct Import and File Based Import. If import_id is specified as null, the transaction will be treated as a user entered transaction.
* @type {string}
* @memberof SaveTransaction
*/
import_id?: string;
}

@@ -1196,2 +1221,8 @@ /**

transfer_account_id: string;
/**
* If the Transaction was imported, this field is a unique (by account) import identifier. If this transaction was imported through File Based Import or Direct Import and not through the API, the import_id will have the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurance]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'.
* @type {string}
* @memberof TransactionSummary
*/
import_id: string;
}

@@ -1271,3 +1302,3 @@ /**

/**
*
* The last time any changes were made to the budget from either a web or mobile client.
* @type {string}

@@ -1595,2 +1626,8 @@ * @memberof BudgetDetail

/**
* If the Transaction was imported, this field is a unique (by account) import identifier. If this transaction was imported through File Based Import or Direct Import and not through the API, the import_id will have the format: 'YNAB:[milliunit_amount]:[iso_date]:[occurance]'. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of 'YNAB:-294230:2015-12-30:1'. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2'.
* @type {string}
* @memberof TransactionDetail
*/
import_id: string;
/**
* If a split transaction, the sub-transactions.

@@ -2004,3 +2041,3 @@ * @type {Array&lt;SubTransaction&gt;}

export declare const TransactionsApiFp: (configuration?: Configuration) => {
bulkCreateTransactions(budget_id: string, transactions: BulkTransactions, options?: any): (fetchFunction?: FetchAPI) => Promise<BulkTransactionCreateResponse>;
bulkCreateTransactions(budget_id: string, transactions: BulkTransactions, options?: any): (fetchFunction?: FetchAPI) => Promise<BulkResponse>;
createTransaction(budget_id: string, transaction: SaveTransactionWrapper, options?: any): (fetchFunction?: FetchAPI) => Promise<TransactionResponse>;

@@ -2018,3 +2055,3 @@ getTransactions(budget_id: string, since_date?: string | Date, type?: string, options?: any): (fetchFunction?: FetchAPI) => Promise<TransactionsResponse>;

export declare const TransactionsApiFactory: (configuration?: Configuration) => {
bulkCreateTransactions(budget_id: string, transactions: BulkTransactions, options?: any): Promise<BulkTransactionCreateResponse>;
bulkCreateTransactions(budget_id: string, transactions: BulkTransactions, options?: any): Promise<BulkResponse>;
createTransaction(budget_id: string, transaction: SaveTransactionWrapper, options?: any): Promise<TransactionResponse>;

@@ -2043,3 +2080,3 @@ getTransactions(budget_id: string, since_date?: string | Date, type?: string, options?: any): Promise<TransactionsResponse>;

*/
bulkCreateTransactions(budget_id: string, transactions: BulkTransactions, options?: any): Promise<BulkTransactionCreateResponse>;
bulkCreateTransactions(budget_id: string, transactions: BulkTransactions, options?: any): Promise<BulkResponse>;
/**

@@ -2046,0 +2083,0 @@ * Creates a transaction

{
"name": "ynab",
"version": "0.7.0",
"version": "0.8.0",
"description": "YNAB API Javascript (Node) Library",

@@ -5,0 +5,0 @@ "author": "You Need a Budget, LLC",

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc