@revoengine/cli 1.0.10 → 1.0.11
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/README.md +312 -33
- package/dist/src/cli.js +58 -7
- package/dist/src/client.d.ts +356 -5
- package/dist/src/client.js +803 -19
- package/dist/src/commands/auth.js +4 -2
- package/dist/src/commands/component.js +260 -141
- package/dist/src/commands/database-schemas.d.ts +2 -0
- package/dist/src/commands/database-schemas.js +188 -0
- package/dist/src/commands/database-views.d.ts +2 -0
- package/dist/src/commands/database-views.js +123 -0
- package/dist/src/commands/endpoints.js +114 -0
- package/dist/src/commands/env.js +44 -24
- package/dist/src/commands/events.d.ts +2 -0
- package/dist/src/commands/events.js +146 -0
- package/dist/src/commands/groups.d.ts +2 -0
- package/dist/src/commands/groups.js +169 -0
- package/dist/src/commands/index.d.ts +8 -0
- package/dist/src/commands/index.js +8 -0
- package/dist/src/commands/job-templates.d.ts +2 -0
- package/dist/src/commands/job-templates.js +101 -0
- package/dist/src/commands/metadata.js +29 -7
- package/dist/src/commands/project.js +10 -3
- package/dist/src/commands/role-groups.d.ts +2 -0
- package/dist/src/commands/role-groups.js +152 -0
- package/dist/src/commands/schedules.d.ts +2 -0
- package/dist/src/commands/schedules.js +141 -0
- package/dist/src/commands/terminal-service.d.ts +38 -0
- package/dist/src/commands/terminal-service.js +210 -0
- package/dist/src/commands/terminal.d.ts +22 -0
- package/dist/src/commands/terminal.js +511 -0
- package/dist/src/component-lock.d.ts +100 -2
- package/dist/src/component-lock.js +304 -15
- package/dist/src/config.d.ts +10 -2
- package/dist/src/config.js +49 -14
- package/dist/src/database-schema-artifacts.d.ts +7 -0
- package/dist/src/database-schema-artifacts.js +8 -0
- package/dist/src/env-sync.d.ts +0 -3
- package/dist/src/env-sync.js +3 -19
- package/dist/src/metadata-backfill.d.ts +16 -6
- package/dist/src/metadata-backfill.js +1069 -18
- package/dist/src/project.d.ts +2 -0
- package/dist/src/project.js +4 -17
- package/dist/src/prompt.js +10 -18
- package/dist/src/resource-metadata.d.ts +1 -0
- package/dist/src/resource-metadata.js +3 -0
- package/dist/src/resource-syncs/database-schema-sync.d.ts +117 -0
- package/dist/src/resource-syncs/database-schema-sync.js +2289 -0
- package/dist/src/resource-syncs/database-view-sync.d.ts +124 -0
- package/dist/src/resource-syncs/database-view-sync.js +1317 -0
- package/dist/src/resource-syncs/endpoint-sync.d.ts +96 -0
- package/dist/src/resource-syncs/endpoint-sync.js +1283 -0
- package/dist/src/resource-syncs/event-sync.d.ts +99 -0
- package/dist/src/resource-syncs/event-sync.js +949 -0
- package/dist/src/resource-syncs/group-sync.d.ts +86 -0
- package/dist/src/resource-syncs/group-sync.js +882 -0
- package/dist/src/resource-syncs/job-template-sync.d.ts +85 -0
- package/dist/src/resource-syncs/job-template-sync.js +782 -0
- package/dist/src/resource-syncs/role-group-sync.d.ts +83 -0
- package/dist/src/resource-syncs/role-group-sync.js +597 -0
- package/dist/src/resource-syncs/schedule-sync.d.ts +111 -0
- package/dist/src/resource-syncs/schedule-sync.js +1302 -0
- package/dist/src/resource-syncs/util.d.ts +19 -0
- package/dist/src/resource-syncs/util.js +116 -0
- package/dist/src/runtime-view.d.ts +1 -0
- package/dist/src/runtime-view.js +6 -1
- package/dist/src/sync-output.d.ts +38 -0
- package/dist/src/sync-output.js +131 -0
- package/dist/src/tracked-resources.d.ts +1 -1
- package/dist/src/tracked-resources.js +26 -2
- package/dist/src/types.d.ts +224 -0
- package/dist/src/ui.d.ts +3 -0
- package/dist/src/ui.js +67 -18
- package/dist/src/utils.d.ts +2 -0
- package/dist/src/utils.js +64 -0
- package/dist/src/workspace-component.d.ts +2 -0
- package/dist/src/workspace-component.js +34 -0
- package/dist/src/workspace-resource.d.ts +2 -0
- package/dist/src/workspace-resource.js +52 -0
- package/package.json +8 -3
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { RevoClient } from '../client.ts';
|
|
2
|
+
export declare const JOB_TEMPLATES_DIRECTORY = "JobTemplates";
|
|
3
|
+
export declare const JOB_TEMPLATE_MANIFEST_FILE = "job-template.json";
|
|
4
|
+
export type JobTemplateManifest = {
|
|
5
|
+
kind: 'job-template';
|
|
6
|
+
stableKey: string;
|
|
7
|
+
name: string;
|
|
8
|
+
category?: string | null;
|
|
9
|
+
description?: string;
|
|
10
|
+
metadata: Record<string, unknown>;
|
|
11
|
+
component: {
|
|
12
|
+
stableKey: string;
|
|
13
|
+
};
|
|
14
|
+
timeout?: number;
|
|
15
|
+
options?: unknown;
|
|
16
|
+
inputs?: unknown;
|
|
17
|
+
migration?: {
|
|
18
|
+
componentBinding?: 'pinned-unsupported';
|
|
19
|
+
executionPrincipal?: 'excluded';
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export type JobTemplatePullResult = {
|
|
23
|
+
pulled: Array<{
|
|
24
|
+
manifest: JobTemplateManifest;
|
|
25
|
+
targetPath: string;
|
|
26
|
+
}>;
|
|
27
|
+
warnings: Array<{
|
|
28
|
+
stableKey: string;
|
|
29
|
+
reason: string;
|
|
30
|
+
}>;
|
|
31
|
+
};
|
|
32
|
+
export type JobTemplatePushResult = {
|
|
33
|
+
stableKey: string;
|
|
34
|
+
action: 'create' | 'update' | 'noop' | 'orphan' | 'skipped';
|
|
35
|
+
status: 'deployed' | 'skipped' | 'failed';
|
|
36
|
+
targetPath: string;
|
|
37
|
+
reason?: string;
|
|
38
|
+
error?: string;
|
|
39
|
+
};
|
|
40
|
+
export type JobTemplatePlanStatus = 'clean' | 'create' | 'safe-update' | 'remote-changed' | 'conflict' | 'missing-lock' | 'orphan' | 'collision' | 'skipped';
|
|
41
|
+
export type JobTemplatePlanItem = {
|
|
42
|
+
status: JobTemplatePlanStatus;
|
|
43
|
+
stableKey?: string;
|
|
44
|
+
name: string;
|
|
45
|
+
reason?: string;
|
|
46
|
+
changedFields?: string[];
|
|
47
|
+
desiredHash?: string;
|
|
48
|
+
currentHash?: string;
|
|
49
|
+
baselineHash?: string;
|
|
50
|
+
componentStableKey?: string;
|
|
51
|
+
};
|
|
52
|
+
export type JobTemplatesPlan = {
|
|
53
|
+
resourceType: 'job-template';
|
|
54
|
+
env: string;
|
|
55
|
+
counts: Record<JobTemplatePlanStatus, number>;
|
|
56
|
+
blockers: string[];
|
|
57
|
+
warnings: string[];
|
|
58
|
+
items: JobTemplatePlanItem[];
|
|
59
|
+
exclusions: string[];
|
|
60
|
+
};
|
|
61
|
+
export declare function jobTemplateManifestPath(workspaceRoot: string, manifest: JobTemplateManifest): string;
|
|
62
|
+
export declare function hashPortableJobTemplate(manifest: JobTemplateManifest): string;
|
|
63
|
+
export declare function buildJobTemplatesPlan(input: {
|
|
64
|
+
client: RevoClient;
|
|
65
|
+
cwd: string;
|
|
66
|
+
envName: string;
|
|
67
|
+
stableKeyName: string;
|
|
68
|
+
}): Promise<JobTemplatesPlan>;
|
|
69
|
+
export declare function pullJobTemplatesToWorkspace(input: {
|
|
70
|
+
client: RevoClient;
|
|
71
|
+
cwd: string;
|
|
72
|
+
envName: string;
|
|
73
|
+
stableKeyName: string;
|
|
74
|
+
force?: boolean;
|
|
75
|
+
}): Promise<JobTemplatePullResult>;
|
|
76
|
+
export declare function pushJobTemplates(input: {
|
|
77
|
+
client: RevoClient;
|
|
78
|
+
cwd: string;
|
|
79
|
+
envName: string;
|
|
80
|
+
stableKeyName: string;
|
|
81
|
+
force?: boolean;
|
|
82
|
+
}): Promise<{
|
|
83
|
+
plan: JobTemplatesPlan;
|
|
84
|
+
results: JobTemplatePushResult[];
|
|
85
|
+
}>;
|