dcdx 1.2.0-next.6 → 1.2.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 (75) hide show
  1. package/assets/versions.json +1 -1
  2. package/lib/commands/build.js +8510 -1
  3. package/lib/commands/database.js +8441 -1
  4. package/lib/commands/debug.js +9257 -0
  5. package/lib/commands/profile.js +2 -1
  6. package/lib/commands/reset.js +9194 -1
  7. package/lib/commands/run.js +9227 -1
  8. package/lib/commands/stop.js +9191 -1
  9. package/lib/index.js +93 -1
  10. package/lib/types/src/applications/bamboo.d.ts +4 -6
  11. package/lib/types/src/applications/base.d.ts +8 -12
  12. package/lib/types/src/applications/bitbucket.d.ts +4 -6
  13. package/lib/types/src/applications/confluence.d.ts +4 -6
  14. package/lib/types/src/applications/jira.d.ts +4 -6
  15. package/lib/types/src/databases/base.d.ts +7 -15
  16. package/lib/types/src/databases/mssql.d.ts +3 -12
  17. package/lib/types/src/databases/mysql.d.ts +3 -12
  18. package/lib/types/src/databases/postgres.d.ts +3 -12
  19. package/lib/types/src/helpers/ActionHandler.d.ts +39 -0
  20. package/lib/types/src/helpers/FileWatcher.d.ts +3 -0
  21. package/lib/types/src/helpers/amps.d.ts +22 -12
  22. package/lib/types/src/helpers/docker.d.ts +3 -5
  23. package/lib/types/src/helpers/getApplication.d.ts +2 -6
  24. package/lib/types/src/helpers/getDatabaseEngine.d.ts +2 -0
  25. package/lib/types/src/helpers/getZodDefaults.d.ts +3 -0
  26. package/lib/types/src/helpers/licences.d.ts +2 -2
  27. package/lib/types/src/helpers/showHelpWithDefaultCommandOptions.d.ts +2 -0
  28. package/lib/types/src/types/AMPS.d.ts +96 -0
  29. package/lib/types/src/types/Application.d.ts +65 -0
  30. package/lib/types/src/types/Database.d.ts +169 -0
  31. package/package.json +10 -5
  32. package/lib/commands/database/mssql.js +0 -2
  33. package/lib/commands/database/mysql.js +0 -2
  34. package/lib/commands/database/postgres.js +0 -2
  35. package/lib/commands/reset/bamboo.js +0 -2
  36. package/lib/commands/reset/bitbucket.js +0 -2
  37. package/lib/commands/reset/command.js +0 -2
  38. package/lib/commands/reset/confluence.js +0 -2
  39. package/lib/commands/reset/jira.js +0 -2
  40. package/lib/commands/run/bamboo.js +0 -2
  41. package/lib/commands/run/bitbucket.js +0 -2
  42. package/lib/commands/run/command.js +0 -2
  43. package/lib/commands/run/confluence.js +0 -2
  44. package/lib/commands/run/jira.js +0 -2
  45. package/lib/commands/start.js +0 -2
  46. package/lib/commands/stop/bamboo.js +0 -2
  47. package/lib/commands/stop/bitbucket.js +0 -2
  48. package/lib/commands/stop/command.js +0 -2
  49. package/lib/commands/stop/confluence.js +0 -2
  50. package/lib/commands/stop/jira.js +0 -2
  51. package/lib/types/src/commands/database/mysql.d.ts +0 -2
  52. package/lib/types/src/commands/database/postgres.d.ts +0 -2
  53. package/lib/types/src/commands/reset/bamboo.d.ts +0 -2
  54. package/lib/types/src/commands/reset/bitbucket.d.ts +0 -2
  55. package/lib/types/src/commands/reset/command.d.ts +0 -3
  56. package/lib/types/src/commands/reset/confluence.d.ts +0 -2
  57. package/lib/types/src/commands/reset/jira.d.ts +0 -2
  58. package/lib/types/src/commands/run/bamboo.d.ts +0 -2
  59. package/lib/types/src/commands/run/bitbucket.d.ts +0 -2
  60. package/lib/types/src/commands/run/command.d.ts +0 -3
  61. package/lib/types/src/commands/run/confluence.d.ts +0 -2
  62. package/lib/types/src/commands/run/jira.d.ts +0 -2
  63. package/lib/types/src/commands/start.d.ts +0 -2
  64. package/lib/types/src/commands/stop/bamboo.d.ts +0 -2
  65. package/lib/types/src/commands/stop/bitbucket.d.ts +0 -2
  66. package/lib/types/src/commands/stop/command.d.ts +0 -3
  67. package/lib/types/src/commands/stop/confluence.d.ts +0 -2
  68. package/lib/types/src/commands/stop/jira.d.ts +0 -2
  69. package/lib/types/src/types/ApplicationOptions.d.ts +0 -13
  70. package/lib/types/src/types/DatabaseEngine.d.ts +0 -17
  71. package/lib/types/src/types/DatabaseOptions.d.ts +0 -9
  72. package/lib/types/src/types/SupportedApplications.d.ts +0 -6
  73. package/lib/types/src/types/SupportedDatabaseDrivers.d.ts +0 -1
  74. package/lib/types/src/types/SupportedDatabaseEngines.d.ts +0 -1
  75. /package/lib/types/src/commands/{database/mssql.d.ts → debug.d.ts} +0 -0
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
- import { SupportedApplications } from '../../types/SupportedApplications';
3
- export declare const StopCommand: (name: SupportedApplications) => Promise<void>;
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- export {};
@@ -1,13 +0,0 @@
1
- import { SupportedDatabaseEngines } from './SupportedDatabaseEngines';
2
- export type ApplicationOptions = {
3
- version: string;
4
- database: SupportedDatabaseEngines;
5
- port?: number;
6
- contextPath?: string;
7
- quickReload?: boolean;
8
- license?: string;
9
- clean?: boolean;
10
- prune?: boolean;
11
- devMode?: boolean;
12
- debug?: boolean;
13
- };
@@ -1,17 +0,0 @@
1
- /// <reference types="node" />
2
- import EventEmitter from 'events';
3
- import { DatabaseOptions } from './DatabaseOptions';
4
- import { SupportedDatabaseDrivers } from './SupportedDatabaseDrivers';
5
- import { SupportedDatabaseEngines } from './SupportedDatabaseEngines';
6
- export interface DatabaseEngine extends EventEmitter {
7
- name: SupportedDatabaseEngines;
8
- url: string;
9
- driver: SupportedDatabaseDrivers;
10
- options: DatabaseOptions;
11
- start(clean?: boolean): Promise<void>;
12
- stop(prune?: boolean): Promise<void>;
13
- run(sql: string | {
14
- query: string;
15
- values: unknown[];
16
- }): Promise<[unknown[], unknown] | null>;
17
- }
@@ -1,9 +0,0 @@
1
- export type DatabaseOptions = {
2
- port: number;
3
- database: string;
4
- username: string;
5
- password: string;
6
- clean?: boolean;
7
- prune?: boolean;
8
- logging?: boolean;
9
- };
@@ -1,6 +0,0 @@
1
- export declare enum SupportedApplications {
2
- JIRA = "jira",
3
- CONFLUENCE = "confluence",
4
- BITBUCKET = "bitbucket",
5
- BAMBOO = "bamboo"
6
- }
@@ -1 +0,0 @@
1
- export type SupportedDatabaseDrivers = 'com.microsoft.sqlserver.jdbc.SQLServerDriver' | 'com.mysql.jdbc.Driver' | 'oracle.jdbc.OracleDriver' | 'org.postgresql.Driver';
@@ -1 +0,0 @@
1
- export type SupportedDatabaseEngines = 'postgresql' | 'mysql' | 'mssql';