@privateaim/core-kit 0.8.4 → 0.8.6
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/CHANGELOG.md +44 -0
- package/dist/domains/analysis/constants.d.ts +3 -5
- package/dist/domains/analysis/constants.d.ts.map +1 -1
- package/dist/domains/analysis/entity.d.ts +2 -7
- package/dist/domains/analysis/entity.d.ts.map +1 -1
- package/dist/domains/analysis/helpers.d.ts +15 -0
- package/dist/domains/analysis/helpers.d.ts.map +1 -0
- package/dist/domains/analysis/index.d.ts +1 -0
- package/dist/domains/analysis/index.d.ts.map +1 -1
- package/dist/domains/analysis-bucket/entity.d.ts +0 -6
- package/dist/domains/analysis-bucket/entity.d.ts.map +1 -1
- package/dist/domains/analysis-bucket-file/entity.d.ts +0 -6
- package/dist/domains/analysis-bucket-file/entity.d.ts.map +1 -1
- package/dist/domains/analysis-log/entity.d.ts +0 -6
- package/dist/domains/analysis-log/entity.d.ts.map +1 -1
- package/dist/domains/analysis-node/entity.d.ts +0 -13
- package/dist/domains/analysis-node/entity.d.ts.map +1 -1
- package/dist/domains/analysis-permission/entity.d.ts +0 -6
- package/dist/domains/analysis-permission/entity.d.ts.map +1 -1
- package/dist/domains/constants.d.ts +1 -0
- package/dist/domains/constants.d.ts.map +1 -1
- package/dist/domains/index.d.ts +1 -0
- package/dist/domains/index.d.ts.map +1 -1
- package/dist/domains/master-image/entity.d.ts +2 -7
- package/dist/domains/master-image/entity.d.ts.map +1 -1
- package/dist/domains/master-image/index.d.ts +1 -0
- package/dist/domains/master-image/index.d.ts.map +1 -1
- package/dist/domains/master-image/types.d.ts +5 -0
- package/dist/domains/master-image/types.d.ts.map +1 -0
- package/dist/domains/master-image-event-log/entity.d.ts +13 -0
- package/dist/domains/master-image-event-log/entity.d.ts.map +1 -0
- package/dist/domains/master-image-event-log/index.d.ts +2 -0
- package/dist/domains/master-image-event-log/index.d.ts.map +1 -0
- package/dist/domains/master-image-group/entity.d.ts +0 -8
- package/dist/domains/master-image-group/entity.d.ts.map +1 -1
- package/dist/domains/node/entity.d.ts +1 -6
- package/dist/domains/node/entity.d.ts.map +1 -1
- package/dist/domains/project/entity.d.ts +0 -6
- package/dist/domains/project/entity.d.ts.map +1 -1
- package/dist/domains/project-node/entity.d.ts +0 -6
- package/dist/domains/project-node/entity.d.ts.map +1 -1
- package/dist/domains/registry/entity.d.ts +0 -6
- package/dist/domains/registry/entity.d.ts.map +1 -1
- package/dist/domains/registry-project/entity.d.ts +0 -6
- package/dist/domains/registry-project/entity.d.ts.map +1 -1
- package/dist/domains/types.d.ts +46 -18
- package/dist/domains/types.d.ts.map +1 -1
- package/dist/domains/utils.d.ts +4 -4
- package/dist/domains/utils.d.ts.map +1 -1
- package/dist/index.cjs +111 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +111 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -5
- package/src/domains/analysis/constants.ts +3 -5
- package/src/domains/analysis/entity.ts +5 -8
- package/src/domains/analysis/helpers.ts +147 -0
- package/src/domains/analysis/index.ts +1 -0
- package/src/domains/analysis-bucket/entity.ts +0 -7
- package/src/domains/analysis-bucket-file/entity.ts +0 -7
- package/src/domains/analysis-log/entity.ts +0 -7
- package/src/domains/analysis-node/entity.ts +0 -12
- package/src/domains/analysis-permission/entity.ts +0 -7
- package/src/domains/constants.ts +1 -0
- package/src/domains/index.ts +1 -0
- package/src/domains/master-image/entity.ts +2 -8
- package/src/domains/master-image/index.ts +1 -0
- package/src/domains/master-image/types.ts +11 -0
- package/src/domains/master-image-event-log/entity.ts +34 -0
- package/src/domains/master-image-event-log/index.ts +7 -0
- package/src/domains/master-image-group/entity.ts +0 -12
- package/src/domains/node/entity.ts +2 -7
- package/src/domains/project/entity.ts +0 -7
- package/src/domains/project-node/entity.ts +0 -7
- package/src/domains/registry/entity.ts +0 -8
- package/src/domains/registry-project/entity.ts +0 -7
- package/src/domains/types.ts +48 -78
- package/src/domains/utils.ts +8 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.8.6](https://github.com/PrivateAIM/hub/compare/v0.8.5...v0.8.6) (2025-03-04)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* command-arguments editor in analysis wizard ([#994](https://github.com/PrivateAIM/hub/issues/994)) ([e8e450f](https://github.com/PrivateAIM/hub/commit/e8e450f5e14e108cedf17844f258d898c44cbdcc))
|
|
9
|
+
* master-images command arguments extension ([#991](https://github.com/PrivateAIM/hub/issues/991)) ([7b8d860](https://github.com/PrivateAIM/hub/commit/7b8d86086af5afcc450833f8b07301346ce32a80))
|
|
10
|
+
* refactor command precondition + change order in build_start command ([#981](https://github.com/PrivateAIM/hub/issues/981)) ([85aa834](https://github.com/PrivateAIM/hub/commit/85aa8348dd91a4394ed700d5f57f5de28f80f827))
|
|
11
|
+
* reorganized analysis wizard steps ([#978](https://github.com/PrivateAIM/hub/issues/978)) ([9e1913e](https://github.com/PrivateAIM/hub/commit/9e1913e2dbbd98f1fc018ed621d37b78261446eb))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Dependencies
|
|
15
|
+
|
|
16
|
+
* The following workspace dependencies were updated
|
|
17
|
+
* devDependencies
|
|
18
|
+
* @privateaim/kit bumped from ^0.8.5 to ^0.8.6
|
|
19
|
+
* peerDependencies
|
|
20
|
+
* @privateaim/kit bumped from ^0.8.5 to ^0.8.6
|
|
21
|
+
|
|
22
|
+
## [0.8.5](https://github.com/PrivateAIM/hub/compare/v0.8.4...v0.8.5) (2025-01-22)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* add public_key property to node entity ([69fe08e](https://github.com/PrivateAIM/hub/commit/69fe08e4732852d4cbd977a9bcb145f7fa0cfc15))
|
|
28
|
+
* enhance typing for doamin entities ([9d7c516](https://github.com/PrivateAIM/hub/commit/9d7c51644b66c9361e5436e2c43f463f4f219f90))
|
|
29
|
+
* implement basic master image event log (db-) entity ([d2fdb7f](https://github.com/PrivateAIM/hub/commit/d2fdb7fed7bf1380e0350f74edb47738a1f81550))
|
|
30
|
+
* refactoring of master-image workflow ([#845](https://github.com/PrivateAIM/hub/issues/845)) ([7d2b866](https://github.com/PrivateAIM/hub/commit/7d2b8662b24dcf411d3ae8232152fecf53167382))
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* **deps:** bump @authup/core-kit from 1.0.0-beta.22 to 1.0.0-beta.23 ([#896](https://github.com/PrivateAIM/hub/issues/896)) ([e0dcfed](https://github.com/PrivateAIM/hub/commit/e0dcfed47320bd53fadbca11a05ca677ed0ef7ff))
|
|
36
|
+
* **deps:** bump authup to v1.0.0-beta.24 ([#963](https://github.com/PrivateAIM/hub/issues/963)) ([90c40c0](https://github.com/PrivateAIM/hub/commit/90c40c0d55018557ee8bb381aad7e3cfbcd29b83))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Dependencies
|
|
40
|
+
|
|
41
|
+
* The following workspace dependencies were updated
|
|
42
|
+
* devDependencies
|
|
43
|
+
* @privateaim/kit bumped from ^0.8.4 to ^0.8.5
|
|
44
|
+
* peerDependencies
|
|
45
|
+
* @privateaim/kit bumped from ^0.8.4 to ^0.8.5
|
|
46
|
+
|
|
3
47
|
## [0.8.4](https://github.com/PrivateAIM/hub/compare/v0.8.3...v0.8.4) (2024-10-24)
|
|
4
48
|
|
|
5
49
|
|
|
@@ -7,11 +7,9 @@ export declare enum AnalysisBuildStatus {
|
|
|
7
7
|
FAILED = "failed"
|
|
8
8
|
}
|
|
9
9
|
export declare enum AnalysisConfigurationStatus {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
HASH_GENERATED = "hash_generated",// todo: still relevant ?
|
|
14
|
-
HASH_SIGNED = "hash_signed",// todo: signed by xyz
|
|
10
|
+
NODES = "nodes",
|
|
11
|
+
MASTER_IMAGE = "masterImage",
|
|
12
|
+
FILES = "files",
|
|
15
13
|
FINISHED = "finished"
|
|
16
14
|
}
|
|
17
15
|
export declare enum AnalysisRunStatus {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/domains/analysis/constants.ts"],"names":[],"mappings":"AAOA,oBAAY,mBAAmB;IAC3B,QAAQ,aAAa,CAAE,aAAa;IACpC,OAAO,YAAY,CAAE,aAAa;IAElC,QAAQ,aAAa,CAAE,aAAa;IACpC,OAAO,YAAY,CAAE,aAAa;IAElC,QAAQ,aAAa,CAAE,aAAa;IACpC,MAAM,WAAW;CACpB;AAID,oBAAY,2BAA2B;IACnC,
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/domains/analysis/constants.ts"],"names":[],"mappings":"AAOA,oBAAY,mBAAmB;IAC3B,QAAQ,aAAa,CAAE,aAAa;IACpC,OAAO,YAAY,CAAE,aAAa;IAElC,QAAQ,aAAa,CAAE,aAAa;IACpC,OAAO,YAAY,CAAE,aAAa;IAElC,QAAQ,aAAa,CAAE,aAAa;IACpC,MAAM,WAAW;CACpB;AAID,oBAAY,2BAA2B;IACnC,KAAK,UAAU;IACf,YAAY,gBAAgB;IAC5B,KAAK,UAAU;IACf,QAAQ,aAAa;CACxB;AAID,oBAAY,iBAAiB;IACzB,QAAQ,aAAa;IACrB,OAAO,YAAY;IAEnB,OAAO,YAAY;IAEnB,QAAQ,aAAa;IACrB,OAAO,YAAY;IAEnB,QAAQ,aAAa;IACrB,MAAM,WAAW;CACpB;AAID,oBAAY,oBAAoB;IAC5B,OAAO,YAAY;IAEnB,WAAW,gBAAgB;IAC3B,UAAU,eAAe;IAEzB,UAAU,eAAe;IACzB,SAAS,cAAc;IAEvB,QAAQ,aAAa;IACrB,MAAM,WAAW;CACpB;AAID,oBAAY,kBAAkB;IAC1B,OAAO,WAAW;IAClB,SAAS,aAAa;IAEtB,WAAW,eAAe;IAC1B,UAAU,cAAc;IACxB,YAAY,gBAAgB;IAE5B,kBAAkB,sBAAsB;IACxC,oBAAoB,wBAAwB;CAC/C;AAID,oBAAY,qBAAqB;IAC7B,IAAI,eAAe;CACtB"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import type { Realm, User } from '@authup/core-kit';
|
|
2
|
-
import type {
|
|
3
|
-
import type { MasterImage } from '../master-image';
|
|
2
|
+
import type { MasterImage, MasterImageCommandArgument } from '../master-image';
|
|
4
3
|
import type { Project } from '../project';
|
|
5
|
-
import type { DomainEventBaseContext } from '../types-base';
|
|
6
4
|
import type { AnalysisBuildStatus, AnalysisRunStatus } from './constants';
|
|
7
5
|
import type { Registry } from '../registry';
|
|
8
6
|
export interface Analysis {
|
|
@@ -21,11 +19,8 @@ export interface Analysis {
|
|
|
21
19
|
user_id: User['id'];
|
|
22
20
|
project_id: Project['id'];
|
|
23
21
|
project: Project;
|
|
22
|
+
image_command_arguments: MasterImageCommandArgument[] | null;
|
|
24
23
|
master_image_id: MasterImage['id'] | null;
|
|
25
24
|
master_image: MasterImage;
|
|
26
25
|
}
|
|
27
|
-
export type AnalysisEventContext = DomainEventBaseContext & {
|
|
28
|
-
type: `${DomainType.ANALYSIS}`;
|
|
29
|
-
data: Analysis;
|
|
30
|
-
};
|
|
31
26
|
//# sourceMappingURL=entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/analysis/entity.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/analysis/entity.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAC/E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,KAAK,EACR,mBAAmB,EACnB,iBAAiB,EACpB,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B,KAAK,EAAE,MAAM,CAAC;IAId,oBAAoB,EAAE,OAAO,CAAC;IAI9B,YAAY,EAAE,mBAAmB,GAAG,IAAI,CAAC;IAIzC,UAAU,EAAE,iBAAiB,GAAG,IAAI,CAAC;IAIrC,UAAU,EAAE,IAAI,CAAC;IAEjB,UAAU,EAAE,IAAI,CAAC;IAIjB,QAAQ,EAAE,QAAQ,CAAC;IAEnB,WAAW,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;IAI5B,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAEtB,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IAIpB,UAAU,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1B,OAAO,EAAE,OAAO,CAAC;IAIjB,uBAAuB,EAAE,0BAA0B,EAAE,GAAG,IAAI,CAAC;IAI7D,eAAe,EAAE,WAAW,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAE1C,YAAY,EAAE,WAAW,CAAC;CAC7B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { AnalysisAPICommand } from './constants';
|
|
2
|
+
import type { Analysis } from './entity';
|
|
3
|
+
type CanResult = {
|
|
4
|
+
success: boolean;
|
|
5
|
+
message: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Check if an analysis can be build based on analysis attributes (build_status, configuration_locked, ...)
|
|
9
|
+
*
|
|
10
|
+
* @param entity
|
|
11
|
+
* @param command
|
|
12
|
+
*/
|
|
13
|
+
export declare function isAnalysisAPICommandExecutable(entity: Analysis, command: `${AnalysisAPICommand}`): CanResult;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/domains/analysis/helpers.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,kBAAkB,EAAuB,MAAM,aAAa,CAAC;AACtE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AAEzC,KAAK,SAAS,GAAG;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAC1C,MAAM,EAAE,QAAQ,EAChB,OAAO,EAAE,GAAG,kBAAkB,EAAE,GAChC,SAAS,CA0HZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/analysis/index.ts"],"names":[],"mappings":"AAOA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/analysis/index.ts"],"names":[],"mappings":"AAOA,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { Realm } from '@authup/core-kit';
|
|
2
2
|
import type { Analysis } from '../analysis';
|
|
3
|
-
import type { DomainType } from '../constants';
|
|
4
|
-
import type { DomainEventBaseContext } from '../types-base';
|
|
5
3
|
import type { AnalysisBucketType } from './constants';
|
|
6
4
|
export interface AnalysisBucket {
|
|
7
5
|
id: string;
|
|
@@ -13,8 +11,4 @@ export interface AnalysisBucket {
|
|
|
13
11
|
analysis: Analysis;
|
|
14
12
|
realm_id: Realm['id'];
|
|
15
13
|
}
|
|
16
|
-
export type AnalysisBucketEventContext = DomainEventBaseContext & {
|
|
17
|
-
type: `${DomainType.ANALYSIS_BUCKET}`;
|
|
18
|
-
data: AnalysisBucket;
|
|
19
|
-
};
|
|
20
14
|
//# sourceMappingURL=entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/analysis-bucket/entity.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/analysis-bucket/entity.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD,MAAM,WAAW,cAAc;IAC3B,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,GAAG,kBAAkB,EAAE,CAAC;IAE9B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAI3B,UAAU,EAAE,IAAI,CAAC;IAEjB,UAAU,EAAE,IAAI,CAAC;IAIjB,WAAW,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE5B,QAAQ,EAAE,QAAQ,CAAC;IAInB,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;CACzB"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import type { Realm, Robot, User } from '@authup/core-kit';
|
|
2
2
|
import type { AnalysisBucket } from '../analysis-bucket';
|
|
3
|
-
import type { DomainType } from '../constants';
|
|
4
3
|
import type { Analysis } from '../analysis';
|
|
5
|
-
import type { DomainEventBaseContext } from '../types-base';
|
|
6
4
|
export interface AnalysisBucketFile {
|
|
7
5
|
id: string;
|
|
8
6
|
name: string;
|
|
@@ -18,8 +16,4 @@ export interface AnalysisBucketFile {
|
|
|
18
16
|
user_id: User['id'] | null;
|
|
19
17
|
robot_id: Robot['id'] | null;
|
|
20
18
|
}
|
|
21
|
-
export type AnalysisFileEventContext = DomainEventBaseContext & {
|
|
22
|
-
type: `${DomainType.ANALYSIS_BUCKET_FILE}`;
|
|
23
|
-
data: AnalysisBucketFile;
|
|
24
|
-
};
|
|
25
19
|
//# sourceMappingURL=entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/analysis-bucket-file/entity.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/analysis-bucket-file/entity.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,WAAW,kBAAkB;IAC/B,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,EAAE,OAAO,CAAC;IAId,UAAU,EAAE,IAAI,CAAC;IAEjB,UAAU,EAAE,IAAI,CAAC;IAIjB,WAAW,EAAE,MAAM,CAAC;IAIpB,SAAS,EAAE,cAAc,CAAC,IAAI,CAAC,CAAC;IAEhC,MAAM,EAAE,cAAc,CAAC;IAIvB,WAAW,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE5B,QAAQ,EAAE,QAAQ,CAAC;IAInB,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAEtB,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAE3B,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;CAChC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { Realm } from '@authup/core-kit';
|
|
2
|
-
import type { DomainType } from '../constants';
|
|
3
2
|
import type { Analysis } from '../analysis';
|
|
4
|
-
import type { DomainEventBaseContext } from '../types-base';
|
|
5
3
|
export interface AnalysisLog {
|
|
6
4
|
id: string;
|
|
7
5
|
/**
|
|
@@ -43,8 +41,4 @@ export interface AnalysisLog {
|
|
|
43
41
|
analysis: Analysis;
|
|
44
42
|
realm_id: Realm['id'];
|
|
45
43
|
}
|
|
46
|
-
export type AnalysisLogEventContext = DomainEventBaseContext & {
|
|
47
|
-
type: `${DomainType.ANALYSIS_LOG}`;
|
|
48
|
-
data: AnalysisLog;
|
|
49
|
-
};
|
|
50
44
|
//# sourceMappingURL=entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/analysis-log/entity.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/analysis-log/entity.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,EACR,QAAQ,EACX,MAAM,aAAa,CAAC;AAErB,MAAM,WAAW,WAAW;IACxB,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAEzB;;OAEG;IACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB,KAAK,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAIpB,UAAU,EAAE,IAAI,CAAC;IAEjB,UAAU,EAAE,IAAI,CAAC;IAIjB,WAAW,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE5B,QAAQ,EAAE,QAAQ,CAAC;IAEnB,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;CACzB"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import type { Realm } from '@authup/core-kit';
|
|
2
|
-
import type { DomainType } from '../constants';
|
|
3
2
|
import type { Node } from '../node';
|
|
4
3
|
import type { Analysis } from '../analysis';
|
|
5
|
-
import type { DomainEventBaseContext } from '../types-base';
|
|
6
4
|
import type { AnalysisNodeApprovalStatus, AnalysisNodeRunStatus } from './constants';
|
|
7
5
|
export interface AnalysisNode {
|
|
8
6
|
id: string;
|
|
@@ -21,15 +19,4 @@ export interface AnalysisNode {
|
|
|
21
19
|
node: Node;
|
|
22
20
|
node_realm_id: Realm['id'];
|
|
23
21
|
}
|
|
24
|
-
export type TrainStationEventContext = DomainEventBaseContext & {
|
|
25
|
-
type: `${DomainType.ANALYSIS_NODE}`;
|
|
26
|
-
data: AnalysisNode;
|
|
27
|
-
};
|
|
28
|
-
export type AnalyseNodeSocketEventData = Record<string, {
|
|
29
|
-
online: boolean;
|
|
30
|
-
realmId: string;
|
|
31
|
-
}>;
|
|
32
|
-
export type AnalyseNodeSocketCTSEvents = {
|
|
33
|
-
analysisNodes: (id: Analysis['id'], cb?: (err: null | Error, data: AnalyseNodeSocketEventData) => void) => void;
|
|
34
|
-
};
|
|
35
22
|
//# sourceMappingURL=entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/analysis-node/entity.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/analysis-node/entity.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAErF,MAAM,WAAW,YAAY;IACzB,EAAE,EAAE,MAAM,CAAC;IAIX,eAAe,EAAE,0BAA0B,GAAG,IAAI,CAAC;IAEnD,UAAU,EAAE,qBAAqB,GAAG,IAAI,CAAC;IAIzC,OAAO,EAAE,MAAM,CAAC;IAEhB,KAAK,EAAE,MAAM,CAAC;IAId,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAI/B,UAAU,EAAE,IAAI,CAAC;IAEjB,UAAU,EAAE,IAAI,CAAC;IAIjB,WAAW,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE5B,QAAQ,EAAE,QAAQ,CAAC;IAEnB,iBAAiB,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAE/B,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IAEpB,IAAI,EAAE,IAAI,CAAC;IAEX,aAAa,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;CAC9B"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { PermissionRelation, Realm } from '@authup/core-kit';
|
|
2
2
|
import type { Analysis } from '../analysis';
|
|
3
|
-
import type { DomainType } from '../constants';
|
|
4
|
-
import type { DomainEventBaseContext } from '../types-base';
|
|
5
3
|
export interface AnalysisPermission extends PermissionRelation {
|
|
6
4
|
id: string;
|
|
7
5
|
analysis_id: Analysis['id'];
|
|
@@ -11,8 +9,4 @@ export interface AnalysisPermission extends PermissionRelation {
|
|
|
11
9
|
created_at: Date | string;
|
|
12
10
|
updated_at: Date | string;
|
|
13
11
|
}
|
|
14
|
-
export type AnalysisPermissionEventContext = DomainEventBaseContext & {
|
|
15
|
-
type: `${DomainType.ANALYSIS_PERMISSION}`;
|
|
16
|
-
data: AnalysisPermission;
|
|
17
|
-
};
|
|
18
12
|
//# sourceMappingURL=entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/analysis-permission/entity.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/analysis-permission/entity.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAClE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC1D,EAAE,EAAE,MAAM,CAAC;IAIX,WAAW,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE5B,QAAQ,EAAE,QAAQ,CAAC;IAInB,cAAc,EAAE,KAAK,GAAG,IAAI,CAAC;IAE7B,iBAAiB,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAItC,UAAU,EAAE,IAAI,GAAG,MAAM,CAAC;IAE1B,UAAU,EAAE,IAAI,GAAG,MAAM,CAAC;CAC7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/domains/constants.ts"],"names":[],"mappings":"AAOA,oBAAY,UAAU;IAClB,YAAY,gBAAgB;IAC5B,kBAAkB,qBAAqB;IACvC,OAAO,YAAY;IACnB,YAAY,gBAAgB;IAC5B,QAAQ,aAAa;IACrB,gBAAgB,oBAAoB;IACpC,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,eAAe,mBAAmB;IAClC,oBAAoB,uBAAuB;IAC3C,YAAY,gBAAgB;IAC5B,aAAa,iBAAiB;IAC9B,mBAAmB,uBAAuB;CAC7C;AAED,oBAAY,aAAa;IACrB,eAAe,kBAAkB;IACjC,gBAAgB,mBAAmB;IACnC,gBAAgB,mBAAmB;IACnC,iBAAiB,oBAAoB;CACxC;AAED,oBAAY,eAAe;IACvB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;CACtB;AAED,oBAAY,2BAA2B;IACnC,SAAS,cAAc;IACvB,WAAW,gBAAgB;CAC9B"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/domains/constants.ts"],"names":[],"mappings":"AAOA,oBAAY,UAAU;IAClB,YAAY,gBAAgB;IAC5B,sBAAsB,wBAAwB;IAC9C,kBAAkB,qBAAqB;IACvC,OAAO,YAAY;IACnB,YAAY,gBAAgB;IAC5B,QAAQ,aAAa;IACrB,gBAAgB,oBAAoB;IACpC,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,eAAe,mBAAmB;IAClC,oBAAoB,uBAAuB;IAC3C,YAAY,gBAAgB;IAC5B,aAAa,iBAAiB;IAC9B,mBAAmB,uBAAuB;CAC7C;AAED,oBAAY,aAAa;IACrB,eAAe,kBAAkB;IACjC,gBAAgB,mBAAmB;IACnC,gBAAgB,mBAAmB;IACnC,iBAAiB,oBAAoB;CACxC;AAED,oBAAY,eAAe;IACvB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;CACtB;AAED,oBAAY,2BAA2B;IACnC,SAAS,cAAc;IACvB,WAAW,gBAAgB;CAC9B"}
|
package/dist/domains/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from './analysis-permission';
|
|
|
7
7
|
export * from './realm';
|
|
8
8
|
export * from './master-image-group';
|
|
9
9
|
export * from './master-image';
|
|
10
|
+
export * from './master-image-event-log';
|
|
10
11
|
export * from './project';
|
|
11
12
|
export * from './project-node';
|
|
12
13
|
export * from './registry';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/domains/index.ts"],"names":[],"mappings":"AAOA,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/domains/index.ts"],"names":[],"mappings":"AAOA,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,SAAS,CAAC;AACxB,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { DomainEventBaseContext } from '../types-base';
|
|
1
|
+
import type { MasterImageCommandArgument } from './types';
|
|
3
2
|
export interface MasterImage {
|
|
4
3
|
id: string;
|
|
5
4
|
path: string | null;
|
|
@@ -7,12 +6,8 @@ export interface MasterImage {
|
|
|
7
6
|
group_virtual_path: string;
|
|
8
7
|
name: string;
|
|
9
8
|
command: string | null;
|
|
10
|
-
command_arguments:
|
|
9
|
+
command_arguments: MasterImageCommandArgument[] | null;
|
|
11
10
|
created_at: Date;
|
|
12
11
|
updated_at: Date;
|
|
13
12
|
}
|
|
14
|
-
export type MasterImageEventContext = DomainEventBaseContext & {
|
|
15
|
-
type: `${DomainType.MASTER_IMAGE}`;
|
|
16
|
-
data: MasterImage;
|
|
17
|
-
};
|
|
18
13
|
//# sourceMappingURL=entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/master-image/entity.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/master-image/entity.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAE1D,MAAM,WAAW,WAAW;IACxB,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpB,YAAY,EAAE,MAAM,CAAC;IAErB,kBAAkB,EAAE,MAAM,CAAC;IAE3B,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,iBAAiB,EAAE,0BAA0B,EAAE,GAAG,IAAI,CAAC;IAIvD,UAAU,EAAE,IAAI,CAAC;IAEjB,UAAU,EAAE,IAAI,CAAC;CACpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/master-image/index.ts"],"names":[],"mappings":"AAMA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/master-image/index.ts"],"names":[],"mappings":"AAMA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/domains/master-image/types.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,0BAA0B,GAAG;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAA;CAChC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { MasterImage } from '../master-image';
|
|
2
|
+
export interface MasterImageEventLog {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
data: unknown | null;
|
|
6
|
+
expiring: boolean;
|
|
7
|
+
expires_at: Date;
|
|
8
|
+
master_image_id: string | null;
|
|
9
|
+
master_image: MasterImage | null;
|
|
10
|
+
created_at: Date;
|
|
11
|
+
updated_at: Date;
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/master-image-event-log/entity.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,EAAE,OAAO,GAAG,IAAI,CAAC;IAIrB,QAAQ,EAAE,OAAO,CAAC;IAElB,UAAU,EAAE,IAAI,CAAC;IAIjB,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B,YAAY,EAAE,WAAW,GAAG,IAAI,CAAC;IAIjC,UAAU,EAAE,IAAI,CAAC;IAEjB,UAAU,EAAE,IAAI,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/master-image-event-log/index.ts"],"names":[],"mappings":"AAMA,cAAc,UAAU,CAAC"}
|
|
@@ -1,17 +1,9 @@
|
|
|
1
|
-
import type { DomainType } from '../constants';
|
|
2
|
-
import type { DomainEventBaseContext } from '../types-base';
|
|
3
1
|
export interface MasterImageGroup {
|
|
4
2
|
id: string;
|
|
5
3
|
name: string;
|
|
6
4
|
path: string;
|
|
7
5
|
virtual_path: string;
|
|
8
|
-
command: string | null;
|
|
9
|
-
command_arguments: any | null;
|
|
10
6
|
created_at: Date;
|
|
11
7
|
updated_at: Date;
|
|
12
8
|
}
|
|
13
|
-
export type MasterImageGroupEventContext = DomainEventBaseContext & {
|
|
14
|
-
type: `${DomainType.MASTER_IMAGE_GROUP}`;
|
|
15
|
-
data: MasterImageGroup;
|
|
16
|
-
};
|
|
17
9
|
//# sourceMappingURL=entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/master-image-group/entity.ts"],"names":[],"mappings":"AAOA,
|
|
1
|
+
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/master-image-group/entity.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,EAAE,MAAM,CAAC;IAEb,YAAY,EAAE,MAAM,CAAC;IAIrB,UAAU,EAAE,IAAI,CAAC;IAEjB,UAAU,EAAE,IAAI,CAAC;CACpB"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import type { Realm, Robot } from '@authup/core-kit';
|
|
2
|
-
import type { DomainType } from '../constants';
|
|
3
2
|
import type { RegistryProject } from '../registry-project';
|
|
4
3
|
import type { Registry } from '../registry';
|
|
5
|
-
import type { DomainEventBaseContext } from '../types-base';
|
|
6
4
|
import type { NodeType } from './constants';
|
|
7
5
|
export interface Node {
|
|
8
6
|
id: string;
|
|
9
7
|
external_name: string | null;
|
|
8
|
+
public_key: string | null;
|
|
10
9
|
name: string;
|
|
11
10
|
hidden: boolean;
|
|
12
11
|
type: `${NodeType}`;
|
|
@@ -20,8 +19,4 @@ export interface Node {
|
|
|
20
19
|
created_at: Date;
|
|
21
20
|
updated_at: Date;
|
|
22
21
|
}
|
|
23
|
-
export type NodeEventContext = DomainEventBaseContext & {
|
|
24
|
-
type: `${DomainType.NODE}`;
|
|
25
|
-
data: Node;
|
|
26
|
-
};
|
|
27
22
|
//# sourceMappingURL=entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/node/entity.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/node/entity.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,MAAM,WAAW,IAAI;IACjB,EAAE,EAAE,MAAM,CAAC;IAEX,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,IAAI,EAAE,MAAM,CAAC;IAEb,MAAM,EAAE,OAAO,CAAC;IAEhB,IAAI,EAAE,GAAG,QAAQ,EAAE,CAAC;IAEpB,MAAM,EAAE,OAAO,CAAC;IAIhB,WAAW,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE5B,QAAQ,EAAE,QAAQ,CAAC;IAEnB,mBAAmB,EAAE,eAAe,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAElD,gBAAgB,EAAE,eAAe,CAAC;IAIlC,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAI7B,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAItB,UAAU,EAAE,IAAI,CAAC;IAEjB,UAAU,EAAE,IAAI,CAAC;CACpB"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { Realm, Robot, User } from '@authup/core-kit';
|
|
2
|
-
import type { DomainType } from '../constants';
|
|
3
2
|
import type { MasterImage } from '../master-image';
|
|
4
|
-
import type { DomainEventBaseContext } from '../types-base';
|
|
5
3
|
export interface Project {
|
|
6
4
|
id: string;
|
|
7
5
|
name: string;
|
|
@@ -16,8 +14,4 @@ export interface Project {
|
|
|
16
14
|
master_image_id: MasterImage['id'] | null;
|
|
17
15
|
master_image: MasterImage | null;
|
|
18
16
|
}
|
|
19
|
-
export type ProjectEventContext = DomainEventBaseContext & {
|
|
20
|
-
type: `${DomainType.PROJECT}`;
|
|
21
|
-
data: Project;
|
|
22
|
-
};
|
|
23
17
|
//# sourceMappingURL=entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/project/entity.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/project/entity.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnD,MAAM,WAAW,OAAO;IACpB,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,MAAM,CAAC;IAEb,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAI3B,KAAK,EAAE,MAAM,CAAC;IAEd,QAAQ,EAAE,MAAM,CAAC;IAIjB,UAAU,EAAE,IAAI,CAAC;IAEjB,UAAU,EAAE,IAAI,CAAC;IAIjB,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAEtB,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAE7B,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAE3B,eAAe,EAAE,WAAW,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAE1C,YAAY,EAAE,WAAW,GAAG,IAAI,CAAC;CACpC"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import type { Realm } from '@authup/core-kit';
|
|
2
|
-
import type { DomainType } from '../constants';
|
|
3
2
|
import type { Project } from '../project';
|
|
4
3
|
import type { Node } from '../node';
|
|
5
|
-
import type { DomainEventBaseContext } from '../types-base';
|
|
6
4
|
import type { ProjectNodeApprovalStatus } from './constants';
|
|
7
5
|
export interface ProjectNode {
|
|
8
6
|
id: string;
|
|
@@ -17,8 +15,4 @@ export interface ProjectNode {
|
|
|
17
15
|
node: Node;
|
|
18
16
|
node_realm_id: Realm['id'];
|
|
19
17
|
}
|
|
20
|
-
export type ProjectNodeEventContext = DomainEventBaseContext & {
|
|
21
|
-
type: `${DomainType.PROJECT_NODE}`;
|
|
22
|
-
data: ProjectNode;
|
|
23
|
-
};
|
|
24
18
|
//# sourceMappingURL=entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/project-node/entity.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/project-node/entity.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAE7D,MAAM,WAAW,WAAW;IACxB,EAAE,EAAE,MAAM,CAAC;IAEX,eAAe,EAAE,yBAAyB,GAAG,IAAI,CAAC;IAElD,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAIvB,UAAU,EAAE,IAAI,CAAC;IAEjB,UAAU,EAAE,IAAI,CAAC;IAIjB,UAAU,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAE1B,OAAO,EAAE,OAAO,CAAC;IAEjB,gBAAgB,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAE9B,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IAEpB,IAAI,EAAE,IAAI,CAAC;IAEX,aAAa,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;CAC9B"}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import type { DomainType } from '../constants';
|
|
2
|
-
import type { DomainEventBaseContext } from '../types-base';
|
|
3
1
|
export interface Registry {
|
|
4
2
|
id: string;
|
|
5
3
|
name: string;
|
|
@@ -9,8 +7,4 @@ export interface Registry {
|
|
|
9
7
|
created_at: Date;
|
|
10
8
|
updated_at: Date;
|
|
11
9
|
}
|
|
12
|
-
export type RegistryEventContext = DomainEventBaseContext & {
|
|
13
|
-
type: `${DomainType.REGISTRY}`;
|
|
14
|
-
data: Registry;
|
|
15
|
-
};
|
|
16
10
|
//# sourceMappingURL=entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/registry/entity.ts"],"names":[],"mappings":"AAOA,
|
|
1
|
+
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/registry/entity.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,EAAE,MAAM,CAAC;IAIb,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAI9B,UAAU,EAAE,IAAI,CAAC;IAEjB,UAAU,EAAE,IAAI,CAAC;CACpB"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import type { Realm } from '@authup/core-kit';
|
|
2
|
-
import type { DomainType } from '../constants';
|
|
3
2
|
import type { Registry } from '../registry';
|
|
4
|
-
import type { DomainEventBaseContext } from '../types-base';
|
|
5
3
|
import type { RegistryProjectType } from './constants';
|
|
6
4
|
export interface RegistryProject {
|
|
7
5
|
id: string;
|
|
@@ -21,8 +19,4 @@ export interface RegistryProject {
|
|
|
21
19
|
created_at: Date;
|
|
22
20
|
updated_at: Date;
|
|
23
21
|
}
|
|
24
|
-
export type RegistryProjectEventContext = DomainEventBaseContext & {
|
|
25
|
-
type: `${DomainType.REGISTRY_PROJECT}`;
|
|
26
|
-
data: RegistryProject;
|
|
27
|
-
};
|
|
28
22
|
//# sourceMappingURL=entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/registry-project/entity.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/domains/registry-project/entity.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,WAAW,eAAe;IAC5B,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,EAAE,GAAG,mBAAmB,EAAE,CAAC;IAE/B,MAAM,EAAE,OAAO,CAAC;IAKhB,aAAa,EAAE,MAAM,CAAC;IAEtB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAI3B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,cAAc,EAAE,MAAM,GAAG,IAAI,CAAC;IAI9B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,cAAc,EAAE,OAAO,GAAG,IAAI,CAAC;IAI/B,WAAW,EAAE,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE5B,QAAQ,EAAE,QAAQ,CAAC;IAInB,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAI7B,UAAU,EAAE,IAAI,CAAC;IAEjB,UAAU,EAAE,IAAI,CAAC;CACpB"}
|
package/dist/domains/types.d.ts
CHANGED
|
@@ -1,20 +1,48 @@
|
|
|
1
|
-
import type { AnalysisBucket
|
|
1
|
+
import type { AnalysisBucket } from './analysis-bucket';
|
|
2
2
|
import type { DomainEventName, DomainEventSubscriptionName, DomainSubType, DomainType } from './constants';
|
|
3
|
-
import type { MasterImage
|
|
4
|
-
import type {
|
|
5
|
-
import type {
|
|
6
|
-
import type {
|
|
7
|
-
import type {
|
|
8
|
-
import type {
|
|
9
|
-
import type {
|
|
10
|
-
import type {
|
|
11
|
-
import type {
|
|
12
|
-
import type {
|
|
13
|
-
import type {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
3
|
+
import type { MasterImage } from './master-image';
|
|
4
|
+
import type { MasterImageEventLog } from './master-image-event-log';
|
|
5
|
+
import type { MasterImageGroup } from './master-image-group';
|
|
6
|
+
import type { Project } from './project';
|
|
7
|
+
import type { ProjectNode } from './project-node';
|
|
8
|
+
import type { Registry } from './registry';
|
|
9
|
+
import type { RegistryProject } from './registry-project';
|
|
10
|
+
import type { Node } from './node';
|
|
11
|
+
import type { Analysis } from './analysis';
|
|
12
|
+
import type { AnalysisBucketFile } from './analysis-bucket-file';
|
|
13
|
+
import type { AnalysisLog } from './analysis-log';
|
|
14
|
+
import type { AnalysisNode } from './analysis-node';
|
|
15
|
+
type DomainTypeMapRaw = {
|
|
16
|
+
[DomainType.MASTER_IMAGE]: MasterImage;
|
|
17
|
+
[DomainType.MASTER_IMAGE_EVENT_LOG]: MasterImageEventLog;
|
|
18
|
+
[DomainType.MASTER_IMAGE_GROUP]: MasterImageGroup;
|
|
19
|
+
[DomainType.PROJECT]: Project;
|
|
20
|
+
[DomainType.PROJECT_NODE]: ProjectNode;
|
|
21
|
+
[DomainSubType.PROJECT_NODE_IN]: ProjectNode;
|
|
22
|
+
[DomainSubType.PROJECT_NODE_OUT]: ProjectNode;
|
|
23
|
+
[DomainType.REGISTRY]: Registry;
|
|
24
|
+
[DomainType.REGISTRY_PROJECT]: RegistryProject;
|
|
25
|
+
[DomainType.NODE]: Node;
|
|
26
|
+
[DomainType.ANALYSIS]: Analysis;
|
|
27
|
+
[DomainType.ANALYSIS_BUCKET]: AnalysisBucket;
|
|
28
|
+
[DomainType.ANALYSIS_BUCKET_FILE]: AnalysisBucketFile;
|
|
29
|
+
[DomainType.ANALYSIS_LOG]: AnalysisLog;
|
|
30
|
+
[DomainType.ANALYSIS_NODE]: AnalysisNode;
|
|
31
|
+
[DomainSubType.ANALYSIS_NODE_IN]: AnalysisNode;
|
|
32
|
+
[DomainSubType.ANALYSIS_NODE_OUT]: AnalysisNode;
|
|
33
|
+
};
|
|
34
|
+
export type DomainTypeMap = {
|
|
35
|
+
[K in keyof DomainTypeMapRaw as `${K}`]: DomainTypeMapRaw[K];
|
|
36
|
+
};
|
|
37
|
+
export type EventRecord<T extends string, D extends Record<string, any>> = {
|
|
38
|
+
type: T;
|
|
39
|
+
data: D;
|
|
40
|
+
event: `${DomainEventName}`;
|
|
41
|
+
};
|
|
42
|
+
export type DomainsEvents = {
|
|
43
|
+
[T in keyof DomainTypeMap]: EventRecord<T, DomainTypeMap[T]>;
|
|
44
|
+
}[keyof DomainTypeMap];
|
|
45
|
+
export type DomainEventFullName<T extends string> = `${T}${Capitalize<`${DomainEventName}`>}`;
|
|
46
|
+
export type DomainEventSubscriptionFullName<T extends string> = `${T}${Capitalize<`${DomainEventSubscriptionName}`>}`;
|
|
47
|
+
export {};
|
|
20
48
|
//# sourceMappingURL=types.d.ts.map
|