@gisatcz/ptr-be-core 0.0.1-dev.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.
- package/.github/workflows/release-dev.yml +34 -0
- package/.github/workflows/release.yml +28 -0
- package/.github/workflows/version-bump.yml +68 -0
- package/Readme.md +26 -0
- package/barrelsby.json +9 -0
- package/dist/index.cjs +26340 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +26329 -0
- package/dist/index.mjs.map +1 -0
- package/dist/src/coding/code.formating.d.ts +77 -0
- package/dist/src/coding/code.formating.d.ts.map +1 -0
- package/dist/src/coding/code.types.d.ts +6 -0
- package/dist/src/coding/code.types.d.ts.map +1 -0
- package/dist/src/logging/logger.d.ts +16 -0
- package/dist/src/logging/logger.d.ts.map +1 -0
- package/dist/src/panther/enums.panther.d.ts +40 -0
- package/dist/src/panther/enums.panther.d.ts.map +1 -0
- package/dist/src/panther/models.edges.d.ts +18 -0
- package/dist/src/panther/models.edges.d.ts.map +1 -0
- package/dist/src/panther/models.nodes.d.ts +53 -0
- package/dist/src/panther/models.nodes.d.ts.map +1 -0
- package/dist/src/panther/models.nodes.properties.d.ts +29 -0
- package/dist/src/panther/models.nodes.properties.d.ts.map +1 -0
- package/doc/npm-refresh.md +4 -0
- package/package.json +46 -0
- package/rollup.config.js +30 -0
- package/src/coding/code.formating.ts +104 -0
- package/src/coding/code.types.ts +11 -0
- package/src/logging/logger.ts +58 -0
- package/src/panther/SharedFeature.md +43 -0
- package/src/panther/enums.panther.ts +41 -0
- package/src/panther/models.edges.ts +20 -0
- package/src/panther/models.nodes.properties.ts +31 -0
- package/src/panther/models.nodes.ts +55 -0
- package/tsconfig.json +51 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Nullable } from "../coding/code.types"
|
|
2
|
+
import { HasGeometry, HasInterval, HasLevels, HasConfiguration } from "./models.nodes.properties"
|
|
3
|
+
import { UsedNodeLabels, UsedDatasourceLabels } from "./enums.panther"
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* General graph node - same for all metadatata entities
|
|
7
|
+
*/
|
|
8
|
+
export interface PantherEntity {
|
|
9
|
+
labels: Array<string | UsedNodeLabels | UsedDatasourceLabels>,
|
|
10
|
+
key: string
|
|
11
|
+
nameDisplay: string,
|
|
12
|
+
nameInternal: string,
|
|
13
|
+
description: Nullable<string>,
|
|
14
|
+
lastUpdatedAt: number,
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Place node - somewhere in the world
|
|
19
|
+
*/
|
|
20
|
+
export interface Place extends PantherEntity, HasGeometry { }
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Period node - selected time in timeline
|
|
24
|
+
*/
|
|
25
|
+
export interface Period extends PantherEntity, HasInterval { }
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Area tree node - tree of areas
|
|
29
|
+
*/
|
|
30
|
+
export interface AreaTreeLevel extends PantherEntity, HasLevels {}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Datasource with source configuration
|
|
34
|
+
*/
|
|
35
|
+
export interface Datasource extends PantherEntity, HasConfiguration {}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Application node - main entity in metadata model
|
|
39
|
+
*/
|
|
40
|
+
export interface ApplicationNode extends PantherEntity, HasConfiguration {}
|
|
41
|
+
|
|
42
|
+
export { UsedNodeLabels, HasInterval, UsedDatasourceLabels }
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Represents a full panther entity which extends the basic PantherEntity
|
|
47
|
+
* and optionally includes geometry, interval, levels, and configuration properties.
|
|
48
|
+
*
|
|
49
|
+
* @extends PantherEntity
|
|
50
|
+
* @extends Partial<HasGeometry>
|
|
51
|
+
* @extends Partial<HasInterval>
|
|
52
|
+
* @extends Partial<HasLevels>
|
|
53
|
+
* @extends Partial<HasConfiguration>
|
|
54
|
+
*/
|
|
55
|
+
export interface FullPantherEntity extends PantherEntity, Partial<HasGeometry & HasInterval & HasLevels & HasConfiguration> { }
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
/* Basic Options */
|
|
4
|
+
"target": "ESNext",
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"moduleResolution": "bundler",
|
|
7
|
+
"outDir": "dist",
|
|
8
|
+
"rootDir": ".",
|
|
9
|
+
|
|
10
|
+
/* Strict Type-Checking Options */
|
|
11
|
+
"strict": true,
|
|
12
|
+
"noImplicitAny": true,
|
|
13
|
+
"noImplicitReturns": true,
|
|
14
|
+
"noFallthroughCasesInSwitch": true,
|
|
15
|
+
|
|
16
|
+
/* Module Resolution Options */
|
|
17
|
+
"esModuleInterop": true,
|
|
18
|
+
|
|
19
|
+
/* Advanced Options */
|
|
20
|
+
"skipLibCheck": true,
|
|
21
|
+
"forceConsistentCasingInFileNames": true,
|
|
22
|
+
|
|
23
|
+
/* Additional Options */
|
|
24
|
+
"sourceMap": true,
|
|
25
|
+
"noEmitOnError": true,
|
|
26
|
+
|
|
27
|
+
/* Declaration Options */
|
|
28
|
+
"declaration": true,
|
|
29
|
+
"declarationMap": true,
|
|
30
|
+
|
|
31
|
+
"resolveJsonModule": true,
|
|
32
|
+
"types": [
|
|
33
|
+
"node"
|
|
34
|
+
],
|
|
35
|
+
/* Path Mapping (Optional) */
|
|
36
|
+
"baseUrl": ".",
|
|
37
|
+
"paths": {
|
|
38
|
+
"@core/*": ["./src/*"]
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
"include": [
|
|
42
|
+
"./**/*"
|
|
43
|
+
],
|
|
44
|
+
"exclude": [
|
|
45
|
+
"node_modules",
|
|
46
|
+
"./dist/**/*"
|
|
47
|
+
],
|
|
48
|
+
/* Additional Linting Options */
|
|
49
|
+
"noUnusedLocals": true,
|
|
50
|
+
"noUnusedParameters": false // Set to true if applicable
|
|
51
|
+
}
|