From 4605da099ac786294905a67ce13e5070e50db024 Mon Sep 17 00:00:00 2001 From: nourbalaha Date: Wed, 6 Mar 2024 11:37:22 +0900 Subject: [PATCH] feat: increase asset file fragment depth --- web/src/gql/fragments/file.ts | 19 +++++++++++++++++-- web/src/gql/graphql-client-api.tsx | 27 +++++++++++++++++++++------ web/src/gql/queries/assets.ts | 2 +- 3 files changed, 39 insertions(+), 9 deletions(-) diff --git a/web/src/gql/fragments/file.ts b/web/src/gql/fragments/file.ts index 377e3edfd5..4bfbee60d4 100644 --- a/web/src/gql/fragments/file.ts +++ b/web/src/gql/fragments/file.ts @@ -9,8 +9,8 @@ export const assetFileFragment = gql` } `; -export const assetFile5Fragment = gql` - fragment assetFile5Fragment on AssetFile { +export const assetFile10Fragment = gql` + fragment assetFile10Fragment on AssetFile { ...assetFileFragment children { ...assetFileFragment @@ -22,6 +22,21 @@ export const assetFile5Fragment = gql` ...assetFileFragment children { ...assetFileFragment + children { + ...assetFileFragment + children { + ...assetFileFragment + children { + ...assetFileFragment + children { + ...assetFileFragment + children { + ...assetFileFragment + } + } + } + } + } } } } diff --git a/web/src/gql/graphql-client-api.tsx b/web/src/gql/graphql-client-api.tsx index cba15f5b50..4df4a82852 100644 --- a/web/src/gql/graphql-client-api.tsx +++ b/web/src/gql/graphql-client-api.tsx @@ -2135,7 +2135,7 @@ export type AssetFragmentFragment = { __typename?: 'Asset', id: string, fileName export type AssetFileFragmentFragment = { __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string }; -export type AssetFile5FragmentFragment = { __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string }> | null }> | null }> | null }> | null }> | null }; +export type AssetFile10FragmentFragment = { __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string }> | null }> | null }> | null }> | null }> | null }> | null }> | null }> | null }> | null }> | null }; export type IntegrationFragmentFragment = { __typename?: 'Integration', id: string, name: string, description?: string | null, logoUrl: string, iType: IntegrationType, developerId: string, createdAt: Date, updatedAt: Date, developer: { __typename?: 'User', id: string, name: string, email: string }, config?: { __typename?: 'IntegrationConfig', token: string, webhooks: Array<{ __typename?: 'Webhook', id: string, name: string, url: string, active: boolean, secret: string, createdAt: Date, updatedAt: Date, trigger: { __typename?: 'WebhookTrigger', onItemCreate?: boolean | null, onItemUpdate?: boolean | null, onItemDelete?: boolean | null, onItemPublish?: boolean | null, onItemUnPublish?: boolean | null, onAssetUpload?: boolean | null, onAssetDecompress?: boolean | null, onAssetDelete?: boolean | null } }> } | null }; @@ -2177,7 +2177,7 @@ export type GetAssetFileQueryVariables = Exact<{ }>; -export type GetAssetFileQuery = { __typename?: 'Query', assetFile: { __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string }> | null }> | null }> | null }> | null }> | null } }; +export type GetAssetFileQuery = { __typename?: 'Query', assetFile: { __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string, children?: Array<{ __typename?: 'AssetFile', name: string, size: number, contentType?: string | null, path: string }> | null }> | null }> | null }> | null }> | null }> | null }> | null }> | null }> | null }> | null } }; export type GetAssetItemQueryVariables = Exact<{ assetId: Scalars['ID']; @@ -2948,8 +2948,8 @@ export const AssetFileFragmentFragmentDoc = gql` path } `; -export const AssetFile5FragmentFragmentDoc = gql` - fragment assetFile5Fragment on AssetFile { +export const AssetFile10FragmentFragmentDoc = gql` + fragment assetFile10Fragment on AssetFile { ...assetFileFragment children { ...assetFileFragment @@ -2961,6 +2961,21 @@ export const AssetFile5FragmentFragmentDoc = gql` ...assetFileFragment children { ...assetFileFragment + children { + ...assetFileFragment + children { + ...assetFileFragment + children { + ...assetFileFragment + children { + ...assetFileFragment + children { + ...assetFileFragment + } + } + } + } + } } } } @@ -3249,10 +3264,10 @@ export type GetAssetQueryResult = Apollo.QueryResult