chore(backend): convert basic RefreshToken model to TypeORM entity (#2401)
* chore: convert basic RefreshToken model to TypeORM entity Co-authored-by: v1b3m <vibenjamin6@gmail.com> * Fix import Co-authored-by: v1b3m <vibenjamin6@gmail.com> --------- Co-authored-by: v1b3m <vibenjamin6@gmail.com>
This commit is contained in:
@ -207,7 +207,7 @@ export type CreateRelationInput = {
|
||||
fromLabel: Scalars['String']['input'];
|
||||
fromName: Scalars['String']['input'];
|
||||
fromObjectMetadataId: Scalars['String']['input'];
|
||||
relationType: Scalars['String']['input'];
|
||||
relationType: RelationMetadataType;
|
||||
toIcon?: InputMaybe<Scalars['String']['input']>;
|
||||
toLabel: Scalars['String']['input'];
|
||||
toName: Scalars['String']['input'];
|
||||
@ -452,10 +452,10 @@ export enum FieldMetadataType {
|
||||
Date = 'DATE',
|
||||
Email = 'EMAIL',
|
||||
Enum = 'ENUM',
|
||||
Probability = 'PROBABILITY',
|
||||
Money = 'MONEY',
|
||||
Number = 'NUMBER',
|
||||
Phone = 'PHONE',
|
||||
Probability = 'PROBABILITY',
|
||||
Relation = 'RELATION',
|
||||
Text = 'TEXT',
|
||||
Url = 'URL',
|
||||
@ -527,6 +527,7 @@ export type ObjectDeleteResponse = {
|
||||
id?: Maybe<Scalars['ID']['output']>;
|
||||
isActive?: Maybe<Scalars['Boolean']['output']>;
|
||||
isCustom?: Maybe<Scalars['Boolean']['output']>;
|
||||
isSystem?: Maybe<Scalars['Boolean']['output']>;
|
||||
labelPlural?: Maybe<Scalars['String']['output']>;
|
||||
labelSingular?: Maybe<Scalars['String']['output']>;
|
||||
namePlural?: Maybe<Scalars['String']['output']>;
|
||||
@ -671,6 +672,22 @@ export type QueryRelationsArgs = {
|
||||
paging?: CursorPaging;
|
||||
};
|
||||
|
||||
export type RefreshToken = {
|
||||
__typename?: 'RefreshToken';
|
||||
createdAt: Scalars['DateTime']['output'];
|
||||
expiresAt: Scalars['DateTime']['output'];
|
||||
id: Scalars['ID']['output'];
|
||||
updatedAt: Scalars['DateTime']['output'];
|
||||
};
|
||||
|
||||
export type RefreshTokenEdge = {
|
||||
__typename?: 'RefreshTokenEdge';
|
||||
/** Cursor for this node. */
|
||||
cursor: Scalars['ConnectionCursor']['output'];
|
||||
/** The node containing the RefreshToken */
|
||||
node: RefreshToken;
|
||||
};
|
||||
|
||||
export type RelationConnection = {
|
||||
__typename?: 'RelationConnection';
|
||||
/** Array of edges. */
|
||||
@ -681,6 +698,13 @@ export type RelationConnection = {
|
||||
totalCount: Scalars['Int']['output'];
|
||||
};
|
||||
|
||||
/** Type of the relation */
|
||||
export enum RelationMetadataType {
|
||||
ManyToMany = 'MANY_TO_MANY',
|
||||
OneToMany = 'ONE_TO_MANY',
|
||||
OneToOne = 'ONE_TO_ONE'
|
||||
}
|
||||
|
||||
export type Support = {
|
||||
__typename?: 'Support';
|
||||
supportDriver: Scalars['String']['output'];
|
||||
@ -850,6 +874,7 @@ export type Object = {
|
||||
id: Scalars['ID']['output'];
|
||||
isActive: Scalars['Boolean']['output'];
|
||||
isCustom: Scalars['Boolean']['output'];
|
||||
isSystem: Scalars['Boolean']['output'];
|
||||
labelPlural: Scalars['String']['output'];
|
||||
labelSingular: Scalars['String']['output'];
|
||||
namePlural: Scalars['String']['output'];
|
||||
@ -877,7 +902,7 @@ export type Relation = {
|
||||
fromObjectMetadata: Object;
|
||||
fromObjectMetadataId: Scalars['String']['output'];
|
||||
id: Scalars['ID']['output'];
|
||||
relationType: Scalars['String']['output'];
|
||||
relationType: RelationMetadataType;
|
||||
toFieldMetadataId: Scalars['String']['output'];
|
||||
toObjectMetadata: Object;
|
||||
toObjectMetadataId: Scalars['String']['output'];
|
||||
@ -939,7 +964,7 @@ export type DeleteOneFieldMetadataItemMutation = { __typename?: 'Mutation', dele
|
||||
export type ObjectMetadataItemsQueryVariables = Exact<{ [key: string]: never; }>;
|
||||
|
||||
|
||||
export type ObjectMetadataItemsQuery = { __typename?: 'Query', objects: { __typename?: 'ObjectConnection', totalCount: number, edges: Array<{ __typename?: 'objectEdge', node: { __typename?: 'object', id: string, dataSourceId: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, description?: string | null, icon?: string | null, isCustom: boolean, isActive: boolean, createdAt: any, updatedAt: any, fields: { __typename?: 'ObjectFieldsConnection', totalCount: number, edges: Array<{ __typename?: 'fieldEdge', node: { __typename?: 'field', id: string, type: FieldMetadataType, name: string, label: string, description?: string | null, icon?: string | null, placeholder?: string | null, isCustom: boolean, isActive: boolean, isNullable: boolean, createdAt: any, updatedAt: any, fromRelationMetadata?: { __typename?: 'relation', id: string, relationType: string } | null, toRelationMetadata?: { __typename?: 'relation', id: string, relationType: string } | null } }>, pageInfo: { __typename?: 'PageInfo', hasNextPage?: boolean | null, hasPreviousPage?: boolean | null, startCursor?: any | null, endCursor?: any | null } } } }>, pageInfo: { __typename?: 'PageInfo', hasNextPage?: boolean | null, hasPreviousPage?: boolean | null, startCursor?: any | null, endCursor?: any | null } } };
|
||||
export type ObjectMetadataItemsQuery = { __typename?: 'Query', objects: { __typename?: 'ObjectConnection', totalCount: number, edges: Array<{ __typename?: 'objectEdge', node: { __typename?: 'object', id: string, dataSourceId: string, nameSingular: string, namePlural: string, labelSingular: string, labelPlural: string, description?: string | null, icon?: string | null, isCustom: boolean, isActive: boolean, createdAt: any, updatedAt: any, fields: { __typename?: 'ObjectFieldsConnection', totalCount: number, edges: Array<{ __typename?: 'fieldEdge', node: { __typename?: 'field', id: string, type: FieldMetadataType, name: string, label: string, description?: string | null, icon?: string | null, placeholder?: string | null, isCustom: boolean, isActive: boolean, isNullable: boolean, createdAt: any, updatedAt: any, fromRelationMetadata?: { __typename?: 'relation', id: string, relationType: RelationMetadataType } | null, toRelationMetadata?: { __typename?: 'relation', id: string, relationType: RelationMetadataType } | null } }>, pageInfo: { __typename?: 'PageInfo', hasNextPage?: boolean | null, hasPreviousPage?: boolean | null, startCursor?: any | null, endCursor?: any | null } } } }>, pageInfo: { __typename?: 'PageInfo', hasNextPage?: boolean | null, hasPreviousPage?: boolean | null, startCursor?: any | null, endCursor?: any | null } } };
|
||||
|
||||
|
||||
export const CreateOneObjectMetadataItemDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"CreateOneObjectMetadataItem"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CreateOneObjectInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"createOneObject"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"dataSourceId"}},{"kind":"Field","name":{"kind":"Name","value":"nameSingular"}},{"kind":"Field","name":{"kind":"Name","value":"namePlural"}},{"kind":"Field","name":{"kind":"Name","value":"labelSingular"}},{"kind":"Field","name":{"kind":"Name","value":"labelPlural"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"icon"}},{"kind":"Field","name":{"kind":"Name","value":"isCustom"}},{"kind":"Field","name":{"kind":"Name","value":"isActive"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"updatedAt"}}]}}]}}]} as unknown as DocumentNode<CreateOneObjectMetadataItemMutation, CreateOneObjectMetadataItemMutationVariables>;
|
||||
|
||||
@ -1322,6 +1322,7 @@ export enum FieldMetadataType {
|
||||
Money = 'MONEY',
|
||||
Number = 'NUMBER',
|
||||
Phone = 'PHONE',
|
||||
Probability = 'PROBABILITY',
|
||||
Relation = 'RELATION',
|
||||
Text = 'TEXT',
|
||||
Url = 'URL',
|
||||
@ -1799,6 +1800,7 @@ export type ObjectDeleteResponse = {
|
||||
id?: Maybe<Scalars['ID']>;
|
||||
isActive?: Maybe<Scalars['Boolean']>;
|
||||
isCustom?: Maybe<Scalars['Boolean']>;
|
||||
isSystem?: Maybe<Scalars['Boolean']>;
|
||||
labelPlural?: Maybe<Scalars['String']>;
|
||||
labelSingular?: Maybe<Scalars['String']>;
|
||||
namePlural?: Maybe<Scalars['String']>;
|
||||
@ -2558,6 +2560,32 @@ export enum QueryMode {
|
||||
Insensitive = 'insensitive'
|
||||
}
|
||||
|
||||
export type RefreshToken = {
|
||||
__typename?: 'RefreshToken';
|
||||
createdAt: Scalars['DateTime'];
|
||||
expiresAt: Scalars['DateTime'];
|
||||
id: Scalars['ID'];
|
||||
updatedAt: Scalars['DateTime'];
|
||||
};
|
||||
|
||||
export type RefreshTokenConnection = {
|
||||
__typename?: 'RefreshTokenConnection';
|
||||
/** Array of edges. */
|
||||
edges: Array<RefreshTokenEdge>;
|
||||
/** Paging information */
|
||||
pageInfo: PageInfo;
|
||||
/** Fetch total count of records */
|
||||
totalCount: Scalars['Int'];
|
||||
};
|
||||
|
||||
export type RefreshTokenEdge = {
|
||||
__typename?: 'RefreshTokenEdge';
|
||||
/** Cursor for this node. */
|
||||
cursor: Scalars['ConnectionCursor'];
|
||||
/** The node containing the RefreshToken */
|
||||
node: RefreshToken;
|
||||
};
|
||||
|
||||
export type RelationConnection = {
|
||||
__typename?: 'RelationConnection';
|
||||
/** Array of edges. */
|
||||
@ -2568,6 +2596,13 @@ export type RelationConnection = {
|
||||
totalCount: Scalars['Int'];
|
||||
};
|
||||
|
||||
/** Type of the relation */
|
||||
export enum RelationMetadataType {
|
||||
ManyToMany = 'MANY_TO_MANY',
|
||||
OneToMany = 'ONE_TO_MANY',
|
||||
OneToOne = 'ONE_TO_ONE'
|
||||
}
|
||||
|
||||
export enum SortOrder {
|
||||
Asc = 'asc',
|
||||
Desc = 'desc'
|
||||
@ -3151,6 +3186,7 @@ export type Object = {
|
||||
id: Scalars['ID'];
|
||||
isActive: Scalars['Boolean'];
|
||||
isCustom: Scalars['Boolean'];
|
||||
isSystem: Scalars['Boolean'];
|
||||
labelPlural: Scalars['String'];
|
||||
labelSingular: Scalars['String'];
|
||||
namePlural: Scalars['String'];
|
||||
@ -3178,7 +3214,7 @@ export type Relation = {
|
||||
fromObjectMetadata: Object;
|
||||
fromObjectMetadataId: Scalars['String'];
|
||||
id: Scalars['ID'];
|
||||
relationType: Scalars['String'];
|
||||
relationType: RelationMetadataType;
|
||||
toFieldMetadataId: Scalars['String'];
|
||||
toObjectMetadata: Object;
|
||||
toObjectMetadataId: Scalars['String'];
|
||||
|
||||
Reference in New Issue
Block a user