@firestartr/cli 2.11.0-snapshot-org-secrets-01 → 2.11.0-snapshot-org-secrets-03
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/build/index.js +2 -2
- package/build/packages/cdk8s_renderer/src/charts/catalog/groupChart.d.ts +1 -1
- package/build/packages/cdk8s_renderer/src/claims/stitching/errors.d.ts +14 -0
- package/build/packages/cdk8s_renderer/src/claims/stitching/protectedPaths.d.ts +3 -0
- package/build/packages/cdk8s_renderer/src/claims/stitching/stitching.d.ts +20 -0
- package/build/packages/cdk8s_renderer/src/claims/stitching/validateFeatureDescriptors.d.ts +1 -0
- package/build/packages/cdk8s_renderer/src/overriders/featureOverride.d.ts +2 -11
- package/build/packages/features_preparer/index.d.ts +3 -0
- package/build/packages/features_preparer/src/index.d.ts +5 -2
- package/build/packages/features_preparer/src/installer.d.ts +2 -0
- package/build/packages/features_preparer/src/renderer.d.ts +2 -0
- package/build/packages/features_renderer/index.d.ts +4 -1
- package/build/packages/features_renderer/src/auxiliar.d.ts +6 -3
- package/build/packages/features_renderer/src/render.d.ts +2 -1
- package/build/packages/features_renderer/src/schema.d.ts +7 -1
- package/build/packages/github/index.d.ts +2 -2
- package/build/packages/github/src/with_profile.d.ts +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/build/index.js
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 52712960 bytes
|
|
4
|
+
sha256: c8194ff5dd3d4fd89d78ca815075ad7d323eb80e7bd4f3ea0e3f1c244b1e4063
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type StitchingViolationReason = 'protected-path' | 'overwrite-protected' | 'duplicate-path' | 'user-declared-path';
|
|
2
|
+
export interface StitchingViolation {
|
|
3
|
+
feature: string;
|
|
4
|
+
op: string;
|
|
5
|
+
path: string;
|
|
6
|
+
reason: StitchingViolationReason;
|
|
7
|
+
conflictingFeature?: string;
|
|
8
|
+
message: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class StitchingError extends Error {
|
|
11
|
+
violations: StitchingViolation[];
|
|
12
|
+
constructor(violations: StitchingViolation[]);
|
|
13
|
+
}
|
|
14
|
+
export declare function formatStitchingError(error: StitchingError): string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface FeaturePatchEnvelope {
|
|
2
|
+
feature: string;
|
|
3
|
+
patches: Array<{
|
|
4
|
+
op: string;
|
|
5
|
+
path: string;
|
|
6
|
+
value?: unknown;
|
|
7
|
+
name?: string;
|
|
8
|
+
}>;
|
|
9
|
+
}
|
|
10
|
+
export declare function MOCK_STITCHING_FEATURES(mock?: (claim: unknown) => Promise<FeaturePatchEnvelope[]>): void;
|
|
11
|
+
export declare const STITCHED_CLAIM: unique symbol;
|
|
12
|
+
export declare function stitchClaim(claimAfterDefaults: unknown, preCollectedEnvelopes?: FeaturePatchEnvelope[], originalClaim?: unknown): Promise<unknown>;
|
|
13
|
+
export declare function extractClaimPatches(rendered: {
|
|
14
|
+
claimPatches?: unknown;
|
|
15
|
+
}): Array<{
|
|
16
|
+
op: string;
|
|
17
|
+
path: string;
|
|
18
|
+
value?: unknown;
|
|
19
|
+
name?: string;
|
|
20
|
+
}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function validateFeatureDescriptors(claim: unknown): void;
|
|
@@ -12,7 +12,7 @@ export declare class FeaturesOverrider extends OverriderPatches {
|
|
|
12
12
|
getFeatureConfig(cr: any): any;
|
|
13
13
|
setUpAndRunRenderer(cr: any): any;
|
|
14
14
|
__validate(): Promise<boolean>;
|
|
15
|
-
__patches(claim: any, _previousCR: any): Promise<
|
|
15
|
+
__patches(claim: any, _previousCR: any): Promise<{
|
|
16
16
|
validate(_cr: any): boolean;
|
|
17
17
|
apply(cr: any): Promise<any>;
|
|
18
18
|
identify(): string;
|
|
@@ -20,14 +20,5 @@ export declare class FeaturesOverrider extends OverriderPatches {
|
|
|
20
20
|
applicableProviders: string[];
|
|
21
21
|
};
|
|
22
22
|
post(cr: any): Promise<import("../claims/github/repositoryFeature").IGithubRepositoryFeatureClaim>;
|
|
23
|
-
|
|
24
|
-
} | {
|
|
25
|
-
isPostPatch: boolean;
|
|
26
|
-
validate(): boolean;
|
|
27
|
-
apply(cr: any): Promise<any>;
|
|
28
|
-
identify(): string;
|
|
29
|
-
applicable(): {
|
|
30
|
-
applicableProviders: string[];
|
|
31
|
-
};
|
|
32
|
-
})[]>;
|
|
23
|
+
}[]>;
|
|
33
24
|
}
|
|
@@ -5,5 +5,8 @@ declare const _default: {
|
|
|
5
5
|
renderFeatureFromPath: typeof import("./src/renderer").renderFeatureFromPath;
|
|
6
6
|
getFeatureConfig: typeof import("./src/installer").getFeatureConfig;
|
|
7
7
|
getFeatureConfigFromRef: typeof import("./src/installer").getFeatureConfigFromRef;
|
|
8
|
+
getFeatureClaimPatches: typeof import("./src/installer").getFeatureClaimPatches;
|
|
9
|
+
getFeatureClaimPatchesFromRef: typeof import("./src/installer").getFeatureClaimPatchesFromRef;
|
|
10
|
+
getFeatureClaimPatchesFromPath: typeof import("./src/renderer").getFeatureClaimPatchesFromPath;
|
|
8
11
|
};
|
|
9
12
|
export default _default;
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
import { getFeatureConfigFromRef, getFeatureConfig, prepareFeature } from './installer';
|
|
2
|
-
import { renderFeature, renderFeatureFromPath } from './renderer';
|
|
1
|
+
import { getFeatureConfigFromRef, getFeatureConfig, getFeatureClaimPatches, getFeatureClaimPatchesFromRef, prepareFeature } from './installer';
|
|
2
|
+
import { renderFeature, renderFeatureFromPath, getFeatureClaimPatchesFromPath } from './renderer';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
renderFeature: typeof renderFeature;
|
|
5
5
|
renderFeatureFromPath: typeof renderFeatureFromPath;
|
|
6
|
+
getFeatureClaimPatches: typeof getFeatureClaimPatches;
|
|
7
|
+
getFeatureClaimPatchesFromRef: typeof getFeatureClaimPatchesFromRef;
|
|
8
|
+
getFeatureClaimPatchesFromPath: typeof getFeatureClaimPatchesFromPath;
|
|
6
9
|
getFeatureConfigFromRef: typeof getFeatureConfigFromRef;
|
|
7
10
|
getFeatureConfig: typeof getFeatureConfig;
|
|
8
11
|
prepareFeature: typeof prepareFeature;
|
|
@@ -2,6 +2,8 @@ export declare function getFeatureConfigFromRef(featureName: string, featureRef:
|
|
|
2
2
|
featureArgs?: any, repo?: string, owner?: string): Promise<any>;
|
|
3
3
|
export declare function getFeatureConfig(featureName: string, version: string, featureOwner: any, // -> cr
|
|
4
4
|
featureArgs?: any, repo?: string, owner?: string): Promise<any>;
|
|
5
|
+
export declare function getFeatureClaimPatches(featureName: string, version: string, featureOwner: any, featureArgs?: any, repo?: string, owner?: string): Promise<any[]>;
|
|
6
|
+
export declare function getFeatureClaimPatchesFromRef(featureName: string, featureRef: string, featureOwner: any, featureArgs?: any, repo?: string, owner?: string): Promise<any[]>;
|
|
5
7
|
export declare function resolveFeatureCommit(owner: string, repo: string, reference: string): Promise<{
|
|
6
8
|
sha: string;
|
|
7
9
|
tags: string[];
|
|
@@ -1,2 +1,4 @@
|
|
|
1
1
|
export declare function renderFeature(featureName: string, version: string, owner: any, repo: any, featureOwner: any, renderPath?: string, featureArgs?: any): any;
|
|
2
2
|
export declare function renderFeatureFromPath(extractPath: string, renderedPath: string, featureOwner: any, featureArgs?: any): any;
|
|
3
|
+
export declare function getFeatureClaimPatches(featureName: string, version: string, owner: any, repo: any, featureOwner: any, featureArgs?: any): any[];
|
|
4
|
+
export declare function getFeatureClaimPatchesFromPath(extractPath: string, featureOwner: any, featureArgs?: any): any[];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import validate from './src/validate';
|
|
2
|
-
import render, { buildContext, renderContent, expandFiles } from './src/render';
|
|
2
|
+
import render, { buildContext, renderContent, expandFiles, getClaimPatches } from './src/render';
|
|
3
3
|
import updateFileContent from './src/update_file';
|
|
4
4
|
import { validateFeatureArgs } from './src/featureArgsValidation';
|
|
5
|
+
export { getClaimPatches, buildContext, renderContent, expandFiles };
|
|
5
6
|
declare const _default: {
|
|
6
7
|
validate: typeof validate;
|
|
7
8
|
render: typeof render;
|
|
@@ -12,10 +13,12 @@ declare const _default: {
|
|
|
12
13
|
buildExpectedOutput: (config: import("./src/auxiliar").FeatureConfig, renderDir: string) => import("./src/auxiliar").ExpectedOutput;
|
|
13
14
|
loadAndValidateRenderTests: (featurePath: string) => import("./src/auxiliar").RenderTestsFile;
|
|
14
15
|
resolveCrPath: (featurePath: string, crRelPath: string) => string;
|
|
16
|
+
resolveClaimPath: (featurePath: string, claimRelPath: string) => string;
|
|
15
17
|
};
|
|
16
18
|
buildContext: typeof buildContext;
|
|
17
19
|
renderContent: typeof renderContent;
|
|
18
20
|
expandFiles: typeof expandFiles;
|
|
19
21
|
validateFeatureArgs: typeof validateFeatureArgs;
|
|
22
|
+
getClaimPatches: typeof getClaimPatches;
|
|
20
23
|
};
|
|
21
24
|
export default _default;
|
|
@@ -11,7 +11,7 @@ export interface ConfigFile {
|
|
|
11
11
|
}
|
|
12
12
|
export interface FeatureConfig {
|
|
13
13
|
files?: ConfigFile[];
|
|
14
|
-
|
|
14
|
+
claimPatches?: unknown[];
|
|
15
15
|
}
|
|
16
16
|
export interface ExpectedFile {
|
|
17
17
|
localPath: string;
|
|
@@ -31,12 +31,13 @@ export interface Traceability {
|
|
|
31
31
|
}
|
|
32
32
|
export interface ExpectedOutput {
|
|
33
33
|
files: ExpectedFile[];
|
|
34
|
-
|
|
34
|
+
claimPatches: unknown[];
|
|
35
35
|
traceability?: Traceability;
|
|
36
36
|
}
|
|
37
37
|
export interface RenderTest {
|
|
38
38
|
name: string;
|
|
39
|
-
cr
|
|
39
|
+
cr?: string;
|
|
40
|
+
claim?: string;
|
|
40
41
|
args?: Record<string, unknown>;
|
|
41
42
|
}
|
|
42
43
|
export interface RenderTestsFile {
|
|
@@ -71,6 +72,7 @@ export interface RenderContext {
|
|
|
71
72
|
export declare function formatAjvErrors(errors: ErrorObject[] | null | undefined): string;
|
|
72
73
|
declare function loadAndValidateRenderTests(featurePath: string): RenderTestsFile;
|
|
73
74
|
declare function resolveCrPath(featurePath: string, crRelPath: string): string;
|
|
75
|
+
declare function resolveClaimPath(featurePath: string, claimRelPath: string): string;
|
|
74
76
|
export declare function listYamlFiles(dir: string): string[];
|
|
75
77
|
declare function loadYaml<T = unknown>(file: string): T;
|
|
76
78
|
declare function mkNamedTmp(...names: string[]): Promise<string>;
|
|
@@ -83,5 +85,6 @@ declare const _default: {
|
|
|
83
85
|
buildExpectedOutput: typeof buildExpectedOutput;
|
|
84
86
|
loadAndValidateRenderTests: typeof loadAndValidateRenderTests;
|
|
85
87
|
resolveCrPath: typeof resolveCrPath;
|
|
88
|
+
resolveClaimPath: typeof resolveClaimPath;
|
|
86
89
|
};
|
|
87
90
|
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export default function render(featurePath: string, featureRenderPath: string, entity: any, firestartrConfig?: any, featureArgs?: any): any;
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function getClaimPatches(featurePath: string, entity: any, firestartrConfig?: any, featureArgs?: any): any[];
|
|
3
|
+
export declare function buildContext(stitchedClaim: any, args: any, firestartrConfig: any, featureArgs: any): any;
|
|
3
4
|
export declare function expandFiles(featurePath: string, configData: any, context: any): void;
|
|
4
5
|
export declare function renderContent(template: string, ctx: any): any;
|
|
5
6
|
export declare function assertNonEmptyString(value: unknown, what: string): asserts value is string;
|
|
@@ -18,6 +18,12 @@ declare const _default: {
|
|
|
18
18
|
$ref: string;
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
|
+
claimPatches: {
|
|
22
|
+
type: string;
|
|
23
|
+
items: {
|
|
24
|
+
$ref: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
21
27
|
patches: {
|
|
22
28
|
type: string;
|
|
23
29
|
patternProperties: {
|
|
@@ -129,7 +135,7 @@ declare const _default: {
|
|
|
129
135
|
type: string;
|
|
130
136
|
};
|
|
131
137
|
value: {
|
|
132
|
-
type: string;
|
|
138
|
+
type: string[];
|
|
133
139
|
};
|
|
134
140
|
};
|
|
135
141
|
required: string[];
|
|
@@ -70,7 +70,7 @@ declare const _default: {
|
|
|
70
70
|
getPrFiles: typeof import("./src/pull_request").getPrFiles;
|
|
71
71
|
filterPrBy: (filter: {
|
|
72
72
|
title: string;
|
|
73
|
-
state: "
|
|
73
|
+
state: "closed" | "all" | "open";
|
|
74
74
|
repo: string;
|
|
75
75
|
owner: string;
|
|
76
76
|
userType: "Bot" | "User";
|
|
@@ -82,7 +82,7 @@ declare const _default: {
|
|
|
82
82
|
create: (owner: string, repo: string, title: string, body: string, labels?: string[], octokit?: any) => Promise<any>;
|
|
83
83
|
update: (owner: string, repo: string, issue_number: number, title: string, body: string, labels?: string[], octokit?: any) => Promise<any>;
|
|
84
84
|
close: (owner: string, repo: string, issue_number: number, octokit?: any) => Promise<any>;
|
|
85
|
-
filterBy: (owner: string, repo: string, title: string, labels: string, state?: "
|
|
85
|
+
filterBy: (owner: string, repo: string, title: string, labels: string, state?: "closed" | "all" | "open", creator?: string, assignee?: string, octokit?: any) => Promise<any>;
|
|
86
86
|
upsertByTitle: (owner: string, repo: string, title: string, body: string, labels?: string[], octokit?: any) => Promise<any>;
|
|
87
87
|
};
|
|
88
88
|
branches: {
|
|
@@ -853,7 +853,7 @@ export declare function withProfile(profileName: string): {
|
|
|
853
853
|
create: (owner: string, repo: string, title: string, body: string, labels?: string[]) => Promise<any>;
|
|
854
854
|
update: (owner: string, repo: string, issue_number: number, title: string, body: string, labels?: string[]) => Promise<any>;
|
|
855
855
|
close: (owner: string, repo: string, issue_number: number) => Promise<any>;
|
|
856
|
-
filterBy: (owner: string, repo: string, title: string, labels: string, state?: "
|
|
856
|
+
filterBy: (owner: string, repo: string, title: string, labels: string, state?: "closed" | "all" | "open", creator?: string, assignee?: string) => Promise<any>;
|
|
857
857
|
upsertByTitle: (owner: string, repo: string, title: string, body: string, labels?: string[]) => Promise<any>;
|
|
858
858
|
};
|
|
859
859
|
workflow: {
|