@connexia/application 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. package/LICENSE +190 -0
  2. package/dist/commands/command-dispatcher.d.ts +10 -0
  3. package/dist/commands/command-dispatcher.d.ts.map +1 -0
  4. package/dist/commands/command-dispatcher.js +16 -0
  5. package/dist/commands/command-dispatcher.js.map +1 -0
  6. package/dist/commands/command-dispatcher.test.d.ts +2 -0
  7. package/dist/commands/command-dispatcher.test.d.ts.map +1 -0
  8. package/dist/commands/command-dispatcher.test.js +32 -0
  9. package/dist/commands/command-dispatcher.test.js.map +1 -0
  10. package/dist/commands/command.d.ts +18 -0
  11. package/dist/commands/command.d.ts.map +1 -0
  12. package/dist/commands/command.js +9 -0
  13. package/dist/commands/command.js.map +1 -0
  14. package/dist/commands/command.test.d.ts +2 -0
  15. package/dist/commands/command.test.d.ts.map +1 -0
  16. package/dist/commands/command.test.js +25 -0
  17. package/dist/commands/command.test.js.map +1 -0
  18. package/dist/context/application-context.d.ts +30 -0
  19. package/dist/context/application-context.d.ts.map +1 -0
  20. package/dist/context/application-context.js +15 -0
  21. package/dist/context/application-context.js.map +1 -0
  22. package/dist/context/application-context.test.d.ts +2 -0
  23. package/dist/context/application-context.test.d.ts.map +1 -0
  24. package/dist/context/application-context.test.js +36 -0
  25. package/dist/context/application-context.test.js.map +1 -0
  26. package/dist/contracts/contracts.d.ts +45 -0
  27. package/dist/contracts/contracts.d.ts.map +1 -0
  28. package/dist/contracts/contracts.js +2 -0
  29. package/dist/contracts/contracts.js.map +1 -0
  30. package/dist/errors/application-errors.d.ts +63 -0
  31. package/dist/errors/application-errors.d.ts.map +1 -0
  32. package/dist/errors/application-errors.js +22 -0
  33. package/dist/errors/application-errors.js.map +1 -0
  34. package/dist/events/domain-event-middleware.d.ts +16 -0
  35. package/dist/events/domain-event-middleware.d.ts.map +1 -0
  36. package/dist/events/domain-event-middleware.js +19 -0
  37. package/dist/events/domain-event-middleware.js.map +1 -0
  38. package/dist/handlers/handler-registry.d.ts +16 -0
  39. package/dist/handlers/handler-registry.d.ts.map +1 -0
  40. package/dist/handlers/handler-registry.js +29 -0
  41. package/dist/handlers/handler-registry.js.map +1 -0
  42. package/dist/handlers/handler-registry.test.d.ts +2 -0
  43. package/dist/handlers/handler-registry.test.d.ts.map +1 -0
  44. package/dist/handlers/handler-registry.test.js +33 -0
  45. package/dist/handlers/handler-registry.test.js.map +1 -0
  46. package/dist/idempotency/idempotency-middleware.d.ts +17 -0
  47. package/dist/idempotency/idempotency-middleware.d.ts.map +1 -0
  48. package/dist/idempotency/idempotency-middleware.js +33 -0
  49. package/dist/idempotency/idempotency-middleware.js.map +1 -0
  50. package/dist/index.d.ts +25 -0
  51. package/dist/index.d.ts.map +1 -0
  52. package/dist/index.js +17 -0
  53. package/dist/index.js.map +1 -0
  54. package/dist/infrastructure/event-adapter.d.ts +26 -0
  55. package/dist/infrastructure/event-adapter.d.ts.map +1 -0
  56. package/dist/infrastructure/event-adapter.js +35 -0
  57. package/dist/infrastructure/event-adapter.js.map +1 -0
  58. package/dist/infrastructure/event-publisher.d.ts +27 -0
  59. package/dist/infrastructure/event-publisher.d.ts.map +1 -0
  60. package/dist/infrastructure/event-publisher.js +79 -0
  61. package/dist/infrastructure/event-publisher.js.map +1 -0
  62. package/dist/infrastructure/execution-metrics.d.ts +15 -0
  63. package/dist/infrastructure/execution-metrics.d.ts.map +1 -0
  64. package/dist/infrastructure/execution-metrics.js +47 -0
  65. package/dist/infrastructure/execution-metrics.js.map +1 -0
  66. package/dist/infrastructure/idempotency-store.d.ts +24 -0
  67. package/dist/infrastructure/idempotency-store.d.ts.map +1 -0
  68. package/dist/infrastructure/idempotency-store.js +43 -0
  69. package/dist/infrastructure/idempotency-store.js.map +1 -0
  70. package/dist/infrastructure/index.d.ts +7 -0
  71. package/dist/infrastructure/index.d.ts.map +1 -0
  72. package/dist/infrastructure/index.js +7 -0
  73. package/dist/infrastructure/index.js.map +1 -0
  74. package/dist/infrastructure/infrastructure-config.d.ts +12 -0
  75. package/dist/infrastructure/infrastructure-config.d.ts.map +1 -0
  76. package/dist/infrastructure/infrastructure-config.js +22 -0
  77. package/dist/infrastructure/infrastructure-config.js.map +1 -0
  78. package/dist/infrastructure/transaction-manager.d.ts +6 -0
  79. package/dist/infrastructure/transaction-manager.d.ts.map +1 -0
  80. package/dist/infrastructure/transaction-manager.js +7 -0
  81. package/dist/infrastructure/transaction-manager.js.map +1 -0
  82. package/dist/pipeline/execution-pipeline.d.ts +10 -0
  83. package/dist/pipeline/execution-pipeline.d.ts.map +1 -0
  84. package/dist/pipeline/execution-pipeline.js +32 -0
  85. package/dist/pipeline/execution-pipeline.js.map +1 -0
  86. package/dist/pipeline/execution-pipeline.test.d.ts +2 -0
  87. package/dist/pipeline/execution-pipeline.test.d.ts.map +1 -0
  88. package/dist/pipeline/execution-pipeline.test.js +53 -0
  89. package/dist/pipeline/execution-pipeline.test.js.map +1 -0
  90. package/dist/queries/query-dispatcher.d.ts +10 -0
  91. package/dist/queries/query-dispatcher.d.ts.map +1 -0
  92. package/dist/queries/query-dispatcher.js +16 -0
  93. package/dist/queries/query-dispatcher.js.map +1 -0
  94. package/dist/queries/query-dispatcher.test.d.ts +2 -0
  95. package/dist/queries/query-dispatcher.test.d.ts.map +1 -0
  96. package/dist/queries/query-dispatcher.test.js +32 -0
  97. package/dist/queries/query-dispatcher.test.js.map +1 -0
  98. package/dist/queries/query.d.ts +18 -0
  99. package/dist/queries/query.d.ts.map +1 -0
  100. package/dist/queries/query.js +9 -0
  101. package/dist/queries/query.js.map +1 -0
  102. package/dist/results/execution-result.d.ts +18 -0
  103. package/dist/results/execution-result.d.ts.map +1 -0
  104. package/dist/results/execution-result.js +4 -0
  105. package/dist/results/execution-result.js.map +1 -0
  106. package/dist/runtime/application-runtime.d.ts +41 -0
  107. package/dist/runtime/application-runtime.d.ts.map +1 -0
  108. package/dist/runtime/application-runtime.js +135 -0
  109. package/dist/runtime/application-runtime.js.map +1 -0
  110. package/dist/runtime/application-runtime.test.d.ts +2 -0
  111. package/dist/runtime/application-runtime.test.d.ts.map +1 -0
  112. package/dist/runtime/application-runtime.test.js +91 -0
  113. package/dist/runtime/application-runtime.test.js.map +1 -0
  114. package/dist/shared/index.d.ts +12 -0
  115. package/dist/shared/index.d.ts.map +1 -0
  116. package/dist/shared/index.js +6 -0
  117. package/dist/shared/index.js.map +1 -0
  118. package/dist/transactions/transaction-middleware.d.ts +16 -0
  119. package/dist/transactions/transaction-middleware.d.ts.map +1 -0
  120. package/dist/transactions/transaction-middleware.js +26 -0
  121. package/dist/transactions/transaction-middleware.js.map +1 -0
  122. package/dist/usecases/audit/get-audit-event-count.d.ts +23 -0
  123. package/dist/usecases/audit/get-audit-event-count.d.ts.map +1 -0
  124. package/dist/usecases/audit/get-audit-event-count.js +19 -0
  125. package/dist/usecases/audit/get-audit-event-count.js.map +1 -0
  126. package/dist/usecases/audit/get-audit-events-by-resource.d.ts +33 -0
  127. package/dist/usecases/audit/get-audit-events-by-resource.d.ts.map +1 -0
  128. package/dist/usecases/audit/get-audit-events-by-resource.js +20 -0
  129. package/dist/usecases/audit/get-audit-events-by-resource.js.map +1 -0
  130. package/dist/usecases/audit/index.d.ts +4 -0
  131. package/dist/usecases/audit/index.d.ts.map +1 -0
  132. package/dist/usecases/audit/index.js +4 -0
  133. package/dist/usecases/audit/index.js.map +1 -0
  134. package/dist/usecases/audit/list-audit-events.d.ts +35 -0
  135. package/dist/usecases/audit/list-audit-events.d.ts.map +1 -0
  136. package/dist/usecases/audit/list-audit-events.js +20 -0
  137. package/dist/usecases/audit/list-audit-events.js.map +1 -0
  138. package/dist/usecases/build/cancel-build.d.ts +24 -0
  139. package/dist/usecases/build/cancel-build.d.ts.map +1 -0
  140. package/dist/usecases/build/cancel-build.js +19 -0
  141. package/dist/usecases/build/cancel-build.js.map +1 -0
  142. package/dist/usecases/build/get-build.d.ts +26 -0
  143. package/dist/usecases/build/get-build.d.ts.map +1 -0
  144. package/dist/usecases/build/get-build.js +19 -0
  145. package/dist/usecases/build/get-build.js.map +1 -0
  146. package/dist/usecases/build/index.d.ts +5 -0
  147. package/dist/usecases/build/index.d.ts.map +1 -0
  148. package/dist/usecases/build/index.js +5 -0
  149. package/dist/usecases/build/index.js.map +1 -0
  150. package/dist/usecases/build/list-builds.d.ts +32 -0
  151. package/dist/usecases/build/list-builds.d.ts.map +1 -0
  152. package/dist/usecases/build/list-builds.js +20 -0
  153. package/dist/usecases/build/list-builds.js.map +1 -0
  154. package/dist/usecases/build/trigger-build.d.ts +19 -0
  155. package/dist/usecases/build/trigger-build.d.ts.map +1 -0
  156. package/dist/usecases/build/trigger-build.js +19 -0
  157. package/dist/usecases/build/trigger-build.js.map +1 -0
  158. package/dist/usecases/deployment/create-deployment.d.ts +20 -0
  159. package/dist/usecases/deployment/create-deployment.d.ts.map +1 -0
  160. package/dist/usecases/deployment/create-deployment.js +19 -0
  161. package/dist/usecases/deployment/create-deployment.js.map +1 -0
  162. package/dist/usecases/deployment/get-deployment.d.ts +26 -0
  163. package/dist/usecases/deployment/get-deployment.d.ts.map +1 -0
  164. package/dist/usecases/deployment/get-deployment.js +19 -0
  165. package/dist/usecases/deployment/get-deployment.js.map +1 -0
  166. package/dist/usecases/deployment/index.d.ts +6 -0
  167. package/dist/usecases/deployment/index.d.ts.map +1 -0
  168. package/dist/usecases/deployment/index.js +6 -0
  169. package/dist/usecases/deployment/index.js.map +1 -0
  170. package/dist/usecases/deployment/list-deployments.d.ts +32 -0
  171. package/dist/usecases/deployment/list-deployments.d.ts.map +1 -0
  172. package/dist/usecases/deployment/list-deployments.js +20 -0
  173. package/dist/usecases/deployment/list-deployments.js.map +1 -0
  174. package/dist/usecases/deployment/promote-deployment.d.ts +26 -0
  175. package/dist/usecases/deployment/promote-deployment.d.ts.map +1 -0
  176. package/dist/usecases/deployment/promote-deployment.js +20 -0
  177. package/dist/usecases/deployment/promote-deployment.js.map +1 -0
  178. package/dist/usecases/deployment/rollback-deployment.d.ts +25 -0
  179. package/dist/usecases/deployment/rollback-deployment.d.ts.map +1 -0
  180. package/dist/usecases/deployment/rollback-deployment.js +20 -0
  181. package/dist/usecases/deployment/rollback-deployment.js.map +1 -0
  182. package/dist/usecases/environment/create-environment.d.ts +23 -0
  183. package/dist/usecases/environment/create-environment.d.ts.map +1 -0
  184. package/dist/usecases/environment/create-environment.js +19 -0
  185. package/dist/usecases/environment/create-environment.js.map +1 -0
  186. package/dist/usecases/environment/delete-environment.d.ts +23 -0
  187. package/dist/usecases/environment/delete-environment.d.ts.map +1 -0
  188. package/dist/usecases/environment/delete-environment.js +19 -0
  189. package/dist/usecases/environment/delete-environment.js.map +1 -0
  190. package/dist/usecases/environment/get-environment.d.ts +26 -0
  191. package/dist/usecases/environment/get-environment.d.ts.map +1 -0
  192. package/dist/usecases/environment/get-environment.js +19 -0
  193. package/dist/usecases/environment/get-environment.js.map +1 -0
  194. package/dist/usecases/environment/index.d.ts +6 -0
  195. package/dist/usecases/environment/index.d.ts.map +1 -0
  196. package/dist/usecases/environment/index.js +6 -0
  197. package/dist/usecases/environment/index.js.map +1 -0
  198. package/dist/usecases/environment/list-environments.d.ts +26 -0
  199. package/dist/usecases/environment/list-environments.d.ts.map +1 -0
  200. package/dist/usecases/environment/list-environments.js +22 -0
  201. package/dist/usecases/environment/list-environments.js.map +1 -0
  202. package/dist/usecases/environment/update-environment.d.ts +24 -0
  203. package/dist/usecases/environment/update-environment.d.ts.map +1 -0
  204. package/dist/usecases/environment/update-environment.js +19 -0
  205. package/dist/usecases/environment/update-environment.js.map +1 -0
  206. package/dist/usecases/index.d.ts +8 -0
  207. package/dist/usecases/index.d.ts.map +1 -0
  208. package/dist/usecases/index.js +8 -0
  209. package/dist/usecases/index.js.map +1 -0
  210. package/dist/usecases/organization/create-organization.d.ts +23 -0
  211. package/dist/usecases/organization/create-organization.d.ts.map +1 -0
  212. package/dist/usecases/organization/create-organization.js +19 -0
  213. package/dist/usecases/organization/create-organization.js.map +1 -0
  214. package/dist/usecases/organization/get-organization.d.ts +25 -0
  215. package/dist/usecases/organization/get-organization.d.ts.map +1 -0
  216. package/dist/usecases/organization/get-organization.js +19 -0
  217. package/dist/usecases/organization/get-organization.js.map +1 -0
  218. package/dist/usecases/organization/index.d.ts +4 -0
  219. package/dist/usecases/organization/index.d.ts.map +1 -0
  220. package/dist/usecases/organization/index.js +4 -0
  221. package/dist/usecases/organization/index.js.map +1 -0
  222. package/dist/usecases/organization/list-organizations.d.ts +27 -0
  223. package/dist/usecases/organization/list-organizations.d.ts.map +1 -0
  224. package/dist/usecases/organization/list-organizations.js +22 -0
  225. package/dist/usecases/organization/list-organizations.js.map +1 -0
  226. package/dist/usecases/project/create-project.d.ts +20 -0
  227. package/dist/usecases/project/create-project.d.ts.map +1 -0
  228. package/dist/usecases/project/create-project.js +19 -0
  229. package/dist/usecases/project/create-project.js.map +1 -0
  230. package/dist/usecases/project/get-project.d.ts +21 -0
  231. package/dist/usecases/project/get-project.d.ts.map +1 -0
  232. package/dist/usecases/project/get-project.js +19 -0
  233. package/dist/usecases/project/get-project.js.map +1 -0
  234. package/dist/usecases/project/index.d.ts +3 -0
  235. package/dist/usecases/project/index.d.ts.map +1 -0
  236. package/dist/usecases/project/index.js +3 -0
  237. package/dist/usecases/project/index.js.map +1 -0
  238. package/dist/usecases/secret/create-secret.d.ts +22 -0
  239. package/dist/usecases/secret/create-secret.d.ts.map +1 -0
  240. package/dist/usecases/secret/create-secret.js +19 -0
  241. package/dist/usecases/secret/create-secret.js.map +1 -0
  242. package/dist/usecases/secret/delete-secret.d.ts +23 -0
  243. package/dist/usecases/secret/delete-secret.d.ts.map +1 -0
  244. package/dist/usecases/secret/delete-secret.js +19 -0
  245. package/dist/usecases/secret/delete-secret.js.map +1 -0
  246. package/dist/usecases/secret/get-secret.d.ts +25 -0
  247. package/dist/usecases/secret/get-secret.d.ts.map +1 -0
  248. package/dist/usecases/secret/get-secret.js +19 -0
  249. package/dist/usecases/secret/get-secret.js.map +1 -0
  250. package/dist/usecases/secret/index.d.ts +6 -0
  251. package/dist/usecases/secret/index.d.ts.map +1 -0
  252. package/dist/usecases/secret/index.js +6 -0
  253. package/dist/usecases/secret/index.js.map +1 -0
  254. package/dist/usecases/secret/list-secrets.d.ts +31 -0
  255. package/dist/usecases/secret/list-secrets.d.ts.map +1 -0
  256. package/dist/usecases/secret/list-secrets.js +20 -0
  257. package/dist/usecases/secret/list-secrets.js.map +1 -0
  258. package/dist/usecases/secret/update-secret.d.ts +24 -0
  259. package/dist/usecases/secret/update-secret.d.ts.map +1 -0
  260. package/dist/usecases/secret/update-secret.js +19 -0
  261. package/dist/usecases/secret/update-secret.js.map +1 -0
  262. package/dist/validation/validation-middleware.d.ts +14 -0
  263. package/dist/validation/validation-middleware.d.ts.map +1 -0
  264. package/dist/validation/validation-middleware.js +28 -0
  265. package/dist/validation/validation-middleware.js.map +1 -0
  266. package/dist/validation/validation-middleware.test.d.ts +2 -0
  267. package/dist/validation/validation-middleware.test.d.ts.map +1 -0
  268. package/dist/validation/validation-middleware.test.js +26 -0
  269. package/dist/validation/validation-middleware.test.js.map +1 -0
  270. package/package.json +61 -0
@@ -0,0 +1,19 @@
1
+ export class UpdateEnvironmentCommand {
2
+ input;
3
+ commandType = "environment.update";
4
+ version = 1;
5
+ constructor(input) {
6
+ this.input = input;
7
+ }
8
+ }
9
+ export class UpdateEnvironmentCommandHandler {
10
+ environmentService;
11
+ commandType = "environment.update";
12
+ constructor(environmentService) {
13
+ this.environmentService = environmentService;
14
+ }
15
+ async handle(command, _context) {
16
+ return this.environmentService.updateEnvironment(command.input.environmentId, command.input.variables);
17
+ }
18
+ }
19
+ //# sourceMappingURL=update-environment.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-environment.js","sourceRoot":"","sources":["../../../src/usecases/environment/update-environment.ts"],"names":[],"mappings":"AAcA,MAAM,OAAO,wBAAwB;IAGd;IAFZ,WAAW,GAAG,oBAAoB,CAAC;IACnC,OAAO,GAAG,CAAC,CAAC;IACrB,YAAqB,KAA6B;QAA7B,UAAK,GAAL,KAAK,CAAwB;IAAG,CAAC;CACvD;AAED,MAAM,OAAO,+BAA+B;IAGb;IAFpB,WAAW,GAAG,oBAAoB,CAAC;IAE5C,YAA6B,kBAAsC;QAAtC,uBAAkB,GAAlB,kBAAkB,CAAoB;IAAG,CAAC;IAEvE,KAAK,CAAC,MAAM,CAAC,OAAiE,EAAE,QAA4B;QAC1G,OAAO,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,CAAC,OAAO,CAAC,KAAK,CAAC,aAAa,EAAE,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IACzG,CAAC;CACF"}
@@ -0,0 +1,8 @@
1
+ export * from "./project/index.js";
2
+ export * from "./build/index.js";
3
+ export * from "./deployment/index.js";
4
+ export * from "./environment/index.js";
5
+ export * from "./secret/index.js";
6
+ export * from "./audit/index.js";
7
+ export * from "./organization/index.js";
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/usecases/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,8 @@
1
+ export * from "./project/index.js";
2
+ export * from "./build/index.js";
3
+ export * from "./deployment/index.js";
4
+ export * from "./environment/index.js";
5
+ export * from "./secret/index.js";
6
+ export * from "./audit/index.js";
7
+ export * from "./organization/index.js";
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/usecases/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,23 @@
1
+ import type { Result, DomainError } from "@connexia/domain";
2
+ import type { Command, CommandHandler } from "../../commands/command.js";
3
+ import type { ApplicationContext } from "../../context/application-context.js";
4
+ import type { OrganizationService } from "@connexia/services";
5
+ export type { CreateOrganizationInput } from "@connexia/services";
6
+ export interface CreateOrganizationOutput {
7
+ readonly organizationId: string;
8
+ readonly name: string;
9
+ readonly slug: string;
10
+ }
11
+ export declare class CreateOrganizationCommand implements Command<import("@connexia/services").CreateOrganizationInput, CreateOrganizationOutput> {
12
+ readonly input: import("@connexia/services").CreateOrganizationInput;
13
+ readonly commandType = "organization.create";
14
+ readonly version = 1;
15
+ constructor(input: import("@connexia/services").CreateOrganizationInput);
16
+ }
17
+ export declare class CreateOrganizationCommandHandler implements CommandHandler<import("@connexia/services").CreateOrganizationInput, CreateOrganizationOutput> {
18
+ private readonly organizationService;
19
+ readonly commandType = "organization.create";
20
+ constructor(organizationService: OrganizationService);
21
+ handle(command: Command<import("@connexia/services").CreateOrganizationInput, CreateOrganizationOutput>, _context: ApplicationContext): Promise<Result<CreateOrganizationOutput, DomainError>>;
22
+ }
23
+ //# sourceMappingURL=create-organization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-organization.d.ts","sourceRoot":"","sources":["../../../src/usecases/organization/create-organization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,YAAY,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAElE,MAAM,WAAW,wBAAwB;IACvC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,qBAAa,yBAA0B,YAAW,OAAO,CAAC,OAAO,oBAAoB,EAAE,uBAAuB,EAAE,wBAAwB,CAAC;IAG3H,QAAQ,CAAC,KAAK,EAAE,OAAO,oBAAoB,EAAE,uBAAuB;IAFhF,QAAQ,CAAC,WAAW,yBAAyB;IAC7C,QAAQ,CAAC,OAAO,KAAK;gBACA,KAAK,EAAE,OAAO,oBAAoB,EAAE,uBAAuB;CACjF;AAED,qBAAa,gCAAiC,YAAW,cAAc,CAAC,OAAO,oBAAoB,EAAE,uBAAuB,EAAE,wBAAwB,CAAC;IAGzI,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IAFhD,QAAQ,CAAC,WAAW,yBAAyB;gBAEhB,mBAAmB,EAAE,mBAAmB;IAE/D,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,oBAAoB,EAAE,uBAAuB,EAAE,wBAAwB,CAAC,EAAE,QAAQ,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,wBAAwB,EAAE,WAAW,CAAC,CAAC;CAGrM"}
@@ -0,0 +1,19 @@
1
+ export class CreateOrganizationCommand {
2
+ input;
3
+ commandType = "organization.create";
4
+ version = 1;
5
+ constructor(input) {
6
+ this.input = input;
7
+ }
8
+ }
9
+ export class CreateOrganizationCommandHandler {
10
+ organizationService;
11
+ commandType = "organization.create";
12
+ constructor(organizationService) {
13
+ this.organizationService = organizationService;
14
+ }
15
+ async handle(command, _context) {
16
+ return this.organizationService.createOrganization(command.input);
17
+ }
18
+ }
19
+ //# sourceMappingURL=create-organization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-organization.js","sourceRoot":"","sources":["../../../src/usecases/organization/create-organization.ts"],"names":[],"mappings":"AAaA,MAAM,OAAO,yBAAyB;IAGf;IAFZ,WAAW,GAAG,qBAAqB,CAAC;IACpC,OAAO,GAAG,CAAC,CAAC;IACrB,YAAqB,KAA2D;QAA3D,UAAK,GAAL,KAAK,CAAsD;IAAG,CAAC;CACrF;AAED,MAAM,OAAO,gCAAgC;IAGd;IAFpB,WAAW,GAAG,qBAAqB,CAAC;IAE7C,YAA6B,mBAAwC;QAAxC,wBAAmB,GAAnB,mBAAmB,CAAqB;IAAG,CAAC;IAEzE,KAAK,CAAC,MAAM,CAAC,OAAgG,EAAE,QAA4B;QACzI,OAAO,IAAI,CAAC,mBAAmB,CAAC,kBAAkB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACpE,CAAC;CACF"}
@@ -0,0 +1,25 @@
1
+ import type { Result, DomainError } from "@connexia/domain";
2
+ import type { Query, QueryHandler } from "../../queries/query.js";
3
+ import type { ApplicationContext } from "../../context/application-context.js";
4
+ import type { OrganizationService } from "@connexia/services";
5
+ export interface GetOrganizationInput {
6
+ readonly organizationId: string;
7
+ }
8
+ export interface GetOrganizationOutput {
9
+ readonly organizationId: string;
10
+ readonly name: string;
11
+ readonly slug: string;
12
+ }
13
+ export declare class GetOrganizationQuery implements Query<GetOrganizationInput, GetOrganizationOutput> {
14
+ readonly input: GetOrganizationInput;
15
+ readonly queryType = "organization.get";
16
+ readonly version = 1;
17
+ constructor(input: GetOrganizationInput);
18
+ }
19
+ export declare class GetOrganizationQueryHandler implements QueryHandler<GetOrganizationInput, GetOrganizationOutput> {
20
+ private readonly organizationService;
21
+ readonly queryType = "organization.get";
22
+ constructor(organizationService: OrganizationService);
23
+ handle(query: Query<GetOrganizationInput, GetOrganizationOutput>, _context: ApplicationContext): Promise<Result<GetOrganizationOutput, DomainError>>;
24
+ }
25
+ //# sourceMappingURL=get-organization.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-organization.d.ts","sourceRoot":"","sources":["../../../src/usecases/organization/get-organization.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,MAAM,WAAW,oBAAoB;IACnC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,qBAAa,oBAAqB,YAAW,KAAK,CAAC,oBAAoB,EAAE,qBAAqB,CAAC;IAGjF,QAAQ,CAAC,KAAK,EAAE,oBAAoB;IAFhD,QAAQ,CAAC,SAAS,sBAAsB;IACxC,QAAQ,CAAC,OAAO,KAAK;gBACA,KAAK,EAAE,oBAAoB;CACjD;AAED,qBAAa,2BAA4B,YAAW,YAAY,CAAC,oBAAoB,EAAE,qBAAqB,CAAC;IAG/F,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IAFhD,QAAQ,CAAC,SAAS,sBAAsB;gBAEX,mBAAmB,EAAE,mBAAmB;IAE/D,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,oBAAoB,EAAE,qBAAqB,CAAC,EAAE,QAAQ,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,qBAAqB,EAAE,WAAW,CAAC,CAAC;CAG3J"}
@@ -0,0 +1,19 @@
1
+ export class GetOrganizationQuery {
2
+ input;
3
+ queryType = "organization.get";
4
+ version = 1;
5
+ constructor(input) {
6
+ this.input = input;
7
+ }
8
+ }
9
+ export class GetOrganizationQueryHandler {
10
+ organizationService;
11
+ queryType = "organization.get";
12
+ constructor(organizationService) {
13
+ this.organizationService = organizationService;
14
+ }
15
+ async handle(query, _context) {
16
+ return this.organizationService.getOrganization(query.input.organizationId);
17
+ }
18
+ }
19
+ //# sourceMappingURL=get-organization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-organization.js","sourceRoot":"","sources":["../../../src/usecases/organization/get-organization.ts"],"names":[],"mappings":"AAeA,MAAM,OAAO,oBAAoB;IAGV;IAFZ,SAAS,GAAG,kBAAkB,CAAC;IAC/B,OAAO,GAAG,CAAC,CAAC;IACrB,YAAqB,KAA2B;QAA3B,UAAK,GAAL,KAAK,CAAsB;IAAG,CAAC;CACrD;AAED,MAAM,OAAO,2BAA2B;IAGT;IAFpB,SAAS,GAAG,kBAAkB,CAAC;IAExC,YAA6B,mBAAwC;QAAxC,wBAAmB,GAAnB,mBAAmB,CAAqB;IAAG,CAAC;IAEzE,KAAK,CAAC,MAAM,CAAC,KAAyD,EAAE,QAA4B;QAClG,OAAO,IAAI,CAAC,mBAAmB,CAAC,eAAe,CAAC,KAAK,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC;IAC9E,CAAC;CACF"}
@@ -0,0 +1,4 @@
1
+ export { CreateOrganizationCommand, CreateOrganizationCommandHandler, type CreateOrganizationInput, type CreateOrganizationOutput } from "./create-organization.js";
2
+ export { GetOrganizationQuery, GetOrganizationQueryHandler, type GetOrganizationInput, type GetOrganizationOutput } from "./get-organization.js";
3
+ export { ListOrganizationsQuery, ListOrganizationsQueryHandler, type ListOrganizationsInput, type ListOrganizationsOutput } from "./list-organizations.js";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/usecases/organization/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,gCAAgC,EAAE,KAAK,uBAAuB,EAAE,KAAK,wBAAwB,EAAE,MAAM,0BAA0B,CAAC;AACpK,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,KAAK,oBAAoB,EAAE,KAAK,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AACjJ,OAAO,EAAE,sBAAsB,EAAE,6BAA6B,EAAE,KAAK,sBAAsB,EAAE,KAAK,uBAAuB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { CreateOrganizationCommand, CreateOrganizationCommandHandler } from "./create-organization.js";
2
+ export { GetOrganizationQuery, GetOrganizationQueryHandler } from "./get-organization.js";
3
+ export { ListOrganizationsQuery, ListOrganizationsQueryHandler } from "./list-organizations.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/usecases/organization/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,gCAAgC,EAA+D,MAAM,0BAA0B,CAAC;AACpK,OAAO,EAAE,oBAAoB,EAAE,2BAA2B,EAAyD,MAAM,uBAAuB,CAAC;AACjJ,OAAO,EAAE,sBAAsB,EAAE,6BAA6B,EAA6D,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,27 @@
1
+ import type { Result, DomainError } from "@connexia/domain";
2
+ import type { Query, QueryHandler } from "../../queries/query.js";
3
+ import type { ApplicationContext } from "../../context/application-context.js";
4
+ import type { OrganizationService } from "@connexia/services";
5
+ export interface ListOrganizationsInput {
6
+ readonly userId: string;
7
+ }
8
+ export interface ListOrganizationsOutput {
9
+ readonly items: readonly {
10
+ organizationId: string;
11
+ name: string;
12
+ slug: string;
13
+ }[];
14
+ }
15
+ export declare class ListOrganizationsQuery implements Query<ListOrganizationsInput, ListOrganizationsOutput> {
16
+ readonly input: ListOrganizationsInput;
17
+ readonly queryType = "organization.listByUser";
18
+ readonly version = 1;
19
+ constructor(input: ListOrganizationsInput);
20
+ }
21
+ export declare class ListOrganizationsQueryHandler implements QueryHandler<ListOrganizationsInput, ListOrganizationsOutput> {
22
+ private readonly organizationService;
23
+ readonly queryType = "organization.listByUser";
24
+ constructor(organizationService: OrganizationService);
25
+ handle(_query: Query<ListOrganizationsInput, ListOrganizationsOutput>, _context: ApplicationContext): Promise<Result<ListOrganizationsOutput, DomainError>>;
26
+ }
27
+ //# sourceMappingURL=list-organizations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-organizations.d.ts","sourceRoot":"","sources":["../../../src/usecases/organization/list-organizations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAE9D,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,KAAK,EAAE,SAAS;QAAE,cAAc,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACnF;AAED,qBAAa,sBAAuB,YAAW,KAAK,CAAC,sBAAsB,EAAE,uBAAuB,CAAC;IAGvF,QAAQ,CAAC,KAAK,EAAE,sBAAsB;IAFlD,QAAQ,CAAC,SAAS,6BAA6B;IAC/C,QAAQ,CAAC,OAAO,KAAK;gBACA,KAAK,EAAE,sBAAsB;CACnD;AAED,qBAAa,6BAA8B,YAAW,YAAY,CAAC,sBAAsB,EAAE,uBAAuB,CAAC;IAGrG,OAAO,CAAC,QAAQ,CAAC,mBAAmB;IAFhD,QAAQ,CAAC,SAAS,6BAA6B;gBAElB,mBAAmB,EAAE,mBAAmB;IAE/D,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,sBAAsB,EAAE,uBAAuB,CAAC,EAAE,QAAQ,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,uBAAuB,EAAE,WAAW,CAAC,CAAC;CAMlK"}
@@ -0,0 +1,22 @@
1
+ export class ListOrganizationsQuery {
2
+ input;
3
+ queryType = "organization.listByUser";
4
+ version = 1;
5
+ constructor(input) {
6
+ this.input = input;
7
+ }
8
+ }
9
+ export class ListOrganizationsQueryHandler {
10
+ organizationService;
11
+ queryType = "organization.listByUser";
12
+ constructor(organizationService) {
13
+ this.organizationService = organizationService;
14
+ }
15
+ async handle(_query, _context) {
16
+ const result = await this.organizationService.listOrganizations();
17
+ if (!result.ok)
18
+ return result;
19
+ return { ok: true, value: { items: result.value } };
20
+ }
21
+ }
22
+ //# sourceMappingURL=list-organizations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-organizations.js","sourceRoot":"","sources":["../../../src/usecases/organization/list-organizations.ts"],"names":[],"mappings":"AAaA,MAAM,OAAO,sBAAsB;IAGZ;IAFZ,SAAS,GAAG,yBAAyB,CAAC;IACtC,OAAO,GAAG,CAAC,CAAC;IACrB,YAAqB,KAA6B;QAA7B,UAAK,GAAL,KAAK,CAAwB;IAAG,CAAC;CACvD;AAED,MAAM,OAAO,6BAA6B;IAGX;IAFpB,SAAS,GAAG,yBAAyB,CAAC;IAE/C,YAA6B,mBAAwC;QAAxC,wBAAmB,GAAnB,mBAAmB,CAAqB;IAAG,CAAC;IAEzE,KAAK,CAAC,MAAM,CAAC,MAA8D,EAAE,QAA4B;QACvG,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,iBAAiB,EAAE,CAAC;QAClE,IAAI,CAAC,MAAM,CAAC,EAAE;YAAE,OAAO,MAAM,CAAC;QAE9B,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,EAAE,CAAC;IACtD,CAAC;CACF"}
@@ -0,0 +1,20 @@
1
+ import type { Result, DomainError } from "@connexia/domain";
2
+ import type { Command, CommandHandler } from "../../commands/command.js";
3
+ import type { ApplicationContext } from "../../context/application-context.js";
4
+ import type { ProjectService, CreateProjectInput, ProjectResult } from "@connexia/services";
5
+ export type { CreateProjectInput } from "@connexia/services";
6
+ export interface CreateProjectOutput extends ProjectResult {
7
+ }
8
+ export declare class CreateProjectCommand implements Command<CreateProjectInput, CreateProjectOutput> {
9
+ readonly input: CreateProjectInput;
10
+ readonly commandType = "project.create";
11
+ readonly version = 1;
12
+ constructor(input: CreateProjectInput);
13
+ }
14
+ export declare class CreateProjectCommandHandler implements CommandHandler<CreateProjectInput, CreateProjectOutput> {
15
+ private readonly projectService;
16
+ readonly commandType = "project.create";
17
+ constructor(projectService: ProjectService);
18
+ handle(command: Command<CreateProjectInput, CreateProjectOutput>, _context: ApplicationContext): Promise<Result<CreateProjectOutput, DomainError>>;
19
+ }
20
+ //# sourceMappingURL=create-project.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-project.d.ts","sourceRoot":"","sources":["../../../src/usecases/project/create-project.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAE5F,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAE7D,MAAM,WAAW,mBAAoB,SAAQ,aAAa;CAAG;AAE7D,qBAAa,oBAAqB,YAAW,OAAO,CAAC,kBAAkB,EAAE,mBAAmB,CAAC;IAG/E,QAAQ,CAAC,KAAK,EAAE,kBAAkB;IAF9C,QAAQ,CAAC,WAAW,oBAAoB;IACxC,QAAQ,CAAC,OAAO,KAAK;gBACA,KAAK,EAAE,kBAAkB;CAC/C;AAED,qBAAa,2BAA4B,YAAW,cAAc,CAChE,kBAAkB,EAClB,mBAAmB,CACpB;IAGa,OAAO,CAAC,QAAQ,CAAC,cAAc;IAF3C,QAAQ,CAAC,WAAW,oBAAoB;gBAEX,cAAc,EAAE,cAAc;IAErD,MAAM,CACV,OAAO,EAAE,OAAO,CAAC,kBAAkB,EAAE,mBAAmB,CAAC,EACzD,QAAQ,EAAE,kBAAkB,GAC3B,OAAO,CAAC,MAAM,CAAC,mBAAmB,EAAE,WAAW,CAAC,CAAC;CAGrD"}
@@ -0,0 +1,19 @@
1
+ export class CreateProjectCommand {
2
+ input;
3
+ commandType = "project.create";
4
+ version = 1;
5
+ constructor(input) {
6
+ this.input = input;
7
+ }
8
+ }
9
+ export class CreateProjectCommandHandler {
10
+ projectService;
11
+ commandType = "project.create";
12
+ constructor(projectService) {
13
+ this.projectService = projectService;
14
+ }
15
+ async handle(command, _context) {
16
+ return this.projectService.createProject(command.input);
17
+ }
18
+ }
19
+ //# sourceMappingURL=create-project.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-project.js","sourceRoot":"","sources":["../../../src/usecases/project/create-project.ts"],"names":[],"mappings":"AASA,MAAM,OAAO,oBAAoB;IAGV;IAFZ,WAAW,GAAG,gBAAgB,CAAC;IAC/B,OAAO,GAAG,CAAC,CAAC;IACrB,YAAqB,KAAyB;QAAzB,UAAK,GAAL,KAAK,CAAoB;IAAG,CAAC;CACnD;AAED,MAAM,OAAO,2BAA2B;IAMT;IAFpB,WAAW,GAAG,gBAAgB,CAAC;IAExC,YAA6B,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAAG,CAAC;IAE/D,KAAK,CAAC,MAAM,CACV,OAAyD,EACzD,QAA4B;QAE5B,OAAO,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC1D,CAAC;CACF"}
@@ -0,0 +1,21 @@
1
+ import type { Result, DomainError } from "@connexia/domain";
2
+ import type { Query, QueryHandler } from "../../queries/query.js";
3
+ import type { ApplicationContext } from "../../context/application-context.js";
4
+ import type { ProjectService, ProjectDetail } from "@connexia/services";
5
+ export interface GetProjectInput {
6
+ readonly projectId: string;
7
+ }
8
+ export type GetProjectOutput = ProjectDetail;
9
+ export declare class GetProjectQuery implements Query<GetProjectInput, GetProjectOutput> {
10
+ readonly input: GetProjectInput;
11
+ readonly queryType = "project.get";
12
+ readonly version = 1;
13
+ constructor(input: GetProjectInput);
14
+ }
15
+ export declare class GetProjectQueryHandler implements QueryHandler<GetProjectInput, GetProjectOutput> {
16
+ private readonly projectService;
17
+ readonly queryType = "project.get";
18
+ constructor(projectService: ProjectService);
19
+ handle(query: Query<GetProjectInput, GetProjectOutput>, _context: ApplicationContext): Promise<Result<GetProjectOutput, DomainError>>;
20
+ }
21
+ //# sourceMappingURL=get-project.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-project.d.ts","sourceRoot":"","sources":["../../../src/usecases/project/get-project.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExE,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,MAAM,gBAAgB,GAAG,aAAa,CAAC;AAE7C,qBAAa,eAAgB,YAAW,KAAK,CAAC,eAAe,EAAE,gBAAgB,CAAC;IAGlE,QAAQ,CAAC,KAAK,EAAE,eAAe;IAF3C,QAAQ,CAAC,SAAS,iBAAiB;IACnC,QAAQ,CAAC,OAAO,KAAK;gBACA,KAAK,EAAE,eAAe;CAC5C;AAED,qBAAa,sBAAuB,YAAW,YAAY,CAAC,eAAe,EAAE,gBAAgB,CAAC;IAGhF,OAAO,CAAC,QAAQ,CAAC,cAAc;IAF3C,QAAQ,CAAC,SAAS,iBAAiB;gBAEN,cAAc,EAAE,cAAc;IAErD,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,eAAe,EAAE,gBAAgB,CAAC,EAAE,QAAQ,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,gBAAgB,EAAE,WAAW,CAAC,CAAC;CAG5I"}
@@ -0,0 +1,19 @@
1
+ export class GetProjectQuery {
2
+ input;
3
+ queryType = "project.get";
4
+ version = 1;
5
+ constructor(input) {
6
+ this.input = input;
7
+ }
8
+ }
9
+ export class GetProjectQueryHandler {
10
+ projectService;
11
+ queryType = "project.get";
12
+ constructor(projectService) {
13
+ this.projectService = projectService;
14
+ }
15
+ async handle(query, _context) {
16
+ return this.projectService.getProject(query.input.projectId);
17
+ }
18
+ }
19
+ //# sourceMappingURL=get-project.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-project.js","sourceRoot":"","sources":["../../../src/usecases/project/get-project.ts"],"names":[],"mappings":"AAWA,MAAM,OAAO,eAAe;IAGL;IAFZ,SAAS,GAAG,aAAa,CAAC;IAC1B,OAAO,GAAG,CAAC,CAAC;IACrB,YAAqB,KAAsB;QAAtB,UAAK,GAAL,KAAK,CAAiB;IAAG,CAAC;CAChD;AAED,MAAM,OAAO,sBAAsB;IAGJ;IAFpB,SAAS,GAAG,aAAa,CAAC;IAEnC,YAA6B,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAAG,CAAC;IAE/D,KAAK,CAAC,MAAM,CAAC,KAA+C,EAAE,QAA4B;QACxF,OAAO,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAC/D,CAAC;CACF"}
@@ -0,0 +1,3 @@
1
+ export { CreateProjectCommand, CreateProjectCommandHandler, type CreateProjectInput, type CreateProjectOutput, } from "./create-project.js";
2
+ export { GetProjectQuery, GetProjectQueryHandler, type GetProjectInput, type GetProjectOutput, } from "./get-project.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/usecases/project/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,2BAA2B,EAC3B,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,GACzB,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,eAAe,EACf,sBAAsB,EACtB,KAAK,eAAe,EACpB,KAAK,gBAAgB,GACtB,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { CreateProjectCommand, CreateProjectCommandHandler, } from "./create-project.js";
2
+ export { GetProjectQuery, GetProjectQueryHandler, } from "./get-project.js";
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/usecases/project/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,2BAA2B,GAG5B,MAAM,qBAAqB,CAAC;AAE7B,OAAO,EACL,eAAe,EACf,sBAAsB,GAGvB,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,22 @@
1
+ import type { Result, DomainError } from "@connexia/domain";
2
+ import type { Command, CommandHandler } from "../../commands/command.js";
3
+ import type { ApplicationContext } from "../../context/application-context.js";
4
+ import type { SecretService } from "@connexia/services";
5
+ export type { CreateSecretInput } from "@connexia/services";
6
+ export interface CreateSecretOutput {
7
+ readonly secretId: string;
8
+ readonly name: string;
9
+ }
10
+ export declare class CreateSecretCommand implements Command<import("@connexia/services").CreateSecretInput, CreateSecretOutput> {
11
+ readonly input: import("@connexia/services").CreateSecretInput;
12
+ readonly commandType = "secret.create";
13
+ readonly version = 1;
14
+ constructor(input: import("@connexia/services").CreateSecretInput);
15
+ }
16
+ export declare class CreateSecretCommandHandler implements CommandHandler<import("@connexia/services").CreateSecretInput, CreateSecretOutput> {
17
+ private readonly secretService;
18
+ readonly commandType = "secret.create";
19
+ constructor(secretService: SecretService);
20
+ handle(command: Command<import("@connexia/services").CreateSecretInput, CreateSecretOutput>, _context: ApplicationContext): Promise<Result<CreateSecretOutput, DomainError>>;
21
+ }
22
+ //# sourceMappingURL=create-secret.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-secret.d.ts","sourceRoot":"","sources":["../../../src/usecases/secret/create-secret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,YAAY,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,qBAAa,mBAAoB,YAAW,OAAO,CAAC,OAAO,oBAAoB,EAAE,iBAAiB,EAAE,kBAAkB,CAAC;IAGzG,QAAQ,CAAC,KAAK,EAAE,OAAO,oBAAoB,EAAE,iBAAiB;IAF1E,QAAQ,CAAC,WAAW,mBAAmB;IACvC,QAAQ,CAAC,OAAO,KAAK;gBACA,KAAK,EAAE,OAAO,oBAAoB,EAAE,iBAAiB;CAC3E;AAED,qBAAa,0BAA2B,YAAW,cAAc,CAAC,OAAO,oBAAoB,EAAE,iBAAiB,EAAE,kBAAkB,CAAC;IAGvH,OAAO,CAAC,QAAQ,CAAC,aAAa;IAF1C,QAAQ,CAAC,WAAW,mBAAmB;gBAEV,aAAa,EAAE,aAAa;IAEnD,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,OAAO,oBAAoB,EAAE,iBAAiB,EAAE,kBAAkB,CAAC,EAAE,QAAQ,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,kBAAkB,EAAE,WAAW,CAAC,CAAC;CAGnL"}
@@ -0,0 +1,19 @@
1
+ export class CreateSecretCommand {
2
+ input;
3
+ commandType = "secret.create";
4
+ version = 1;
5
+ constructor(input) {
6
+ this.input = input;
7
+ }
8
+ }
9
+ export class CreateSecretCommandHandler {
10
+ secretService;
11
+ commandType = "secret.create";
12
+ constructor(secretService) {
13
+ this.secretService = secretService;
14
+ }
15
+ async handle(command, _context) {
16
+ return this.secretService.createSecret(command.input);
17
+ }
18
+ }
19
+ //# sourceMappingURL=create-secret.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-secret.js","sourceRoot":"","sources":["../../../src/usecases/secret/create-secret.ts"],"names":[],"mappings":"AAYA,MAAM,OAAO,mBAAmB;IAGT;IAFZ,WAAW,GAAG,eAAe,CAAC;IAC9B,OAAO,GAAG,CAAC,CAAC;IACrB,YAAqB,KAAqD;QAArD,UAAK,GAAL,KAAK,CAAgD;IAAG,CAAC;CAC/E;AAED,MAAM,OAAO,0BAA0B;IAGR;IAFpB,WAAW,GAAG,eAAe,CAAC;IAEvC,YAA6B,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAAG,CAAC;IAE7D,KAAK,CAAC,MAAM,CAAC,OAAoF,EAAE,QAA4B;QAC7H,OAAO,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACxD,CAAC;CACF"}
@@ -0,0 +1,23 @@
1
+ import type { Result, DomainError } from "@connexia/domain";
2
+ import type { Command, CommandHandler } from "../../commands/command.js";
3
+ import type { ApplicationContext } from "../../context/application-context.js";
4
+ import type { SecretService } from "@connexia/services";
5
+ export interface DeleteSecretInput {
6
+ readonly secretId: string;
7
+ }
8
+ export interface DeleteSecretOutput {
9
+ readonly deleted: boolean;
10
+ }
11
+ export declare class DeleteSecretCommand implements Command<DeleteSecretInput, DeleteSecretOutput> {
12
+ readonly input: DeleteSecretInput;
13
+ readonly commandType = "secret.delete";
14
+ readonly version = 1;
15
+ constructor(input: DeleteSecretInput);
16
+ }
17
+ export declare class DeleteSecretCommandHandler implements CommandHandler<DeleteSecretInput, DeleteSecretOutput> {
18
+ private readonly secretService;
19
+ readonly commandType = "secret.delete";
20
+ constructor(secretService: SecretService);
21
+ handle(command: Command<DeleteSecretInput, DeleteSecretOutput>, _context: ApplicationContext): Promise<Result<DeleteSecretOutput, DomainError>>;
22
+ }
23
+ //# sourceMappingURL=delete-secret.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-secret.d.ts","sourceRoot":"","sources":["../../../src/usecases/secret/delete-secret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AACzE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAED,qBAAa,mBAAoB,YAAW,OAAO,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;IAG5E,QAAQ,CAAC,KAAK,EAAE,iBAAiB;IAF7C,QAAQ,CAAC,WAAW,mBAAmB;IACvC,QAAQ,CAAC,OAAO,KAAK;gBACA,KAAK,EAAE,iBAAiB;CAC9C;AAED,qBAAa,0BAA2B,YAAW,cAAc,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;IAG1F,OAAO,CAAC,QAAQ,CAAC,aAAa;IAF1C,QAAQ,CAAC,WAAW,mBAAmB;gBAEV,aAAa,EAAE,aAAa;IAEnD,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,EAAE,QAAQ,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,kBAAkB,EAAE,WAAW,CAAC,CAAC;CAGtJ"}
@@ -0,0 +1,19 @@
1
+ export class DeleteSecretCommand {
2
+ input;
3
+ commandType = "secret.delete";
4
+ version = 1;
5
+ constructor(input) {
6
+ this.input = input;
7
+ }
8
+ }
9
+ export class DeleteSecretCommandHandler {
10
+ secretService;
11
+ commandType = "secret.delete";
12
+ constructor(secretService) {
13
+ this.secretService = secretService;
14
+ }
15
+ async handle(command, _context) {
16
+ return this.secretService.deleteSecret(command.input.secretId);
17
+ }
18
+ }
19
+ //# sourceMappingURL=delete-secret.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delete-secret.js","sourceRoot":"","sources":["../../../src/usecases/secret/delete-secret.ts"],"names":[],"mappings":"AAaA,MAAM,OAAO,mBAAmB;IAGT;IAFZ,WAAW,GAAG,eAAe,CAAC;IAC9B,OAAO,GAAG,CAAC,CAAC;IACrB,YAAqB,KAAwB;QAAxB,UAAK,GAAL,KAAK,CAAmB;IAAG,CAAC;CAClD;AAED,MAAM,OAAO,0BAA0B;IAGR;IAFpB,WAAW,GAAG,eAAe,CAAC;IAEvC,YAA6B,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAAG,CAAC;IAE7D,KAAK,CAAC,MAAM,CAAC,OAAuD,EAAE,QAA4B;QAChG,OAAO,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IACjE,CAAC;CACF"}
@@ -0,0 +1,25 @@
1
+ import type { Result, DomainError } from "@connexia/domain";
2
+ import type { Query, QueryHandler } from "../../queries/query.js";
3
+ import type { ApplicationContext } from "../../context/application-context.js";
4
+ import type { SecretService } from "@connexia/services";
5
+ export interface GetSecretInput {
6
+ readonly secretId: string;
7
+ }
8
+ export interface GetSecretOutput {
9
+ readonly secretId: string;
10
+ readonly name: string;
11
+ readonly scope: string;
12
+ }
13
+ export declare class GetSecretQuery implements Query<GetSecretInput, GetSecretOutput> {
14
+ readonly input: GetSecretInput;
15
+ readonly queryType = "secret.get";
16
+ readonly version = 1;
17
+ constructor(input: GetSecretInput);
18
+ }
19
+ export declare class GetSecretQueryHandler implements QueryHandler<GetSecretInput, GetSecretOutput> {
20
+ private readonly secretService;
21
+ readonly queryType = "secret.get";
22
+ constructor(secretService: SecretService);
23
+ handle(query: Query<GetSecretInput, GetSecretOutput>, _context: ApplicationContext): Promise<Result<GetSecretOutput, DomainError>>;
24
+ }
25
+ //# sourceMappingURL=get-secret.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-secret.d.ts","sourceRoot":"","sources":["../../../src/usecases/secret/get-secret.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,qBAAa,cAAe,YAAW,KAAK,CAAC,cAAc,EAAE,eAAe,CAAC;IAG/D,QAAQ,CAAC,KAAK,EAAE,cAAc;IAF1C,QAAQ,CAAC,SAAS,gBAAgB;IAClC,QAAQ,CAAC,OAAO,KAAK;gBACA,KAAK,EAAE,cAAc;CAC3C;AAED,qBAAa,qBAAsB,YAAW,YAAY,CAAC,cAAc,EAAE,eAAe,CAAC;IAG7E,OAAO,CAAC,QAAQ,CAAC,aAAa;IAF1C,QAAQ,CAAC,SAAS,gBAAgB;gBAEL,aAAa,EAAE,aAAa;IAEnD,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,EAAE,eAAe,CAAC,EAAE,QAAQ,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,WAAW,CAAC,CAAC;CAGzI"}
@@ -0,0 +1,19 @@
1
+ export class GetSecretQuery {
2
+ input;
3
+ queryType = "secret.get";
4
+ version = 1;
5
+ constructor(input) {
6
+ this.input = input;
7
+ }
8
+ }
9
+ export class GetSecretQueryHandler {
10
+ secretService;
11
+ queryType = "secret.get";
12
+ constructor(secretService) {
13
+ this.secretService = secretService;
14
+ }
15
+ async handle(query, _context) {
16
+ return this.secretService.getSecret(query.input.secretId);
17
+ }
18
+ }
19
+ //# sourceMappingURL=get-secret.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-secret.js","sourceRoot":"","sources":["../../../src/usecases/secret/get-secret.ts"],"names":[],"mappings":"AAeA,MAAM,OAAO,cAAc;IAGJ;IAFZ,SAAS,GAAG,YAAY,CAAC;IACzB,OAAO,GAAG,CAAC,CAAC;IACrB,YAAqB,KAAqB;QAArB,UAAK,GAAL,KAAK,CAAgB;IAAG,CAAC;CAC/C;AAED,MAAM,OAAO,qBAAqB;IAGH;IAFpB,SAAS,GAAG,YAAY,CAAC;IAElC,YAA6B,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAAG,CAAC;IAE7D,KAAK,CAAC,MAAM,CAAC,KAA6C,EAAE,QAA4B;QACtF,OAAO,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;IAC5D,CAAC;CACF"}
@@ -0,0 +1,6 @@
1
+ export { CreateSecretCommand, CreateSecretCommandHandler, type CreateSecretInput, type CreateSecretOutput } from "./create-secret.js";
2
+ export { GetSecretQuery, GetSecretQueryHandler, type GetSecretInput, type GetSecretOutput } from "./get-secret.js";
3
+ export { ListSecretsQuery, ListSecretsQueryHandler, type ListSecretsInput, type ListSecretsOutput } from "./list-secrets.js";
4
+ export { UpdateSecretCommand, UpdateSecretCommandHandler, type UpdateSecretInput, type UpdateSecretOutput } from "./update-secret.js";
5
+ export { DeleteSecretCommand, DeleteSecretCommandHandler, type DeleteSecretInput, type DeleteSecretOutput } from "./delete-secret.js";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/usecases/secret/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACtI,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,KAAK,cAAc,EAAE,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACnH,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAE,KAAK,gBAAgB,EAAE,KAAK,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC7H,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACtI,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAE,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export { CreateSecretCommand, CreateSecretCommandHandler } from "./create-secret.js";
2
+ export { GetSecretQuery, GetSecretQueryHandler } from "./get-secret.js";
3
+ export { ListSecretsQuery, ListSecretsQueryHandler } from "./list-secrets.js";
4
+ export { UpdateSecretCommand, UpdateSecretCommandHandler } from "./update-secret.js";
5
+ export { DeleteSecretCommand, DeleteSecretCommandHandler } from "./delete-secret.js";
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/usecases/secret/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAmD,MAAM,oBAAoB,CAAC;AACtI,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAA6C,MAAM,iBAAiB,CAAC;AACnH,OAAO,EAAE,gBAAgB,EAAE,uBAAuB,EAAiD,MAAM,mBAAmB,CAAC;AAC7H,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAmD,MAAM,oBAAoB,CAAC;AACtI,OAAO,EAAE,mBAAmB,EAAE,0BAA0B,EAAmD,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,31 @@
1
+ import type { Result, DomainError } from "@connexia/domain";
2
+ import type { Query, QueryHandler } from "../../queries/query.js";
3
+ import type { ApplicationContext } from "../../context/application-context.js";
4
+ import type { SecretService } from "@connexia/services";
5
+ export interface ListSecretsInput {
6
+ readonly scope: string;
7
+ readonly organizationId: string;
8
+ readonly projectId?: string;
9
+ readonly environmentId?: string;
10
+ }
11
+ export interface ListSecretsOutput {
12
+ readonly items: readonly {
13
+ secretId: string;
14
+ name: string;
15
+ scope: string;
16
+ }[];
17
+ readonly total: number;
18
+ }
19
+ export declare class ListSecretsQuery implements Query<ListSecretsInput, ListSecretsOutput> {
20
+ readonly input: ListSecretsInput;
21
+ readonly queryType = "secret.list";
22
+ readonly version = 1;
23
+ constructor(input: ListSecretsInput);
24
+ }
25
+ export declare class ListSecretsQueryHandler implements QueryHandler<ListSecretsInput, ListSecretsOutput> {
26
+ private readonly secretService;
27
+ readonly queryType = "secret.list";
28
+ constructor(secretService: SecretService);
29
+ handle(query: Query<ListSecretsInput, ListSecretsOutput>, _context: ApplicationContext): Promise<Result<ListSecretsOutput, DomainError>>;
30
+ }
31
+ //# sourceMappingURL=list-secrets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-secrets.d.ts","sourceRoot":"","sources":["../../../src/usecases/secret/list-secrets.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC/E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC;CACjC;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,CAAC,KAAK,EAAE,SAAS;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC7E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,qBAAa,gBAAiB,YAAW,KAAK,CAAC,gBAAgB,EAAE,iBAAiB,CAAC;IAGrE,QAAQ,CAAC,KAAK,EAAE,gBAAgB;IAF5C,QAAQ,CAAC,SAAS,iBAAiB;IACnC,QAAQ,CAAC,OAAO,KAAK;gBACA,KAAK,EAAE,gBAAgB;CAC7C;AAED,qBAAa,uBAAwB,YAAW,YAAY,CAAC,gBAAgB,EAAE,iBAAiB,CAAC;IAGnF,OAAO,CAAC,QAAQ,CAAC,aAAa;IAF1C,QAAQ,CAAC,SAAS,iBAAiB;gBAEN,aAAa,EAAE,aAAa;IAEnD,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,EAAE,QAAQ,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,iBAAiB,EAAE,WAAW,CAAC,CAAC;CAI/I"}
@@ -0,0 +1,20 @@
1
+ export class ListSecretsQuery {
2
+ input;
3
+ queryType = "secret.list";
4
+ version = 1;
5
+ constructor(input) {
6
+ this.input = input;
7
+ }
8
+ }
9
+ export class ListSecretsQueryHandler {
10
+ secretService;
11
+ queryType = "secret.list";
12
+ constructor(secretService) {
13
+ this.secretService = secretService;
14
+ }
15
+ async handle(query, _context) {
16
+ const { scope, organizationId } = query.input;
17
+ return this.secretService.listSecrets(scope, organizationId);
18
+ }
19
+ }
20
+ //# sourceMappingURL=list-secrets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-secrets.js","sourceRoot":"","sources":["../../../src/usecases/secret/list-secrets.ts"],"names":[],"mappings":"AAiBA,MAAM,OAAO,gBAAgB;IAGN;IAFZ,SAAS,GAAG,aAAa,CAAC;IAC1B,OAAO,GAAG,CAAC,CAAC;IACrB,YAAqB,KAAuB;QAAvB,UAAK,GAAL,KAAK,CAAkB;IAAG,CAAC;CACjD;AAED,MAAM,OAAO,uBAAuB;IAGL;IAFpB,SAAS,GAAG,aAAa,CAAC;IAEnC,YAA6B,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAAG,CAAC;IAE7D,KAAK,CAAC,MAAM,CAAC,KAAiD,EAAE,QAA4B;QAC1F,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC,KAAK,CAAC;QAC9C,OAAO,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;IAC/D,CAAC;CACF"}