@nu-art/analytics-frontend 0.400.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_modules/ModuleFE_Analytics.d.ts +12 -0
- package/_modules/ModuleFE_Analytics.js +12 -0
- package/_utils/get-metadata.d.ts +2 -0
- package/_utils/get-metadata.js +6 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/package.json +35 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ApiStruct_Analytics } from '@nu-art/analytics-shared';
|
|
2
|
+
import { ApiDefCaller } from '@nu-art/thunderstorm-shared';
|
|
3
|
+
import { Module } from '@nu-art/ts-common';
|
|
4
|
+
type Config = {
|
|
5
|
+
baseURL: string;
|
|
6
|
+
};
|
|
7
|
+
declare class ModuleFE_Analytics_Class extends Module<Config> {
|
|
8
|
+
readonly _v1: ApiDefCaller<ApiStruct_Analytics>['_v1'];
|
|
9
|
+
init(): void;
|
|
10
|
+
}
|
|
11
|
+
export declare const ModuleFE_Analytics: ModuleFE_Analytics_Class;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ApiDef_Analytics } from '@nu-art/analytics-shared';
|
|
2
|
+
import { apiWithBody } from '@nu-art/thunderstorm-frontend/index';
|
|
3
|
+
import { Module } from '@nu-art/ts-common';
|
|
4
|
+
class ModuleFE_Analytics_Class extends Module {
|
|
5
|
+
_v1 = {};
|
|
6
|
+
init() {
|
|
7
|
+
const apiDef = ApiDef_Analytics(this.config.baseURL);
|
|
8
|
+
this._v1.sendEvent = apiWithBody(apiDef._v1.sendEvent);
|
|
9
|
+
this._v1.updateUser = apiWithBody(apiDef._v1.updateUser);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export const ModuleFE_Analytics = new ModuleFE_Analytics_Class();
|
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './_modules/ModuleFE_Analytics.js';
|
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './_modules/ModuleFE_Analytics.js';
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@nu-art/analytics-frontend",
|
|
3
|
+
"version": "0.400.7",
|
|
4
|
+
"description": "Analytics Frontend",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "tsc"
|
|
8
|
+
},
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"directory": "dist",
|
|
11
|
+
"linkDirectory": true
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"@nu-art/analytics-shared": "0.400.7",
|
|
15
|
+
"@nu-art/ts-common": "0.400.7",
|
|
16
|
+
"@nu-art/thunderstorm-frontend": "0.400.7",
|
|
17
|
+
"@nu-art/thunderstorm-shared": "0.400.7"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {},
|
|
20
|
+
"private": false,
|
|
21
|
+
"unitConfig": {
|
|
22
|
+
"type": "typescript-lib"
|
|
23
|
+
},
|
|
24
|
+
"type": "module",
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"types": "./index.d.ts",
|
|
28
|
+
"import": "./index.js"
|
|
29
|
+
},
|
|
30
|
+
"./*": {
|
|
31
|
+
"types": "./*.d.ts",
|
|
32
|
+
"import": "./*.js"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|