Socket
Socket
Sign inDemoInstall

xero-node

Package Overview
Dependencies
Maintainers
2
Versions
170
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xero-node - npm Package Compare versions

Comparing version 2.5.3 to 2.6.0

docs/Contact-Groups.md

0

.eslintrc.js

@@ -0,0 +0,0 @@ module.exports = {

@@ -0,0 +0,0 @@ The following examples explain the Accounts section of the SDK. The API documentation on Accounts can be found [here](https://developer.xero.com/documentation/api/accounts).

@@ -0,0 +0,0 @@ The following examples explain the Attachments section of the SDK. The API documentation on Attachments can be found [here](https://developer.xero.com/documentation/api/attachments).

@@ -0,0 +0,0 @@ The following examples explain the Bank Transactions section of the SDK. The API documentation on Bank Transactions can be found [here](https://developer.xero.com/documentation/api/banktransactions).

@@ -0,0 +0,0 @@ The following examples explain the Bank Transfers section of the SDK. The API documentation on Bank Transfers can be found [here](https://developer.xero.com/documentation/api/bank-transfers).

@@ -0,0 +0,0 @@ The following examples explain the Branding Themes section of the SDK. The API documentation on Branding Themes can be found [here](https://developer.xero.com/documentation/api/branding-themes).

@@ -0,0 +0,0 @@ The following examples explain the Contacts section of the SDK. The API documentation on Contacts can be found [here](https://developer.xero.com/documentation/api/contacts).

@@ -0,0 +0,0 @@ ## Setup / Connection

@@ -0,0 +0,0 @@ The following examples explain the Credit Notes section of the SDK. The API documentation on Credit Notes can be found [here](https://developer.xero.com/documentation/api/credit-notes).

@@ -0,0 +0,0 @@ The following examples explain the Currencies section of the SDK. The API documentation on Currencies can be found [here](https://developer.xero.com/documentation/api/currencies).

@@ -0,0 +0,0 @@ The following examples explain the Invoice Reminders section of the SDK. The API documentation on Invoice Reminders can be found [here](https://developer.xero.com/documentation/api/invoice-reminders).

@@ -0,0 +0,0 @@ The following examples explain the Invoices section of the SDK. The API documentation on Invoices can be found [here](https://developer.xero.com/documentation/api/invoices).

@@ -0,0 +0,0 @@ The following examples explain the Items section of the SDK. The API documentation on Items can be found [here](https://developer.xero.com/documentation/api/items).

@@ -0,0 +0,0 @@ The following examples explain the Journals section of the SDK. The API documentation on Journals can be found [here](https://developer.xero.com/documentation/api/journals).

@@ -0,0 +0,0 @@ The following examples explain the Manual Journal section of the SDK. The API documentation on the Manual Journal endpoint can be found [here](https://developer.xero.com/documentation/api/manual-journals).

@@ -0,0 +0,0 @@ The following examples explain the Organisation section of the SDK. The API documentation on the Organisation endpoint can be found [here](https://developer.xero.com/documentation/api/organisation).

@@ -0,0 +0,0 @@ The following examples explain the Payments section of the SDK. The API documentation on Payments can be found [here](https://developer.xero.com/documentation/api/payments).

@@ -0,0 +0,0 @@ ## Welcome to the Xero-Node Docs!

@@ -0,0 +0,0 @@ The following examples explain the Repeating Invoices section of the SDK. The API documentation on Repeating Invoices can be found [here](https://developer.xero.com/documentation/api/repeating-invoices).

@@ -0,0 +0,0 @@ The following examples explain the Reports section of the SDK. The API documentation on Reports can be found [here](https://developer.xero.com/documentation/api/reports).

@@ -0,0 +0,0 @@ To help users get up and running with the xero-node SDK quickly, we've included a sample app that is written using the Express library.

@@ -0,0 +0,0 @@ The following examples explain the Tax Rates section of the SDK. The API documentation on Tax Rates can be found [here](https://developer.xero.com/documentation/api/tax-rates).

@@ -0,0 +0,0 @@ The following examples explain the Tracking Categories section of the SDK. The API documentation on Tracking Categories can be found [here](https://developer.xero.com/documentation/api/tracking-categories).

@@ -0,0 +0,0 @@ The following examples explain the Users section of the SDK. The API documentation on Users can be found [here](https://developer.xero.com/documentation/api/users).

@@ -0,0 +0,0 @@ 'use strict';

@@ -26,2 +26,3 @@ 'use strict';

repeatinginvoices: { file: 'repeatinginvoices' },
contactGroups: { file: 'contactgroups' },
};

@@ -28,0 +29,0 @@

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

6

lib/entities/shared.js

@@ -7,3 +7,3 @@ var Entity = require('./entity')

var AddressDetailsSchema = Entity.SchemaObject({
module.exports.AddressSchema = Entity.SchemaObject({
AddressLine1: { type: String, toObject: 'always' },

@@ -21,6 +21,2 @@ AddressLine2: { type: String, toObject: 'always' },

module.exports.AddressSchema = Entity.SchemaObject({
Address: { type: AddressDetailsSchema, toObject: 'always' }
});
module.exports.PhoneSchema = Entity.SchemaObject({

@@ -27,0 +23,0 @@ PhoneNumber: { type: String, toObject: 'always' },

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var extend = require('../misc/extend'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash'),

@@ -0,0 +0,0 @@ var _ = require('lodash')

@@ -0,0 +0,0 @@ var util = require('util');

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ // Returns true if this is a host that closes *before* it ends?!?!

@@ -0,0 +0,0 @@ var crypto = require('crypto'),

@@ -0,0 +0,0 @@ /*

@@ -0,0 +0,0 @@ var _ = require('lodash')

@@ -0,0 +0,0 @@ var _ = require('lodash');

{
"name": "xero-node",
"version": "2.5.3",
"version": "2.6.0",
"description": "Xero API Wrapper for all application types",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -25,2 +25,3 @@ xero-node (alpha)

* Contacts
* Contact Groups
* Credit Notes

@@ -132,2 +133,5 @@ * Currencies

========
Sample app using this package: https://github.com/XeroAPI/xero-node-sample-app
Print a count of invoices:

@@ -218,2 +222,5 @@

* 2.6.0
- Merged [PR#79](https://github.com/XeroAPI/xero-node/pull/79) - Add support for ContactGroups
- Merged [PR#80](https://github.com/XeroAPI/xero-node/pull/80) - Fixes Contact address deatil schema.
* 2.5.3

@@ -220,0 +227,0 @@ - Merged [PR#76](https://github.com/XeroAPI/xero-node/pull/76) - Updated the docs to add repeating invoices (missed from PR#72).

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -17,2 +17,9 @@ 'use strict';

LastName: 'Smith',
Addresses: [{
AddressType: "POBOX",
AddressLine1: "P O Box 123",
City: "Wellington",
PostalCode: "6011",
AttentionTo: "Andrea"
}]
};

@@ -38,2 +45,6 @@

expect(response.entities[0].Addresses.filter((address) => {
return address.City == sampleContact.Addresses[0].City
}).length).to.equal(1);
sampleContact = response.entities[0];

@@ -52,3 +63,3 @@

// take 30 seconds ago as we just created a contact
modifiedAfter.setTime(modifiedAfter.getTime());
modifiedAfter.setTime(modifiedAfter.getTime() - 10000);

@@ -75,3 +86,3 @@ currentApp.core.contacts

if(contactIDsList.length < 5) {
if (contactIDsList.length < 5) {
contactIDsList.push(contact.ContactID);

@@ -123,3 +134,3 @@ }

});
it('get list of IDs', done => {

@@ -136,3 +147,3 @@ currentApp.core.contacts

});
done();

@@ -145,3 +156,3 @@ })

});
it('get - invalid modified date', done => {

@@ -163,3 +174,3 @@ currentApp.core.contacts

for (let i = 0; i < 2; i += 1) {
for (let i = 0;i < 2;i += 1) {
contacts.push(

@@ -225,2 +236,3 @@ currentApp.core.contacts.newContact({

expect(updatedContact.entities[0].Name).to.equal(newName);
expect(updatedContact.entities[0].Addresses.filter((address) => {return address.City == "Melbourne"}).length).to.equal(1);
done();

@@ -227,0 +239,0 @@ })

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ const common = require("../common/common"),

@@ -0,0 +0,0 @@ const common = require("../common/common"),

@@ -0,0 +0,0 @@ const common = require("../common/common"),

@@ -0,0 +0,0 @@ const common = require("../common/common"),

@@ -0,0 +0,0 @@ describe.skip('timesheets', function() {

@@ -0,0 +0,0 @@ const common = require("../common/common"),

@@ -55,2 +55,3 @@ 'use strict';

);
importTest('contactgroups_tests', `${__dirname}/core/contactgroups_tests.js`);
});

@@ -57,0 +58,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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