@hasura/metadata-api
Version:
Hasura GraphQL Engine Metadata API types
31 lines (30 loc) • 2.13 kB
TypeScript
import type { ApolloFederationConfig } from './ApolloFederationConfig';
import type { PostgresComputedFieldMetadata } from './PostgresComputedFieldMetadata';
import type { PostgresDeletePermDef } from './PostgresDeletePermDef';
import type { PostgresEventTriggerConfEventTriggerConf } from './PostgresEventTriggerConfEventTriggerConf';
import type { PostgresInsertPermDef } from './PostgresInsertPermDef';
import type { PostgresQualified_TableName } from './PostgresQualified_TableName';
import type { PostgresSelectPermDef } from './PostgresSelectPermDef';
import type { PostgresTableConfig } from './PostgresTableConfig';
import type { PostgresUpdatePermDef } from './PostgresUpdatePermDef';
import type { RelDef_RelUsing___Postgres__Vanilla___ArrRelUsingFKeyOn___Postgres__Vanilla__ } from './RelDef_RelUsing___Postgres__Vanilla___ArrRelUsingFKeyOn___Postgres__Vanilla__';
import type { RelDef_RelUsing___Postgres__Vanilla___ObjRelUsingChoice___Postgres__Vanilla__ } from './RelDef_RelUsing___Postgres__Vanilla___ObjRelUsingChoice___Postgres__Vanilla__';
import type { RemoteRelationship_RemoteRelationshipDefinition } from './RemoteRelationship_RemoteRelationshipDefinition';
/**
* Representation of a table in metadata, 'tables.yaml' and 'metadata.json'
*/
export type PostgresTableMetadata = {
apollo_federation_config?: ApolloFederationConfig;
array_relationships?: Array<RelDef_RelUsing___Postgres__Vanilla___ArrRelUsingFKeyOn___Postgres__Vanilla__>;
computed_fields?: Array<PostgresComputedFieldMetadata>;
configuration?: PostgresTableConfig;
delete_permissions?: Array<PostgresDeletePermDef>;
event_triggers?: Array<PostgresEventTriggerConfEventTriggerConf>;
insert_permissions?: Array<PostgresInsertPermDef>;
is_enum?: boolean;
object_relationships?: Array<RelDef_RelUsing___Postgres__Vanilla___ObjRelUsingChoice___Postgres__Vanilla__>;
remote_relationships?: Array<RemoteRelationship_RemoteRelationshipDefinition>;
select_permissions?: Array<PostgresSelectPermDef>;
table: (PostgresQualified_TableName | string);
update_permissions?: Array<PostgresUpdatePermDef>;
};