diff --git a/.prettierignore b/.prettierignore index ce2f75454..1f1623c53 100644 --- a/.prettierignore +++ b/.prettierignore @@ -23,4 +23,4 @@ utils/helm/speckle-server/templates venv .*.{ts,js,vue,tsx,jsx} -generated/**/* \ No newline at end of file +**/generated/**/* \ No newline at end of file diff --git a/packages/frontend/package.json b/packages/frontend/package.json index 57931bb0d..b806ba4ac 100644 --- a/packages/frontend/package.json +++ b/packages/frontend/package.json @@ -36,7 +36,6 @@ "@vuejs-community/vue-filter-date-format": "^1.6.3", "@vuejs-community/vue-filter-date-parse": "^1.1.6", "apexcharts": "^3.33.1", - "crypto-random-string": "^3.3.0", "dompurify": "^2.3.6", "lodash": "^4.17.21", "numeral": "^2.0.6", diff --git a/packages/frontend/src/graphql/comments.ts b/packages/frontend/src/graphql/comments.ts new file mode 100644 index 000000000..73b74ec6f --- /dev/null +++ b/packages/frontend/src/graphql/comments.ts @@ -0,0 +1,29 @@ +import gql from 'graphql-tag' + +export const COMMENT_FULL_INFO_FRAGMENT = gql` + fragment CommentFullInfo on Comment { + id + archived + authorId + text { + doc + attachments { + id + fileName + streamId + } + } + data + screenshot + replies { + totalCount + } + resources { + resourceId + resourceType + } + createdAt + updatedAt + viewedAt + } +` diff --git a/packages/frontend/src/graphql/generated/graphql.ts b/packages/frontend/src/graphql/generated/graphql.ts index 8a1d6aef2..c185a23c7 100644 --- a/packages/frontend/src/graphql/generated/graphql.ts +++ b/packages/frontend/src/graphql/generated/graphql.ts @@ -1,181 +1,174 @@ -import gql from 'graphql-tag' -import { - createMutationFunction, - createSmartQueryOptionsFunction, - createSmartSubscriptionOptionsFunction -} from 'vue-apollo-smart-ops' -import { ApolloError } from 'apollo-client' -export type Maybe = T | null -export type InputMaybe = Maybe -export type Exact = { [K in keyof T]: T[K] } -export type MakeOptional = Omit & { - [SubKey in K]?: Maybe -} -export type MakeMaybe = Omit & { - [SubKey in K]: Maybe -} - +import gql from 'graphql-tag'; +import { createMutationFunction, createSmartQueryOptionsFunction, createSmartSubscriptionOptionsFunction } from 'vue-apollo-smart-ops'; +import { ApolloError } from 'apollo-client'; +export type Maybe = T | null; +export type InputMaybe = Maybe; +export type Exact = { [K in keyof T]: T[K] }; +export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; +export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string - String: string - Boolean: boolean - Int: number - Float: number + ID: string; + String: string; + Boolean: boolean; + Int: number; + Float: number; /** The `BigInt` scalar type represents non-fractional signed whole numeric values. */ - BigInt: any + BigInt: any; /** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */ - DateTime: any - EmailAddress: any + DateTime: any; + EmailAddress: any; /** The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */ - JSONObject: any + JSONObject: any; /** The `Upload` scalar type represents a file upload. */ - Upload: any -} + Upload: any; +}; export type Activity = { - __typename?: 'Activity' - actionType: Scalars['String'] - info: Scalars['JSONObject'] - message: Scalars['String'] - resourceId: Scalars['String'] - resourceType: Scalars['String'] - streamId?: Maybe - time: Scalars['DateTime'] - userId: Scalars['String'] -} + __typename?: 'Activity'; + actionType: Scalars['String']; + info: Scalars['JSONObject']; + message: Scalars['String']; + resourceId: Scalars['String']; + resourceType: Scalars['String']; + streamId?: Maybe; + time: Scalars['DateTime']; + userId: Scalars['String']; +}; export type ActivityCollection = { - __typename?: 'ActivityCollection' - cursor?: Maybe - items?: Maybe>> - totalCount: Scalars['Int'] -} + __typename?: 'ActivityCollection'; + cursor?: Maybe; + items?: Maybe>>; + totalCount: Scalars['Int']; +}; export type ApiToken = { - __typename?: 'ApiToken' - createdAt: Scalars['DateTime'] - id: Scalars['String'] - lastChars: Scalars['String'] - lastUsed: Scalars['DateTime'] - lifespan: Scalars['BigInt'] - name: Scalars['String'] - scopes: Array> -} + __typename?: 'ApiToken'; + createdAt: Scalars['DateTime']; + id: Scalars['String']; + lastChars: Scalars['String']; + lastUsed: Scalars['DateTime']; + lifespan: Scalars['BigInt']; + name: Scalars['String']; + scopes: Array>; +}; export type ApiTokenCreateInput = { - lifespan?: InputMaybe - name: Scalars['String'] - scopes: Array -} + lifespan?: InputMaybe; + name: Scalars['String']; + scopes: Array; +}; export type AppAuthor = { - __typename?: 'AppAuthor' - avatar?: Maybe - id?: Maybe - name?: Maybe -} + __typename?: 'AppAuthor'; + avatar?: Maybe; + id?: Maybe; + name?: Maybe; +}; export type AppCreateInput = { - description: Scalars['String'] - logo?: InputMaybe - name: Scalars['String'] - public?: InputMaybe - redirectUrl: Scalars['String'] - scopes: Array> - termsAndConditionsLink?: InputMaybe -} + description: Scalars['String']; + logo?: InputMaybe; + name: Scalars['String']; + public?: InputMaybe; + redirectUrl: Scalars['String']; + scopes: Array>; + termsAndConditionsLink?: InputMaybe; +}; export type AppUpdateInput = { - description: Scalars['String'] - id: Scalars['String'] - logo?: InputMaybe - name: Scalars['String'] - public?: InputMaybe - redirectUrl: Scalars['String'] - scopes: Array> - termsAndConditionsLink?: InputMaybe -} + description: Scalars['String']; + id: Scalars['String']; + logo?: InputMaybe; + name: Scalars['String']; + public?: InputMaybe; + redirectUrl: Scalars['String']; + scopes: Array>; + termsAndConditionsLink?: InputMaybe; +}; export type AuthStrategy = { - __typename?: 'AuthStrategy' - color?: Maybe - icon: Scalars['String'] - id: Scalars['String'] - name: Scalars['String'] - url: Scalars['String'] -} + __typename?: 'AuthStrategy'; + color?: Maybe; + icon: Scalars['String']; + id: Scalars['String']; + name: Scalars['String']; + url: Scalars['String']; +}; export type BlobMetadata = { - __typename?: 'BlobMetadata' - createdAt: Scalars['DateTime'] - fileName: Scalars['String'] - fileSize?: Maybe - fileType: Scalars['String'] - id: Scalars['String'] - streamId: Scalars['String'] - uploadError?: Maybe - uploadStatus: Scalars['Int'] - userId: Scalars['String'] -} + __typename?: 'BlobMetadata'; + createdAt: Scalars['DateTime']; + fileName: Scalars['String']; + fileSize?: Maybe; + fileType: Scalars['String']; + id: Scalars['String']; + streamId: Scalars['String']; + uploadError?: Maybe; + uploadStatus: Scalars['Int']; + userId: Scalars['String']; +}; export type BlobMetadataCollection = { - __typename?: 'BlobMetadataCollection' - cursor?: Maybe - items?: Maybe> - totalCount: Scalars['Int'] - totalSize: Scalars['Int'] -} + __typename?: 'BlobMetadataCollection'; + cursor?: Maybe; + items?: Maybe>; + totalCount: Scalars['Int']; + totalSize: Scalars['Int']; +}; export type Branch = { - __typename?: 'Branch' + __typename?: 'Branch'; /** All the recent activity on this branch in chronological order */ - activity?: Maybe - author?: Maybe - commits?: Maybe - createdAt?: Maybe - description?: Maybe - id: Scalars['String'] - name: Scalars['String'] -} + activity?: Maybe; + author?: Maybe; + commits?: Maybe; + createdAt?: Maybe; + description?: Maybe; + id: Scalars['String']; + name: Scalars['String']; +}; + export type BranchActivityArgs = { - actionType?: InputMaybe - after?: InputMaybe - before?: InputMaybe - cursor?: InputMaybe - limit?: Scalars['Int'] -} + actionType?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + cursor?: InputMaybe; + limit?: Scalars['Int']; +}; + export type BranchCommitsArgs = { - cursor?: InputMaybe - limit?: Scalars['Int'] -} + cursor?: InputMaybe; + limit?: Scalars['Int']; +}; export type BranchCollection = { - __typename?: 'BranchCollection' - cursor?: Maybe - items?: Maybe>> - totalCount: Scalars['Int'] -} + __typename?: 'BranchCollection'; + cursor?: Maybe; + items?: Maybe>>; + totalCount: Scalars['Int']; +}; export type BranchCreateInput = { - description?: InputMaybe - name: Scalars['String'] - streamId: Scalars['String'] -} + description?: InputMaybe; + name: Scalars['String']; + streamId: Scalars['String']; +}; export type BranchDeleteInput = { - id: Scalars['String'] - streamId: Scalars['String'] -} + id: Scalars['String']; + streamId: Scalars['String']; +}; export type BranchUpdateInput = { - description?: InputMaybe - id: Scalars['String'] - name?: InputMaybe - streamId: Scalars['String'] -} + description?: InputMaybe; + id: Scalars['String']; + name?: InputMaybe; + streamId: Scalars['String']; +}; export enum CacheControlScope { Private = 'PRIVATE', @@ -183,67 +176,85 @@ export enum CacheControlScope { } export type Comment = { - __typename?: 'Comment' - archived: Scalars['Boolean'] - authorId: Scalars['String'] - createdAt?: Maybe - data?: Maybe - id: Scalars['String'] - reactions?: Maybe>> + __typename?: 'Comment'; + archived: Scalars['Boolean']; + authorId: Scalars['String']; + createdAt?: Maybe; + data?: Maybe; + id: Scalars['String']; + reactions?: Maybe>>; /** Gets the replies to this comment. */ - replies?: Maybe + replies?: Maybe; /** Resources that this comment targets. Can be a mixture of either one stream, or multiple commits and objects. */ - resources: Array> - screenshot?: Maybe - text: SmartTextEditorValue + resources: Array>; + screenshot?: Maybe; + text: SmartTextEditorValue; /** The time this comment was last updated. Corresponds also to the latest reply to this comment, if any. */ - updatedAt?: Maybe + updatedAt?: Maybe; /** The last time you viewed this comment. Present only if an auth'ed request. Relevant only if a top level commit. */ - viewedAt?: Maybe -} + viewedAt?: Maybe; +}; + export type CommentRepliesArgs = { - cursor?: InputMaybe - limit?: InputMaybe -} + cursor?: InputMaybe; + limit?: InputMaybe; +}; + +export type CommentActivityMessage = { + __typename?: 'CommentActivityMessage'; + comment: Comment; + type: Scalars['String']; +}; export type CommentCollection = { - __typename?: 'CommentCollection' - cursor?: Maybe - items: Array - totalCount: Scalars['Int'] -} + __typename?: 'CommentCollection'; + cursor?: Maybe; + items: Array; + totalCount: Scalars['Int']; +}; export type CommentCreateInput = { - data: Scalars['JSONObject'] + /** IDs of uploaded blobs that should be attached to this comment */ + blobIds: Array; + data: Scalars['JSONObject']; /** * Specifies the resources this comment is linked to. There are several use cases: * - a comment targets only one resource (commit or object) * - a comment targets one or more resources (commits or objects) * - a comment targets only a stream */ - resources: Array> - screenshot?: InputMaybe - streamId: Scalars['String'] + resources: Array>; + screenshot?: InputMaybe; + streamId: Scalars['String']; /** ProseMirror document object */ - text: Scalars['JSONObject'] -} + text?: InputMaybe; +}; export type CommentEditInput = { - id: Scalars['String'] - streamId: Scalars['String'] + /** IDs of uploaded blobs that should be attached to this comment */ + blobIds: Array; + id: Scalars['String']; + streamId: Scalars['String']; /** ProseMirror document object */ - text: Scalars['JSONObject'] -} + text?: InputMaybe; +}; + +export type CommentThreadActivityMessage = { + __typename?: 'CommentThreadActivityMessage'; + data?: Maybe; + reply?: Maybe; + type: Scalars['String']; +}; export type Commit = { - __typename?: 'Commit' + __typename?: 'Commit'; /** All the recent activity on this commit in chronological order */ - activity?: Maybe - authorAvatar?: Maybe - authorId?: Maybe - authorName?: Maybe - branchName?: Maybe + activity?: Maybe; + authorAvatar?: Maybe; + authorId?: Maybe; + authorName?: Maybe; + branchName?: Maybe; /** * The total number of comments for this commit. To actually get the comments, use the comments query and pass in a resource array consisting of of this commit's id. * E.g., @@ -254,41 +265,42 @@ export type Commit = { * } * ``` */ - commentCount: Scalars['Int'] - createdAt?: Maybe - id: Scalars['String'] - message?: Maybe - parents?: Maybe>> - referencedObject: Scalars['String'] - sourceApplication?: Maybe - totalChildrenCount?: Maybe -} + commentCount: Scalars['Int']; + createdAt?: Maybe; + id: Scalars['String']; + message?: Maybe; + parents?: Maybe>>; + referencedObject: Scalars['String']; + sourceApplication?: Maybe; + totalChildrenCount?: Maybe; +}; + export type CommitActivityArgs = { - actionType?: InputMaybe - after?: InputMaybe - before?: InputMaybe - cursor?: InputMaybe - limit?: Scalars['Int'] -} + actionType?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + cursor?: InputMaybe; + limit?: Scalars['Int']; +}; export type CommitCollection = { - __typename?: 'CommitCollection' - cursor?: Maybe - items?: Maybe>> - totalCount: Scalars['Int'] -} + __typename?: 'CommitCollection'; + cursor?: Maybe; + items?: Maybe>>; + totalCount: Scalars['Int']; +}; export type CommitCollectionUser = { - __typename?: 'CommitCollectionUser' - cursor?: Maybe - items?: Maybe>> - totalCount: Scalars['Int'] -} + __typename?: 'CommitCollectionUser'; + cursor?: Maybe; + items?: Maybe>>; + totalCount: Scalars['Int']; +}; export type CommitCollectionUserNode = { - __typename?: 'CommitCollectionUserNode' - branchName?: Maybe + __typename?: 'CommitCollectionUserNode'; + branchName?: Maybe; /** * The total number of comments for this commit. To actually get the comments, use the comments query and pass in a resource array consisting of of this commit's id. * E.g., @@ -299,307 +311,345 @@ export type CommitCollectionUserNode = { * } * ``` */ - commentCount: Scalars['Int'] - createdAt?: Maybe - id: Scalars['String'] - message?: Maybe - parents?: Maybe>> - referencedObject: Scalars['String'] - sourceApplication?: Maybe - streamId?: Maybe - streamName?: Maybe - totalChildrenCount?: Maybe -} + commentCount: Scalars['Int']; + createdAt?: Maybe; + id: Scalars['String']; + message?: Maybe; + parents?: Maybe>>; + referencedObject: Scalars['String']; + sourceApplication?: Maybe; + streamId?: Maybe; + streamName?: Maybe; + totalChildrenCount?: Maybe; +}; export type CommitCreateInput = { - branchName: Scalars['String'] - message?: InputMaybe - objectId: Scalars['String'] - parents?: InputMaybe>> + branchName: Scalars['String']; + message?: InputMaybe; + objectId: Scalars['String']; + parents?: InputMaybe>>; /** **DEPRECATED** Use the `parents` field. */ - previousCommitIds?: InputMaybe>> - sourceApplication?: InputMaybe - streamId: Scalars['String'] - totalChildrenCount?: InputMaybe -} + previousCommitIds?: InputMaybe>>; + sourceApplication?: InputMaybe; + streamId: Scalars['String']; + totalChildrenCount?: InputMaybe; +}; export type CommitDeleteInput = { - id: Scalars['String'] - streamId: Scalars['String'] -} + id: Scalars['String']; + streamId: Scalars['String']; +}; export type CommitReceivedInput = { - commitId: Scalars['String'] - message?: InputMaybe - sourceApplication: Scalars['String'] - streamId: Scalars['String'] -} + commitId: Scalars['String']; + message?: InputMaybe; + sourceApplication: Scalars['String']; + streamId: Scalars['String']; +}; export type CommitUpdateInput = { - id: Scalars['String'] - message?: InputMaybe + id: Scalars['String']; + message?: InputMaybe; /** To move the commit to a different branch, please the name of the branch. */ - newBranchName?: InputMaybe - streamId: Scalars['String'] -} + newBranchName?: InputMaybe; + streamId: Scalars['String']; +}; export type FileUpload = { - __typename?: 'FileUpload' - branchName?: Maybe + __typename?: 'FileUpload'; + branchName?: Maybe; /** If present, the conversion result is stored in this commit. */ - convertedCommitId?: Maybe - convertedLastUpdate: Scalars['DateTime'] + convertedCommitId?: Maybe; + convertedLastUpdate: Scalars['DateTime']; /** Holds any errors or info. */ - convertedMessage?: Maybe + convertedMessage?: Maybe; /** 0 = queued, 1 = processing, 2 = success, 3 = error */ - convertedStatus: Scalars['Int'] - fileName: Scalars['String'] - fileSize: Scalars['Int'] - fileType: Scalars['String'] - id: Scalars['String'] - streamId: Scalars['String'] - uploadComplete: Scalars['Boolean'] - uploadDate: Scalars['DateTime'] + convertedStatus: Scalars['Int']; + fileName: Scalars['String']; + fileSize: Scalars['Int']; + fileType: Scalars['String']; + id: Scalars['String']; + streamId: Scalars['String']; + uploadComplete: Scalars['Boolean']; + uploadDate: Scalars['DateTime']; /** The user's id that uploaded this file. */ - userId: Scalars['String'] -} + userId: Scalars['String']; +}; export type Mutation = { - __typename?: 'Mutation' + __typename?: 'Mutation'; /** The void stares back. */ - _?: Maybe - adminDeleteUser: Scalars['Boolean'] + _?: Maybe; + adminDeleteUser: Scalars['Boolean']; /** Creates an personal api token. */ - apiTokenCreate: Scalars['String'] + apiTokenCreate: Scalars['String']; /** Revokes (deletes) an personal api token. */ - apiTokenRevoke: Scalars['Boolean'] + apiTokenRevoke: Scalars['Boolean']; /** Register a new third party application. */ - appCreate: Scalars['String'] + appCreate: Scalars['String']; /** Deletes a thirty party application. */ - appDelete: Scalars['Boolean'] + appDelete: Scalars['Boolean']; /** Revokes (de-authorizes) an application that you have previously authorized. */ - appRevokeAccess?: Maybe + 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'] - branchCreate: Scalars['String'] - branchDelete: Scalars['Boolean'] - branchUpdate: Scalars['Boolean'] + appUpdate: Scalars['Boolean']; + branchCreate: Scalars['String']; + branchDelete: Scalars['Boolean']; + branchUpdate: Scalars['Boolean']; /** Archives a comment. */ - commentArchive: Scalars['Boolean'] + commentArchive: Scalars['Boolean']; /** Creates a comment */ - commentCreate: Scalars['String'] + commentCreate: Scalars['String']; /** Edits a comment. */ - commentEdit: Scalars['Boolean'] + commentEdit: Scalars['Boolean']; /** Adds a reply to a comment. */ - commentReply: Scalars['String'] + commentReply: Scalars['String']; /** Flags a comment as viewed by you (the logged in user). */ - commentView: Scalars['Boolean'] - commitCreate: Scalars['String'] - commitDelete: Scalars['Boolean'] - commitReceive: Scalars['Boolean'] - commitUpdate: Scalars['Boolean'] - objectCreate: Array> - serverInfoUpdate?: Maybe - serverInviteCreate?: Maybe + commentView: Scalars['Boolean']; + commitCreate: Scalars['String']; + commitDelete: Scalars['Boolean']; + commitReceive: Scalars['Boolean']; + commitUpdate: Scalars['Boolean']; + objectCreate: Array>; + serverInfoUpdate?: Maybe; + serverInviteCreate?: Maybe; /** Creates a new stream. */ - streamCreate?: Maybe + streamCreate?: Maybe; /** Deletes an existing stream. */ - streamDelete: Scalars['Boolean'] + streamDelete: Scalars['Boolean']; /** Favorite/unfavorite the given stream */ - streamFavorite?: Maybe + streamFavorite?: Maybe; /** Grants permissions to a user on a given stream. */ - streamGrantPermission?: Maybe - streamInviteCreate?: Maybe + streamGrantPermission?: Maybe; + streamInviteCreate?: Maybe; /** Revokes the permissions of a user on a given stream. */ - streamRevokePermission?: Maybe + streamRevokePermission?: Maybe; /** Updates an existing stream. */ - streamUpdate: Scalars['Boolean'] - streamsDelete: Scalars['Boolean'] + streamUpdate: Scalars['Boolean']; + streamsDelete: Scalars['Boolean']; /** Used for broadcasting real time typing status in comment threads. Does not persist any info. */ - userCommentThreadActivityBroadcast: Scalars['Boolean'] + userCommentThreadActivityBroadcast: Scalars['Boolean']; /** Delete a user's account. */ - userDelete: Scalars['Boolean'] - userRoleChange: Scalars['Boolean'] + userDelete: Scalars['Boolean']; + userRoleChange: Scalars['Boolean']; /** Edits a user's profile. */ - userUpdate: Scalars['Boolean'] + userUpdate: Scalars['Boolean']; /** Used for broadcasting real time chat head bubbles and status. Does not persist any info. */ - userViewerActivityBroadcast: Scalars['Boolean'] + userViewerActivityBroadcast: Scalars['Boolean']; /** Creates a new webhook on a stream */ - webhookCreate: Scalars['String'] + webhookCreate: Scalars['String']; /** Deletes an existing webhook */ - webhookDelete: Scalars['String'] + webhookDelete: Scalars['String']; /** Updates an existing webhook */ - webhookUpdate: Scalars['String'] -} + webhookUpdate: Scalars['String']; +}; + export type MutationAdminDeleteUserArgs = { - userConfirmation: UserDeleteInput -} + userConfirmation: UserDeleteInput; +}; + export type MutationApiTokenCreateArgs = { - token: ApiTokenCreateInput -} + token: ApiTokenCreateInput; +}; + export type MutationApiTokenRevokeArgs = { - token: Scalars['String'] -} + token: Scalars['String']; +}; + export type MutationAppCreateArgs = { - app: AppCreateInput -} + app: AppCreateInput; +}; + export type MutationAppDeleteArgs = { - appId: Scalars['String'] -} + appId: Scalars['String']; +}; + export type MutationAppRevokeAccessArgs = { - appId: Scalars['String'] -} + appId: Scalars['String']; +}; + export type MutationAppUpdateArgs = { - app: AppUpdateInput -} + app: AppUpdateInput; +}; + export type MutationBranchCreateArgs = { - branch: BranchCreateInput -} + branch: BranchCreateInput; +}; + export type MutationBranchDeleteArgs = { - branch: BranchDeleteInput -} + branch: BranchDeleteInput; +}; + export type MutationBranchUpdateArgs = { - branch: BranchUpdateInput -} + branch: BranchUpdateInput; +}; + export type MutationCommentArchiveArgs = { - archived?: Scalars['Boolean'] - commentId: Scalars['String'] - streamId: Scalars['String'] -} + archived?: Scalars['Boolean']; + commentId: Scalars['String']; + streamId: Scalars['String']; +}; + export type MutationCommentCreateArgs = { - input: CommentCreateInput -} + input: CommentCreateInput; +}; + export type MutationCommentEditArgs = { - input: CommentEditInput -} + input: CommentEditInput; +}; + export type MutationCommentReplyArgs = { - input: ReplyCreateInput -} + input: ReplyCreateInput; +}; + export type MutationCommentViewArgs = { - commentId: Scalars['String'] - streamId: Scalars['String'] -} + commentId: Scalars['String']; + streamId: Scalars['String']; +}; + export type MutationCommitCreateArgs = { - commit: CommitCreateInput -} + commit: CommitCreateInput; +}; + export type MutationCommitDeleteArgs = { - commit: CommitDeleteInput -} + commit: CommitDeleteInput; +}; + export type MutationCommitReceiveArgs = { - input: CommitReceivedInput -} + input: CommitReceivedInput; +}; + export type MutationCommitUpdateArgs = { - commit: CommitUpdateInput -} + commit: CommitUpdateInput; +}; + export type MutationObjectCreateArgs = { - objectInput: ObjectCreateInput -} + objectInput: ObjectCreateInput; +}; + export type MutationServerInfoUpdateArgs = { - info: ServerInfoUpdateInput -} + info: ServerInfoUpdateInput; +}; + export type MutationServerInviteCreateArgs = { - input: ServerInviteCreateInput -} + input: ServerInviteCreateInput; +}; + export type MutationStreamCreateArgs = { - stream: StreamCreateInput -} + stream: StreamCreateInput; +}; + export type MutationStreamDeleteArgs = { - id: Scalars['String'] -} + id: Scalars['String']; +}; + export type MutationStreamFavoriteArgs = { - favorited: Scalars['Boolean'] - streamId: Scalars['String'] -} + favorited: Scalars['Boolean']; + streamId: Scalars['String']; +}; + export type MutationStreamGrantPermissionArgs = { - permissionParams: StreamGrantPermissionInput -} + permissionParams: StreamGrantPermissionInput; +}; + export type MutationStreamInviteCreateArgs = { - input: StreamInviteCreateInput -} + input: StreamInviteCreateInput; +}; + export type MutationStreamRevokePermissionArgs = { - permissionParams: StreamRevokePermissionInput -} + permissionParams: StreamRevokePermissionInput; +}; + export type MutationStreamUpdateArgs = { - stream: StreamUpdateInput -} + stream: StreamUpdateInput; +}; + export type MutationStreamsDeleteArgs = { - ids?: InputMaybe> -} + ids?: InputMaybe>; +}; + export type MutationUserCommentThreadActivityBroadcastArgs = { - commentId: Scalars['String'] - data?: InputMaybe - streamId: Scalars['String'] -} + commentId: Scalars['String']; + data?: InputMaybe; + streamId: Scalars['String']; +}; + export type MutationUserDeleteArgs = { - userConfirmation: UserDeleteInput -} + userConfirmation: UserDeleteInput; +}; + export type MutationUserRoleChangeArgs = { - userRoleInput: UserRoleInput -} + userRoleInput: UserRoleInput; +}; + export type MutationUserUpdateArgs = { - user: UserUpdateInput -} + user: UserUpdateInput; +}; + export type MutationUserViewerActivityBroadcastArgs = { - data?: InputMaybe - resourceId: Scalars['String'] - streamId: Scalars['String'] -} + data?: InputMaybe; + resourceId: Scalars['String']; + streamId: Scalars['String']; +}; + export type MutationWebhookCreateArgs = { - webhook: WebhookCreateInput -} + webhook: WebhookCreateInput; +}; + export type MutationWebhookDeleteArgs = { - webhook: WebhookDeleteInput -} + webhook: WebhookDeleteInput; +}; + export type MutationWebhookUpdateArgs = { - webhook: WebhookUpdateInput -} + webhook: WebhookUpdateInput; +}; export type Object = { - __typename?: 'Object' - applicationId?: Maybe + __typename?: 'Object'; + applicationId?: Maybe; /** * Get any objects that this object references. In the case of commits, this will give you a commit's constituent objects. * **NOTE**: Providing any of the two last arguments ( `query`, `orderBy` ) will trigger a different code branch that executes a much more expensive SQL query. It is not recommended to do so for basic clients that are interested in purely getting all the objects of a given commit. */ - children: ObjectCollection + children: ObjectCollection; /** * The total number of comments for this commit. To actually get the comments, use the comments query and pass in a resource array consisting of of this object's id. * E.g., @@ -610,149 +660,162 @@ export type Object = { * } * ``` */ - commentCount: Scalars['Int'] - createdAt?: Maybe + commentCount: Scalars['Int']; + createdAt?: Maybe; /** The full object, with all its props & other things. **NOTE:** If you're requesting objects for the purpose of recreating & displaying, you probably only want to request this specific field. */ - data?: Maybe - id: Scalars['String'] - speckleType?: Maybe - totalChildrenCount?: Maybe -} + data?: Maybe; + id: Scalars['String']; + speckleType?: Maybe; + totalChildrenCount?: Maybe; +}; + export type ObjectChildrenArgs = { - cursor?: InputMaybe - depth?: Scalars['Int'] - limit?: Scalars['Int'] - orderBy?: InputMaybe - query?: InputMaybe> - select?: InputMaybe>> -} + cursor?: InputMaybe; + depth?: Scalars['Int']; + limit?: Scalars['Int']; + orderBy?: InputMaybe; + query?: InputMaybe>; + select?: InputMaybe>>; +}; export type ObjectCollection = { - __typename?: 'ObjectCollection' - cursor?: Maybe - objects: Array> - totalCount: Scalars['Int'] -} + __typename?: 'ObjectCollection'; + cursor?: Maybe; + objects: Array>; + totalCount: Scalars['Int']; +}; export type ObjectCreateInput = { /** The objects you want to create. */ - objects: Array> + objects: Array>; /** The stream against which these objects will be created. */ - streamId: Scalars['String'] -} + streamId: Scalars['String']; +}; export type Query = { - __typename?: 'Query' + __typename?: 'Query'; /** Stare into the void. */ - _?: Maybe - adminStreams?: Maybe + _?: Maybe; + adminStreams?: Maybe; /** Gets a specific app from the server. */ - app?: Maybe + app?: Maybe; /** Returns all the publicly available apps on this server. */ - apps?: Maybe>> - comment?: Maybe + apps?: Maybe>>; + comment?: Maybe; /** * This query can be used in the following ways: * - get all the comments for a stream: **do not pass in any resource identifiers**. * - get the comments targeting any of a set of provided resources (comments/objects): **pass in an array of resources.** */ - comments?: Maybe - serverInfo: ServerInfo - serverStats: ServerStats + comments?: Maybe; + serverInfo: ServerInfo; + serverStats: ServerStats; /** Returns a specific stream. */ - stream?: Maybe + stream?: Maybe; /** All the streams of the current user, pass in the `query` parameter to search by name, description or ID. */ - streams?: Maybe + streams?: Maybe; /** Gets the profile of a user. If no id argument is provided, will return the current authenticated user's profile (as extracted from the authorization header). */ - user?: Maybe - userPwdStrength?: Maybe + user?: Maybe; + userPwdStrength?: Maybe; /** * Search for users and return limited metadata about them, if you have the server:user role. * The query looks for matches in name & email */ - userSearch?: Maybe + userSearch?: Maybe; /** * Get all (or search for specific) users from the server in a paginated view, if you have the server:admin role. * The query looks for matches in name, company and email. */ - users?: Maybe -} + users?: Maybe; +}; + export type QueryAdminStreamsArgs = { - limit?: InputMaybe - offset?: InputMaybe - orderBy?: InputMaybe - query?: InputMaybe - visibility?: InputMaybe -} + limit?: InputMaybe; + offset?: InputMaybe; + orderBy?: InputMaybe; + query?: InputMaybe; + visibility?: InputMaybe; +}; + export type QueryAppArgs = { - id: Scalars['String'] -} + id: Scalars['String']; +}; + export type QueryCommentArgs = { - id: Scalars['String'] - streamId: Scalars['String'] -} + id: Scalars['String']; + streamId: Scalars['String']; +}; + export type QueryCommentsArgs = { - archived?: Scalars['Boolean'] - cursor?: InputMaybe - limit?: InputMaybe - resources?: InputMaybe>> - streamId: Scalars['String'] -} + archived?: Scalars['Boolean']; + cursor?: InputMaybe; + limit?: InputMaybe; + resources?: InputMaybe>>; + streamId: Scalars['String']; +}; + export type QueryStreamArgs = { - id: Scalars['String'] -} + id: Scalars['String']; +}; + export type QueryStreamsArgs = { - cursor?: InputMaybe - limit?: InputMaybe - query?: InputMaybe -} + cursor?: InputMaybe; + limit?: InputMaybe; + query?: InputMaybe; +}; + export type QueryUserArgs = { - id?: InputMaybe -} + id?: InputMaybe; +}; + export type QueryUserPwdStrengthArgs = { - pwd: Scalars['String'] -} + pwd: Scalars['String']; +}; + export type QueryUserSearchArgs = { - archived?: InputMaybe - cursor?: InputMaybe - limit?: Scalars['Int'] - query: Scalars['String'] -} + archived?: InputMaybe; + cursor?: InputMaybe; + limit?: Scalars['Int']; + query: Scalars['String']; +}; + export type QueryUsersArgs = { - limit?: Scalars['Int'] - offset?: Scalars['Int'] - query?: InputMaybe -} + limit?: Scalars['Int']; + offset?: Scalars['Int']; + query?: InputMaybe; +}; export type ReplyCreateInput = { - data?: InputMaybe - parentComment: Scalars['String'] - streamId: Scalars['String'] + /** IDs of uploaded blobs that should be attached to this reply */ + blobIds: Array; + data?: InputMaybe; + parentComment: Scalars['String']; + streamId: Scalars['String']; /** ProseMirror document object */ - text: Scalars['JSONObject'] -} + text?: InputMaybe; +}; export type ResourceIdentifier = { - __typename?: 'ResourceIdentifier' - resourceId: Scalars['String'] - resourceType: ResourceType -} + __typename?: 'ResourceIdentifier'; + resourceId: Scalars['String']; + resourceType: ResourceType; +}; export type ResourceIdentifierInput = { - resourceId: Scalars['String'] - resourceType: ResourceType -} + resourceId: Scalars['String']; + resourceType: ResourceType; +}; export enum ResourceType { Comment = 'comment', @@ -763,121 +826,126 @@ export enum ResourceType { /** Available roles. */ export type Role = { - __typename?: 'Role' - description: Scalars['String'] - name: Scalars['String'] - resourceTarget: Scalars['String'] -} + __typename?: 'Role'; + description: Scalars['String']; + name: Scalars['String']; + resourceTarget: Scalars['String']; +}; /** Available scopes. */ export type Scope = { - __typename?: 'Scope' - description: Scalars['String'] - name: Scalars['String'] -} + __typename?: 'Scope'; + description: Scalars['String']; + name: Scalars['String']; +}; export type ServerApp = { - __typename?: 'ServerApp' - author?: Maybe - createdAt: Scalars['DateTime'] - description?: Maybe - id: Scalars['String'] - logo?: Maybe - name: Scalars['String'] - public?: Maybe - redirectUrl: Scalars['String'] - scopes: Array> - secret?: Maybe - termsAndConditionsLink?: Maybe - trustByDefault?: Maybe -} + __typename?: 'ServerApp'; + author?: Maybe; + createdAt: Scalars['DateTime']; + description?: Maybe; + id: Scalars['String']; + logo?: Maybe; + name: Scalars['String']; + public?: Maybe; + redirectUrl: Scalars['String']; + scopes: Array>; + secret?: Maybe; + termsAndConditionsLink?: Maybe; + trustByDefault?: Maybe; +}; export type ServerAppListItem = { - __typename?: 'ServerAppListItem' - author?: Maybe - description?: Maybe - id: Scalars['String'] - logo?: Maybe - name: Scalars['String'] - redirectUrl: Scalars['String'] - termsAndConditionsLink?: Maybe - trustByDefault?: Maybe -} + __typename?: 'ServerAppListItem'; + author?: Maybe; + description?: Maybe; + id: Scalars['String']; + logo?: Maybe; + name: Scalars['String']; + redirectUrl: Scalars['String']; + termsAndConditionsLink?: Maybe; + trustByDefault?: Maybe; +}; /** Information about this server. */ export type ServerInfo = { - __typename?: 'ServerInfo' - adminContact?: Maybe + __typename?: 'ServerInfo'; + adminContact?: Maybe; /** The authentication strategies available on this server. */ - authStrategies?: Maybe>> - canonicalUrl?: Maybe - company?: Maybe - description?: Maybe - inviteOnly?: Maybe - name: Scalars['String'] - roles: Array> - scopes: Array> - termsOfService?: Maybe - version?: Maybe -} + authStrategies?: Maybe>>; + canonicalUrl?: Maybe; + company?: Maybe; + description?: Maybe; + inviteOnly?: Maybe; + name: Scalars['String']; + roles: Array>; + scopes: Array>; + termsOfService?: Maybe; + version?: Maybe; +}; export type ServerInfoUpdateInput = { - adminContact?: InputMaybe - company?: InputMaybe - description?: InputMaybe - inviteOnly?: InputMaybe - name: Scalars['String'] - termsOfService?: InputMaybe -} + adminContact?: InputMaybe; + company?: InputMaybe; + description?: InputMaybe; + inviteOnly?: InputMaybe; + name: Scalars['String']; + termsOfService?: InputMaybe; +}; export type ServerInvite = { - __typename?: 'ServerInvite' - createdAt: Scalars['DateTime'] - id: Scalars['String'] -} + __typename?: 'ServerInvite'; + createdAt: Scalars['DateTime']; + id: Scalars['String']; +}; export type ServerInviteCreateInput = { - email: Scalars['String'] - message?: InputMaybe -} + email: Scalars['String']; + message?: InputMaybe; +}; export type ServerStats = { - __typename?: 'ServerStats' + __typename?: 'ServerStats'; /** An array of objects currently structured as { created_month: Date, count: int }. */ - commitHistory?: Maybe>> + commitHistory?: Maybe>>; /** An array of objects currently structured as { created_month: Date, count: int }. */ - objectHistory?: Maybe>> + objectHistory?: Maybe>>; /** An array of objects currently structured as { created_month: Date, count: int }. */ - streamHistory?: Maybe>> - totalCommitCount: Scalars['Int'] - totalObjectCount: Scalars['Int'] - totalStreamCount: Scalars['Int'] - totalUserCount: Scalars['Int'] + streamHistory?: Maybe>>; + totalCommitCount: Scalars['Int']; + totalObjectCount: Scalars['Int']; + totalStreamCount: Scalars['Int']; + totalUserCount: Scalars['Int']; /** An array of objects currently structured as { created_month: Date, count: int }. */ - userHistory?: Maybe>> -} + userHistory?: Maybe>>; +}; export type SmartTextEditorValue = { - __typename?: 'SmartTextEditorValue' - /** The actual (ProseMirror) document representing the text */ - doc: Scalars['JSONObject'] + __typename?: 'SmartTextEditorValue'; + /** File attachments, if any */ + attachments?: Maybe>; + /** + * The actual (ProseMirror) document representing the text. Can be empty, + * if there are attachments. + */ + doc?: Maybe; /** The type of editor value (comment, blog post etc.) */ - type: Scalars['String'] + type: Scalars['String']; /** The version of the schema */ - version: Scalars['String'] -} + version: Scalars['String']; +}; export type Stream = { - __typename?: 'Stream' + __typename?: 'Stream'; /** All the recent activity on this stream in chronological order */ - activity?: Maybe - allowPublicComments: Scalars['Boolean'] - blob?: Maybe + activity?: Maybe; + allowPublicComments: Scalars['Boolean']; + blob?: Maybe; /** Get the metadata collection of blobs stored for this stream. */ - blobs?: Maybe - branch?: Maybe - branches?: Maybe - collaborators: Array> + blobs?: Maybe; + branch?: Maybe; + branches?: Maybe; + collaborators: Array>; /** * The total number of comments for this stream. To actually get the comments, use the comments query without passing in a resource array. E.g.: * @@ -888,1496 +956,880 @@ export type Stream = { * } * ``` */ - commentCount: Scalars['Int'] - commit?: Maybe - commits?: Maybe - createdAt: Scalars['DateTime'] - description?: Maybe + commentCount: Scalars['Int']; + commit?: Maybe; + commits?: Maybe; + createdAt: Scalars['DateTime']; + description?: Maybe; /** Date when you favorited this stream. `null` if stream isn't viewed from a specific user's perspective or if it isn't favorited. */ - favoritedDate?: Maybe + favoritedDate?: Maybe; /** How many times this stream has been favorited */ - favoritesCount: Scalars['Int'] + favoritesCount: Scalars['Int']; /** Returns a specific file upload that belongs to this stream. */ - fileUpload?: Maybe + fileUpload?: Maybe; /** Returns a list of all the file uploads for this stream. */ - fileUploads?: Maybe>> - id: Scalars['String'] - isPublic: Scalars['Boolean'] - name: Scalars['String'] - object?: Maybe + fileUploads?: Maybe>>; + id: Scalars['String']; + isPublic: Scalars['Boolean']; + name: Scalars['String']; + object?: Maybe; /** Your role for this stream. `null` if request is not authenticated, or the stream is not explicitly shared with you. */ - role?: Maybe - size?: Maybe - updatedAt: Scalars['DateTime'] - webhooks?: Maybe -} + role?: Maybe; + size?: Maybe; + updatedAt: Scalars['DateTime']; + webhooks?: Maybe; +}; + export type StreamActivityArgs = { - actionType?: InputMaybe - after?: InputMaybe - before?: InputMaybe - cursor?: InputMaybe - limit?: Scalars['Int'] -} + actionType?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + cursor?: InputMaybe; + limit?: Scalars['Int']; +}; + export type StreamBlobArgs = { - id: Scalars['String'] -} + id: Scalars['String']; +}; + export type StreamBlobsArgs = { - cursor?: InputMaybe - limit?: InputMaybe - query?: InputMaybe -} + cursor?: InputMaybe; + limit?: InputMaybe; + query?: InputMaybe; +}; + export type StreamBranchArgs = { - name?: InputMaybe -} + name?: InputMaybe; +}; + export type StreamBranchesArgs = { - cursor?: InputMaybe - limit?: Scalars['Int'] -} + cursor?: InputMaybe; + limit?: Scalars['Int']; +}; + export type StreamCommitArgs = { - id?: InputMaybe -} + id?: InputMaybe; +}; + export type StreamCommitsArgs = { - cursor?: InputMaybe - limit?: Scalars['Int'] -} + cursor?: InputMaybe; + limit?: Scalars['Int']; +}; + export type StreamFileUploadArgs = { - id: Scalars['String'] -} + id: Scalars['String']; +}; + export type StreamObjectArgs = { - id: Scalars['String'] -} + id: Scalars['String']; +}; + export type StreamWebhooksArgs = { - id?: InputMaybe -} + id?: InputMaybe; +}; export type StreamCollaborator = { - __typename?: 'StreamCollaborator' - avatar?: Maybe - company?: Maybe - id: Scalars['String'] - name: Scalars['String'] - role: Scalars['String'] -} + __typename?: 'StreamCollaborator'; + avatar?: Maybe; + company?: Maybe; + id: Scalars['String']; + name: Scalars['String']; + role: Scalars['String']; +}; export type StreamCollection = { - __typename?: 'StreamCollection' - cursor?: Maybe - items?: Maybe> - totalCount: Scalars['Int'] -} + __typename?: 'StreamCollection'; + cursor?: Maybe; + items?: Maybe>; + totalCount: Scalars['Int']; +}; export type StreamCreateInput = { - description?: InputMaybe - isPublic?: InputMaybe - name?: InputMaybe -} + description?: InputMaybe; + isPublic?: InputMaybe; + name?: InputMaybe; +}; export type StreamGrantPermissionInput = { - role: Scalars['String'] - streamId: Scalars['String'] - userId: Scalars['String'] -} + role: Scalars['String']; + streamId: Scalars['String']; + userId: Scalars['String']; +}; export type StreamInviteCreateInput = { - email: Scalars['String'] - message?: InputMaybe - streamId?: InputMaybe -} + email: Scalars['String']; + message?: InputMaybe; + streamId?: InputMaybe; +}; export type StreamRevokePermissionInput = { - streamId: Scalars['String'] - userId: Scalars['String'] -} + streamId: Scalars['String']; + userId: Scalars['String']; +}; export type StreamUpdateInput = { - allowPublicComments?: InputMaybe - description?: InputMaybe - id: Scalars['String'] - isPublic?: InputMaybe - name?: InputMaybe -} + allowPublicComments?: InputMaybe; + description?: InputMaybe; + id: Scalars['String']; + isPublic?: InputMaybe; + name?: InputMaybe; +}; export type Subscription = { - __typename?: 'Subscription' + __typename?: 'Subscription'; /** It's lonely in the void. */ - _?: Maybe + _?: Maybe; /** Subscribe to branch created event */ - branchCreated?: Maybe + branchCreated?: Maybe; /** Subscribe to branch deleted event */ - branchDeleted?: Maybe + branchDeleted?: Maybe; /** Subscribe to branch updated event. */ - branchUpdated?: Maybe + branchUpdated?: Maybe; /** - * Subscribe to comment events. There's two ways to use this subscription: + * Subscribe to new comment events. There's two ways to use this subscription: * - for a whole stream: do not pass in any resourceIds; this sub will get called whenever a comment (not reply) is added to any of the stream's resources. * - for a specific resource/set of resources: pass in a list of resourceIds (commit or object ids); this sub will get called when *any* of the resources provided get a comment. */ - commentActivity?: Maybe + commentActivity: CommentActivityMessage; /** * Subscribes to events on a specific comment. Use to find out when: * - a top level comment is deleted (trigger a deletion event outside) * - a top level comment receives a reply. */ - commentThreadActivity?: Maybe + commentThreadActivity: CommentThreadActivityMessage; /** Subscribe to commit created event */ - commitCreated?: Maybe + commitCreated?: Maybe; /** Subscribe to commit deleted event */ - commitDeleted?: Maybe + commitDeleted?: Maybe; /** Subscribe to commit updated event. */ - commitUpdated?: Maybe + commitUpdated?: Maybe; /** Subscribes to stream deleted event. Use this in clients/components that pertain only to this stream. */ - streamDeleted?: Maybe + streamDeleted?: Maybe; /** Subscribes to stream updated event. Use this in clients/components that pertain only to this stream. */ - streamUpdated?: Maybe + streamUpdated?: Maybe; /** * Subscribes to new stream added event for your profile. Use this to display an up-to-date list of streams. * **NOTE**: If someone shares a stream with you, this subscription will be triggered with an extra value of `sharedBy` in the payload. */ - userStreamAdded?: Maybe + userStreamAdded?: Maybe; /** * Subscribes to stream removed event for your profile. Use this to display an up-to-date list of streams for your profile. * **NOTE**: If someone revokes your permissions on a stream, this subscription will be triggered with an extra value of `revokedBy` in the payload. */ - userStreamRemoved?: Maybe + userStreamRemoved?: Maybe; /** Broadcasts "real-time" location data for viewer users. */ - userViewerActivity?: Maybe -} + userViewerActivity?: Maybe; +}; + export type SubscriptionBranchCreatedArgs = { - streamId: Scalars['String'] -} + streamId: Scalars['String']; +}; + export type SubscriptionBranchDeletedArgs = { - streamId: Scalars['String'] -} + streamId: Scalars['String']; +}; + export type SubscriptionBranchUpdatedArgs = { - branchId?: InputMaybe - streamId: Scalars['String'] -} + branchId?: InputMaybe; + streamId: Scalars['String']; +}; + export type SubscriptionCommentActivityArgs = { - resourceIds?: InputMaybe>> - streamId: Scalars['String'] -} + resourceIds?: InputMaybe>>; + streamId: Scalars['String']; +}; + export type SubscriptionCommentThreadActivityArgs = { - commentId: Scalars['String'] - streamId: Scalars['String'] -} + commentId: Scalars['String']; + streamId: Scalars['String']; +}; + export type SubscriptionCommitCreatedArgs = { - streamId: Scalars['String'] -} + streamId: Scalars['String']; +}; + export type SubscriptionCommitDeletedArgs = { - streamId: Scalars['String'] -} + streamId: Scalars['String']; +}; + export type SubscriptionCommitUpdatedArgs = { - commitId?: InputMaybe - streamId: Scalars['String'] -} + commitId?: InputMaybe; + streamId: Scalars['String']; +}; + export type SubscriptionStreamDeletedArgs = { - streamId?: InputMaybe -} + streamId?: InputMaybe; +}; + export type SubscriptionStreamUpdatedArgs = { - streamId?: InputMaybe -} + streamId?: InputMaybe; +}; + export type SubscriptionUserViewerActivityArgs = { - resourceId: Scalars['String'] - streamId: Scalars['String'] -} + resourceId: Scalars['String']; + streamId: Scalars['String']; +}; /** Base user type. */ export type User = { - __typename?: 'User' + __typename?: 'User'; /** All the recent activity from this user in chronological order */ - activity?: Maybe + activity?: Maybe; /** Returns a list of your personal api tokens. */ - apiTokens?: Maybe>> + apiTokens?: Maybe>>; /** Returns the apps you have authorized. */ - authorizedApps?: Maybe>> - avatar?: Maybe - bio?: Maybe - commits?: Maybe - company?: Maybe + authorizedApps?: Maybe>>; + avatar?: Maybe; + bio?: Maybe; + commits?: Maybe; + company?: Maybe; /** Returns the apps you have created. */ - createdApps?: Maybe>> - email?: Maybe + createdApps?: Maybe>>; + email?: Maybe; /** All the streams that a user has favorited */ - favoriteStreams?: Maybe - id: Scalars['String'] - name?: Maybe - profiles?: Maybe - role?: Maybe + favoriteStreams?: Maybe; + id: Scalars['String']; + name?: Maybe; + profiles?: Maybe; + role?: Maybe; /** All the streams that a user has access to. */ - streams?: Maybe - suuid?: Maybe - timeline?: Maybe + streams?: Maybe; + suuid?: Maybe; + timeline?: Maybe; /** Total amount of favorites attached to streams owned by the user */ - totalOwnedStreamsFavorites: Scalars['Int'] - verified?: Maybe -} + totalOwnedStreamsFavorites: Scalars['Int']; + verified?: Maybe; +}; + /** Base user type. */ export type UserActivityArgs = { - actionType?: InputMaybe - after?: InputMaybe - before?: InputMaybe - cursor?: InputMaybe - limit?: Scalars['Int'] -} + actionType?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + cursor?: InputMaybe; + limit?: Scalars['Int']; +}; + /** Base user type. */ export type UserCommitsArgs = { - cursor?: InputMaybe - limit?: Scalars['Int'] -} + cursor?: InputMaybe; + limit?: Scalars['Int']; +}; + /** Base user type. */ export type UserFavoriteStreamsArgs = { - cursor?: InputMaybe - limit?: Scalars['Int'] -} + cursor?: InputMaybe; + limit?: Scalars['Int']; +}; + /** Base user type. */ export type UserStreamsArgs = { - cursor?: InputMaybe - limit?: Scalars['Int'] -} + cursor?: InputMaybe; + limit?: Scalars['Int']; +}; + /** Base user type. */ export type UserTimelineArgs = { - after?: InputMaybe - before?: InputMaybe - cursor?: InputMaybe - limit?: Scalars['Int'] -} + after?: InputMaybe; + before?: InputMaybe; + cursor?: InputMaybe; + limit?: Scalars['Int']; +}; export type UserCollection = { - __typename?: 'UserCollection' - items?: Maybe>> - totalCount: Scalars['Int'] -} + __typename?: 'UserCollection'; + items?: Maybe>>; + totalCount: Scalars['Int']; +}; export type UserDeleteInput = { - email?: InputMaybe -} + email?: InputMaybe; +}; export type UserRoleInput = { - id: Scalars['String'] - role: Scalars['String'] -} + id: Scalars['String']; + role: Scalars['String']; +}; export type UserSearchResult = { - __typename?: 'UserSearchResult' - avatar?: Maybe - bio?: Maybe - company?: Maybe - id: Scalars['String'] - name?: Maybe - verified?: Maybe -} + __typename?: 'UserSearchResult'; + avatar?: Maybe; + bio?: Maybe; + company?: Maybe; + id: Scalars['String']; + name?: Maybe; + verified?: Maybe; +}; export type UserSearchResultCollection = { - __typename?: 'UserSearchResultCollection' - cursor?: Maybe - items?: Maybe>> -} + __typename?: 'UserSearchResultCollection'; + cursor?: Maybe; + items?: Maybe>>; +}; export type UserUpdateInput = { - avatar?: InputMaybe - bio?: InputMaybe - company?: InputMaybe - name?: InputMaybe -} + avatar?: InputMaybe; + bio?: InputMaybe; + company?: InputMaybe; + name?: InputMaybe; +}; export type Webhook = { - __typename?: 'Webhook' - description?: Maybe - enabled?: Maybe - history?: Maybe - id: Scalars['String'] - streamId: Scalars['String'] - triggers: Array> - url: Scalars['String'] -} + __typename?: 'Webhook'; + description?: Maybe; + enabled?: Maybe; + history?: Maybe; + id: Scalars['String']; + streamId: Scalars['String']; + triggers: Array>; + url: Scalars['String']; +}; + export type WebhookHistoryArgs = { - limit?: Scalars['Int'] -} + limit?: Scalars['Int']; +}; export type WebhookCollection = { - __typename?: 'WebhookCollection' - items?: Maybe>> - totalCount?: Maybe -} + __typename?: 'WebhookCollection'; + items?: Maybe>>; + totalCount?: Maybe; +}; export type WebhookCreateInput = { - description?: InputMaybe - enabled?: InputMaybe - secret?: InputMaybe - streamId: Scalars['String'] - triggers: Array> - url: Scalars['String'] -} + description?: InputMaybe; + enabled?: InputMaybe; + secret?: InputMaybe; + streamId: Scalars['String']; + triggers: Array>; + url: Scalars['String']; +}; export type WebhookDeleteInput = { - id: Scalars['String'] - streamId: Scalars['String'] -} + id: Scalars['String']; + streamId: Scalars['String']; +}; export type WebhookEvent = { - __typename?: 'WebhookEvent' - id: Scalars['String'] - lastUpdate: Scalars['DateTime'] - payload: Scalars['String'] - retryCount: Scalars['Int'] - status: Scalars['Int'] - statusInfo: Scalars['String'] - webhookId: Scalars['String'] -} + __typename?: 'WebhookEvent'; + id: Scalars['String']; + lastUpdate: Scalars['DateTime']; + payload: Scalars['String']; + retryCount: Scalars['Int']; + status: Scalars['Int']; + statusInfo: Scalars['String']; + webhookId: Scalars['String']; +}; export type WebhookEventCollection = { - __typename?: 'WebhookEventCollection' - items?: Maybe>> - totalCount?: Maybe -} + __typename?: 'WebhookEventCollection'; + items?: Maybe>>; + totalCount?: Maybe; +}; export type WebhookUpdateInput = { - description?: InputMaybe - enabled?: InputMaybe - id: Scalars['String'] - secret?: InputMaybe - streamId: Scalars['String'] - triggers?: InputMaybe>> - url?: InputMaybe -} + description?: InputMaybe; + enabled?: InputMaybe; + id: Scalars['String']; + secret?: InputMaybe; + streamId: Scalars['String']; + triggers?: InputMaybe>>; + url?: InputMaybe; +}; export type StreamWithBranchQueryVariables = Exact<{ - streamId: Scalars['String'] - branchName: Scalars['String'] - cursor?: InputMaybe -}> + streamId: Scalars['String']; + branchName: Scalars['String']; + cursor?: InputMaybe; +}>; -export type StreamWithBranchQuery = { - __typename?: 'Query' - stream?: { - __typename?: 'Stream' - id: string - name: string - branch?: { - __typename?: 'Branch' - id: string - name: string - description?: string | null - commits?: { - __typename?: 'CommitCollection' - totalCount: number - cursor?: string | null - items?: Array<{ - __typename?: 'Commit' - id: string - authorName?: string | null - authorId?: string | null - authorAvatar?: string | null - sourceApplication?: string | null - message?: string | null - referencedObject: string - createdAt?: any | null - commentCount: number - } | null> | null - } | null - } | null - } | null -} + +export type StreamWithBranchQuery = { __typename?: 'Query', stream?: { __typename?: 'Stream', id: string, name: string, branch?: { __typename?: 'Branch', id: string, name: string, description?: string | null, commits?: { __typename?: 'CommitCollection', totalCount: number, cursor?: string | null, items?: Array<{ __typename?: 'Commit', id: string, authorName?: string | null, authorId?: string | null, authorAvatar?: string | null, sourceApplication?: string | null, message?: string | null, referencedObject: string, createdAt?: any | null, commentCount: number } | null> | null } | null } | null } | null }; + +export type CommentFullInfoFragment = { __typename?: 'Comment', id: string, archived: boolean, authorId: string, data?: any | null, screenshot?: string | null, createdAt?: any | null, updatedAt?: any | null, viewedAt?: any | null, text: { __typename?: 'SmartTextEditorValue', doc?: any | null, attachments?: Array<{ __typename?: 'BlobMetadata', id: string, fileName: string, streamId: string }> | null }, replies?: { __typename?: 'CommentCollection', totalCount: number } | null, resources: Array<{ __typename?: 'ResourceIdentifier', resourceId: string, resourceType: ResourceType } | null> }; export type StreamCommitQueryQueryVariables = Exact<{ - streamId: Scalars['String'] - id: Scalars['String'] -}> + streamId: Scalars['String']; + id: Scalars['String']; +}>; -export type StreamCommitQueryQuery = { - __typename?: 'Query' - stream?: { - __typename?: 'Stream' - id: string - name: string - role?: string | null - commit?: { - __typename?: 'Commit' - id: string - message?: string | null - referencedObject: string - authorName?: string | null - authorId?: string | null - authorAvatar?: string | null - createdAt?: any | null - branchName?: string | null - sourceApplication?: string | null - } | null - } | null -} + +export type StreamCommitQueryQuery = { __typename?: 'Query', stream?: { __typename?: 'Stream', id: string, name: string, role?: string | null, commit?: { __typename?: 'Commit', id: string, message?: string | null, referencedObject: string, authorName?: string | null, authorId?: string | null, authorAvatar?: string | null, createdAt?: any | null, branchName?: string | null, sourceApplication?: string | null } | null } | null }; export type StreamObjectQueryVariables = Exact<{ - streamId: Scalars['String'] - id: Scalars['String'] -}> + streamId: Scalars['String']; + id: Scalars['String']; +}>; -export type StreamObjectQuery = { - __typename?: 'Query' - stream?: { - __typename?: 'Stream' - id: string - object?: { - __typename?: 'Object' - totalChildrenCount?: number | null - id: string - speckleType?: string | null - data?: any | null - } | null - } | null -} + +export type StreamObjectQuery = { __typename?: 'Query', stream?: { __typename?: 'Stream', id: string, object?: { __typename?: 'Object', totalChildrenCount?: number | null, id: string, speckleType?: string | null, data?: any | null } | null } | null }; export type StreamObjectNoDataQueryVariables = Exact<{ - streamId: Scalars['String'] - id: Scalars['String'] -}> + streamId: Scalars['String']; + id: Scalars['String']; +}>; -export type StreamObjectNoDataQuery = { - __typename?: 'Query' - stream?: { - __typename?: 'Stream' - id: string - name: string - object?: { - __typename?: 'Object' - totalChildrenCount?: number | null - id: string - speckleType?: string | null - } | null - } | null -} -export type MainServerInfoFieldsFragment = { - __typename?: 'ServerInfo' - name: string - company?: string | null - description?: string | null - adminContact?: string | null - canonicalUrl?: string | null - termsOfService?: string | null - inviteOnly?: boolean | null - version?: string | null -} +export type StreamObjectNoDataQuery = { __typename?: 'Query', stream?: { __typename?: 'Stream', id: string, name: string, object?: { __typename?: 'Object', totalChildrenCount?: number | null, id: string, speckleType?: string | null } | null } | null }; -export type ServerInfoRolesFieldsFragment = { - __typename?: 'ServerInfo' - roles: Array<{ - __typename?: 'Role' - name: string - description: string - resourceTarget: string - } | null> -} +export type MainServerInfoFieldsFragment = { __typename?: 'ServerInfo', name: string, company?: string | null, description?: string | null, adminContact?: string | null, canonicalUrl?: string | null, termsOfService?: string | null, inviteOnly?: boolean | null, version?: string | null }; -export type ServerInfoScopesFieldsFragment = { - __typename?: 'ServerInfo' - scopes: Array<{ __typename?: 'Scope'; name: string; description: string } | null> -} +export type ServerInfoRolesFieldsFragment = { __typename?: 'ServerInfo', roles: Array<{ __typename?: 'Role', name: string, description: string, resourceTarget: string } | null> }; -export type MainServerInfoQueryVariables = Exact<{ [key: string]: never }> +export type ServerInfoScopesFieldsFragment = { __typename?: 'ServerInfo', scopes: Array<{ __typename?: 'Scope', name: string, description: string } | null> }; -export type MainServerInfoQuery = { - __typename?: 'Query' - serverInfo: { - __typename?: 'ServerInfo' - name: string - company?: string | null - description?: string | null - adminContact?: string | null - canonicalUrl?: string | null - termsOfService?: string | null - inviteOnly?: boolean | null - version?: string | null - } -} +export type MainServerInfoQueryVariables = Exact<{ [key: string]: never; }>; -export type FullServerInfoQueryVariables = Exact<{ [key: string]: never }> -export type FullServerInfoQuery = { - __typename?: 'Query' - serverInfo: { - __typename?: 'ServerInfo' - name: string - company?: string | null - description?: string | null - adminContact?: string | null - canonicalUrl?: string | null - termsOfService?: string | null - inviteOnly?: boolean | null - version?: string | null - roles: Array<{ - __typename?: 'Role' - name: string - description: string - resourceTarget: string - } | null> - scopes: Array<{ __typename?: 'Scope'; name: string; description: string } | null> - } -} +export type MainServerInfoQuery = { __typename?: 'Query', serverInfo: { __typename?: 'ServerInfo', name: string, company?: string | null, description?: string | null, adminContact?: string | null, canonicalUrl?: string | null, termsOfService?: string | null, inviteOnly?: boolean | null, version?: string | null } }; + +export type FullServerInfoQueryVariables = Exact<{ [key: string]: never; }>; + + +export type FullServerInfoQuery = { __typename?: 'Query', serverInfo: { __typename?: 'ServerInfo', name: string, company?: string | null, description?: string | null, adminContact?: string | null, canonicalUrl?: string | null, termsOfService?: string | null, inviteOnly?: boolean | null, version?: string | null, roles: Array<{ __typename?: 'Role', name: string, description: string, resourceTarget: string } | null>, scopes: Array<{ __typename?: 'Scope', name: string, description: string } | null> } }; export type StreamWithCollaboratorsQueryVariables = Exact<{ - id: Scalars['String'] -}> + id: Scalars['String']; +}>; -export type StreamWithCollaboratorsQuery = { - __typename?: 'Query' - stream?: { - __typename?: 'Stream' - id: string - name: string - isPublic: boolean - role?: string | null - collaborators: Array<{ - __typename?: 'StreamCollaborator' - id: string - name: string - role: string - company?: string | null - avatar?: string | null - } | null> - } | null -} + +export type StreamWithCollaboratorsQuery = { __typename?: 'Query', stream?: { __typename?: 'Stream', id: string, name: string, isPublic: boolean, role?: string | null, collaborators: Array<{ __typename?: 'StreamCollaborator', id: string, name: string, role: string, company?: string | null, avatar?: string | null } | null> } | null }; export type StreamCommitsQueryVariables = Exact<{ - id: Scalars['String'] -}> + id: Scalars['String']; +}>; -export type StreamCommitsQuery = { - __typename?: 'Query' - stream?: { - __typename?: 'Stream' - id: string - role?: string | null - commits?: { - __typename?: 'CommitCollection' - totalCount: number - items?: Array<{ - __typename?: 'Commit' - id: string - authorId?: string | null - authorName?: string | null - authorAvatar?: string | null - createdAt?: any | null - message?: string | null - referencedObject: string - branchName?: string | null - sourceApplication?: string | null - } | null> | null - } | null - } | null -} + +export type StreamCommitsQuery = { __typename?: 'Query', stream?: { __typename?: 'Stream', id: string, role?: string | null, commits?: { __typename?: 'CommitCollection', totalCount: number, items?: Array<{ __typename?: 'Commit', id: string, authorId?: string | null, authorName?: string | null, authorAvatar?: string | null, createdAt?: any | null, message?: string | null, referencedObject: string, branchName?: string | null, sourceApplication?: string | null } | null> | null } | null } | null }; export type StreamsQueryVariables = Exact<{ - cursor?: InputMaybe -}> + cursor?: InputMaybe; +}>; -export type StreamsQuery = { - __typename?: 'Query' - streams?: { - __typename?: 'StreamCollection' - totalCount: number - cursor?: string | null - items?: Array<{ - __typename?: 'Stream' - id: string - name: string - description?: string | null - role?: string | null - isPublic: boolean - createdAt: any - updatedAt: any - commentCount: number - favoritedDate?: any | null - favoritesCount: number - collaborators: Array<{ - __typename?: 'StreamCollaborator' - id: string - name: string - company?: string | null - avatar?: string | null - role: string - } | null> - commits?: { - __typename?: 'CommitCollection' - totalCount: number - items?: Array<{ - __typename?: 'Commit' - id: string - createdAt?: any | null - message?: string | null - authorId?: string | null - branchName?: string | null - authorName?: string | null - authorAvatar?: string | null - referencedObject: string - } | null> | null - } | null - branches?: { __typename?: 'BranchCollection'; totalCount: number } | null - }> | null - } | null -} -export type CommonStreamFieldsFragment = { - __typename?: 'Stream' - id: string - name: string - description?: string | null - role?: string | null - isPublic: boolean - createdAt: any - updatedAt: any - commentCount: number - favoritedDate?: any | null - favoritesCount: number - collaborators: Array<{ - __typename?: 'StreamCollaborator' - id: string - name: string - company?: string | null - avatar?: string | null - role: string - } | null> - commits?: { __typename?: 'CommitCollection'; totalCount: number } | null - branches?: { __typename?: 'BranchCollection'; totalCount: number } | null -} +export type StreamsQuery = { __typename?: 'Query', streams?: { __typename?: 'StreamCollection', totalCount: number, cursor?: string | null, items?: Array<{ __typename?: 'Stream', id: string, name: string, description?: string | null, role?: string | null, isPublic: boolean, createdAt: any, updatedAt: any, commentCount: number, favoritedDate?: any | null, favoritesCount: number, collaborators: Array<{ __typename?: 'StreamCollaborator', id: string, name: string, company?: string | null, avatar?: string | null, role: string } | null>, commits?: { __typename?: 'CommitCollection', totalCount: number, items?: Array<{ __typename?: 'Commit', id: string, createdAt?: any | null, message?: string | null, authorId?: string | null, branchName?: string | null, authorName?: string | null, authorAvatar?: string | null, referencedObject: string } | null> | null } | null, branches?: { __typename?: 'BranchCollection', totalCount: number } | null }> | null } | null }; + +export type CommonStreamFieldsFragment = { __typename?: 'Stream', id: string, name: string, description?: string | null, role?: string | null, isPublic: boolean, createdAt: any, updatedAt: any, commentCount: number, favoritedDate?: any | null, favoritesCount: number, collaborators: Array<{ __typename?: 'StreamCollaborator', id: string, name: string, company?: string | null, avatar?: string | null, role: string } | null>, commits?: { __typename?: 'CommitCollection', totalCount: number } | null, branches?: { __typename?: 'BranchCollection', totalCount: number } | null }; export type StreamQueryVariables = Exact<{ - id: Scalars['String'] -}> + id: Scalars['String']; +}>; -export type StreamQuery = { - __typename?: 'Query' - stream?: { - __typename?: 'Stream' - id: string - name: string - description?: string | null - role?: string | null - isPublic: boolean - createdAt: any - updatedAt: any - commentCount: number - favoritedDate?: any | null - favoritesCount: number - collaborators: Array<{ - __typename?: 'StreamCollaborator' - id: string - name: string - company?: string | null - avatar?: string | null - role: string - } | null> - commits?: { __typename?: 'CommitCollection'; totalCount: number } | null - branches?: { __typename?: 'BranchCollection'; totalCount: number } | null - } | null -} -export type CommonUserFieldsFragment = { - __typename?: 'User' - id: string - suuid?: string | null - email?: string | null - name?: string | null - bio?: string | null - company?: string | null - avatar?: string | null - verified?: boolean | null - profiles?: any | null - role?: string | null - streams?: { __typename?: 'StreamCollection'; totalCount: number } | null - commits?: { - __typename?: 'CommitCollectionUser' - totalCount: number - items?: Array<{ - __typename?: 'CommitCollectionUserNode' - id: string - createdAt?: any | null - } | null> | null - } | null -} +export type StreamQuery = { __typename?: 'Query', stream?: { __typename?: 'Stream', id: string, name: string, description?: string | null, role?: string | null, isPublic: boolean, createdAt: any, updatedAt: any, commentCount: number, favoritedDate?: any | null, favoritesCount: number, collaborators: Array<{ __typename?: 'StreamCollaborator', id: string, name: string, company?: string | null, avatar?: string | null, role: string } | null>, commits?: { __typename?: 'CommitCollection', totalCount: number } | null, branches?: { __typename?: 'BranchCollection', totalCount: number } | null } | null }; + +export type CommonUserFieldsFragment = { __typename?: 'User', id: string, suuid?: string | null, email?: string | null, name?: string | null, bio?: string | null, company?: string | null, avatar?: string | null, verified?: boolean | null, profiles?: any | null, role?: string | null, streams?: { __typename?: 'StreamCollection', totalCount: number } | null, commits?: { __typename?: 'CommitCollectionUser', totalCount: number, items?: Array<{ __typename?: 'CommitCollectionUserNode', id: string, createdAt?: any | null } | null> | null } | null }; export type UserFavoriteStreamsQueryVariables = Exact<{ - cursor?: InputMaybe -}> + cursor?: InputMaybe; +}>; -export type UserFavoriteStreamsQuery = { - __typename?: 'Query' - user?: { - __typename?: 'User' - id: string - suuid?: string | null - email?: string | null - name?: string | null - bio?: string | null - company?: string | null - avatar?: string | null - verified?: boolean | null - profiles?: any | null - role?: string | null - favoriteStreams?: { - __typename?: 'StreamCollection' - totalCount: number - cursor?: string | null - items?: Array<{ - __typename?: 'Stream' - id: string - name: string - description?: string | null - role?: string | null - isPublic: boolean - createdAt: any - updatedAt: any - commentCount: number - favoritedDate?: any | null - favoritesCount: number - collaborators: Array<{ - __typename?: 'StreamCollaborator' - id: string - name: string - company?: string | null - avatar?: string | null - role: string - } | null> - commits?: { __typename?: 'CommitCollection'; totalCount: number } | null - branches?: { __typename?: 'BranchCollection'; totalCount: number } | null - }> | null - } | null - streams?: { __typename?: 'StreamCollection'; totalCount: number } | null - commits?: { - __typename?: 'CommitCollectionUser' - totalCount: number - items?: Array<{ - __typename?: 'CommitCollectionUserNode' - id: string - createdAt?: any | null - } | null> | null - } | null - } | null -} -export type MainUserDataQueryVariables = Exact<{ [key: string]: never }> +export type UserFavoriteStreamsQuery = { __typename?: 'Query', user?: { __typename?: 'User', id: string, suuid?: string | null, email?: string | null, name?: string | null, bio?: string | null, company?: string | null, avatar?: string | null, verified?: boolean | null, profiles?: any | null, role?: string | null, favoriteStreams?: { __typename?: 'StreamCollection', totalCount: number, cursor?: string | null, items?: Array<{ __typename?: 'Stream', id: string, name: string, description?: string | null, role?: string | null, isPublic: boolean, createdAt: any, updatedAt: any, commentCount: number, favoritedDate?: any | null, favoritesCount: number, collaborators: Array<{ __typename?: 'StreamCollaborator', id: string, name: string, company?: string | null, avatar?: string | null, role: string } | null>, commits?: { __typename?: 'CommitCollection', totalCount: number } | null, branches?: { __typename?: 'BranchCollection', totalCount: number } | null }> | null } | null, streams?: { __typename?: 'StreamCollection', totalCount: number } | null, commits?: { __typename?: 'CommitCollectionUser', totalCount: number, items?: Array<{ __typename?: 'CommitCollectionUserNode', id: string, createdAt?: any | null } | null> | null } | null } | null }; -export type MainUserDataQuery = { - __typename?: 'Query' - user?: { - __typename?: 'User' - id: string - suuid?: string | null - email?: string | null - name?: string | null - bio?: string | null - company?: string | null - avatar?: string | null - verified?: boolean | null - profiles?: any | null - role?: string | null - streams?: { __typename?: 'StreamCollection'; totalCount: number } | null - commits?: { - __typename?: 'CommitCollectionUser' - totalCount: number - items?: Array<{ - __typename?: 'CommitCollectionUserNode' - id: string - createdAt?: any | null - } | null> | null - } | null - } | null -} +export type MainUserDataQueryVariables = Exact<{ [key: string]: never; }>; -export type ExtraUserDataQueryVariables = Exact<{ [key: string]: never }> -export type ExtraUserDataQuery = { - __typename?: 'Query' - user?: { - __typename?: 'User' - totalOwnedStreamsFavorites: number - id: string - suuid?: string | null - email?: string | null - name?: string | null - bio?: string | null - company?: string | null - avatar?: string | null - verified?: boolean | null - profiles?: any | null - role?: string | null - streams?: { __typename?: 'StreamCollection'; totalCount: number } | null - commits?: { - __typename?: 'CommitCollectionUser' - totalCount: number - items?: Array<{ - __typename?: 'CommitCollectionUserNode' - id: string - createdAt?: any | null - } | null> | null - } | null - } | null -} +export type MainUserDataQuery = { __typename?: 'Query', user?: { __typename?: 'User', id: string, suuid?: string | null, email?: string | null, name?: string | null, bio?: string | null, company?: string | null, avatar?: string | null, verified?: boolean | null, profiles?: any | null, role?: string | null, streams?: { __typename?: 'StreamCollection', totalCount: number } | null, commits?: { __typename?: 'CommitCollectionUser', totalCount: number, items?: Array<{ __typename?: 'CommitCollectionUserNode', id: string, createdAt?: any | null } | null> | null } | null } | null }; + +export type ExtraUserDataQueryVariables = Exact<{ [key: string]: never; }>; + + +export type ExtraUserDataQuery = { __typename?: 'Query', user?: { __typename?: 'User', totalOwnedStreamsFavorites: number, id: string, suuid?: string | null, email?: string | null, name?: string | null, bio?: string | null, company?: string | null, avatar?: string | null, verified?: boolean | null, profiles?: any | null, role?: string | null, streams?: { __typename?: 'StreamCollection', totalCount: number } | null, commits?: { __typename?: 'CommitCollectionUser', totalCount: number, items?: Array<{ __typename?: 'CommitCollectionUserNode', id: string, createdAt?: any | null } | null> | null } | null } | null }; export type UserQueryVariables = Exact<{ - id: Scalars['String'] -}> + id: Scalars['String']; +}>; -export type UserQuery = { - __typename?: 'Query' - user?: { - __typename?: 'User' - id: string - email?: string | null - name?: string | null - bio?: string | null - company?: string | null - avatar?: string | null - verified?: boolean | null - profiles?: any | null - role?: string | null - suuid?: string | null - } | null -} -export type Unnamed_1_QueryVariables = Exact<{ [key: string]: never }> +export type UserQuery = { __typename?: 'Query', user?: { __typename?: 'User', id: string, email?: string | null, name?: string | null, bio?: string | null, company?: string | null, avatar?: string | null, verified?: boolean | null, profiles?: any | null, role?: string | null, suuid?: string | null } | null }; -export type Unnamed_1_Query = { - __typename?: 'Query' - user?: { - __typename?: 'User' - id: string - email?: string | null - name?: string | null - bio?: string | null - company?: string | null - avatar?: string | null - verified?: boolean | null - profiles?: any | null - role?: string | null - streams?: { - __typename?: 'StreamCollection' - totalCount: number - cursor?: string | null - items?: Array<{ - __typename?: 'Stream' - id: string - name: string - description?: string | null - isPublic: boolean - createdAt: any - updatedAt: any - collaborators: Array<{ - __typename?: 'StreamCollaborator' - id: string - name: string - company?: string | null - avatar?: string | null - role: string - } | null> - commits?: { __typename?: 'CommitCollection'; totalCount: number } | null - branches?: { __typename?: 'BranchCollection'; totalCount: number } | null - }> | null - } | null - commits?: { - __typename?: 'CommitCollectionUser' - totalCount: number - cursor?: string | null - items?: Array<{ - __typename?: 'CommitCollectionUserNode' - id: string - message?: string | null - streamId?: string | null - streamName?: string | null - createdAt?: any | null - } | null> | null - } | null - } | null -} +export type Unnamed_1_QueryVariables = Exact<{ [key: string]: never; }>; + + +export type Unnamed_1_Query = { __typename?: 'Query', user?: { __typename?: 'User', id: string, email?: string | null, name?: string | null, bio?: string | null, company?: string | null, avatar?: string | null, verified?: boolean | null, profiles?: any | null, role?: string | null, streams?: { __typename?: 'StreamCollection', totalCount: number, cursor?: string | null, items?: Array<{ __typename?: 'Stream', id: string, name: string, description?: string | null, isPublic: boolean, createdAt: any, updatedAt: any, collaborators: Array<{ __typename?: 'StreamCollaborator', id: string, name: string, company?: string | null, avatar?: string | null, role: string } | null>, commits?: { __typename?: 'CommitCollection', totalCount: number } | null, branches?: { __typename?: 'BranchCollection', totalCount: number } | null }> | null } | null, commits?: { __typename?: 'CommitCollectionUser', totalCount: number, cursor?: string | null, items?: Array<{ __typename?: 'CommitCollectionUserNode', id: string, message?: string | null, streamId?: string | null, streamName?: string | null, createdAt?: any | null } | null> | null } | null } | null }; export type UserProfileQueryVariables = Exact<{ - id: Scalars['String'] -}> + id: Scalars['String']; +}>; -export type UserProfileQuery = { - __typename?: 'Query' - user?: { - __typename?: 'User' - id: string - name?: string | null - bio?: string | null - company?: string | null - avatar?: string | null - verified?: boolean | null - } | null -} + +export type UserProfileQuery = { __typename?: 'Query', user?: { __typename?: 'User', id: string, name?: string | null, bio?: string | null, company?: string | null, avatar?: string | null, verified?: boolean | null } | null }; export type UserSearchQueryVariables = Exact<{ - query: Scalars['String'] - limit: Scalars['Int'] - cursor?: InputMaybe - archived?: InputMaybe -}> + query: Scalars['String']; + limit: Scalars['Int']; + cursor?: InputMaybe; + archived?: InputMaybe; +}>; -export type UserSearchQuery = { - __typename?: 'Query' - userSearch?: { - __typename?: 'UserSearchResultCollection' - cursor?: string | null - items?: Array<{ - __typename?: 'UserSearchResult' - id: string - name?: string | null - bio?: string | null - company?: string | null - avatar?: string | null - verified?: boolean | null - } | null> | null - } | null -} + +export type UserSearchQuery = { __typename?: 'Query', userSearch?: { __typename?: 'UserSearchResultCollection', cursor?: string | null, items?: Array<{ __typename?: 'UserSearchResult', id: string, name?: string | null, bio?: string | null, company?: string | null, avatar?: string | null, verified?: boolean | null } | null> | null } | null }; export type WebhookQueryVariables = Exact<{ - streamId: Scalars['String'] - webhookId: Scalars['String'] -}> + streamId: Scalars['String']; + webhookId: Scalars['String']; +}>; -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> | null } | null } | null }; export type WebhooksQueryVariables = Exact<{ - streamId: Scalars['String'] -}> + 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: any - } | null> | null - } | null - } | null> | null - } | null - } | null -} -export const MainServerInfoFields = gql` - fragment MainServerInfoFields on ServerInfo { - name - company - description - adminContact - canonicalUrl - termsOfService - inviteOnly - version - } -` -export const ServerInfoRolesFields = gql` - fragment ServerInfoRolesFields on ServerInfo { - roles { - name - description - resourceTarget - } - } -` -export const ServerInfoScopesFields = gql` - fragment ServerInfoScopesFields on ServerInfo { - scopes { - name - description - } - } -` -export const CommonStreamFields = gql` - fragment CommonStreamFields on Stream { - id - name - description - role - isPublic - createdAt - updatedAt - commentCount - collaborators { +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: any } | null> | null } | null } | null> | null } | null } | null }; + +export const CommentFullInfo = gql` + fragment CommentFullInfo on Comment { + id + archived + authorId + text { + doc + attachments { id - name - company - avatar - role + fileName + streamId } - commits(limit: 1) { - totalCount - } - branches { - totalCount - } - favoritedDate - favoritesCount } -` -export const CommonUserFields = gql` - fragment CommonUserFields on User { - id - suuid - email + data + screenshot + replies { + totalCount + } + resources { + resourceId + resourceType + } + createdAt + updatedAt + viewedAt +} + `; +export const MainServerInfoFields = gql` + fragment MainServerInfoFields on ServerInfo { + name + company + description + adminContact + canonicalUrl + termsOfService + inviteOnly + version +} + `; +export const ServerInfoRolesFields = gql` + fragment ServerInfoRolesFields on ServerInfo { + roles { + name + description + resourceTarget + } +} + `; +export const ServerInfoScopesFields = gql` + fragment ServerInfoScopesFields on ServerInfo { + scopes { + name + description + } +} + `; +export const CommonStreamFields = gql` + fragment CommonStreamFields on Stream { + id + name + description + role + isPublic + createdAt + updatedAt + commentCount + collaborators { + id name - bio company avatar - verified - profiles role - suuid - streams { - totalCount - } - commits(limit: 1) { - totalCount - items { - id - createdAt - } + } + commits(limit: 1) { + totalCount + } + branches { + totalCount + } + favoritedDate + favoritesCount +} + `; +export const CommonUserFields = gql` + fragment CommonUserFields on User { + id + suuid + email + name + bio + company + avatar + verified + profiles + role + suuid + streams { + totalCount + } + commits(limit: 1) { + totalCount + items { + id + createdAt } } -` +} + `; export const StreamWithBranch = gql` - query StreamWithBranch($streamId: String!, $branchName: String!, $cursor: String) { - stream(id: $streamId) { + query StreamWithBranch($streamId: String!, $branchName: String!, $cursor: String) { + stream(id: $streamId) { + id + name + branch(name: $branchName) { id name - branch(name: $branchName) { - id - name - description - commits(cursor: $cursor, limit: 4) { - totalCount - cursor - items { - id - authorName - authorId - authorAvatar - sourceApplication - message - referencedObject - createdAt - commentCount - } + description + commits(cursor: $cursor, limit: 4) { + totalCount + cursor + items { + id + authorName + authorId + authorAvatar + sourceApplication + message + referencedObject + createdAt + commentCount } } } } -` +} + `; export const StreamCommitQuery = gql` - query StreamCommitQuery($streamId: String!, $id: String!) { - stream(id: $streamId) { + query StreamCommitQuery($streamId: String!, $id: String!) { + stream(id: $streamId) { + id + name + role + commit(id: $id) { + id + message + referencedObject + authorName + authorId + authorAvatar + createdAt + branchName + sourceApplication + } + } +} + `; +export const StreamObject = gql` + query StreamObject($streamId: String!, $id: String!) { + stream(id: $streamId) { + id + object(id: $id) { + totalChildrenCount + id + speckleType + data + } + } +} + `; +export const StreamObjectNoData = gql` + query StreamObjectNoData($streamId: String!, $id: String!) { + stream(id: $streamId) { + id + name + object(id: $id) { + totalChildrenCount + id + speckleType + } + } +} + `; +export const MainServerInfo = gql` + query MainServerInfo { + serverInfo { + ...MainServerInfoFields + } +} + ${MainServerInfoFields}`; +export const FullServerInfo = gql` + query FullServerInfo { + serverInfo { + ...MainServerInfoFields + ...ServerInfoRolesFields + ...ServerInfoScopesFields + } +} + ${MainServerInfoFields} +${ServerInfoRolesFields} +${ServerInfoScopesFields}`; +export const StreamWithCollaborators = gql` + query StreamWithCollaborators($id: String!) { + stream(id: $id) { + id + name + isPublic + role + collaborators { id name role - commit(id: $id) { + company + avatar + } + } +} + `; +export const StreamCommits = gql` + query StreamCommits($id: String!) { + stream(id: $id) { + id + role + commits { + totalCount + items { id - message - referencedObject - authorName authorId + authorName authorAvatar createdAt + message + referencedObject branchName sourceApplication } } } -` -export const StreamObject = gql` - query StreamObject($streamId: String!, $id: String!) { - stream(id: $streamId) { - id - object(id: $id) { - totalChildrenCount - id - speckleType - data - } - } - } -` -export const StreamObjectNoData = gql` - query StreamObjectNoData($streamId: String!, $id: String!) { - stream(id: $streamId) { +} + `; +export const Streams = gql` + query Streams($cursor: String) { + streams(cursor: $cursor, limit: 10) { + totalCount + cursor + items { id name - object(id: $id) { - totalChildrenCount - id - speckleType - } - } - } -` -export const MainServerInfo = gql` - query MainServerInfo { - serverInfo { - ...MainServerInfoFields - } - } - ${MainServerInfoFields} -` -export const FullServerInfo = gql` - query FullServerInfo { - serverInfo { - ...MainServerInfoFields - ...ServerInfoRolesFields - ...ServerInfoScopesFields - } - } - ${MainServerInfoFields} - ${ServerInfoRolesFields} - ${ServerInfoScopesFields} -` -export const StreamWithCollaborators = gql` - query StreamWithCollaborators($id: String!) { - stream(id: $id) { - id - name - isPublic + description role + isPublic + createdAt + updatedAt + commentCount collaborators { id name - role company avatar + role } - } - } -` -export const StreamCommits = gql` - query StreamCommits($id: String!) { - stream(id: $id) { - id - role - commits { + commits(limit: 1) { totalCount items { id - authorId - authorName - authorAvatar createdAt message - referencedObject + authorId branchName - sourceApplication + authorName + authorAvatar + referencedObject } } - } - } -` -export const Streams = gql` - query Streams($cursor: String) { - streams(cursor: $cursor, limit: 10) { - totalCount - cursor - items { - id - name - description - role - isPublic - createdAt - updatedAt - commentCount - collaborators { - id - name - company - avatar - role - } - commits(limit: 1) { - totalCount - items { - id - createdAt - message - authorId - branchName - authorName - authorAvatar - referencedObject - } - } - branches { - totalCount - } - favoritedDate - favoritesCount - } - } - } -` -export const Stream = gql` - query Stream($id: String!) { - stream(id: $id) { - ...CommonStreamFields - } - } - ${CommonStreamFields} -` -export const UserFavoriteStreams = gql` - query UserFavoriteStreams($cursor: String) { - user { - ...CommonUserFields - favoriteStreams(cursor: $cursor, limit: 10) { + branches { totalCount - cursor - items { - ...CommonStreamFields - } } + favoritedDate + favoritesCount } } - ${CommonUserFields} - ${CommonStreamFields} -` -export const MainUserData = gql` - query MainUserData { - user { - ...CommonUserFields - } +} + `; +export const Stream = gql` + query Stream($id: String!) { + stream(id: $id) { + ...CommonStreamFields } - ${CommonUserFields} -` -export const ExtraUserData = gql` - query ExtraUserData { - user { - ...CommonUserFields - totalOwnedStreamsFavorites - } - } - ${CommonUserFields} -` -export const User = gql` - query User($id: String!) { - user(id: $id) { - id - email - name - bio - company - avatar - verified - profiles - role - suuid - } - } -` - -export const UserProfile = gql` - query UserProfile($id: String!) { - user(id: $id) { - id - name - bio - company - avatar - verified - } - } -` -export const UserSearch = gql` - query UserSearch($query: String!, $limit: Int!, $cursor: String, $archived: Boolean) { - userSearch(query: $query, limit: $limit, cursor: $cursor, archived: $archived) { +} + ${CommonStreamFields}`; +export const UserFavoriteStreams = gql` + query UserFavoriteStreams($cursor: String) { + user { + ...CommonUserFields + favoriteStreams(cursor: $cursor, limit: 10) { + totalCount cursor items { - id - name - bio - company - avatar - verified + ...CommonStreamFields } } } -` -export const Webhook = gql` - query webhook($streamId: String!, $webhookId: String!) { - stream(id: $streamId) { - id - role - webhooks(id: $webhookId) { - items { - id - streamId - url - description - triggers - enabled - history(limit: 1) { - items { - status - statusInfo - } - } - } - } - } +} + ${CommonUserFields} +${CommonStreamFields}`; +export const MainUserData = gql` + query MainUserData { + user { + ...CommonUserFields } -` -export const Webhooks = gql` - query webhooks($streamId: String!) { - stream(id: $streamId) { - id - name - role - webhooks { - items { - id - streamId - url - description - triggers - enabled - history(limit: 50) { - items { - status - statusInfo - lastUpdate - } - } - } - } - } +} + ${CommonUserFields}`; +export const ExtraUserData = gql` + query ExtraUserData { + user { + ...CommonUserFields + totalOwnedStreamsFavorites } -` -export const MainServerInfoFieldsFragmentDoc = gql` - fragment MainServerInfoFields on ServerInfo { - name - company - description - adminContact - canonicalUrl - termsOfService - inviteOnly - version - } -` -export const ServerInfoRolesFieldsFragmentDoc = gql` - fragment ServerInfoRolesFields on ServerInfo { - roles { - name - description - resourceTarget - } - } -` -export const ServerInfoScopesFieldsFragmentDoc = gql` - fragment ServerInfoScopesFields on ServerInfo { - scopes { - name - description - } - } -` -export const CommonStreamFieldsFragmentDoc = gql` - fragment CommonStreamFields on Stream { +} + ${CommonUserFields}`; +export const User = gql` + query User($id: String!) { + user(id: $id) { id - name - description - role - isPublic - createdAt - updatedAt - commentCount - collaborators { - id - name - company - avatar - role - } - commits(limit: 1) { - totalCount - } - branches { - totalCount - } - favoritedDate - favoritesCount - } -` -export const CommonUserFieldsFragmentDoc = gql` - fragment CommonUserFields on User { - id - suuid email name bio @@ -2387,46 +1839,223 @@ export const CommonUserFieldsFragmentDoc = gql` profiles role suuid - streams { - totalCount - } - commits(limit: 1) { - totalCount - items { - id - createdAt - } - } } -` -export const StreamWithBranchDocument = gql` - query StreamWithBranch($streamId: String!, $branchName: String!, $cursor: String) { - stream(id: $streamId) { +} + `; + +export const UserProfile = gql` + query UserProfile($id: String!) { + user(id: $id) { + id + name + bio + company + avatar + verified + } +} + `; +export const UserSearch = gql` + query UserSearch($query: String!, $limit: Int!, $cursor: String, $archived: Boolean) { + userSearch(query: $query, limit: $limit, cursor: $cursor, archived: $archived) { + cursor + items { id name - branch(name: $branchName) { + bio + company + avatar + verified + } + } +} + `; +export const Webhook = gql` + query webhook($streamId: String!, $webhookId: String!) { + stream(id: $streamId) { + id + role + webhooks(id: $webhookId) { + items { id - name + streamId + url description - commits(cursor: $cursor, limit: 4) { - totalCount - cursor + triggers + enabled + history(limit: 1) { items { - id - authorName - authorId - authorAvatar - sourceApplication - message - referencedObject - createdAt - commentCount + status + statusInfo } } } } } -` +} + `; +export const Webhooks = gql` + query webhooks($streamId: String!) { + stream(id: $streamId) { + id + name + role + webhooks { + items { + id + streamId + url + description + triggers + enabled + history(limit: 50) { + items { + status + statusInfo + lastUpdate + } + } + } + } + } +} + `; +export const CommentFullInfoFragmentDoc = gql` + fragment CommentFullInfo on Comment { + id + archived + authorId + text { + doc + attachments { + id + fileName + streamId + } + } + data + screenshot + replies { + totalCount + } + resources { + resourceId + resourceType + } + createdAt + updatedAt + viewedAt +} + `; +export const MainServerInfoFieldsFragmentDoc = gql` + fragment MainServerInfoFields on ServerInfo { + name + company + description + adminContact + canonicalUrl + termsOfService + inviteOnly + version +} + `; +export const ServerInfoRolesFieldsFragmentDoc = gql` + fragment ServerInfoRolesFields on ServerInfo { + roles { + name + description + resourceTarget + } +} + `; +export const ServerInfoScopesFieldsFragmentDoc = gql` + fragment ServerInfoScopesFields on ServerInfo { + scopes { + name + description + } +} + `; +export const CommonStreamFieldsFragmentDoc = gql` + fragment CommonStreamFields on Stream { + id + name + description + role + isPublic + createdAt + updatedAt + commentCount + collaborators { + id + name + company + avatar + role + } + commits(limit: 1) { + totalCount + } + branches { + totalCount + } + favoritedDate + favoritesCount +} + `; +export const CommonUserFieldsFragmentDoc = gql` + fragment CommonUserFields on User { + id + suuid + email + name + bio + company + avatar + verified + profiles + role + suuid + streams { + totalCount + } + commits(limit: 1) { + totalCount + items { + id + createdAt + } + } +} + `; +export const StreamWithBranchDocument = gql` + query StreamWithBranch($streamId: String!, $branchName: String!, $cursor: String) { + stream(id: $streamId) { + id + name + branch(name: $branchName) { + id + name + description + commits(cursor: $cursor, limit: 4) { + totalCount + cursor + items { + id + authorName + authorId + authorAvatar + sourceApplication + message + referencedObject + createdAt + commentCount + } + } + } + } +} + `; /** * __useStreamWithBranchQuery__ @@ -2455,28 +2084,28 @@ export const useStreamWithBranchQuery = createSmartQueryOptionsFunction< StreamWithBranchQuery, StreamWithBranchQueryVariables, ApolloError ->(StreamWithBranchDocument) +>(StreamWithBranchDocument); export const StreamCommitQueryDocument = gql` - query StreamCommitQuery($streamId: String!, $id: String!) { - stream(id: $streamId) { + query StreamCommitQuery($streamId: String!, $id: String!) { + stream(id: $streamId) { + id + name + role + commit(id: $id) { id - name - role - commit(id: $id) { - id - message - referencedObject - authorName - authorId - authorAvatar - createdAt - branchName - sourceApplication - } + message + referencedObject + authorName + authorId + authorAvatar + createdAt + branchName + sourceApplication } } -` +} + `; /** * __useStreamCommitQueryQuery__ @@ -2504,21 +2133,21 @@ export const useStreamCommitQueryQuery = createSmartQueryOptionsFunction< StreamCommitQueryQuery, StreamCommitQueryQueryVariables, ApolloError ->(StreamCommitQueryDocument) +>(StreamCommitQueryDocument); export const StreamObjectDocument = gql` - query StreamObject($streamId: String!, $id: String!) { - stream(id: $streamId) { + query StreamObject($streamId: String!, $id: String!) { + stream(id: $streamId) { + id + object(id: $id) { + totalChildrenCount id - object(id: $id) { - totalChildrenCount - id - speckleType - data - } + speckleType + data } } -` +} + `; /** * __useStreamObjectQuery__ @@ -2546,21 +2175,21 @@ export const useStreamObjectQuery = createSmartQueryOptionsFunction< StreamObjectQuery, StreamObjectQueryVariables, ApolloError ->(StreamObjectDocument) +>(StreamObjectDocument); export const StreamObjectNoDataDocument = gql` - query StreamObjectNoData($streamId: String!, $id: String!) { - stream(id: $streamId) { + query StreamObjectNoData($streamId: String!, $id: String!) { + stream(id: $streamId) { + id + name + object(id: $id) { + totalChildrenCount id - name - object(id: $id) { - totalChildrenCount - id - speckleType - } + speckleType } } -` +} + `; /** * __useStreamObjectNoDataQuery__ @@ -2588,16 +2217,15 @@ export const useStreamObjectNoDataQuery = createSmartQueryOptionsFunction< StreamObjectNoDataQuery, StreamObjectNoDataQueryVariables, ApolloError ->(StreamObjectNoDataDocument) +>(StreamObjectNoDataDocument); export const MainServerInfoDocument = gql` - query MainServerInfo { - serverInfo { - ...MainServerInfoFields - } + query MainServerInfo { + serverInfo { + ...MainServerInfoFields } - ${MainServerInfoFieldsFragmentDoc} -` +} + ${MainServerInfoFieldsFragmentDoc}`; /** * __useMainServerInfoQuery__ @@ -2622,20 +2250,19 @@ export const useMainServerInfoQuery = createSmartQueryOptionsFunction< MainServerInfoQuery, MainServerInfoQueryVariables, ApolloError ->(MainServerInfoDocument) +>(MainServerInfoDocument); export const FullServerInfoDocument = gql` - query FullServerInfo { - serverInfo { - ...MainServerInfoFields - ...ServerInfoRolesFields - ...ServerInfoScopesFields - } + query FullServerInfo { + serverInfo { + ...MainServerInfoFields + ...ServerInfoRolesFields + ...ServerInfoScopesFields } - ${MainServerInfoFieldsFragmentDoc} - ${ServerInfoRolesFieldsFragmentDoc} - ${ServerInfoScopesFieldsFragmentDoc} -` +} + ${MainServerInfoFieldsFragmentDoc} +${ServerInfoRolesFieldsFragmentDoc} +${ServerInfoScopesFieldsFragmentDoc}`; /** * __useFullServerInfoQuery__ @@ -2660,25 +2287,25 @@ export const useFullServerInfoQuery = createSmartQueryOptionsFunction< FullServerInfoQuery, FullServerInfoQueryVariables, ApolloError ->(FullServerInfoDocument) +>(FullServerInfoDocument); export const StreamWithCollaboratorsDocument = gql` - query StreamWithCollaborators($id: String!) { - stream(id: $id) { + query StreamWithCollaborators($id: String!) { + stream(id: $id) { + id + name + isPublic + role + collaborators { id name - isPublic role - collaborators { - id - name - role - company - avatar - } + company + avatar } } -` +} + `; /** * __useStreamWithCollaboratorsQuery__ @@ -2705,30 +2332,30 @@ export const useStreamWithCollaboratorsQuery = createSmartQueryOptionsFunction< StreamWithCollaboratorsQuery, StreamWithCollaboratorsQueryVariables, ApolloError ->(StreamWithCollaboratorsDocument) +>(StreamWithCollaboratorsDocument); export const StreamCommitsDocument = gql` - query StreamCommits($id: String!) { - stream(id: $id) { - id - role - commits { - totalCount - items { - id - authorId - authorName - authorAvatar - createdAt - message - referencedObject - branchName - sourceApplication - } + query StreamCommits($id: String!) { + stream(id: $id) { + id + role + commits { + totalCount + items { + id + authorId + authorName + authorAvatar + createdAt + message + referencedObject + branchName + sourceApplication } } } -` +} + `; /** * __useStreamCommitsQuery__ @@ -2755,51 +2382,51 @@ export const useStreamCommitsQuery = createSmartQueryOptionsFunction< StreamCommitsQuery, StreamCommitsQueryVariables, ApolloError ->(StreamCommitsDocument) +>(StreamCommitsDocument); export const StreamsDocument = gql` - query Streams($cursor: String) { - streams(cursor: $cursor, limit: 10) { - totalCount - cursor - items { + query Streams($cursor: String) { + streams(cursor: $cursor, limit: 10) { + totalCount + cursor + items { + id + name + description + role + isPublic + createdAt + updatedAt + commentCount + collaborators { id name - description + company + avatar role - isPublic - createdAt - updatedAt - commentCount - collaborators { - id - name - company - avatar - role - } - commits(limit: 1) { - totalCount - items { - id - createdAt - message - authorId - branchName - authorName - authorAvatar - referencedObject - } - } - branches { - totalCount - } - favoritedDate - favoritesCount } + commits(limit: 1) { + totalCount + items { + id + createdAt + message + authorId + branchName + authorName + authorAvatar + referencedObject + } + } + branches { + totalCount + } + favoritedDate + favoritesCount } } -` +} + `; /** * __useStreamsQuery__ @@ -2826,16 +2453,15 @@ export const useStreamsQuery = createSmartQueryOptionsFunction< StreamsQuery, StreamsQueryVariables, ApolloError ->(StreamsDocument) +>(StreamsDocument); export const StreamDocument = gql` - query Stream($id: String!) { - stream(id: $id) { - ...CommonStreamFields - } + query Stream($id: String!) { + stream(id: $id) { + ...CommonStreamFields } - ${CommonStreamFieldsFragmentDoc} -` +} + ${CommonStreamFieldsFragmentDoc}`; /** * __useStreamQuery__ @@ -2862,24 +2488,23 @@ export const useStreamQuery = createSmartQueryOptionsFunction< StreamQuery, StreamQueryVariables, ApolloError ->(StreamDocument) +>(StreamDocument); export const UserFavoriteStreamsDocument = gql` - query UserFavoriteStreams($cursor: String) { - user { - ...CommonUserFields - favoriteStreams(cursor: $cursor, limit: 10) { - totalCount - cursor - items { - ...CommonStreamFields - } + query UserFavoriteStreams($cursor: String) { + user { + ...CommonUserFields + favoriteStreams(cursor: $cursor, limit: 10) { + totalCount + cursor + items { + ...CommonStreamFields } } } - ${CommonUserFieldsFragmentDoc} - ${CommonStreamFieldsFragmentDoc} -` +} + ${CommonUserFieldsFragmentDoc} +${CommonStreamFieldsFragmentDoc}`; /** * __useUserFavoriteStreamsQuery__ @@ -2906,16 +2531,15 @@ export const useUserFavoriteStreamsQuery = createSmartQueryOptionsFunction< UserFavoriteStreamsQuery, UserFavoriteStreamsQueryVariables, ApolloError ->(UserFavoriteStreamsDocument) +>(UserFavoriteStreamsDocument); export const MainUserDataDocument = gql` - query MainUserData { - user { - ...CommonUserFields - } + query MainUserData { + user { + ...CommonUserFields } - ${CommonUserFieldsFragmentDoc} -` +} + ${CommonUserFieldsFragmentDoc}`; /** * __useMainUserDataQuery__ @@ -2940,17 +2564,16 @@ export const useMainUserDataQuery = createSmartQueryOptionsFunction< MainUserDataQuery, MainUserDataQueryVariables, ApolloError ->(MainUserDataDocument) +>(MainUserDataDocument); export const ExtraUserDataDocument = gql` - query ExtraUserData { - user { - ...CommonUserFields - totalOwnedStreamsFavorites - } + query ExtraUserData { + user { + ...CommonUserFields + totalOwnedStreamsFavorites } - ${CommonUserFieldsFragmentDoc} -` +} + ${CommonUserFieldsFragmentDoc}`; /** * __useExtraUserDataQuery__ @@ -2975,24 +2598,24 @@ export const useExtraUserDataQuery = createSmartQueryOptionsFunction< ExtraUserDataQuery, ExtraUserDataQueryVariables, ApolloError ->(ExtraUserDataDocument) +>(ExtraUserDataDocument); export const UserDocument = gql` - query User($id: String!) { - user(id: $id) { - id - email - name - bio - company - avatar - verified - profiles - role - suuid - } + query User($id: String!) { + user(id: $id) { + id + email + name + bio + company + avatar + verified + profiles + role + suuid } -` +} + `; /** * __useUserQuery__ @@ -3019,71 +2642,71 @@ export const useUserQuery = createSmartQueryOptionsFunction< UserQuery, UserQueryVariables, ApolloError ->(UserDocument) +>(UserDocument); export const Document = gql` - { - user { - id - email - name - bio - company - avatar - verified - profiles - role - streams(limit: 25) { - totalCount - cursor - items { + { + user { + id + email + name + bio + company + avatar + verified + profiles + role + streams(limit: 25) { + totalCount + cursor + items { + id + name + description + isPublic + createdAt + updatedAt + collaborators { id name - description - isPublic - createdAt - updatedAt - collaborators { - id - name - company - avatar - role - } - commits { - totalCount - } - branches { - totalCount - } + company + avatar + role } - } - commits(limit: 25) { - totalCount - cursor - items { - id - message - streamId - streamName - createdAt + commits { + totalCount + } + branches { + totalCount } } } + commits(limit: 25) { + totalCount + cursor + items { + id + message + streamId + streamName + createdAt + } + } } -` +} + `; export const UserProfileDocument = gql` - query UserProfile($id: String!) { - user(id: $id) { - id - name - bio - company - avatar - verified - } + query UserProfile($id: String!) { + user(id: $id) { + id + name + bio + company + avatar + verified } -` +} + `; /** * __useUserProfileQuery__ @@ -3110,23 +2733,23 @@ export const useUserProfileQuery = createSmartQueryOptionsFunction< UserProfileQuery, UserProfileQueryVariables, ApolloError ->(UserProfileDocument) +>(UserProfileDocument); export const UserSearchDocument = gql` - query UserSearch($query: String!, $limit: Int!, $cursor: String, $archived: Boolean) { - userSearch(query: $query, limit: $limit, cursor: $cursor, archived: $archived) { - cursor - items { - id - name - bio - company - avatar - verified - } + query UserSearch($query: String!, $limit: Int!, $cursor: String, $archived: Boolean) { + userSearch(query: $query, limit: $limit, cursor: $cursor, archived: $archived) { + cursor + items { + id + name + bio + company + avatar + verified } } -` +} + `; /** * __useUserSearchQuery__ @@ -3156,32 +2779,32 @@ export const useUserSearchQuery = createSmartQueryOptionsFunction< UserSearchQuery, UserSearchQueryVariables, ApolloError ->(UserSearchDocument) +>(UserSearchDocument); export const WebhookDocument = gql` - query webhook($streamId: String!, $webhookId: String!) { - stream(id: $streamId) { - id - role - webhooks(id: $webhookId) { - items { - id - streamId - url - description - triggers - enabled - history(limit: 1) { - items { - status - statusInfo - } + query webhook($streamId: String!, $webhookId: String!) { + stream(id: $streamId) { + id + role + webhooks(id: $webhookId) { + items { + id + streamId + url + description + triggers + enabled + history(limit: 1) { + items { + status + statusInfo } } } } } -` +} + `; /** * __useWebhookQuery__ @@ -3209,34 +2832,34 @@ export const useWebhookQuery = createSmartQueryOptionsFunction< WebhookQuery, WebhookQueryVariables, ApolloError ->(WebhookDocument) +>(WebhookDocument); export const WebhooksDocument = gql` - query webhooks($streamId: String!) { - stream(id: $streamId) { - id - name - role - webhooks { - items { - id - streamId - url - description - triggers - enabled - history(limit: 50) { - items { - status - statusInfo - lastUpdate - } + query webhooks($streamId: String!) { + stream(id: $streamId) { + id + name + role + webhooks { + items { + id + streamId + url + description + triggers + enabled + history(limit: 50) { + items { + status + statusInfo + lastUpdate } } } } } -` +} + `; /** * __useWebhooksQuery__ @@ -3263,4 +2886,4 @@ export const useWebhooksQuery = createSmartQueryOptionsFunction< WebhooksQuery, WebhooksQueryVariables, ApolloError ->(WebhooksDocument) +>(WebhooksDocument); diff --git a/packages/frontend/src/helpers/errorHelper.ts b/packages/frontend/src/helpers/errorHelper.ts new file mode 100644 index 000000000..c6e4036ec --- /dev/null +++ b/packages/frontend/src/helpers/errorHelper.ts @@ -0,0 +1,14 @@ +/** + * Base application error + */ +export abstract class BaseError extends Error { + /** + * Default message if none is passed + */ + static defaultMessage = 'Unexpected error occurred!' + + constructor(message?: string, options?: ErrorOptions) { + message ||= new.target.defaultMessage + super(message, options) + } +} diff --git a/packages/frontend/src/main/components/comments/CommentEditor.vue b/packages/frontend/src/main/components/comments/CommentEditor.vue index 492ec632d..eba63e80a 100644 --- a/packages/frontend/src/main/components/comments/CommentEditor.vue +++ b/packages/frontend/src/main/components/comments/CommentEditor.vue @@ -1,27 +1,70 @@ - + diff --git a/packages/frontend/src/main/components/comments/CommentListItem.vue b/packages/frontend/src/main/components/comments/CommentListItem.vue index bc2a7fd75..47851658a 100644 --- a/packages/frontend/src/main/components/comments/CommentListItem.vue +++ b/packages/frontend/src/main/components/comments/CommentListItem.vue @@ -117,6 +117,9 @@ diff --git a/packages/frontend/src/main/components/comments/CommentThreadReplyAttachments.vue b/packages/frontend/src/main/components/comments/CommentThreadReplyAttachments.vue new file mode 100644 index 000000000..84dd14b51 --- /dev/null +++ b/packages/frontend/src/main/components/comments/CommentThreadReplyAttachments.vue @@ -0,0 +1,36 @@ + + diff --git a/packages/frontend/src/main/components/comments/CommentThreadViewer.vue b/packages/frontend/src/main/components/comments/CommentThreadViewer.vue index faf036ef5..debbdca96 100644 --- a/packages/frontend/src/main/components/comments/CommentThreadViewer.vue +++ b/packages/frontend/src/main/components/comments/CommentThreadViewer.vue @@ -44,7 +44,7 @@ This comment is targeting other resources. View in full context -
+