@514labs/moose-lib 0.6.239-ci-4-g4348a9e3 → 0.6.239-ci-6-g7634f0cb

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.
@@ -980,7 +980,20 @@ var typiaTypeGuard = (node) => {
980
980
  var transformNewMooseResource = (node, checker) => {
981
981
  const typeName = checker.getSymbolAtLocation(node.expression).name;
982
982
  const typeNode = node.typeArguments[0];
983
- const allowIndexSignatures = ["IngestApi", "Stream"].includes(typeName);
983
+ let ingestPipelineHasTable = true;
984
+ if (typeName === "IngestPipeline" && node.arguments && node.arguments.length >= 2) {
985
+ const configArg = node.arguments[1];
986
+ if (ts4.isObjectLiteralExpression(configArg)) {
987
+ const tableProperty = configArg.properties.find(
988
+ (prop) => ts4.isPropertyAssignment(prop) && ts4.isIdentifier(prop.name) && prop.name.text === "table"
989
+ );
990
+ if (tableProperty) {
991
+ const tableValue = tableProperty.initializer;
992
+ ingestPipelineHasTable = tableValue.kind !== ts4.SyntaxKind.FalseKeyword;
993
+ }
994
+ }
995
+ }
996
+ const allowIndexSignatures = ["IngestApi", "Stream"].includes(typeName) || typeName === "IngestPipeline" && !ingestPipelineHasTable;
984
997
  const typeAtLocation = checker.getTypeAtLocation(typeNode);
985
998
  const hasIndexSignature = allowIndexSignatures && checker.getIndexInfosOfType(typeAtLocation).length > 0;
986
999
  const internalArguments = typeName === "DeadLetterQueue" ? [typiaTypeGuard(node)] : [