4 Commits

Author SHA1 Message Date
f73334d8fc 1.0.10 2020-09-22 22:54:06 +00:00
d170af1db5 fix(core): update 2020-09-22 22:54:05 +00:00
9e6b92f864 1.0.9 2020-07-05 15:16:51 +00:00
b094c07ef2 fix(core): update 2020-07-05 15:16:50 +00:00
6 changed files with 19 additions and 3 deletions

2
package-lock.json generated
View File

@ -1,6 +1,6 @@
{ {
"name": "@apiglobal/sdk", "name": "@apiglobal/sdk",
"version": "1.0.8", "version": "1.0.10",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@ -1,6 +1,6 @@
{ {
"name": "@apiglobal/sdk", "name": "@apiglobal/sdk",
"version": "1.0.8", "version": "1.0.10",
"private": false, "private": false,
"description": "an sdk package for api.global", "description": "an sdk package for api.global",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",

View File

@ -18,6 +18,13 @@ tap.test('should create a valid Handler', async () => {
public async start() {} public async start() {}
public async stop() {} public async stop() {}
public async checkRequirements(): Promise<sdk.IRequirementResult> {
return {
allOk: true,
reason: ''
}
}
} }
const myHandlerInstance = new MyHandler(); const myHandlerInstance = new MyHandler();

View File

@ -1,2 +1,3 @@
export * from './sdk.classes.agenvironment';
export * from './sdk.classes.aghandler'; export * from './sdk.classes.aghandler';
export * from './sdk.classes.authinfo'; export * from './sdk.classes.authinfo';

View File

@ -0,0 +1,8 @@
import * as plugins from './sdk.plugins';
/**
* AgEnvironment handles the provision of environment variables to handlers
*/
export class AgEnvironment {
}

View File

@ -12,7 +12,7 @@ export abstract class AAgHandler<TClaim> {
*/ */
public abstract slug: string; public abstract slug: string;
public abstract typedrouter: plugins.typedrequest.TypedRouter; public abstract typedrouter: plugins.typedrequest.TypedRouter;
public abstract checkReqirements(): Promise<IRequirementResult>; public abstract checkRequirements(): Promise<IRequirementResult>;
/** /**
* start the ag-handler * start the ag-handler