@gdacm/base-types 0.1.1

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +29 -0
  2. package/package.json +26 -0
@@ -0,0 +1,29 @@
1
+ export type BuildOptions = {
2
+ testName?: string;
3
+ writeOnDisk?: boolean;
4
+ createOnGrafana?: boolean;
5
+ };
6
+ export type DashboardOptions = {
7
+ title: string;
8
+ testName?: string;
9
+ tags: string[];
10
+ };
11
+ export type Info = {
12
+ projectName?: string;
13
+ projectRootVid?: string;
14
+ projectVidPrefix?: string | undefined;
15
+ projectRootGrafanaFolder?: string;
16
+ apiUrl?: string;
17
+ apiToken?: string;
18
+ includes?: string[];
19
+ [x: string]: any;
20
+ } & BuildOptions;
21
+ type FixedOptions = {
22
+ info?: Info;
23
+ } & BuildOptions;
24
+ export type GenericOptions = Record<string, unknown> & FixedOptions;
25
+ export type PartialMetaOptions<T extends GenericOptions> = GenericOptions & Partial<T>;
26
+ export type MetaOptions<T extends GenericOptions> = GenericOptions & T;
27
+ export type GenericMetaOptions = MetaOptions<GenericOptions>;
28
+ export type DashboardMetaOptions = MetaOptions<DashboardOptions>;
29
+ export {};
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@gdacm/base-types",
3
+ "version": "0.1.1",
4
+ "author": "gissehel",
5
+ "type": "module",
6
+ "types": "./dist/index.d.ts",
7
+ "license": "MIT",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts"
11
+ }
12
+ },
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "scripts": {
17
+ "clean:local": "rm -rf dist .turbo",
18
+ "dev": "tsc -p tsconfig.types.json --watch",
19
+ "build": "tsc -p tsconfig.types.json"
20
+ },
21
+ "devDependencies": {
22
+ "@types/node": "^26.1.2",
23
+ "typescript": "^7.0.2",
24
+ "vite": "^8.2.0"
25
+ }
26
+ }