@codetanzania/emis-api-client
Advanced tools
Comparing version 0.9.0 to 0.10.0
@@ -0,1 +1,7 @@ | ||
#### 0.10.0 (2019-03-14) | ||
##### New Features | ||
* add item unit and category endpoint ([3ddd825f](https://github.com/CodeTanzania/emis-api-client/commit/3ddd825fa6b8c087981092b9348b8b47d1818be0)) | ||
#### 0.9.0 (2019-02-21) | ||
@@ -2,0 +8,0 @@ |
@@ -471,3 +471,3 @@ import moment from 'moment'; | ||
* @return {Object} http action to get resource list | ||
* @since 0.8.0 | ||
* @since 0.9.0 | ||
* @version 0.1.0 | ||
@@ -833,2 +833,3 @@ * @example | ||
'permission', | ||
'predefine', | ||
'plan', | ||
@@ -854,3 +855,5 @@ 'procedure', | ||
wellknown: 'party', | ||
params: merge({}, DEFAULT_PARAMS, { filter: { type: 'Focal Person' } }), | ||
params: merge({}, DEFAULT_PARAMS, { | ||
filter: { type: 'Focal Person' }, | ||
}), | ||
}, | ||
@@ -860,3 +863,5 @@ agency: { | ||
wellknown: 'party', | ||
params: merge({}, DEFAULT_PARAMS, { filter: { type: 'Agency' } }), | ||
params: merge({}, DEFAULT_PARAMS, { | ||
filter: { type: 'Agency' }, | ||
}), | ||
}, | ||
@@ -912,2 +917,20 @@ }; | ||
// predefine shortcuts | ||
const PREDEFINE_SHORTCUTS = { | ||
itemUnit: { | ||
shortcut: 'itemUnit', | ||
wellknown: 'predefine', | ||
params: merge({}, DEFAULT_PARAMS, { | ||
filter: { namespace: 'ItemUnit' }, | ||
}), | ||
}, | ||
itemCategory: { | ||
shortcut: 'itemCategory', | ||
wellknown: 'predefine', | ||
params: merge({}, DEFAULT_PARAMS, { | ||
filter: { namespace: 'ItemCategory' }, | ||
}), | ||
}, | ||
}; | ||
/** | ||
@@ -923,3 +946,8 @@ * @constant | ||
*/ | ||
const SHORTCUTS = merge({}, PARTY_SHORTCUTS, FEATURE_SHORTCUTS); | ||
const SHORTCUTS = merge( | ||
{}, | ||
FEATURE_SHORTCUTS, | ||
PARTY_SHORTCUTS, | ||
PREDEFINE_SHORTCUTS | ||
); | ||
@@ -926,0 +954,0 @@ /** |
@@ -477,3 +477,3 @@ 'use strict'; | ||
* @return {Object} http action to get resource list | ||
* @since 0.8.0 | ||
* @since 0.9.0 | ||
* @version 0.1.0 | ||
@@ -839,2 +839,3 @@ * @example | ||
'permission', | ||
'predefine', | ||
'plan', | ||
@@ -860,3 +861,5 @@ 'procedure', | ||
wellknown: 'party', | ||
params: lodash.merge({}, DEFAULT_PARAMS, { filter: { type: 'Focal Person' } }), | ||
params: lodash.merge({}, DEFAULT_PARAMS, { | ||
filter: { type: 'Focal Person' }, | ||
}), | ||
}, | ||
@@ -866,3 +869,5 @@ agency: { | ||
wellknown: 'party', | ||
params: lodash.merge({}, DEFAULT_PARAMS, { filter: { type: 'Agency' } }), | ||
params: lodash.merge({}, DEFAULT_PARAMS, { | ||
filter: { type: 'Agency' }, | ||
}), | ||
}, | ||
@@ -918,2 +923,20 @@ }; | ||
// predefine shortcuts | ||
const PREDEFINE_SHORTCUTS = { | ||
itemUnit: { | ||
shortcut: 'itemUnit', | ||
wellknown: 'predefine', | ||
params: lodash.merge({}, DEFAULT_PARAMS, { | ||
filter: { namespace: 'ItemUnit' }, | ||
}), | ||
}, | ||
itemCategory: { | ||
shortcut: 'itemCategory', | ||
wellknown: 'predefine', | ||
params: lodash.merge({}, DEFAULT_PARAMS, { | ||
filter: { namespace: 'ItemCategory' }, | ||
}), | ||
}, | ||
}; | ||
/** | ||
@@ -929,3 +952,8 @@ * @constant | ||
*/ | ||
const SHORTCUTS = lodash.merge({}, PARTY_SHORTCUTS, FEATURE_SHORTCUTS); | ||
const SHORTCUTS = lodash.merge( | ||
{}, | ||
FEATURE_SHORTCUTS, | ||
PARTY_SHORTCUTS, | ||
PREDEFINE_SHORTCUTS | ||
); | ||
@@ -932,0 +960,0 @@ /** |
{ | ||
"name": "@codetanzania/emis-api-client", | ||
"version": "0.9.0", | ||
"version": "0.10.0", | ||
"description": "http client for EMIS API.", | ||
@@ -46,7 +46,7 @@ "main": "lib/index.js", | ||
"chai": "^4.2.0", | ||
"commitizen": "^3.0.5", | ||
"commitizen": "^3.0.7", | ||
"cz-conventional-changelog": "^2.1.0", | ||
"eslint": "^5.14.1", | ||
"eslint": "^5.15.1", | ||
"eslint-config-airbnb-base": "^13.1.0", | ||
"eslint-config-prettier": "^4.0.0", | ||
"eslint-config-prettier": "^4.1.0", | ||
"eslint-plugin-import": "^2.16.0", | ||
@@ -58,5 +58,5 @@ "eslint-plugin-mocha": "^5.3.0", | ||
"inflection": "^1.12.0", | ||
"lint-staged": "^8.1.4", | ||
"lint-staged": "^8.1.5", | ||
"lodash": ">=4.17.11", | ||
"mocha": "^6.0.0", | ||
"mocha": "^6.0.2", | ||
"moment": ">=2.24.0", | ||
@@ -66,3 +66,3 @@ "nock": "^10.0.6", | ||
"rimraf": "^2.6.3", | ||
"rollup": "^1.2.2" | ||
"rollup": "^1.6.0" | ||
}, | ||
@@ -69,0 +69,0 @@ "peerDependencies": { |
@@ -61,2 +61,3 @@ import { clone, forEach, merge, upperFirst } from 'lodash'; | ||
'permission', | ||
'predefine', | ||
'plan', | ||
@@ -82,3 +83,5 @@ 'procedure', | ||
wellknown: 'party', | ||
params: merge({}, DEFAULT_PARAMS, { filter: { type: 'Focal Person' } }), | ||
params: merge({}, DEFAULT_PARAMS, { | ||
filter: { type: 'Focal Person' }, | ||
}), | ||
}, | ||
@@ -88,3 +91,5 @@ agency: { | ||
wellknown: 'party', | ||
params: merge({}, DEFAULT_PARAMS, { filter: { type: 'Agency' } }), | ||
params: merge({}, DEFAULT_PARAMS, { | ||
filter: { type: 'Agency' }, | ||
}), | ||
}, | ||
@@ -140,2 +145,20 @@ }; | ||
// predefine shortcuts | ||
const PREDEFINE_SHORTCUTS = { | ||
itemUnit: { | ||
shortcut: 'itemUnit', | ||
wellknown: 'predefine', | ||
params: merge({}, DEFAULT_PARAMS, { | ||
filter: { namespace: 'ItemUnit' }, | ||
}), | ||
}, | ||
itemCategory: { | ||
shortcut: 'itemCategory', | ||
wellknown: 'predefine', | ||
params: merge({}, DEFAULT_PARAMS, { | ||
filter: { namespace: 'ItemCategory' }, | ||
}), | ||
}, | ||
}; | ||
/** | ||
@@ -151,3 +174,8 @@ * @constant | ||
*/ | ||
export const SHORTCUTS = merge({}, PARTY_SHORTCUTS, FEATURE_SHORTCUTS); | ||
export const SHORTCUTS = merge( | ||
{}, | ||
FEATURE_SHORTCUTS, | ||
PARTY_SHORTCUTS, | ||
PREDEFINE_SHORTCUTS | ||
); | ||
@@ -154,0 +182,0 @@ /** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
99293
2847