0.0.11 • Published 8 years ago

waterline-servicenow-soap v0.0.11

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
8 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

8 years ago

0.0.10

8 years ago

0.0.8

9 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago