diff --git a/packages/frontend/codegen.yml b/packages/frontend/codegen.yml index 774e3a0ef..38565881d 100644 --- a/packages/frontend/codegen.yml +++ b/packages/frontend/codegen.yml @@ -1,6 +1,6 @@ overwrite: true schema: - - 'http://localhost:3000/graphql' + - 'http://127.0.0.1:3000/graphql' - 'src/graphql/local-only/schema.gql' documents: - 'src/graphql/**/*.gql' diff --git a/packages/frontend/src/graphql/branch.js b/packages/frontend/src/graphql/branch.js index 04b884c2a..6ed84998c 100644 --- a/packages/frontend/src/graphql/branch.js +++ b/packages/frontend/src/graphql/branch.js @@ -10,7 +10,7 @@ export const streamNavBranchesQuery = gql` query StreamAllBranches($streamId: String!, $cursor: String) { stream(id: $streamId) { id - branches(limit: 100, cursor: $cursor) { + branches(limit: 500, cursor: $cursor) { totalCount cursor items { diff --git a/packages/frontend/src/graphql/generated/graphql.ts b/packages/frontend/src/graphql/generated/graphql.ts index 4365912ef..87bd33ef7 100644 --- a/packages/frontend/src/graphql/generated/graphql.ts +++ b/packages/frontend/src/graphql/generated/graphql.ts @@ -148,8 +148,8 @@ export type ApiTokenCreateInput = { export type AppAuthor = { __typename?: 'AppAuthor'; avatar?: Maybe; - id?: Maybe; - name?: Maybe; + id: Scalars['String']; + name: Scalars['String']; }; export type AppCreateInput = { @@ -182,6 +182,98 @@ export type AuthStrategy = { url: Scalars['String']; }; +export type AutomationCreateInput = { + automationId: Scalars['String']; + automationName: Scalars['String']; + automationRevisionId: Scalars['String']; + modelId: Scalars['String']; + projectId: Scalars['String']; + webhookId?: InputMaybe; +}; + +export type AutomationFunctionRun = { + __typename?: 'AutomationFunctionRun'; + contextView?: Maybe; + elapsed: Scalars['Float']; + functionId: Scalars['String']; + functionLogo?: Maybe; + functionName: Scalars['String']; + id: Scalars['ID']; + resultVersions: Array; + /** + * NOTE: this is the schema for the results field below! + * Current schema: { + * version: "1.0.0", + * values: { + * objectResults: Record | null + * visualoverrides: Records | null + * }[]> + * blobIds?: string[] + * } + * } + */ + results?: Maybe; + status: AutomationRunStatus; + statusMessage?: Maybe; +}; + +export type AutomationMutations = { + __typename?: 'AutomationMutations'; + create: Scalars['Boolean']; + functionRunStatusReport: Scalars['Boolean']; +}; + + +export type AutomationMutationsCreateArgs = { + input: AutomationCreateInput; +}; + + +export type AutomationMutationsFunctionRunStatusReportArgs = { + input: AutomationRunStatusUpdateInput; +}; + +export type AutomationRun = { + __typename?: 'AutomationRun'; + automationId: Scalars['String']; + automationName: Scalars['String']; + createdAt: Scalars['DateTime']; + functionRuns: Array; + id: Scalars['ID']; + /** Resolved from all function run statuses */ + status: AutomationRunStatus; + updatedAt: Scalars['DateTime']; + versionId: Scalars['String']; +}; + +export enum AutomationRunStatus { + Failed = 'FAILED', + Initializing = 'INITIALIZING', + Running = 'RUNNING', + Succeeded = 'SUCCEEDED' +} + +export type AutomationRunStatusUpdateInput = { + automationId: Scalars['String']; + automationRevisionId: Scalars['String']; + automationRunId: Scalars['String']; + functionRuns: Array; + versionId: Scalars['String']; +}; + +export type AutomationsStatus = { + __typename?: 'AutomationsStatus'; + automationRuns: Array; + id: Scalars['ID']; + status: AutomationRunStatus; + statusMessage?: Maybe; +}; + export type BlobMetadata = { __typename?: 'BlobMetadata'; createdAt: Scalars['DateTime']; @@ -603,6 +695,27 @@ export type FileUpload = { userId: Scalars['String']; }; +export type FunctionRunStatusInput = { + contextView?: InputMaybe; + elapsed: Scalars['Float']; + functionId: Scalars['String']; + functionLogo?: InputMaybe; + functionName: Scalars['String']; + resultVersionIds: Array; + /** + * Current schema: { + * version: "1.0.0", + * values: { + * speckleObjects: Record + * blobIds?: string[] + * } + * } + */ + results?: InputMaybe; + status: AutomationRunStatus; + statusMessage?: InputMaybe; +}; + export type LegacyCommentViewerData = { __typename?: 'LegacyCommentViewerData'; /** @@ -693,6 +806,7 @@ export type LimitedUserTimelineArgs = { export type Model = { __typename?: 'Model'; author: LimitedUser; + automationStatus?: Maybe; /** Return a model tree of children */ childrenTree: Array; /** All comment threads in this model */ @@ -820,6 +934,7 @@ export type Mutation = { appRevokeAccess?: Maybe; /** Update an existing third party application. **Note: This will invalidate all existing tokens, refresh tokens and access codes and will require existing users to re-authorize it.** */ appUpdate: Scalars['Boolean']; + automationMutations: AutomationMutations; branchCreate: Scalars['String']; branchDelete: Scalars['Boolean']; branchUpdate: Scalars['Boolean']; @@ -1320,6 +1435,7 @@ export type Project = { /** Return metadata about resources being requested in the viewer */ viewerResources: Array; visibility: ProjectVisibility; + webhooks: WebhookCollection; }; @@ -1370,6 +1486,19 @@ export type ProjectViewerResourcesArgs = { resourceIdString: Scalars['String']; }; + +export type ProjectWebhooksArgs = { + id?: InputMaybe; +}; + +export type ProjectAutomationsStatusUpdatedMessage = { + __typename?: 'ProjectAutomationsStatusUpdatedMessage'; + model: Model; + project: Project; + status: AutomationsStatus; + version: Version; +}; + export type ProjectCollaborator = { __typename?: 'ProjectCollaborator'; role: Scalars['String']; @@ -1433,6 +1562,8 @@ export type ProjectInviteCreateInput = { email?: InputMaybe; /** Defaults to the contributor role, if not specified */ role?: InputMaybe; + /** Can only be specified if guest mode is on or if the user is an admin */ + serverRole?: InputMaybe; /** Either this or email must be filled */ userId?: InputMaybe; }; @@ -1521,7 +1652,10 @@ export type ProjectMutations = { __typename?: 'ProjectMutations'; /** Create new project */ create: Project; - /** Create onboarding/tutorial project */ + /** + * Create onboarding/tutorial project. If one is already created for the active user, that + * one will be returned instead. + */ createForOnboarding: Project; /** Delete an existing project */ delete: Scalars['Boolean']; @@ -1915,6 +2049,8 @@ export type ServerInfo = { adminContact?: Maybe; /** The authentication strategies available on this server. */ authStrategies: Array; + /** Base URL of Speckle Automate, if set */ + automateUrl?: Maybe; blobSizeLimitBytes: Scalars['Int']; canonicalUrl?: Maybe; company?: Maybe; @@ -1922,6 +2058,7 @@ export type ServerInfo = { guestModeEnabled: Scalars['Boolean']; inviteOnly?: Maybe; name: Scalars['String']; + /** @deprecated Use role constants from the @speckle/shared npm package instead */ roles: Array; scopes: Array; serverRoles: Array; @@ -1949,6 +2086,8 @@ export type ServerInvite = { export type ServerInviteCreateInput = { email: Scalars['String']; message?: InputMaybe; + /** Can only be specified if guest mode is on or if the user is an admin */ + serverRole?: InputMaybe; }; export enum ServerRole { @@ -2058,7 +2197,7 @@ export type Stream = { role?: Maybe; size?: Maybe; updatedAt: Scalars['DateTime']; - webhooks?: Maybe; + webhooks: WebhookCollection; }; @@ -2167,6 +2306,8 @@ export type StreamInviteCreateInput = { message?: InputMaybe; /** Defaults to the contributor role, if not specified */ role?: InputMaybe; + /** Can only be specified if guest mode is on or if the user is an admin */ + serverRole?: InputMaybe; streamId: Scalars['String']; userId?: InputMaybe; }; @@ -2232,6 +2373,7 @@ export type Subscription = { commitDeleted?: Maybe; /** Subscribe to commit updated event. */ commitUpdated?: Maybe; + projectAutomationsStatusUpdated: ProjectAutomationsStatusUpdatedMessage; /** * Subscribe to updates to resource comments/threads. Optionally specify resource ID string to only receive * updates regarding comments for those resources. @@ -2319,6 +2461,11 @@ export type SubscriptionCommitUpdatedArgs = { }; +export type SubscriptionProjectAutomationsStatusUpdatedArgs = { + projectId: Scalars['String']; +}; + + export type SubscriptionProjectCommentsUpdatedArgs = { target: ViewerUpdateTrackingTarget; }; @@ -2561,6 +2708,7 @@ export type UserUpdateInput = { export type Version = { __typename?: 'Version'; authorUser?: Maybe; + automationStatus?: Maybe; /** All comment threads in this version */ commentThreads: CommentCollection; createdAt: Scalars['DateTime']; @@ -2668,10 +2816,12 @@ export type Webhook = { __typename?: 'Webhook'; description?: Maybe; enabled?: Maybe; + hasSecret: Scalars['Boolean']; history?: Maybe; id: Scalars['String']; + projectId: Scalars['String']; streamId: Scalars['String']; - triggers: Array>; + triggers: Array; url: Scalars['String']; }; @@ -2682,8 +2832,8 @@ export type WebhookHistoryArgs = { export type WebhookCollection = { __typename?: 'WebhookCollection'; - items?: Maybe>>; - totalCount?: Maybe; + items: Array; + totalCount: Scalars['Int']; }; export type WebhookCreateInput = { @@ -3119,14 +3269,14 @@ export type WebhookQueryVariables = Exact<{ }>; -export type WebhookQuery = { __typename?: 'Query', stream?: { __typename?: 'Stream', id: string, role?: string | null, webhooks?: { __typename?: 'WebhookCollection', items?: Array<{ __typename?: 'Webhook', id: string, streamId: string, url: string, description?: string | null, triggers: Array, enabled?: boolean | null, history?: { __typename?: 'WebhookEventCollection', items?: Array<{ __typename?: 'WebhookEvent', status: number, statusInfo: string } | null> | null } | null } | null> | null } | null } | null }; +export type WebhookQuery = { __typename?: 'Query', stream?: { __typename?: 'Stream', id: string, role?: string | null, webhooks: { __typename?: 'WebhookCollection', items: Array<{ __typename?: 'Webhook', id: string, streamId: string, url: string, description?: string | null, triggers: Array, enabled?: boolean | null, history?: { __typename?: 'WebhookEventCollection', items?: Array<{ __typename?: 'WebhookEvent', status: number, statusInfo: string } | null> | null } | null }> } } | null }; export type WebhooksQueryVariables = Exact<{ streamId: Scalars['String']; }>; -export type WebhooksQuery = { __typename?: 'Query', stream?: { __typename?: 'Stream', id: string, name: string, role?: string | null, webhooks?: { __typename?: 'WebhookCollection', items?: Array<{ __typename?: 'Webhook', id: string, streamId: string, url: string, description?: string | null, triggers: Array, enabled?: boolean | null, history?: { __typename?: 'WebhookEventCollection', items?: Array<{ __typename?: 'WebhookEvent', status: number, statusInfo: string, lastUpdate: string } | null> | null } | null } | null> | null } | null } | null }; +export type WebhooksQuery = { __typename?: 'Query', stream?: { __typename?: 'Stream', id: string, name: string, role?: string | null, webhooks: { __typename?: 'WebhookCollection', items: Array<{ __typename?: 'Webhook', id: string, streamId: string, url: string, description?: string | null, triggers: Array, enabled?: boolean | null, history?: { __typename?: 'WebhookEventCollection', items?: Array<{ __typename?: 'WebhookEvent', status: number, statusInfo: string, lastUpdate: string } | null> | null } | null }> } } | null }; export const CommentFullInfo = gql` fragment CommentFullInfo on Comment { @@ -3371,7 +3521,7 @@ export const StreamAllBranches = gql` query StreamAllBranches($streamId: String!, $cursor: String) { stream(id: $streamId) { id - branches(limit: 100, cursor: $cursor) { + branches(limit: 500, cursor: $cursor) { totalCount cursor items { @@ -3973,7 +4123,7 @@ export const CreateStreamAccessRequestDocument = {"kind":"Document","definitions export const UseStreamAccessRequestDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"UseStreamAccessRequest"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"requestId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"accept"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"role"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"StreamRole"}},"defaultValue":{"kind":"EnumValue","value":"STREAM_CONTRIBUTOR"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"streamAccessRequestUse"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"requestId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"requestId"}}},{"kind":"Argument","name":{"kind":"Name","value":"accept"},"value":{"kind":"Variable","name":{"kind":"Name","value":"accept"}}},{"kind":"Argument","name":{"kind":"Name","value":"role"},"value":{"kind":"Variable","name":{"kind":"Name","value":"role"}}}]}]}}]} as unknown as DocumentNode; export const StreamWithBranchDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"StreamWithBranch"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"branchName"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stream"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"branch"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"name"},"value":{"kind":"Variable","name":{"kind":"Name","value":"branchName"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"commits"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"cursor"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}}},{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"4"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}},{"kind":"Field","name":{"kind":"Name","value":"cursor"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"authorName"}},{"kind":"Field","name":{"kind":"Name","value":"authorId"}},{"kind":"Field","name":{"kind":"Name","value":"authorAvatar"}},{"kind":"Field","name":{"kind":"Name","value":"sourceApplication"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"referencedObject"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"commentCount"}}]}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const BranchCreatedDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"BranchCreated"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"branchCreated"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"streamId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}}}]}]}}]} as unknown as DocumentNode; -export const StreamAllBranchesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"StreamAllBranches"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stream"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"branches"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"100"}},{"kind":"Argument","name":{"kind":"Name","value":"cursor"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}},{"kind":"Field","name":{"kind":"Name","value":"cursor"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"author"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"commits"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]}}]}}]}}]} as unknown as DocumentNode; +export const StreamAllBranchesDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"StreamAllBranches"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stream"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"branches"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"500"}},{"kind":"Argument","name":{"kind":"Name","value":"cursor"},"value":{"kind":"Variable","name":{"kind":"Name","value":"cursor"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}},{"kind":"Field","name":{"kind":"Name","value":"cursor"}},{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"description"}},{"kind":"Field","name":{"kind":"Name","value":"author"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}}]}},{"kind":"Field","name":{"kind":"Name","value":"commits"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"totalCount"}}]}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const StreamCommitQueryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"StreamCommitQuery"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"id"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stream"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"name"}},{"kind":"Field","name":{"kind":"Name","value":"role"}},{"kind":"Field","name":{"kind":"Name","value":"commit"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"id"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"message"}},{"kind":"Field","name":{"kind":"Name","value":"referencedObject"}},{"kind":"Field","name":{"kind":"Name","value":"authorName"}},{"kind":"Field","name":{"kind":"Name","value":"authorId"}},{"kind":"Field","name":{"kind":"Name","value":"authorAvatar"}},{"kind":"Field","name":{"kind":"Name","value":"createdAt"}},{"kind":"Field","name":{"kind":"Name","value":"branchName"}},{"kind":"Field","name":{"kind":"Name","value":"sourceApplication"}}]}}]}}]}}]} as unknown as DocumentNode; export const StreamBranchesSelectorDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"StreamBranchesSelector"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"stream"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"id"},"value":{"kind":"Variable","name":{"kind":"Name","value":"streamId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"id"}},{"kind":"Field","name":{"kind":"Name","value":"branches"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"limit"},"value":{"kind":"IntValue","value":"100"}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"items"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"name"}}]}}]}}]}}]}}]} as unknown as DocumentNode; export const MoveCommitsDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","name":{"kind":"Name","value":"MoveCommits"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"input"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"CommitsMoveInput"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"commitsMove"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"input"},"value":{"kind":"Variable","name":{"kind":"Name","value":"input"}}}]}]}}]} as unknown as DocumentNode; diff --git a/packages/server/modules/shared/helpers/envHelper.ts b/packages/server/modules/shared/helpers/envHelper.ts index 6f146468c..c65de445c 100644 --- a/packages/server/modules/shared/helpers/envHelper.ts +++ b/packages/server/modules/shared/helpers/envHelper.ts @@ -217,5 +217,5 @@ export function getEmailFromAddress() { } export function getMaximumProjectModelsPerPage() { - return getIntFromEnv('MAX_PROJECT_MODELS_PER_PAGE', '100') + return getIntFromEnv('MAX_PROJECT_MODELS_PER_PAGE', '500') }