@firestartr/cli 2.9.0-snapshot-org-variables-section-6 → 2.9.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.
@@ -903,268 +903,6 @@ export declare enum FirestartrGithubOrganizationSettingsSpecContextProviderRefKi
903
903
  /** FirestartrProviderConfig */
904
904
  FIRESTARTR_PROVIDER_CONFIG = "FirestartrProviderConfig"
905
905
  }
906
- /**
907
- * A resource to handle GitHub Organization Actions Variables.
908
- *
909
- * @schema FirestartrGithubOrganizationVariableSection
910
- */
911
- export declare class FirestartrGithubOrganizationVariableSection extends ApiObject {
912
- /**
913
- * Returns the apiVersion and kind for "FirestartrGithubOrganizationVariableSection"
914
- */
915
- static readonly GVK: GroupVersionKind;
916
- /**
917
- * Renders a Kubernetes manifest for "FirestartrGithubOrganizationVariableSection".
918
- *
919
- * This can be used to inline resource manifests inside other objects (e.g. as templates).
920
- *
921
- * @param props initialization props
922
- */
923
- static manifest(props: FirestartrGithubOrganizationVariableSectionProps): any;
924
- /**
925
- * Defines a "FirestartrGithubOrganizationVariableSection" API object
926
- * @param scope the scope in which to define this object
927
- * @param id a scope-local name for the object
928
- * @param props initialization props
929
- */
930
- constructor(scope: Construct, id: string, props: FirestartrGithubOrganizationVariableSectionProps);
931
- /**
932
- * Renders the object to Kubernetes JSON.
933
- */
934
- toJson(): any;
935
- }
936
- /**
937
- * A resource to handle GitHub Organization Actions Variables.
938
- *
939
- * @schema FirestartrGithubOrganizationVariableSection
940
- */
941
- export interface FirestartrGithubOrganizationVariableSectionProps {
942
- /**
943
- * @schema FirestartrGithubOrganizationVariableSection#metadata
944
- */
945
- readonly metadata: ApiObjectMetadata;
946
- /**
947
- * @schema FirestartrGithubOrganizationVariableSection#spec
948
- */
949
- readonly spec: FirestartrGithubOrganizationVariableSectionSpec;
950
- }
951
- /**
952
- * Converts an object of type 'FirestartrGithubOrganizationVariableSectionProps' to JSON representation.
953
- */
954
- export declare function toJson_FirestartrGithubOrganizationVariableSectionProps(obj: FirestartrGithubOrganizationVariableSectionProps | undefined): Record<string, any> | undefined;
955
- /**
956
- * @schema FirestartrGithubOrganizationVariableSectionSpec
957
- */
958
- export interface FirestartrGithubOrganizationVariableSectionSpec {
959
- /**
960
- * GitHub organization targeted by this resource
961
- *
962
- * @schema FirestartrGithubOrganizationVariableSectionSpec#org
963
- */
964
- readonly org: string;
965
- /**
966
- * GitHub Actions organization-level variables
967
- *
968
- * @schema FirestartrGithubOrganizationVariableSectionSpec#actionsVariables
969
- */
970
- readonly actionsVariables?: FirestartrGithubOrganizationVariableSectionSpecActionsVariables[];
971
- /**
972
- * @schema FirestartrGithubOrganizationVariableSectionSpec#context
973
- */
974
- readonly context: FirestartrGithubOrganizationVariableSectionSpecContext;
975
- /**
976
- * @schema FirestartrGithubOrganizationVariableSectionSpec#firestartr
977
- */
978
- readonly firestartr: FirestartrGithubOrganizationVariableSectionSpecFirestartr;
979
- /**
980
- * @schema FirestartrGithubOrganizationVariableSectionSpec#writeConnectionSecretToRef
981
- */
982
- readonly writeConnectionSecretToRef: FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRef;
983
- }
984
- /**
985
- * Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpec' to JSON representation.
986
- */
987
- export declare function toJson_FirestartrGithubOrganizationVariableSectionSpec(obj: FirestartrGithubOrganizationVariableSectionSpec | undefined): Record<string, any> | undefined;
988
- /**
989
- * @schema FirestartrGithubOrganizationVariableSectionSpecActionsVariables
990
- */
991
- export interface FirestartrGithubOrganizationVariableSectionSpecActionsVariables {
992
- /**
993
- * Variable name matching GitHub Actions naming rules
994
- *
995
- * @schema FirestartrGithubOrganizationVariableSectionSpecActionsVariables#name
996
- */
997
- readonly name: string;
998
- /**
999
- * Variable value
1000
- *
1001
- * @schema FirestartrGithubOrganizationVariableSectionSpecActionsVariables#value
1002
- */
1003
- readonly value: string;
1004
- /**
1005
- * Visibility of the variable
1006
- *
1007
- * @schema FirestartrGithubOrganizationVariableSectionSpecActionsVariables#visibility
1008
- */
1009
- readonly visibility: FirestartrGithubOrganizationVariableSectionSpecActionsVariablesVisibility;
1010
- /**
1011
- * Repository names in org/repo format
1012
- *
1013
- * @schema FirestartrGithubOrganizationVariableSectionSpecActionsVariables#selectedRepositories
1014
- */
1015
- readonly selectedRepositories?: string[];
1016
- }
1017
- /**
1018
- * Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecActionsVariables' to JSON representation.
1019
- */
1020
- export declare function toJson_FirestartrGithubOrganizationVariableSectionSpecActionsVariables(obj: FirestartrGithubOrganizationVariableSectionSpecActionsVariables | undefined): Record<string, any> | undefined;
1021
- /**
1022
- * @schema FirestartrGithubOrganizationVariableSectionSpecContext
1023
- */
1024
- export interface FirestartrGithubOrganizationVariableSectionSpecContext {
1025
- /**
1026
- * @schema FirestartrGithubOrganizationVariableSectionSpecContext#backend
1027
- */
1028
- readonly backend: FirestartrGithubOrganizationVariableSectionSpecContextBackend;
1029
- /**
1030
- * @schema FirestartrGithubOrganizationVariableSectionSpecContext#provider
1031
- */
1032
- readonly provider: FirestartrGithubOrganizationVariableSectionSpecContextProvider;
1033
- }
1034
- /**
1035
- * Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecContext' to JSON representation.
1036
- */
1037
- export declare function toJson_FirestartrGithubOrganizationVariableSectionSpecContext(obj: FirestartrGithubOrganizationVariableSectionSpecContext | undefined): Record<string, any> | undefined;
1038
- /**
1039
- * @schema FirestartrGithubOrganizationVariableSectionSpecFirestartr
1040
- */
1041
- export interface FirestartrGithubOrganizationVariableSectionSpecFirestartr {
1042
- /**
1043
- * @schema FirestartrGithubOrganizationVariableSectionSpecFirestartr#tfStateKey
1044
- */
1045
- readonly tfStateKey: string;
1046
- }
1047
- /**
1048
- * Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecFirestartr' to JSON representation.
1049
- */
1050
- export declare function toJson_FirestartrGithubOrganizationVariableSectionSpecFirestartr(obj: FirestartrGithubOrganizationVariableSectionSpecFirestartr | undefined): Record<string, any> | undefined;
1051
- /**
1052
- * @schema FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRef
1053
- */
1054
- export interface FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRef {
1055
- /**
1056
- * @schema FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRef#name
1057
- */
1058
- readonly name: string;
1059
- /**
1060
- * @schema FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRef#outputs
1061
- */
1062
- readonly outputs: FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRefOutputs[];
1063
- }
1064
- /**
1065
- * Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRef' to JSON representation.
1066
- */
1067
- export declare function toJson_FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRef(obj: FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRef | undefined): Record<string, any> | undefined;
1068
- /**
1069
- * Visibility of the variable
1070
- *
1071
- * @schema FirestartrGithubOrganizationVariableSectionSpecActionsVariablesVisibility
1072
- */
1073
- export declare enum FirestartrGithubOrganizationVariableSectionSpecActionsVariablesVisibility {
1074
- /** all */
1075
- ALL = "all",
1076
- /** private */
1077
- PRIVATE = "private",
1078
- /** selected */
1079
- SELECTED = "selected"
1080
- }
1081
- /**
1082
- * @schema FirestartrGithubOrganizationVariableSectionSpecContextBackend
1083
- */
1084
- export interface FirestartrGithubOrganizationVariableSectionSpecContextBackend {
1085
- /**
1086
- * @schema FirestartrGithubOrganizationVariableSectionSpecContextBackend#ref
1087
- */
1088
- readonly ref: FirestartrGithubOrganizationVariableSectionSpecContextBackendRef;
1089
- }
1090
- /**
1091
- * Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecContextBackend' to JSON representation.
1092
- */
1093
- export declare function toJson_FirestartrGithubOrganizationVariableSectionSpecContextBackend(obj: FirestartrGithubOrganizationVariableSectionSpecContextBackend | undefined): Record<string, any> | undefined;
1094
- /**
1095
- * @schema FirestartrGithubOrganizationVariableSectionSpecContextProvider
1096
- */
1097
- export interface FirestartrGithubOrganizationVariableSectionSpecContextProvider {
1098
- /**
1099
- * @schema FirestartrGithubOrganizationVariableSectionSpecContextProvider#ref
1100
- */
1101
- readonly ref: FirestartrGithubOrganizationVariableSectionSpecContextProviderRef;
1102
- }
1103
- /**
1104
- * Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecContextProvider' to JSON representation.
1105
- */
1106
- export declare function toJson_FirestartrGithubOrganizationVariableSectionSpecContextProvider(obj: FirestartrGithubOrganizationVariableSectionSpecContextProvider | undefined): Record<string, any> | undefined;
1107
- /**
1108
- * @schema FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRefOutputs
1109
- */
1110
- export interface FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRefOutputs {
1111
- /**
1112
- * @schema FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRefOutputs#key
1113
- */
1114
- readonly key: string;
1115
- }
1116
- /**
1117
- * Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRefOutputs' to JSON representation.
1118
- */
1119
- export declare function toJson_FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRefOutputs(obj: FirestartrGithubOrganizationVariableSectionSpecWriteConnectionSecretToRefOutputs | undefined): Record<string, any> | undefined;
1120
- /**
1121
- * @schema FirestartrGithubOrganizationVariableSectionSpecContextBackendRef
1122
- */
1123
- export interface FirestartrGithubOrganizationVariableSectionSpecContextBackendRef {
1124
- /**
1125
- * @schema FirestartrGithubOrganizationVariableSectionSpecContextBackendRef#kind
1126
- */
1127
- readonly kind: FirestartrGithubOrganizationVariableSectionSpecContextBackendRefKind;
1128
- /**
1129
- * @schema FirestartrGithubOrganizationVariableSectionSpecContextBackendRef#name
1130
- */
1131
- readonly name: string;
1132
- }
1133
- /**
1134
- * Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecContextBackendRef' to JSON representation.
1135
- */
1136
- export declare function toJson_FirestartrGithubOrganizationVariableSectionSpecContextBackendRef(obj: FirestartrGithubOrganizationVariableSectionSpecContextBackendRef | undefined): Record<string, any> | undefined;
1137
- /**
1138
- * @schema FirestartrGithubOrganizationVariableSectionSpecContextProviderRef
1139
- */
1140
- export interface FirestartrGithubOrganizationVariableSectionSpecContextProviderRef {
1141
- /**
1142
- * @schema FirestartrGithubOrganizationVariableSectionSpecContextProviderRef#kind
1143
- */
1144
- readonly kind: FirestartrGithubOrganizationVariableSectionSpecContextProviderRefKind;
1145
- /**
1146
- * @schema FirestartrGithubOrganizationVariableSectionSpecContextProviderRef#name
1147
- */
1148
- readonly name: string;
1149
- }
1150
- /**
1151
- * Converts an object of type 'FirestartrGithubOrganizationVariableSectionSpecContextProviderRef' to JSON representation.
1152
- */
1153
- export declare function toJson_FirestartrGithubOrganizationVariableSectionSpecContextProviderRef(obj: FirestartrGithubOrganizationVariableSectionSpecContextProviderRef | undefined): Record<string, any> | undefined;
1154
- /**
1155
- * @schema FirestartrGithubOrganizationVariableSectionSpecContextBackendRefKind
1156
- */
1157
- export declare enum FirestartrGithubOrganizationVariableSectionSpecContextBackendRefKind {
1158
- /** FirestartrProviderConfig */
1159
- FIRESTARTR_PROVIDER_CONFIG = "FirestartrProviderConfig"
1160
- }
1161
- /**
1162
- * @schema FirestartrGithubOrganizationVariableSectionSpecContextProviderRefKind
1163
- */
1164
- export declare enum FirestartrGithubOrganizationVariableSectionSpecContextProviderRefKind {
1165
- /** FirestartrProviderConfig */
1166
- FIRESTARTR_PROVIDER_CONFIG = "FirestartrProviderConfig"
1167
- }
1168
906
  /**
1169
907
  * A resource to handle GitHub Organization Webhooks
1170
908
  *
@@ -3,4 +3,3 @@ export { GithubMembershipChart } from './membershipChart';
3
3
  export { GithubRepositoryChart } from './repositoryChart';
4
4
  export { GithubOrgWebhookChart } from './orgWebhookChart';
5
5
  export { GithubOrgSettingsChart } from './orgSettingsChart';
6
- export { GithubOrgVariableSectionChart } from './orgVariableSectionChart';
@@ -1,4 +1,4 @@
1
- import { GithubGroupChart, GithubMembershipChart, GithubRepositoryChart, GithubOrgWebhookChart, GithubOrgSettingsChart, GithubOrgVariableSectionChart } from './github';
1
+ import { GithubGroupChart, GithubMembershipChart, GithubRepositoryChart, GithubOrgWebhookChart, GithubOrgSettingsChart } from './github';
2
2
  import { CatalogComponentChart, CatalogDomainChart, CatalogGroupChart, CatalogSystemChart, CatalogUserChart, CatalogTFWorkspaceChart, CatalogArgoDeployChart, CatalogSecretsChart, CatalogOrgWebhookChart, CatalogApiChart } from './catalog';
3
3
  import { TFWorkspaceChart } from './workspaces/tfworkspaceChart';
4
4
  import { ArgoDeployChart } from './argocd/argodeployChart';
@@ -22,6 +22,5 @@ declare const _default: {
22
22
  SecretsChart: typeof SecretsChart;
23
23
  GithubOrgWebhookChart: typeof GithubOrgWebhookChart;
24
24
  GithubOrgSettingsChart: typeof GithubOrgSettingsChart;
25
- GithubOrgVariableSectionChart: typeof GithubOrgVariableSectionChart;
26
25
  };
27
26
  export default _default;
@@ -974,52 +974,6 @@ declare const schemas: {
974
974
  secret_scanning_push_protection_enabled_for_new_repositories: {
975
975
  type: string;
976
976
  };
977
- actions_variables: {
978
- type: string;
979
- items: {
980
- type: string;
981
- properties: {
982
- name: {
983
- type: string;
984
- pattern: string;
985
- };
986
- value: {
987
- type: string;
988
- };
989
- visibility: {
990
- type: string;
991
- enum: string[];
992
- };
993
- selected_repositories: {
994
- type: string;
995
- items: {
996
- $ref: string;
997
- };
998
- };
999
- };
1000
- required: string[];
1001
- additionalProperties: boolean;
1002
- allOf: {
1003
- if: {
1004
- properties: {
1005
- visibility: {
1006
- const: string;
1007
- };
1008
- };
1009
- required: string[];
1010
- };
1011
- then: {};
1012
- else: {
1013
- properties: {
1014
- selected_repositories: {
1015
- type: string;
1016
- maxItems: number;
1017
- };
1018
- };
1019
- };
1020
- }[];
1021
- };
1022
- };
1023
977
  };
1024
978
  additionalProperties: boolean;
1025
979
  required: string[];
@@ -505,52 +505,6 @@ export declare const GithubSchemas: ({
505
505
  secret_scanning_push_protection_enabled_for_new_repositories: {
506
506
  type: string;
507
507
  };
508
- actions_variables: {
509
- type: string;
510
- items: {
511
- type: string;
512
- properties: {
513
- name: {
514
- type: string;
515
- pattern: string;
516
- };
517
- value: {
518
- type: string;
519
- };
520
- visibility: {
521
- type: string;
522
- enum: string[];
523
- };
524
- selected_repositories: {
525
- type: string;
526
- items: {
527
- $ref: string;
528
- };
529
- };
530
- };
531
- required: string[];
532
- additionalProperties: boolean;
533
- allOf: {
534
- if: {
535
- properties: {
536
- visibility: {
537
- const: string;
538
- };
539
- };
540
- required: string[];
541
- };
542
- then: {};
543
- else: {
544
- properties: {
545
- selected_repositories: {
546
- type: string;
547
- maxItems: number;
548
- };
549
- };
550
- };
551
- }[];
552
- };
553
- };
554
508
  };
555
509
  additionalProperties: boolean;
556
510
  required: string[];
@@ -29,12 +29,6 @@ export interface IGithubOrgSettingsClaim extends IOrgSettingsClaim {
29
29
  dependency_graph_enabled_for_new_repositories?: boolean;
30
30
  secret_scanning_enabled_for_new_repositories?: boolean;
31
31
  secret_scanning_push_protection_enabled_for_new_repositories?: boolean;
32
- actions_variables?: {
33
- name: string;
34
- value: string;
35
- visibility: 'all' | 'private' | 'selected';
36
- selected_repositories?: string[];
37
- }[];
38
32
  };
39
33
  };
40
34
  }
@@ -100,52 +100,6 @@ declare const _default: {
100
100
  secret_scanning_push_protection_enabled_for_new_repositories: {
101
101
  type: string;
102
102
  };
103
- actions_variables: {
104
- type: string;
105
- items: {
106
- type: string;
107
- properties: {
108
- name: {
109
- type: string;
110
- pattern: string;
111
- };
112
- value: {
113
- type: string;
114
- };
115
- visibility: {
116
- type: string;
117
- enum: string[];
118
- };
119
- selected_repositories: {
120
- type: string;
121
- items: {
122
- $ref: string;
123
- };
124
- };
125
- };
126
- required: string[];
127
- additionalProperties: boolean;
128
- allOf: {
129
- if: {
130
- properties: {
131
- visibility: {
132
- const: string;
133
- };
134
- };
135
- required: string[];
136
- };
137
- then: {};
138
- else: {
139
- properties: {
140
- selected_repositories: {
141
- type: string;
142
- maxItems: number;
143
- };
144
- };
145
- };
146
- }[];
147
- };
148
- };
149
103
  };
150
104
  additionalProperties: boolean;
151
105
  required: string[];
@@ -8,5 +8,5 @@ export declare function renderClaims(catalogScope: Construct, firestartrScope: C
8
8
  crs: any;
9
9
  renames?: IRenameResult[];
10
10
  }): Promise<RenderedCrMap>;
11
- export declare function renderClaim(catalogScope: Construct, firestartrScope: Construct, claim: any, patches: ICustomResourcePatch[], previousCR?: any | null, claimPath?: string, variableSectionPatches?: ICustomResourcePatch[]): Promise<IRenderClaimResult>;
11
+ export declare function renderClaim(catalogScope: Construct, firestartrScope: Construct, claim: any, patches: ICustomResourcePatch[], previousCR?: any | null, claimPath?: string): Promise<IRenderClaimResult>;
12
12
  export declare function renameVariantCrFiles(outputDir: string, renderedMap: RenderedCrMap): void;
@@ -1 +1 @@
1
- export declare function getPreviousCRfromClaim(claim: any, previousCRs: any, expectedKind?: string): any;
1
+ export declare function getPreviousCRfromClaim(claim: any, previousCRs: any): any;
@@ -1,4 +1,6 @@
1
1
  import { Subcommand } from '../types';
2
+ import { validateVersionConstraint } from '../version';
3
+ export { validateVersionConstraint };
2
4
  export declare function validateAndGetSubcommand(name: string): Subcommand;
3
5
  export declare function showSubcommandsHelp(): void;
4
6
  export declare function showCliVersion(): void;
@@ -0,0 +1,3 @@
1
+ export declare function validateVersionConstraint(constraint: string, version?: string, options?: {
2
+ ignoreSnapshots?: boolean;
3
+ }): boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "2.9.0-snapshot-org-variables-section-6",
3
+ "version": "2.9.0",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",
@@ -22,6 +22,9 @@
22
22
  },
23
23
  "author": "Víctor Rodríguez",
24
24
  "license": "ISC",
25
+ "dependencies": {
26
+ "semver": "^7.7.2"
27
+ },
25
28
  "devDependencies": {
26
29
  "@types/command-line-args": "^5.2.0",
27
30
  "catalog_common": "file:../catalog_common",
@@ -1,8 +0,0 @@
1
- import { FirestartrGithubOrganizationVariableSection, FirestartrGithubOrganizationVariableSectionProps } from '../../../imports/firestartr.dev';
2
- import { IUnitializedStateKey } from '../../claims/base';
3
- import { BaseGithubChart } from './base';
4
- export declare class GithubOrgVariableSectionChart extends BaseGithubChart {
5
- template(): FirestartrGithubOrganizationVariableSectionProps | IUnitializedStateKey;
6
- gvk(): import("cdk8s").GroupVersionKind;
7
- instanceApiObject(template: any): FirestartrGithubOrganizationVariableSection;
8
- }
@@ -1,4 +0,0 @@
1
- import { RenderClaims, RenderedCrMap } from '../renderer/types';
2
- export declare function validateGithubOrgVariableSectionSingleton(crs: RenderedCrMap): void;
3
- export declare function validateActionsVariablesUniqueness(crs: RenderedCrMap): void;
4
- export declare function validateActionsVariablesSelectedRepositories(renderClaims: RenderClaims): void;