0.0.11 • Published 9 years ago

waterline-servicenow-soap v0.0.11

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
9 years ago

image_squidhome@2x.png

Build Status Code
Climate Coverage
Status Dependency
Status

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
0.0.11

9 years ago

0.0.10

9 years ago

0.0.8

10 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago