fix(core): update
This commit is contained in:
20
ts/index.ts
20
ts/index.ts
@ -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> {
|
||||
|
||||
}
|
||||
}
|
@ -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
|
||||
};
|
||||
|
Reference in New Issue
Block a user