@firestartr/cli 2.8.0-snapshot-4 → 2.8.0-snapshot-test-2-7-1-1

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 CHANGED
@@ -320683,13 +320683,6 @@ const GithubSchemas = [
320683
320683
  module: {
320684
320684
  type: 'string',
320685
320685
  },
320686
- variants: {
320687
- type: 'array',
320688
- items: {
320689
- $ref: 'firestartr.dev://terraform/TerraformProviderVariant',
320690
- },
320691
- description: 'variant clones of this workspace — stripped before parent claim validation',
320692
- },
320693
320686
  context: {
320694
320687
  type: 'object',
320695
320688
  properties: {
@@ -320724,90 +320717,6 @@ const GithubSchemas = [
320724
320717
  },
320725
320718
  ],
320726
320719
  },
320727
- TerraformProviderVariantOverride: {
320728
- $id: 'firestartr.dev://terraform/TerraformProviderVariantOverride',
320729
- description: 'Override fields for a variant of a TFWorkspaceClaim',
320730
- type: 'object',
320731
- properties: {
320732
- name: {
320733
- type: 'string',
320734
- description: 'override the terraform provider name',
320735
- },
320736
- values: {
320737
- type: 'object',
320738
- additionalProperties: true,
320739
- description: 'override values',
320740
- },
320741
- context: {
320742
- type: 'object',
320743
- properties: {
320744
- providers: {
320745
- type: 'array',
320746
- items: {
320747
- type: 'object',
320748
- properties: { name: { type: 'string' } },
320749
- additionalProperties: false,
320750
- },
320751
- },
320752
- backend: {
320753
- type: 'object',
320754
- properties: { name: { type: 'string' } },
320755
- additionalProperties: false,
320756
- },
320757
- },
320758
- additionalProperties: false,
320759
- description: 'override context',
320760
- },
320761
- files: {
320762
- $ref: 'firestartr.dev://terraform/TerraformProviderFiles',
320763
- },
320764
- policy: {
320765
- type: 'string',
320766
- enum: [
320767
- 'apply',
320768
- 'create-only',
320769
- 'create-update-only',
320770
- 'full-control',
320771
- 'observe',
320772
- 'observe-only',
320773
- ],
320774
- },
320775
- tfStateKey: {
320776
- $ref: 'firestartr.dev://common/TerraformStateKey',
320777
- },
320778
- sync: {
320779
- type: 'object',
320780
- properties: {
320781
- enabled: { type: 'boolean' },
320782
- period: { type: 'string', pattern: '^[0-9]+[smhd]$' },
320783
- schedule: { type: 'string' },
320784
- schedule_timezone: { type: 'string' },
320785
- policy: { type: 'string' },
320786
- },
320787
- additionalProperties: false,
320788
- },
320789
- valuesSchema: {
320790
- type: 'string',
320791
- },
320792
- },
320793
- additionalProperties: false,
320794
- },
320795
- TerraformProviderVariant: {
320796
- $id: 'firestartr.dev://terraform/TerraformProviderVariant',
320797
- description: 'A single variant of a TFWorkspace',
320798
- type: 'object',
320799
- properties: {
320800
- name: {
320801
- type: 'string',
320802
- description: 'name of the variant — used as claim name and CR name base',
320803
- },
320804
- overrides: {
320805
- $ref: 'firestartr.dev://terraform/TerraformProviderVariantOverride',
320806
- },
320807
- },
320808
- additionalProperties: false,
320809
- required: ['name', 'overrides'],
320810
- },
320811
320720
  },
320812
320721
  });
320813
320722
 
@@ -321278,12 +321187,6 @@ async function loadClaim(claimRef, org, defaults = loadClaimDefaults(), patchCla
321278
321187
  try {
321279
321188
  const claimData = await lazyGetClaim(claimRef.split(/-/)[0], claimRef.replace(/^[^-]+-/, ''), org, cwd);
321280
321189
  const claim = patchClaim(catalog_common/* default.io.fromYaml */.Z.io.fromYaml(claimData), defaults);
321281
- let variants = [];
321282
- if (claim.kind === 'TFWorkspaceClaim' &&
321283
- claim.providers?.terraform?.variants) {
321284
- variants = claim.providers.terraform.variants;
321285
- delete claim.providers.terraform.variants;
321286
- }
321287
321190
  logger.silly(`Patched claim is:
321288
321191
  ---
321289
321192
  ${catalog_common/* default.io.toYaml */.Z.io.toYaml(claim)}`);
@@ -321321,47 +321224,6 @@ async function loadClaim(claimRef, org, defaults = loadClaimDefaults(), patchCla
321321
321224
  result = lodash_default().merge(result, resolvedReferences);
321322
321225
  }
321323
321226
  }
321324
- if (variants.length > 0) {
321325
- const parentClaimPath = VisitedClaims[claimRef];
321326
- for (const variant of variants) {
321327
- if (!variant.name || !variant.overrides) {
321328
- throw new Error(`Variant in claim ${claimRef} is missing required field 'name' or 'overrides'`);
321329
- }
321330
- const prohibitedOverrideFields = ['source', 'module'];
321331
- for (const field of prohibitedOverrideFields) {
321332
- if (field in variant.overrides) {
321333
- throw new Error(`Variant '${variant.name}' in claim ${claimRef} cannot override '${field}'`);
321334
- }
321335
- }
321336
- const variantClaim = lodash_default().cloneDeep(claim);
321337
- variantClaim.name = variant.name;
321338
- variantClaim.providers.terraform = lodash_default().merge({}, claim.providers.terraform, variant.overrides);
321339
- if (!variant.overrides.name) {
321340
- variantClaim.providers.terraform.name = variant.name;
321341
- }
321342
- if (!variantClaim.annotations) {
321343
- variantClaim.annotations = {};
321344
- }
321345
- variantClaim.annotations['firestartr.dev/variant-of'] =
321346
- claim.providers.terraform.name;
321347
- const variantRef = `TFWorkspaceClaim-${variant.name}`;
321348
- if (result[variantRef]) {
321349
- throw new Error(`Variant name '${variant.name}' from claim '${claimRef}' conflicts with existing claim '${variantRef}'`);
321350
- }
321351
- logger.info(`Creating synthetic variant claim ${variantRef}`);
321352
- result[variantRef] = {};
321353
- result[variantRef]['claim'] = variantClaim;
321354
- result[variantRef]['claimPath'] = parentClaimPath;
321355
- result = await setNonVirtualClaimAdditionalData(result, variantClaim, variantRef, loadInitializers, loadGlobals, loadOverrides, loadNormalizers);
321356
- const variantReferences = extractAllRefs(catalog_common/* default.io.toYaml */.Z.io.toYaml(variantClaim));
321357
- for (const ref of variantReferences) {
321358
- if (!result[ref]) {
321359
- const [resolvedReferences] = await loadClaim(ref, org, defaults, patchClaim, loadInitializers, loadGlobals, loadOverrides, loadNormalizers, cwd, result, postValidations);
321360
- result = lodash_default().merge(result, resolvedReferences);
321361
- }
321362
- }
321363
- }
321364
- }
321365
321227
  }
321366
321228
  catch (err) {
321367
321229
  throw `Lazy Loading: ${err}`;
@@ -323806,6 +323668,57 @@ function sanitizeApiEntityName(name) {
323806
323668
  .replace(/[^a-z0-9-]/g, '-')
323807
323669
  .replace(/^-+|-+$/g, '');
323808
323670
  }
323671
+ async function generateClaimsMap(claimsPath, outputPath, sha) {
323672
+ const map = {
323673
+ headers: {
323674
+ sha: sha ?? '',
323675
+ },
323676
+ claims: {},
323677
+ };
323678
+ await crawlClaimsDir(claimsPath, claimsPath, map.claims);
323679
+ await external_fs_default().promises.writeFile(outputPath, JSON.stringify(map, null, 2), 'utf-8');
323680
+ }
323681
+ async function crawlClaimsDir(dir, basePath, claims) {
323682
+ let entries;
323683
+ try {
323684
+ entries = await (0,promises_.readdir)(dir, { withFileTypes: true });
323685
+ }
323686
+ catch (err) {
323687
+ throw new Error(`Reading directory ${dir}: ${err}`);
323688
+ }
323689
+ for (const entry of entries) {
323690
+ const fullPath = external_path_default().join(dir, entry.name);
323691
+ if (entry.isDirectory()) {
323692
+ await crawlClaimsDir(fullPath, basePath, claims);
323693
+ }
323694
+ else if (entry.isFile() && entry.name.match(/\.yaml$|\.yml$/)) {
323695
+ try {
323696
+ const data = await external_fs_default().promises.readFile(fullPath, 'utf-8');
323697
+ const claim = catalog_common/* default.io.fromYaml */.Z.io.fromYaml(data);
323698
+ if (typeof claim !== 'object' ||
323699
+ claim === null ||
323700
+ typeof claim.kind !== 'string' ||
323701
+ !claim.kind ||
323702
+ typeof claim.name !== 'string' ||
323703
+ !claim.name) {
323704
+ logger.warn(`Skipping file ${fullPath}: missing or invalid kind or name`);
323705
+ continue;
323706
+ }
323707
+ const ref = `${claim.kind}-${claim.name}`;
323708
+ if (claims[ref]) {
323709
+ throw new Error(`Duplicate claim reference: ${ref}`);
323710
+ }
323711
+ const relativePath = external_path_default().relative(basePath, fullPath)
323712
+ .split((external_path_default()).sep)
323713
+ .join((external_path_default()).posix.sep);
323714
+ claims[ref] = { filePath: relativePath };
323715
+ }
323716
+ catch (err) {
323717
+ throw new Error(`Error processing claim file ${fullPath}: ${err}`);
323718
+ }
323719
+ }
323720
+ }
323721
+ }
323809
323722
 
323810
323723
  ;// CONCATENATED MODULE: ../cdk8s_renderer/imports/firestartr.dev.ts
323811
323724
  // generated by cdk8s
@@ -327810,9 +327723,6 @@ class TFWorkspaceChart extends BaseWorkspaceChart {
327810
327723
  return {
327811
327724
  metadata: {
327812
327725
  name: claim.providers.terraform.name,
327813
- ...(claim.annotations && Object.keys(claim.annotations).length > 0
327814
- ? { annotations: claim.annotations }
327815
- : {}),
327816
327726
  },
327817
327727
  spec: {
327818
327728
  firestartr: {
@@ -328166,7 +328076,6 @@ class SecretsChart extends BaseSecretsChart {
328166
328076
 
328167
328077
 
328168
328078
 
328169
-
328170
328079
  function normalizeProvidesApis(providesApis) {
328171
328080
  if (!providesApis)
328172
328081
  return [];
@@ -328237,10 +328146,7 @@ async function renderClaim(catalogScope, firestartrScope, claim, patches, previo
328237
328146
  let catalogEntity = undefined;
328238
328147
  let firestartrEntity = undefined;
328239
328148
  const extraCharts = [];
328240
- const isVariant = claim.annotations?.['firestartr.dev/variant-of'] !== undefined;
328241
- const chartId = isVariant
328242
- ? `${claim.kind}-${claim.name}.variant`.toLowerCase()
328243
- : `${claim.kind}-${claim.name}`.toLowerCase();
328149
+ const chartId = `${claim.kind}-${claim.name}`.toLowerCase();
328244
328150
  let firestartrId = null;
328245
328151
  if (previousCR) {
328246
328152
  firestartrId = previousCR?.spec?.firestartr?.tfStateKey || null;
@@ -328420,21 +328326,6 @@ async function renderClaim(catalogScope, firestartrScope, claim, patches, previo
328420
328326
  ],
328421
328327
  };
328422
328328
  }
328423
- function renameVariantCrFiles(outputDir, renderedMap) {
328424
- for (const cr of Object.values(renderedMap)) {
328425
- const crJson = cr.toJson ? cr.toJson() : cr;
328426
- if (crJson.metadata?.annotations?.['firestartr.dev/variant-of'] &&
328427
- crJson.kind &&
328428
- crJson.metadata?.name) {
328429
- const oldPath = external_path_.join(outputDir, `${crJson.kind}.${crJson.metadata.name}.yaml`);
328430
- const newPath = external_path_.join(outputDir, `${crJson.kind}.${crJson.metadata.name}.variant.yaml`);
328431
- if (external_fs_.existsSync(oldPath)) {
328432
- external_fs_.renameSync(oldPath, newPath);
328433
- logger.info(`Renamed variant CR file: ${oldPath} -> ${newPath}`);
328434
- }
328435
- }
328436
- }
328437
- }
328438
328329
 
328439
328330
  ;// CONCATENATED MODULE: ../cdk8s_renderer/src/validations/crossReferences.ts
328440
328331
 
@@ -328939,9 +328830,6 @@ async function renderFromImports(rClaims, crs = {}, catalogOutputDir = '/tmp/.ca
328939
328830
  });
328940
328831
  const result = await renderClaims(catalogScope, firestartrScope, { renderClaims: rClaims, crs, renames: [] });
328941
328832
  firestartrScope.synth();
328942
- if (crOutputDir) {
328943
- renameVariantCrFiles(crOutputDir, result);
328944
- }
328945
328833
  return result;
328946
328834
  }
328947
328835
  async function solver(type, value, rClaims) {
@@ -329079,9 +328967,8 @@ async function runRenderer(globalsPath, initializersPath, claimsPath, crsPath, c
329079
328967
  // the system takes everything defined in the claims path
329080
328968
  claimRefsList = await resolveClaimEntries([claimsPath]);
329081
328969
  }
329082
- let renderedMap;
329083
328970
  try {
329084
- renderedMap = await renderer_render(catalogApp, firestartrApp, claimRefsList);
328971
+ await renderer_render(catalogApp, firestartrApp, claimRefsList);
329085
328972
  }
329086
328973
  catch (error) {
329087
328974
  console.log(`Rendering the system: \n ${error}`);
@@ -329089,7 +328976,6 @@ async function runRenderer(globalsPath, initializersPath, claimsPath, crsPath, c
329089
328976
  }
329090
328977
  catalogApp.synth();
329091
328978
  firestartrApp.synth();
329092
- renameVariantCrFiles(outputCrDir, renderedMap);
329093
328979
  }
329094
328980
 
329095
328981
  ;// CONCATENATED MODULE: ../importer/src/decanter/config.ts
@@ -342815,6 +342701,7 @@ const cdk8s_rendererSubcommands = {
342815
342701
  { name: 'render', alias: 'r', type: Boolean },
342816
342702
  { name: 'compare', type: Boolean },
342817
342703
  { name: 'render-plan', type: Boolean },
342704
+ { name: 'generate-claims-map', type: Boolean },
342818
342705
  /**
342819
342706
  * Specific parameters for render functionality
342820
342707
  */
@@ -342871,6 +342758,10 @@ const cdk8s_rendererSubcommands = {
342871
342758
  { name: 'lastStatePrLink', type: String },
342872
342759
  { name: 'lastClaimPrLink', type: String },
342873
342760
  { name: 'crLocation', type: String },
342761
+ /**
342762
+ * Specific parameters for claims-map generation
342763
+ */
342764
+ { name: 'claims-map-output', alias: 'm', type: String },
342874
342765
  ],
342875
342766
  run: async (options) => {
342876
342767
  if (options['render']) {
@@ -342883,6 +342774,14 @@ const cdk8s_rendererSubcommands = {
342883
342774
  else if (options['lastStatePrLink'] && options['lastClaimPrLink']) {
342884
342775
  await cdk8s_renderer.addLastStateAndLastClaimAnnotations(options['crLocation'], options['lastStatePrLink'], options['lastClaimPrLink']);
342885
342776
  }
342777
+ else if (options['generate-claims-map']) {
342778
+ const claimsPath = options['claims'];
342779
+ const outputPath = options['claims-map-output'];
342780
+ if (!claimsPath || !outputPath) {
342781
+ throw new Error('--claims and --claims-map-output are required with --generate-claims-map');
342782
+ }
342783
+ await generateClaimsMap(claimsPath, outputPath, options['sha']);
342784
+ }
342886
342785
  },
342887
342786
  };
342888
342787
 
@@ -521524,9 +521423,9 @@ const crsStatusSubcommand = {
521524
521423
  };
521525
521424
 
521526
521425
  ;// CONCATENATED MODULE: ./package.json
521527
- const package_namespaceObject = JSON.parse('{"i8":"2.8.0-snapshot-4"}');
521426
+ const package_namespaceObject = JSON.parse('{"i8":"2.8.0-snapshot-test-2-7-1-1"}');
521528
521427
  ;// CONCATENATED MODULE: ../../package.json
521529
- const package_namespaceObject_1 = {"i8":"2.7.0"};
521428
+ const package_namespaceObject_1 = {"i8":"2.7.1"};
521530
521429
  ;// CONCATENATED MODULE: ./src/subcommands/index.ts
521531
521430
 
521532
521431
 
@@ -13,6 +13,7 @@ import { runComparer } from './src/comparer';
13
13
  import { AllowedProviders, setDefaultBranch, setPath, setRepositoryUrl } from './src/config';
14
14
  import { render } from './src/renderer/renderer';
15
15
  export { AllowedProviders, configureProvider, setDefaultBranch, setRepositoryUrl, } from './src/config';
16
+ export { generateClaimsMap } from './src/utils/claimUtils';
16
17
  import { isCatalogEntity } from './src/validations/references';
17
18
  import { normalizeModuleContent } from './src/normalizers';
18
19
  import { loadCRs } from './src/loader/loader';
@@ -1192,13 +1192,6 @@ declare const schemas: {
1192
1192
  module: {
1193
1193
  type: string;
1194
1194
  };
1195
- variants: {
1196
- type: string;
1197
- items: {
1198
- $ref: string;
1199
- };
1200
- description: string;
1201
- };
1202
1195
  context: {
1203
1196
  type: string;
1204
1197
  properties: {
@@ -1233,102 +1226,6 @@ declare const schemas: {
1233
1226
  $ref?: undefined;
1234
1227
  })[];
1235
1228
  };
1236
- TerraformProviderVariantOverride: {
1237
- $id: string;
1238
- description: string;
1239
- type: string;
1240
- properties: {
1241
- name: {
1242
- type: string;
1243
- description: string;
1244
- };
1245
- values: {
1246
- type: string;
1247
- additionalProperties: boolean;
1248
- description: string;
1249
- };
1250
- context: {
1251
- type: string;
1252
- properties: {
1253
- providers: {
1254
- type: string;
1255
- items: {
1256
- type: string;
1257
- properties: {
1258
- name: {
1259
- type: string;
1260
- };
1261
- };
1262
- additionalProperties: boolean;
1263
- };
1264
- };
1265
- backend: {
1266
- type: string;
1267
- properties: {
1268
- name: {
1269
- type: string;
1270
- };
1271
- };
1272
- additionalProperties: boolean;
1273
- };
1274
- };
1275
- additionalProperties: boolean;
1276
- description: string;
1277
- };
1278
- files: {
1279
- $ref: string;
1280
- };
1281
- policy: {
1282
- type: string;
1283
- enum: string[];
1284
- };
1285
- tfStateKey: {
1286
- $ref: string;
1287
- };
1288
- sync: {
1289
- type: string;
1290
- properties: {
1291
- enabled: {
1292
- type: string;
1293
- };
1294
- period: {
1295
- type: string;
1296
- pattern: string;
1297
- };
1298
- schedule: {
1299
- type: string;
1300
- };
1301
- schedule_timezone: {
1302
- type: string;
1303
- };
1304
- policy: {
1305
- type: string;
1306
- };
1307
- };
1308
- additionalProperties: boolean;
1309
- };
1310
- valuesSchema: {
1311
- type: string;
1312
- };
1313
- };
1314
- additionalProperties: boolean;
1315
- };
1316
- TerraformProviderVariant: {
1317
- $id: string;
1318
- description: string;
1319
- type: string;
1320
- properties: {
1321
- name: {
1322
- type: string;
1323
- description: string;
1324
- };
1325
- overrides: {
1326
- $ref: string;
1327
- };
1328
- };
1329
- additionalProperties: boolean;
1330
- required: string[];
1331
- };
1332
1229
  };
1333
1230
  }[] | {
1334
1231
  $schema: string;
@@ -97,13 +97,6 @@ export declare const TerraformSchemas: {
97
97
  module: {
98
98
  type: string;
99
99
  };
100
- variants: {
101
- type: string;
102
- items: {
103
- $ref: string;
104
- };
105
- description: string;
106
- };
107
100
  context: {
108
101
  type: string;
109
102
  properties: {
@@ -138,101 +131,5 @@ export declare const TerraformSchemas: {
138
131
  $ref?: undefined;
139
132
  })[];
140
133
  };
141
- TerraformProviderVariantOverride: {
142
- $id: string;
143
- description: string;
144
- type: string;
145
- properties: {
146
- name: {
147
- type: string;
148
- description: string;
149
- };
150
- values: {
151
- type: string;
152
- additionalProperties: boolean;
153
- description: string;
154
- };
155
- context: {
156
- type: string;
157
- properties: {
158
- providers: {
159
- type: string;
160
- items: {
161
- type: string;
162
- properties: {
163
- name: {
164
- type: string;
165
- };
166
- };
167
- additionalProperties: boolean;
168
- };
169
- };
170
- backend: {
171
- type: string;
172
- properties: {
173
- name: {
174
- type: string;
175
- };
176
- };
177
- additionalProperties: boolean;
178
- };
179
- };
180
- additionalProperties: boolean;
181
- description: string;
182
- };
183
- files: {
184
- $ref: string;
185
- };
186
- policy: {
187
- type: string;
188
- enum: string[];
189
- };
190
- tfStateKey: {
191
- $ref: string;
192
- };
193
- sync: {
194
- type: string;
195
- properties: {
196
- enabled: {
197
- type: string;
198
- };
199
- period: {
200
- type: string;
201
- pattern: string;
202
- };
203
- schedule: {
204
- type: string;
205
- };
206
- schedule_timezone: {
207
- type: string;
208
- };
209
- policy: {
210
- type: string;
211
- };
212
- };
213
- additionalProperties: boolean;
214
- };
215
- valuesSchema: {
216
- type: string;
217
- };
218
- };
219
- additionalProperties: boolean;
220
- };
221
- TerraformProviderVariant: {
222
- $id: string;
223
- description: string;
224
- type: string;
225
- properties: {
226
- name: {
227
- type: string;
228
- description: string;
229
- };
230
- overrides: {
231
- $ref: string;
232
- };
233
- };
234
- additionalProperties: boolean;
235
- required: string[];
236
- };
237
134
  };
238
135
  }[];
@@ -97,13 +97,6 @@ declare const _default: {
97
97
  module: {
98
98
  type: string;
99
99
  };
100
- variants: {
101
- type: string;
102
- items: {
103
- $ref: string;
104
- };
105
- description: string;
106
- };
107
100
  context: {
108
101
  type: string;
109
102
  properties: {
@@ -138,102 +131,6 @@ declare const _default: {
138
131
  $ref?: undefined;
139
132
  })[];
140
133
  };
141
- TerraformProviderVariantOverride: {
142
- $id: string;
143
- description: string;
144
- type: string;
145
- properties: {
146
- name: {
147
- type: string;
148
- description: string;
149
- };
150
- values: {
151
- type: string;
152
- additionalProperties: boolean;
153
- description: string;
154
- };
155
- context: {
156
- type: string;
157
- properties: {
158
- providers: {
159
- type: string;
160
- items: {
161
- type: string;
162
- properties: {
163
- name: {
164
- type: string;
165
- };
166
- };
167
- additionalProperties: boolean;
168
- };
169
- };
170
- backend: {
171
- type: string;
172
- properties: {
173
- name: {
174
- type: string;
175
- };
176
- };
177
- additionalProperties: boolean;
178
- };
179
- };
180
- additionalProperties: boolean;
181
- description: string;
182
- };
183
- files: {
184
- $ref: string;
185
- };
186
- policy: {
187
- type: string;
188
- enum: string[];
189
- };
190
- tfStateKey: {
191
- $ref: string;
192
- };
193
- sync: {
194
- type: string;
195
- properties: {
196
- enabled: {
197
- type: string;
198
- };
199
- period: {
200
- type: string;
201
- pattern: string;
202
- };
203
- schedule: {
204
- type: string;
205
- };
206
- schedule_timezone: {
207
- type: string;
208
- };
209
- policy: {
210
- type: string;
211
- };
212
- };
213
- additionalProperties: boolean;
214
- };
215
- valuesSchema: {
216
- type: string;
217
- };
218
- };
219
- additionalProperties: boolean;
220
- };
221
- TerraformProviderVariant: {
222
- $id: string;
223
- description: string;
224
- type: string;
225
- properties: {
226
- name: {
227
- type: string;
228
- description: string;
229
- };
230
- overrides: {
231
- $ref: string;
232
- };
233
- };
234
- additionalProperties: boolean;
235
- required: string[];
236
- };
237
134
  };
238
135
  };
239
136
  export default _default;
@@ -9,4 +9,3 @@ export declare function renderClaims(catalogScope: Construct, firestartrScope: C
9
9
  renames?: IRenameResult[];
10
10
  }): Promise<RenderedCrMap>;
11
11
  export declare function renderClaim(catalogScope: Construct, firestartrScope: Construct, claim: any, patches: ICustomResourcePatch[], previousCR?: any | null, claimPath?: string): Promise<IRenderClaimResult>;
12
- export declare function renameVariantCrFiles(outputDir: string, renderedMap: RenderedCrMap): void;
@@ -5,3 +5,13 @@ export declare function resolveClaimEntries(claimRefsList: string[]): AsyncGener
5
5
  export declare function resolveClaimFileRef(claimFile: string): Promise<string>;
6
6
  export declare function getClaimsEntryAbsolutePath(claimsDir: string, entryPath: string): string;
7
7
  export declare function sanitizeApiEntityName(name: string): string;
8
+ export interface ClaimsMapEntry {
9
+ filePath: string;
10
+ }
11
+ export interface ClaimsMap {
12
+ headers: {
13
+ sha: string;
14
+ };
15
+ claims: Record<string, ClaimsMapEntry>;
16
+ }
17
+ export declare function generateClaimsMap(claimsPath: string, outputPath: string, sha?: string): Promise<void>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "2.8.0-snapshot-4",
3
+ "version": "2.8.0-snapshot-test-2-7-1-1",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",