dcdx 1.3.0-next.26 → 1.3.0-next.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -3,7 +3,7 @@ import { program } from 'commander';
3
3
  import { realpathSync, existsSync } from 'fs';
4
4
  import { dirname, join } from 'path';
5
5
 
6
- var version = "1.3.0-next.26";
6
+ var version = "1.3.0-next.27";
7
7
 
8
8
  const toAbsolutePath = (relativePath) => {
9
9
  const [, filePath] = process.argv;
@@ -1,3 +1,3 @@
1
- import { TBuildOptions, TDebugOptions } from '../types/AMPS';
2
1
  import { TSupportedApplications } from '../types/Application';
3
- export declare const FileWatcher: (name: TSupportedApplications, options: TBuildOptions | TDebugOptions, mavenOpts: Array<string>, installOnly?: boolean) => import("chokidar").FSWatcher;
2
+ import { TFileWatcherOptions } from '../types/FileWatcher';
3
+ export declare const FileWatcher: (name: TSupportedApplications, options: TFileWatcherOptions, mavenOpts: Array<string>, installOnly?: boolean) => import("chokidar").FSWatcher;
@@ -1,3 +1,3 @@
1
- import { TBuildOptions, TDebugOptions } from '../types/AMPS';
2
1
  import { TSupportedApplications } from '../types/Application';
3
- export declare const Installer: (name: TSupportedApplications, path: string, options: TBuildOptions | TDebugOptions) => Promise<void>;
2
+ import { TInstallerOptions } from '../types/Installer';
3
+ export declare const Installer: (name: TSupportedApplications, path: string, options: TInstallerOptions) => Promise<void>;
@@ -38,24 +38,46 @@ export declare const APTTestMessages: z.ZodObject<{
38
38
  success: string;
39
39
  failure: (args_0: "baseline" | "regression" | "one-node" | "two-node" | "four-node", args_1: string, args_2: "jira" | "confluence" | "bitbucket" | "bamboo", args_3: string, args_4: string, args_5: Partial<Record<"path" | "Summary run status" | "Application nodes count" | "Finished" | "Compliant" | "Success" | "Has app-specific actions", string | undefined>>, ...args_6: unknown[]) => unknown;
40
40
  }>;
41
+ export declare const APTProvisionArgs: z.ZodObject<{
42
+ cwd: z.ZodString;
43
+ product: z.ZodEnum<["jira", "confluence", "bitbucket", "bamboo"]>;
44
+ environment: z.ZodString;
45
+ nodes: z.ZodNumber;
46
+ force: z.ZodOptional<z.ZodBoolean>;
47
+ }, "strip", z.ZodTypeAny, {
48
+ cwd: string;
49
+ product: "jira" | "confluence" | "bitbucket" | "bamboo";
50
+ environment: string;
51
+ nodes: number;
52
+ force?: boolean | undefined;
53
+ }, {
54
+ cwd: string;
55
+ product: "jira" | "confluence" | "bitbucket" | "bamboo";
56
+ environment: string;
57
+ nodes: number;
58
+ force?: boolean | undefined;
59
+ }>;
41
60
  export declare const APTProvisionOptions: z.ZodObject<{
42
61
  cwd: z.ZodString;
43
62
  product: z.ZodEnum<["jira", "confluence", "bitbucket", "bamboo"]>;
44
63
  environment: z.ZodOptional<z.ZodString>;
45
- appKey: z.ZodOptional<z.ZodString>;
64
+ nodes: z.ZodOptional<z.ZodNumber>;
46
65
  force: z.ZodOptional<z.ZodBoolean>;
66
+ appKey: z.ZodOptional<z.ZodString>;
47
67
  }, "strip", z.ZodTypeAny, {
48
68
  cwd: string;
49
69
  product: "jira" | "confluence" | "bitbucket" | "bamboo";
50
70
  environment?: string | undefined;
51
- appKey?: string | undefined;
71
+ nodes?: number | undefined;
52
72
  force?: boolean | undefined;
73
+ appKey?: string | undefined;
53
74
  }, {
54
75
  cwd: string;
55
76
  product: "jira" | "confluence" | "bitbucket" | "bamboo";
56
77
  environment?: string | undefined;
57
- appKey?: string | undefined;
78
+ nodes?: number | undefined;
58
79
  force?: boolean | undefined;
80
+ appKey?: string | undefined;
59
81
  }>;
60
82
  export declare const APTPerformanceTestArgs: z.ZodObject<{
61
83
  cwd: z.ZodString;
@@ -63,8 +85,8 @@ export declare const APTPerformanceTestArgs: z.ZodObject<{
63
85
  outputDir: z.ZodOptional<z.ZodString>;
64
86
  product: z.ZodEnum<["jira", "confluence", "bitbucket", "bamboo"]>;
65
87
  environment: z.ZodString;
66
- appKey: z.ZodString;
67
88
  force: z.ZodOptional<z.ZodBoolean>;
89
+ appKey: z.ZodString;
68
90
  appLicense: z.ZodString;
69
91
  }, "strip", z.ZodTypeAny, {
70
92
  cwd: string;
@@ -90,8 +112,8 @@ export declare const APTPerformanceTestOptions: z.ZodObject<{
90
112
  outputDir: z.ZodString;
91
113
  product: z.ZodEnum<["jira", "confluence", "bitbucket", "bamboo"]>;
92
114
  environment: z.ZodString;
93
- appKey: z.ZodOptional<z.ZodString>;
94
115
  force: z.ZodOptional<z.ZodBoolean>;
116
+ appKey: z.ZodOptional<z.ZodString>;
95
117
  appLicense: z.ZodOptional<z.ZodString>;
96
118
  baseUrl: z.ZodOptional<z.ZodString>;
97
119
  aws_access_key_id: z.ZodOptional<z.ZodString>;
@@ -103,8 +125,8 @@ export declare const APTPerformanceTestOptions: z.ZodObject<{
103
125
  product: "jira" | "confluence" | "bitbucket" | "bamboo";
104
126
  environment: string;
105
127
  license: string;
106
- appKey?: string | undefined;
107
128
  force?: boolean | undefined;
129
+ appKey?: string | undefined;
108
130
  appLicense?: string | undefined;
109
131
  baseUrl?: string | undefined;
110
132
  aws_access_key_id?: string | undefined;
@@ -115,8 +137,8 @@ export declare const APTPerformanceTestOptions: z.ZodObject<{
115
137
  product: "jira" | "confluence" | "bitbucket" | "bamboo";
116
138
  environment: string;
117
139
  license: string;
118
- appKey?: string | undefined;
119
140
  force?: boolean | undefined;
141
+ appKey?: string | undefined;
120
142
  appLicense?: string | undefined;
121
143
  baseUrl?: string | undefined;
122
144
  aws_access_key_id?: string | undefined;
@@ -141,8 +163,8 @@ export declare const APTScalabilityTestArgs: z.ZodObject<{
141
163
  outputDir: z.ZodOptional<z.ZodString>;
142
164
  product: z.ZodEnum<["jira", "confluence", "bitbucket", "bamboo"]>;
143
165
  environment: z.ZodString;
144
- appKey: z.ZodString;
145
166
  force: z.ZodOptional<z.ZodBoolean>;
167
+ appKey: z.ZodString;
146
168
  appLicense: z.ZodOptional<z.ZodString>;
147
169
  }, "strip", z.ZodTypeAny, {
148
170
  cwd: string;
@@ -168,8 +190,8 @@ export declare const APTScalabilityTestOptions: z.ZodObject<{
168
190
  outputDir: z.ZodString;
169
191
  product: z.ZodEnum<["jira", "confluence", "bitbucket", "bamboo"]>;
170
192
  environment: z.ZodString;
171
- appKey: z.ZodOptional<z.ZodString>;
172
193
  force: z.ZodOptional<z.ZodBoolean>;
194
+ appKey: z.ZodOptional<z.ZodString>;
173
195
  appLicense: z.ZodOptional<z.ZodString>;
174
196
  license: z.ZodString;
175
197
  }, "strip", z.ZodTypeAny, {
@@ -178,8 +200,8 @@ export declare const APTScalabilityTestOptions: z.ZodObject<{
178
200
  product: "jira" | "confluence" | "bitbucket" | "bamboo";
179
201
  environment: string;
180
202
  license: string;
181
- appKey?: string | undefined;
182
203
  force?: boolean | undefined;
204
+ appKey?: string | undefined;
183
205
  appLicense?: string | undefined;
184
206
  }, {
185
207
  cwd: string;
@@ -187,8 +209,8 @@ export declare const APTScalabilityTestOptions: z.ZodObject<{
187
209
  product: "jira" | "confluence" | "bitbucket" | "bamboo";
188
210
  environment: string;
189
211
  license: string;
190
- appKey?: string | undefined;
191
212
  force?: boolean | undefined;
213
+ appKey?: string | undefined;
192
214
  appLicense?: string | undefined;
193
215
  }>;
194
216
  export declare const APTScalabilityReportOptions: z.ZodObject<{
@@ -246,28 +268,31 @@ export declare const APTArgs: z.ZodIntersection<z.ZodObject<{
246
268
  cwd: z.ZodString;
247
269
  product: z.ZodEnum<["jira", "confluence", "bitbucket", "bamboo"]>;
248
270
  environment: z.ZodOptional<z.ZodString>;
249
- appKey: z.ZodOptional<z.ZodString>;
271
+ nodes: z.ZodOptional<z.ZodNumber>;
250
272
  force: z.ZodOptional<z.ZodBoolean>;
273
+ appKey: z.ZodOptional<z.ZodString>;
251
274
  }, "strip", z.ZodTypeAny, {
252
275
  cwd: string;
253
276
  product: "jira" | "confluence" | "bitbucket" | "bamboo";
254
277
  environment?: string | undefined;
255
- appKey?: string | undefined;
278
+ nodes?: number | undefined;
256
279
  force?: boolean | undefined;
280
+ appKey?: string | undefined;
257
281
  }, {
258
282
  cwd: string;
259
283
  product: "jira" | "confluence" | "bitbucket" | "bamboo";
260
284
  environment?: string | undefined;
261
- appKey?: string | undefined;
285
+ nodes?: number | undefined;
262
286
  force?: boolean | undefined;
287
+ appKey?: string | undefined;
263
288
  }>, z.ZodObject<{
264
289
  cwd: z.ZodString;
265
290
  timestamp: z.ZodOptional<z.ZodString>;
266
291
  outputDir: z.ZodOptional<z.ZodString>;
267
292
  product: z.ZodEnum<["jira", "confluence", "bitbucket", "bamboo"]>;
268
293
  environment: z.ZodString;
269
- appKey: z.ZodString;
270
294
  force: z.ZodOptional<z.ZodBoolean>;
295
+ appKey: z.ZodString;
271
296
  appLicense: z.ZodString;
272
297
  }, "strip", z.ZodTypeAny, {
273
298
  cwd: string;
@@ -290,6 +315,7 @@ export declare const APTArgs: z.ZodIntersection<z.ZodObject<{
290
315
  }>>;
291
316
  export type TAPTArgs = z.infer<typeof APTArgs>;
292
317
  export type TAPTTestMessages = z.infer<typeof APTTestMessages>;
318
+ export type TAPTProvisionArgs = z.infer<typeof APTProvisionArgs>;
293
319
  export type TAPTProvisionOptions = z.infer<typeof APTProvisionOptions>;
294
320
  export type TAPTReportArgs = z.infer<typeof APTReportArgs>;
295
321
  export type TPerformanceTestTypes = z.infer<typeof PerformanceTestTypes>;
@@ -0,0 +1,36 @@
1
+ import { z } from 'zod';
2
+ export declare const FileWatcherOptions: z.ZodObject<{
3
+ install: z.ZodOptional<z.ZodBoolean>;
4
+ port: z.ZodOptional<z.ZodNumber>;
5
+ username: z.ZodOptional<z.ZodString>;
6
+ password: z.ZodOptional<z.ZodString>;
7
+ ext: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
8
+ outputDirectory: z.ZodOptional<z.ZodString>;
9
+ activateProfiles: z.ZodOptional<z.ZodString>;
10
+ cwd: z.ZodOptional<z.ZodString>;
11
+ exec: z.ZodOptional<z.ZodString>;
12
+ obr: z.ZodOptional<z.ZodBoolean>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ install?: boolean | undefined;
15
+ port?: number | undefined;
16
+ username?: string | undefined;
17
+ password?: string | undefined;
18
+ ext?: string[] | undefined;
19
+ outputDirectory?: string | undefined;
20
+ activateProfiles?: string | undefined;
21
+ cwd?: string | undefined;
22
+ exec?: string | undefined;
23
+ obr?: boolean | undefined;
24
+ }, {
25
+ install?: boolean | undefined;
26
+ port?: number | undefined;
27
+ username?: string | undefined;
28
+ password?: string | undefined;
29
+ ext?: string[] | undefined;
30
+ outputDirectory?: string | undefined;
31
+ activateProfiles?: string | undefined;
32
+ cwd?: string | undefined;
33
+ exec?: string | undefined;
34
+ obr?: boolean | undefined;
35
+ }>;
36
+ export type TFileWatcherOptions = z.infer<typeof FileWatcherOptions>;
@@ -0,0 +1,36 @@
1
+ import { z } from 'zod';
2
+ export declare const InstallArgs: z.ZodObject<{
3
+ username: z.ZodOptional<z.ZodString>;
4
+ password: z.ZodOptional<z.ZodString>;
5
+ watch: z.ZodBoolean;
6
+ outputDirectory: z.ZodOptional<z.ZodString>;
7
+ activateProfiles: z.ZodOptional<z.ZodString>;
8
+ cwd: z.ZodOptional<z.ZodString>;
9
+ appKey: z.ZodOptional<z.ZodString>;
10
+ baseUrl: z.ZodOptional<z.ZodString>;
11
+ mpac: z.ZodOptional<z.ZodBoolean>;
12
+ obr: z.ZodOptional<z.ZodBoolean>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ watch: boolean;
15
+ username?: string | undefined;
16
+ password?: string | undefined;
17
+ outputDirectory?: string | undefined;
18
+ activateProfiles?: string | undefined;
19
+ cwd?: string | undefined;
20
+ appKey?: string | undefined;
21
+ baseUrl?: string | undefined;
22
+ mpac?: boolean | undefined;
23
+ obr?: boolean | undefined;
24
+ }, {
25
+ watch: boolean;
26
+ username?: string | undefined;
27
+ password?: string | undefined;
28
+ outputDirectory?: string | undefined;
29
+ activateProfiles?: string | undefined;
30
+ cwd?: string | undefined;
31
+ appKey?: string | undefined;
32
+ baseUrl?: string | undefined;
33
+ mpac?: boolean | undefined;
34
+ obr?: boolean | undefined;
35
+ }>;
36
+ export type TInstallArgs = z.infer<typeof InstallArgs>;
@@ -0,0 +1,21 @@
1
+ import { z } from 'zod';
2
+ export declare const InstallerOptions: z.ZodObject<{
3
+ port: z.ZodOptional<z.ZodNumber>;
4
+ username: z.ZodOptional<z.ZodString>;
5
+ password: z.ZodOptional<z.ZodString>;
6
+ cwd: z.ZodOptional<z.ZodString>;
7
+ obr: z.ZodOptional<z.ZodBoolean>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ port?: number | undefined;
10
+ username?: string | undefined;
11
+ password?: string | undefined;
12
+ cwd?: string | undefined;
13
+ obr?: boolean | undefined;
14
+ }, {
15
+ port?: number | undefined;
16
+ username?: string | undefined;
17
+ password?: string | undefined;
18
+ cwd?: string | undefined;
19
+ obr?: boolean | undefined;
20
+ }>;
21
+ export type TInstallerOptions = z.infer<typeof InstallerOptions>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dcdx",
3
- "version": "1.3.0-next.26",
3
+ "version": "1.3.0-next.27",
4
4
  "author": "Collabsoft <info@collabsoft.net>",
5
5
  "description": "The Unofficial CLI for Atlassian Data Center Plugin Development",
6
6
  "type": "module",
@@ -48,6 +48,7 @@
48
48
  "@rollup/plugin-node-resolve": "15.2.3",
49
49
  "@rollup/plugin-terser": "0.4.4",
50
50
  "@types/cli-progress": "^3",
51
+ "@types/content-disposition": "^0",
51
52
  "@types/dockerode": "3.3.28",
52
53
  "@types/fs-extra": "^11",
53
54
  "@types/inquirer": "^9",
@@ -76,6 +77,7 @@
76
77
  "chokidar": "3.6.0",
77
78
  "cli-progress": "3.12.0",
78
79
  "commander": "12.0.0",
80
+ "content-disposition": "0.5.4",
79
81
  "date-fns": "4.1.0",
80
82
  "docker-compose": "0.24.8",
81
83
  "dockerode": "4.0.2",