Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@codetanzania/emis-api-client

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codetanzania/emis-api-client - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

11

CHANGELOG.md

@@ -0,1 +1,12 @@

#### 0.3.1 (2019-01-25)
##### Chores
* add code linting before commit ([8ae1f38d](https://github.com/CodeTanzania/emis-api-client/commit/8ae1f38da9835a46ed874d3d8fcf8a581a5b2b6a))
* add commit lint hook ([9f43d169](https://github.com/CodeTanzania/emis-api-client/commit/9f43d1692411985a566ac3ba3ffd3930e7870de9))
##### New Features
* expose incident resource actions ([9128b036](https://github.com/CodeTanzania/emis-api-client/commit/9128b036f7ea89e59ff7736744765d61430d703f))
#### 0.3.0 (2019-01-23)

@@ -2,0 +13,0 @@

158

es/index.js

@@ -297,2 +297,12 @@ import axios, { spread } from 'axios';

const {
getIncidentSchema,
getIncidents,
getIncident,
postIncident,
putIncident,
patchIncident,
deleteIncident,
} = createHttpActionsFor('incident');
const {
getIncidentTypeSchema,

@@ -417,2 +427,148 @@ getIncidentTypes,

export { getActivitySchema, getActivities, getActivity, postActivity, putActivity, patchActivity, deleteActivity, getAdjustmentSchema, getAdjustments, getAdjustment, postAdjustment, putAdjustment, patchAdjustment, deleteAdjustment, getAlertSchema, getAlerts, getAlert, postAlert, putAlert, patchAlert, deleteAlert, getAssessmentSchema, getAssessments, getAssessment, postAssessment, putAssessment, patchAssessment, deleteAssessment, getFeatureSchema, getFeatures, getFeature, postFeature, putFeature, patchFeature, deleteFeature, getIncidentTypeSchema, getIncidentTypes, getIncidentType, postIncidentType, putIncidentType, patchIncidentType, deleteIncidentType, getIndicatorSchema, getIndicators, getIndicator, postIndicator, putIndicator, patchIndicator, deleteIndicator, getItemSchema, getItems, getItem, postItem, putItem, patchItem, deleteItem, getPartySchema, getPartySchema as getStakeholderSchema, getParties, getParties as getStakeholders, getParty, getParty as getStakeholder, postParty, postParty as postStakeholder, putParty, putParty as putStakeholder, patchParty, patchParty as patchStakeholder, deleteParty, deleteParty as deleteStakeholder, getPermissionSchema, getPermissions, getPermission, postPermission, putPermission, patchPermission, deletePermission, getPlanSchema, getPlans, getPlan, postPlan, putPlan, patchPlan, deletePlan, getProcedureSchema, getProcedures, getProcedure, postProcedure, putProcedure, patchProcedure, deleteProcedure, getQuestionSchema, getQuestions, getQuestion, postQuestion, putQuestion, patchQuestion, deleteQuestion, getQuestionnaireSchema, getQuestionnaires, getQuestionnaire, postQuestionnaire, putQuestionnaire, patchQuestionnaire, deleteQuestionnaire, getRoleSchema, getRoles, getRole, postRole, putRole, patchRole, deleteRole, getStockSchema, getStocks, getStock, postStock, putStock, patchStock, deleteStock, getWarehouseSchema, getWarehouses, getWarehouse, postWarehouse, putWarehouse, patchWarehouse, deleteWarehouse, CONTENT_TYPE, HEADERS, createHttpClient, disposeHttpClient, all, spread$1 as spread, get$1 as get, post, put, patch, del, createHttpActionsFor };
export {
getActivitySchema,
getActivities,
getActivity,
postActivity,
putActivity,
patchActivity,
deleteActivity,
getAdjustmentSchema,
getAdjustments,
getAdjustment,
postAdjustment,
putAdjustment,
patchAdjustment,
deleteAdjustment,
getAlertSchema,
getAlerts,
getAlert,
postAlert,
putAlert,
patchAlert,
deleteAlert,
getAssessmentSchema,
getAssessments,
getAssessment,
postAssessment,
putAssessment,
patchAssessment,
deleteAssessment,
getFeatureSchema,
getFeatures,
getFeature,
postFeature,
putFeature,
patchFeature,
deleteFeature,
getIncidentSchema,
getIncidents,
getIncident,
postIncident,
putIncident,
patchIncident,
deleteIncident,
getIncidentTypeSchema,
getIncidentTypes,
getIncidentType,
postIncidentType,
putIncidentType,
patchIncidentType,
deleteIncidentType,
getIndicatorSchema,
getIndicators,
getIndicator,
postIndicator,
putIndicator,
patchIndicator,
deleteIndicator,
getItemSchema,
getItems,
getItem,
postItem,
putItem,
patchItem,
deleteItem,
getPartySchema,
getPartySchema as getStakeholderSchema,
getParties,
getParties as getStakeholders,
getParty,
getParty as getStakeholder,
postParty,
postParty as postStakeholder,
putParty,
putParty as putStakeholder,
patchParty,
patchParty as patchStakeholder,
deleteParty,
deleteParty as deleteStakeholder,
getPermissionSchema,
getPermissions,
getPermission,
postPermission,
putPermission,
patchPermission,
deletePermission,
getPlanSchema,
getPlans,
getPlan,
postPlan,
putPlan,
patchPlan,
deletePlan,
getProcedureSchema,
getProcedures,
getProcedure,
postProcedure,
putProcedure,
patchProcedure,
deleteProcedure,
getQuestionSchema,
getQuestions,
getQuestion,
postQuestion,
putQuestion,
patchQuestion,
deleteQuestion,
getQuestionnaireSchema,
getQuestionnaires,
getQuestionnaire,
postQuestionnaire,
putQuestionnaire,
patchQuestionnaire,
deleteQuestionnaire,
getRoleSchema,
getRoles,
getRole,
postRole,
putRole,
patchRole,
deleteRole,
getStockSchema,
getStocks,
getStock,
postStock,
putStock,
patchStock,
deleteStock,
getWarehouseSchema,
getWarehouses,
getWarehouse,
postWarehouse,
putWarehouse,
patchWarehouse,
deleteWarehouse,
CONTENT_TYPE,
HEADERS,
createHttpClient,
disposeHttpClient,
all,
spread$1 as spread,
get$1 as get,
post,
put,
patch,
del,
createHttpActionsFor,
};

32

lib/index.js

@@ -1,12 +0,13 @@

'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
function _interopDefault(ex) {
return ex && typeof ex === 'object' && 'default' in ex ? ex.default : ex;
}
var axios = require('axios');
var axios__default = _interopDefault(axios);
var lodash = require('lodash');
var inflection = require('inflection');
const axios = require('axios');
const axios__default = _interopDefault(axios);
const lodash = require('lodash');
const inflection = require('inflection');
// default http client

@@ -304,2 +305,12 @@ let client;

const {
getIncidentSchema,
getIncidents,
getIncident,
postIncident,
putIncident,
patchIncident,
deleteIncident,
} = createHttpActionsFor('incident');
const {
getIncidentTypeSchema,

@@ -459,2 +470,9 @@ getIncidentTypes,

exports.deleteFeature = deleteFeature;
exports.getIncidentSchema = getIncidentSchema;
exports.getIncidents = getIncidents;
exports.getIncident = getIncident;
exports.postIncident = postIncident;
exports.putIncident = putIncident;
exports.patchIncident = patchIncident;
exports.deleteIncident = deleteIncident;
exports.getIncidentTypeSchema = getIncidentTypeSchema;

@@ -461,0 +479,0 @@ exports.getIncidentTypes = getIncidentTypes;

{
"name": "@codetanzania/emis-api-client",
"version": "0.3.0",
"version": "0.3.1",
"description": "http client for EMIS API.",

@@ -12,3 +12,5 @@ "main": "lib/index.js",

"lint": "npm run build && eslint --fix --ext .js src/ test/unit rollup.config.js",
"test": "npm run lint -s && mocha test/**/*.spec.js"
"test": "npm run lint -s && mocha test/**/*.spec.js",
"cmt": "git add . && git-cz",
"changelog": "changelog"
},

@@ -40,4 +42,9 @@ "repository": {

"devDependencies": {
"@commitlint/cli": "^7.3.2",
"@commitlint/config-conventional": "^7.3.1",
"@commitlint/travis-cli": "^7.3.2",
"axios": "^0.18.0",
"chai": "^4.2.0",
"commitizen": "^3.0.5",
"cz-conventional-changelog": "^2.1.0",
"eslint": "^5.12.1",

@@ -49,3 +56,6 @@ "eslint-config-airbnb-base": "^13.1.0",

"eslint-plugin-prettier": "^3.0.1",
"generate-changelog": "^1.7.1",
"husky": "^1.3.1",
"inflection": "^1.12.0",
"lint-staged": "^8.1.0",
"lodash": ">=4.17.11",

@@ -63,3 +73,25 @@ "mocha": "^5.2.0",

},
"dependencies": {}
"dependencies": {},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"lint-staged": {
"src/**/*.js": [
"npm run lint:src",
"git add ."
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
}

@@ -56,2 +56,12 @@ import { createHttpActionsFor } from './client';

export const {
getIncidentSchema,
getIncidents,
getIncident,
postIncident,
putIncident,
patchIncident,
deleteIncident,
} = createHttpActionsFor('incident');
export const {
getIncidentTypeSchema,

@@ -58,0 +68,0 @@ getIncidentTypes,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc