@privateaim/core-kit 0.6.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.
Files changed (191) hide show
  1. package/CHANGELOG.md +125 -0
  2. package/LICENSE +202 -0
  3. package/README.md +5 -0
  4. package/dist/constants.d.ts +6 -0
  5. package/dist/constants.d.ts.map +1 -0
  6. package/dist/domains/analysis/constants.d.ts +47 -0
  7. package/dist/domains/analysis/constants.d.ts.map +1 -0
  8. package/dist/domains/analysis/entity.d.ts +30 -0
  9. package/dist/domains/analysis/entity.d.ts.map +1 -0
  10. package/dist/domains/analysis/index.d.ts +3 -0
  11. package/dist/domains/analysis/index.d.ts.map +1 -0
  12. package/dist/domains/analysis-bucket/constants.d.ts +6 -0
  13. package/dist/domains/analysis-bucket/constants.d.ts.map +1 -0
  14. package/dist/domains/analysis-bucket/entity.d.ts +20 -0
  15. package/dist/domains/analysis-bucket/entity.d.ts.map +1 -0
  16. package/dist/domains/analysis-bucket/index.d.ts +4 -0
  17. package/dist/domains/analysis-bucket/index.d.ts.map +1 -0
  18. package/dist/domains/analysis-bucket/utils.d.ts +4 -0
  19. package/dist/domains/analysis-bucket/utils.d.ts.map +1 -0
  20. package/dist/domains/analysis-bucket-file/entity.d.ts +25 -0
  21. package/dist/domains/analysis-bucket-file/entity.d.ts.map +1 -0
  22. package/dist/domains/analysis-bucket-file/index.d.ts +2 -0
  23. package/dist/domains/analysis-bucket-file/index.d.ts.map +1 -0
  24. package/dist/domains/analysis-log/entity.d.ts +50 -0
  25. package/dist/domains/analysis-log/entity.d.ts.map +1 -0
  26. package/dist/domains/analysis-log/index.d.ts +2 -0
  27. package/dist/domains/analysis-log/index.d.ts.map +1 -0
  28. package/dist/domains/analysis-node/constants.d.ts +20 -0
  29. package/dist/domains/analysis-node/constants.d.ts.map +1 -0
  30. package/dist/domains/analysis-node/entity.d.ts +35 -0
  31. package/dist/domains/analysis-node/entity.d.ts.map +1 -0
  32. package/dist/domains/analysis-node/index.d.ts +3 -0
  33. package/dist/domains/analysis-node/index.d.ts.map +1 -0
  34. package/dist/domains/constants.d.ts +31 -0
  35. package/dist/domains/constants.d.ts.map +1 -0
  36. package/dist/domains/index.d.ts +20 -0
  37. package/dist/domains/index.d.ts.map +1 -0
  38. package/dist/domains/master-image/constants.d.ts +8 -0
  39. package/dist/domains/master-image/constants.d.ts.map +1 -0
  40. package/dist/domains/master-image/entity.d.ts +18 -0
  41. package/dist/domains/master-image/entity.d.ts.map +1 -0
  42. package/dist/domains/master-image/index.d.ts +3 -0
  43. package/dist/domains/master-image/index.d.ts.map +1 -0
  44. package/dist/domains/master-image-group/entity.d.ts +17 -0
  45. package/dist/domains/master-image-group/entity.d.ts.map +1 -0
  46. package/dist/domains/master-image-group/index.d.ts +2 -0
  47. package/dist/domains/master-image-group/index.d.ts.map +1 -0
  48. package/dist/domains/node/constants.d.ts +15 -0
  49. package/dist/domains/node/constants.d.ts.map +1 -0
  50. package/dist/domains/node/entity.d.ts +27 -0
  51. package/dist/domains/node/entity.d.ts.map +1 -0
  52. package/dist/domains/node/index.d.ts +3 -0
  53. package/dist/domains/node/index.d.ts.map +1 -0
  54. package/dist/domains/permission/constants.d.ts +88 -0
  55. package/dist/domains/permission/constants.d.ts.map +1 -0
  56. package/dist/domains/permission/index.d.ts +2 -0
  57. package/dist/domains/permission/index.d.ts.map +1 -0
  58. package/dist/domains/project/entity.d.ts +20 -0
  59. package/dist/domains/project/entity.d.ts.map +1 -0
  60. package/dist/domains/project/index.d.ts +2 -0
  61. package/dist/domains/project/index.d.ts.map +1 -0
  62. package/dist/domains/project-node/constants.d.ts +9 -0
  63. package/dist/domains/project-node/constants.d.ts.map +1 -0
  64. package/dist/domains/project-node/entity.d.ts +24 -0
  65. package/dist/domains/project-node/entity.d.ts.map +1 -0
  66. package/dist/domains/project-node/index.d.ts +3 -0
  67. package/dist/domains/project-node/index.d.ts.map +1 -0
  68. package/dist/domains/realm/index.d.ts +2 -0
  69. package/dist/domains/realm/index.d.ts.map +1 -0
  70. package/dist/domains/realm/socket.d.ts +4 -0
  71. package/dist/domains/realm/socket.d.ts.map +1 -0
  72. package/dist/domains/registry/constants.d.ts +2 -0
  73. package/dist/domains/registry/constants.d.ts.map +1 -0
  74. package/dist/domains/registry/entity.d.ts +16 -0
  75. package/dist/domains/registry/entity.d.ts.map +1 -0
  76. package/dist/domains/registry/index.d.ts +4 -0
  77. package/dist/domains/registry/index.d.ts.map +1 -0
  78. package/dist/domains/registry/utils.d.ts +3 -0
  79. package/dist/domains/registry/utils.d.ts.map +1 -0
  80. package/dist/domains/registry-project/constants.d.ts +9 -0
  81. package/dist/domains/registry-project/constants.d.ts.map +1 -0
  82. package/dist/domains/registry-project/entity.d.ts +28 -0
  83. package/dist/domains/registry-project/entity.d.ts.map +1 -0
  84. package/dist/domains/registry-project/index.d.ts +5 -0
  85. package/dist/domains/registry-project/index.d.ts.map +1 -0
  86. package/dist/domains/registry-project/socket.d.ts +3 -0
  87. package/dist/domains/registry-project/socket.d.ts.map +1 -0
  88. package/dist/domains/registry-project/utils.d.ts +2 -0
  89. package/dist/domains/registry-project/utils.d.ts.map +1 -0
  90. package/dist/domains/service/constants.d.ts +5 -0
  91. package/dist/domains/service/constants.d.ts.map +1 -0
  92. package/dist/domains/service/index.d.ts +5 -0
  93. package/dist/domains/service/index.d.ts.map +1 -0
  94. package/dist/domains/service/registry/constants.d.ts +28 -0
  95. package/dist/domains/service/registry/constants.d.ts.map +1 -0
  96. package/dist/domains/service/registry/index.d.ts +2 -0
  97. package/dist/domains/service/registry/index.d.ts.map +1 -0
  98. package/dist/domains/service/secret-engine/constants.d.ts +7 -0
  99. package/dist/domains/service/secret-engine/constants.d.ts.map +1 -0
  100. package/dist/domains/service/secret-engine/index.d.ts +3 -0
  101. package/dist/domains/service/secret-engine/index.d.ts.map +1 -0
  102. package/dist/domains/service/secret-engine/type.d.ts +3 -0
  103. package/dist/domains/service/secret-engine/type.d.ts.map +1 -0
  104. package/dist/domains/service/station-registry/constants.d.ts +4 -0
  105. package/dist/domains/service/station-registry/constants.d.ts.map +1 -0
  106. package/dist/domains/service/station-registry/index.d.ts +2 -0
  107. package/dist/domains/service/station-registry/index.d.ts.map +1 -0
  108. package/dist/domains/types-base.d.ts +11 -0
  109. package/dist/domains/types-base.d.ts.map +1 -0
  110. package/dist/domains/types.d.ts +20 -0
  111. package/dist/domains/types.d.ts.map +1 -0
  112. package/dist/domains/utils.d.ts +7 -0
  113. package/dist/domains/utils.d.ts.map +1 -0
  114. package/dist/error/constants.d.ts +4 -0
  115. package/dist/error/constants.d.ts.map +1 -0
  116. package/dist/error/entities/connection-string.d.ts +5 -0
  117. package/dist/error/entities/connection-string.d.ts.map +1 -0
  118. package/dist/error/entities/index.d.ts +2 -0
  119. package/dist/error/entities/index.d.ts.map +1 -0
  120. package/dist/error/index.d.ts +3 -0
  121. package/dist/error/index.d.ts.map +1 -0
  122. package/dist/index.cjs +488 -0
  123. package/dist/index.cjs.map +1 -0
  124. package/dist/index.d.ts +4 -0
  125. package/dist/index.d.ts.map +1 -0
  126. package/dist/index.mjs +469 -0
  127. package/dist/index.mjs.map +1 -0
  128. package/package.json +40 -0
  129. package/rollup.config.mjs +19 -0
  130. package/src/constants.ts +12 -0
  131. package/src/domains/analysis/constants.ts +78 -0
  132. package/src/domains/analysis/entity.ts +72 -0
  133. package/src/domains/analysis/index.ts +9 -0
  134. package/src/domains/analysis-bucket/constants.ts +12 -0
  135. package/src/domains/analysis-bucket/entity.ts +41 -0
  136. package/src/domains/analysis-bucket/index.ts +10 -0
  137. package/src/domains/analysis-bucket/utils.ts +28 -0
  138. package/src/domains/analysis-bucket-file/entity.ts +55 -0
  139. package/src/domains/analysis-bucket-file/index.ts +8 -0
  140. package/src/domains/analysis-log/entity.ts +78 -0
  141. package/src/domains/analysis-log/index.ts +8 -0
  142. package/src/domains/analysis-node/constants.ts +33 -0
  143. package/src/domains/analysis-node/entity.ts +65 -0
  144. package/src/domains/analysis-node/index.ts +9 -0
  145. package/src/domains/constants.ts +40 -0
  146. package/src/domains/index.ts +26 -0
  147. package/src/domains/master-image/constants.ts +15 -0
  148. package/src/domains/master-image/entity.ts +36 -0
  149. package/src/domains/master-image/index.ts +8 -0
  150. package/src/domains/master-image-group/entity.ts +34 -0
  151. package/src/domains/master-image-group/index.ts +7 -0
  152. package/src/domains/node/constants.ts +23 -0
  153. package/src/domains/node/entity.ts +56 -0
  154. package/src/domains/node/index.ts +9 -0
  155. package/src/domains/permission/constants.ts +46 -0
  156. package/src/domains/permission/index.ts +8 -0
  157. package/src/domains/project/entity.ts +40 -0
  158. package/src/domains/project/index.ts +8 -0
  159. package/src/domains/project-node/constants.ts +16 -0
  160. package/src/domains/project-node/entity.ts +46 -0
  161. package/src/domains/project-node/index.ts +9 -0
  162. package/src/domains/realm/index.ts +8 -0
  163. package/src/domains/realm/socket.ts +18 -0
  164. package/src/domains/registry/constants.ts +8 -0
  165. package/src/domains/registry/entity.ts +34 -0
  166. package/src/domains/registry/index.ts +10 -0
  167. package/src/domains/registry/utils.ts +15 -0
  168. package/src/domains/registry-project/constants.ts +15 -0
  169. package/src/domains/registry-project/entity.ts +64 -0
  170. package/src/domains/registry-project/index.ts +11 -0
  171. package/src/domains/registry-project/socket.ts +12 -0
  172. package/src/domains/registry-project/utils.ts +12 -0
  173. package/src/domains/service/constants.ts +14 -0
  174. package/src/domains/service/index.ts +11 -0
  175. package/src/domains/service/registry/constants.ts +40 -0
  176. package/src/domains/service/registry/index.ts +8 -0
  177. package/src/domains/service/secret-engine/constants.ts +14 -0
  178. package/src/domains/service/secret-engine/index.ts +9 -0
  179. package/src/domains/service/secret-engine/type.ts +10 -0
  180. package/src/domains/service/station-registry/constants.ts +10 -0
  181. package/src/domains/service/station-registry/index.ts +8 -0
  182. package/src/domains/types-base.ts +21 -0
  183. package/src/domains/types.ts +98 -0
  184. package/src/domains/utils.ts +41 -0
  185. package/src/error/constants.ts +10 -0
  186. package/src/error/entities/connection-string.ts +26 -0
  187. package/src/error/entities/index.ts +8 -0
  188. package/src/error/index.ts +9 -0
  189. package/src/index.ts +10 -0
  190. package/tsconfig.build.json +11 -0
  191. package/tsconfig.json +10 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,125 @@
1
+ # Changelog
2
+
3
+ ## [0.6.0](https://github.com/PrivateAIM/hub/compare/core-kit-v0.5.0...core-kit-v0.6.0) (2024-06-25)
4
+
5
+
6
+ ### Features
7
+
8
+ * initial core -> core-kit package renaming ([9ac9709](https://github.com/PrivateAIM/hub/commit/9ac970999922bc76e3f88381f4d3351a51147a46))
9
+ * migrated to authup version v1.0.0-beta.18 ([06928f6](https://github.com/PrivateAIM/hub/commit/06928f681120b423f962a7869f8f6b12708d3047))
10
+
11
+
12
+ ### Dependencies
13
+
14
+ * The following workspace dependencies were updated
15
+ * devDependencies
16
+ * @privateaim/kit bumped from ^0.5.0 to ^0.6.0
17
+ * peerDependencies
18
+ * @privateaim/kit bumped from ^0.5.0 to ^0.6.0
19
+
20
+ ## [0.5.0](https://github.com/PrivateAIM/hub/compare/core-v0.4.0...core-v0.5.0) (2024-06-12)
21
+
22
+
23
+ ### Features
24
+
25
+ * analysis-bucket implementation ([#433](https://github.com/PrivateAIM/hub/issues/433)) ([15329f4](https://github.com/PrivateAIM/hub/commit/15329f42c5f6ebbe4772715ff2e308e41ae9e91a))
26
+ * extract utils and common consts, fns, ... to kit package ([258bbb2](https://github.com/PrivateAIM/hub/commit/258bbb21bfbf671a7cfad3e91740a1737eaf3f71))
27
+ * initial implementation & usage refactoring ([#426](https://github.com/PrivateAIM/hub/issues/426)) ([85ff83f](https://github.com/PrivateAIM/hub/commit/85ff83f40dc129f7f1e28b41f445f60bb6d6fcfe))
28
+ * server-http-kit package with validation, authup & request utils/helpers ([#375](https://github.com/PrivateAIM/hub/issues/375)) ([7762a2f](https://github.com/PrivateAIM/hub/commit/7762a2f81ea8dfcd77fc8c7f8d64bb91ad2bcd4f))
29
+ * split core package in core & core-http-kit ([#422](https://github.com/PrivateAIM/hub/issues/422)) ([666a4fe](https://github.com/PrivateAIM/hub/commit/666a4feda4a5491d6752325bcb93155b84747171))
30
+
31
+
32
+ ### Dependencies
33
+
34
+ * The following workspace dependencies were updated
35
+ * devDependencies
36
+ * @privateaim/kit bumped from ^0.4.0 to ^0.5.0
37
+ * peerDependencies
38
+ * @privateaim/kit bumped from ^0.4.0 to ^0.5.0
39
+
40
+ ## [0.4.0](https://github.com/PrivateAIM/hub/compare/core-v0.4.0...core-v0.4.0) (2024-06-12)
41
+
42
+
43
+ ### Features
44
+
45
+ * analysis-bucket implementation ([#433](https://github.com/PrivateAIM/hub/issues/433)) ([15329f4](https://github.com/PrivateAIM/hub/commit/15329f42c5f6ebbe4772715ff2e308e41ae9e91a))
46
+ * extract utils and common consts, fns, ... to kit package ([258bbb2](https://github.com/PrivateAIM/hub/commit/258bbb21bfbf671a7cfad3e91740a1737eaf3f71))
47
+ * initial implementation & usage refactoring ([#426](https://github.com/PrivateAIM/hub/issues/426)) ([85ff83f](https://github.com/PrivateAIM/hub/commit/85ff83f40dc129f7f1e28b41f445f60bb6d6fcfe))
48
+ * server-http-kit package with validation, authup & request utils/helpers ([#375](https://github.com/PrivateAIM/hub/issues/375)) ([7762a2f](https://github.com/PrivateAIM/hub/commit/7762a2f81ea8dfcd77fc8c7f8d64bb91ad2bcd4f))
49
+ * split core package in core & core-http-kit ([#422](https://github.com/PrivateAIM/hub/issues/422)) ([666a4fe](https://github.com/PrivateAIM/hub/commit/666a4feda4a5491d6752325bcb93155b84747171))
50
+
51
+ ## [0.4.0](https://github.com/PrivateAIM/hub/compare/core-v0.3.0...core-v0.4.0) (2024-05-15)
52
+
53
+
54
+ ### Features
55
+
56
+ * adjusted permission names ([3f5e863](https://github.com/PrivateAIM/hub/commit/3f5e8637937f52c73280fe911dd5c150d446da4f))
57
+ * refactor analysis configuration ([#200](https://github.com/PrivateAIM/hub/issues/200)) ([e7bfc3f](https://github.com/PrivateAIM/hub/commit/e7bfc3f23d5b9ce6fc6d9e8d0a144fe54ea03335))
58
+ * refactor analysis file management ([#176](https://github.com/PrivateAIM/hub/issues/176)) ([0ea979a](https://github.com/PrivateAIM/hub/commit/0ea979a2eed3cb557e82c6c96f83b367b0f89f0f))
59
+ * reimplemented client socket management + adjusted vue plugin ([c040ee4](https://github.com/PrivateAIM/hub/commit/c040ee46a4822330835a2d36be348c937de96660))
60
+ * simplified and refactored client-vue installation & integration ([0532d16](https://github.com/PrivateAIM/hub/commit/0532d16c5bd329f3fc82239c5b06327923b6c56b))
61
+ * simplified authentication & authorization management ([0b19929](https://github.com/PrivateAIM/hub/commit/0b199297766780a4c5cfcd8eda02cefb9f226958))
62
+ * updated authup, vuecs & ilingo ([66a5f7b](https://github.com/PrivateAIM/hub/commit/66a5f7ba1454fc5e432cd687a509ebf3bf4c4ab4))
63
+ * view for downloading results + refactored entities/types ([#188](https://github.com/PrivateAIM/hub/issues/188)) ([084040e](https://github.com/PrivateAIM/hub/commit/084040eec1e74b10ec40c577d5f8e3a5fcedf250))
64
+
65
+
66
+ ### Bug Fixes
67
+
68
+ * creating docker file for analysis ([240c42a](https://github.com/PrivateAIM/hub/commit/240c42af81ebc4f51cf27abb37d62c5d0154d16e))
69
+ * **deps:** bump @authup/core from 1.0.0-beta.7 to 1.0.0-beta.8 ([#210](https://github.com/PrivateAIM/hub/issues/210)) ([6e8adf2](https://github.com/PrivateAIM/hub/commit/6e8adf2c80dba69eb66a76250e1fc1acc1bb71dd))
70
+ * **deps:** bump @authup/core from 1.0.0-beta.8 to 1.0.0-beta.9 ([#277](https://github.com/PrivateAIM/hub/issues/277)) ([f9a8f59](https://github.com/PrivateAIM/hub/commit/f9a8f59a60990f8ffe6da044c18150a56f2e196c))
71
+ * **deps:** bump hapic from 2.5.0 to 2.5.1 ([#214](https://github.com/PrivateAIM/hub/issues/214)) ([eb3e30c](https://github.com/PrivateAIM/hub/commit/eb3e30c6cf3fb81d30ef9b2c802698a5818505a2))
72
+ * minor issues in client components & applied linting rules ([b88e168](https://github.com/PrivateAIM/hub/commit/b88e168e0bf3f93e01887f91e9fdff7fe621aafd))
73
+ * realtime socket connection ([6f6102c](https://github.com/PrivateAIM/hub/commit/6f6102cd7508d10ffc0a18a44d5e1241f1c5a444))
74
+ * transform service ids to lower case ([484ebb6](https://github.com/PrivateAIM/hub/commit/484ebb650f9e2ab0efc38771332a84bd4c578988))
75
+
76
+ ## [0.3.0](https://github.com/PrivateAIM/hub/compare/core-v0.2.0...core-v0.3.0) (2024-03-11)
77
+
78
+
79
+ ### Features
80
+
81
+ * initial user interface draft ([#148](https://github.com/PrivateAIM/hub/issues/148)) ([600a3cf](https://github.com/PrivateAIM/hub/commit/600a3cf3ad42ca60a610eb2eb3d1a912c42bd12f))
82
+ * minor cleanup in vue components ([8753567](https://github.com/PrivateAIM/hub/commit/8753567023992d2b4bbf6efcc2468ee06fd31604))
83
+ * refactor analysis-file for new context ([#144](https://github.com/PrivateAIM/hub/issues/144)) ([6a6383c](https://github.com/PrivateAIM/hub/commit/6a6383cf5d920463626f9d6d4798d59597e31d88))
84
+
85
+
86
+ ### Bug Fixes
87
+
88
+ * **deps:** bump @authup/core from 1.0.0-beta.5 to 1.0.0-beta.7 ([#155](https://github.com/PrivateAIM/hub/issues/155)) ([e0da3b4](https://github.com/PrivateAIM/hub/commit/e0da3b4ccabc30e8871cd01f373f3437a0f1928a))
89
+
90
+ ## [0.2.0](https://github.com/PrivateAIM/hub/compare/core-v0.1.0...core-v0.2.0) (2024-02-28)
91
+
92
+
93
+ ### Features
94
+
95
+ * bump authup to v1.0.0-beta.5 ([13aeab2](https://github.com/PrivateAIM/hub/commit/13aeab2eb8a00069512eee17fc129d56a58309bc))
96
+ * initialize storage service (database, config, entities, controllers) ([#97](https://github.com/PrivateAIM/hub/issues/97)) ([7c19d31](https://github.com/PrivateAIM/hub/commit/7c19d3126a4c5ff2acfa007226aba8104d380a14))
97
+
98
+
99
+ ### Bug Fixes
100
+
101
+ * remove minio driver from core service ([affb432](https://github.com/PrivateAIM/hub/commit/affb4326e407d185d98575c5aa9d8b6ec8bce172))
102
+ * uri in project-node api client & fixed docker-compose ([5fe5091](https://github.com/PrivateAIM/hub/commit/5fe509118ece00fd2b4ffccd7493a7400ca615f1))
103
+
104
+ ## 0.1.0 (2024-02-19)
105
+
106
+
107
+ ### Features
108
+
109
+ * add node type- & online-attribute ([c92a00e](https://github.com/PrivateAIM/hub/commit/c92a00ecce27b57b1ad7834ebe826bce94f3c48b))
110
+ * events for receiving user/robot connection count ([25e60d7](https://github.com/PrivateAIM/hub/commit/25e60d77ab0b3a6b4d598363b6563563e1dab7e6))
111
+ * implemented custom node socket events (connect,disconnect,message,...) ([083a3e2](https://github.com/PrivateAIM/hub/commit/083a3e2d81e08829147ac2b72d1fd029896d55bb))
112
+ * initial refactor of server api domains ([5cb5eb8](https://github.com/PrivateAIM/hub/commit/5cb5eb8b649cad3691945bba4a3e1bc759ff0a75))
113
+ * initial version of analysis service ([f420cd1](https://github.com/PrivateAIM/hub/commit/f420cd185441ed2e9e4ef8e12992add68a90dd4f))
114
+ * namespace separation + socket connection management (ink. subscription etc.) ([1dcb083](https://github.com/PrivateAIM/hub/commit/1dcb083962ace1b021b20855c45304e1be40c051))
115
+ * refactor third-party configuration ([#26](https://github.com/PrivateAIM/hub/issues/26)) ([c5e929c](https://github.com/PrivateAIM/hub/commit/c5e929cd8fc2741436001c59a983a64da3f427c6))
116
+ * reference robot on node + socket handlers for socket (un-)registration ([d382e66](https://github.com/PrivateAIM/hub/commit/d382e662ab0e558b4abdc1d8a59794e936644a54))
117
+ * remove ecosystem buisness logic & intial controller renaming ([650dfde](https://github.com/PrivateAIM/hub/commit/650dfdec81a8611f5011dd18861fab30771c5289))
118
+ * remove station-registry buisness logic ([859ccd7](https://github.com/PrivateAIM/hub/commit/859ccd774983dbc2983b57f2dc9e1eab6924c727))
119
+
120
+
121
+ ### Bug Fixes
122
+
123
+ * **deps:** bump @authup/core from 1.0.0-beta.1 to 1.0.0-beta.3 ([#53](https://github.com/PrivateAIM/hub/issues/53)) ([95df3be](https://github.com/PrivateAIM/hub/commit/95df3be641bed869a10f69bcb3065eb36ada178e))
124
+ * **deps:** bump @authup/core from 1.0.0-beta.3 to 1.0.0-beta.4 ([#92](https://github.com/PrivateAIM/hub/issues/92)) ([b950c83](https://github.com/PrivateAIM/hub/commit/b950c838b0de3e647452145182f906472af2fd12))
125
+ * renamed remaining http sub client properties ([001242b](https://github.com/PrivateAIM/hub/commit/001242b19d9a3df725711dba7c81f19f6a803495))
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2024 PrivateAIM
190
+ Copyright 2020 - 2023 Peter Placzek
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,5 @@
1
+ # Central - Common 🧱
2
+
3
+ [![npm version](https://badge.fury.io/js/@personalhealthtrain%2Fcentral-common.svg)](https://badge.fury.io/js/@personalhealthtrain%2Fcentral-common)
4
+
5
+ This repository contains common constants, functions, types, ...
@@ -0,0 +1,6 @@
1
+ export declare enum EnvironmentName {
2
+ TEST = "test",
3
+ DEVELOPMENT = "development",
4
+ PRODUCTION = "production"
5
+ }
6
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAOA,oBAAY,eAAe;IACvB,IAAI,SAAS;IACb,WAAW,gBAAgB;IAC3B,UAAU,eAAe;CAC5B"}
@@ -0,0 +1,47 @@
1
+ export declare enum AnalysisBuildStatus {
2
+ STARTING = "starting",// ui trigger
3
+ STARTED = "started",// tb trigger
4
+ STOPPING = "stopping",// ui trigger
5
+ STOPPED = "stopped",// tb trigger
6
+ FINISHED = "finished",// tb trigger
7
+ FAILED = "failed"
8
+ }
9
+ export declare enum AnalysisConfigurationStatus {
10
+ BASE_CONFIGURED = "base",
11
+ SECURITY_CONFIGURED = "security_configured",// todo: still relevant ?
12
+ RESOURCE_CONFIGURED = "resource_configured",
13
+ HASH_GENERATED = "hash_generated",// todo: still relevant ?
14
+ HASH_SIGNED = "hash_signed",// todo: signed by xyz
15
+ FINISHED = "finished"
16
+ }
17
+ export declare enum AnalysisRunStatus {
18
+ STARTING = "starting",
19
+ STARTED = "started",
20
+ RUNNING = "running",
21
+ STOPPING = "stopping",
22
+ STOPPED = "stopped",
23
+ FINISHED = "finished",
24
+ FAILED = "failed"
25
+ }
26
+ export declare enum AnalysisResultStatus {
27
+ STARTED = "started",
28
+ DOWNLOADING = "downloading",
29
+ DOWNLOADED = "downloaded",
30
+ PROCESSING = "extracting",
31
+ PROCESSED = "extracted",
32
+ FINISHED = "finished",
33
+ FAILED = "failed"
34
+ }
35
+ export declare enum AnalysisAPICommand {
36
+ SPIN_UP = "spinUp",
37
+ TEAR_DOWN = "tearDown",
38
+ BUILD_START = "buildStart",
39
+ BUILD_STOP = "buildStop",
40
+ BUILD_STATUS = "buildStatus",
41
+ CONFIGURATION_LOCK = "configurationLock",
42
+ CONFIGURATION_UNLOCK = "configurationUnlock"
43
+ }
44
+ export declare enum AnalysisContainerPath {
45
+ CODE = "/opt/code/"
46
+ }
47
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +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,eAAe,SAAS;IACxB,mBAAmB,wBAAwB,CAAE,yBAAyB;IACtE,mBAAmB,wBAAwB;IAC3C,cAAc,mBAAmB,CAAE,yBAAyB;IAC5D,WAAW,gBAAgB,CAAE,sBAAsB;IACnD,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"}
@@ -0,0 +1,30 @@
1
+ import type { Realm, User } from '@authup/core-kit';
2
+ import type { DomainType } from '../constants';
3
+ import type { MasterImage } from '../master-image';
4
+ import type { Project } from '../project';
5
+ import type { DomainEventBaseContext } from '../types-base';
6
+ import type { AnalysisBuildStatus, AnalysisRunStatus } from './constants';
7
+ import type { Registry } from '../registry';
8
+ export interface Analysis {
9
+ id: string;
10
+ name: string | null;
11
+ nodes: number;
12
+ configuration_locked: boolean;
13
+ build_status: AnalysisBuildStatus | null;
14
+ run_status: AnalysisRunStatus | null;
15
+ created_at: Date;
16
+ updated_at: Date;
17
+ registry: Registry;
18
+ registry_id: Registry['id'];
19
+ realm_id: Realm['id'];
20
+ user_id: User['id'];
21
+ project_id: Project['id'];
22
+ project: Project;
23
+ master_image_id: MasterImage['id'] | null;
24
+ master_image: MasterImage;
25
+ }
26
+ export type AnalysisEventContext = DomainEventBaseContext & {
27
+ type: `${DomainType.ANALYSIS}`;
28
+ data: Analysis;
29
+ };
30
+ //# sourceMappingURL=entity.d.ts.map
@@ -0,0 +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,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC1C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAC5D,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,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,eAAe,EAAE,WAAW,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAE1C,YAAY,EAAE,WAAW,CAAC;CAC7B;AAED,MAAM,MAAM,oBAAoB,GAAG,sBAAsB,GAAG;IACxD,IAAI,EAAE,GAAG,UAAU,CAAC,QAAQ,EAAE,CAAC;IAC/B,IAAI,EAAE,QAAQ,CAAA;CACjB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './entity';
2
+ export * from './constants';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +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"}
@@ -0,0 +1,6 @@
1
+ export declare enum AnalysisBucketType {
2
+ CODE = "CODE",
3
+ RESULT = "RESULT",
4
+ TEMP = "TEMP"
5
+ }
6
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/domains/analysis-bucket/constants.ts"],"names":[],"mappings":"AAOA,oBAAY,kBAAkB;IAC1B,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,IAAI,SAAS;CAChB"}
@@ -0,0 +1,20 @@
1
+ import type { Realm } from '@authup/core-kit';
2
+ import type { Analysis } from '../analysis';
3
+ import type { DomainType } from '../constants';
4
+ import type { DomainEventBaseContext } from '../types-base';
5
+ import type { AnalysisBucketType } from './constants';
6
+ export interface AnalysisBucket {
7
+ id: string;
8
+ type: `${AnalysisBucketType}`;
9
+ external_id: string | null;
10
+ created_at: Date;
11
+ updated_at: Date;
12
+ analysis_id: Analysis['id'];
13
+ analysis: Analysis;
14
+ realm_id: Realm['id'];
15
+ }
16
+ export type AnalysisBucketEventContext = DomainEventBaseContext & {
17
+ type: `${DomainType.ANALYSIS_BUCKET}`;
18
+ data: AnalysisBucket;
19
+ };
20
+ //# sourceMappingURL=entity.d.ts.map
@@ -0,0 +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,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAC5D,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;AAED,MAAM,MAAM,0BAA0B,GAAG,sBAAsB,GAAG;IAC9D,IAAI,EAAE,GAAG,UAAU,CAAC,eAAe,EAAE,CAAC;IACtC,IAAI,EAAE,cAAc,CAAA;CACvB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from './constants';
2
+ export * from './entity';
3
+ export * from './utils';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/analysis-bucket/index.ts"],"names":[],"mappings":"AAOA,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Analysis } from '../analysis';
2
+ import { AnalysisBucketType } from './constants';
3
+ export declare function buildAnalysisBucketName(type: `${AnalysisBucketType}`, id: Analysis['id']): string;
4
+ //# sourceMappingURL=utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/domains/analysis-bucket/utils.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD,wBAAgB,uBAAuB,CACnC,IAAI,EAAE,GAAG,kBAAkB,EAAE,EAC7B,EAAE,EAAE,QAAQ,CAAC,IAAI,CAAC,UAerB"}
@@ -0,0 +1,25 @@
1
+ import type { Realm, Robot, User } from '@authup/core-kit';
2
+ import type { AnalysisBucket } from '../analysis-bucket';
3
+ import type { DomainType } from '../constants';
4
+ import type { Analysis } from '../analysis';
5
+ import type { DomainEventBaseContext } from '../types-base';
6
+ export interface AnalysisBucketFile {
7
+ id: string;
8
+ name: string;
9
+ root: boolean;
10
+ created_at: Date;
11
+ updated_at: Date;
12
+ external_id: string;
13
+ bucket_id: AnalysisBucket['id'];
14
+ bucket: AnalysisBucket;
15
+ analysis_id: Analysis['id'];
16
+ analysis: Analysis;
17
+ realm_id: Realm['id'];
18
+ user_id: User['id'] | null;
19
+ robot_id: Robot['id'] | null;
20
+ }
21
+ export type AnalysisFileEventContext = DomainEventBaseContext & {
22
+ type: `${DomainType.ANALYSIS_BUCKET_FILE}`;
23
+ data: AnalysisBucketFile;
24
+ };
25
+ //# sourceMappingURL=entity.d.ts.map
@@ -0,0 +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,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAE5D,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;AAED,MAAM,MAAM,wBAAwB,GAAG,sBAAsB,GAAG;IAC5D,IAAI,EAAE,GAAG,UAAU,CAAC,oBAAoB,EAAE,CAAC;IAC3C,IAAI,EAAE,kBAAkB,CAAA;CAC3B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './entity';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/analysis-bucket-file/index.ts"],"names":[],"mappings":"AAOA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,50 @@
1
+ import type { Realm } from '@authup/core-kit';
2
+ import type { DomainType } from '../constants';
3
+ import type { Analysis } from '../analysis';
4
+ import type { DomainEventBaseContext } from '../types-base';
5
+ export interface AnalysisLog {
6
+ id: string;
7
+ /**
8
+ * e.g: building, routing, ...
9
+ */
10
+ component: string | null;
11
+ /**
12
+ * e.g: process, check, stop, ...
13
+ */
14
+ command: string | null;
15
+ /**
16
+ * e.g checking, checked
17
+ */
18
+ event: string | null;
19
+ /**
20
+ * e.g: init, ...
21
+ */
22
+ step: string | null;
23
+ error: boolean;
24
+ /**
25
+ * e.g: trainNotBuild, entrypointNotFound, ...
26
+ */
27
+ error_code: string | null;
28
+ /**
29
+ * e.g. started, finished, failed, ...
30
+ */
31
+ status: string | null;
32
+ /**
33
+ * e.g: error_message
34
+ */
35
+ status_message: string | null;
36
+ /**
37
+ * e.g: {station_id: xxx, station_index: 0}
38
+ */
39
+ meta: string | null;
40
+ created_at: Date;
41
+ updated_at: Date;
42
+ analysis_id: Analysis['id'];
43
+ analysis: Analysis;
44
+ realm_id: Realm['id'];
45
+ }
46
+ export type AnalysisLogEventContext = DomainEventBaseContext & {
47
+ type: `${DomainType.ANALYSIS_LOG}`;
48
+ data: AnalysisLog;
49
+ };
50
+ //# sourceMappingURL=entity.d.ts.map
@@ -0,0 +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,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EACR,QAAQ,EACX,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAE5D,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;AAED,MAAM,MAAM,uBAAuB,GAAG,sBAAsB,GAAG;IAC3D,IAAI,EAAE,GAAG,UAAU,CAAC,YAAY,EAAE,CAAC;IACnC,IAAI,EAAE,WAAW,CAAA;CACpB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './entity';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/domains/analysis-log/index.ts"],"names":[],"mappings":"AAOA,cAAc,UAAU,CAAC"}
@@ -0,0 +1,20 @@
1
+ export declare enum AnalysisNodeApprovalCommand {
2
+ APPROVE = "approve",
3
+ REJECT = "reject"
4
+ }
5
+ export declare enum AnalysisNodeApprovalStatus {
6
+ REJECTED = "rejected",
7
+ APPROVED = "approved"
8
+ }
9
+ export declare enum AnalysisNodeRunStatus {
10
+ ARRIVED = "arrived",
11
+ PULLED = "pulled",
12
+ PUSHED = "pushed",// todo: this won't happen anymore
13
+ DEPARTED = "departed",// todo: this won't happen anymore
14
+ FAILED = "failed"
15
+ }
16
+ export declare enum AnalysisNodeStatic {
17
+ INCOMING = "incoming",
18
+ OUTGOING = "outgoing"
19
+ }
20
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/domains/analysis-node/constants.ts"],"names":[],"mappings":"AAOA,oBAAY,2BAA2B;IACnC,OAAO,YAAY;IACnB,MAAM,WAAW;CACpB;AAED,oBAAY,0BAA0B;IAClC,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACxB;AAID,oBAAY,qBAAqB;IAC7B,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,MAAM,WAAW,CAAE,kCAAkC;IACrD,QAAQ,aAAa,CAAE,kCAAkC;IACzD,MAAM,WAAW;CACpB;AAID,oBAAY,kBAAkB;IAC1B,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACxB"}