UNPKG

@serussi/p360

Version:

Wrapper for Public 360 SIF RPC Web Service from Tieto

20 lines (18 loc) 573 B
const doCall = require('./do-call') const service = 'ProjectService' module.exports = options => { return { CreateProject (query) { return doCall({ ...options, service, query, operation: 'CreateProject' }) }, UpdateProject (query) { return doCall({ ...options, service, query, operation: 'UpdateProject' }) }, GetProjects (query) { return doCall({ ...options, service, query, operation: 'GetProjects' }) }, Ping (query) { return doCall({ ...options, service, query, operation: 'Ping' }) } } }