Skip to content

Commit

Permalink
fix: Fixed transform fields and type in config schema
Browse files Browse the repository at this point in the history
  • Loading branch information
niallthomson committed Dec 13, 2024
1 parent 66e82e1 commit b8ecd78
Showing 1 changed file with 105 additions and 99 deletions.
204 changes: 105 additions & 99 deletions plugins/core/catalog-config/config.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,101 +73,128 @@ export interface Config {
*/
transform?: {
/**
* (Optional) Transforms for the spec field of the entity
* If not set, no transforms will be applied to the spec field
* (Optional) Transforms that will be applied to specific fields of the emitted entity
* If not set, no field-level transforms will be applied
*/
spec?: {
fields?: {
/**
* (Optional) Transforms for the spec.owner field of the entity
* If not set, no transforms will be applied to the spec.owner field
* (Optional) Transforms for the spec field of the entity
* If not set, no transforms will be applied to the spec field
*/
owner?: {
spec?: {
/**
* (Optional) Propagates the value of this tag to the field
* If not set, no tag will be propagated
* (Optional) Transforms for the spec.owner field of the entity
* If not set, no transforms will be applied to the spec.owner field
*/
tag?: string;
owner?: {
/**
* (Optional) Propagates the value of this tag to the field
* If not set, no tag will be propagated
*/
tag?: string;
/**
* (Optional) Sets the value of the field to this value
* If not set, no value will be set
*/
value?: string;
/**
* (Optional) Sets the value of the field to the result of this JSONata expression
* If not set, no value will be set
*/
expression?: string;
};
/**
* (Optional) Sets the value of the field to this value
* If not set, no value will be set
* (Optional) Transforms for the spec.system field of the entity
* If not set, no transforms will be applied to the spec.owner field
*/
value?: string;
system?: {
/**
* (Optional) Propagates the value of this tag to the field
* If not set, no tag will be propagated
*/
tag?: string;
/**
* (Optional) Sets the value of the field to this value
* If not set, no value will be set
*/
value?: string;
/**
* (Optional) Sets the value of the field to the result of this JSONata expression
* If not set, no value will be set
*/
expression?: string;
};
/**
* (Optional) Sets the value of the field to the result of this JSONata expression
* If not set, no value will be set
* (Optional) Transforms the entity to add a dependencyOf on a component
* If not set, no transforms will be applied to create the dependencyOf
*/
expression?: string;
};
/**
* (Optional) Transforms for the spec.system field of the entity
* If not set, no transforms will be applied to the spec.owner field
*/
system?: {
component?: {
/**
* (Optional) Propagates the value of this tag to the field
* If not set, no tag will be propagated
*/
tag?: string;
/**
* (Optional) Sets the value of the field to this value
* If not set, no value will be set
*/
value?: string;
/**
* (Optional) Sets the value of the field to the result of this JSONata expression
* If not set, no value will be set
*/
expression?: string;
};
/**
* (Optional) Propagates the value of this tag to the field
* If not set, no tag will be propagated
* (Optional) Transforms for the spec.type field of the entity
* If not set, no transforms will be applied to the spec.type field
*/
tag?: string;
/**
* (Optional) Sets the value of the field to this value
* If not set, no value will be set
*/
value?: string;
/**
* (Optional) Sets the value of the field to the result of this JSONata expression
* If not set, no value will be set
*/
expression?: string;
type?: {
/**
* (Optional) Propagates the value of this tag to the field
* If not set, no tag will be propagated
*/
tag?: string;
/**
* (Optional) Sets the value of the field to this value
* If not set, no value will be set
*/
value?: string;
/**
* (Optional) Sets the value of the field to the result of this JSONata expression
* If not set, no value will be set
*/
expression?: string;
};
};
/**
* (Optional) Transforms the entity to add a dependencyOf on a component
* If not set, no transforms will be applied to create the dependencyOf
* (Optional) Transforms for the metadata.annotations field of the entity
* If not set, no transforms will be applied to the metadata.annotations field
*/
component?: {
/**
* (Optional) Propagates the value of this tag to the field
* If not set, no tag will be propagated
*/
tag?: string;
/**
* (Optional) Sets the value of the field to this value
* If not set, no value will be set
*/
value?: string;
/**
* (Optional) Sets the value of the field to the result of this JSONata expression
* If not set, no value will be set
*/
expression?: string;
annotations?: {
[name: string]: {
/**
* (Optional) Propagates the value of this tag to the field
* If not set, no tag will be propagated
*/
tag?: string;
/**
* (Optional) Sets the value of the field to this value
* If not set, no value will be set
*/
value?: string;
/**
* (Optional) Sets the value of the field to the result of this JSONata expression
* If not set, no value will be set
*/
expression?: string;
};
};
/**
* (Optional) Transforms for the spec.type field of the entity
* If not set, no transforms will be applied to the spec.type field
* (Optional) Transforms for the metadata.name field of the entity
* If not set, no transforms will be applied to the metadata.name field
*/
system?: {
/**
* (Optional) Propagates the value of this tag to the field
* If not set, no tag will be propagated
*/
tag?: string;
/**
* (Optional) Sets the value of the field to this value
* If not set, no value will be set
*/
value?: string;
/**
* (Optional) Sets the value of the field to the result of this JSONata expression
* If not set, no value will be set
*/
expression?: string;
};
};
/**
* (Optional) Transforms for the metadata.annotations field of the entity
* If not set, no transforms will be applied to the metadata.annotations field
*/
annotations?: {
[name: string]: {
name?: {
/**
* (Optional) Propagates the value of this tag to the field
* If not set, no tag will be propagated
Expand All @@ -185,27 +212,6 @@ export interface Config {
expression?: string;
};
};
/**
* (Optional) Transforms for the metadata.name field of the entity
* If not set, no transforms will be applied to the metadata.name field
*/
name?: {
/**
* (Optional) Propagates the value of this tag to the field
* If not set, no tag will be propagated
*/
tag?: string;
/**
* (Optional) Sets the value of the field to this value
* If not set, no value will be set
*/
value?: string;
/**
* (Optional) Sets the value of the field to the result of this JSONata expression
* If not set, no value will be set
*/
expression?: string;
};
};
/**
* (Optional) Configure ingestion behavior
Expand Down

0 comments on commit b8ecd78

Please sign in to comment.