waterline-servicenow-soap

0.0.11 • Public • Published

image_squidhome@2x.png

Build Status CodeClimate CoverageStatus DependencyStatus

waterline-servicenow-soap

Provides easy access to ServiceNow's SOAP resources from Sails.js & Waterline.

This module is a Waterline/Sails adapter, an early implementation of a rapidly-developing, tool-agnostic data standard.

Installation

To install this adapter, run:

$ npm install waterline-servicenow-soap

Configuration

The following config options are available along with their default values:

config: {
  url: {
    host: 'demo002.service-now.com',
  },
  username: null,
  password: null
};

Usage

var Waterline = require('waterline'),
    _ = require('lodash'),
    snBaseModel = require('waterline-servicenow-soap/lib/model/snBaseModel');
 
var base = _.merge({},snBaseModel);
 
var collection = _.merge(base, {
 
  identity: 'incident',
  connection: 'queryable',
 
  attributes: {
    active: 'boolean',
    sys_id: {
      primaryKey: true,
      type: 'string'
    },
    number: {
      type: 'string'
    },
    sys_created_on: {
      type: 'date'
    },
    sys_updated_on: {
      type: 'date'
    },
    description: {
      type: 'string'
    },
    short_description: {
      type: 'string'
    }
  }
});
 
module.exports = Waterline.Collection.extend(collection);

This adapter exposes the following methods:

find()
  • Status
    • Partial
create()
  • Status
    • Implemented
update()
  • Status
    • Implemented
destroy()
  • Status
    • Planned
count()
  • Status
    • Partial - only works when aggregate plugin is enabled.

Running the tests

All tests are run against publically available ServiceNow sandbox instances.

$ npm test

Package Sidebar

Install

npm i waterline-servicenow-soap

Weekly Downloads

1

Version

0.0.11

License

Apache-2.0

Last publish

Collaborators

  • kmcgrath
  • sungardas