@firestartr/cli 1.56.0 → 1.56.1-snapshot-2

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
@@ -366252,11 +366252,15 @@ class Decanter {
366252
366252
  get github() {
366253
366253
  return this._github;
366254
366254
  }
366255
+ get postRenderFunctions() {
366256
+ return this._postRenderFunctions;
366257
+ }
366255
366258
  constructor(data) {
366256
366259
  this.data = {};
366257
366260
  this.initializerInstances = [];
366258
366261
  this.claim = {};
366259
366262
  this.deps = {};
366263
+ this._postRenderFunctions = [];
366260
366264
  this._github = github_0;
366261
366265
  this.data = data;
366262
366266
  }
@@ -366270,10 +366274,14 @@ class Decanter {
366270
366274
  return new ImportInitializer();
366271
366275
  }
366272
366276
  __patchClaim(patch) {
366273
- this.claim = fast_json_patch.applyPatch(this.claim, [patch]).newDocument;
366277
+ this.claim = fast_json_patch_default().applyPatch(this.claim, [patch]).newDocument;
366278
+ }
366279
+ __patchCr(cr, patches) {
366280
+ patches = Array.isArray(patches) ? patches : [patches];
366281
+ return fast_json_patch_default().applyPatch(cr, patches).newDocument;
366274
366282
  }
366275
366283
  __validateEqual(a, b) {
366276
- return fast_json_patch.compare(a, b).length === 0;
366284
+ return fast_json_patch_default().compare(a, b).length === 0;
366277
366285
  }
366278
366286
  __decantStart() { }
366279
366287
  __getMethods(check) {
@@ -366323,6 +366331,14 @@ class Decanter {
366323
366331
  catalog_common.io.writeClaim(this.claim, claimsPath);
366324
366332
  return yaml;
366325
366333
  }
366334
+ postRender() {
366335
+ for (const method of this.__getMethods(this)) {
366336
+ if (method.match(/^__postRender/) &&
366337
+ typeof this[method] === 'function') {
366338
+ this[method]();
366339
+ }
366340
+ }
366341
+ }
366326
366342
  async _adapt() {
366327
366343
  const initializers = [];
366328
366344
  const overrides = [];
@@ -366343,6 +366359,7 @@ class Decanter {
366343
366359
  }
366344
366360
  const adapted = {
366345
366361
  deps: this.getDeps(),
366362
+ postRenderFunctions: this.postRenderFunctions,
366346
366363
  renderClaim: {
366347
366364
  claim: this.claim,
366348
366365
  initializers,
@@ -366357,6 +366374,9 @@ class Decanter {
366357
366374
  if (!this.deps[key])
366358
366375
  this.deps[key] = { cr, secret };
366359
366376
  }
366377
+ setPostRenderF(f) {
366378
+ this._postRenderFunctions.push(f);
366379
+ }
366360
366380
  getDeps() {
366361
366381
  return this.deps;
366362
366382
  }
@@ -366473,6 +366493,15 @@ class GroupGithubDecanter extends GithubDecanter {
366473
366493
  async __adaptInitializerBase(_claim) {
366474
366494
  return await this.__loadInitializer('defaults_github_group.yaml');
366475
366495
  }
366496
+ __postRenderAnnotateGithubId() {
366497
+ this.setPostRenderF((cr) => {
366498
+ return this.__patchCr(cr, {
366499
+ op: 'add',
366500
+ path: '/metadata/annotations/firestartr.dev~1github-id',
366501
+ value: `${this.data.groupDetails.id}`,
366502
+ });
366503
+ });
366504
+ }
366476
366505
  __validateKind(cr) {
366477
366506
  return true;
366478
366507
  }
@@ -366978,6 +367007,21 @@ async function importGithubGitopsRepository(org, skipPlan, claimsPath, resources
366978
367007
  previousCRs[k];
366979
367008
  }
366980
367009
  const crs = await renderCRs(data);
367010
+ for (const key in crs) {
367011
+ let cr = crs[key];
367012
+ const claimName = cr.metadata?.annotations?.[catalog_common.generic.getFirestartrAnnotation('external-name')];
367013
+ const postRenderFunctions = data.postRender[`${cr.kind}-${claimName}`] || [];
367014
+ let crModified = false;
367015
+ for (const postRenderFunction of postRenderFunctions) {
367016
+ cr = postRenderFunction(cr);
367017
+ crModified = true;
367018
+ }
367019
+ if (crModified) {
367020
+ const crPath = getCrPath(tmpRenderedCrsPath, cr);
367021
+ catalog_common.io.writeYamlFile(external_path_.basename(crPath), cr, external_path_.dirname(crPath));
367022
+ crs[key] = cr;
367023
+ }
367024
+ }
366981
367025
  await moveCRsAndClaims(crs, org, claimsPath, resourcesPath);
366982
367026
  }
366983
367027
  async function moveCRsAndClaims(crs, org, claimsPath, resourcesPath) {
@@ -367033,24 +367077,30 @@ async function getDataFromKinds(org, filters = []) {
367033
367077
  ]);
367034
367078
  const renderClaims = {};
367035
367079
  const deps = {};
367080
+ const postRender = {};
367036
367081
  for (const repo of data['repos']) {
367037
367082
  renderClaims[`ComponentClaim-${repo.renderClaim.claim.name}`] =
367038
367083
  repo.renderClaim;
367039
367084
  deps[`FirestartrGithubRepository-${repo.renderClaim.claim.name}`] =
367040
367085
  repo.deps;
367086
+ postRender[`FirestartrGithubRepository-${repo.renderClaim.claim.name}`] =
367087
+ repo.postRenderFunctions;
367041
367088
  }
367042
367089
  for (const group of data['groups']) {
367043
367090
  renderClaims[`GroupClaim-${group.renderClaim.claim.name}`] =
367044
367091
  group.renderClaim;
367045
367092
  deps[`FirestartrGithubGroup-${group.renderClaim.claim.name}`] = group.deps;
367093
+ postRender[`FirestartrGithubGroup-${group.renderClaim.claim.name}`] =
367094
+ group.postRenderFunctions;
367046
367095
  }
367047
367096
  for (const membership of data['memberships']) {
367048
367097
  renderClaims[`UserClaim-${membership.renderClaim.claim.name}`] =
367049
367098
  membership.renderClaim;
367050
367099
  deps[`FirestartrGithubMembership-${membership.renderClaim.claim.name}`] =
367051
367100
  membership.deps;
367101
+ postRender[`FirestartrGithubMembership-${membership.renderClaim.claim.name}`] = membership.postRenderFunctions;
367052
367102
  }
367053
- return { renderClaims, deps: deps };
367103
+ return { renderClaims, deps: deps, postRender: postRender };
367054
367104
  }
367055
367105
  async function importGithubGroups(org, filters = []) {
367056
367106
  const groups = [];
@@ -367061,6 +367111,7 @@ async function importGithubGroups(org, filters = []) {
367061
367111
  await group.decant();
367062
367112
  groups.push(await group.adapt());
367063
367113
  group.render();
367114
+ group.postRender();
367064
367115
  }
367065
367116
  return groups;
367066
367117
  }
@@ -368828,6 +368879,7 @@ var WorkStatus;
368828
368879
 
368829
368880
 
368830
368881
 
368882
+
368831
368883
  const kindsWithFinalizer = [
368832
368884
  'FirestartrDummyA',
368833
368885
  'FirestartrDummyB',
@@ -368952,6 +369004,9 @@ function enqueue(pluralKind, workItem, queue, compute, syncCtl, retryCtl) {
368952
369004
  writeTerraformOutputInTfResult: writeTerraformOuputInTFResult,
368953
369005
  writeConnectionSecret: writeConnectionSecret,
368954
369006
  resolveReferences: () => resolve(workItem.item, getItemByItemPath, getSecret),
369007
+ resolveOwnOutputs: () => {
369008
+ return resolveSecretRef(workItem.item.metadata.namespace, workItem.item, getSecret);
369009
+ },
368955
369010
  deleteSecret: () => deleteSecret(workItem.item.spec.writeConnectionSecretToRef.name, workItem.item.metadata.namespace),
368956
369011
  itemPath: () => informer_itemPath(pluralKind, workItem.item),
368957
369012
  error: () => retryCtl.errorReconciling(informer_itemPath(pluralKind, workItem.item)),
@@ -369965,10 +370020,13 @@ var lib_provider = __nccwpck_require__(85791);
369965
370020
  ;// CONCATENATED MODULE: ../provisioner/src/entities/base/Entity.ts
369966
370021
 
369967
370022
  const EXTERNAL_NAME_ANNOTATION = 'firestartr.dev/external-name';
370023
+ const IMPORT_SLUG_ANNOTATION = 'firestartr.dev/github-slug';
370024
+ const IMPORT_ID_ANNOTATION = 'firestartr.dev/github-id';
369968
370025
 
369969
370026
  class Metadata {
369970
- constructor(metadata) {
370027
+ constructor(metadata, resolveOutputs) {
369971
370028
  this._metadata = metadata;
370029
+ this._resolveOutputs = resolveOutputs;
369972
370030
  }
369973
370031
  get name() {
369974
370032
  if (EXTERNAL_NAME_ANNOTATION in this.annotations) {
@@ -369978,19 +370036,56 @@ class Metadata {
369978
370036
  return this._metadata.name;
369979
370037
  }
369980
370038
  }
370039
+ get slug() {
370040
+ // buscar el slug en los outputs
370041
+ const slug = this._resolveOutputs('slug');
370042
+ if (IMPORT_SLUG_ANNOTATION in this.annotations) {
370043
+ return this.annotations[IMPORT_SLUG_ANNOTATION];
370044
+ }
370045
+ else if (slug) {
370046
+ // hay outputs?
370047
+ return slug;
370048
+ }
370049
+ else {
370050
+ return undefined;
370051
+ }
370052
+ }
369981
370053
  get annotations() {
369982
370054
  return this._metadata.annotations || {};
369983
370055
  }
369984
370056
  get labels() {
369985
370057
  return this._metadata.labels || {};
369986
370058
  }
370059
+ get id() {
370060
+ // buscar el id en los outputs
370061
+ const id = this._resolveOutputs('id');
370062
+ if (IMPORT_ID_ANNOTATION in this.annotations) {
370063
+ return this.annotations[IMPORT_ID_ANNOTATION];
370064
+ }
370065
+ else if (id) {
370066
+ // hay outputs?
370067
+ return id;
370068
+ }
370069
+ else {
370070
+ return undefined;
370071
+ }
370072
+ }
369987
370073
  }
369988
370074
  class Entity {
369989
370075
  constructor(artifact, deps) {
369990
370076
  this.importStack = [];
369991
370077
  this.kind = artifact.kind;
369992
370078
  this.apiVersion = artifact.apiVersion;
369993
- this.metadata = new Metadata(artifact.metadata);
370079
+ this.metadata = new Metadata(artifact.metadata, (key) => {
370080
+ if (this.deps && 'self-outputs' in this.deps) {
370081
+ const cr = this.deps['self-outputs'].cr;
370082
+ if (cr && typeof cr.data === 'object') {
370083
+ if (key in cr.data) {
370084
+ return Buffer.from(cr.data[key], 'base64').toString('utf-8');
370085
+ }
370086
+ }
370087
+ }
370088
+ });
369994
370089
  this.spec = artifact.spec;
369995
370090
  if (deps) {
369996
370091
  this.deps = deps;
@@ -370140,14 +370235,15 @@ function provisionPermissions(scope, repo, fsGithubRepository) {
370140
370235
  if ('ref' in permission) {
370141
370236
  const tfStateKey = `_${fsGithubRepository.getTfStateKey()}-${permission.ref.kind}-${permission.ref.name}-tr`;
370142
370237
  if (permission.ref.kind === 'FirestartrGithubGroup') {
370238
+ const teamSlug = fsGithubRepository.resolveRef(permission.ref, 'slug');
370143
370239
  const teamId = fsGithubRepository.resolveRef(permission.ref, 'id');
370144
370240
  const config = {
370145
370241
  repository: repo.name,
370146
- teamId,
370242
+ teamId: teamId,
370147
370243
  permission: permission.role,
370148
370244
  };
370149
370245
  const teamsRepository = new team_repository/* TeamRepository */.C(scope, tfStateKey, config);
370150
- fsGithubRepository.addResourceToStack(`${teamId}:${fsGithubRepository.metadata.name}`, teamsRepository);
370246
+ fsGithubRepository.addResourceToStack(`${teamSlug}:${fsGithubRepository.metadata.name}`, teamsRepository);
370151
370247
  }
370152
370248
  else if (permission.ref.kind === 'FirestartrGithubMembership') {
370153
370249
  const username = fsGithubRepository.resolveRef(permission.ref);
@@ -370507,7 +370603,7 @@ function provisionGroup(scope, fsGithubGroup) {
370507
370603
  };
370508
370604
  const tfStateKey = `_${fsGithubGroup.getTfStateKey()}`;
370509
370605
  const group = new lib_team/* Team */.S(scope, tfStateKey, config);
370510
- fsGithubGroup.addResourceToStack(fsGithubGroup.metadata.name, group);
370606
+ fsGithubGroup.addResourceToStack(fsGithubGroup.metadata.id || fsGithubGroup.metadata.name, group);
370511
370607
  return group;
370512
370608
  }
370513
370609
 
@@ -370524,11 +370620,11 @@ function provisionMembers(scope, team, fsGithubGroup) {
370524
370620
  const config = {
370525
370621
  dependsOn: [team],
370526
370622
  username,
370527
- teamId: team.id,
370623
+ teamId: fsGithubGroup.metadata.slug || team.id,
370528
370624
  role: member.role,
370529
370625
  };
370530
370626
  const membership = new team_membership/* TeamMembership */.E(scope, tfStateKey, config);
370531
- fsGithubGroup.addResourceToStack(`${team.id}:${username}`, membership);
370627
+ fsGithubGroup.addResourceToStack(`${fsGithubGroup.metadata.slug || team.id}:${username}`, membership);
370532
370628
  }
370533
370629
  }
370534
370630
  }
@@ -371904,19 +372000,23 @@ if (process.env.RUN_PROVISIONER) {
371904
372000
 
371905
372001
 
371906
372002
  const LAST_STATE_PR_ANNOTATION = 'firestartr.dev/last-state-pr';
371907
- async function tryPublishApply(item, planOutput, kind, isSuccess = true) {
372003
+ async function tryPublishApply(item, planOutput, isSuccess = true) {
372004
+ const kind = item.kind;
372005
+ const metadataName = item.metadata?.name ?? 'unknown';
371908
372006
  try {
371909
- if (!(LAST_STATE_PR_ANNOTATION in item.metadata.annotations)) {
371910
- operator_src_logger.debug(`The user feedback for the '${kind}/${item.metadata.name}' apply operation could not be published because the last state was not found.`);
372007
+ const annotations = item.metadata?.annotations;
372008
+ if (!annotations || !(LAST_STATE_PR_ANNOTATION in annotations)) {
372009
+ operator_src_logger.debug(`The user feedback for the '${kind}/${metadataName}' apply operation could not be published because the last state was not found.`);
371911
372010
  return;
371912
372011
  }
371913
- await publishApply(item, planOutput, kind, isSuccess);
372012
+ await publishApply(item, planOutput, isSuccess);
371914
372013
  }
371915
372014
  catch (e) {
371916
- operator_src_logger.error(`The user feedback for the '${kind}/${item.metadata.name}' apply operation failed to publish due to an error: '${e}'.`);
372015
+ operator_src_logger.error(`The user feedback for the '${kind}/${metadataName}' apply operation failed to publish due to an error: '${e}'.`);
371917
372016
  }
371918
372017
  }
371919
372018
  async function tryPublishDestroy(item, destroyOutput, isSuccess = true) {
372019
+ const kind = item.kind;
371920
372020
  let lastPr = null;
371921
372021
  try {
371922
372022
  const { repo, org } = extractPrInfo(item);
@@ -371943,7 +372043,7 @@ async function tryPublishDestroy(item, destroyOutput, isSuccess = true) {
371943
372043
  return `<h1>
371944
372044
  <img width="25" src="https://raw.githubusercontent.com/firestartr-pro/docs/refs/heads/main/logos/square-nobg.png"> Destroy ${statusText} ${statusEmoji}
371945
372045
  </h1>
371946
- <p><b>TFWorkspace: </b>${item.metadata.name}</p>
372046
+ <p><b>${kind}: </b>${item.metadata.name}</p>
371947
372047
 
371948
372048
  <details id=github>
371949
372049
  <summary>DESTROY LOGS${partIndicator}</summary>
@@ -371960,7 +372060,7 @@ ${commentContent}
371960
372060
  owner: org,
371961
372061
  repo,
371962
372062
  pullNumber: lastPr.number,
371963
- baseKind: 'tfworkspace:destroy',
372063
+ baseKind: `${kind.toLowerCase()}:destroy`,
371964
372064
  bodies: commentBodies,
371965
372065
  });
371966
372066
  operator_src_logger.debug(`The user feedback for the '${item.kind}/${item.metadata.name}' destroy operation has been published as a comment on pull request '${lastPr.number}'.`);
@@ -371969,7 +372069,8 @@ ${commentContent}
371969
372069
  operator_src_logger.error(`An error occurred while publishing user feedback for item '${item.kind}/${item.metadata.name}': '${e}'.`);
371970
372070
  }
371971
372071
  }
371972
- async function publishApply(item, applyOutput, kind, isSuccess = true) {
372072
+ async function publishApply(item, applyOutput, isSuccess = true) {
372073
+ const kind = item.kind;
371973
372074
  const { prNumber, repo, org } = extractPrInfo(item);
371974
372075
  const dividedOutput = github_0.pulls.divideCommentIntoChunks(applyOutput, 250);
371975
372076
  const statusEmoji = isSuccess ? '✅' : '❌';
@@ -372404,7 +372505,10 @@ async function* doApply(item, op, handler) {
372404
372505
  opts['create'] = true;
372405
372506
  }
372406
372507
  const deps = await handler.resolveReferences();
372407
- operator_src_logger.info(`Item ${item.metadata.name} has the following dependencies: ${deps}`);
372508
+ deps['self-outputs'] = {
372509
+ cr: await handler.resolveOwnOutputs(),
372510
+ };
372511
+ operator_src_logger.info(`Item ${item.metadata.name} has the following dependencies: ${Object.keys(deps)}`);
372408
372512
  const annotation = 'firestartr.dev/last-state-pr';
372409
372513
  const statePr = item?.metadata?.annotations?.[annotation];
372410
372514
  const hasStatePr = typeof statePr === 'string' && statePr.trim().length > 0;
@@ -372465,7 +372569,7 @@ async function* doApply(item, op, handler) {
372465
372569
  message: 'doApply',
372466
372570
  };
372467
372571
  await handler.writeTerraformOutputInTfResult(item, output);
372468
- await tryPublishApply(item, applyOutput?.data?.output, item.kind, true);
372572
+ await tryPublishApply(item, applyOutput?.data?.output, true);
372469
372573
  void handler.success();
372470
372574
  }
372471
372575
  catch (e) {
@@ -372477,7 +372581,7 @@ async function* doApply(item, op, handler) {
372477
372581
  else {
372478
372582
  errorMsg = e;
372479
372583
  }
372480
- await tryPublishApply(item, errorMsg, item.kind);
372584
+ await tryPublishApply(item, errorMsg, false);
372481
372585
  // if there is a current checkRun working
372482
372586
  // we close it with an error
372483
372587
  if (checkRunCtl)
@@ -374200,7 +374304,7 @@ async function* process_operation_doApply(item, op, handler) {
374200
374304
  message: 'doApply',
374201
374305
  };
374202
374306
  await handler.writeTerraformOutputInTfResult(item, output);
374203
- await tryPublishApply(item, applyOutput, 'TFWorkspace', true);
374307
+ await tryPublishApply(item, applyOutput, true);
374204
374308
  handler.success();
374205
374309
  }
374206
374310
  catch (e) {
@@ -374214,7 +374318,7 @@ async function* process_operation_doApply(item, op, handler) {
374214
374318
  }
374215
374319
  checkRunCtl.fnOnError(errorMsg);
374216
374320
  console.error(e);
374217
- await tryPublishApply(item, errorMsg, 'TFWorkspace', false);
374321
+ await tryPublishApply(item, errorMsg, false);
374218
374322
  operator_src_logger.error(`The Terraform processor encountered an error during operation '${op}' for item '${item.kind}/${item.metadata.name}': '${e}'.`);
374219
374323
  handler.error();
374220
374324
  if (errorMsg) {
@@ -376320,7 +376424,7 @@ const crs_analyzerSubcommand = {
376320
376424
  };
376321
376425
 
376322
376426
  ;// CONCATENATED MODULE: ./package.json
376323
- const package_namespaceObject = {"i8":"1.56.0"};
376427
+ const package_namespaceObject = JSON.parse('{"i8":"1.56.1-snapshot-2"}');
376324
376428
  ;// CONCATENATED MODULE: ../../package.json
376325
376429
  const package_namespaceObject_1 = {"i8":"1.56.0"};
376326
376430
  ;// CONCATENATED MODULE: ./src/subcommands/index.ts
@@ -1,5 +1,5 @@
1
1
  import { importGithubGitopsRepository } from './src/decanter';
2
- import { CollectionFilter } from './src/decanter/collections';
2
+ import type { CollectionFilter } from './src/decanter/collections';
3
3
  export { CollectionFilter };
4
4
  declare const _default: {
5
5
  importGithubGitopsRepository: typeof importGithubGitopsRepository;
@@ -11,14 +11,17 @@ export default class Decanter {
11
11
  secret: any;
12
12
  };
13
13
  };
14
+ _postRenderFunctions: Function[];
14
15
  _github: any;
15
16
  set github(githubInstance: any);
16
17
  get github(): any;
18
+ get postRenderFunctions(): Function[];
17
19
  constructor(data: any);
18
20
  __adaptInitializerTfStateKey(): Promise<UUIDInitializer>;
19
21
  __adaptInitializerClaimRef(): Promise<InitializerClaimRef>;
20
22
  __adaptInitializerImport(): Promise<ImportInitializer>;
21
23
  __patchClaim(patch: any): void;
24
+ __patchCr(cr: any, patches: any): any;
22
25
  __validateEqual(a: any, b: any): boolean;
23
26
  __decantStart(): void;
24
27
  __getMethods(check: any): any[];
@@ -30,6 +33,7 @@ export default class Decanter {
30
33
  secret: any;
31
34
  };
32
35
  };
36
+ postRenderFunctions: Function[];
33
37
  renderClaim: {
34
38
  claim: any;
35
39
  initializers: any[];
@@ -40,6 +44,7 @@ export default class Decanter {
40
44
  }>;
41
45
  validateCR(cr: any): boolean;
42
46
  render(): string;
47
+ postRender(): void;
43
48
  _adapt(): Promise<{
44
49
  deps: {
45
50
  [key: string]: {
@@ -47,6 +52,7 @@ export default class Decanter {
47
52
  secret: any;
48
53
  };
49
54
  };
55
+ postRenderFunctions: Function[];
50
56
  renderClaim: {
51
57
  claim: any;
52
58
  initializers: any[];
@@ -56,6 +62,7 @@ export default class Decanter {
56
62
  };
57
63
  }>;
58
64
  setDep(key: string, cr: any, secret: any): void;
65
+ setPostRenderF(f: Function): void;
59
66
  getDeps(): {
60
67
  [key: string]: {
61
68
  cr: any;
@@ -70,6 +77,7 @@ export default class Decanter {
70
77
  secret: any;
71
78
  };
72
79
  };
80
+ postRenderFunctions: Function[];
73
81
  renderClaim: {
74
82
  claim: any;
75
83
  initializers: any[];
@@ -1,5 +1,5 @@
1
+ export type { CollectionFilter } from './filters';
1
2
  export declare function applyCollectionMixins(derivedCtor: any): void;
2
- export { CollectionFilter } from './filters';
3
3
  export declare class CollectionMixins {
4
4
  IS_FILTER_BY_NAME_SET(filters: any[], kind: string): boolean;
5
5
  IS_SKIP_SET(filters: any[], kind: string): boolean;
@@ -10,6 +10,7 @@ export default class GroupGithubDecanter extends GithubDecanter {
10
10
  __gatherMembers(): Promise<void>;
11
11
  __validateMembers(cr: any): Promise<boolean>;
12
12
  __adaptInitializerBase(_claim: any): Promise<InitializerDefault>;
13
+ __postRenderAnnotateGithubId(): void;
13
14
  __validateKind(cr: any): boolean;
14
15
  KO__validateKind(): void;
15
16
  }
@@ -1,5 +1,5 @@
1
- export { CollectionFilter } from './collections';
2
- import { CollectionFilter } from './collections';
1
+ export type { CollectionFilter } from './collections';
2
+ import type { CollectionFilter } from './collections';
3
3
  import GroupCollectionGithubDecanter from './gh/github_group_collection';
4
4
  import MemberCollectionGithubDecanter from './gh/github_member_collection';
5
5
  import RepoCollectionGithubDecanter from './gh/github_repo_collection';
@@ -42,6 +42,7 @@ export type WorkItemHandler = {
42
42
  writeTerraformOutputInTfResult: WriteTerraformOutputInTfResultFn;
43
43
  writeConnectionSecret: WriteConnectionSecretFn;
44
44
  resolveReferences: ResolveReferencesFn;
45
+ resolveOwnOutputs: Function;
45
46
  deleteSecret: DeleteSecretFn;
46
47
  itemPath: ItemPathFn;
47
48
  error: ErrorFn;
@@ -1,6 +1,6 @@
1
- export declare function tryPublishApply(item: any, planOutput: string, kind: string, isSuccess?: boolean): Promise<void>;
1
+ export declare function tryPublishApply(item: any, planOutput: string, isSuccess?: boolean): Promise<void>;
2
2
  export declare function tryPublishDestroy(item: any, destroyOutput: string, isSuccess?: boolean): Promise<void>;
3
- export declare function publishApply(item: any, applyOutput: string, kind: string, isSuccess?: boolean): Promise<void>;
3
+ export declare function publishApply(item: any, applyOutput: string, isSuccess?: boolean): Promise<void>;
4
4
  export declare function tryCreateErrorSummary(title: string, errorMsg: string): string;
5
5
  export declare function extractPrInfo(item: any, annotation?: 'firestartr.dev/last-state-pr' | 'firestartr.dev/pull-request-plan'): {
6
6
  prNumber: number;
@@ -2,10 +2,13 @@ import { Construct } from 'constructs';
2
2
  import { TerraformModule, TerraformResource } from 'cdktf';
3
3
  declare class Metadata {
4
4
  _metadata: any;
5
- constructor(metadata: any);
5
+ _resolveOutputs: Function;
6
+ constructor(metadata: any, resolveOutputs: Function);
6
7
  get name(): any;
8
+ get slug(): any;
7
9
  get annotations(): any;
8
10
  get labels(): any;
11
+ get id(): any;
9
12
  }
10
13
  export declare abstract class Entity {
11
14
  kind: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "1.56.0",
3
+ "version": "1.56.1-snapshot-2",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",