Comparing version 0.1.4 to 0.1.5
@@ -20,5 +20,6 @@ import * as Posterior from 'posterior'; | ||
} | ||
export declare function editTranslator(action: string, url: string, defaultName?: string, namespaces?: string[]): (data?: Params | undefined) => string; | ||
export declare function queryTranslator(action: string, url: string, defaultName?: string, namespaces?: string[]): (data?: Params | undefined) => string; | ||
export declare function translator(ctor: () => Request, defaultName?: string): (data?: Params | undefined) => string; | ||
export interface RequestConstructor { | ||
new (action: string, url: string, namespaces?: string[]): Request; | ||
} | ||
export declare function adapter(ReqCtor: RequestConstructor, action: string, url: string, defaultName?: string, namespaces?: string[]): (data?: Params | undefined) => string; | ||
export declare type ParamValue = XML.Element | DOM.JSONObject | string | number | boolean; | ||
@@ -25,0 +26,0 @@ export interface Params { |
@@ -40,33 +40,33 @@ import * as Posterior from 'posterior'; | ||
Nutrients: { | ||
requestData: queryTranslator('listnutrients', url, 'PageSize'), | ||
requestData: adapter(Query, 'listnutrients', url, 'PageSize'), | ||
}, | ||
Allergens: { | ||
requestData: queryTranslator('listallergens', url, 'PageSize'), | ||
requestData: adapter(Query, 'listallergens', url, 'PageSize'), | ||
}, | ||
Units: { | ||
requestData: queryTranslator('listunits', url, 'PageSize'), | ||
requestData: adapter(Query, 'listunits', url, 'PageSize'), | ||
}, | ||
Foods: { | ||
requestData: queryTranslator('listfoods', url, 'PageSize'), | ||
requestData: adapter(Query, 'listfoods', url, 'PageSize'), | ||
}, | ||
ByGroup: { | ||
requestData: queryTranslator('searchbygroup', url, 'GroupName'), | ||
requestData: adapter(Query, 'searchbygroup', url, 'GroupName'), | ||
}, | ||
ByModifiedDateRange: { | ||
requestData: queryTranslator('searchbymodifieddaterange', url, undefined, ['typ']), | ||
requestData: adapter(Query, 'searchbymodifieddaterange', url, undefined, ['typ']), | ||
}, | ||
ByName: { | ||
requestData: queryTranslator('searchbyname', url, 'FoodName'), | ||
requestData: adapter(Query, 'searchbyname', url, 'FoodName'), | ||
}, | ||
ById: { | ||
requestData: queryTranslator('getfood', url, 'FoodId'), | ||
requestData: adapter(Query, 'getfood', url, 'FoodId'), | ||
}, | ||
ByUserCode: { | ||
requestData: queryTranslator('getfood', url, 'UserCode'), | ||
requestData: adapter(Query, 'getfood', url, 'UserCode'), | ||
}, | ||
Analysis: { | ||
requestData: queryTranslator('getanalysis', url), | ||
requestData: adapter(Query, 'getanalysis', url), | ||
}, | ||
UserCodes: { | ||
requestData: queryTranslator('listfoodusercodes', url, 'PageSize'), | ||
requestData: adapter(Query, 'listfoodusercodes', url, 'PageSize'), | ||
}, | ||
@@ -81,8 +81,9 @@ }, | ||
}, | ||
responseData: (res) => DOM.Parser.dom(res), | ||
Children: { | ||
NewFood: { | ||
requestData: editTranslator('newfood', url), | ||
requestData: adapter(Edit, 'newfood', url, undefined, ['exlx']), | ||
}, | ||
UpdateFood: { | ||
requestData: editTranslator('updatefood', url), | ||
requestData: adapter(Edit, 'updatefood', url, undefined, ['exlx']), | ||
}, | ||
@@ -93,11 +94,5 @@ }, | ||
} | ||
export function editTranslator(action, url, defaultName, namespaces) { | ||
return translator(() => new Edit(action, url, namespaces), defaultName); | ||
} | ||
export function queryTranslator(action, url, defaultName, namespaces) { | ||
return translator(() => new Query(action, url, namespaces), defaultName); | ||
} | ||
export function translator(ctor, defaultName) { | ||
export function adapter(ReqCtor, action, url, defaultName, namespaces) { | ||
return (data) => { | ||
const request = ctor(); | ||
const request = new ReqCtor(action, url, namespaces); | ||
if (data instanceof Array) { | ||
@@ -203,2 +198,2 @@ if (data.length === 1 && | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29hcC1jbGllbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvc29hcC1jbGllbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxLQUFLLFNBQVMsTUFBTSxXQUFXLENBQUM7QUFDdkMsT0FBTyxLQUFLLEdBQUcsTUFBTSxPQUFPLENBQ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VBQWUsRUFBRSxzQkFBc0I7SUFDdkMsT0FBTyxFQUFFLGdCQUFnQjtJQUN6QixVQUFVLEVBQUUsbUJBQW1CO0NBQ2hDLENBQUM7QUE0Q0osV0FBWSxTQUFRLE9BQU87SUFHekIsWUFDUyxNQUFjLEVBQ2QsTUFBYyxFQUNkLFVBQXFCO1FBRTVCLEtBQUssQ0FBQyxNQUFNLEVBQUUsTUFBTSxHQUFHLEtBQUssQ0FBQyxJQUFJLEVBQUUsVUFBVSxDQUFDLENBQUM7UUFKeEMsV0FBTSxHQUFOLE1BQU0sQ0FBUTtRQUNkLFdBQU0sR0FBTixNQUFNLENBQVE7UUFDZCxlQUFVLEdBQVYsVUFBVSxDQUFXO0lBRzlCLENBQUM7O0FBUmEsVUFBSSxHQUFHLDJCQUEyQixDQUFDO0FBVW5ELFVBQVcsU0FBUSxPQUFPO0lBR3hCLFlBQ1MsTUFBYyxFQUNkLE1BQWMsRUFDZCxVQUFxQjtRQUU1QixLQUFLLENBQUMsTUFBTSxFQUFFLE1BQU0sR0FBRyxJQUFJLENBQUMsSUFBSSxFQUFFLFVBQVUsQ0FBQyxDQUFDO1FBSnZDLFdBQU0sR0FBTixNQUFNLENBQVE7UUFDZCxXQUFNLEdBQU4sTUFBTSxDQUFRO1FBQ2QsZUFBVSxHQUFWLFVBQVUsQ0FBVztJQUc5QixDQUFDOztBQVJhLFNBQUksR0FBRywwQkFBMEIsQ0FBQztBQVlsRCxFQUFFLENBQUMsQ0FBQyxNQUFNLElBQUksUUFBUSxDQUFDLElBQUksQ0FBQyxZQUFZLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQyxDQUFDO0lBQ2pELE1BQWMsQ0FBQyxNQUFNLEdBQUcsTUFBTSxDQUFDO0FBQ2xDLENBQUMifQ== |
@@ -10,2 +10,4 @@ import * as XML from './XML'; | ||
} | ||
const host = window.location.host || 'localhost(:[0-9]+)?'; | ||
const rootRE = new RegExp(host + '(\\/api|\\/proxy)?'); | ||
export class Header extends Element { | ||
@@ -22,3 +24,3 @@ constructor(action, to) { | ||
this.actionElement.add(this.action); | ||
to = to.replace(/localhost:[0-9]+(\/api|\/proxy)?/, 'genesis.esha.com'); | ||
to = to.replace(rootRE, 'genesis.esha.com'); | ||
this.add(new XML.Element('wsa:To').add(to)); | ||
@@ -38,2 +40,2 @@ } | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU09BUC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9TT0FQLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sS0FBSyxHQUFHLE1BQU0sT0FBTyxDQUFDO0FBRTdCLE1BQU0sY0FBZSxTQUFRLEdBQUcsQ0FBQyxPQUFPO0lBQ3RDLFlBQVksSUFBWSxFQUFFLEdBQUcsVUFBb0I7UUFDL0MsS0FBSyxDQUFDLElBQUksQ0FBQyxPQUFPLENBQUMsR0FBRyxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsQ0FBQyxPQUFPLEdBQUcsSUFBSSxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQztRQUVyRCxHQUFHLENBQUMsQ0FBQyxNQUFNLFNBQVMsSUFBSSxVQUFVLENBQUMsQ0FBQyxDQUFDO1lBQ25DLElBQUksQ0FBQyxFQUFFLENBQUMsU0FBUyxFQUFFLEdBQUcsQ0FBQyxNQUFNLENBQUMsU0FBUyxDQUFDLENBQUMsQ0FBQztRQUM1QyxDQUFDO0lBQ0gsQ0FBQztDQUNGO0FBRUQsTUFBTSxhQUFjLFNBQVEsT0FBTztJQUdqQyxZQUFtQixNQUFjLEVBQVMsRUFBVTtRQUNsRCxLQUFLLENBQUMsUUFBUSxFQUFFLEtBQUssQ0FBQyxDQUFDO1FBRE4sV0FBTSxHQUFOLE1BQU0sQ0FBUTtRQUFTLE9BQUUsR0FBRixFQUFFLENBQVE7UUFHbEQsS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7UUFDZCxPQUFFLEdBQUYsRUFBRSxDQUFRO1FBSWpCLElBQUksQ0FBQyxNQUFNLEdBQUcsSUFBSSxNQUFNLENBQUMsTUFBTSxFQUFFLEVBQUUsQ0FBQyxDQUFDO1FBQ3JDLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxPQUFPLENBQUMsTUFBTSxDQUFDLENBQUM7UUFDaEMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsTUFBTSxDQUFDLENBQUM7UUFDdEIsSUFBSSxDQUFDLEdBQUcsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDdEIsQ0FBQztDQUNGIn0= |
{ | ||
"name": "gersemi", | ||
"title": "TypeScript Client for Genesis API", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "gersemi", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
60263
830