@hasura/metadata-api
Version:
Hasura GraphQL Engine Metadata API types
31 lines (30 loc) • 2.18 kB
TypeScript
import type { ApolloFederationConfig } from './ApolloFederationConfig';
import type { CockroachComputedFieldMetadata } from './CockroachComputedFieldMetadata';
import type { CockroachDeletePermDef } from './CockroachDeletePermDef';
import type { CockroachEventTriggerConfEventTriggerConf } from './CockroachEventTriggerConfEventTriggerConf';
import type { CockroachInsertPermDef } from './CockroachInsertPermDef';
import type { CockroachSelectPermDef } from './CockroachSelectPermDef';
import type { CockroachTableConfig } from './CockroachTableConfig';
import type { CockroachUpdatePermDef } from './CockroachUpdatePermDef';
import type { PostgresQualified_TableName } from './PostgresQualified_TableName';
import type { RelDef_RelUsing___Postgres__Cockroach___ArrRelUsingFKeyOn___Postgres__Cockroach__ } from './RelDef_RelUsing___Postgres__Cockroach___ArrRelUsingFKeyOn___Postgres__Cockroach__';
import type { RelDef_RelUsing___Postgres__Cockroach___ObjRelUsingChoice___Postgres__Cockroach__ } from './RelDef_RelUsing___Postgres__Cockroach___ObjRelUsingChoice___Postgres__Cockroach__';
import type { RemoteRelationship_RemoteRelationshipDefinition } from './RemoteRelationship_RemoteRelationshipDefinition';
/**
* Representation of a table in metadata, 'tables.yaml' and 'metadata.json'
*/
export type CockroachTableMetadata = {
apollo_federation_config?: ApolloFederationConfig;
array_relationships?: Array<RelDef_RelUsing___Postgres__Cockroach___ArrRelUsingFKeyOn___Postgres__Cockroach__>;
computed_fields?: Array<CockroachComputedFieldMetadata>;
configuration?: CockroachTableConfig;
delete_permissions?: Array<CockroachDeletePermDef>;
event_triggers?: Array<CockroachEventTriggerConfEventTriggerConf>;
insert_permissions?: Array<CockroachInsertPermDef>;
is_enum?: boolean;
object_relationships?: Array<RelDef_RelUsing___Postgres__Cockroach___ObjRelUsingChoice___Postgres__Cockroach__>;
remote_relationships?: Array<RemoteRelationship_RemoteRelationshipDefinition>;
select_permissions?: Array<CockroachSelectPermDef>;
table: (PostgresQualified_TableName | string);
update_permissions?: Array<CockroachUpdatePermDef>;
};