fix(core): update

This commit is contained in:
2020-09-18 16:13:57 +00:00
parent cbac946c3b
commit 3b513c9efd
5 changed files with 82 additions and 49 deletions

View File

@ -1,3 +1,21 @@
import * as plugins from './webclient.plugins';
export let standardExport = 'Hi there! :) This is an exported string';
export class CsWebclient {
webstore: plugins.webstore.WebStore;
constructor() {
this.webstore = new plugins.webstore.WebStore({
dbName: 'consentsoftware',
storeName: 'webclient'
});
}
public async isCookieLevelSet(): Promise<boolean> {
const result = await this.webstore.get('acceptedCookieLevels');
return !!result;
}
public async setCookieLevels(cookieLevels ): Promise<boolean> {
}
}

View File

@ -1,2 +1,20 @@
const removeme = {};
export { removeme };
// consentsoftware scope
import * as csInterfaces from '@consentsoftware/interfaces';
export {
csInterfaces
};
// apiglobal scope
import * as typedrequest from '@apiglobal/typedrequest';
export {
typedrequest
};
// @pushrocks scope
import * as webstore from '@pushrocks/webstore';
export {
webstore
};