GithubHelp home page GithubHelp logo

isabella232 / waterline-servicenow-soap Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sungardas/waterline-servicenow-soap

0.0 0.0 0.0 69 KB

Waterline adapter for ServiceNow's SOAP interface

JavaScript 100.00%

waterline-servicenow-soap's Introduction

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

waterline-servicenow-soap's People

Contributors

djacobs2016 avatar kmcgrath avatar wisesmile avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.