@octo-cyber/bi 0.5.0
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/dist/bi.module.d.ts +8 -0
- package/dist/bi.module.d.ts.map +1 -0
- package/dist/bi.module.js +25 -0
- package/dist/bi.module.js.map +1 -0
- package/dist/entities/bi-chart.entity.d.ts +13 -0
- package/dist/entities/bi-chart.entity.d.ts.map +1 -0
- package/dist/entities/bi-chart.entity.js +63 -0
- package/dist/entities/bi-chart.entity.js.map +1 -0
- package/dist/entities/bi-dashboard.entity.d.ts +20 -0
- package/dist/entities/bi-dashboard.entity.d.ts.map +1 -0
- package/dist/entities/bi-dashboard.entity.js +99 -0
- package/dist/entities/bi-dashboard.entity.js.map +1 -0
- package/dist/entities/bi-data-permission.entity.d.ts +12 -0
- package/dist/entities/bi-data-permission.entity.d.ts.map +1 -0
- package/dist/entities/bi-data-permission.entity.js +64 -0
- package/dist/entities/bi-data-permission.entity.js.map +1 -0
- package/dist/entities/bi-datasource.entity.d.ts +20 -0
- package/dist/entities/bi-datasource.entity.d.ts.map +1 -0
- package/dist/entities/bi-datasource.entity.js +93 -0
- package/dist/entities/bi-datasource.entity.js.map +1 -0
- package/dist/entities/bi-query.entity.d.ts +17 -0
- package/dist/entities/bi-query.entity.d.ts.map +1 -0
- package/dist/entities/bi-query.entity.js +83 -0
- package/dist/entities/bi-query.entity.js.map +1 -0
- package/dist/entities/bi-report.entity.d.ts +14 -0
- package/dist/entities/bi-report.entity.d.ts.map +1 -0
- package/dist/entities/bi-report.entity.js +73 -0
- package/dist/entities/bi-report.entity.js.map +1 -0
- package/dist/entities/index.d.ts +18 -0
- package/dist/entities/index.d.ts.map +1 -0
- package/dist/entities/index.js +21 -0
- package/dist/entities/index.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +15 -0
- package/dist/index.js.map +1 -0
- package/dist/services/chart.service.d.ts +27 -0
- package/dist/services/chart.service.d.ts.map +1 -0
- package/dist/services/chart.service.js +86 -0
- package/dist/services/chart.service.js.map +1 -0
- package/dist/services/dashboard.service.d.ts +34 -0
- package/dist/services/dashboard.service.d.ts.map +1 -0
- package/dist/services/dashboard.service.js +121 -0
- package/dist/services/dashboard.service.js.map +1 -0
- package/dist/services/datasource.service.d.ts +32 -0
- package/dist/services/datasource.service.d.ts.map +1 -0
- package/dist/services/datasource.service.js +97 -0
- package/dist/services/datasource.service.js.map +1 -0
- package/dist/services/query.service.d.ts +28 -0
- package/dist/services/query.service.d.ts.map +1 -0
- package/dist/services/query.service.js +113 -0
- package/dist/services/query.service.js.map +1 -0
- package/dist/services/report.service.d.ts +26 -0
- package/dist/services/report.service.d.ts.map +1 -0
- package/dist/services/report.service.js +80 -0
- package/dist/services/report.service.js.map +1 -0
- package/package.json +64 -0
- package/web/index.ts +12 -0
- package/web/manifest.ts +37 -0
- package/web/messages/en-US.json +15 -0
- package/web/messages/zh-CN.json +15 -0
- package/web/pages/ChartsPage.tsx +15 -0
- package/web/pages/DashboardsPage.tsx +15 -0
- package/web/pages/DatasourcesPage.tsx +15 -0
- package/web/pages/ReportsPage.tsx +15 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { IModule, IModuleContext, Express } from '@octo-cyber/core';
|
|
2
|
+
export declare class BiModule implements IModule {
|
|
3
|
+
readonly name = "bi";
|
|
4
|
+
readonly entities: (typeof import("./entities/bi-datasource.entity.js").BiDataSource | typeof import("./entities/bi-query.entity.js").BiQuery | typeof import("./entities/bi-chart.entity.js").BiChart | typeof import("./entities/bi-dashboard.entity.js").BiDashboard | typeof import("./entities/bi-report.entity.js").BiReport | typeof import("./entities/bi-data-permission.entity.js").BiDataPermission)[];
|
|
5
|
+
initialize(_context: IModuleContext): void;
|
|
6
|
+
registerRoutes(_app: Express, _context: IModuleContext): void;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=bi.module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bi.module.d.ts","sourceRoot":"","sources":["../src/bi.module.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAQzE,qBAAa,QAAS,YAAW,OAAO;IACtC,QAAQ,CAAC,IAAI,QAAQ;IACrB,QAAQ,CAAC,QAAQ,iYAAoB;IAErC,UAAU,CAAC,QAAQ,EAAE,cAAc,GAAG,IAAI;IAW1C,cAAc,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,cAAc,GAAG,IAAI;CAI9D"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { LoggerService, Container } from '@octo-cyber/core';
|
|
2
|
+
import { BI_ENTITIES } from './entities/index.js';
|
|
3
|
+
import { DataSourceService } from './services/datasource.service.js';
|
|
4
|
+
import { QueryService } from './services/query.service.js';
|
|
5
|
+
import { ChartService } from './services/chart.service.js';
|
|
6
|
+
import { DashboardService } from './services/dashboard.service.js';
|
|
7
|
+
import { ReportService } from './services/report.service.js';
|
|
8
|
+
export class BiModule {
|
|
9
|
+
name = 'bi';
|
|
10
|
+
entities = [...BI_ENTITIES];
|
|
11
|
+
initialize(_context) {
|
|
12
|
+
Container.get(DataSourceService).initialize();
|
|
13
|
+
Container.get(QueryService).initialize();
|
|
14
|
+
Container.get(ChartService).initialize();
|
|
15
|
+
Container.get(DashboardService).initialize();
|
|
16
|
+
Container.get(ReportService).initialize();
|
|
17
|
+
const logger = Container.get(LoggerService);
|
|
18
|
+
logger.info('[BiModule] initialized');
|
|
19
|
+
}
|
|
20
|
+
registerRoutes(_app, _context) {
|
|
21
|
+
const logger = Container.get(LoggerService);
|
|
22
|
+
logger.info('[BiModule] routes registered');
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=bi.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bi.module.js","sourceRoot":"","sources":["../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ar' | 'bar_horizontal' | 'area' | 'pie' | 'donut' | 'scatter' | 'heatmap' | 'funnel' | 'map_china' | 'kpi_card' | 'table' | 'gauge' | 'treemap' | 'waterfall';
|
|
2
|
+
export declare class BiChart {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
queryId: string;
|
|
6
|
+
chartType: BiChartType;
|
|
7
|
+
configJson: string;
|
|
8
|
+
thumbnail: string | null;
|
|
9
|
+
createdBy: string;
|
|
10
|
+
createdAt: Date;
|
|
11
|
+
updatedAt: Date;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=bi-chart.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bi-chart.entity.d.ts","sourceRoot":"","sources":["../../src/entities/bi-chart.entity.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,WAAW,GACnB,MAAM,GAAG,KAAK,GAAG,gBAAgB,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAC5D,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,WAAW,GAAG,UAAU,GAC3D,OAAO,GAAG,OAAO,GAAG,SAAS,GAAG,WAAW,CAAC;AAEhD,qBACa,OAAO;IAElB,EAAE,EAAG,MAAM,CAAC;IAGZ,IAAI,EAAG,MAAM,CAAC;IAId,OAAO,EAAG,MAAM,CAAC;IAGjB,SAAS,EAAG,WAAW,CAAC;IAGxB,UAAU,EAAG,MAAM,CAAC;IAGpB,SAAS,EAAG,MAAM,GAAG,IAAI,CAAC;IAG1B,SAAS,EAAG,MAAM,CAAC;IAGnB,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;CAClB"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, Index, } from '@octo-cyber/core';
|
|
11
|
+
let BiChart = class BiChart {
|
|
12
|
+
id;
|
|
13
|
+
name;
|
|
14
|
+
queryId;
|
|
15
|
+
chartType;
|
|
16
|
+
configJson;
|
|
17
|
+
thumbnail;
|
|
18
|
+
createdBy;
|
|
19
|
+
createdAt;
|
|
20
|
+
updatedAt;
|
|
21
|
+
};
|
|
22
|
+
__decorate([
|
|
23
|
+
PrimaryGeneratedColumn('uuid'),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], BiChart.prototype, "id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
Column({ type: 'varchar', length: 100 }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], BiChart.prototype, "name", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
Index(),
|
|
32
|
+
Column({ type: 'varchar', length: 36, name: 'query_id' }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], BiChart.prototype, "queryId", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
Column({ type: 'varchar', length: 30, name: 'chart_type' }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], BiChart.prototype, "chartType", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
Column({ type: 'text', name: 'config_json' }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], BiChart.prototype, "configJson", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
Column({ type: 'text', nullable: true }),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], BiChart.prototype, "thumbnail", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
Column({ type: 'varchar', length: 100, name: 'created_by' }),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], BiChart.prototype, "createdBy", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
CreateDateColumn({ name: 'created_at' }),
|
|
53
|
+
__metadata("design:type", Date)
|
|
54
|
+
], BiChart.prototype, "createdAt", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
UpdateDateColumn({ name: 'updated_at' }),
|
|
57
|
+
__metadata("design:type", Date)
|
|
58
|
+
], BiChart.prototype, "updatedAt", void 0);
|
|
59
|
+
BiChart = __decorate([
|
|
60
|
+
Entity('bi_chart')
|
|
61
|
+
], BiChart);
|
|
62
|
+
export { BiChart };
|
|
63
|
+
//# sourceMappingURL=bi-chart.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bi-chart.entity.js","sourceRoot":"","sources":["../../src/entities/bi-chart.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,sBAAsB,EACtB,MAAM,EACN,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,GACN,MAAM,kBAAkB,CAAC;AAQnB,IAAM,OAAO,GAAb,MAAM,OAAO;IAElB,EAAE,CAAU;IAGZ,IAAI,CAAU;IAId,OAAO,CAAU;IAGjB,SAAS,CAAe;IAGxB,UAAU,CAAU;IAGpB,SAAS,CAAiB;IAG1B,SAAS,CAAU;IAGnB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;CAClB,CAAA;AA1BC;IADC,sBAAsB,CAAC,MAAM,CAAC;;mCACnB;AAGZ;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;;qCAC3B;AAId;IAFC,KAAK,EAAE;IACP,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;;wCACzC;AAGjB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;;0CACpC;AAGxB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;2CAC1B;AAGpB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACf;AAG1B;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;;0CAC1C;AAGnB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC7B,IAAI;0CAAC;AAGjB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC7B,IAAI;0CAAC;AA3BN,OAAO;IADnB,MAAM,CAAC,UAAU,CAAC;GACN,OAAO,CA4BnB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type BiDashboardVisibility = 'private' | 'org' | 'shared';
|
|
2
|
+
export declare class BiDashboard {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string | null;
|
|
6
|
+
icon: string | null;
|
|
7
|
+
coverColor: string | null;
|
|
8
|
+
isTemplate: boolean;
|
|
9
|
+
templateCategory: string | null;
|
|
10
|
+
layoutJson: string;
|
|
11
|
+
globalFiltersJson: string | null;
|
|
12
|
+
visibility: BiDashboardVisibility;
|
|
13
|
+
sharedWithJson: string | null;
|
|
14
|
+
autoRefreshSeconds: number | null;
|
|
15
|
+
lastViewedAt: Date | null;
|
|
16
|
+
createdBy: string;
|
|
17
|
+
createdAt: Date;
|
|
18
|
+
updatedAt: Date;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=bi-dashboard.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bi-dashboard.entity.d.ts","sourceRoot":"","sources":["../../src/entities/bi-dashboard.entity.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,KAAK,GAAG,QAAQ,CAAC;AAEjE,qBACa,WAAW;IAEtB,EAAE,EAAG,MAAM,CAAC;IAGZ,IAAI,EAAG,MAAM,CAAC;IAGd,WAAW,EAAG,MAAM,GAAG,IAAI,CAAC;IAG5B,IAAI,EAAG,MAAM,GAAG,IAAI,CAAC;IAGrB,UAAU,EAAG,MAAM,GAAG,IAAI,CAAC;IAG3B,UAAU,EAAG,OAAO,CAAC;IAGrB,gBAAgB,EAAG,MAAM,GAAG,IAAI,CAAC;IAGjC,UAAU,EAAG,MAAM,CAAC;IAGpB,iBAAiB,EAAG,MAAM,GAAG,IAAI,CAAC;IAIlC,UAAU,EAAG,qBAAqB,CAAC;IAGnC,cAAc,EAAG,MAAM,GAAG,IAAI,CAAC;IAG/B,kBAAkB,EAAG,MAAM,GAAG,IAAI,CAAC;IAGnC,YAAY,EAAG,IAAI,GAAG,IAAI,CAAC;IAI3B,SAAS,EAAG,MAAM,CAAC;IAGnB,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;CAClB"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, Index, } from '@octo-cyber/core';
|
|
11
|
+
let BiDashboard = class BiDashboard {
|
|
12
|
+
id;
|
|
13
|
+
name;
|
|
14
|
+
description;
|
|
15
|
+
icon;
|
|
16
|
+
coverColor;
|
|
17
|
+
isTemplate;
|
|
18
|
+
templateCategory;
|
|
19
|
+
layoutJson;
|
|
20
|
+
globalFiltersJson;
|
|
21
|
+
visibility;
|
|
22
|
+
sharedWithJson;
|
|
23
|
+
autoRefreshSeconds;
|
|
24
|
+
lastViewedAt;
|
|
25
|
+
createdBy;
|
|
26
|
+
createdAt;
|
|
27
|
+
updatedAt;
|
|
28
|
+
};
|
|
29
|
+
__decorate([
|
|
30
|
+
PrimaryGeneratedColumn('uuid'),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], BiDashboard.prototype, "id", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
Column({ type: 'varchar', length: 100 }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], BiDashboard.prototype, "name", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
Column({ type: 'text', nullable: true }),
|
|
39
|
+
__metadata("design:type", Object)
|
|
40
|
+
], BiDashboard.prototype, "description", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
Column({ type: 'varchar', length: 50, nullable: true }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], BiDashboard.prototype, "icon", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
Column({ type: 'varchar', length: 20, nullable: true, name: 'cover_color' }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], BiDashboard.prototype, "coverColor", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
Column({ type: 'boolean', default: false, name: 'is_template' }),
|
|
51
|
+
__metadata("design:type", Boolean)
|
|
52
|
+
], BiDashboard.prototype, "isTemplate", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
Column({ type: 'varchar', length: 50, nullable: true, name: 'template_category' }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], BiDashboard.prototype, "templateCategory", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
Column({ type: 'text', name: 'layout_json' }),
|
|
59
|
+
__metadata("design:type", String)
|
|
60
|
+
], BiDashboard.prototype, "layoutJson", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
Column({ type: 'text', nullable: true, name: 'global_filters_json' }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], BiDashboard.prototype, "globalFiltersJson", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
Index(),
|
|
67
|
+
Column({ type: 'varchar', length: 10, default: 'private' }),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], BiDashboard.prototype, "visibility", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
Column({ type: 'text', nullable: true, name: 'shared_with_json' }),
|
|
72
|
+
__metadata("design:type", Object)
|
|
73
|
+
], BiDashboard.prototype, "sharedWithJson", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
Column({ type: 'integer', nullable: true, name: 'auto_refresh_seconds' }),
|
|
76
|
+
__metadata("design:type", Object)
|
|
77
|
+
], BiDashboard.prototype, "autoRefreshSeconds", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
Column({ type: 'datetime', nullable: true, name: 'last_viewed_at' }),
|
|
80
|
+
__metadata("design:type", Object)
|
|
81
|
+
], BiDashboard.prototype, "lastViewedAt", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
Index(),
|
|
84
|
+
Column({ type: 'varchar', length: 100, name: 'created_by' }),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], BiDashboard.prototype, "createdBy", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
CreateDateColumn({ name: 'created_at' }),
|
|
89
|
+
__metadata("design:type", Date)
|
|
90
|
+
], BiDashboard.prototype, "createdAt", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
UpdateDateColumn({ name: 'updated_at' }),
|
|
93
|
+
__metadata("design:type", Date)
|
|
94
|
+
], BiDashboard.prototype, "updatedAt", void 0);
|
|
95
|
+
BiDashboard = __decorate([
|
|
96
|
+
Entity('bi_dashboard')
|
|
97
|
+
], BiDashboard);
|
|
98
|
+
export { BiDashboard };
|
|
99
|
+
//# sourceMappingURL=bi-dashboard.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bi-dashboard.entity.js","sourceRoot":"","sources":["../../src/entities/bi-dashboard.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,sBAAsB,EACtB,MAAM,EACN,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,GACN,MAAM,kBAAkB,CAAC;AAKnB,IAAM,WAAW,GAAjB,MAAM,WAAW;IAEtB,EAAE,CAAU;IAGZ,IAAI,CAAU;IAGd,WAAW,CAAiB;IAG5B,IAAI,CAAiB;IAGrB,UAAU,CAAiB;IAG3B,UAAU,CAAW;IAGrB,gBAAgB,CAAiB;IAGjC,UAAU,CAAU;IAGpB,iBAAiB,CAAiB;IAIlC,UAAU,CAAyB;IAGnC,cAAc,CAAiB;IAG/B,kBAAkB,CAAiB;IAGnC,YAAY,CAAe;IAI3B,SAAS,CAAU;IAGnB,SAAS,CAAQ;IAGjB,SAAS,CAAQ;CAClB,CAAA;AAhDC;IADC,sBAAsB,CAAC,MAAM,CAAC;;uCACnB;AAGZ;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAA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,MAAM,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;;iDAC1C;AAI3B;IAFC,KAAK,EAAE;IACP,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;;8CAC1C;AAGnB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC7B,IAAI;8CAAC;AAGjB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC7B,IAAI;8CAAC;AAjDN,WAAW;IADvB,MAAM,CAAC,cAAc,CAAC;GACV,WAAW,CAkDvB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class BiDataPermission {
|
|
2
|
+
id: string;
|
|
3
|
+
roleId: string;
|
|
4
|
+
dataSourceId: string;
|
|
5
|
+
rowFiltersJson: string | null;
|
|
6
|
+
allowedColumnsJson: string | null;
|
|
7
|
+
canExport: boolean;
|
|
8
|
+
canShare: boolean;
|
|
9
|
+
createdAt: Date;
|
|
10
|
+
updatedAt: Date;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=bi-data-permission.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bi-data-permission.entity.d.ts","sourceRoot":"","sources":["../../src/entities/bi-data-permission.entity.ts"],"names":[],"mappings":"AASA,qBACa,gBAAgB;IAE3B,EAAE,EAAG,MAAM,CAAC;IAIZ,MAAM,EAAG,MAAM,CAAC;IAIhB,YAAY,EAAG,MAAM,CAAC;IAGtB,cAAc,EAAG,MAAM,GAAG,IAAI,CAAC;IAG/B,kBAAkB,EAAG,MAAM,GAAG,IAAI,CAAC;IAGnC,SAAS,EAAG,OAAO,CAAC;IAGpB,QAAQ,EAAG,OAAO,CAAC;IAGnB,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;CAClB"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, Index, } from '@octo-cyber/core';
|
|
11
|
+
let BiDataPermission = class BiDataPermission {
|
|
12
|
+
id;
|
|
13
|
+
roleId;
|
|
14
|
+
dataSourceId;
|
|
15
|
+
rowFiltersJson;
|
|
16
|
+
allowedColumnsJson;
|
|
17
|
+
canExport;
|
|
18
|
+
canShare;
|
|
19
|
+
createdAt;
|
|
20
|
+
updatedAt;
|
|
21
|
+
};
|
|
22
|
+
__decorate([
|
|
23
|
+
PrimaryGeneratedColumn('uuid'),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], BiDataPermission.prototype, "id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
Index(),
|
|
28
|
+
Column({ type: 'varchar', length: 36, name: 'role_id' }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], BiDataPermission.prototype, "roleId", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
Index(),
|
|
33
|
+
Column({ type: 'varchar', length: 36, name: 'datasource_id' }),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], BiDataPermission.prototype, "dataSourceId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
Column({ type: 'text', nullable: true, name: 'row_filters_json' }),
|
|
38
|
+
__metadata("design:type", Object)
|
|
39
|
+
], BiDataPermission.prototype, "rowFiltersJson", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
Column({ type: 'text', nullable: true, name: 'allowed_columns_json' }),
|
|
42
|
+
__metadata("design:type", Object)
|
|
43
|
+
], BiDataPermission.prototype, "allowedColumnsJson", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
Column({ type: 'boolean', default: false, name: 'can_export' }),
|
|
46
|
+
__metadata("design:type", Boolean)
|
|
47
|
+
], BiDataPermission.prototype, "canExport", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
Column({ type: 'boolean', default: false, name: 'can_share' }),
|
|
50
|
+
__metadata("design:type", Boolean)
|
|
51
|
+
], BiDataPermission.prototype, "canShare", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
CreateDateColumn({ name: 'created_at' }),
|
|
54
|
+
__metadata("design:type", Date)
|
|
55
|
+
], BiDataPermission.prototype, "createdAt", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
UpdateDateColumn({ name: 'updated_at' }),
|
|
58
|
+
__metadata("design:type", Date)
|
|
59
|
+
], BiDataPermission.prototype, "updatedAt", void 0);
|
|
60
|
+
BiDataPermission = __decorate([
|
|
61
|
+
Entity('bi_data_permission')
|
|
62
|
+
], BiDataPermission);
|
|
63
|
+
export { BiDataPermission };
|
|
64
|
+
//# sourceMappingURL=bi-data-permission.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bi-data-permission.entity.js","sourceRoot":"","sources":["../../src/entities/bi-data-permission.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,sBAAsB,EACtB,MAAM,EACN,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,G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AAgB;IAD5B,MAAM,CAAC,oBAAoB,CAAC;GAChB,gBAAgB,CA6B5B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type BiDataSourceType = 'internal' | 'external' | 'api';
|
|
2
|
+
export type BiDbType = 'mysql' | 'postgres' | 'sqlite' | 'mssql';
|
|
3
|
+
export declare class BiDataSource {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
type: BiDataSourceType;
|
|
7
|
+
internalModule: string | null;
|
|
8
|
+
internalTable: string | null;
|
|
9
|
+
connectionString: string | null;
|
|
10
|
+
dbType: BiDbType | null;
|
|
11
|
+
apiUrl: string | null;
|
|
12
|
+
apiHeadersJson: string | null;
|
|
13
|
+
schemaJson: string | null;
|
|
14
|
+
refreshInterval: number | null;
|
|
15
|
+
lastSyncedAt: Date | null;
|
|
16
|
+
createdBy: string;
|
|
17
|
+
createdAt: Date;
|
|
18
|
+
updatedAt: Date;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=bi-datasource.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bi-datasource.entity.d.ts","sourceRoot":"","sources":["../../src/entities/bi-datasource.entity.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,gBAAgB,GAAG,UAAU,GAAG,UAAU,GAAG,KAAK,CAAC;AAC/D,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,OAAO,CAAC;AAEjE,qBACa,YAAY;IAEvB,EAAE,EAAG,MAAM,CAAC;IAIZ,IAAI,EAAG,MAAM,CAAC;IAGd,IAAI,EAAG,gBAAgB,CAAC;IAGxB,cAAc,EAAG,MAAM,GAAG,IAAI,CAAC;IAG/B,aAAa,EAAG,MAAM,GAAG,IAAI,CAAC;IAG9B,gBAAgB,EAAG,MAAM,GAAG,IAAI,CAAC;IAGjC,MAAM,EAAG,QAAQ,GAAG,IAAI,CAAC;IAGzB,MAAM,EAAG,MAAM,GAAG,IAAI,CAAC;IAGvB,cAAc,EAAG,MAAM,GAAG,IAAI,CAAC;IAG/B,UAAU,EAAG,MAAM,GAAG,IAAI,CAAC;IAG3B,eAAe,EAAG,MAAM,GAAG,IAAI,CAAC;IAGhC,YAAY,EAAG,IAAI,GAAG,IAAI,CAAC;IAG3B,SAAS,EAAG,MAAM,CAAC;IAGnB,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;CAClB"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, Index, } from '@octo-cyber/core';
|
|
11
|
+
let BiDataSource = class BiDataSource {
|
|
12
|
+
id;
|
|
13
|
+
name;
|
|
14
|
+
type;
|
|
15
|
+
internalModule;
|
|
16
|
+
internalTable;
|
|
17
|
+
connectionString;
|
|
18
|
+
dbType;
|
|
19
|
+
apiUrl;
|
|
20
|
+
apiHeadersJson;
|
|
21
|
+
schemaJson;
|
|
22
|
+
refreshInterval;
|
|
23
|
+
lastSyncedAt;
|
|
24
|
+
createdBy;
|
|
25
|
+
createdAt;
|
|
26
|
+
updatedAt;
|
|
27
|
+
};
|
|
28
|
+
__decorate([
|
|
29
|
+
PrimaryGeneratedColumn('uuid'),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], BiDataSource.prototype, "id", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
Index({ unique: false }),
|
|
34
|
+
Column({ type: 'varchar', length: 100 }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], BiDataSource.prototype, "name", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
Column({ type: 'varchar', length: 20 }),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], BiDataSource.prototype, "type", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
Column({ type: 'varchar', length: 50, nullable: true, name: 'internal_module' }),
|
|
43
|
+
__metadata("design:type", Object)
|
|
44
|
+
], BiDataSource.prototype, "internalModule", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
Column({ type: 'varchar', length: 100, nullable: true, name: 'internal_table' }),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], BiDataSource.prototype, "internalTable", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
Column({ type: 'text', nullable: true, name: 'connection_string' }),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], BiDataSource.prototype, "connectionString", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
Column({ type: 'varchar', length: 20, nullable: true, name: 'db_type' }),
|
|
55
|
+
__metadata("design:type", Object)
|
|
56
|
+
], BiDataSource.prototype, "dbType", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
Column({ type: 'varchar', length: 500, nullable: true, name: 'api_url' }),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], BiDataSource.prototype, "apiUrl", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
Column({ type: 'text', nullable: true, name: 'api_headers' }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], BiDataSource.prototype, "apiHeadersJson", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
Column({ type: 'text', nullable: true, name: 'schema_json' }),
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
|
+
], BiDataSource.prototype, "schemaJson", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
Column({ type: 'integer', nullable: true, name: 'refresh_interval' }),
|
|
71
|
+
__metadata("design:type", Object)
|
|
72
|
+
], BiDataSource.prototype, "refreshInterval", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
Column({ type: 'datetime', nullable: true, name: 'last_synced_at' }),
|
|
75
|
+
__metadata("design:type", Object)
|
|
76
|
+
], BiDataSource.prototype, "lastSyncedAt", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
Column({ type: 'varchar', length: 100, name: 'created_by' }),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], BiDataSource.prototype, "createdBy", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
CreateDateColumn({ name: 'created_at' }),
|
|
83
|
+
__metadata("design:type", Date)
|
|
84
|
+
], BiDataSource.prototype, "createdAt", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
UpdateDateColumn({ name: 'updated_at' }),
|
|
87
|
+
__metadata("design:type", Date)
|
|
88
|
+
], BiDataSource.prototype, "updatedAt", void 0);
|
|
89
|
+
BiDataSource = __decorate([
|
|
90
|
+
Entity('bi_datasource')
|
|
91
|
+
], BiDataSource);
|
|
92
|
+
export { BiDataSource };
|
|
93
|
+
//# sourceMappingURL=bi-datasource.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bi-datasource.entity.js","sourceRoot":"","sources":["../../src/entities/bi-datasource.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,sBAAsB,EACtB,MAAM,EACN,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,GACN,MAAM,kBAAkB,CAAC;AAMnB,IAAM,YAAY,GAAlB,MAAM,YAAY;IAEvB,EAAE,CAAU;IAIZ,IAAI,CAA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,SAAS,EAAE,CAAC;;4CACnD;AAGvB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;oDAC/B;AAG/B;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;;gDACnC;AAG3B;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;;qDACtC;AAGhC;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;;kDAC1C;AAG3B;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;;+CAC1C;AAGnB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC7B,IAAI;+CAAC;AAGjB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC7B,IAAI;+CAAC;AA7CN,YAAY;IADxB,MAAM,CAAC,eAAe,CAAC;GACX,YAAY,CA8CxB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type BiQueryMode = 'visual' | 'sql';
|
|
2
|
+
export declare class BiQuery {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
dataSourceId: string;
|
|
6
|
+
mode: BiQueryMode;
|
|
7
|
+
visualConfigJson: string | null;
|
|
8
|
+
rawSql: string | null;
|
|
9
|
+
parametersJson: string | null;
|
|
10
|
+
cacheSeconds: number | null;
|
|
11
|
+
cachedAt: Date | null;
|
|
12
|
+
cachedResult: string | null;
|
|
13
|
+
createdBy: string;
|
|
14
|
+
createdAt: Date;
|
|
15
|
+
updatedAt: Date;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=bi-query.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bi-query.entity.d.ts","sourceRoot":"","sources":["../../src/entities/bi-query.entity.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,KAAK,CAAC;AAE3C,qBACa,OAAO;IAElB,EAAE,EAAG,MAAM,CAAC;IAGZ,IAAI,EAAG,MAAM,CAAC;IAId,YAAY,EAAG,MAAM,CAAC;IAGtB,IAAI,EAAG,WAAW,CAAC;IAGnB,gBAAgB,EAAG,MAAM,GAAG,IAAI,CAAC;IAGjC,MAAM,EAAG,MAAM,GAAG,IAAI,CAAC;IAGvB,cAAc,EAAG,MAAM,GAAG,IAAI,CAAC;IAG/B,YAAY,EAAG,MAAM,GAAG,IAAI,CAAC;IAG7B,QAAQ,EAAG,IAAI,GAAG,IAAI,CAAC;IAGvB,YAAY,EAAG,MAAM,GAAG,IAAI,CAAC;IAG7B,SAAS,EAAG,MAAM,CAAC;IAGnB,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;CAClB"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
9
|
+
};
|
|
10
|
+
import { Entity, PrimaryGeneratedColumn, Column, CreateDateColumn, UpdateDateColumn, Index, } from '@octo-cyber/core';
|
|
11
|
+
let BiQuery = class BiQuery {
|
|
12
|
+
id;
|
|
13
|
+
name;
|
|
14
|
+
dataSourceId;
|
|
15
|
+
mode;
|
|
16
|
+
visualConfigJson;
|
|
17
|
+
rawSql;
|
|
18
|
+
parametersJson;
|
|
19
|
+
cacheSeconds;
|
|
20
|
+
cachedAt;
|
|
21
|
+
cachedResult;
|
|
22
|
+
createdBy;
|
|
23
|
+
createdAt;
|
|
24
|
+
updatedAt;
|
|
25
|
+
};
|
|
26
|
+
__decorate([
|
|
27
|
+
PrimaryGeneratedColumn('uuid'),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], BiQuery.prototype, "id", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
Column({ type: 'varchar', length: 100 }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], BiQuery.prototype, "name", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
Index(),
|
|
36
|
+
Column({ type: 'varchar', length: 36, name: 'datasource_id' }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], BiQuery.prototype, "dataSourceId", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
Column({ type: 'varchar', length: 10 }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], BiQuery.prototype, "mode", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
Column({ type: 'text', nullable: true, name: 'visual_config' }),
|
|
45
|
+
__metadata("design:type", Object)
|
|
46
|
+
], BiQuery.prototype, "visualConfigJson", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
Column({ type: 'text', nullable: true, name: 'raw_sql' }),
|
|
49
|
+
__metadata("design:type", Object)
|
|
50
|
+
], BiQuery.prototype, "rawSql", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
Column({ type: 'text', nullable: true, name: 'parameters' }),
|
|
53
|
+
__metadata("design:type", Object)
|
|
54
|
+
], BiQuery.prototype, "parametersJson", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
Column({ type: 'integer', nullable: true, name: 'cache_seconds' }),
|
|
57
|
+
__metadata("design:type", Object)
|
|
58
|
+
], BiQuery.prototype, "cacheSeconds", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
Column({ type: 'datetime', nullable: true, name: 'cached_at' }),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], BiQuery.prototype, "cachedAt", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
Column({ type: 'text', nullable: true, name: 'cached_result' }),
|
|
65
|
+
__metadata("design:type", Object)
|
|
66
|
+
], BiQuery.prototype, "cachedResult", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
Column({ type: 'varchar', length: 100, name: 'created_by' }),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], BiQuery.prototype, "createdBy", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
CreateDateColumn({ name: 'created_at' }),
|
|
73
|
+
__metadata("design:type", Date)
|
|
74
|
+
], BiQuery.prototype, "createdAt", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
UpdateDateColumn({ name: 'updated_at' }),
|
|
77
|
+
__metadata("design:type", Date)
|
|
78
|
+
], BiQuery.prototype, "updatedAt", void 0);
|
|
79
|
+
BiQuery = __decorate([
|
|
80
|
+
Entity('bi_query')
|
|
81
|
+
], BiQuery);
|
|
82
|
+
export { BiQuery };
|
|
83
|
+
//# sourceMappingURL=bi-query.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bi-query.entity.js","sourceRoot":"","sources":["../../src/entities/bi-query.entity.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,MAAM,EACN,sBAAsB,EACtB,MAAM,EACN,gBAAgB,EAChB,gBAAgB,EAChB,KAAK,GACN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AAE,IAAI,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;;yCACzC;AAGvB;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,CAAC;;6CACnC;AAG7B;IADC,MAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;;0CAC1C;AAGnB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC7B,IAAI;0CAAC;AAGjB;IADC,gBAAgB,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC7B,IAAI;0CAAC;AAvCN,OAAO;IADnB,MAAM,CAAC,UAAU,CAAC;GACN,OAAO,CAwCnB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class BiReport {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
description: string | null;
|
|
5
|
+
dashboardId: string | null;
|
|
6
|
+
sectionsJson: string;
|
|
7
|
+
scheduleJson: string | null;
|
|
8
|
+
lastGeneratedAt: Date | null;
|
|
9
|
+
lastExportUrl: string | null;
|
|
10
|
+
createdBy: string;
|
|
11
|
+
createdAt: Date;
|
|
12
|
+
updatedAt: Date;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=bi-report.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bi-report.entity.d.ts","sourceRoot":"","sources":["../../src/entities/bi-report.entity.ts"],"names":[],"mappings":"AASA,qBACa,QAAQ;IAEnB,EAAE,EAAG,MAAM,CAAC;IAGZ,IAAI,EAAG,MAAM,CAAC;IAGd,WAAW,EAAG,MAAM,GAAG,IAAI,CAAC;IAG5B,WAAW,EAAG,MAAM,GAAG,IAAI,CAAC;IAG5B,YAAY,EAAG,MAAM,CAAC;IAGtB,YAAY,EAAG,MAAM,GAAG,IAAI,CAAC;IAG7B,eAAe,EAAG,IAAI,GAAG,IAAI,CAAC;IAG9B,aAAa,EAAG,MAAM,GAAG,IAAI,CAAC;IAI9B,SAAS,EAAG,MAAM,CAAC;IAGnB,SAAS,EAAG,IAAI,CAAC;IAGjB,SAAS,EAAG,IAAI,CAAC;CAClB"}
|