@firestartr/cli 1.53.0-snapshot-9 → 1.53.0-snapshot-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.
@@ -91,53 +91,6 @@ declare const _default: {
91
91
  };
92
92
  additionalProperties: boolean;
93
93
  };
94
- PolicyType: {
95
- $id: string;
96
- type: string;
97
- description: string;
98
- enum: string[];
99
- };
100
- SyncConfig: {
101
- $id: string;
102
- type: string;
103
- description: string;
104
- properties: {
105
- enabled: {
106
- type: string;
107
- description: string;
108
- };
109
- period: {
110
- type: string;
111
- pattern: string;
112
- description: string;
113
- };
114
- schedule: {
115
- type: string;
116
- description: string;
117
- };
118
- schedule_timezone: {
119
- type: string;
120
- description: string;
121
- };
122
- policy: {
123
- type: string;
124
- description: string;
125
- };
126
- };
127
- additionalProperties: boolean;
128
- required: string[];
129
- oneOf: ({
130
- required: string[];
131
- not?: undefined;
132
- } | {
133
- not: {
134
- anyOf: {
135
- required: string[];
136
- }[];
137
- };
138
- required?: undefined;
139
- })[];
140
- };
141
94
  };
142
95
  };
143
96
  export default _default;
@@ -95,53 +95,6 @@ declare const schemas: {
95
95
  };
96
96
  additionalProperties: boolean;
97
97
  };
98
- PolicyType: {
99
- $id: string;
100
- type: string;
101
- description: string;
102
- enum: string[];
103
- };
104
- SyncConfig: {
105
- $id: string;
106
- type: string;
107
- description: string;
108
- properties: {
109
- enabled: {
110
- type: string;
111
- description: string;
112
- };
113
- period: {
114
- type: string;
115
- pattern: string;
116
- description: string;
117
- };
118
- schedule: {
119
- type: string;
120
- description: string;
121
- };
122
- schedule_timezone: {
123
- type: string;
124
- description: string;
125
- };
126
- policy: {
127
- type: string;
128
- description: string;
129
- };
130
- };
131
- additionalProperties: boolean;
132
- required: string[];
133
- oneOf: ({
134
- required: string[];
135
- not?: undefined;
136
- } | {
137
- not: {
138
- anyOf: {
139
- required: string[];
140
- }[];
141
- };
142
- required?: undefined;
143
- })[];
144
- };
145
98
  };
146
99
  } | {
147
100
  $schema: string;
@@ -426,9 +379,6 @@ declare const schemas: {
426
379
  } | {
427
380
  type: string;
428
381
  properties: {
429
- policy: {
430
- $ref: string;
431
- };
432
382
  privacy: {
433
383
  type: string;
434
384
  enum: string[];
@@ -439,9 +389,6 @@ declare const schemas: {
439
389
  org: {
440
390
  type: string;
441
391
  };
442
- sync: {
443
- $ref: string;
444
- };
445
392
  };
446
393
  required: string[];
447
394
  $ref?: undefined;
@@ -464,9 +411,6 @@ declare const schemas: {
464
411
  } | {
465
412
  type: string;
466
413
  properties: {
467
- policy: {
468
- $ref: string;
469
- };
470
414
  role: {
471
415
  type: string;
472
416
  enum: string[];
@@ -474,9 +418,6 @@ declare const schemas: {
474
418
  org: {
475
419
  type: string;
476
420
  };
477
- sync: {
478
- $ref: string;
479
- };
480
421
  };
481
422
  required: string[];
482
423
  $ref?: undefined;
@@ -544,9 +485,6 @@ declare const schemas: {
544
485
  } | {
545
486
  type: string;
546
487
  properties: {
547
- policy: {
548
- $ref: string;
549
- };
550
488
  org: {
551
489
  type: string;
552
490
  description: string;
@@ -555,9 +493,6 @@ declare const schemas: {
555
493
  type: string;
556
494
  enum: string[];
557
495
  };
558
- sync: {
559
- $ref: string;
560
- };
561
496
  features: {
562
497
  type: string;
563
498
  items: {
@@ -592,9 +527,6 @@ declare const schemas: {
592
527
  } | {
593
528
  type: string;
594
529
  properties: {
595
- policy: {
596
- $ref: string;
597
- };
598
530
  orgName: {
599
531
  type: string;
600
532
  description: string;
@@ -628,9 +560,6 @@ declare const schemas: {
628
560
  };
629
561
  required: string[];
630
562
  };
631
- sync: {
632
- $ref: string;
633
- };
634
563
  };
635
564
  required: string[];
636
565
  $ref?: undefined;
@@ -735,7 +664,8 @@ declare const schemas: {
735
664
  type: string;
736
665
  properties: {
737
666
  policy: {
738
- $ref: string;
667
+ type: string;
668
+ enum: string[];
739
669
  };
740
670
  name: {
741
671
  type: string;
@@ -745,7 +675,38 @@ declare const schemas: {
745
675
  enum: string[];
746
676
  };
747
677
  sync: {
748
- $ref: string;
678
+ type: string;
679
+ properties: {
680
+ enabled: {
681
+ type: string;
682
+ };
683
+ period: {
684
+ type: string;
685
+ pattern: string;
686
+ };
687
+ schedule: {
688
+ type: string;
689
+ };
690
+ schedule_timezone: {
691
+ type: string;
692
+ };
693
+ policy: {
694
+ type: string;
695
+ };
696
+ };
697
+ additionalProperties: boolean;
698
+ required: string[];
699
+ oneOf: ({
700
+ required: string[];
701
+ not?: undefined;
702
+ } | {
703
+ not: {
704
+ anyOf: {
705
+ required: string[];
706
+ }[];
707
+ };
708
+ required?: undefined;
709
+ })[];
749
710
  };
750
711
  valuesSchema: {
751
712
  type: string;
@@ -15,9 +15,6 @@ declare const _default: {
15
15
  } | {
16
16
  type: string;
17
17
  properties: {
18
- policy: {
19
- $ref: string;
20
- };
21
18
  org: {
22
19
  type: string;
23
20
  description: string;
@@ -26,9 +23,6 @@ declare const _default: {
26
23
  type: string;
27
24
  enum: string[];
28
25
  };
29
- sync: {
30
- $ref: string;
31
- };
32
26
  features: {
33
27
  type: string;
34
28
  items: {
@@ -14,9 +14,6 @@ declare const _default: {
14
14
  } | {
15
15
  type: string;
16
16
  properties: {
17
- policy: {
18
- $ref: string;
19
- };
20
17
  privacy: {
21
18
  type: string;
22
19
  enum: string[];
@@ -27,9 +24,6 @@ declare const _default: {
27
24
  org: {
28
25
  type: string;
29
26
  };
30
- sync: {
31
- $ref: string;
32
- };
33
27
  };
34
28
  required: string[];
35
29
  $ref?: undefined;
@@ -14,9 +14,6 @@ export declare const GithubSchemas: ({
14
14
  } | {
15
15
  type: string;
16
16
  properties: {
17
- policy: {
18
- $ref: string;
19
- };
20
17
  privacy: {
21
18
  type: string;
22
19
  enum: string[];
@@ -27,9 +24,6 @@ export declare const GithubSchemas: ({
27
24
  org: {
28
25
  type: string;
29
26
  };
30
- sync: {
31
- $ref: string;
32
- };
33
27
  };
34
28
  required: string[];
35
29
  $ref?: undefined;
@@ -52,9 +46,6 @@ export declare const GithubSchemas: ({
52
46
  } | {
53
47
  type: string;
54
48
  properties: {
55
- policy: {
56
- $ref: string;
57
- };
58
49
  role: {
59
50
  type: string;
60
51
  enum: string[];
@@ -62,9 +53,6 @@ export declare const GithubSchemas: ({
62
53
  org: {
63
54
  type: string;
64
55
  };
65
- sync: {
66
- $ref: string;
67
- };
68
56
  };
69
57
  required: string[];
70
58
  $ref?: undefined;
@@ -132,9 +120,6 @@ export declare const GithubSchemas: ({
132
120
  } | {
133
121
  type: string;
134
122
  properties: {
135
- policy: {
136
- $ref: string;
137
- };
138
123
  org: {
139
124
  type: string;
140
125
  description: string;
@@ -143,9 +128,6 @@ export declare const GithubSchemas: ({
143
128
  type: string;
144
129
  enum: string[];
145
130
  };
146
- sync: {
147
- $ref: string;
148
- };
149
131
  features: {
150
132
  type: string;
151
133
  items: {
@@ -180,9 +162,6 @@ export declare const GithubSchemas: ({
180
162
  } | {
181
163
  type: string;
182
164
  properties: {
183
- policy: {
184
- $ref: string;
185
- };
186
165
  orgName: {
187
166
  type: string;
188
167
  description: string;
@@ -216,9 +195,6 @@ export declare const GithubSchemas: ({
216
195
  };
217
196
  required: string[];
218
197
  };
219
- sync: {
220
- $ref: string;
221
- };
222
198
  };
223
199
  required: string[];
224
200
  $ref?: undefined;
@@ -14,9 +14,6 @@ declare const _default: {
14
14
  } | {
15
15
  type: string;
16
16
  properties: {
17
- policy: {
18
- $ref: string;
19
- };
20
17
  orgName: {
21
18
  type: string;
22
19
  description: string;
@@ -50,9 +47,6 @@ declare const _default: {
50
47
  };
51
48
  required: string[];
52
49
  };
53
- sync: {
54
- $ref: string;
55
- };
56
50
  };
57
51
  required: string[];
58
52
  $ref?: undefined;
@@ -14,9 +14,6 @@ declare const _default: {
14
14
  } | {
15
15
  type: string;
16
16
  properties: {
17
- policy: {
18
- $ref: string;
19
- };
20
17
  role: {
21
18
  type: string;
22
19
  enum: string[];
@@ -24,9 +21,6 @@ declare const _default: {
24
21
  org: {
25
22
  type: string;
26
23
  };
27
- sync: {
28
- $ref: string;
29
- };
30
24
  };
31
25
  required: string[];
32
26
  $ref?: undefined;
@@ -14,7 +14,8 @@ export declare const TerraformSchemas: {
14
14
  type: string;
15
15
  properties: {
16
16
  policy: {
17
- $ref: string;
17
+ type: string;
18
+ enum: string[];
18
19
  };
19
20
  name: {
20
21
  type: string;
@@ -24,7 +25,38 @@ export declare const TerraformSchemas: {
24
25
  enum: string[];
25
26
  };
26
27
  sync: {
27
- $ref: string;
28
+ type: string;
29
+ properties: {
30
+ enabled: {
31
+ type: string;
32
+ };
33
+ period: {
34
+ type: string;
35
+ pattern: string;
36
+ };
37
+ schedule: {
38
+ type: string;
39
+ };
40
+ schedule_timezone: {
41
+ type: string;
42
+ };
43
+ policy: {
44
+ type: string;
45
+ };
46
+ };
47
+ additionalProperties: boolean;
48
+ required: string[];
49
+ oneOf: ({
50
+ required: string[];
51
+ not?: undefined;
52
+ } | {
53
+ not: {
54
+ anyOf: {
55
+ required: string[];
56
+ }[];
57
+ };
58
+ required?: undefined;
59
+ })[];
28
60
  };
29
61
  valuesSchema: {
30
62
  type: string;
@@ -14,7 +14,8 @@ declare const _default: {
14
14
  type: string;
15
15
  properties: {
16
16
  policy: {
17
- $ref: string;
17
+ type: string;
18
+ enum: string[];
18
19
  };
19
20
  name: {
20
21
  type: string;
@@ -24,7 +25,38 @@ declare const _default: {
24
25
  enum: string[];
25
26
  };
26
27
  sync: {
27
- $ref: string;
28
+ type: string;
29
+ properties: {
30
+ enabled: {
31
+ type: string;
32
+ };
33
+ period: {
34
+ type: string;
35
+ pattern: string;
36
+ };
37
+ schedule: {
38
+ type: string;
39
+ };
40
+ schedule_timezone: {
41
+ type: string;
42
+ };
43
+ policy: {
44
+ type: string;
45
+ };
46
+ };
47
+ additionalProperties: boolean;
48
+ required: string[];
49
+ oneOf: ({
50
+ required: string[];
51
+ not?: undefined;
52
+ } | {
53
+ not: {
54
+ anyOf: {
55
+ required: string[];
56
+ }[];
57
+ };
58
+ required?: undefined;
59
+ })[];
28
60
  };
29
61
  valuesSchema: {
30
62
  type: string;
@@ -1,4 +1,5 @@
1
1
  import { OverriderPatches } from './base';
2
+ export declare function MOCK_FEATURES(mock?: Function): void;
2
3
  export declare class FeaturesOverrider extends OverriderPatches {
3
4
  applicableProviders: string[];
4
5
  private featureName;
@@ -2,6 +2,7 @@ export * from './src';
2
2
  declare const _default: {
3
3
  prepareFeature: typeof import("./src/installer").prepareFeature;
4
4
  renderFeature: typeof import("./src/renderer").renderFeature;
5
+ renderFeatureFromPath: typeof import("./src/renderer").renderFeatureFromPath;
5
6
  getFeatureConfig: typeof import("./src/installer").getFeatureConfig;
6
7
  getFeatureConfigFromRef: typeof import("./src/installer").getFeatureConfigFromRef;
7
8
  };
@@ -1,7 +1,8 @@
1
1
  import { getFeatureConfigFromRef, getFeatureConfig, prepareFeature } from './installer';
2
- import { renderFeature } from './renderer';
2
+ import { renderFeature, renderFeatureFromPath } from './renderer';
3
3
  declare const _default: {
4
4
  renderFeature: typeof renderFeature;
5
+ renderFeatureFromPath: typeof renderFeatureFromPath;
5
6
  getFeatureConfigFromRef: typeof getFeatureConfigFromRef;
6
7
  getFeatureConfig: typeof getFeatureConfig;
7
8
  prepareFeature: typeof prepareFeature;
@@ -1 +1,2 @@
1
1
  export declare function renderFeature(featureName: string, version: string, owner: any, repo: any, featureOwner: any, renderPath?: string, featureArgs?: any): any;
2
+ export declare function renderFeatureFromPath(extractPath: string, renderedPath: string, featureOwner: any, featureArgs?: any): any;
@@ -4,5 +4,5 @@ export declare function processOperation(item: any, op: OperationType, handler:
4
4
  reason: OperationType;
5
5
  type: string;
6
6
  status: string;
7
- message: any;
7
+ message: string;
8
8
  }, void, unknown>;
@@ -1,9 +1,2 @@
1
1
  export declare function replaceConfigSecrets(config: any, secrets: any): any;
2
2
  export declare function replaceInlineSecrets(inline: string, secrets: any): string;
3
- /**
4
- * Retrieves a policy annotation value from a custom resource
5
- * @param item - The CR to get the policy from
6
- * @param annotation - The annotation key to retrieve
7
- * @returns The policy value, or undefined if not set
8
- */
9
- export declare function getPolicy(item: any, annotation: string): string | undefined;
@@ -14,13 +14,10 @@ export declare class Resource {
14
14
  onTFStreaming(): Promise<void>;
15
15
  setLogStream(fnData: Function, fnEnd: Function, reopen?: boolean): void;
16
16
  constructor(mainCR: any, operation: string, deps?: any[]);
17
- run(options?: {
18
- planOnly?: boolean;
19
- }): Promise<void>;
17
+ run(): Promise<void>;
20
18
  artifact(): any;
21
19
  synth(): Promise<void>;
22
20
  log(msg: string): void;
23
- runTerraformPlanOnly(): Promise<void>;
24
21
  runTerraform(): Promise<void>;
25
22
  preprocess(): Promise<void>;
26
23
  postprocess(): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "1.53.0-snapshot-9",
3
+ "version": "1.53.0-snapshot-11",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",