@supacloud/compiler 0.47.2 → 0.48.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.
- package/DELIVERY.md +1 -1
- package/dist/cli.js +540 -24
- package/dist/contract-manifest.d.ts +53 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +540 -24
- package/dist/migration-app-version.d.ts +1 -1
- package/dist/migration-assess.d.ts +2 -0
- package/dist/migration-elysia-version.d.ts +1 -1
- package/dist/types.d.ts +26 -0
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ApplicationGraph } from "./types";
|
|
1
|
+
import type { ApplicationGraph, FeaturePersistenceNode } from "./types";
|
|
2
2
|
export interface ContractManifest {
|
|
3
3
|
version: 1;
|
|
4
4
|
commands: Array<{
|
|
@@ -7,14 +7,66 @@ export interface ContractManifest {
|
|
|
7
7
|
module: string;
|
|
8
8
|
permission?: string;
|
|
9
9
|
rpc?: string;
|
|
10
|
+
branches?: Array<{
|
|
11
|
+
when: string;
|
|
12
|
+
adapter: string;
|
|
13
|
+
transaction: "required" | "none";
|
|
14
|
+
idempotency: "required" | "none";
|
|
15
|
+
auditEvent?: string;
|
|
16
|
+
boundary?: "database" | "external";
|
|
17
|
+
}>;
|
|
10
18
|
transaction: "required" | "none";
|
|
11
19
|
idempotency: "required" | "none";
|
|
20
|
+
tenantScope?: "required" | "none";
|
|
12
21
|
auditEvent?: string;
|
|
13
22
|
}>;
|
|
14
23
|
queries: Array<{
|
|
15
24
|
name: string;
|
|
16
25
|
className: string;
|
|
17
26
|
module: string;
|
|
27
|
+
tenantScope?: "required" | "none";
|
|
28
|
+
}>;
|
|
29
|
+
jobs: Array<{
|
|
30
|
+
name: string;
|
|
31
|
+
className: string;
|
|
32
|
+
module: string;
|
|
33
|
+
input?: string;
|
|
34
|
+
inputKind?: "opaque" | "declared";
|
|
35
|
+
output?: string;
|
|
36
|
+
outputKind?: "opaque" | "declared";
|
|
37
|
+
mode?: "task" | "workflow";
|
|
38
|
+
idempotency?: "required" | "none";
|
|
39
|
+
tenantScope?: "required" | "none";
|
|
40
|
+
}>;
|
|
41
|
+
features: Array<{
|
|
42
|
+
name: string;
|
|
43
|
+
states: string[];
|
|
44
|
+
tenantField?: string;
|
|
45
|
+
transitions: Array<{
|
|
46
|
+
name: string;
|
|
47
|
+
from: string;
|
|
48
|
+
to: string;
|
|
49
|
+
permission?: string;
|
|
50
|
+
command?: string;
|
|
51
|
+
route?: string;
|
|
52
|
+
routeBinding?: "command" | "controller";
|
|
53
|
+
transaction?: "required" | "none";
|
|
54
|
+
idempotency?: "required" | "none";
|
|
55
|
+
audit?: string;
|
|
56
|
+
job?: string;
|
|
57
|
+
jobDetails?: {
|
|
58
|
+
name: string;
|
|
59
|
+
className: string;
|
|
60
|
+
input?: string;
|
|
61
|
+
inputKind?: "opaque" | "declared";
|
|
62
|
+
output?: string;
|
|
63
|
+
outputKind?: "opaque" | "declared";
|
|
64
|
+
mode?: "task" | "workflow";
|
|
65
|
+
idempotency?: "required" | "none";
|
|
66
|
+
tenantScope?: "required" | "none";
|
|
67
|
+
};
|
|
68
|
+
persistence?: FeaturePersistenceNode;
|
|
69
|
+
}>;
|
|
18
70
|
}>;
|
|
19
71
|
routes: Array<{
|
|
20
72
|
method: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ export { DEFAULT_SUPACLOUD_CONFIG, compileOptionsFromConfig, defineSupacloudConf
|
|
|
52
52
|
export type { SupaCloudConfig } from "./config";
|
|
53
53
|
export { camelName } from "./util";
|
|
54
54
|
export { ANGULAR_ENTERPRISE_RULES, CLEAN_ARCHITECTURE_RULES, MODULAR_MONOLITH_RULES, MODULE_BOUNDARY_PROFILES, getModuleBoundaryPreset, getModuleBoundaryProfile, resolveModuleBoundaries, } from "./profiles";
|
|
55
|
-
export type { ApplicationGraph, AspectRefNode, CachedModuleEntry, CheckProjectResult, CommandExecutionCapabilities, CommandNode, CompileOptions, DatabaseGovernanceOptions, CompileResult, CompileStats, ControllerNode, DependencyGraphCache, DependencyGraphIndex, Diagnostic, DiagnosticFix, EffectCompilerOptions, EffectErrorMappingNode, EffectRetryPolicy, EffectRouteNode, ModuleBoundaryPresetName, ModuleBoundaryProfile, ModuleBoundaryRule, ModuleNode, JobNode, ProviderKind, ProviderNode, QueryNode, RouteNode, Scope, TokenKind, TypeSafetyOptions, ValidateOptions, WatchEvent, WatchHandle, WatchOptions, FeatureSpecNode, FeatureTransitionNode, GraphqlOptions, GraphqlContractSummary, OpenApiOptions, OpenApiSecurityScheme, OpenApiServer, } from "./types";
|
|
55
|
+
export type { ApplicationGraph, AspectRefNode, CachedModuleEntry, CheckProjectResult, CommandExecutionCapabilities, CommandNode, CompileOptions, DatabaseGovernanceOptions, CompileResult, CompileStats, ControllerNode, DependencyGraphCache, DependencyGraphIndex, Diagnostic, DiagnosticFix, EffectCompilerOptions, EffectErrorMappingNode, EffectRetryPolicy, EffectRouteNode, ModuleBoundaryPresetName, ModuleBoundaryProfile, ModuleBoundaryRule, ModuleNode, JobNode, ProviderKind, ProviderNode, QueryNode, RouteNode, Scope, TokenKind, TypeSafetyOptions, ValidateOptions, WatchEvent, WatchHandle, WatchOptions, FeatureSpecNode, FeatureTransitionNode, FeaturePersistenceNode, GraphqlOptions, GraphqlContractSummary, OpenApiOptions, OpenApiSecurityScheme, OpenApiServer, } from "./types";
|
|
56
56
|
export { inspectRouteContracts, validateRouteContracts } from "./route-contracts";
|
|
57
57
|
export { validateEffectPolicies, validateJobPolicies } from "./effect-governance";
|
|
58
58
|
export { pullGraphqlSchema } from "./graphql-schema";
|