diff --git a/packages/components/CHANGELOG.md b/packages/components/CHANGELOG.md index 8361283d..d4638617 100644 --- a/packages/components/CHANGELOG.md +++ b/packages/components/CHANGELOG.md @@ -1,5 +1,11 @@ # @baseapp-frontend/components +## 0.0.51 + +### Patch Changes + +- Added search bar to members list. User can search for members by first name, last name and email. + ## 0.0.50 ### Patch Changes diff --git a/packages/components/__generated__/ActivityLogsFragment.graphql.ts b/packages/components/__generated__/ActivityLogsFragment.graphql.ts index 8e036f1f..1c54b291 100644 --- a/packages/components/__generated__/ActivityLogsFragment.graphql.ts +++ b/packages/components/__generated__/ActivityLogsFragment.graphql.ts @@ -5,253 +5,240 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ReaderFragment, RefetchableFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ReaderFragment, RefetchableFragment } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type ActivityLogsFragment$data = { - readonly activityLogs: - | { - readonly edges: ReadonlyArray< - | { - readonly node: - | { - readonly createdAt: any - readonly id: string - readonly url: string | null | undefined - readonly user: - | { - readonly avatar: - | { - readonly url: string - } - | null - | undefined - readonly email: string | null | undefined - readonly fullName: string | null | undefined - readonly id: string - } - | null - | undefined - readonly verb: string | null | undefined - } - | null - | undefined - } - | null - | undefined - > - readonly pageInfo: { - readonly endCursor: string | null | undefined - readonly hasNextPage: boolean - } - } - | null - | undefined - readonly ' $fragmentType': 'ActivityLogsFragment' -} + readonly activityLogs: { + readonly edges: ReadonlyArray<{ + readonly node: { + readonly createdAt: any; + readonly id: string; + readonly url: string | null | undefined; + readonly user: { + readonly avatar: { + readonly url: string; + } | null | undefined; + readonly email: string | null | undefined; + readonly fullName: string | null | undefined; + readonly id: string; + } | null | undefined; + readonly verb: string | null | undefined; + } | null | undefined; + } | null | undefined>; + readonly pageInfo: { + readonly endCursor: string | null | undefined; + readonly hasNextPage: boolean; + }; + } | null | undefined; + readonly " $fragmentType": "ActivityLogsFragment"; +}; export type ActivityLogsFragment$key = { - readonly ' $data'?: ActivityLogsFragment$data - readonly ' $fragmentSpreads': FragmentRefs<'ActivityLogsFragment'> -} + readonly " $data"?: ActivityLogsFragment$data; + readonly " $fragmentSpreads": FragmentRefs<"ActivityLogsFragment">; +}; -const node: ReaderFragment = (function () { - var v0 = ['activityLogs'], - v1 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, +const node: ReaderFragment = (function(){ +var v0 = [ + "activityLogs" +], +v1 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null +}; +return { + "argumentDefinitions": [ + { + "defaultValue": 10, + "kind": "LocalArgument", + "name": "count" }, - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "cursor" } - return { - argumentDefinitions: [ - { - defaultValue: 10, - kind: 'LocalArgument', - name: 'count', - }, + ], + "kind": "Fragment", + "metadata": { + "connection": [ { - defaultValue: null, - kind: 'LocalArgument', - name: 'cursor', - }, + "count": "count", + "cursor": "cursor", + "direction": "forward", + "path": (v0/*: any*/) + } ], - kind: 'Fragment', - metadata: { - connection: [ + "refetch": { + "connection": { + "forward": { + "count": "count", + "cursor": "cursor" + }, + "backward": null, + "path": (v0/*: any*/) + }, + "fragmentPathInResult": [], + "operation": require('./ActivityLogsPaginationQuery.graphql') + } + }, + "name": "ActivityLogsFragment", + "selections": [ + { + "alias": "activityLogs", + "args": null, + "concreteType": "ActivityLogConnection", + "kind": "LinkedField", + "name": "__ActivityLogs_activityLogs_connection", + "plural": false, + "selections": [ { - count: 'count', - cursor: 'cursor', - direction: 'forward', - path: v0 /*: any*/, + "alias": null, + "args": null, + "concreteType": "ActivityLogEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ActivityLog", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v1/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "createdAt", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "verb", + "storageKey": null + }, + (v2/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "user", + "plural": false, + "selections": [ + (v1/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "fullName", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "email", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 48 + }, + { + "kind": "Literal", + "name": "width", + "value": 48 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "avatar", + "plural": false, + "selections": [ + (v2/*: any*/) + ], + "storageKey": "avatar(height:48,width:48)" + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + } + ], + "storageKey": null }, + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + } + ], + "storageKey": null + } ], - refetch: { - connection: { - forward: { - count: 'count', - cursor: 'cursor', - }, - backward: null, - path: v0 /*: any*/, - }, - fragmentPathInResult: [], - operation: require('./ActivityLogsPaginationQuery.graphql'), - }, - }, - name: 'ActivityLogsFragment', - selections: [ - { - alias: 'activityLogs', - args: null, - concreteType: 'ActivityLogConnection', - kind: 'LinkedField', - name: '__ActivityLogs_activityLogs_connection', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ActivityLogEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'ActivityLog', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v1 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'createdAt', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'verb', - storageKey: null, - }, - v2 /*: any*/, - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'user', - plural: false, - selections: [ - v1 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'fullName', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'email', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 48, - }, - { - kind: 'Literal', - name: 'width', - value: 48, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'avatar', - plural: false, - selections: [v2 /*: any*/], - storageKey: 'avatar(height:48,width:48)', - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'Query', - abstractKey: null, - } -})() + "storageKey": null + } + ], + "type": "Query", + "abstractKey": null +}; +})(); -;(node as any).hash = 'ba76e757af14e0dbe50c2ee788f01632' +(node as any).hash = "ba76e757af14e0dbe50c2ee788f01632"; -export default node +export default node; diff --git a/packages/components/__generated__/ActivityLogsPaginationQuery.graphql.ts b/packages/components/__generated__/ActivityLogsPaginationQuery.graphql.ts index 34eed2fd..85574275 100644 --- a/packages/components/__generated__/ActivityLogsPaginationQuery.graphql.ts +++ b/packages/components/__generated__/ActivityLogsPaginationQuery.graphql.ts @@ -5,253 +5,254 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type ActivityLogsPaginationQuery$variables = { - count?: number | null | undefined - cursor?: string | null | undefined -} + count?: number | null | undefined; + cursor?: string | null | undefined; +}; export type ActivityLogsPaginationQuery$data = { - readonly ' $fragmentSpreads': FragmentRefs<'ActivityLogsFragment'> -} + readonly " $fragmentSpreads": FragmentRefs<"ActivityLogsFragment">; +}; export type ActivityLogsPaginationQuery = { - response: ActivityLogsPaginationQuery$data - variables: ActivityLogsPaginationQuery$variables -} + response: ActivityLogsPaginationQuery$data; + variables: ActivityLogsPaginationQuery$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ - { - defaultValue: 10, - kind: 'LocalArgument', - name: 'count', - }, +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "defaultValue": 10, + "kind": "LocalArgument", + "name": "count" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "cursor" + } +], +v1 = [ + { + "kind": "Variable", + "name": "after", + "variableName": "cursor" + }, + { + "kind": "Variable", + "name": "first", + "variableName": "count" + } +], +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null +}; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "ActivityLogsPaginationQuery", + "selections": [ { - defaultValue: null, - kind: 'LocalArgument', - name: 'cursor', - }, + "args": [ + { + "kind": "Variable", + "name": "count", + "variableName": "count" + }, + { + "kind": "Variable", + "name": "cursor", + "variableName": "cursor" + } + ], + "kind": "FragmentSpread", + "name": "ActivityLogsFragment" + } ], - v1 = [ + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "ActivityLogsPaginationQuery", + "selections": [ { - kind: 'Variable', - name: 'after', - variableName: 'cursor', + "alias": null, + "args": (v1/*: any*/), + "concreteType": "ActivityLogConnection", + "kind": "LinkedField", + "name": "activityLogs", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ActivityLogEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ActivityLog", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "createdAt", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "verb", + "storageKey": null + }, + (v3/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "user", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "fullName", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "email", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 48 + }, + { + "kind": "Literal", + "name": "width", + "value": 48 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "avatar", + "plural": false, + "selections": [ + (v3/*: any*/) + ], + "storageKey": "avatar(height:48,width:48)" + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null }, { - kind: 'Variable', - name: 'first', - variableName: 'count', - }, - ], - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v3 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - } - return { - fragment: { - argumentDefinitions: v0 /*: any*/, - kind: 'Fragment', - metadata: null, - name: 'ActivityLogsPaginationQuery', - selections: [ - { - args: [ - { - kind: 'Variable', - name: 'count', - variableName: 'count', - }, - { - kind: 'Variable', - name: 'cursor', - variableName: 'cursor', - }, - ], - kind: 'FragmentSpread', - name: 'ActivityLogsFragment', - }, - ], - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: v0 /*: any*/, - kind: 'Operation', - name: 'ActivityLogsPaginationQuery', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'ActivityLogConnection', - kind: 'LinkedField', - name: 'activityLogs', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ActivityLogEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'ActivityLog', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'createdAt', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'verb', - storageKey: null, - }, - v3 /*: any*/, - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'user', - plural: false, - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'fullName', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'email', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 48, - }, - { - kind: 'Literal', - name: 'width', - value: 48, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'avatar', - plural: false, - selections: [v3 /*: any*/], - storageKey: 'avatar(height:48,width:48)', - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: v1 /*: any*/, - filters: null, - handle: 'connection', - key: 'ActivityLogs_activityLogs', - kind: 'LinkedHandle', - name: 'activityLogs', - }, - ], - }, - params: { - cacheID: '79c66245f518478d20204207fd2aa732', - id: null, - metadata: {}, - name: 'ActivityLogsPaginationQuery', - operationKind: 'query', - text: 'query ActivityLogsPaginationQuery(\n $count: Int = 10\n $cursor: String\n) {\n ...ActivityLogsFragment_1G22uz\n}\n\nfragment ActivityLogsFragment_1G22uz on Query {\n activityLogs(first: $count, after: $cursor) {\n edges {\n node {\n id\n createdAt\n verb\n url\n user {\n id\n fullName\n email\n avatar(width: 48, height: 48) {\n url\n }\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n', - }, + "alias": null, + "args": (v1/*: any*/), + "filters": null, + "handle": "connection", + "key": "ActivityLogs_activityLogs", + "kind": "LinkedHandle", + "name": "activityLogs" + } + ] + }, + "params": { + "cacheID": "79c66245f518478d20204207fd2aa732", + "id": null, + "metadata": {}, + "name": "ActivityLogsPaginationQuery", + "operationKind": "query", + "text": "query ActivityLogsPaginationQuery(\n $count: Int = 10\n $cursor: String\n) {\n ...ActivityLogsFragment_1G22uz\n}\n\nfragment ActivityLogsFragment_1G22uz on Query {\n activityLogs(first: $count, after: $cursor) {\n edges {\n node {\n id\n createdAt\n verb\n url\n user {\n id\n fullName\n email\n avatar(width: 48, height: 48) {\n url\n }\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = 'ba76e757af14e0dbe50c2ee788f01632' +(node as any).hash = "ba76e757af14e0dbe50c2ee788f01632"; -export default node +export default node; diff --git a/packages/components/__generated__/ActivityLogsQuery.graphql.ts b/packages/components/__generated__/ActivityLogsQuery.graphql.ts index da5e5402..b295b3c7 100644 --- a/packages/components/__generated__/ActivityLogsQuery.graphql.ts +++ b/packages/components/__generated__/ActivityLogsQuery.graphql.ts @@ -5,251 +5,258 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type ActivityLogsQuery$variables = { - after?: string | null | undefined - first?: number | null | undefined -} + after?: string | null | undefined; + first?: number | null | undefined; +}; export type ActivityLogsQuery$data = { - readonly ' $fragmentSpreads': FragmentRefs<'ActivityLogsFragment'> -} + readonly " $fragmentSpreads": FragmentRefs<"ActivityLogsFragment">; +}; export type ActivityLogsQuery = { - response: ActivityLogsQuery$data - variables: ActivityLogsQuery$variables -} + response: ActivityLogsQuery$data; + variables: ActivityLogsQuery$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'after', - }, - v1 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'first', - }, - v2 = [ +const node: ConcreteRequest = (function(){ +var v0 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "after" +}, +v1 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "first" +}, +v2 = [ + { + "kind": "Variable", + "name": "after", + "variableName": "after" + }, + { + "kind": "Variable", + "name": "first", + "variableName": "first" + } +], +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v4 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null +}; +return { + "fragment": { + "argumentDefinitions": [ + (v0/*: any*/), + (v1/*: any*/) + ], + "kind": "Fragment", + "metadata": null, + "name": "ActivityLogsQuery", + "selections": [ { - kind: 'Variable', - name: 'after', - variableName: 'after', - }, + "args": [ + { + "kind": "Variable", + "name": "count", + "variableName": "first" + }, + { + "kind": "Variable", + "name": "cursor", + "variableName": "after" + } + ], + "kind": "FragmentSpread", + "name": "ActivityLogsFragment" + } + ], + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": [ + (v1/*: any*/), + (v0/*: any*/) + ], + "kind": "Operation", + "name": "ActivityLogsQuery", + "selections": [ { - kind: 'Variable', - name: 'first', - variableName: 'first', + "alias": null, + "args": (v2/*: any*/), + "concreteType": "ActivityLogConnection", + "kind": "LinkedField", + "name": "activityLogs", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ActivityLogEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ActivityLog", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "createdAt", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "verb", + "storageKey": null + }, + (v4/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "user", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "fullName", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "email", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 48 + }, + { + "kind": "Literal", + "name": "width", + "value": 48 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "avatar", + "plural": false, + "selections": [ + (v4/*: any*/) + ], + "storageKey": "avatar(height:48,width:48)" + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null }, - ], - v3 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v4 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - } - return { - fragment: { - argumentDefinitions: [v0 /*: any*/, v1 /*: any*/], - kind: 'Fragment', - metadata: null, - name: 'ActivityLogsQuery', - selections: [ - { - args: [ - { - kind: 'Variable', - name: 'count', - variableName: 'first', - }, - { - kind: 'Variable', - name: 'cursor', - variableName: 'after', - }, - ], - kind: 'FragmentSpread', - name: 'ActivityLogsFragment', - }, - ], - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: [v1 /*: any*/, v0 /*: any*/], - kind: 'Operation', - name: 'ActivityLogsQuery', - selections: [ - { - alias: null, - args: v2 /*: any*/, - concreteType: 'ActivityLogConnection', - kind: 'LinkedField', - name: 'activityLogs', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ActivityLogEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'ActivityLog', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v3 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'createdAt', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'verb', - storageKey: null, - }, - v4 /*: any*/, - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'user', - plural: false, - selections: [ - v3 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'fullName', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'email', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 48, - }, - { - kind: 'Literal', - name: 'width', - value: 48, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'avatar', - plural: false, - selections: [v4 /*: any*/], - storageKey: 'avatar(height:48,width:48)', - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: v2 /*: any*/, - filters: null, - handle: 'connection', - key: 'ActivityLogs_activityLogs', - kind: 'LinkedHandle', - name: 'activityLogs', - }, - ], - }, - params: { - cacheID: '23080349fdcee969cb4dfd8eb05d574d', - id: null, - metadata: {}, - name: 'ActivityLogsQuery', - operationKind: 'query', - text: 'query ActivityLogsQuery(\n $first: Int\n $after: String\n) {\n ...ActivityLogsFragment_3JmDlL\n}\n\nfragment ActivityLogsFragment_3JmDlL on Query {\n activityLogs(first: $first, after: $after) {\n edges {\n node {\n id\n createdAt\n verb\n url\n user {\n id\n fullName\n email\n avatar(width: 48, height: 48) {\n url\n }\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n', - }, + { + "alias": null, + "args": (v2/*: any*/), + "filters": null, + "handle": "connection", + "key": "ActivityLogs_activityLogs", + "kind": "LinkedHandle", + "name": "activityLogs" + } + ] + }, + "params": { + "cacheID": "23080349fdcee969cb4dfd8eb05d574d", + "id": null, + "metadata": {}, + "name": "ActivityLogsQuery", + "operationKind": "query", + "text": "query ActivityLogsQuery(\n $first: Int\n $after: String\n) {\n ...ActivityLogsFragment_3JmDlL\n}\n\nfragment ActivityLogsFragment_3JmDlL on Query {\n activityLogs(first: $first, after: $after) {\n edges {\n node {\n id\n createdAt\n verb\n url\n user {\n id\n fullName\n email\n avatar(width: 48, height: 48) {\n url\n }\n }\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = 'daa3b9b572d3c7596c5dc4d6185f9be9' +(node as any).hash = "daa3b9b572d3c7596c5dc4d6185f9be9"; -export default node +export default node; diff --git a/packages/components/__generated__/AddProfilePopoverUserQuery.graphql.ts b/packages/components/__generated__/AddProfilePopoverUserQuery.graphql.ts index 3cfcfe6f..95ab09b0 100644 --- a/packages/components/__generated__/AddProfilePopoverUserQuery.graphql.ts +++ b/packages/components/__generated__/AddProfilePopoverUserQuery.graphql.ts @@ -5,88 +5,84 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -export type AddProfilePopoverUserQuery$variables = Record +import { ConcreteRequest, Query } from 'relay-runtime'; +export type AddProfilePopoverUserQuery$variables = Record; export type AddProfilePopoverUserQuery$data = { - readonly me: - | { - readonly canAdd: boolean | null | undefined - readonly id: string - } - | null - | undefined -} + readonly me: { + readonly canAdd: boolean | null | undefined; + readonly id: string; + } | null | undefined; +}; export type AddProfilePopoverUserQuery = { - response: AddProfilePopoverUserQuery$data - variables: AddProfilePopoverUserQuery$variables -} + response: AddProfilePopoverUserQuery$data; + variables: AddProfilePopoverUserQuery$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'me', - plural: false, - selections: [ - { - alias: 'canAdd', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'organizations.add_organization', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"organizations.add_organization")', - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - ], - storageKey: null, - }, - ] - return { - fragment: { - argumentDefinitions: [], - kind: 'Fragment', - metadata: null, - name: 'AddProfilePopoverUserQuery', - selections: v0 /*: any*/, - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: [], - kind: 'Operation', - name: 'AddProfilePopoverUserQuery', - selections: v0 /*: any*/, - }, - params: { - cacheID: '87aa4dfa44991de604d1fec2587ed858', - id: null, - metadata: {}, - name: 'AddProfilePopoverUserQuery', - operationKind: 'query', - text: 'query AddProfilePopoverUserQuery {\n me {\n canAdd: hasPerm(perm: "organizations.add_organization")\n id\n }\n}\n', - }, +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "me", + "plural": false, + "selections": [ + { + "alias": "canAdd", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "organizations.add_organization" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"organizations.add_organization\")" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null + } + ], + "storageKey": null + } +]; +return { + "fragment": { + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "AddProfilePopoverUserQuery", + "selections": (v0/*: any*/), + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": [], + "kind": "Operation", + "name": "AddProfilePopoverUserQuery", + "selections": (v0/*: any*/) + }, + "params": { + "cacheID": "87aa4dfa44991de604d1fec2587ed858", + "id": null, + "metadata": {}, + "name": "AddProfilePopoverUserQuery", + "operationKind": "query", + "text": "query AddProfilePopoverUserQuery {\n me {\n canAdd: hasPerm(perm: \"organizations.add_organization\")\n id\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = '26d662ddabbbf711436626f9ec735331' +(node as any).hash = "26d662ddabbbf711436626f9ec735331"; -export default node +export default node; diff --git a/packages/components/__generated__/AllProfilesListFragment.graphql.ts b/packages/components/__generated__/AllProfilesListFragment.graphql.ts index d0b579a5..2798f0f1 100644 --- a/packages/components/__generated__/AllProfilesListFragment.graphql.ts +++ b/packages/components/__generated__/AllProfilesListFragment.graphql.ts @@ -5,200 +5,191 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ReaderFragment, RefetchableFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ReaderFragment, RefetchableFragment } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type AllProfilesListFragment$data = { - readonly allProfiles: - | { - readonly edges: ReadonlyArray< - | { - readonly node: - | { - readonly id: string - readonly ' $fragmentSpreads': FragmentRefs<'ProfileItemFragment'> - } - | null - | undefined - } - | null - | undefined - > - readonly pageInfo: { - readonly hasNextPage: boolean - } - readonly totalCount: number | null | undefined - } - | null - | undefined - readonly ' $fragmentType': 'AllProfilesListFragment' -} + readonly allProfiles: { + readonly edges: ReadonlyArray<{ + readonly node: { + readonly id: string; + readonly " $fragmentSpreads": FragmentRefs<"ProfileItemFragment">; + } | null | undefined; + } | null | undefined>; + readonly pageInfo: { + readonly hasNextPage: boolean; + }; + readonly totalCount: number | null | undefined; + } | null | undefined; + readonly " $fragmentType": "AllProfilesListFragment"; +}; export type AllProfilesListFragment$key = { - readonly ' $data'?: AllProfilesListFragment$data - readonly ' $fragmentSpreads': FragmentRefs<'AllProfilesListFragment'> -} + readonly " $data"?: AllProfilesListFragment$data; + readonly " $fragmentSpreads": FragmentRefs<"AllProfilesListFragment">; +}; -const node: ReaderFragment = (function () { - var v0 = ['allProfiles'] - return { - argumentDefinitions: [ - { - defaultValue: 5, - kind: 'LocalArgument', - name: 'count', - }, - { - defaultValue: null, - kind: 'LocalArgument', - name: 'cursor', - }, - { - defaultValue: '-created', - kind: 'LocalArgument', - name: 'orderBy', - }, +const node: ReaderFragment = (function(){ +var v0 = [ + "allProfiles" +]; +return { + "argumentDefinitions": [ + { + "defaultValue": 5, + "kind": "LocalArgument", + "name": "count" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "cursor" + }, + { + "defaultValue": "-created", + "kind": "LocalArgument", + "name": "orderBy" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "q" + } + ], + "kind": "Fragment", + "metadata": { + "connection": [ { - defaultValue: null, - kind: 'LocalArgument', - name: 'q', - }, + "count": "count", + "cursor": "cursor", + "direction": "forward", + "path": (v0/*: any*/) + } ], - kind: 'Fragment', - metadata: { - connection: [ + "refetch": { + "connection": { + "forward": { + "count": "count", + "cursor": "cursor" + }, + "backward": null, + "path": (v0/*: any*/) + }, + "fragmentPathInResult": [], + "operation": require('./AllProfilesListPaginationQuery.graphql') + } + }, + "name": "AllProfilesListFragment", + "selections": [ + { + "alias": "allProfiles", + "args": [ { - count: 'count', - cursor: 'cursor', - direction: 'forward', - path: v0 /*: any*/, + "kind": "Variable", + "name": "orderBy", + "variableName": "orderBy" }, + { + "kind": "Variable", + "name": "q", + "variableName": "q" + } ], - refetch: { - connection: { - forward: { - count: 'count', - cursor: 'cursor', - }, - backward: null, - path: v0 /*: any*/, + "concreteType": "ProfileConnection", + "kind": "LinkedField", + "name": "__AllProfilesListFragment_allProfiles_connection", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "totalCount", + "storageKey": null }, - fragmentPathInResult: [], - operation: require('./AllProfilesListPaginationQuery.graphql'), - }, - }, - name: 'AllProfilesListFragment', - selections: [ - { - alias: 'allProfiles', - args: [ - { - kind: 'Variable', - name: 'orderBy', - variableName: 'orderBy', - }, - { - kind: 'Variable', - name: 'q', - variableName: 'q', - }, - ], - concreteType: 'ProfileConnection', - kind: 'LinkedField', - name: '__AllProfilesListFragment_allProfiles_connection', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'totalCount', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'ProfileEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - { - args: null, - kind: 'FragmentSpread', - name: 'ProfileItemFragment', - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'Query', - abstractKey: null, - } -})() + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "ProfileEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null + }, + { + "args": null, + "kind": "FragmentSpread", + "name": "ProfileItemFragment" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "type": "Query", + "abstractKey": null +}; +})(); -;(node as any).hash = '145d7609bc0dcee3b0940096fa289337' +(node as any).hash = "145d7609bc0dcee3b0940096fa289337"; -export default node +export default node; diff --git a/packages/components/__generated__/AllProfilesListPaginationQuery.graphql.ts b/packages/components/__generated__/AllProfilesListPaginationQuery.graphql.ts index 8da15e9e..3c7fce79 100644 --- a/packages/components/__generated__/AllProfilesListPaginationQuery.graphql.ts +++ b/packages/components/__generated__/AllProfilesListPaginationQuery.graphql.ts @@ -5,272 +5,274 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type AllProfilesListPaginationQuery$variables = { - count?: number | null | undefined - cursor?: string | null | undefined - orderBy?: string | null | undefined - q?: string | null | undefined -} + count?: number | null | undefined; + cursor?: string | null | undefined; + orderBy?: string | null | undefined; + q?: string | null | undefined; +}; export type AllProfilesListPaginationQuery$data = { - readonly ' $fragmentSpreads': FragmentRefs<'AllProfilesListFragment'> -} + readonly " $fragmentSpreads": FragmentRefs<"AllProfilesListFragment">; +}; export type AllProfilesListPaginationQuery = { - response: AllProfilesListPaginationQuery$data - variables: AllProfilesListPaginationQuery$variables -} + response: AllProfilesListPaginationQuery$data; + variables: AllProfilesListPaginationQuery$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ - { - defaultValue: 5, - kind: 'LocalArgument', - name: 'count', - }, - { - defaultValue: null, - kind: 'LocalArgument', - name: 'cursor', - }, - { - defaultValue: '-created', - kind: 'LocalArgument', - name: 'orderBy', - }, +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "defaultValue": 5, + "kind": "LocalArgument", + "name": "count" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "cursor" + }, + { + "defaultValue": "-created", + "kind": "LocalArgument", + "name": "orderBy" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "q" + } +], +v1 = { + "kind": "Variable", + "name": "orderBy", + "variableName": "orderBy" +}, +v2 = { + "kind": "Variable", + "name": "q", + "variableName": "q" +}, +v3 = [ + { + "kind": "Variable", + "name": "after", + "variableName": "cursor" + }, + { + "kind": "Variable", + "name": "first", + "variableName": "count" + }, + (v1/*: any*/), + (v2/*: any*/) +], +v4 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "AllProfilesListPaginationQuery", + "selections": [ { - defaultValue: null, - kind: 'LocalArgument', - name: 'q', - }, + "args": [ + { + "kind": "Variable", + "name": "count", + "variableName": "count" + }, + { + "kind": "Variable", + "name": "cursor", + "variableName": "cursor" + }, + (v1/*: any*/), + (v2/*: any*/) + ], + "kind": "FragmentSpread", + "name": "AllProfilesListFragment" + } ], - v1 = { - kind: 'Variable', - name: 'orderBy', - variableName: 'orderBy', - }, - v2 = { - kind: 'Variable', - name: 'q', - variableName: 'q', - }, - v3 = [ + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "AllProfilesListPaginationQuery", + "selections": [ { - kind: 'Variable', - name: 'after', - variableName: 'cursor', + "alias": null, + "args": (v3/*: any*/), + "concreteType": "ProfileConnection", + "kind": "LinkedField", + "name": "allProfiles", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "totalCount", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "ProfileEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v4/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "name", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100 + }, + { + "kind": "Literal", + "name": "width", + "value": 100 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "image(height:100,width:100)" + }, + { + "alias": null, + "args": null, + "concreteType": "URLPath", + "kind": "LinkedField", + "name": "urlPath", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "path", + "storageKey": null + }, + (v4/*: any*/) + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null }, { - kind: 'Variable', - name: 'first', - variableName: 'count', - }, - v1 /*: any*/, - v2 /*: any*/, - ], - v4 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - } - return { - fragment: { - argumentDefinitions: v0 /*: any*/, - kind: 'Fragment', - metadata: null, - name: 'AllProfilesListPaginationQuery', - selections: [ - { - args: [ - { - kind: 'Variable', - name: 'count', - variableName: 'count', - }, - { - kind: 'Variable', - name: 'cursor', - variableName: 'cursor', - }, - v1 /*: any*/, - v2 /*: any*/, - ], - kind: 'FragmentSpread', - name: 'AllProfilesListFragment', - }, - ], - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: v0 /*: any*/, - kind: 'Operation', - name: 'AllProfilesListPaginationQuery', - selections: [ - { - alias: null, - args: v3 /*: any*/, - concreteType: 'ProfileConnection', - kind: 'LinkedField', - name: 'allProfiles', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'totalCount', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'ProfileEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v4 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'name', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 100, - }, - { - kind: 'Literal', - name: 'width', - value: 100, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'image(height:100,width:100)', - }, - { - alias: null, - args: null, - concreteType: 'URLPath', - kind: 'LinkedField', - name: 'urlPath', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'path', - storageKey: null, - }, - v4 /*: any*/, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: v3 /*: any*/, - filters: ['orderBy', 'q'], - handle: 'connection', - key: 'AllProfilesListFragment_allProfiles', - kind: 'LinkedHandle', - name: 'allProfiles', - }, - ], - }, - params: { - cacheID: '14ee435dd3957e0c7247d383714e53f4', - id: null, - metadata: {}, - name: 'AllProfilesListPaginationQuery', - operationKind: 'query', - text: 'query AllProfilesListPaginationQuery(\n $count: Int = 5\n $cursor: String\n $orderBy: String = "-created"\n $q: String = null\n) {\n ...AllProfilesListFragment_40Ewnb\n}\n\nfragment AllProfilesListFragment_40Ewnb on Query {\n allProfiles(after: $cursor, first: $count, orderBy: $orderBy, q: $q) {\n totalCount\n pageInfo {\n hasNextPage\n endCursor\n }\n edges {\n node {\n id\n ...ProfileItemFragment\n __typename\n }\n cursor\n }\n }\n}\n\nfragment ProfileItemFragment on Profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n urlPath {\n path\n id\n }\n}\n', - }, + "alias": null, + "args": (v3/*: any*/), + "filters": [ + "orderBy", + "q" + ], + "handle": "connection", + "key": "AllProfilesListFragment_allProfiles", + "kind": "LinkedHandle", + "name": "allProfiles" + } + ] + }, + "params": { + "cacheID": "14ee435dd3957e0c7247d383714e53f4", + "id": null, + "metadata": {}, + "name": "AllProfilesListPaginationQuery", + "operationKind": "query", + "text": "query AllProfilesListPaginationQuery(\n $count: Int = 5\n $cursor: String\n $orderBy: String = \"-created\"\n $q: String = null\n) {\n ...AllProfilesListFragment_40Ewnb\n}\n\nfragment AllProfilesListFragment_40Ewnb on Query {\n allProfiles(after: $cursor, first: $count, orderBy: $orderBy, q: $q) {\n totalCount\n pageInfo {\n hasNextPage\n endCursor\n }\n edges {\n node {\n id\n ...ProfileItemFragment\n __typename\n }\n cursor\n }\n }\n}\n\nfragment ProfileItemFragment on Profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n urlPath {\n path\n id\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = '145d7609bc0dcee3b0940096fa289337' +(node as any).hash = "145d7609bc0dcee3b0940096fa289337"; -export default node +export default node; diff --git a/packages/components/__generated__/ArchiveChatRoomMutation.graphql.ts b/packages/components/__generated__/ArchiveChatRoomMutation.graphql.ts index 239315cd..07a00688 100644 --- a/packages/components/__generated__/ArchiveChatRoomMutation.graphql.ts +++ b/packages/components/__generated__/ArchiveChatRoomMutation.graphql.ts @@ -5,147 +5,133 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Mutation } from 'relay-runtime' +import { ConcreteRequest, Mutation } from 'relay-runtime'; export type ChatRoomArchiveInput = { - archive: boolean - clientMutationId?: string | null | undefined - profileId: string - roomId: string -} + archive: boolean; + clientMutationId?: string | null | undefined; + profileId: string; + roomId: string; +}; export type ArchiveChatRoomMutation$variables = { - input: ChatRoomArchiveInput -} + input: ChatRoomArchiveInput; +}; export type ArchiveChatRoomMutation$data = { - readonly chatRoomArchive: - | { - readonly errors: - | ReadonlyArray< - | { - readonly field: string - readonly messages: ReadonlyArray - } - | null - | undefined - > - | null - | undefined - readonly room: - | { - readonly id: string - } - | null - | undefined - } - | null - | undefined -} + readonly chatRoomArchive: { + readonly errors: ReadonlyArray<{ + readonly field: string; + readonly messages: ReadonlyArray; + } | null | undefined> | null | undefined; + readonly room: { + readonly id: string; + } | null | undefined; + } | null | undefined; +}; export type ArchiveChatRoomMutation = { - response: ArchiveChatRoomMutation$data - variables: ArchiveChatRoomMutation$variables -} + response: ArchiveChatRoomMutation$data; + variables: ArchiveChatRoomMutation$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "input" + } +], +v1 = [ + { + "alias": null, + "args": [ { - defaultValue: null, - kind: 'LocalArgument', - name: 'input', - }, + "kind": "Variable", + "name": "input", + "variableName": "input" + } ], - v1 = [ + "concreteType": "ChatRoomArchivePayload", + "kind": "LinkedField", + "name": "chatRoomArchive", + "plural": false, + "selections": [ { - alias: null, - args: [ + "alias": null, + "args": null, + "concreteType": "ChatRoom", + "kind": "LinkedField", + "name": "room", + "plural": false, + "selections": [ { - kind: 'Variable', - name: 'input', - variableName: 'input', - }, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null + } ], - concreteType: 'ChatRoomArchivePayload', - kind: 'LinkedField', - name: 'chatRoomArchive', - plural: false, - selections: [ + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "ErrorType", + "kind": "LinkedField", + "name": "errors", + "plural": true, + "selections": [ { - alias: null, - args: null, - concreteType: 'ChatRoom', - kind: 'LinkedField', - name: 'room', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - ], - storageKey: null, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "field", + "storageKey": null }, { - alias: null, - args: null, - concreteType: 'ErrorType', - kind: 'LinkedField', - name: 'errors', - plural: true, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'field', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'messages', - storageKey: null, - }, - ], - storageKey: null, - }, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "messages", + "storageKey": null + } ], - storageKey: null, - }, - ] - return { - fragment: { - argumentDefinitions: v0 /*: any*/, - kind: 'Fragment', - metadata: null, - name: 'ArchiveChatRoomMutation', - selections: v1 /*: any*/, - type: 'Mutation', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: v0 /*: any*/, - kind: 'Operation', - name: 'ArchiveChatRoomMutation', - selections: v1 /*: any*/, - }, - params: { - cacheID: 'bb8d4b659a98b51a62538601cd17a068', - id: null, - metadata: {}, - name: 'ArchiveChatRoomMutation', - operationKind: 'mutation', - text: 'mutation ArchiveChatRoomMutation(\n $input: ChatRoomArchiveInput!\n) {\n chatRoomArchive(input: $input) {\n room {\n id\n }\n errors {\n field\n messages\n }\n }\n}\n', - }, + "storageKey": null + } + ], + "storageKey": null + } +]; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "ArchiveChatRoomMutation", + "selections": (v1/*: any*/), + "type": "Mutation", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "ArchiveChatRoomMutation", + "selections": (v1/*: any*/) + }, + "params": { + "cacheID": "bb8d4b659a98b51a62538601cd17a068", + "id": null, + "metadata": {}, + "name": "ArchiveChatRoomMutation", + "operationKind": "mutation", + "text": "mutation ArchiveChatRoomMutation(\n $input: ChatRoomArchiveInput!\n) {\n chatRoomArchive(input: $input) {\n room {\n id\n }\n errors {\n field\n messages\n }\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = 'c78639eb713e79457e32bc4388498618' +(node as any).hash = "c78639eb713e79457e32bc4388498618"; -export default node +export default node; diff --git a/packages/components/__generated__/BlockToggleFragment.graphql.ts b/packages/components/__generated__/BlockToggleFragment.graphql.ts index 6933ec0e..4f8aa2ce 100644 --- a/packages/components/__generated__/BlockToggleFragment.graphql.ts +++ b/packages/components/__generated__/BlockToggleFragment.graphql.ts @@ -5,62 +5,61 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { Fragment, ReaderFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { Fragment, ReaderFragment } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type BlockToggleFragment$data = { - readonly id: string - readonly isBlockedByMe: boolean | null | undefined - readonly name?: string | null | undefined - readonly ' $fragmentType': 'BlockToggleFragment' -} + readonly id: string; + readonly isBlockedByMe: boolean | null | undefined; + readonly name?: string | null | undefined; + readonly " $fragmentType": "BlockToggleFragment"; +}; export type BlockToggleFragment$key = { - readonly ' $data'?: BlockToggleFragment$data - readonly ' $fragmentSpreads': FragmentRefs<'BlockToggleFragment'> -} + readonly " $data"?: BlockToggleFragment$data; + readonly " $fragmentSpreads": FragmentRefs<"BlockToggleFragment">; +}; const node: ReaderFragment = { - argumentDefinitions: [], - kind: 'Fragment', - metadata: null, - name: 'BlockToggleFragment', - selections: [ + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "BlockToggleFragment", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null }, { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isBlockedByMe', - storageKey: null, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isBlockedByMe", + "storageKey": null }, { - kind: 'InlineFragment', - selections: [ + "kind": "InlineFragment", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'name', - storageKey: null, - }, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "name", + "storageKey": null + } ], - type: 'Profile', - abstractKey: null, - }, + "type": "Profile", + "abstractKey": null + } ], - type: 'BlocksInterface', - abstractKey: '__isBlocksInterface', -} + "type": "BlocksInterface", + "abstractKey": "__isBlocksInterface" +}; -;(node as any).hash = 'e03ed2e064ae6dbdca724087c1dfdd16' +(node as any).hash = "e03ed2e064ae6dbdca724087c1dfdd16"; -export default node +export default node; diff --git a/packages/components/__generated__/BlockToggleMutation.graphql.ts b/packages/components/__generated__/BlockToggleMutation.graphql.ts index 701e71a7..392ec249 100644 --- a/packages/components/__generated__/BlockToggleMutation.graphql.ts +++ b/packages/components/__generated__/BlockToggleMutation.graphql.ts @@ -5,230 +5,219 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Mutation } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Mutation } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type BlockToggleInput = { - actorObjectId: string - clientMutationId?: string | null | undefined - targetObjectId: string -} + actorObjectId: string; + clientMutationId?: string | null | undefined; + targetObjectId: string; +}; export type BlockToggleMutation$variables = { - input: BlockToggleInput -} + input: BlockToggleInput; +}; export type BlockToggleMutation$data = { - readonly blockToggle: - | { - readonly block: - | { - readonly node: - | { - readonly id: string - } - | null - | undefined - } - | null - | undefined - readonly blockDeletedId: string | null | undefined - readonly target: - | { - readonly id: string - readonly isBlockedByMe: boolean | null | undefined - readonly ' $fragmentSpreads': FragmentRefs<'BlockToggleFragment'> - } - | null - | undefined - } - | null - | undefined -} + readonly blockToggle: { + readonly block: { + readonly node: { + readonly id: string; + } | null | undefined; + } | null | undefined; + readonly blockDeletedId: string | null | undefined; + readonly target: { + readonly id: string; + readonly isBlockedByMe: boolean | null | undefined; + readonly " $fragmentSpreads": FragmentRefs<"BlockToggleFragment">; + } | null | undefined; + } | null | undefined; +}; export type BlockToggleMutation = { - response: BlockToggleMutation$data - variables: BlockToggleMutation$variables -} + response: BlockToggleMutation$data; + variables: BlockToggleMutation$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "input" + } +], +v1 = [ + { + "kind": "Variable", + "name": "input", + "variableName": "input" + } +], +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v3 = { + "alias": null, + "args": null, + "concreteType": "BlockEdge", + "kind": "LinkedField", + "name": "block", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Block", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v2/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null +}, +v4 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "blockDeletedId", + "storageKey": null +}, +v5 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isBlockedByMe", + "storageKey": null +}; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "BlockToggleMutation", + "selections": [ { - defaultValue: null, - kind: 'LocalArgument', - name: 'input', - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": "BlockTogglePayload", + "kind": "LinkedField", + "name": "blockToggle", + "plural": false, + "selections": [ + (v3/*: any*/), + (v4/*: any*/), + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "target", + "plural": false, + "selections": [ + (v2/*: any*/), + (v5/*: any*/), + { + "args": null, + "kind": "FragmentSpread", + "name": "BlockToggleFragment" + } + ], + "storageKey": null + } + ], + "storageKey": null + } ], - v1 = [ + "type": "Mutation", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "BlockToggleMutation", + "selections": [ { - kind: 'Variable', - name: 'input', - variableName: 'input', - }, - ], - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v3 = { - alias: null, - args: null, - concreteType: 'BlockEdge', - kind: 'LinkedField', - name: 'block', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Block', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [v2 /*: any*/], - storageKey: null, - }, - ], - storageKey: null, - }, - v4 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'blockDeletedId', - storageKey: null, - }, - v5 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isBlockedByMe', - storageKey: null, - } - return { - fragment: { - argumentDefinitions: v0 /*: any*/, - kind: 'Fragment', - metadata: null, - name: 'BlockToggleMutation', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'BlockTogglePayload', - kind: 'LinkedField', - name: 'blockToggle', - plural: false, - selections: [ - v3 /*: any*/, - v4 /*: any*/, - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'target', - plural: false, - selections: [ - v2 /*: any*/, - v5 /*: any*/, - { - args: null, - kind: 'FragmentSpread', - name: 'BlockToggleFragment', - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'Mutation', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: v0 /*: any*/, - kind: 'Operation', - name: 'BlockToggleMutation', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'BlockTogglePayload', - kind: 'LinkedField', - name: 'blockToggle', - plural: false, - selections: [ - v3 /*: any*/, - v4 /*: any*/, - { - alias: null, - args: null, - filters: null, - handle: 'deleteRecord', - key: '', - kind: 'ScalarHandle', - name: 'blockDeletedId', - }, - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'target', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v2 /*: any*/, - v5 /*: any*/, - { - kind: 'TypeDiscriminator', - abstractKey: '__isBlocksInterface', - }, - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'name', - storageKey: null, - }, - ], - type: 'Profile', - abstractKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: 'ffed8bf057da30f64200e9f801d9186c', - id: null, - metadata: {}, - name: 'BlockToggleMutation', - operationKind: 'mutation', - text: 'mutation BlockToggleMutation(\n $input: BlockToggleInput!\n) {\n blockToggle(input: $input) {\n block {\n node {\n id\n }\n }\n blockDeletedId\n target {\n __typename\n id\n isBlockedByMe\n ...BlockToggleFragment\n }\n }\n}\n\nfragment BlockToggleFragment on BlocksInterface {\n __isBlocksInterface: __typename\n id\n isBlockedByMe\n ... on Profile {\n id\n name\n }\n}\n', - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": "BlockTogglePayload", + "kind": "LinkedField", + "name": "blockToggle", + "plural": false, + "selections": [ + (v3/*: any*/), + (v4/*: any*/), + { + "alias": null, + "args": null, + "filters": null, + "handle": "deleteRecord", + "key": "", + "kind": "ScalarHandle", + "name": "blockDeletedId" + }, + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "target", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + }, + (v2/*: any*/), + (v5/*: any*/), + { + "kind": "TypeDiscriminator", + "abstractKey": "__isBlocksInterface" + }, + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "name", + "storageKey": null + } + ], + "type": "Profile", + "abstractKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ] + }, + "params": { + "cacheID": "ffed8bf057da30f64200e9f801d9186c", + "id": null, + "metadata": {}, + "name": "BlockToggleMutation", + "operationKind": "mutation", + "text": "mutation BlockToggleMutation(\n $input: BlockToggleInput!\n) {\n blockToggle(input: $input) {\n block {\n node {\n id\n }\n }\n blockDeletedId\n target {\n __typename\n id\n isBlockedByMe\n ...BlockToggleFragment\n }\n }\n}\n\nfragment BlockToggleFragment on BlocksInterface {\n __isBlocksInterface: __typename\n id\n isBlockedByMe\n ... on Profile {\n id\n name\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = '065f29d79d6f508cd4db5788802958e5' +(node as any).hash = "065f29d79d6f508cd4db5788802958e5"; -export default node +export default node; diff --git a/packages/components/__generated__/ChangeUserRoleMutation.graphql.ts b/packages/components/__generated__/ChangeUserRoleMutation.graphql.ts index 76003eb7..08379c5a 100644 --- a/packages/components/__generated__/ChangeUserRoleMutation.graphql.ts +++ b/packages/components/__generated__/ChangeUserRoleMutation.graphql.ts @@ -5,156 +5,142 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Mutation } from 'relay-runtime' -export type ProfileRoles = 'ADMIN' | 'MANAGER' | '%future added value' +import { ConcreteRequest, Mutation } from 'relay-runtime'; +export type ProfileRoles = "ADMIN" | "MANAGER" | "%future added value"; export type RoleUpdateInput = { - clientMutationId?: string | null | undefined - profileId: string - roleType?: ProfileRoles | null | undefined - userId: string -} + clientMutationId?: string | null | undefined; + profileId: string; + roleType?: ProfileRoles | null | undefined; + userId: string; +}; export type ChangeUserRoleMutation$variables = { - input: RoleUpdateInput -} + input: RoleUpdateInput; +}; export type ChangeUserRoleMutation$data = { - readonly profileRoleUpdate: - | { - readonly errors: - | ReadonlyArray< - | { - readonly field: string - readonly messages: ReadonlyArray - } - | null - | undefined - > - | null - | undefined - readonly profileUserRole: - | { - readonly id: string - readonly role: ProfileRoles | null | undefined - } - | null - | undefined - } - | null - | undefined -} + readonly profileRoleUpdate: { + readonly errors: ReadonlyArray<{ + readonly field: string; + readonly messages: ReadonlyArray; + } | null | undefined> | null | undefined; + readonly profileUserRole: { + readonly id: string; + readonly role: ProfileRoles | null | undefined; + } | null | undefined; + } | null | undefined; +}; export type ChangeUserRoleMutation = { - response: ChangeUserRoleMutation$data - variables: ChangeUserRoleMutation$variables -} + response: ChangeUserRoleMutation$data; + variables: ChangeUserRoleMutation$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "input" + } +], +v1 = [ + { + "alias": null, + "args": [ { - defaultValue: null, - kind: 'LocalArgument', - name: 'input', - }, + "kind": "Variable", + "name": "input", + "variableName": "input" + } ], - v1 = [ + "concreteType": "RoleUpdatePayload", + "kind": "LinkedField", + "name": "profileRoleUpdate", + "plural": false, + "selections": [ { - alias: null, - args: [ + "alias": null, + "args": null, + "concreteType": "ProfileUserRole", + "kind": "LinkedField", + "name": "profileUserRole", + "plural": false, + "selections": [ { - kind: 'Variable', - name: 'input', - variableName: 'input', + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "role", + "storageKey": null + } ], - concreteType: 'RoleUpdatePayload', - kind: 'LinkedField', - name: 'profileRoleUpdate', - plural: false, - selections: [ + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "ErrorType", + "kind": "LinkedField", + "name": "errors", + "plural": true, + "selections": [ { - alias: null, - args: null, - concreteType: 'ProfileUserRole', - kind: 'LinkedField', - name: 'profileUserRole', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'role', - storageKey: null, - }, - ], - storageKey: null, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "field", + "storageKey": null }, { - alias: null, - args: null, - concreteType: 'ErrorType', - kind: 'LinkedField', - name: 'errors', - plural: true, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'field', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'messages', - storageKey: null, - }, - ], - storageKey: null, - }, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "messages", + "storageKey": null + } ], - storageKey: null, - }, - ] - return { - fragment: { - argumentDefinitions: v0 /*: any*/, - kind: 'Fragment', - metadata: null, - name: 'ChangeUserRoleMutation', - selections: v1 /*: any*/, - type: 'Mutation', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: v0 /*: any*/, - kind: 'Operation', - name: 'ChangeUserRoleMutation', - selections: v1 /*: any*/, - }, - params: { - cacheID: 'b8717d03953ac3aeaf61e4a3b826c7d1', - id: null, - metadata: {}, - name: 'ChangeUserRoleMutation', - operationKind: 'mutation', - text: 'mutation ChangeUserRoleMutation(\n $input: RoleUpdateInput!\n) {\n profileRoleUpdate(input: $input) {\n profileUserRole {\n id\n role\n }\n errors {\n field\n messages\n }\n }\n}\n', - }, + "storageKey": null + } + ], + "storageKey": null + } +]; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "ChangeUserRoleMutation", + "selections": (v1/*: any*/), + "type": "Mutation", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "ChangeUserRoleMutation", + "selections": (v1/*: any*/) + }, + "params": { + "cacheID": "b8717d03953ac3aeaf61e4a3b826c7d1", + "id": null, + "metadata": {}, + "name": "ChangeUserRoleMutation", + "operationKind": "mutation", + "text": "mutation ChangeUserRoleMutation(\n $input: RoleUpdateInput!\n) {\n profileRoleUpdate(input: $input) {\n profileUserRole {\n id\n role\n }\n errors {\n field\n messages\n }\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = 'e4f28862dc2b186db3b3fb452cf749bb' +(node as any).hash = "e4f28862dc2b186db3b3fb452cf749bb"; -export default node +export default node; diff --git a/packages/components/__generated__/ChatRoomMessagesListPaginationQuery.graphql.ts b/packages/components/__generated__/ChatRoomMessagesListPaginationQuery.graphql.ts index f889fd17..e46f1a0c 100644 --- a/packages/components/__generated__/ChatRoomMessagesListPaginationQuery.graphql.ts +++ b/packages/components/__generated__/ChatRoomMessagesListPaginationQuery.graphql.ts @@ -5,374 +5,372 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type ChatRoomMessagesListPaginationQuery$variables = { - count?: number | null | undefined - cursor?: string | null | undefined - id: string -} + count?: number | null | undefined; + cursor?: string | null | undefined; + id: string; +}; export type ChatRoomMessagesListPaginationQuery$data = { - readonly node: - | { - readonly ' $fragmentSpreads': FragmentRefs<'MessagesListFragment'> - } - | null - | undefined -} + readonly node: { + readonly " $fragmentSpreads": FragmentRefs<"MessagesListFragment">; + } | null | undefined; +}; export type ChatRoomMessagesListPaginationQuery = { - response: ChatRoomMessagesListPaginationQuery$data - variables: ChatRoomMessagesListPaginationQuery$variables -} + response: ChatRoomMessagesListPaginationQuery$data; + variables: ChatRoomMessagesListPaginationQuery$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ - { - defaultValue: 20, - kind: 'LocalArgument', - name: 'count', - }, - { - defaultValue: null, - kind: 'LocalArgument', - name: 'cursor', - }, - { - defaultValue: null, - kind: 'LocalArgument', - name: 'id', - }, - ], - v1 = [ +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "defaultValue": 20, + "kind": "LocalArgument", + "name": "count" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "cursor" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "id" + } +], +v1 = [ + { + "kind": "Variable", + "name": "id", + "variableName": "id" + } +], +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null +}, +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v4 = [ + { + "kind": "Variable", + "name": "after", + "variableName": "cursor" + }, + { + "kind": "Variable", + "name": "first", + "variableName": "count" + } +]; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "ChatRoomMessagesListPaginationQuery", + "selections": [ { - kind: 'Variable', - name: 'id', - variableName: 'id', - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "args": [ + { + "kind": "Variable", + "name": "count", + "variableName": "count" + }, + { + "kind": "Variable", + "name": "cursor", + "variableName": "cursor" + } + ], + "kind": "FragmentSpread", + "name": "MessagesListFragment" + } + ], + "storageKey": null + } ], - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v3 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v4 = [ - { - kind: 'Variable', - name: 'after', - variableName: 'cursor', - }, + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "ChatRoomMessagesListPaginationQuery", + "selections": [ { - kind: 'Variable', - name: 'first', - variableName: 'count', - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v2/*: any*/), + (v3/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isGroup", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "UnreadMessageCount", + "kind": "LinkedField", + "name": "unreadMessages", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "count", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "markedUnread", + "storageKey": null + }, + (v3/*: any*/) + ], + "storageKey": null + }, + { + "alias": null, + "args": (v4/*: any*/), + "concreteType": "MessageConnection", + "kind": "LinkedField", + "name": "allMessages", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "totalCount", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "MessageEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Message", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "created", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "name", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 32 + }, + { + "kind": "Literal", + "name": "width", + "value": 32 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "image(height:32,width:32)" + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isRead", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "content", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "extraData", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Message", + "kind": "LinkedField", + "name": "inReplyTo", + "plural": false, + "selections": [ + (v3/*: any*/) + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "pk", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "verb", + "storageKey": null + }, + (v2/*: any*/) + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": (v4/*: any*/), + "filters": null, + "handle": "connection", + "key": "chatRoom_allMessages", + "kind": "LinkedHandle", + "name": "allMessages" + } + ], + "type": "ChatRoom", + "abstractKey": null + } + ], + "storageKey": null + } ] - return { - fragment: { - argumentDefinitions: v0 /*: any*/, - kind: 'Fragment', - metadata: null, - name: 'ChatRoomMessagesListPaginationQuery', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - args: [ - { - kind: 'Variable', - name: 'count', - variableName: 'count', - }, - { - kind: 'Variable', - name: 'cursor', - variableName: 'cursor', - }, - ], - kind: 'FragmentSpread', - name: 'MessagesListFragment', - }, - ], - storageKey: null, - }, - ], - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: v0 /*: any*/, - kind: 'Operation', - name: 'ChatRoomMessagesListPaginationQuery', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v2 /*: any*/, - v3 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isGroup', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'UnreadMessageCount', - kind: 'LinkedField', - name: 'unreadMessages', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'count', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'markedUnread', - storageKey: null, - }, - v3 /*: any*/, - ], - storageKey: null, - }, - { - alias: null, - args: v4 /*: any*/, - concreteType: 'MessageConnection', - kind: 'LinkedField', - name: 'allMessages', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'totalCount', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'MessageEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'Message', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v3 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'created', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - v3 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'name', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 32, - }, - { - kind: 'Literal', - name: 'width', - value: 32, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'image(height:32,width:32)', - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isRead', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'content', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'extraData', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Message', - kind: 'LinkedField', - name: 'inReplyTo', - plural: false, - selections: [v3 /*: any*/], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'pk', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'verb', - storageKey: null, - }, - v2 /*: any*/, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: v4 /*: any*/, - filters: null, - handle: 'connection', - key: 'chatRoom_allMessages', - kind: 'LinkedHandle', - name: 'allMessages', - }, - ], - type: 'ChatRoom', - abstractKey: null, - }, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: 'f296a259a1d80db1209eb995234dcfed', - id: null, - metadata: {}, - name: 'ChatRoomMessagesListPaginationQuery', - operationKind: 'query', - text: 'query ChatRoomMessagesListPaginationQuery(\n $count: Int = 20\n $cursor: String\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...MessagesListFragment_1G22uz\n id\n }\n}\n\nfragment MessageItemFragment on Message {\n id\n content\n created\n extraData\n inReplyTo {\n id\n }\n isRead\n pk\n profile {\n id\n }\n verb\n}\n\nfragment MessagesListFragment_1G22uz on ChatRoom {\n id\n isGroup\n unreadMessages {\n count\n markedUnread\n id\n }\n allMessages(first: $count, after: $cursor) {\n totalCount\n edges {\n node {\n id\n created\n profile {\n id\n name\n image(height: 32, width: 32) {\n url\n }\n }\n isRead\n ...MessageItemFragment\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n', - }, + }, + "params": { + "cacheID": "f296a259a1d80db1209eb995234dcfed", + "id": null, + "metadata": {}, + "name": "ChatRoomMessagesListPaginationQuery", + "operationKind": "query", + "text": "query ChatRoomMessagesListPaginationQuery(\n $count: Int = 20\n $cursor: String\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...MessagesListFragment_1G22uz\n id\n }\n}\n\nfragment MessageItemFragment on Message {\n id\n content\n created\n extraData\n inReplyTo {\n id\n }\n isRead\n pk\n profile {\n id\n }\n verb\n}\n\nfragment MessagesListFragment_1G22uz on ChatRoom {\n id\n isGroup\n unreadMessages {\n count\n markedUnread\n id\n }\n allMessages(first: $count, after: $cursor) {\n totalCount\n edges {\n node {\n id\n created\n profile {\n id\n name\n image(height: 32, width: 32) {\n url\n }\n }\n isRead\n ...MessageItemFragment\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = '2101646ad6b90d900738f9b290616d98' +(node as any).hash = "2101646ad6b90d900738f9b290616d98"; -export default node +export default node; diff --git a/packages/components/__generated__/ChatRoomParticipantsPaginationQuery.graphql.ts b/packages/components/__generated__/ChatRoomParticipantsPaginationQuery.graphql.ts index 1fe20371..47036b9e 100644 --- a/packages/components/__generated__/ChatRoomParticipantsPaginationQuery.graphql.ts +++ b/packages/components/__generated__/ChatRoomParticipantsPaginationQuery.graphql.ts @@ -5,308 +5,304 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type ChatRoomParticipantsPaginationQuery$variables = { - count?: number | null | undefined - cursor?: string | null | undefined - id: string -} + count?: number | null | undefined; + cursor?: string | null | undefined; + id: string; +}; export type ChatRoomParticipantsPaginationQuery$data = { - readonly node: - | { - readonly ' $fragmentSpreads': FragmentRefs<'MembersListFragment'> - } - | null - | undefined -} + readonly node: { + readonly " $fragmentSpreads": FragmentRefs<"MembersListFragment">; + } | null | undefined; +}; export type ChatRoomParticipantsPaginationQuery = { - response: ChatRoomParticipantsPaginationQuery$data - variables: ChatRoomParticipantsPaginationQuery$variables -} + response: ChatRoomParticipantsPaginationQuery$data; + variables: ChatRoomParticipantsPaginationQuery$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ - { - defaultValue: 5, - kind: 'LocalArgument', - name: 'count', - }, - { - defaultValue: null, - kind: 'LocalArgument', - name: 'cursor', - }, - { - defaultValue: null, - kind: 'LocalArgument', - name: 'id', - }, - ], - v1 = [ +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "defaultValue": 5, + "kind": "LocalArgument", + "name": "count" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "cursor" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "id" + } +], +v1 = [ + { + "kind": "Variable", + "name": "id", + "variableName": "id" + } +], +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null +}, +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v4 = [ + { + "kind": "Variable", + "name": "after", + "variableName": "cursor" + }, + { + "kind": "Variable", + "name": "first", + "variableName": "count" + } +]; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "ChatRoomParticipantsPaginationQuery", + "selections": [ { - kind: 'Variable', - name: 'id', - variableName: 'id', - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "args": [ + { + "kind": "Variable", + "name": "count", + "variableName": "count" + }, + { + "kind": "Variable", + "name": "cursor", + "variableName": "cursor" + } + ], + "kind": "FragmentSpread", + "name": "MembersListFragment" + } + ], + "storageKey": null + } ], - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v3 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v4 = [ - { - kind: 'Variable', - name: 'after', - variableName: 'cursor', - }, + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "ChatRoomParticipantsPaginationQuery", + "selections": [ { - kind: 'Variable', - name: 'first', - variableName: 'count', - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v2/*: any*/), + (v3/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": (v4/*: any*/), + "concreteType": "ChatRoomParticipantConnection", + "kind": "LinkedField", + "name": "participants", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomParticipantEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomParticipant", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "name", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100 + }, + { + "kind": "Literal", + "name": "width", + "value": 100 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "image(height:100,width:100)" + }, + { + "alias": null, + "args": null, + "concreteType": "URLPath", + "kind": "LinkedField", + "name": "urlPath", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "path", + "storageKey": null + }, + (v3/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "role", + "storageKey": null + }, + (v2/*: any*/) + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": (v4/*: any*/), + "filters": null, + "handle": "connection", + "key": "ChatRoom_participants", + "kind": "LinkedHandle", + "name": "participants" + } + ], + "type": "ChatRoom", + "abstractKey": null + } + ], + "storageKey": null + } ] - return { - fragment: { - argumentDefinitions: v0 /*: any*/, - kind: 'Fragment', - metadata: null, - name: 'ChatRoomParticipantsPaginationQuery', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - args: [ - { - kind: 'Variable', - name: 'count', - variableName: 'count', - }, - { - kind: 'Variable', - name: 'cursor', - variableName: 'cursor', - }, - ], - kind: 'FragmentSpread', - name: 'MembersListFragment', - }, - ], - storageKey: null, - }, - ], - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: v0 /*: any*/, - kind: 'Operation', - name: 'ChatRoomParticipantsPaginationQuery', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v2 /*: any*/, - v3 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: v4 /*: any*/, - concreteType: 'ChatRoomParticipantConnection', - kind: 'LinkedField', - name: 'participants', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomParticipantEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomParticipant', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v3 /*: any*/, - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - v3 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'name', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 100, - }, - { - kind: 'Literal', - name: 'width', - value: 100, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'image(height:100,width:100)', - }, - { - alias: null, - args: null, - concreteType: 'URLPath', - kind: 'LinkedField', - name: 'urlPath', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'path', - storageKey: null, - }, - v3 /*: any*/, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'role', - storageKey: null, - }, - v2 /*: any*/, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: v4 /*: any*/, - filters: null, - handle: 'connection', - key: 'ChatRoom_participants', - kind: 'LinkedHandle', - name: 'participants', - }, - ], - type: 'ChatRoom', - abstractKey: null, - }, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: '8cb8f1bdc2aa4700b94a7e47557c0da4', - id: null, - metadata: {}, - name: 'ChatRoomParticipantsPaginationQuery', - operationKind: 'query', - text: 'query ChatRoomParticipantsPaginationQuery(\n $count: Int = 5\n $cursor: String\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...MembersListFragment_1G22uz\n id\n }\n}\n\nfragment MembersListFragment_1G22uz on ChatRoom {\n id\n participants(first: $count, after: $cursor) {\n edges {\n node {\n id\n profile {\n id\n ...ProfileItemFragment\n }\n role\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n\nfragment ProfileItemFragment on Profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n urlPath {\n path\n id\n }\n}\n', - }, + }, + "params": { + "cacheID": "8cb8f1bdc2aa4700b94a7e47557c0da4", + "id": null, + "metadata": {}, + "name": "ChatRoomParticipantsPaginationQuery", + "operationKind": "query", + "text": "query ChatRoomParticipantsPaginationQuery(\n $count: Int = 5\n $cursor: String\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...MembersListFragment_1G22uz\n id\n }\n}\n\nfragment MembersListFragment_1G22uz on ChatRoom {\n id\n participants(first: $count, after: $cursor) {\n edges {\n node {\n id\n profile {\n id\n ...ProfileItemFragment\n }\n role\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n\nfragment ProfileItemFragment on Profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n urlPath {\n path\n id\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = '49f7bb8685111dd9a1075b9147c84abb' +(node as any).hash = "49f7bb8685111dd9a1075b9147c84abb"; -export default node +export default node; diff --git a/packages/components/__generated__/ChatRoomQuery.graphql.ts b/packages/components/__generated__/ChatRoomQuery.graphql.ts index 7a6ae13c..10d44d5b 100644 --- a/packages/components/__generated__/ChatRoomQuery.graphql.ts +++ b/packages/components/__generated__/ChatRoomQuery.graphql.ts @@ -5,458 +5,456 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type ChatRoomQuery$variables = { - roomId: string -} + roomId: string; +}; export type ChatRoomQuery$data = { - readonly chatRoom: - | { - readonly id: string - readonly participantsCount: number - readonly ' $fragmentSpreads': FragmentRefs<'MessagesListFragment' | 'TitleFragment'> - } - | null - | undefined -} + readonly chatRoom: { + readonly id: string; + readonly participantsCount: number; + readonly " $fragmentSpreads": FragmentRefs<"MessagesListFragment" | "TitleFragment">; + } | null | undefined; +}; export type ChatRoomQuery = { - response: ChatRoomQuery$data - variables: ChatRoomQuery$variables -} + response: ChatRoomQuery$data; + variables: ChatRoomQuery$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ - { - defaultValue: null, - kind: 'LocalArgument', - name: 'roomId', - }, - ], - v1 = [ - { - kind: 'Variable', - name: 'id', - variableName: 'roomId', - }, - ], - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v3 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'participantsCount', - storageKey: null, - }, - v4 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'name', - storageKey: null, - }, - v5 = [ +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "roomId" + } +], +v1 = [ + { + "kind": "Variable", + "name": "id", + "variableName": "roomId" + } +], +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "participantsCount", + "storageKey": null +}, +v4 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "name", + "storageKey": null +}, +v5 = [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } +], +v6 = [ + { + "kind": "Literal", + "name": "first", + "value": 20 + } +]; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "ChatRoomQuery", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": "ChatRoom", + "kind": "LinkedField", + "name": "chatRoom", + "plural": false, + "selections": [ + (v2/*: any*/), + (v3/*: any*/), + { + "args": null, + "kind": "FragmentSpread", + "name": "TitleFragment" + }, + { + "args": null, + "kind": "FragmentSpread", + "name": "MessagesListFragment" + } + ], + "storageKey": null + } ], - v6 = [ + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "ChatRoomQuery", + "selections": [ { - kind: 'Literal', - name: 'first', - value: 20, - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": "ChatRoom", + "kind": "LinkedField", + "name": "chatRoom", + "plural": false, + "selections": [ + (v2/*: any*/), + (v3/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isGroup", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "first", + "value": 2 + } + ], + "concreteType": "ChatRoomParticipantConnection", + "kind": "LinkedField", + "name": "participants", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomParticipantEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomParticipant", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + (v2/*: any*/), + (v4/*: any*/), + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100 + }, + { + "kind": "Literal", + "name": "width", + "value": 100 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": (v5/*: any*/), + "storageKey": "image(height:100,width:100)" + } + ], + "storageKey": null + }, + (v2/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": "participants(first:2)" + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 144 + }, + { + "kind": "Literal", + "name": "width", + "value": 144 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": (v5/*: any*/), + "storageKey": "image(height:144,width:144)" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "title", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "UnreadMessageCount", + "kind": "LinkedField", + "name": "unreadMessages", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "count", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "markedUnread", + "storageKey": null + }, + (v2/*: any*/) + ], + "storageKey": null + }, + { + "alias": null, + "args": (v6/*: any*/), + "concreteType": "MessageConnection", + "kind": "LinkedField", + "name": "allMessages", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "totalCount", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "MessageEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Message", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "created", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + (v2/*: any*/), + (v4/*: any*/), + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 32 + }, + { + "kind": "Literal", + "name": "width", + "value": 32 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": (v5/*: any*/), + "storageKey": "image(height:32,width:32)" + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isRead", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "content", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "extraData", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Message", + "kind": "LinkedField", + "name": "inReplyTo", + "plural": false, + "selections": [ + (v2/*: any*/) + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "pk", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "verb", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": "allMessages(first:20)" + }, + { + "alias": null, + "args": (v6/*: any*/), + "filters": null, + "handle": "connection", + "key": "chatRoom_allMessages", + "kind": "LinkedHandle", + "name": "allMessages" + } + ], + "storageKey": null + } ] - return { - fragment: { - argumentDefinitions: v0 /*: any*/, - kind: 'Fragment', - metadata: null, - name: 'ChatRoomQuery', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'ChatRoom', - kind: 'LinkedField', - name: 'chatRoom', - plural: false, - selections: [ - v2 /*: any*/, - v3 /*: any*/, - { - args: null, - kind: 'FragmentSpread', - name: 'TitleFragment', - }, - { - args: null, - kind: 'FragmentSpread', - name: 'MessagesListFragment', - }, - ], - storageKey: null, - }, - ], - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: v0 /*: any*/, - kind: 'Operation', - name: 'ChatRoomQuery', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'ChatRoom', - kind: 'LinkedField', - name: 'chatRoom', - plural: false, - selections: [ - v2 /*: any*/, - v3 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isGroup', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'first', - value: 2, - }, - ], - concreteType: 'ChatRoomParticipantConnection', - kind: 'LinkedField', - name: 'participants', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomParticipantEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomParticipant', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - v2 /*: any*/, - v4 /*: any*/, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 100, - }, - { - kind: 'Literal', - name: 'width', - value: 100, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: v5 /*: any*/, - storageKey: 'image(height:100,width:100)', - }, - ], - storageKey: null, - }, - v2 /*: any*/, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: 'participants(first:2)', - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 144, - }, - { - kind: 'Literal', - name: 'width', - value: 144, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: v5 /*: any*/, - storageKey: 'image(height:144,width:144)', - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'title', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'UnreadMessageCount', - kind: 'LinkedField', - name: 'unreadMessages', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'count', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'markedUnread', - storageKey: null, - }, - v2 /*: any*/, - ], - storageKey: null, - }, - { - alias: null, - args: v6 /*: any*/, - concreteType: 'MessageConnection', - kind: 'LinkedField', - name: 'allMessages', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'totalCount', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'MessageEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'Message', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'created', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - v2 /*: any*/, - v4 /*: any*/, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 32, - }, - { - kind: 'Literal', - name: 'width', - value: 32, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: v5 /*: any*/, - storageKey: 'image(height:32,width:32)', - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isRead', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'content', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'extraData', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Message', - kind: 'LinkedField', - name: 'inReplyTo', - plural: false, - selections: [v2 /*: any*/], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'pk', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'verb', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: 'allMessages(first:20)', - }, - { - alias: null, - args: v6 /*: any*/, - filters: null, - handle: 'connection', - key: 'chatRoom_allMessages', - kind: 'LinkedHandle', - name: 'allMessages', - }, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: '418e1900e952253a01398308df1c9875', - id: null, - metadata: {}, - name: 'ChatRoomQuery', - operationKind: 'query', - text: 'query ChatRoomQuery(\n $roomId: ID!\n) {\n chatRoom(id: $roomId) {\n id\n participantsCount\n ...TitleFragment\n ...MessagesListFragment\n }\n}\n\nfragment GroupTitleFragment on ChatRoom {\n id\n image(width: 144, height: 144) {\n url\n }\n title\n}\n\nfragment MessageItemFragment on Message {\n id\n content\n created\n extraData\n inReplyTo {\n id\n }\n isRead\n pk\n profile {\n id\n }\n verb\n}\n\nfragment MessagesListFragment on ChatRoom {\n id\n isGroup\n unreadMessages {\n count\n markedUnread\n id\n }\n allMessages(first: 20) {\n totalCount\n edges {\n node {\n id\n created\n profile {\n id\n name\n image(height: 32, width: 32) {\n url\n }\n }\n isRead\n ...MessageItemFragment\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n\nfragment RoomTitleFragment on ChatRoom {\n id\n participants(first: 2) {\n edges {\n node {\n profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n }\n id\n }\n }\n }\n}\n\nfragment TitleFragment on ChatRoom {\n id\n isGroup\n ...RoomTitleFragment\n ...GroupTitleFragment\n}\n', - }, + }, + "params": { + "cacheID": "418e1900e952253a01398308df1c9875", + "id": null, + "metadata": {}, + "name": "ChatRoomQuery", + "operationKind": "query", + "text": "query ChatRoomQuery(\n $roomId: ID!\n) {\n chatRoom(id: $roomId) {\n id\n participantsCount\n ...TitleFragment\n ...MessagesListFragment\n }\n}\n\nfragment GroupTitleFragment on ChatRoom {\n id\n image(width: 144, height: 144) {\n url\n }\n title\n}\n\nfragment MessageItemFragment on Message {\n id\n content\n created\n extraData\n inReplyTo {\n id\n }\n isRead\n pk\n profile {\n id\n }\n verb\n}\n\nfragment MessagesListFragment on ChatRoom {\n id\n isGroup\n unreadMessages {\n count\n markedUnread\n id\n }\n allMessages(first: 20) {\n totalCount\n edges {\n node {\n id\n created\n profile {\n id\n name\n image(height: 32, width: 32) {\n url\n }\n }\n isRead\n ...MessageItemFragment\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n\nfragment RoomTitleFragment on ChatRoom {\n id\n participants(first: 2) {\n edges {\n node {\n profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n }\n id\n }\n }\n }\n}\n\nfragment TitleFragment on ChatRoom {\n id\n isGroup\n ...RoomTitleFragment\n ...GroupTitleFragment\n}\n" } -})() +}; +})(); -;(node as any).hash = '998cbccbc4fba49d248f69c77ca826fd' +(node as any).hash = "998cbccbc4fba49d248f69c77ca826fd"; -export default node +export default node; diff --git a/packages/components/__generated__/ChatRoomsQuery.graphql.ts b/packages/components/__generated__/ChatRoomsQuery.graphql.ts index fcc30c73..0ebe973b 100644 --- a/packages/components/__generated__/ChatRoomsQuery.graphql.ts +++ b/packages/components/__generated__/ChatRoomsQuery.graphql.ts @@ -5,505 +5,505 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' -export type ChatRoomsQuery$variables = Record +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; +export type ChatRoomsQuery$variables = Record; export type ChatRoomsQuery$data = { - readonly me: - | { - readonly id: string - readonly profile: - | { - readonly id: string - readonly ' $fragmentSpreads': FragmentRefs<'RoomsListFragment'> - } - | null - | undefined - } - | null - | undefined - readonly ' $fragmentSpreads': FragmentRefs<'AllProfilesListFragment'> -} + readonly me: { + readonly id: string; + readonly profile: { + readonly id: string; + readonly " $fragmentSpreads": FragmentRefs<"RoomsListFragment">; + } | null | undefined; + } | null | undefined; + readonly " $fragmentSpreads": FragmentRefs<"AllProfilesListFragment">; +}; export type ChatRoomsQuery = { - response: ChatRoomsQuery$data - variables: ChatRoomsQuery$variables -} + response: ChatRoomsQuery$data; + variables: ChatRoomsQuery$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, +const node: ConcreteRequest = (function(){ +var v0 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v1 = { + "kind": "Literal", + "name": "first", + "value": 5 +}, +v2 = [ + (v1/*: any*/), + { + "kind": "Literal", + "name": "orderBy", + "value": "-created" + } +], +v3 = { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null }, - v1 = { - kind: 'Literal', - name: 'first', - value: 5, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + } + ], + "storageKey": null +}, +v4 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "name", + "storageKey": null +}, +v5 = [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } +], +v6 = { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100 }, - v2 = [ - v1 /*: any*/, + { + "kind": "Literal", + "name": "width", + "value": 100 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": (v5/*: any*/), + "storageKey": "image(height:100,width:100)" +}, +v7 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null +}, +v8 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null +}, +v9 = [ + { + "kind": "Literal", + "name": "archived", + "value": false + }, + (v1/*: any*/), + { + "kind": "Literal", + "name": "q", + "value": "" + }, + { + "kind": "Literal", + "name": "unreadMessages", + "value": false + } +]; +return { + "fragment": { + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "ChatRoomsQuery", + "selections": [ { - kind: 'Literal', - name: 'orderBy', - value: '-created', + "args": null, + "kind": "FragmentSpread", + "name": "AllProfilesListFragment" }, - ], - v3 = { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - ], - storageKey: null, - }, - v4 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'name', - storageKey: null, - }, - v5 = [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "me", + "plural": false, + "selections": [ + (v0/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + (v0/*: any*/), + { + "args": null, + "kind": "FragmentSpread", + "name": "RoomsListFragment" + } + ], + "storageKey": null + } + ], + "storageKey": null + } ], - v6 = { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 100, - }, - { - kind: 'Literal', - name: 'width', - value: 100, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: v5 /*: any*/, - storageKey: 'image(height:100,width:100)', - }, - v7 = { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v8 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - v9 = [ + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": [], + "kind": "Operation", + "name": "ChatRoomsQuery", + "selections": [ { - kind: 'Literal', - name: 'archived', - value: false, + "alias": null, + "args": (v2/*: any*/), + "concreteType": "ProfileConnection", + "kind": "LinkedField", + "name": "allProfiles", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "totalCount", + "storageKey": null + }, + (v3/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "ProfileEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v0/*: any*/), + (v4/*: any*/), + (v6/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "URLPath", + "kind": "LinkedField", + "name": "urlPath", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "path", + "storageKey": null + }, + (v0/*: any*/) + ], + "storageKey": null + }, + (v7/*: any*/) + ], + "storageKey": null + }, + (v8/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": "allProfiles(first:5,orderBy:\"-created\")" }, - v1 /*: any*/, { - kind: 'Literal', - name: 'q', - value: '', + "alias": null, + "args": (v2/*: any*/), + "filters": [ + "orderBy", + "q" + ], + "handle": "connection", + "key": "AllProfilesListFragment_allProfiles", + "kind": "LinkedHandle", + "name": "allProfiles" }, { - kind: 'Literal', - name: 'unreadMessages', - value: false, - }, + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "me", + "plural": false, + "selections": [ + (v0/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + (v0/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": (v9/*: any*/), + "concreteType": "ChatRoomConnection", + "kind": "LinkedField", + "name": "chatRooms", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoom", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v0/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "lastMessageTime", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Message", + "kind": "LinkedField", + "name": "lastMessage", + "plural": false, + "selections": [ + (v0/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "content", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isGroup", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "first", + "value": 2 + } + ], + "concreteType": "ChatRoomParticipantConnection", + "kind": "LinkedField", + "name": "participants", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomParticipantEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomParticipant", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + (v0/*: any*/), + (v4/*: any*/), + (v6/*: any*/) + ], + "storageKey": null + }, + (v0/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": "participants(first:2)" + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 144 + }, + { + "kind": "Literal", + "name": "width", + "value": 144 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": (v5/*: any*/), + "storageKey": "image(height:144,width:144)" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "title", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "UnreadMessageCount", + "kind": "LinkedField", + "name": "unreadMessages", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "count", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "markedUnread", + "storageKey": null + }, + (v0/*: any*/) + ], + "storageKey": null + }, + (v7/*: any*/) + ], + "storageKey": null + }, + (v8/*: any*/) + ], + "storageKey": null + }, + (v3/*: any*/) + ], + "storageKey": "chatRooms(archived:false,first:5,q:\"\",unreadMessages:false)" + }, + { + "alias": null, + "args": (v9/*: any*/), + "filters": [ + "q", + "unreadMessages", + "archived" + ], + "handle": "connection", + "key": "roomsList_chatRooms", + "kind": "LinkedHandle", + "name": "chatRooms" + } + ], + "type": "ChatRoomsInterface", + "abstractKey": "__isChatRoomsInterface" + } + ], + "storageKey": null + } + ], + "storageKey": null + } ] - return { - fragment: { - argumentDefinitions: [], - kind: 'Fragment', - metadata: null, - name: 'ChatRoomsQuery', - selections: [ - { - args: null, - kind: 'FragmentSpread', - name: 'AllProfilesListFragment', - }, - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'me', - plural: false, - selections: [ - v0 /*: any*/, - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - v0 /*: any*/, - { - args: null, - kind: 'FragmentSpread', - name: 'RoomsListFragment', - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: [], - kind: 'Operation', - name: 'ChatRoomsQuery', - selections: [ - { - alias: null, - args: v2 /*: any*/, - concreteType: 'ProfileConnection', - kind: 'LinkedField', - name: 'allProfiles', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'totalCount', - storageKey: null, - }, - v3 /*: any*/, - { - alias: null, - args: null, - concreteType: 'ProfileEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v0 /*: any*/, - v4 /*: any*/, - v6 /*: any*/, - { - alias: null, - args: null, - concreteType: 'URLPath', - kind: 'LinkedField', - name: 'urlPath', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'path', - storageKey: null, - }, - v0 /*: any*/, - ], - storageKey: null, - }, - v7 /*: any*/, - ], - storageKey: null, - }, - v8 /*: any*/, - ], - storageKey: null, - }, - ], - storageKey: 'allProfiles(first:5,orderBy:"-created")', - }, - { - alias: null, - args: v2 /*: any*/, - filters: ['orderBy', 'q'], - handle: 'connection', - key: 'AllProfilesListFragment_allProfiles', - kind: 'LinkedHandle', - name: 'allProfiles', - }, - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'me', - plural: false, - selections: [ - v0 /*: any*/, - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - v0 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: v9 /*: any*/, - concreteType: 'ChatRoomConnection', - kind: 'LinkedField', - name: 'chatRooms', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoom', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v0 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'lastMessageTime', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Message', - kind: 'LinkedField', - name: 'lastMessage', - plural: false, - selections: [ - v0 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'content', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isGroup', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'first', - value: 2, - }, - ], - concreteType: 'ChatRoomParticipantConnection', - kind: 'LinkedField', - name: 'participants', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomParticipantEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomParticipant', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - v0 /*: any*/, - v4 /*: any*/, - v6 /*: any*/, - ], - storageKey: null, - }, - v0 /*: any*/, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: 'participants(first:2)', - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 144, - }, - { - kind: 'Literal', - name: 'width', - value: 144, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: v5 /*: any*/, - storageKey: 'image(height:144,width:144)', - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'title', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'UnreadMessageCount', - kind: 'LinkedField', - name: 'unreadMessages', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'count', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'markedUnread', - storageKey: null, - }, - v0 /*: any*/, - ], - storageKey: null, - }, - v7 /*: any*/, - ], - storageKey: null, - }, - v8 /*: any*/, - ], - storageKey: null, - }, - v3 /*: any*/, - ], - storageKey: 'chatRooms(archived:false,first:5,q:"",unreadMessages:false)', - }, - { - alias: null, - args: v9 /*: any*/, - filters: ['q', 'unreadMessages', 'archived'], - handle: 'connection', - key: 'roomsList_chatRooms', - kind: 'LinkedHandle', - name: 'chatRooms', - }, - ], - type: 'ChatRoomsInterface', - abstractKey: '__isChatRoomsInterface', - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: 'b7aec8f21dba53c91ee4320c81d17a52', - id: null, - metadata: {}, - name: 'ChatRoomsQuery', - operationKind: 'query', - text: 'query ChatRoomsQuery {\n ...AllProfilesListFragment\n me {\n id\n profile {\n id\n ...RoomsListFragment\n }\n }\n}\n\nfragment AllProfilesListFragment on Query {\n allProfiles(first: 5, orderBy: "-created") {\n totalCount\n pageInfo {\n hasNextPage\n endCursor\n }\n edges {\n node {\n id\n ...ProfileItemFragment\n __typename\n }\n cursor\n }\n }\n}\n\nfragment GroupTitleFragment on ChatRoom {\n id\n image(width: 144, height: 144) {\n url\n }\n title\n}\n\nfragment LastMessageFragment on ChatRoom {\n id\n lastMessageTime\n lastMessage {\n id\n content\n }\n}\n\nfragment ProfileItemFragment on Profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n urlPath {\n path\n id\n }\n}\n\nfragment RoomTitleFragment on ChatRoom {\n id\n participants(first: 2) {\n edges {\n node {\n profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n }\n id\n }\n }\n }\n}\n\nfragment RoomsListFragment on ChatRoomsInterface {\n __isChatRoomsInterface: __typename\n chatRooms(first: 5, q: "", unreadMessages: false, archived: false) {\n edges {\n node {\n id\n ...LastMessageFragment\n ...TitleFragment\n ...UnreadMessagesCountFragment\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n id\n}\n\nfragment TitleFragment on ChatRoom {\n id\n isGroup\n ...RoomTitleFragment\n ...GroupTitleFragment\n}\n\nfragment UnreadMessagesCountFragment on ChatRoom {\n id\n unreadMessages {\n count\n markedUnread\n id\n }\n}\n', - }, + }, + "params": { + "cacheID": "b7aec8f21dba53c91ee4320c81d17a52", + "id": null, + "metadata": {}, + "name": "ChatRoomsQuery", + "operationKind": "query", + "text": "query ChatRoomsQuery {\n ...AllProfilesListFragment\n me {\n id\n profile {\n id\n ...RoomsListFragment\n }\n }\n}\n\nfragment AllProfilesListFragment on Query {\n allProfiles(first: 5, orderBy: \"-created\") {\n totalCount\n pageInfo {\n hasNextPage\n endCursor\n }\n edges {\n node {\n id\n ...ProfileItemFragment\n __typename\n }\n cursor\n }\n }\n}\n\nfragment GroupTitleFragment on ChatRoom {\n id\n image(width: 144, height: 144) {\n url\n }\n title\n}\n\nfragment LastMessageFragment on ChatRoom {\n id\n lastMessageTime\n lastMessage {\n id\n content\n }\n}\n\nfragment ProfileItemFragment on Profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n urlPath {\n path\n id\n }\n}\n\nfragment RoomTitleFragment on ChatRoom {\n id\n participants(first: 2) {\n edges {\n node {\n profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n }\n id\n }\n }\n }\n}\n\nfragment RoomsListFragment on ChatRoomsInterface {\n __isChatRoomsInterface: __typename\n chatRooms(first: 5, q: \"\", unreadMessages: false, archived: false) {\n edges {\n node {\n id\n ...LastMessageFragment\n ...TitleFragment\n ...UnreadMessagesCountFragment\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n id\n}\n\nfragment TitleFragment on ChatRoom {\n id\n isGroup\n ...RoomTitleFragment\n ...GroupTitleFragment\n}\n\nfragment UnreadMessagesCountFragment on ChatRoom {\n id\n unreadMessages {\n count\n markedUnread\n id\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = '92001c5e34f05864902f11eb244a7e16' +(node as any).hash = "92001c5e34f05864902f11eb244a7e16"; -export default node +export default node; diff --git a/packages/components/__generated__/CommentCreateMutation.graphql.ts b/packages/components/__generated__/CommentCreateMutation.graphql.ts index 2845592c..33b554f5 100644 --- a/packages/components/__generated__/CommentCreateMutation.graphql.ts +++ b/packages/components/__generated__/CommentCreateMutation.graphql.ts @@ -5,508 +5,496 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Mutation } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Mutation } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type CommentCreateInput = { - body: string - clientMutationId?: string | null | undefined - inReplyToId?: string | null | undefined - profileId?: string | null | undefined - targetObjectId: string -} + body: string; + clientMutationId?: string | null | undefined; + inReplyToId?: string | null | undefined; + profileId?: string | null | undefined; + targetObjectId: string; +}; export type CommentCreateMutation$variables = { - connections: ReadonlyArray - input: CommentCreateInput -} + connections: ReadonlyArray; + input: CommentCreateInput; +}; export type CommentCreateMutation$data = { - readonly commentCreate: - | { - readonly comment: - | { - readonly node: - | { - readonly id: string - readonly inReplyTo: - | { - readonly commentsCount: { - readonly main: number | null | undefined - readonly replies: number | null | undefined - readonly total: number | null | undefined - } - readonly id: string - } - | null - | undefined - readonly target: - | { - readonly commentsCount: { - readonly main: number | null | undefined - readonly replies: number | null | undefined - readonly total: number | null | undefined - } - readonly id: string - } - | null - | undefined - readonly ' $fragmentSpreads': FragmentRefs<'CommentItem_comment'> - } - | null - | undefined - } - | null - | undefined - readonly errors: - | ReadonlyArray< - | { - readonly field: string - readonly messages: ReadonlyArray - } - | null - | undefined - > - | null - | undefined - } - | null - | undefined -} + readonly commentCreate: { + readonly comment: { + readonly node: { + readonly id: string; + readonly inReplyTo: { + readonly commentsCount: { + readonly main: number | null | undefined; + readonly replies: number | null | undefined; + readonly total: number | null | undefined; + }; + readonly id: string; + } | null | undefined; + readonly target: { + readonly commentsCount: { + readonly main: number | null | undefined; + readonly replies: number | null | undefined; + readonly total: number | null | undefined; + }; + readonly id: string; + } | null | undefined; + readonly " $fragmentSpreads": FragmentRefs<"CommentItem_comment">; + } | null | undefined; + } | null | undefined; + readonly errors: ReadonlyArray<{ + readonly field: string; + readonly messages: ReadonlyArray; + } | null | undefined> | null | undefined; + } | null | undefined; +}; export type CommentCreateMutation = { - response: CommentCreateMutation$data - variables: CommentCreateMutation$variables -} + response: CommentCreateMutation$data; + variables: CommentCreateMutation$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'connections', +const node: ConcreteRequest = (function(){ +var v0 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "connections" +}, +v1 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "input" +}, +v2 = [ + { + "kind": "Variable", + "name": "input", + "variableName": "input" + } +], +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v4 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "total", + "storageKey": null +}, +v5 = { + "alias": null, + "args": null, + "concreteType": "CommentsCount", + "kind": "LinkedField", + "name": "commentsCount", + "plural": false, + "selections": [ + (v4/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "main", + "storageKey": null }, - v1 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'input', + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "replies", + "storageKey": null + } + ], + "storageKey": null +}, +v6 = [ + (v3/*: any*/), + (v5/*: any*/) +], +v7 = { + "alias": null, + "args": null, + "concreteType": "Comment", + "kind": "LinkedField", + "name": "inReplyTo", + "plural": false, + "selections": (v6/*: any*/), + "storageKey": null +}, +v8 = { + "alias": null, + "args": null, + "concreteType": "ErrorType", + "kind": "LinkedField", + "name": "errors", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "field", + "storageKey": null }, - v2 = [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "messages", + "storageKey": null + } + ], + "storageKey": null +}, +v9 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "pk", + "storageKey": null +}, +v10 = [ + (v4/*: any*/) +]; +return { + "fragment": { + "argumentDefinitions": [ + (v0/*: any*/), + (v1/*: any*/) + ], + "kind": "Fragment", + "metadata": null, + "name": "CommentCreateMutation", + "selections": [ { - kind: 'Variable', - name: 'input', - variableName: 'input', - }, + "alias": null, + "args": (v2/*: any*/), + "concreteType": "CommentCreatePayload", + "kind": "LinkedField", + "name": "commentCreate", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "CommentEdge", + "kind": "LinkedField", + "name": "comment", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Comment", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "target", + "plural": false, + "selections": (v6/*: any*/), + "storageKey": null + }, + (v7/*: any*/), + { + "args": null, + "kind": "FragmentSpread", + "name": "CommentItem_comment" + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + (v8/*: any*/) + ], + "storageKey": null + } ], - v3 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v4 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'total', - storageKey: null, - }, - v5 = { - alias: null, - args: null, - concreteType: 'CommentsCount', - kind: 'LinkedField', - name: 'commentsCount', - plural: false, - selections: [ - v4 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'main', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'replies', - storageKey: null, - }, - ], - storageKey: null, - }, - v6 = [v3 /*: any*/, v5 /*: any*/], - v7 = { - alias: null, - args: null, - concreteType: 'Comment', - kind: 'LinkedField', - name: 'inReplyTo', - plural: false, - selections: v6 /*: any*/, - storageKey: null, - }, - v8 = { - alias: null, - args: null, - concreteType: 'ErrorType', - kind: 'LinkedField', - name: 'errors', - plural: true, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'field', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'messages', - storageKey: null, - }, - ], - storageKey: null, - }, - v9 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'pk', - storageKey: null, - }, - v10 = [v4 /*: any*/] - return { - fragment: { - argumentDefinitions: [v0 /*: any*/, v1 /*: any*/], - kind: 'Fragment', - metadata: null, - name: 'CommentCreateMutation', - selections: [ - { - alias: null, - args: v2 /*: any*/, - concreteType: 'CommentCreatePayload', - kind: 'LinkedField', - name: 'commentCreate', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'CommentEdge', - kind: 'LinkedField', - name: 'comment', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Comment', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v3 /*: any*/, - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'target', - plural: false, - selections: v6 /*: any*/, - storageKey: null, - }, - v7 /*: any*/, - { - args: null, - kind: 'FragmentSpread', - name: 'CommentItem_comment', - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - v8 /*: any*/, - ], - storageKey: null, - }, - ], - type: 'Mutation', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: [v1 /*: any*/, v0 /*: any*/], - kind: 'Operation', - name: 'CommentCreateMutation', - selections: [ - { - alias: null, - args: v2 /*: any*/, - concreteType: 'CommentCreatePayload', - kind: 'LinkedField', - name: 'commentCreate', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'CommentEdge', - kind: 'LinkedField', - name: 'comment', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Comment', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v3 /*: any*/, - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'target', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v3 /*: any*/, - v5 /*: any*/, - ], - storageKey: null, - }, - v7 /*: any*/, - v9 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'body', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isPinned', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'user', - plural: false, - selections: [ - v3 /*: any*/, - v9 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'fullName', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 50, - }, - { - kind: 'Literal', - name: 'width', - value: 50, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'avatar', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'avatar(height:50,width:50)', - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'created', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'CommentsCount', - kind: 'LinkedField', - name: 'commentsCount', - plural: false, - selections: v10 /*: any*/, - storageKey: null, - }, - { - alias: 'canChange', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'change', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"change")', - }, - { - alias: 'canDelete', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'delete', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"delete")', - }, - { - alias: 'canReport', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'report', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"report")', - }, - { - alias: 'canPin', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'pin', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"pin")', - }, - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: null, - concreteType: 'ReactionsCount', - kind: 'LinkedField', - name: 'reactionsCount', - plural: false, - selections: v10 /*: any*/, - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Reaction', - kind: 'LinkedField', - name: 'myReaction', - plural: false, - selections: [ - v3 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'reactionType', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'ReactionsInterface', - abstractKey: '__isReactionsInterface', - }, - { - kind: 'TypeDiscriminator', - abstractKey: '__isCommentsInterface', - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - filters: null, - handle: 'prependEdge', - key: '', - kind: 'LinkedHandle', - name: 'comment', - handleArgs: [ - { - kind: 'Variable', - name: 'connections', - variableName: 'connections', - }, - ], - }, - v8 /*: any*/, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: '1df6b1cc4ffb8c4f9160a80391bb797e', - id: null, - metadata: {}, - name: 'CommentCreateMutation', - operationKind: 'mutation', - text: 'mutation CommentCreateMutation(\n $input: CommentCreateInput!\n) {\n commentCreate(input: $input) {\n comment {\n node {\n id\n target {\n __typename\n id\n commentsCount {\n total\n main\n replies\n }\n }\n inReplyTo {\n id\n commentsCount {\n total\n main\n replies\n }\n }\n ...CommentItem_comment\n }\n }\n errors {\n field\n messages\n }\n }\n}\n\nfragment CommentItem_comment on Comment {\n id\n pk\n body\n isPinned\n user {\n id\n pk\n fullName\n avatar(width: 50, height: 50) {\n url\n }\n }\n created\n commentsCount {\n total\n }\n canChange: hasPerm(perm: "change")\n canDelete: hasPerm(perm: "delete")\n canReport: hasPerm(perm: "report")\n canPin: hasPerm(perm: "pin")\n ...ReactionButton_target\n ...CommentItem_target\n}\n\nfragment CommentItem_target on CommentsInterface {\n __isCommentsInterface: __typename\n id\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n __isReactionsInterface: __typename\n id\n reactionsCount {\n total\n }\n myReaction {\n id\n reactionType\n }\n}\n', - }, + "type": "Mutation", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": [ + (v1/*: any*/), + (v0/*: any*/) + ], + "kind": "Operation", + "name": "CommentCreateMutation", + "selections": [ + { + "alias": null, + "args": (v2/*: any*/), + "concreteType": "CommentCreatePayload", + "kind": "LinkedField", + "name": "commentCreate", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "CommentEdge", + "kind": "LinkedField", + "name": "comment", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Comment", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "target", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + }, + (v3/*: any*/), + (v5/*: any*/) + ], + "storageKey": null + }, + (v7/*: any*/), + (v9/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "body", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isPinned", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "user", + "plural": false, + "selections": [ + (v3/*: any*/), + (v9/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "fullName", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 50 + }, + { + "kind": "Literal", + "name": "width", + "value": 50 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "avatar", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "avatar(height:50,width:50)" + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "created", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "CommentsCount", + "kind": "LinkedField", + "name": "commentsCount", + "plural": false, + "selections": (v10/*: any*/), + "storageKey": null + }, + { + "alias": "canChange", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "change" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"change\")" + }, + { + "alias": "canDelete", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "delete" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"delete\")" + }, + { + "alias": "canReport", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "report" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"report\")" + }, + { + "alias": "canPin", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "pin" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"pin\")" + }, + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ReactionsCount", + "kind": "LinkedField", + "name": "reactionsCount", + "plural": false, + "selections": (v10/*: any*/), + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Reaction", + "kind": "LinkedField", + "name": "myReaction", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "reactionType", + "storageKey": null + } + ], + "storageKey": null + } + ], + "type": "ReactionsInterface", + "abstractKey": "__isReactionsInterface" + }, + { + "kind": "TypeDiscriminator", + "abstractKey": "__isCommentsInterface" + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "filters": null, + "handle": "prependEdge", + "key": "", + "kind": "LinkedHandle", + "name": "comment", + "handleArgs": [ + { + "kind": "Variable", + "name": "connections", + "variableName": "connections" + } + ] + }, + (v8/*: any*/) + ], + "storageKey": null + } + ] + }, + "params": { + "cacheID": "1df6b1cc4ffb8c4f9160a80391bb797e", + "id": null, + "metadata": {}, + "name": "CommentCreateMutation", + "operationKind": "mutation", + "text": "mutation CommentCreateMutation(\n $input: CommentCreateInput!\n) {\n commentCreate(input: $input) {\n comment {\n node {\n id\n target {\n __typename\n id\n commentsCount {\n total\n main\n replies\n }\n }\n inReplyTo {\n id\n commentsCount {\n total\n main\n replies\n }\n }\n ...CommentItem_comment\n }\n }\n errors {\n field\n messages\n }\n }\n}\n\nfragment CommentItem_comment on Comment {\n id\n pk\n body\n isPinned\n user {\n id\n pk\n fullName\n avatar(width: 50, height: 50) {\n url\n }\n }\n created\n commentsCount {\n total\n }\n canChange: hasPerm(perm: \"change\")\n canDelete: hasPerm(perm: \"delete\")\n canReport: hasPerm(perm: \"report\")\n canPin: hasPerm(perm: \"pin\")\n ...ReactionButton_target\n ...CommentItem_target\n}\n\nfragment CommentItem_target on CommentsInterface {\n __isCommentsInterface: __typename\n id\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n __isReactionsInterface: __typename\n id\n reactionsCount {\n total\n }\n myReaction {\n id\n reactionType\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = 'a8c11febd85db3454fcae2f3629bdff2' +(node as any).hash = "a8c11febd85db3454fcae2f3629bdff2"; -export default node +export default node; diff --git a/packages/components/__generated__/CommentDeleteMutation.graphql.ts b/packages/components/__generated__/CommentDeleteMutation.graphql.ts index 9a6a2ecb..be6b964e 100644 --- a/packages/components/__generated__/CommentDeleteMutation.graphql.ts +++ b/packages/components/__generated__/CommentDeleteMutation.graphql.ts @@ -5,222 +5,215 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Mutation } from 'relay-runtime' +import { ConcreteRequest, Mutation } from 'relay-runtime'; export type CommentDeleteMutation$variables = { - id: string -} + id: string; +}; export type CommentDeleteMutation$data = { - readonly commentDelete: - | { - readonly deletedId: string | null | undefined - readonly inReplyTo: - | { - readonly commentsCount: { - readonly main: number | null | undefined - readonly replies: number | null | undefined - readonly total: number | null | undefined - } - readonly id: string - } - | null - | undefined - readonly target: - | { - readonly commentsCount: { - readonly main: number | null | undefined - readonly replies: number | null | undefined - readonly total: number | null | undefined - } - readonly id: string - } - | null - | undefined - } - | null - | undefined -} + readonly commentDelete: { + readonly deletedId: string | null | undefined; + readonly inReplyTo: { + readonly commentsCount: { + readonly main: number | null | undefined; + readonly replies: number | null | undefined; + readonly total: number | null | undefined; + }; + readonly id: string; + } | null | undefined; + readonly target: { + readonly commentsCount: { + readonly main: number | null | undefined; + readonly replies: number | null | undefined; + readonly total: number | null | undefined; + }; + readonly id: string; + } | null | undefined; + } | null | undefined; +}; export type CommentDeleteMutation = { - response: CommentDeleteMutation$data - variables: CommentDeleteMutation$variables -} + response: CommentDeleteMutation$data; + variables: CommentDeleteMutation$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "id" + } +], +v1 = [ + { + "fields": [ { - defaultValue: null, - kind: 'LocalArgument', - name: 'id', - }, + "kind": "Variable", + "name": "id", + "variableName": "id" + } ], - v1 = [ + "kind": "ObjectValue", + "name": "input" + } +], +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "deletedId", + "storageKey": null +}, +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v4 = { + "alias": null, + "args": null, + "concreteType": "CommentsCount", + "kind": "LinkedField", + "name": "commentsCount", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "total", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "main", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "replies", + "storageKey": null + } + ], + "storageKey": null +}, +v5 = [ + (v3/*: any*/), + (v4/*: any*/) +], +v6 = { + "alias": null, + "args": null, + "concreteType": "Comment", + "kind": "LinkedField", + "name": "inReplyTo", + "plural": false, + "selections": (v5/*: any*/), + "storageKey": null +}; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "CommentDeleteMutation", + "selections": [ { - fields: [ + "alias": null, + "args": (v1/*: any*/), + "concreteType": "CommentDeletePayload", + "kind": "LinkedField", + "name": "commentDelete", + "plural": false, + "selections": [ + (v2/*: any*/), { - kind: 'Variable', - name: 'id', - variableName: 'id', + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "target", + "plural": false, + "selections": (v5/*: any*/), + "storageKey": null }, + (v6/*: any*/) ], - kind: 'ObjectValue', - name: 'input', - }, + "storageKey": null + } ], - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'deletedId', - storageKey: null, - }, - v3 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v4 = { - alias: null, - args: null, - concreteType: 'CommentsCount', - kind: 'LinkedField', - name: 'commentsCount', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'total', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'main', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'replies', - storageKey: null, - }, - ], - storageKey: null, - }, - v5 = [v3 /*: any*/, v4 /*: any*/], - v6 = { - alias: null, - args: null, - concreteType: 'Comment', - kind: 'LinkedField', - name: 'inReplyTo', - plural: false, - selections: v5 /*: any*/, - storageKey: null, - } - return { - fragment: { - argumentDefinitions: v0 /*: any*/, - kind: 'Fragment', - metadata: null, - name: 'CommentDeleteMutation', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'CommentDeletePayload', - kind: 'LinkedField', - name: 'commentDelete', - plural: false, - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'target', - plural: false, - selections: v5 /*: any*/, - storageKey: null, - }, - v6 /*: any*/, - ], - storageKey: null, - }, - ], - type: 'Mutation', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: v0 /*: any*/, - kind: 'Operation', - name: 'CommentDeleteMutation', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'CommentDeletePayload', - kind: 'LinkedField', - name: 'commentDelete', - plural: false, - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - filters: null, - handle: 'deleteRecord', - key: '', - kind: 'ScalarHandle', - name: 'deletedId', - }, - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'target', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v3 /*: any*/, - v4 /*: any*/, - ], - storageKey: null, - }, - v6 /*: any*/, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: '3f9b66fbbc156f14c485bd1a520b7c8c', - id: null, - metadata: {}, - name: 'CommentDeleteMutation', - operationKind: 'mutation', - text: 'mutation CommentDeleteMutation(\n $id: ID!\n) {\n commentDelete(input: {id: $id}) {\n deletedId\n target {\n __typename\n id\n commentsCount {\n total\n main\n replies\n }\n }\n inReplyTo {\n id\n commentsCount {\n total\n main\n replies\n }\n }\n }\n}\n', - }, + "type": "Mutation", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "CommentDeleteMutation", + "selections": [ + { + "alias": null, + "args": (v1/*: any*/), + "concreteType": "CommentDeletePayload", + "kind": "LinkedField", + "name": "commentDelete", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "filters": null, + "handle": "deleteRecord", + "key": "", + "kind": "ScalarHandle", + "name": "deletedId" + }, + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "target", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + }, + (v3/*: any*/), + (v4/*: any*/) + ], + "storageKey": null + }, + (v6/*: any*/) + ], + "storageKey": null + } + ] + }, + "params": { + "cacheID": "3f9b66fbbc156f14c485bd1a520b7c8c", + "id": null, + "metadata": {}, + "name": "CommentDeleteMutation", + "operationKind": "mutation", + "text": "mutation CommentDeleteMutation(\n $id: ID!\n) {\n commentDelete(input: {id: $id}) {\n deletedId\n target {\n __typename\n id\n commentsCount {\n total\n main\n replies\n }\n }\n inReplyTo {\n id\n commentsCount {\n total\n main\n replies\n }\n }\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = '453e11c9b3acd12fc26471e671726bfc' +(node as any).hash = "453e11c9b3acd12fc26471e671726bfc"; -export default node +export default node; diff --git a/packages/components/__generated__/CommentItemRefetchQuery.graphql.ts b/packages/components/__generated__/CommentItemRefetchQuery.graphql.ts index 7c9a8e27..dda73848 100644 --- a/packages/components/__generated__/CommentItemRefetchQuery.graphql.ts +++ b/packages/components/__generated__/CommentItemRefetchQuery.graphql.ts @@ -5,447 +5,449 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type CommentItemRefetchQuery$variables = { - id: string - isRepliesExpanded?: boolean | null | undefined -} + id: string; + isRepliesExpanded?: boolean | null | undefined; +}; export type CommentItemRefetchQuery$data = { - readonly node: - | { - readonly ' $fragmentSpreads': FragmentRefs<'CommentItem_comment'> - } - | null - | undefined -} + readonly node: { + readonly " $fragmentSpreads": FragmentRefs<"CommentItem_comment">; + } | null | undefined; +}; export type CommentItemRefetchQuery = { - response: CommentItemRefetchQuery$data - variables: CommentItemRefetchQuery$variables -} + response: CommentItemRefetchQuery$data; + variables: CommentItemRefetchQuery$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'id', - }, - v1 = { - defaultValue: false, - kind: 'LocalArgument', - name: 'isRepliesExpanded', - }, - v2 = [ - { - kind: 'Variable', - name: 'id', - variableName: 'id', - }, - ], - v3 = { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v4 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v5 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'pk', - storageKey: null, - }, - v6 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'body', - storageKey: null, - }, - v7 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isPinned', - storageKey: null, - }, - v8 = { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'user', - plural: false, - selections: [ - v4 /*: any*/, - v5 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'fullName', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 50, - }, - { - kind: 'Literal', - name: 'width', - value: 50, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'avatar', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'avatar(height:50,width:50)', - }, - ], - storageKey: null, - }, - v9 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'created', - storageKey: null, - }, - v10 = [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'total', - storageKey: null, - }, - ], - v11 = { - alias: null, - args: null, - concreteType: 'CommentsCount', - kind: 'LinkedField', - name: 'commentsCount', - plural: false, - selections: v10 /*: any*/, - storageKey: null, +const node: ConcreteRequest = (function(){ +var v0 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "id" +}, +v1 = { + "defaultValue": false, + "kind": "LocalArgument", + "name": "isRepliesExpanded" +}, +v2 = [ + { + "kind": "Variable", + "name": "id", + "variableName": "id" + } +], +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null +}, +v4 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v5 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "pk", + "storageKey": null +}, +v6 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "body", + "storageKey": null +}, +v7 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isPinned", + "storageKey": null +}, +v8 = { + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "user", + "plural": false, + "selections": [ + (v4/*: any*/), + (v5/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "fullName", + "storageKey": null }, - v12 = { - alias: 'canChange', - args: [ + { + "alias": null, + "args": [ { - kind: 'Literal', - name: 'perm', - value: 'change', + "kind": "Literal", + "name": "height", + "value": 50 }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"change")', - }, - v13 = { - alias: 'canDelete', - args: [ { - kind: 'Literal', - name: 'perm', - value: 'delete', - }, + "kind": "Literal", + "name": "width", + "value": 50 + } ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"delete")', - }, - v14 = { - alias: 'canReport', - args: [ + "concreteType": "File", + "kind": "LinkedField", + "name": "avatar", + "plural": false, + "selections": [ { - kind: 'Literal', - name: 'perm', - value: 'report', - }, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"report")', + "storageKey": "avatar(height:50,width:50)" + } + ], + "storageKey": null +}, +v9 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "created", + "storageKey": null +}, +v10 = [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "total", + "storageKey": null + } +], +v11 = { + "alias": null, + "args": null, + "concreteType": "CommentsCount", + "kind": "LinkedField", + "name": "commentsCount", + "plural": false, + "selections": (v10/*: any*/), + "storageKey": null +}, +v12 = { + "alias": "canChange", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "change" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"change\")" +}, +v13 = { + "alias": "canDelete", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "delete" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"delete\")" +}, +v14 = { + "alias": "canReport", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "report" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"report\")" +}, +v15 = { + "alias": "canPin", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "pin" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"pin\")" +}, +v16 = [ + { + "kind": "Literal", + "name": "first", + "value": 5 + }, + { + "kind": "Literal", + "name": "orderBy", + "value": "-is_pinned,-created" + } +], +v17 = { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ReactionsCount", + "kind": "LinkedField", + "name": "reactionsCount", + "plural": false, + "selections": (v10/*: any*/), + "storageKey": null }, - v15 = { - alias: 'canPin', - args: [ + { + "alias": null, + "args": null, + "concreteType": "Reaction", + "kind": "LinkedField", + "name": "myReaction", + "plural": false, + "selections": [ + (v4/*: any*/), { - kind: 'Literal', - name: 'perm', - value: 'pin', - }, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "reactionType", + "storageKey": null + } ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"pin")', - }, - v16 = [ - { - kind: 'Literal', - name: 'first', - value: 5, - }, + "storageKey": null + } + ], + "type": "ReactionsInterface", + "abstractKey": "__isReactionsInterface" +}, +v18 = { + "kind": "TypeDiscriminator", + "abstractKey": "__isCommentsInterface" +}; +return { + "fragment": { + "argumentDefinitions": [ + (v0/*: any*/), + (v1/*: any*/) + ], + "kind": "Fragment", + "metadata": null, + "name": "CommentItemRefetchQuery", + "selections": [ { - kind: 'Literal', - name: 'orderBy', - value: '-is_pinned,-created', - }, + "alias": null, + "args": (v2/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "args": [ + { + "kind": "Variable", + "name": "isRepliesExpanded", + "variableName": "isRepliesExpanded" + } + ], + "kind": "FragmentSpread", + "name": "CommentItem_comment" + } + ], + "storageKey": null + } ], - v17 = { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: null, - concreteType: 'ReactionsCount', - kind: 'LinkedField', - name: 'reactionsCount', - plural: false, - selections: v10 /*: any*/, - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Reaction', - kind: 'LinkedField', - name: 'myReaction', - plural: false, - selections: [ - v4 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'reactionType', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'ReactionsInterface', - abstractKey: '__isReactionsInterface', - }, - v18 = { - kind: 'TypeDiscriminator', - abstractKey: '__isCommentsInterface', - } - return { - fragment: { - argumentDefinitions: [v0 /*: any*/, v1 /*: any*/], - kind: 'Fragment', - metadata: null, - name: 'CommentItemRefetchQuery', - selections: [ - { - alias: null, - args: v2 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - args: [ - { - kind: 'Variable', - name: 'isRepliesExpanded', - variableName: 'isRepliesExpanded', - }, - ], - kind: 'FragmentSpread', - name: 'CommentItem_comment', - }, - ], - storageKey: null, - }, - ], - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: [v1 /*: any*/, v0 /*: any*/], - kind: 'Operation', - name: 'CommentItemRefetchQuery', - selections: [ - { - alias: null, - args: v2 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v3 /*: any*/, - v4 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - v5 /*: any*/, - v6 /*: any*/, - v7 /*: any*/, - v8 /*: any*/, - v9 /*: any*/, - v11 /*: any*/, - v12 /*: any*/, - v13 /*: any*/, - v14 /*: any*/, - v15 /*: any*/, - { - condition: 'isRepliesExpanded', - kind: 'Condition', - passingValue: true, - selections: [ - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: v16 /*: any*/, - concreteType: 'CommentConnection', - kind: 'LinkedField', - name: 'comments', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'CommentEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'Comment', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v4 /*: any*/, - v7 /*: any*/, - v5 /*: any*/, - v6 /*: any*/, - v8 /*: any*/, - v9 /*: any*/, - v11 /*: any*/, - v12 /*: any*/, - v13 /*: any*/, - v14 /*: any*/, - v15 /*: any*/, - v3 /*: any*/, - v17 /*: any*/, - v18 /*: any*/, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: 'comments(first:5,orderBy:"-is_pinned,-created")', - }, - { - alias: null, - args: v16 /*: any*/, - filters: [], - handle: 'connection', - key: 'CommentsList_comments', - kind: 'LinkedHandle', - name: 'comments', - }, - ], - type: 'CommentsInterface', - abstractKey: '__isCommentsInterface', - }, - ], - }, - v17 /*: any*/, - v18 /*: any*/, - ], - type: 'Comment', - abstractKey: null, - }, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: 'df527927045fb9f7719d99ca6e66ec58', - id: null, - metadata: {}, - name: 'CommentItemRefetchQuery', - operationKind: 'query', - text: 'query CommentItemRefetchQuery(\n $isRepliesExpanded: Boolean = false\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...CommentItem_comment_2aaWJ5\n id\n }\n}\n\nfragment CommentItem_comment on Comment {\n id\n pk\n body\n isPinned\n user {\n id\n pk\n fullName\n avatar(width: 50, height: 50) {\n url\n }\n }\n created\n commentsCount {\n total\n }\n canChange: hasPerm(perm: "change")\n canDelete: hasPerm(perm: "delete")\n canReport: hasPerm(perm: "report")\n canPin: hasPerm(perm: "pin")\n ...ReactionButton_target\n ...CommentItem_target\n}\n\nfragment CommentItem_comment_2aaWJ5 on Comment {\n id\n pk\n body\n isPinned\n user {\n id\n pk\n fullName\n avatar(width: 50, height: 50) {\n url\n }\n }\n created\n commentsCount {\n total\n }\n canChange: hasPerm(perm: "change")\n canDelete: hasPerm(perm: "delete")\n canReport: hasPerm(perm: "report")\n canPin: hasPerm(perm: "pin")\n ...CommentsList_comments @include(if: $isRepliesExpanded)\n ...ReactionButton_target\n ...CommentItem_target\n}\n\nfragment CommentItem_target on CommentsInterface {\n __isCommentsInterface: __typename\n id\n}\n\nfragment CommentsList_comments on CommentsInterface {\n __isCommentsInterface: __typename\n id\n commentsCount {\n total\n }\n comments(first: 5, orderBy: "-is_pinned,-created") {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n node {\n id\n isPinned\n ...CommentItem_comment\n __typename\n }\n cursor\n }\n }\n ...CommentItem_target\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n __isReactionsInterface: __typename\n id\n reactionsCount {\n total\n }\n myReaction {\n id\n reactionType\n }\n}\n', - }, + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": [ + (v1/*: any*/), + (v0/*: any*/) + ], + "kind": "Operation", + "name": "CommentItemRefetchQuery", + "selections": [ + { + "alias": null, + "args": (v2/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v3/*: any*/), + (v4/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + (v5/*: any*/), + (v6/*: any*/), + (v7/*: any*/), + (v8/*: any*/), + (v9/*: any*/), + (v11/*: any*/), + (v12/*: any*/), + (v13/*: any*/), + (v14/*: any*/), + (v15/*: any*/), + { + "condition": "isRepliesExpanded", + "kind": "Condition", + "passingValue": true, + "selections": [ + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": (v16/*: any*/), + "concreteType": "CommentConnection", + "kind": "LinkedField", + "name": "comments", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "CommentEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Comment", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v4/*: any*/), + (v7/*: any*/), + (v5/*: any*/), + (v6/*: any*/), + (v8/*: any*/), + (v9/*: any*/), + (v11/*: any*/), + (v12/*: any*/), + (v13/*: any*/), + (v14/*: any*/), + (v15/*: any*/), + (v3/*: any*/), + (v17/*: any*/), + (v18/*: any*/) + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": "comments(first:5,orderBy:\"-is_pinned,-created\")" + }, + { + "alias": null, + "args": (v16/*: any*/), + "filters": [], + "handle": "connection", + "key": "CommentsList_comments", + "kind": "LinkedHandle", + "name": "comments" + } + ], + "type": "CommentsInterface", + "abstractKey": "__isCommentsInterface" + } + ] + }, + (v17/*: any*/), + (v18/*: any*/) + ], + "type": "Comment", + "abstractKey": null + } + ], + "storageKey": null + } + ] + }, + "params": { + "cacheID": "df527927045fb9f7719d99ca6e66ec58", + "id": null, + "metadata": {}, + "name": "CommentItemRefetchQuery", + "operationKind": "query", + "text": "query CommentItemRefetchQuery(\n $isRepliesExpanded: Boolean = false\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...CommentItem_comment_2aaWJ5\n id\n }\n}\n\nfragment CommentItem_comment on Comment {\n id\n pk\n body\n isPinned\n user {\n id\n pk\n fullName\n avatar(width: 50, height: 50) {\n url\n }\n }\n created\n commentsCount {\n total\n }\n canChange: hasPerm(perm: \"change\")\n canDelete: hasPerm(perm: \"delete\")\n canReport: hasPerm(perm: \"report\")\n canPin: hasPerm(perm: \"pin\")\n ...ReactionButton_target\n ...CommentItem_target\n}\n\nfragment CommentItem_comment_2aaWJ5 on Comment {\n id\n pk\n body\n isPinned\n user {\n id\n pk\n fullName\n avatar(width: 50, height: 50) {\n url\n }\n }\n created\n commentsCount {\n total\n }\n canChange: hasPerm(perm: \"change\")\n canDelete: hasPerm(perm: \"delete\")\n canReport: hasPerm(perm: \"report\")\n canPin: hasPerm(perm: \"pin\")\n ...CommentsList_comments @include(if: $isRepliesExpanded)\n ...ReactionButton_target\n ...CommentItem_target\n}\n\nfragment CommentItem_target on CommentsInterface {\n __isCommentsInterface: __typename\n id\n}\n\nfragment CommentsList_comments on CommentsInterface {\n __isCommentsInterface: __typename\n id\n commentsCount {\n total\n }\n comments(first: 5, orderBy: \"-is_pinned,-created\") {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n node {\n id\n isPinned\n ...CommentItem_comment\n __typename\n }\n cursor\n }\n }\n ...CommentItem_target\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n __isReactionsInterface: __typename\n id\n reactionsCount {\n total\n }\n myReaction {\n id\n reactionType\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = '6b85079a50a9d42f07d0859fcf536a61' +(node as any).hash = "6b85079a50a9d42f07d0859fcf536a61"; -export default node +export default node; diff --git a/packages/components/__generated__/CommentItemWithQuery.graphql.ts b/packages/components/__generated__/CommentItemWithQuery.graphql.ts index e9d8504f..5126a9f2 100644 --- a/packages/components/__generated__/CommentItemWithQuery.graphql.ts +++ b/packages/components/__generated__/CommentItemWithQuery.graphql.ts @@ -5,412 +5,411 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' -export type CommentItemWithQuery$variables = Record +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; +export type CommentItemWithQuery$variables = Record; export type CommentItemWithQuery$data = { - readonly target: - | { - readonly ' $fragmentSpreads': FragmentRefs<'CommentItem_comment'> - } - | null - | undefined -} + readonly target: { + readonly " $fragmentSpreads": FragmentRefs<"CommentItem_comment">; + } | null | undefined; +}; export type CommentItemWithQuery = { - response: CommentItemWithQuery$data - variables: CommentItemWithQuery$variables -} + response: CommentItemWithQuery$data; + variables: CommentItemWithQuery$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "Literal", + "name": "id", + "value": "test-id" + } +], +v1 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "pk", + "storageKey": null +}, +v3 = [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "total", + "storageKey": null + } +], +v4 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "String" +}, +v5 = { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "String" +}, +v6 = { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Boolean" +}, +v7 = { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Int" +}, +v8 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "ID" +}, +v9 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "Int" +}; +return { + "fragment": { + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "CommentItemWithQuery", + "selections": [ { - kind: 'Literal', - name: 'id', - value: 'test-id', - }, + "alias": "target", + "args": (v0/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "args": null, + "kind": "FragmentSpread", + "name": "CommentItem_comment" + } + ], + "storageKey": "node(id:\"test-id\")" + } ], - v1 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'pk', - storageKey: null, - }, - v3 = [ + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": [], + "kind": "Operation", + "name": "CommentItemWithQuery", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'total', - storageKey: null, - }, - ], - v4 = { - enumValues: null, - nullable: false, - plural: false, - type: 'String', - }, - v5 = { - enumValues: null, - nullable: true, - plural: false, - type: 'String', - }, - v6 = { - enumValues: null, - nullable: true, - plural: false, - type: 'Boolean', - }, - v7 = { - enumValues: null, - nullable: true, - plural: false, - type: 'Int', - }, - v8 = { - enumValues: null, - nullable: false, - plural: false, - type: 'ID', - }, - v9 = { - enumValues: null, - nullable: false, - plural: false, - type: 'Int', - } - return { - fragment: { - argumentDefinitions: [], - kind: 'Fragment', - metadata: null, - name: 'CommentItemWithQuery', - selections: [ - { - alias: 'target', - args: v0 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - args: null, - kind: 'FragmentSpread', - name: 'CommentItem_comment', - }, - ], - storageKey: 'node(id:"test-id")', + "alias": "target", + "args": (v0/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + }, + (v1/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "body", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isPinned", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "user", + "plural": false, + "selections": [ + (v1/*: any*/), + (v2/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "fullName", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 50 + }, + { + "kind": "Literal", + "name": "width", + "value": 50 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "avatar", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "avatar(height:50,width:50)" + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "created", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "CommentsCount", + "kind": "LinkedField", + "name": "commentsCount", + "plural": false, + "selections": (v3/*: any*/), + "storageKey": null + }, + { + "alias": "canChange", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "change" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"change\")" + }, + { + "alias": "canDelete", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "delete" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"delete\")" + }, + { + "alias": "canReport", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "report" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"report\")" + }, + { + "alias": "canPin", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "pin" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"pin\")" + }, + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ReactionsCount", + "kind": "LinkedField", + "name": "reactionsCount", + "plural": false, + "selections": (v3/*: any*/), + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Reaction", + "kind": "LinkedField", + "name": "myReaction", + "plural": false, + "selections": [ + (v1/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "reactionType", + "storageKey": null + } + ], + "storageKey": null + } + ], + "type": "ReactionsInterface", + "abstractKey": "__isReactionsInterface" + }, + { + "kind": "TypeDiscriminator", + "abstractKey": "__isCommentsInterface" + } + ], + "type": "Comment", + "abstractKey": null + } + ], + "storageKey": "node(id:\"test-id\")" + } + ] + }, + "params": { + "cacheID": "5163abd4a91f774725f50d7ce4c25b6e", + "id": null, + "metadata": { + "relayTestingSelectionTypeInfo": { + "target": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Node" }, - ], - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: [], - kind: 'Operation', - name: 'CommentItemWithQuery', - selections: [ - { - alias: 'target', - args: v0 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v1 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'body', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isPinned', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'user', - plural: false, - selections: [ - v1 /*: any*/, - v2 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'fullName', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 50, - }, - { - kind: 'Literal', - name: 'width', - value: 50, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'avatar', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'avatar(height:50,width:50)', - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'created', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'CommentsCount', - kind: 'LinkedField', - name: 'commentsCount', - plural: false, - selections: v3 /*: any*/, - storageKey: null, - }, - { - alias: 'canChange', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'change', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"change")', - }, - { - alias: 'canDelete', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'delete', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"delete")', - }, - { - alias: 'canReport', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'report', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"report")', - }, - { - alias: 'canPin', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'pin', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"pin")', - }, - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: null, - concreteType: 'ReactionsCount', - kind: 'LinkedField', - name: 'reactionsCount', - plural: false, - selections: v3 /*: any*/, - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Reaction', - kind: 'LinkedField', - name: 'myReaction', - plural: false, - selections: [ - v1 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'reactionType', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'ReactionsInterface', - abstractKey: '__isReactionsInterface', - }, - { - kind: 'TypeDiscriminator', - abstractKey: '__isCommentsInterface', - }, - ], - type: 'Comment', - abstractKey: null, - }, + "target.__isCommentsInterface": (v4/*: any*/), + "target.__isReactionsInterface": (v4/*: any*/), + "target.__typename": (v4/*: any*/), + "target.body": (v5/*: any*/), + "target.canChange": (v6/*: any*/), + "target.canDelete": (v6/*: any*/), + "target.canPin": (v6/*: any*/), + "target.canReport": (v6/*: any*/), + "target.commentsCount": { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "CommentsCount" + }, + "target.commentsCount.total": (v7/*: any*/), + "target.created": { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "DateTime" + }, + "target.id": (v8/*: any*/), + "target.isPinned": { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "Boolean" + }, + "target.myReaction": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Reaction" + }, + "target.myReaction.id": (v8/*: any*/), + "target.myReaction.reactionType": { + "enumValues": [ + "LIKE", + "DISLIKE" ], - storageKey: 'node(id:"test-id")', + "nullable": true, + "plural": false, + "type": "ReactionTypes" }, - ], - }, - params: { - cacheID: '5163abd4a91f774725f50d7ce4c25b6e', - id: null, - metadata: { - relayTestingSelectionTypeInfo: { - target: { - enumValues: null, - nullable: true, - plural: false, - type: 'Node', - }, - 'target.__isCommentsInterface': v4 /*: any*/, - 'target.__isReactionsInterface': v4 /*: any*/, - 'target.__typename': v4 /*: any*/, - 'target.body': v5 /*: any*/, - 'target.canChange': v6 /*: any*/, - 'target.canDelete': v6 /*: any*/, - 'target.canPin': v6 /*: any*/, - 'target.canReport': v6 /*: any*/, - 'target.commentsCount': { - enumValues: null, - nullable: false, - plural: false, - type: 'CommentsCount', - }, - 'target.commentsCount.total': v7 /*: any*/, - 'target.created': { - enumValues: null, - nullable: false, - plural: false, - type: 'DateTime', - }, - 'target.id': v8 /*: any*/, - 'target.isPinned': { - enumValues: null, - nullable: false, - plural: false, - type: 'Boolean', - }, - 'target.myReaction': { - enumValues: null, - nullable: true, - plural: false, - type: 'Reaction', - }, - 'target.myReaction.id': v8 /*: any*/, - 'target.myReaction.reactionType': { - enumValues: ['LIKE', 'DISLIKE'], - nullable: true, - plural: false, - type: 'ReactionTypes', - }, - 'target.pk': v9 /*: any*/, - 'target.reactionsCount': { - enumValues: null, - nullable: true, - plural: false, - type: 'ReactionsCount', - }, - 'target.reactionsCount.total': v7 /*: any*/, - 'target.user': { - enumValues: null, - nullable: true, - plural: false, - type: 'User', - }, - 'target.user.avatar': { - enumValues: null, - nullable: true, - plural: false, - type: 'File', - }, - 'target.user.avatar.url': v4 /*: any*/, - 'target.user.fullName': v5 /*: any*/, - 'target.user.id': v8 /*: any*/, - 'target.user.pk': v9 /*: any*/, + "target.pk": (v9/*: any*/), + "target.reactionsCount": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "ReactionsCount" + }, + "target.reactionsCount.total": (v7/*: any*/), + "target.user": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "User" }, - }, - name: 'CommentItemWithQuery', - operationKind: 'query', - text: 'query CommentItemWithQuery {\n target: node(id: "test-id") {\n __typename\n ...CommentItem_comment\n id\n }\n}\n\nfragment CommentItem_comment on Comment {\n id\n pk\n body\n isPinned\n user {\n id\n pk\n fullName\n avatar(width: 50, height: 50) {\n url\n }\n }\n created\n commentsCount {\n total\n }\n canChange: hasPerm(perm: "change")\n canDelete: hasPerm(perm: "delete")\n canReport: hasPerm(perm: "report")\n canPin: hasPerm(perm: "pin")\n ...ReactionButton_target\n ...CommentItem_target\n}\n\nfragment CommentItem_target on CommentsInterface {\n __isCommentsInterface: __typename\n id\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n __isReactionsInterface: __typename\n id\n reactionsCount {\n total\n }\n myReaction {\n id\n reactionType\n }\n}\n', + "target.user.avatar": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "File" + }, + "target.user.avatar.url": (v4/*: any*/), + "target.user.fullName": (v5/*: any*/), + "target.user.id": (v8/*: any*/), + "target.user.pk": (v9/*: any*/) + } }, + "name": "CommentItemWithQuery", + "operationKind": "query", + "text": "query CommentItemWithQuery {\n target: node(id: \"test-id\") {\n __typename\n ...CommentItem_comment\n id\n }\n}\n\nfragment CommentItem_comment on Comment {\n id\n pk\n body\n isPinned\n user {\n id\n pk\n fullName\n avatar(width: 50, height: 50) {\n url\n }\n }\n created\n commentsCount {\n total\n }\n canChange: hasPerm(perm: \"change\")\n canDelete: hasPerm(perm: \"delete\")\n canReport: hasPerm(perm: \"report\")\n canPin: hasPerm(perm: \"pin\")\n ...ReactionButton_target\n ...CommentItem_target\n}\n\nfragment CommentItem_target on CommentsInterface {\n __isCommentsInterface: __typename\n id\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n __isReactionsInterface: __typename\n id\n reactionsCount {\n total\n }\n myReaction {\n id\n reactionType\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = 'b82095e37c4404b9cfe9b3703c7ee2c7' +(node as any).hash = "b82095e37c4404b9cfe9b3703c7ee2c7"; -export default node +export default node; diff --git a/packages/components/__generated__/CommentItem_comment.graphql.ts b/packages/components/__generated__/CommentItem_comment.graphql.ts index 840a0d12..86783760 100644 --- a/packages/components/__generated__/CommentItem_comment.graphql.ts +++ b/packages/components/__generated__/CommentItem_comment.graphql.ts @@ -5,256 +5,249 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ReaderFragment, RefetchableFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ReaderFragment, RefetchableFragment } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type CommentItem_comment$data = { - readonly body: string | null | undefined - readonly canChange: boolean | null | undefined - readonly canDelete: boolean | null | undefined - readonly canPin: boolean | null | undefined - readonly canReport: boolean | null | undefined + readonly body: string | null | undefined; + readonly canChange: boolean | null | undefined; + readonly canDelete: boolean | null | undefined; + readonly canPin: boolean | null | undefined; + readonly canReport: boolean | null | undefined; readonly commentsCount: { - readonly total: number | null | undefined - } - readonly created: any - readonly id: string - readonly isPinned: boolean - readonly pk: number - readonly user: - | { - readonly avatar: - | { - readonly url: string - } - | null - | undefined - readonly fullName: string | null | undefined - readonly id: string - readonly pk: number - } - | null - | undefined - readonly ' $fragmentSpreads': FragmentRefs< - 'CommentItem_target' | 'CommentsList_comments' | 'ReactionButton_target' - > - readonly ' $fragmentType': 'CommentItem_comment' -} + readonly total: number | null | undefined; + }; + readonly created: any; + readonly id: string; + readonly isPinned: boolean; + readonly pk: number; + readonly user: { + readonly avatar: { + readonly url: string; + } | null | undefined; + readonly fullName: string | null | undefined; + readonly id: string; + readonly pk: number; + } | null | undefined; + readonly " $fragmentSpreads": FragmentRefs<"CommentItem_target" | "CommentsList_comments" | "ReactionButton_target">; + readonly " $fragmentType": "CommentItem_comment"; +}; export type CommentItem_comment$key = { - readonly ' $data'?: CommentItem_comment$data - readonly ' $fragmentSpreads': FragmentRefs<'CommentItem_comment'> -} + readonly " $data"?: CommentItem_comment$data; + readonly " $fragmentSpreads": FragmentRefs<"CommentItem_comment">; +}; -const node: ReaderFragment = (function () { - var v0 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v1 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'pk', - storageKey: null, +const node: ReaderFragment = (function(){ +var v0 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v1 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "pk", + "storageKey": null +}; +return { + "argumentDefinitions": [ + { + "defaultValue": false, + "kind": "LocalArgument", + "name": "isRepliesExpanded" + } + ], + "kind": "Fragment", + "metadata": { + "refetch": { + "connection": null, + "fragmentPathInResult": [ + "node" + ], + "operation": require('./CommentItemRefetchQuery.graphql'), + "identifierInfo": { + "identifierField": "id", + "identifierQueryVariableName": "id" + } } - return { - argumentDefinitions: [ - { - defaultValue: false, - kind: 'LocalArgument', - name: 'isRepliesExpanded', - }, - ], - kind: 'Fragment', - metadata: { - refetch: { - connection: null, - fragmentPathInResult: ['node'], - operation: require('./CommentItemRefetchQuery.graphql'), - identifierInfo: { - identifierField: 'id', - identifierQueryVariableName: 'id', + }, + "name": "CommentItem_comment", + "selections": [ + (v0/*: any*/), + (v1/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "body", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isPinned", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "user", + "plural": false, + "selections": [ + (v0/*: any*/), + (v1/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "fullName", + "storageKey": null }, - }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 50 + }, + { + "kind": "Literal", + "name": "width", + "value": 50 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "avatar", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "avatar(height:50,width:50)" + } + ], + "storageKey": null }, - name: 'CommentItem_comment', - selections: [ - v0 /*: any*/, - v1 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'body', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isPinned', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'user', - plural: false, - selections: [ - v0 /*: any*/, - v1 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'fullName', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 50, - }, - { - kind: 'Literal', - name: 'width', - value: 50, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'avatar', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'avatar(height:50,width:50)', - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'created', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'CommentsCount', - kind: 'LinkedField', - name: 'commentsCount', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'total', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: 'canChange', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'change', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"change")', - }, - { - alias: 'canDelete', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'delete', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"delete")', - }, - { - alias: 'canReport', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'report', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"report")', - }, - { - alias: 'canPin', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'pin', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"pin")', - }, - { - condition: 'isRepliesExpanded', - kind: 'Condition', - passingValue: true, - selections: [ - { - args: null, - kind: 'FragmentSpread', - name: 'CommentsList_comments', - }, - ], - }, - { - args: null, - kind: 'FragmentSpread', - name: 'ReactionButton_target', - }, - { - args: null, - kind: 'FragmentSpread', - name: 'CommentItem_target', - }, - ], - type: 'Comment', - abstractKey: null, - } -})() + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "created", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "CommentsCount", + "kind": "LinkedField", + "name": "commentsCount", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "total", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": "canChange", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "change" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"change\")" + }, + { + "alias": "canDelete", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "delete" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"delete\")" + }, + { + "alias": "canReport", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "report" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"report\")" + }, + { + "alias": "canPin", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "pin" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"pin\")" + }, + { + "condition": "isRepliesExpanded", + "kind": "Condition", + "passingValue": true, + "selections": [ + { + "args": null, + "kind": "FragmentSpread", + "name": "CommentsList_comments" + } + ] + }, + { + "args": null, + "kind": "FragmentSpread", + "name": "ReactionButton_target" + }, + { + "args": null, + "kind": "FragmentSpread", + "name": "CommentItem_target" + } + ], + "type": "Comment", + "abstractKey": null +}; +})(); -;(node as any).hash = '6b85079a50a9d42f07d0859fcf536a61' +(node as any).hash = "6b85079a50a9d42f07d0859fcf536a61"; -export default node +export default node; diff --git a/packages/components/__generated__/CommentItem_target.graphql.ts b/packages/components/__generated__/CommentItem_target.graphql.ts index a7cf5dbf..64e1c79a 100644 --- a/packages/components/__generated__/CommentItem_target.graphql.ts +++ b/packages/components/__generated__/CommentItem_target.graphql.ts @@ -5,39 +5,38 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { Fragment, ReaderFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { Fragment, ReaderFragment } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type CommentItem_target$data = { - readonly id: string - readonly ' $fragmentType': 'CommentItem_target' -} + readonly id: string; + readonly " $fragmentType": "CommentItem_target"; +}; export type CommentItem_target$key = { - readonly ' $data'?: CommentItem_target$data - readonly ' $fragmentSpreads': FragmentRefs<'CommentItem_target'> -} + readonly " $data"?: CommentItem_target$data; + readonly " $fragmentSpreads": FragmentRefs<"CommentItem_target">; +}; const node: ReaderFragment = { - argumentDefinitions: [], - kind: 'Fragment', - metadata: null, - name: 'CommentItem_target', - selections: [ + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "CommentItem_target", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null + } ], - type: 'CommentsInterface', - abstractKey: '__isCommentsInterface', -} + "type": "CommentsInterface", + "abstractKey": "__isCommentsInterface" +}; -;(node as any).hash = '6b7c78ab34a5b8f4ef45b6facdfadf6b' +(node as any).hash = "6b7c78ab34a5b8f4ef45b6facdfadf6b"; -export default node +export default node; diff --git a/packages/components/__generated__/CommentPinMutation.graphql.ts b/packages/components/__generated__/CommentPinMutation.graphql.ts index 6c13ea30..fdaec541 100644 --- a/packages/components/__generated__/CommentPinMutation.graphql.ts +++ b/packages/components/__generated__/CommentPinMutation.graphql.ts @@ -5,119 +5,112 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Mutation } from 'relay-runtime' +import { ConcreteRequest, Mutation } from 'relay-runtime'; export type CommentPinMutation$variables = { - id: string -} + id: string; +}; export type CommentPinMutation$data = { - readonly commentPin: - | { - readonly comment: - | { - readonly id: string - readonly isPinned: boolean - } - | null - | undefined - } - | null - | undefined -} + readonly commentPin: { + readonly comment: { + readonly id: string; + readonly isPinned: boolean; + } | null | undefined; + } | null | undefined; +}; export type CommentPinMutation = { - response: CommentPinMutation$data - variables: CommentPinMutation$variables -} + response: CommentPinMutation$data; + variables: CommentPinMutation$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "id" + } +], +v1 = [ + { + "alias": null, + "args": [ { - defaultValue: null, - kind: 'LocalArgument', - name: 'id', - }, + "fields": [ + { + "kind": "Variable", + "name": "id", + "variableName": "id" + } + ], + "kind": "ObjectValue", + "name": "input" + } ], - v1 = [ + "concreteType": "CommentPinPayload", + "kind": "LinkedField", + "name": "commentPin", + "plural": false, + "selections": [ { - alias: null, - args: [ + "alias": null, + "args": null, + "concreteType": "Comment", + "kind": "LinkedField", + "name": "comment", + "plural": false, + "selections": [ { - fields: [ - { - kind: 'Variable', - name: 'id', - variableName: 'id', - }, - ], - kind: 'ObjectValue', - name: 'input', + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null }, - ], - concreteType: 'CommentPinPayload', - kind: 'LinkedField', - name: 'commentPin', - plural: false, - selections: [ { - alias: null, - args: null, - concreteType: 'Comment', - kind: 'LinkedField', - name: 'comment', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isPinned', - storageKey: null, - }, - ], - storageKey: null, - }, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isPinned", + "storageKey": null + } ], - storageKey: null, - }, - ] - return { - fragment: { - argumentDefinitions: v0 /*: any*/, - kind: 'Fragment', - metadata: null, - name: 'CommentPinMutation', - selections: v1 /*: any*/, - type: 'Mutation', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: v0 /*: any*/, - kind: 'Operation', - name: 'CommentPinMutation', - selections: v1 /*: any*/, - }, - params: { - cacheID: 'f52c4201ceaafbbba2ed048338c7b9d6', - id: null, - metadata: {}, - name: 'CommentPinMutation', - operationKind: 'mutation', - text: 'mutation CommentPinMutation(\n $id: ID!\n) {\n commentPin(input: {id: $id}) {\n comment {\n id\n isPinned\n }\n }\n}\n', - }, + "storageKey": null + } + ], + "storageKey": null + } +]; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "CommentPinMutation", + "selections": (v1/*: any*/), + "type": "Mutation", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "CommentPinMutation", + "selections": (v1/*: any*/) + }, + "params": { + "cacheID": "f52c4201ceaafbbba2ed048338c7b9d6", + "id": null, + "metadata": {}, + "name": "CommentPinMutation", + "operationKind": "mutation", + "text": "mutation CommentPinMutation(\n $id: ID!\n) {\n commentPin(input: {id: $id}) {\n comment {\n id\n isPinned\n }\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = '26f8620978ac19cc3f24ec49176a04b6' +(node as any).hash = "26f8620978ac19cc3f24ec49176a04b6"; -export default node +export default node; diff --git a/packages/components/__generated__/CommentUpdateMutation.graphql.ts b/packages/components/__generated__/CommentUpdateMutation.graphql.ts index a2645c33..a6bf4482 100644 --- a/packages/components/__generated__/CommentUpdateMutation.graphql.ts +++ b/packages/components/__generated__/CommentUpdateMutation.graphql.ts @@ -5,476 +5,462 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Mutation } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Mutation } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type CommentUpdateInput = { - body: string - clientMutationId?: string | null | undefined - id: string -} + body: string; + clientMutationId?: string | null | undefined; + id: string; +}; export type CommentUpdateMutation$variables = { - input: CommentUpdateInput -} + input: CommentUpdateInput; +}; export type CommentUpdateMutation$data = { - readonly commentUpdate: - | { - readonly comment: - | { - readonly body: string | null | undefined - readonly id: string - readonly ' $fragmentSpreads': FragmentRefs<'CommentsList_comments'> - } - | null - | undefined - readonly errors: - | ReadonlyArray< - | { - readonly field: string - readonly messages: ReadonlyArray - } - | null - | undefined - > - | null - | undefined - } - | null - | undefined -} + readonly commentUpdate: { + readonly comment: { + readonly body: string | null | undefined; + readonly id: string; + readonly " $fragmentSpreads": FragmentRefs<"CommentsList_comments">; + } | null | undefined; + readonly errors: ReadonlyArray<{ + readonly field: string; + readonly messages: ReadonlyArray; + } | null | undefined> | null | undefined; + } | null | undefined; +}; export type CommentUpdateMutation = { - response: CommentUpdateMutation$data - variables: CommentUpdateMutation$variables -} + response: CommentUpdateMutation$data; + variables: CommentUpdateMutation$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ - { - defaultValue: null, - kind: 'LocalArgument', - name: 'input', - }, - ], - v1 = [ - { - kind: 'Variable', - name: 'input', - variableName: 'input', - }, - ], - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v3 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'body', - storageKey: null, - }, - v4 = { - alias: null, - args: null, - concreteType: 'ErrorType', - kind: 'LinkedField', - name: 'errors', - plural: true, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'field', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'messages', - storageKey: null, - }, - ], - storageKey: null, +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "input" + } +], +v1 = [ + { + "kind": "Variable", + "name": "input", + "variableName": "input" + } +], +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "body", + "storageKey": null +}, +v4 = { + "alias": null, + "args": null, + "concreteType": "ErrorType", + "kind": "LinkedField", + "name": "errors", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "field", + "storageKey": null }, - v5 = [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "messages", + "storageKey": null + } + ], + "storageKey": null +}, +v5 = [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "total", + "storageKey": null + } +], +v6 = { + "alias": null, + "args": null, + "concreteType": "CommentsCount", + "kind": "LinkedField", + "name": "commentsCount", + "plural": false, + "selections": (v5/*: any*/), + "storageKey": null +}, +v7 = [ + { + "kind": "Literal", + "name": "first", + "value": 5 + }, + { + "kind": "Literal", + "name": "orderBy", + "value": "-is_pinned,-created" + } +], +v8 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "pk", + "storageKey": null +}; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "CommentUpdateMutation", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'total', - storageKey: null, - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": "CommentUpdatePayload", + "kind": "LinkedField", + "name": "commentUpdate", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Comment", + "kind": "LinkedField", + "name": "comment", + "plural": false, + "selections": [ + (v2/*: any*/), + (v3/*: any*/), + { + "args": null, + "kind": "FragmentSpread", + "name": "CommentsList_comments" + } + ], + "storageKey": null + }, + (v4/*: any*/) + ], + "storageKey": null + } ], - v6 = { - alias: null, - args: null, - concreteType: 'CommentsCount', - kind: 'LinkedField', - name: 'commentsCount', - plural: false, - selections: v5 /*: any*/, - storageKey: null, - }, - v7 = [ - { - kind: 'Literal', - name: 'first', - value: 5, - }, + "type": "Mutation", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "CommentUpdateMutation", + "selections": [ { - kind: 'Literal', - name: 'orderBy', - value: '-is_pinned,-created', - }, - ], - v8 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'pk', - storageKey: null, - } - return { - fragment: { - argumentDefinitions: v0 /*: any*/, - kind: 'Fragment', - metadata: null, - name: 'CommentUpdateMutation', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'CommentUpdatePayload', - kind: 'LinkedField', - name: 'commentUpdate', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Comment', - kind: 'LinkedField', - name: 'comment', - plural: false, - selections: [ - v2 /*: any*/, - v3 /*: any*/, - { - args: null, - kind: 'FragmentSpread', - name: 'CommentsList_comments', - }, - ], - storageKey: null, - }, - v4 /*: any*/, - ], - storageKey: null, - }, - ], - type: 'Mutation', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: v0 /*: any*/, - kind: 'Operation', - name: 'CommentUpdateMutation', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'CommentUpdatePayload', - kind: 'LinkedField', - name: 'commentUpdate', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Comment', - kind: 'LinkedField', - name: 'comment', - plural: false, - selections: [ - v2 /*: any*/, - v3 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - v6 /*: any*/, - { - alias: null, - args: v7 /*: any*/, - concreteType: 'CommentConnection', - kind: 'LinkedField', - name: 'comments', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'CommentEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'Comment', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isPinned', - storageKey: null, - }, - v8 /*: any*/, - v3 /*: any*/, - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'user', - plural: false, - selections: [ - v2 /*: any*/, - v8 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'fullName', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 50, - }, - { - kind: 'Literal', - name: 'width', - value: 50, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'avatar', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'avatar(height:50,width:50)', - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'created', - storageKey: null, - }, - v6 /*: any*/, - { - alias: 'canChange', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'change', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"change")', - }, - { - alias: 'canDelete', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'delete', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"delete")', - }, - { - alias: 'canReport', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'report', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"report")', - }, - { - alias: 'canPin', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'pin', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"pin")', - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: null, - concreteType: 'ReactionsCount', - kind: 'LinkedField', - name: 'reactionsCount', - plural: false, - selections: v5 /*: any*/, - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Reaction', - kind: 'LinkedField', - name: 'myReaction', - plural: false, - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'reactionType', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'ReactionsInterface', - abstractKey: '__isReactionsInterface', - }, - { - kind: 'TypeDiscriminator', - abstractKey: '__isCommentsInterface', - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: 'comments(first:5,orderBy:"-is_pinned,-created")', - }, - { - alias: null, - args: v7 /*: any*/, - filters: [], - handle: 'connection', - key: 'CommentsList_comments', - kind: 'LinkedHandle', - name: 'comments', - }, - ], - type: 'CommentsInterface', - abstractKey: '__isCommentsInterface', - }, - ], - storageKey: null, - }, - v4 /*: any*/, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: '516cc6fe05cec2d5539841a5d9b94dad', - id: null, - metadata: {}, - name: 'CommentUpdateMutation', - operationKind: 'mutation', - text: 'mutation CommentUpdateMutation(\n $input: CommentUpdateInput!\n) {\n commentUpdate(input: $input) {\n comment {\n id\n body\n ...CommentsList_comments\n }\n errors {\n field\n messages\n }\n }\n}\n\nfragment CommentItem_comment on Comment {\n id\n pk\n body\n isPinned\n user {\n id\n pk\n fullName\n avatar(width: 50, height: 50) {\n url\n }\n }\n created\n commentsCount {\n total\n }\n canChange: hasPerm(perm: "change")\n canDelete: hasPerm(perm: "delete")\n canReport: hasPerm(perm: "report")\n canPin: hasPerm(perm: "pin")\n ...ReactionButton_target\n ...CommentItem_target\n}\n\nfragment CommentItem_target on CommentsInterface {\n __isCommentsInterface: __typename\n id\n}\n\nfragment CommentsList_comments on CommentsInterface {\n __isCommentsInterface: __typename\n id\n commentsCount {\n total\n }\n comments(first: 5, orderBy: "-is_pinned,-created") {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n node {\n id\n isPinned\n ...CommentItem_comment\n __typename\n }\n cursor\n }\n }\n ...CommentItem_target\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n __isReactionsInterface: __typename\n id\n reactionsCount {\n total\n }\n myReaction {\n id\n reactionType\n }\n}\n', - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": "CommentUpdatePayload", + "kind": "LinkedField", + "name": "commentUpdate", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Comment", + "kind": "LinkedField", + "name": "comment", + "plural": false, + "selections": [ + (v2/*: any*/), + (v3/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + (v6/*: any*/), + { + "alias": null, + "args": (v7/*: any*/), + "concreteType": "CommentConnection", + "kind": "LinkedField", + "name": "comments", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "CommentEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Comment", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isPinned", + "storageKey": null + }, + (v8/*: any*/), + (v3/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "user", + "plural": false, + "selections": [ + (v2/*: any*/), + (v8/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "fullName", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 50 + }, + { + "kind": "Literal", + "name": "width", + "value": 50 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "avatar", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "avatar(height:50,width:50)" + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "created", + "storageKey": null + }, + (v6/*: any*/), + { + "alias": "canChange", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "change" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"change\")" + }, + { + "alias": "canDelete", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "delete" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"delete\")" + }, + { + "alias": "canReport", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "report" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"report\")" + }, + { + "alias": "canPin", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "pin" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"pin\")" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + }, + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ReactionsCount", + "kind": "LinkedField", + "name": "reactionsCount", + "plural": false, + "selections": (v5/*: any*/), + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Reaction", + "kind": "LinkedField", + "name": "myReaction", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "reactionType", + "storageKey": null + } + ], + "storageKey": null + } + ], + "type": "ReactionsInterface", + "abstractKey": "__isReactionsInterface" + }, + { + "kind": "TypeDiscriminator", + "abstractKey": "__isCommentsInterface" + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": "comments(first:5,orderBy:\"-is_pinned,-created\")" + }, + { + "alias": null, + "args": (v7/*: any*/), + "filters": [], + "handle": "connection", + "key": "CommentsList_comments", + "kind": "LinkedHandle", + "name": "comments" + } + ], + "type": "CommentsInterface", + "abstractKey": "__isCommentsInterface" + } + ], + "storageKey": null + }, + (v4/*: any*/) + ], + "storageKey": null + } + ] + }, + "params": { + "cacheID": "516cc6fe05cec2d5539841a5d9b94dad", + "id": null, + "metadata": {}, + "name": "CommentUpdateMutation", + "operationKind": "mutation", + "text": "mutation CommentUpdateMutation(\n $input: CommentUpdateInput!\n) {\n commentUpdate(input: $input) {\n comment {\n id\n body\n ...CommentsList_comments\n }\n errors {\n field\n messages\n }\n }\n}\n\nfragment CommentItem_comment on Comment {\n id\n pk\n body\n isPinned\n user {\n id\n pk\n fullName\n avatar(width: 50, height: 50) {\n url\n }\n }\n created\n commentsCount {\n total\n }\n canChange: hasPerm(perm: \"change\")\n canDelete: hasPerm(perm: \"delete\")\n canReport: hasPerm(perm: \"report\")\n canPin: hasPerm(perm: \"pin\")\n ...ReactionButton_target\n ...CommentItem_target\n}\n\nfragment CommentItem_target on CommentsInterface {\n __isCommentsInterface: __typename\n id\n}\n\nfragment CommentsList_comments on CommentsInterface {\n __isCommentsInterface: __typename\n id\n commentsCount {\n total\n }\n comments(first: 5, orderBy: \"-is_pinned,-created\") {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n node {\n id\n isPinned\n ...CommentItem_comment\n __typename\n }\n cursor\n }\n }\n ...CommentItem_target\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n __isReactionsInterface: __typename\n id\n reactionsCount {\n total\n }\n myReaction {\n id\n reactionType\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = 'a65012ae50ff01b71fc9c930881f0c1a' +(node as any).hash = "a65012ae50ff01b71fc9c930881f0c1a"; -export default node +export default node; diff --git a/packages/components/__generated__/CommentsForTestingQuery.graphql.ts b/packages/components/__generated__/CommentsForTestingQuery.graphql.ts index 4996a5db..744900e7 100644 --- a/packages/components/__generated__/CommentsForTestingQuery.graphql.ts +++ b/packages/components/__generated__/CommentsForTestingQuery.graphql.ts @@ -5,545 +5,544 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' -export type CommentsForTestingQuery$variables = Record +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; +export type CommentsForTestingQuery$variables = Record; export type CommentsForTestingQuery$data = { - readonly target: - | { - readonly ' $fragmentSpreads': FragmentRefs<'CommentsFragment'> - } - | null - | undefined -} + readonly target: { + readonly " $fragmentSpreads": FragmentRefs<"CommentsFragment">; + } | null | undefined; +}; export type CommentsForTestingQuery = { - response: CommentsForTestingQuery$data - variables: CommentsForTestingQuery$variables -} + response: CommentsForTestingQuery$data; + variables: CommentsForTestingQuery$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ - { - kind: 'Literal', - name: 'id', - value: 'test-id', - }, - ], - v1 = { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v3 = [ +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "Literal", + "name": "id", + "value": "test-id" + } +], +v1 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null +}, +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v3 = [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "total", + "storageKey": null + } +], +v4 = { + "alias": null, + "args": null, + "concreteType": "CommentsCount", + "kind": "LinkedField", + "name": "commentsCount", + "plural": false, + "selections": (v3/*: any*/), + "storageKey": null +}, +v5 = [ + { + "kind": "Literal", + "name": "first", + "value": 5 + }, + { + "kind": "Literal", + "name": "orderBy", + "value": "-is_pinned,-created" + } +], +v6 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "pk", + "storageKey": null +}, +v7 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "String" +}, +v8 = { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "String" +}, +v9 = { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Boolean" +}, +v10 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "CommentsCount" +}, +v11 = { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Int" +}, +v12 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "ID" +}, +v13 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "Boolean" +}, +v14 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "Int" +}; +return { + "fragment": { + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "CommentsForTestingQuery", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'total', - storageKey: null, - }, + "alias": "target", + "args": (v0/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "args": null, + "kind": "FragmentSpread", + "name": "CommentsFragment" + } + ], + "storageKey": "node(id:\"test-id\")" + } ], - v4 = { - alias: null, - args: null, - concreteType: 'CommentsCount', - kind: 'LinkedField', - name: 'commentsCount', - plural: false, - selections: v3 /*: any*/, - storageKey: null, - }, - v5 = [ + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": [], + "kind": "Operation", + "name": "CommentsForTestingQuery", + "selections": [ { - kind: 'Literal', - name: 'first', - value: 5, - }, - { - kind: 'Literal', - name: 'orderBy', - value: '-is_pinned,-created', - }, - ], - v6 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'pk', - storageKey: null, - }, - v7 = { - enumValues: null, - nullable: false, - plural: false, - type: 'String', - }, - v8 = { - enumValues: null, - nullable: true, - plural: false, - type: 'String', - }, - v9 = { - enumValues: null, - nullable: true, - plural: false, - type: 'Boolean', - }, - v10 = { - enumValues: null, - nullable: false, - plural: false, - type: 'CommentsCount', - }, - v11 = { - enumValues: null, - nullable: true, - plural: false, - type: 'Int', - }, - v12 = { - enumValues: null, - nullable: false, - plural: false, - type: 'ID', - }, - v13 = { - enumValues: null, - nullable: false, - plural: false, - type: 'Boolean', - }, - v14 = { - enumValues: null, - nullable: false, - plural: false, - type: 'Int', - } - return { - fragment: { - argumentDefinitions: [], - kind: 'Fragment', - metadata: null, - name: 'CommentsForTestingQuery', - selections: [ - { - alias: 'target', - args: v0 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - args: null, - kind: 'FragmentSpread', - name: 'CommentsFragment', - }, - ], - storageKey: 'node(id:"test-id")', + "alias": "target", + "args": (v0/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v1/*: any*/), + (v2/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isCommentsEnabled", + "storageKey": null + }, + (v4/*: any*/), + { + "alias": null, + "args": (v5/*: any*/), + "concreteType": "CommentConnection", + "kind": "LinkedField", + "name": "comments", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "CommentEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Comment", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isPinned", + "storageKey": null + }, + (v6/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "body", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "user", + "plural": false, + "selections": [ + (v2/*: any*/), + (v6/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "fullName", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 50 + }, + { + "kind": "Literal", + "name": "width", + "value": 50 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "avatar", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "avatar(height:50,width:50)" + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "created", + "storageKey": null + }, + (v4/*: any*/), + { + "alias": "canChange", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "change" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"change\")" + }, + { + "alias": "canDelete", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "delete" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"delete\")" + }, + { + "alias": "canReport", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "report" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"report\")" + }, + { + "alias": "canPin", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "pin" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"pin\")" + }, + (v1/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ReactionsCount", + "kind": "LinkedField", + "name": "reactionsCount", + "plural": false, + "selections": (v3/*: any*/), + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Reaction", + "kind": "LinkedField", + "name": "myReaction", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "reactionType", + "storageKey": null + } + ], + "storageKey": null + } + ], + "type": "ReactionsInterface", + "abstractKey": "__isReactionsInterface" + }, + { + "kind": "TypeDiscriminator", + "abstractKey": "__isCommentsInterface" + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": "comments(first:5,orderBy:\"-is_pinned,-created\")" + }, + { + "alias": null, + "args": (v5/*: any*/), + "filters": [], + "handle": "connection", + "key": "CommentsList_comments", + "kind": "LinkedHandle", + "name": "comments" + } + ], + "type": "CommentsInterface", + "abstractKey": "__isCommentsInterface" + } + ], + "storageKey": "node(id:\"test-id\")" + } + ] + }, + "params": { + "cacheID": "1b17e21396b3429eed413e765e7845c6", + "id": null, + "metadata": { + "relayTestingSelectionTypeInfo": { + "target": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Node" }, - ], - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: [], - kind: 'Operation', - name: 'CommentsForTestingQuery', - selections: [ - { - alias: 'target', - args: v0 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v1 /*: any*/, - v2 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isCommentsEnabled', - storageKey: null, - }, - v4 /*: any*/, - { - alias: null, - args: v5 /*: any*/, - concreteType: 'CommentConnection', - kind: 'LinkedField', - name: 'comments', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'CommentEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'Comment', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isPinned', - storageKey: null, - }, - v6 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'body', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'user', - plural: false, - selections: [ - v2 /*: any*/, - v6 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'fullName', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 50, - }, - { - kind: 'Literal', - name: 'width', - value: 50, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'avatar', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'avatar(height:50,width:50)', - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'created', - storageKey: null, - }, - v4 /*: any*/, - { - alias: 'canChange', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'change', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"change")', - }, - { - alias: 'canDelete', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'delete', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"delete")', - }, - { - alias: 'canReport', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'report', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"report")', - }, - { - alias: 'canPin', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'pin', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"pin")', - }, - v1 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: null, - concreteType: 'ReactionsCount', - kind: 'LinkedField', - name: 'reactionsCount', - plural: false, - selections: v3 /*: any*/, - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Reaction', - kind: 'LinkedField', - name: 'myReaction', - plural: false, - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'reactionType', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'ReactionsInterface', - abstractKey: '__isReactionsInterface', - }, - { - kind: 'TypeDiscriminator', - abstractKey: '__isCommentsInterface', - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: 'comments(first:5,orderBy:"-is_pinned,-created")', - }, - { - alias: null, - args: v5 /*: any*/, - filters: [], - handle: 'connection', - key: 'CommentsList_comments', - kind: 'LinkedHandle', - name: 'comments', - }, - ], - type: 'CommentsInterface', - abstractKey: '__isCommentsInterface', - }, + "target.__isCommentsInterface": (v7/*: any*/), + "target.__typename": (v7/*: any*/), + "target.comments": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "CommentConnection" + }, + "target.comments.edges": { + "enumValues": null, + "nullable": false, + "plural": true, + "type": "CommentEdge" + }, + "target.comments.edges.cursor": (v7/*: any*/), + "target.comments.edges.node": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Comment" + }, + "target.comments.edges.node.__isCommentsInterface": (v7/*: any*/), + "target.comments.edges.node.__isReactionsInterface": (v7/*: any*/), + "target.comments.edges.node.__typename": (v7/*: any*/), + "target.comments.edges.node.body": (v8/*: any*/), + "target.comments.edges.node.canChange": (v9/*: any*/), + "target.comments.edges.node.canDelete": (v9/*: any*/), + "target.comments.edges.node.canPin": (v9/*: any*/), + "target.comments.edges.node.canReport": (v9/*: any*/), + "target.comments.edges.node.commentsCount": (v10/*: any*/), + "target.comments.edges.node.commentsCount.total": (v11/*: any*/), + "target.comments.edges.node.created": { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "DateTime" + }, + "target.comments.edges.node.id": (v12/*: any*/), + "target.comments.edges.node.isPinned": (v13/*: any*/), + "target.comments.edges.node.myReaction": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Reaction" + }, + "target.comments.edges.node.myReaction.id": (v12/*: any*/), + "target.comments.edges.node.myReaction.reactionType": { + "enumValues": [ + "LIKE", + "DISLIKE" ], - storageKey: 'node(id:"test-id")', + "nullable": true, + "plural": false, + "type": "ReactionTypes" }, - ], - }, - params: { - cacheID: '1b17e21396b3429eed413e765e7845c6', - id: null, - metadata: { - relayTestingSelectionTypeInfo: { - target: { - enumValues: null, - nullable: true, - plural: false, - type: 'Node', - }, - 'target.__isCommentsInterface': v7 /*: any*/, - 'target.__typename': v7 /*: any*/, - 'target.comments': { - enumValues: null, - nullable: true, - plural: false, - type: 'CommentConnection', - }, - 'target.comments.edges': { - enumValues: null, - nullable: false, - plural: true, - type: 'CommentEdge', - }, - 'target.comments.edges.cursor': v7 /*: any*/, - 'target.comments.edges.node': { - enumValues: null, - nullable: true, - plural: false, - type: 'Comment', - }, - 'target.comments.edges.node.__isCommentsInterface': v7 /*: any*/, - 'target.comments.edges.node.__isReactionsInterface': v7 /*: any*/, - 'target.comments.edges.node.__typename': v7 /*: any*/, - 'target.comments.edges.node.body': v8 /*: any*/, - 'target.comments.edges.node.canChange': v9 /*: any*/, - 'target.comments.edges.node.canDelete': v9 /*: any*/, - 'target.comments.edges.node.canPin': v9 /*: any*/, - 'target.comments.edges.node.canReport': v9 /*: any*/, - 'target.comments.edges.node.commentsCount': v10 /*: any*/, - 'target.comments.edges.node.commentsCount.total': v11 /*: any*/, - 'target.comments.edges.node.created': { - enumValues: null, - nullable: false, - plural: false, - type: 'DateTime', - }, - 'target.comments.edges.node.id': v12 /*: any*/, - 'target.comments.edges.node.isPinned': v13 /*: any*/, - 'target.comments.edges.node.myReaction': { - enumValues: null, - nullable: true, - plural: false, - type: 'Reaction', - }, - 'target.comments.edges.node.myReaction.id': v12 /*: any*/, - 'target.comments.edges.node.myReaction.reactionType': { - enumValues: ['LIKE', 'DISLIKE'], - nullable: true, - plural: false, - type: 'ReactionTypes', - }, - 'target.comments.edges.node.pk': v14 /*: any*/, - 'target.comments.edges.node.reactionsCount': { - enumValues: null, - nullable: true, - plural: false, - type: 'ReactionsCount', - }, - 'target.comments.edges.node.reactionsCount.total': v11 /*: any*/, - 'target.comments.edges.node.user': { - enumValues: null, - nullable: true, - plural: false, - type: 'User', - }, - 'target.comments.edges.node.user.avatar': { - enumValues: null, - nullable: true, - plural: false, - type: 'File', - }, - 'target.comments.edges.node.user.avatar.url': v7 /*: any*/, - 'target.comments.edges.node.user.fullName': v8 /*: any*/, - 'target.comments.edges.node.user.id': v12 /*: any*/, - 'target.comments.edges.node.user.pk': v14 /*: any*/, - 'target.comments.pageInfo': { - enumValues: null, - nullable: false, - plural: false, - type: 'PageInfo', - }, - 'target.comments.pageInfo.endCursor': v8 /*: any*/, - 'target.comments.pageInfo.hasNextPage': v13 /*: any*/, - 'target.commentsCount': v10 /*: any*/, - 'target.commentsCount.total': v11 /*: any*/, - 'target.id': v12 /*: any*/, - 'target.isCommentsEnabled': v13 /*: any*/, + "target.comments.edges.node.pk": (v14/*: any*/), + "target.comments.edges.node.reactionsCount": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "ReactionsCount" }, - }, - name: 'CommentsForTestingQuery', - operationKind: 'query', - text: 'query CommentsForTestingQuery {\n target: node(id: "test-id") {\n __typename\n ...CommentsFragment\n id\n }\n}\n\nfragment CommentItem_comment on Comment {\n id\n pk\n body\n isPinned\n user {\n id\n pk\n fullName\n avatar(width: 50, height: 50) {\n url\n }\n }\n created\n commentsCount {\n total\n }\n canChange: hasPerm(perm: "change")\n canDelete: hasPerm(perm: "delete")\n canReport: hasPerm(perm: "report")\n canPin: hasPerm(perm: "pin")\n ...ReactionButton_target\n ...CommentItem_target\n}\n\nfragment CommentItem_target on CommentsInterface {\n __isCommentsInterface: __typename\n id\n}\n\nfragment CommentsFragment on CommentsInterface {\n __isCommentsInterface: __typename\n id\n __typename\n isCommentsEnabled\n commentsCount {\n total\n }\n ...CommentsList_comments\n ...CommentItem_target\n}\n\nfragment CommentsList_comments on CommentsInterface {\n __isCommentsInterface: __typename\n id\n commentsCount {\n total\n }\n comments(first: 5, orderBy: "-is_pinned,-created") {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n node {\n id\n isPinned\n ...CommentItem_comment\n __typename\n }\n cursor\n }\n }\n ...CommentItem_target\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n __isReactionsInterface: __typename\n id\n reactionsCount {\n total\n }\n myReaction {\n id\n reactionType\n }\n}\n', + "target.comments.edges.node.reactionsCount.total": (v11/*: any*/), + "target.comments.edges.node.user": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "User" + }, + "target.comments.edges.node.user.avatar": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "File" + }, + "target.comments.edges.node.user.avatar.url": (v7/*: any*/), + "target.comments.edges.node.user.fullName": (v8/*: any*/), + "target.comments.edges.node.user.id": (v12/*: any*/), + "target.comments.edges.node.user.pk": (v14/*: any*/), + "target.comments.pageInfo": { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "PageInfo" + }, + "target.comments.pageInfo.endCursor": (v8/*: any*/), + "target.comments.pageInfo.hasNextPage": (v13/*: any*/), + "target.commentsCount": (v10/*: any*/), + "target.commentsCount.total": (v11/*: any*/), + "target.id": (v12/*: any*/), + "target.isCommentsEnabled": (v13/*: any*/) + } }, + "name": "CommentsForTestingQuery", + "operationKind": "query", + "text": "query CommentsForTestingQuery {\n target: node(id: \"test-id\") {\n __typename\n ...CommentsFragment\n id\n }\n}\n\nfragment CommentItem_comment on Comment {\n id\n pk\n body\n isPinned\n user {\n id\n pk\n fullName\n avatar(width: 50, height: 50) {\n url\n }\n }\n created\n commentsCount {\n total\n }\n canChange: hasPerm(perm: \"change\")\n canDelete: hasPerm(perm: \"delete\")\n canReport: hasPerm(perm: \"report\")\n canPin: hasPerm(perm: \"pin\")\n ...ReactionButton_target\n ...CommentItem_target\n}\n\nfragment CommentItem_target on CommentsInterface {\n __isCommentsInterface: __typename\n id\n}\n\nfragment CommentsFragment on CommentsInterface {\n __isCommentsInterface: __typename\n id\n __typename\n isCommentsEnabled\n commentsCount {\n total\n }\n ...CommentsList_comments\n ...CommentItem_target\n}\n\nfragment CommentsList_comments on CommentsInterface {\n __isCommentsInterface: __typename\n id\n commentsCount {\n total\n }\n comments(first: 5, orderBy: \"-is_pinned,-created\") {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n node {\n id\n isPinned\n ...CommentItem_comment\n __typename\n }\n cursor\n }\n }\n ...CommentItem_target\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n __isReactionsInterface: __typename\n id\n reactionsCount {\n total\n }\n myReaction {\n id\n reactionType\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = 'cce9412db51dd89e09f6b47cfc6315b5' +(node as any).hash = "cce9412db51dd89e09f6b47cfc6315b5"; -export default node +export default node; diff --git a/packages/components/__generated__/CommentsFragment.graphql.ts b/packages/components/__generated__/CommentsFragment.graphql.ts index 7b45dda5..2ce479d7 100644 --- a/packages/components/__generated__/CommentsFragment.graphql.ts +++ b/packages/components/__generated__/CommentsFragment.graphql.ts @@ -5,110 +5,111 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ReaderFragment, RefetchableFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ReaderFragment, RefetchableFragment } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type CommentsFragment$data = { - readonly __typename: string + readonly __typename: string; readonly commentsCount: { - readonly total: number | null | undefined - } - readonly id: string - readonly isCommentsEnabled: boolean - readonly ' $fragmentSpreads': FragmentRefs<'CommentItem_target' | 'CommentsList_comments'> - readonly ' $fragmentType': 'CommentsFragment' -} + readonly total: number | null | undefined; + }; + readonly id: string; + readonly isCommentsEnabled: boolean; + readonly " $fragmentSpreads": FragmentRefs<"CommentItem_target" | "CommentsList_comments">; + readonly " $fragmentType": "CommentsFragment"; +}; export type CommentsFragment$key = { - readonly ' $data'?: CommentsFragment$data - readonly ' $fragmentSpreads': FragmentRefs<'CommentsFragment'> -} + readonly " $data"?: CommentsFragment$data; + readonly " $fragmentSpreads": FragmentRefs<"CommentsFragment">; +}; const node: ReaderFragment = { - argumentDefinitions: [ + "argumentDefinitions": [ { - defaultValue: true, - kind: 'LocalArgument', - name: 'isCommentsOpened', - }, + "defaultValue": true, + "kind": "LocalArgument", + "name": "isCommentsOpened" + } ], - kind: 'Fragment', - metadata: { - refetch: { - connection: null, - fragmentPathInResult: ['node'], - operation: require('./CommentsRefetchQuery.graphql'), - identifierInfo: { - identifierField: 'id', - identifierQueryVariableName: 'id', - }, - }, + "kind": "Fragment", + "metadata": { + "refetch": { + "connection": null, + "fragmentPathInResult": [ + "node" + ], + "operation": require('./CommentsRefetchQuery.graphql'), + "identifierInfo": { + "identifierField": "id", + "identifierQueryVariableName": "id" + } + } }, - name: 'CommentsFragment', - selections: [ + "name": "CommentsFragment", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null }, { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null }, { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isCommentsEnabled', - storageKey: null, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isCommentsEnabled", + "storageKey": null }, { - alias: null, - args: null, - concreteType: 'CommentsCount', - kind: 'LinkedField', - name: 'commentsCount', - plural: false, - selections: [ + "alias": null, + "args": null, + "concreteType": "CommentsCount", + "kind": "LinkedField", + "name": "commentsCount", + "plural": false, + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'total', - storageKey: null, - }, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "total", + "storageKey": null + } ], - storageKey: null, + "storageKey": null }, { - condition: 'isCommentsOpened', - kind: 'Condition', - passingValue: true, - selections: [ + "condition": "isCommentsOpened", + "kind": "Condition", + "passingValue": true, + "selections": [ { - args: null, - kind: 'FragmentSpread', - name: 'CommentsList_comments', - }, - ], + "args": null, + "kind": "FragmentSpread", + "name": "CommentsList_comments" + } + ] }, { - args: null, - kind: 'FragmentSpread', - name: 'CommentItem_target', - }, + "args": null, + "kind": "FragmentSpread", + "name": "CommentItem_target" + } ], - type: 'CommentsInterface', - abstractKey: '__isCommentsInterface', -} + "type": "CommentsInterface", + "abstractKey": "__isCommentsInterface" +}; -;(node as any).hash = '5c6447c09e41ab2fcd66157fb900571a' +(node as any).hash = "5c6447c09e41ab2fcd66157fb900571a"; -export default node +export default node; diff --git a/packages/components/__generated__/CommentsListPaginationQuery.graphql.ts b/packages/components/__generated__/CommentsListPaginationQuery.graphql.ts index ff00314c..05dedb92 100644 --- a/packages/components/__generated__/CommentsListPaginationQuery.graphql.ts +++ b/packages/components/__generated__/CommentsListPaginationQuery.graphql.ts @@ -5,449 +5,457 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type CommentsListPaginationQuery$variables = { - count?: number | null | undefined - cursor?: string | null | undefined - id: string - orderBy?: string | null | undefined - q?: string | null | undefined -} + count?: number | null | undefined; + cursor?: string | null | undefined; + id: string; + orderBy?: string | null | undefined; + q?: string | null | undefined; +}; export type CommentsListPaginationQuery$data = { - readonly node: - | { - readonly ' $fragmentSpreads': FragmentRefs<'CommentsList_comments'> - } - | null - | undefined -} + readonly node: { + readonly " $fragmentSpreads": FragmentRefs<"CommentsList_comments">; + } | null | undefined; +}; export type CommentsListPaginationQuery = { - response: CommentsListPaginationQuery$data - variables: CommentsListPaginationQuery$variables -} + response: CommentsListPaginationQuery$data; + variables: CommentsListPaginationQuery$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = { - defaultValue: 5, - kind: 'LocalArgument', - name: 'count', - }, - v1 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'cursor', - }, - v2 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'id', - }, - v3 = { - defaultValue: '-is_pinned,-created', - kind: 'LocalArgument', - name: 'orderBy', - }, - v4 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'q', - }, - v5 = [ - { - kind: 'Variable', - name: 'id', - variableName: 'id', - }, +const node: ConcreteRequest = (function(){ +var v0 = { + "defaultValue": 5, + "kind": "LocalArgument", + "name": "count" +}, +v1 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "cursor" +}, +v2 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "id" +}, +v3 = { + "defaultValue": "-is_pinned,-created", + "kind": "LocalArgument", + "name": "orderBy" +}, +v4 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "q" +}, +v5 = [ + { + "kind": "Variable", + "name": "id", + "variableName": "id" + } +], +v6 = { + "kind": "Variable", + "name": "orderBy", + "variableName": "orderBy" +}, +v7 = { + "kind": "Variable", + "name": "q", + "variableName": "q" +}, +v8 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null +}, +v9 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v10 = [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "total", + "storageKey": null + } +], +v11 = { + "alias": null, + "args": null, + "concreteType": "CommentsCount", + "kind": "LinkedField", + "name": "commentsCount", + "plural": false, + "selections": (v10/*: any*/), + "storageKey": null +}, +v12 = [ + { + "kind": "Variable", + "name": "after", + "variableName": "cursor" + }, + { + "kind": "Variable", + "name": "first", + "variableName": "count" + }, + (v6/*: any*/), + (v7/*: any*/) +], +v13 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "pk", + "storageKey": null +}; +return { + "fragment": { + "argumentDefinitions": [ + (v0/*: any*/), + (v1/*: any*/), + (v2/*: any*/), + (v3/*: any*/), + (v4/*: any*/) ], - v6 = { - kind: 'Variable', - name: 'orderBy', - variableName: 'orderBy', - }, - v7 = { - kind: 'Variable', - name: 'q', - variableName: 'q', - }, - v8 = { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v9 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v10 = [ + "kind": "Fragment", + "metadata": null, + "name": "CommentsListPaginationQuery", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'total', - storageKey: null, - }, + "alias": null, + "args": (v5/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "args": [ + { + "kind": "Variable", + "name": "count", + "variableName": "count" + }, + { + "kind": "Variable", + "name": "cursor", + "variableName": "cursor" + }, + (v6/*: any*/), + (v7/*: any*/) + ], + "kind": "FragmentSpread", + "name": "CommentsList_comments" + } + ], + "storageKey": null + } ], - v11 = { - alias: null, - args: null, - concreteType: 'CommentsCount', - kind: 'LinkedField', - name: 'commentsCount', - plural: false, - selections: v10 /*: any*/, - storageKey: null, - }, - v12 = [ - { - kind: 'Variable', - name: 'after', - variableName: 'cursor', - }, - { - kind: 'Variable', - name: 'first', - variableName: 'count', - }, - v6 /*: any*/, - v7 /*: any*/, + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": [ + (v0/*: any*/), + (v1/*: any*/), + (v3/*: any*/), + (v4/*: any*/), + (v2/*: any*/) ], - v13 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'pk', - storageKey: null, - } - return { - fragment: { - argumentDefinitions: [v0 /*: any*/, v1 /*: any*/, v2 /*: any*/, v3 /*: any*/, v4 /*: any*/], - kind: 'Fragment', - metadata: null, - name: 'CommentsListPaginationQuery', - selections: [ - { - alias: null, - args: v5 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - args: [ - { - kind: 'Variable', - name: 'count', - variableName: 'count', - }, - { - kind: 'Variable', - name: 'cursor', - variableName: 'cursor', - }, - v6 /*: any*/, - v7 /*: any*/, - ], - kind: 'FragmentSpread', - name: 'CommentsList_comments', - }, - ], - storageKey: null, - }, - ], - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: [v0 /*: any*/, v1 /*: any*/, v3 /*: any*/, v4 /*: any*/, v2 /*: any*/], - kind: 'Operation', - name: 'CommentsListPaginationQuery', - selections: [ - { - alias: null, - args: v5 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v8 /*: any*/, - v9 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - v11 /*: any*/, - { - alias: null, - args: v12 /*: any*/, - concreteType: 'CommentConnection', - kind: 'LinkedField', - name: 'comments', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'CommentEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'Comment', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v9 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isPinned', - storageKey: null, - }, - v13 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'body', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'user', - plural: false, - selections: [ - v9 /*: any*/, - v13 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'fullName', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 50, - }, - { - kind: 'Literal', - name: 'width', - value: 50, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'avatar', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'avatar(height:50,width:50)', - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'created', - storageKey: null, - }, - v11 /*: any*/, - { - alias: 'canChange', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'change', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"change")', - }, - { - alias: 'canDelete', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'delete', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"delete")', - }, - { - alias: 'canReport', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'report', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"report")', - }, - { - alias: 'canPin', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'pin', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"pin")', - }, - v8 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: null, - concreteType: 'ReactionsCount', - kind: 'LinkedField', - name: 'reactionsCount', - plural: false, - selections: v10 /*: any*/, - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Reaction', - kind: 'LinkedField', - name: 'myReaction', - plural: false, - selections: [ - v9 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'reactionType', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'ReactionsInterface', - abstractKey: '__isReactionsInterface', - }, - { - kind: 'TypeDiscriminator', - abstractKey: '__isCommentsInterface', - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: v12 /*: any*/, - filters: [], - handle: 'connection', - key: 'CommentsList_comments', - kind: 'LinkedHandle', - name: 'comments', - }, - ], - type: 'CommentsInterface', - abstractKey: '__isCommentsInterface', - }, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: 'de4d3ba673b6bcb9b4d69c8a90a02017', - id: null, - metadata: {}, - name: 'CommentsListPaginationQuery', - operationKind: 'query', - text: 'query CommentsListPaginationQuery(\n $count: Int = 5\n $cursor: String\n $orderBy: String = "-is_pinned,-created"\n $q: String\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...CommentsList_comments_40Ewnb\n id\n }\n}\n\nfragment CommentItem_comment on Comment {\n id\n pk\n body\n isPinned\n user {\n id\n pk\n fullName\n avatar(width: 50, height: 50) {\n url\n }\n }\n created\n commentsCount {\n total\n }\n canChange: hasPerm(perm: "change")\n canDelete: hasPerm(perm: "delete")\n canReport: hasPerm(perm: "report")\n canPin: hasPerm(perm: "pin")\n ...ReactionButton_target\n ...CommentItem_target\n}\n\nfragment CommentItem_target on CommentsInterface {\n __isCommentsInterface: __typename\n id\n}\n\nfragment CommentsList_comments_40Ewnb on CommentsInterface {\n __isCommentsInterface: __typename\n id\n commentsCount {\n total\n }\n comments(first: $count, after: $cursor, q: $q, orderBy: $orderBy) {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n node {\n id\n isPinned\n ...CommentItem_comment\n __typename\n }\n cursor\n }\n }\n ...CommentItem_target\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n __isReactionsInterface: __typename\n id\n reactionsCount {\n total\n }\n myReaction {\n id\n reactionType\n }\n}\n', - }, + "kind": "Operation", + "name": "CommentsListPaginationQuery", + "selections": [ + { + "alias": null, + "args": (v5/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v8/*: any*/), + (v9/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + (v11/*: any*/), + { + "alias": null, + "args": (v12/*: any*/), + "concreteType": "CommentConnection", + "kind": "LinkedField", + "name": "comments", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "CommentEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Comment", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v9/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isPinned", + "storageKey": null + }, + (v13/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "body", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "user", + "plural": false, + "selections": [ + (v9/*: any*/), + (v13/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "fullName", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 50 + }, + { + "kind": "Literal", + "name": "width", + "value": 50 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "avatar", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "avatar(height:50,width:50)" + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "created", + "storageKey": null + }, + (v11/*: any*/), + { + "alias": "canChange", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "change" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"change\")" + }, + { + "alias": "canDelete", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "delete" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"delete\")" + }, + { + "alias": "canReport", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "report" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"report\")" + }, + { + "alias": "canPin", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "pin" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"pin\")" + }, + (v8/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ReactionsCount", + "kind": "LinkedField", + "name": "reactionsCount", + "plural": false, + "selections": (v10/*: any*/), + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Reaction", + "kind": "LinkedField", + "name": "myReaction", + "plural": false, + "selections": [ + (v9/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "reactionType", + "storageKey": null + } + ], + "storageKey": null + } + ], + "type": "ReactionsInterface", + "abstractKey": "__isReactionsInterface" + }, + { + "kind": "TypeDiscriminator", + "abstractKey": "__isCommentsInterface" + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": (v12/*: any*/), + "filters": [], + "handle": "connection", + "key": "CommentsList_comments", + "kind": "LinkedHandle", + "name": "comments" + } + ], + "type": "CommentsInterface", + "abstractKey": "__isCommentsInterface" + } + ], + "storageKey": null + } + ] + }, + "params": { + "cacheID": "de4d3ba673b6bcb9b4d69c8a90a02017", + "id": null, + "metadata": {}, + "name": "CommentsListPaginationQuery", + "operationKind": "query", + "text": "query CommentsListPaginationQuery(\n $count: Int = 5\n $cursor: String\n $orderBy: String = \"-is_pinned,-created\"\n $q: String\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...CommentsList_comments_40Ewnb\n id\n }\n}\n\nfragment CommentItem_comment on Comment {\n id\n pk\n body\n isPinned\n user {\n id\n pk\n fullName\n avatar(width: 50, height: 50) {\n url\n }\n }\n created\n commentsCount {\n total\n }\n canChange: hasPerm(perm: \"change\")\n canDelete: hasPerm(perm: \"delete\")\n canReport: hasPerm(perm: \"report\")\n canPin: hasPerm(perm: \"pin\")\n ...ReactionButton_target\n ...CommentItem_target\n}\n\nfragment CommentItem_target on CommentsInterface {\n __isCommentsInterface: __typename\n id\n}\n\nfragment CommentsList_comments_40Ewnb on CommentsInterface {\n __isCommentsInterface: __typename\n id\n commentsCount {\n total\n }\n comments(first: $count, after: $cursor, q: $q, orderBy: $orderBy) {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n node {\n id\n isPinned\n ...CommentItem_comment\n __typename\n }\n cursor\n }\n }\n ...CommentItem_target\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n __isReactionsInterface: __typename\n id\n reactionsCount {\n total\n }\n myReaction {\n id\n reactionType\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = '873f3258ff0a18f046b689e6aafb00c9' +(node as any).hash = "873f3258ff0a18f046b689e6aafb00c9"; -export default node +export default node; diff --git a/packages/components/__generated__/CommentsListWithQuery.graphql.ts b/packages/components/__generated__/CommentsListWithQuery.graphql.ts index 35edcaa8..d47581bf 100644 --- a/packages/components/__generated__/CommentsListWithQuery.graphql.ts +++ b/packages/components/__generated__/CommentsListWithQuery.graphql.ts @@ -5,537 +5,536 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' -export type CommentsListWithQuery$variables = Record +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; +export type CommentsListWithQuery$variables = Record; export type CommentsListWithQuery$data = { - readonly target: - | { - readonly ' $fragmentSpreads': FragmentRefs<'CommentsList_comments'> - } - | null - | undefined -} + readonly target: { + readonly " $fragmentSpreads": FragmentRefs<"CommentsList_comments">; + } | null | undefined; +}; export type CommentsListWithQuery = { - response: CommentsListWithQuery$data - variables: CommentsListWithQuery$variables -} + response: CommentsListWithQuery$data; + variables: CommentsListWithQuery$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ - { - kind: 'Literal', - name: 'id', - value: 'test-id', - }, - ], - v1 = { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v3 = [ +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "Literal", + "name": "id", + "value": "test-id" + } +], +v1 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null +}, +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v3 = [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "total", + "storageKey": null + } +], +v4 = { + "alias": null, + "args": null, + "concreteType": "CommentsCount", + "kind": "LinkedField", + "name": "commentsCount", + "plural": false, + "selections": (v3/*: any*/), + "storageKey": null +}, +v5 = [ + { + "kind": "Literal", + "name": "first", + "value": 5 + }, + { + "kind": "Literal", + "name": "orderBy", + "value": "-is_pinned,-created" + } +], +v6 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "pk", + "storageKey": null +}, +v7 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "String" +}, +v8 = { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "String" +}, +v9 = { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Boolean" +}, +v10 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "CommentsCount" +}, +v11 = { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Int" +}, +v12 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "ID" +}, +v13 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "Boolean" +}, +v14 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "Int" +}; +return { + "fragment": { + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "CommentsListWithQuery", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'total', - storageKey: null, - }, + "alias": "target", + "args": (v0/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "args": null, + "kind": "FragmentSpread", + "name": "CommentsList_comments" + } + ], + "storageKey": "node(id:\"test-id\")" + } ], - v4 = { - alias: null, - args: null, - concreteType: 'CommentsCount', - kind: 'LinkedField', - name: 'commentsCount', - plural: false, - selections: v3 /*: any*/, - storageKey: null, - }, - v5 = [ + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": [], + "kind": "Operation", + "name": "CommentsListWithQuery", + "selections": [ { - kind: 'Literal', - name: 'first', - value: 5, - }, - { - kind: 'Literal', - name: 'orderBy', - value: '-is_pinned,-created', - }, - ], - v6 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'pk', - storageKey: null, - }, - v7 = { - enumValues: null, - nullable: false, - plural: false, - type: 'String', - }, - v8 = { - enumValues: null, - nullable: true, - plural: false, - type: 'String', - }, - v9 = { - enumValues: null, - nullable: true, - plural: false, - type: 'Boolean', - }, - v10 = { - enumValues: null, - nullable: false, - plural: false, - type: 'CommentsCount', - }, - v11 = { - enumValues: null, - nullable: true, - plural: false, - type: 'Int', - }, - v12 = { - enumValues: null, - nullable: false, - plural: false, - type: 'ID', - }, - v13 = { - enumValues: null, - nullable: false, - plural: false, - type: 'Boolean', - }, - v14 = { - enumValues: null, - nullable: false, - plural: false, - type: 'Int', - } - return { - fragment: { - argumentDefinitions: [], - kind: 'Fragment', - metadata: null, - name: 'CommentsListWithQuery', - selections: [ - { - alias: 'target', - args: v0 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - args: null, - kind: 'FragmentSpread', - name: 'CommentsList_comments', - }, - ], - storageKey: 'node(id:"test-id")', + "alias": "target", + "args": (v0/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v1/*: any*/), + (v2/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + (v4/*: any*/), + { + "alias": null, + "args": (v5/*: any*/), + "concreteType": "CommentConnection", + "kind": "LinkedField", + "name": "comments", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "CommentEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Comment", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isPinned", + "storageKey": null + }, + (v6/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "body", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "user", + "plural": false, + "selections": [ + (v2/*: any*/), + (v6/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "fullName", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 50 + }, + { + "kind": "Literal", + "name": "width", + "value": 50 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "avatar", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "avatar(height:50,width:50)" + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "created", + "storageKey": null + }, + (v4/*: any*/), + { + "alias": "canChange", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "change" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"change\")" + }, + { + "alias": "canDelete", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "delete" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"delete\")" + }, + { + "alias": "canReport", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "report" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"report\")" + }, + { + "alias": "canPin", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "pin" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"pin\")" + }, + (v1/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ReactionsCount", + "kind": "LinkedField", + "name": "reactionsCount", + "plural": false, + "selections": (v3/*: any*/), + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Reaction", + "kind": "LinkedField", + "name": "myReaction", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "reactionType", + "storageKey": null + } + ], + "storageKey": null + } + ], + "type": "ReactionsInterface", + "abstractKey": "__isReactionsInterface" + }, + { + "kind": "TypeDiscriminator", + "abstractKey": "__isCommentsInterface" + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": "comments(first:5,orderBy:\"-is_pinned,-created\")" + }, + { + "alias": null, + "args": (v5/*: any*/), + "filters": [], + "handle": "connection", + "key": "CommentsList_comments", + "kind": "LinkedHandle", + "name": "comments" + } + ], + "type": "CommentsInterface", + "abstractKey": "__isCommentsInterface" + } + ], + "storageKey": "node(id:\"test-id\")" + } + ] + }, + "params": { + "cacheID": "eba3177159560ce677a33d0e4bfd216c", + "id": null, + "metadata": { + "relayTestingSelectionTypeInfo": { + "target": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Node" }, - ], - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: [], - kind: 'Operation', - name: 'CommentsListWithQuery', - selections: [ - { - alias: 'target', - args: v0 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v1 /*: any*/, - v2 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - v4 /*: any*/, - { - alias: null, - args: v5 /*: any*/, - concreteType: 'CommentConnection', - kind: 'LinkedField', - name: 'comments', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'CommentEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'Comment', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isPinned', - storageKey: null, - }, - v6 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'body', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'user', - plural: false, - selections: [ - v2 /*: any*/, - v6 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'fullName', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 50, - }, - { - kind: 'Literal', - name: 'width', - value: 50, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'avatar', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'avatar(height:50,width:50)', - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'created', - storageKey: null, - }, - v4 /*: any*/, - { - alias: 'canChange', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'change', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"change")', - }, - { - alias: 'canDelete', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'delete', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"delete")', - }, - { - alias: 'canReport', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'report', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"report")', - }, - { - alias: 'canPin', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'pin', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"pin")', - }, - v1 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: null, - concreteType: 'ReactionsCount', - kind: 'LinkedField', - name: 'reactionsCount', - plural: false, - selections: v3 /*: any*/, - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Reaction', - kind: 'LinkedField', - name: 'myReaction', - plural: false, - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'reactionType', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'ReactionsInterface', - abstractKey: '__isReactionsInterface', - }, - { - kind: 'TypeDiscriminator', - abstractKey: '__isCommentsInterface', - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: 'comments(first:5,orderBy:"-is_pinned,-created")', - }, - { - alias: null, - args: v5 /*: any*/, - filters: [], - handle: 'connection', - key: 'CommentsList_comments', - kind: 'LinkedHandle', - name: 'comments', - }, - ], - type: 'CommentsInterface', - abstractKey: '__isCommentsInterface', - }, + "target.__isCommentsInterface": (v7/*: any*/), + "target.__typename": (v7/*: any*/), + "target.comments": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "CommentConnection" + }, + "target.comments.edges": { + "enumValues": null, + "nullable": false, + "plural": true, + "type": "CommentEdge" + }, + "target.comments.edges.cursor": (v7/*: any*/), + "target.comments.edges.node": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Comment" + }, + "target.comments.edges.node.__isCommentsInterface": (v7/*: any*/), + "target.comments.edges.node.__isReactionsInterface": (v7/*: any*/), + "target.comments.edges.node.__typename": (v7/*: any*/), + "target.comments.edges.node.body": (v8/*: any*/), + "target.comments.edges.node.canChange": (v9/*: any*/), + "target.comments.edges.node.canDelete": (v9/*: any*/), + "target.comments.edges.node.canPin": (v9/*: any*/), + "target.comments.edges.node.canReport": (v9/*: any*/), + "target.comments.edges.node.commentsCount": (v10/*: any*/), + "target.comments.edges.node.commentsCount.total": (v11/*: any*/), + "target.comments.edges.node.created": { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "DateTime" + }, + "target.comments.edges.node.id": (v12/*: any*/), + "target.comments.edges.node.isPinned": (v13/*: any*/), + "target.comments.edges.node.myReaction": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Reaction" + }, + "target.comments.edges.node.myReaction.id": (v12/*: any*/), + "target.comments.edges.node.myReaction.reactionType": { + "enumValues": [ + "LIKE", + "DISLIKE" ], - storageKey: 'node(id:"test-id")', + "nullable": true, + "plural": false, + "type": "ReactionTypes" }, - ], - }, - params: { - cacheID: 'eba3177159560ce677a33d0e4bfd216c', - id: null, - metadata: { - relayTestingSelectionTypeInfo: { - target: { - enumValues: null, - nullable: true, - plural: false, - type: 'Node', - }, - 'target.__isCommentsInterface': v7 /*: any*/, - 'target.__typename': v7 /*: any*/, - 'target.comments': { - enumValues: null, - nullable: true, - plural: false, - type: 'CommentConnection', - }, - 'target.comments.edges': { - enumValues: null, - nullable: false, - plural: true, - type: 'CommentEdge', - }, - 'target.comments.edges.cursor': v7 /*: any*/, - 'target.comments.edges.node': { - enumValues: null, - nullable: true, - plural: false, - type: 'Comment', - }, - 'target.comments.edges.node.__isCommentsInterface': v7 /*: any*/, - 'target.comments.edges.node.__isReactionsInterface': v7 /*: any*/, - 'target.comments.edges.node.__typename': v7 /*: any*/, - 'target.comments.edges.node.body': v8 /*: any*/, - 'target.comments.edges.node.canChange': v9 /*: any*/, - 'target.comments.edges.node.canDelete': v9 /*: any*/, - 'target.comments.edges.node.canPin': v9 /*: any*/, - 'target.comments.edges.node.canReport': v9 /*: any*/, - 'target.comments.edges.node.commentsCount': v10 /*: any*/, - 'target.comments.edges.node.commentsCount.total': v11 /*: any*/, - 'target.comments.edges.node.created': { - enumValues: null, - nullable: false, - plural: false, - type: 'DateTime', - }, - 'target.comments.edges.node.id': v12 /*: any*/, - 'target.comments.edges.node.isPinned': v13 /*: any*/, - 'target.comments.edges.node.myReaction': { - enumValues: null, - nullable: true, - plural: false, - type: 'Reaction', - }, - 'target.comments.edges.node.myReaction.id': v12 /*: any*/, - 'target.comments.edges.node.myReaction.reactionType': { - enumValues: ['LIKE', 'DISLIKE'], - nullable: true, - plural: false, - type: 'ReactionTypes', - }, - 'target.comments.edges.node.pk': v14 /*: any*/, - 'target.comments.edges.node.reactionsCount': { - enumValues: null, - nullable: true, - plural: false, - type: 'ReactionsCount', - }, - 'target.comments.edges.node.reactionsCount.total': v11 /*: any*/, - 'target.comments.edges.node.user': { - enumValues: null, - nullable: true, - plural: false, - type: 'User', - }, - 'target.comments.edges.node.user.avatar': { - enumValues: null, - nullable: true, - plural: false, - type: 'File', - }, - 'target.comments.edges.node.user.avatar.url': v7 /*: any*/, - 'target.comments.edges.node.user.fullName': v8 /*: any*/, - 'target.comments.edges.node.user.id': v12 /*: any*/, - 'target.comments.edges.node.user.pk': v14 /*: any*/, - 'target.comments.pageInfo': { - enumValues: null, - nullable: false, - plural: false, - type: 'PageInfo', - }, - 'target.comments.pageInfo.endCursor': v8 /*: any*/, - 'target.comments.pageInfo.hasNextPage': v13 /*: any*/, - 'target.commentsCount': v10 /*: any*/, - 'target.commentsCount.total': v11 /*: any*/, - 'target.id': v12 /*: any*/, + "target.comments.edges.node.pk": (v14/*: any*/), + "target.comments.edges.node.reactionsCount": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "ReactionsCount" }, - }, - name: 'CommentsListWithQuery', - operationKind: 'query', - text: 'query CommentsListWithQuery {\n target: node(id: "test-id") {\n __typename\n ...CommentsList_comments\n id\n }\n}\n\nfragment CommentItem_comment on Comment {\n id\n pk\n body\n isPinned\n user {\n id\n pk\n fullName\n avatar(width: 50, height: 50) {\n url\n }\n }\n created\n commentsCount {\n total\n }\n canChange: hasPerm(perm: "change")\n canDelete: hasPerm(perm: "delete")\n canReport: hasPerm(perm: "report")\n canPin: hasPerm(perm: "pin")\n ...ReactionButton_target\n ...CommentItem_target\n}\n\nfragment CommentItem_target on CommentsInterface {\n __isCommentsInterface: __typename\n id\n}\n\nfragment CommentsList_comments on CommentsInterface {\n __isCommentsInterface: __typename\n id\n commentsCount {\n total\n }\n comments(first: 5, orderBy: "-is_pinned,-created") {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n node {\n id\n isPinned\n ...CommentItem_comment\n __typename\n }\n cursor\n }\n }\n ...CommentItem_target\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n __isReactionsInterface: __typename\n id\n reactionsCount {\n total\n }\n myReaction {\n id\n reactionType\n }\n}\n', + "target.comments.edges.node.reactionsCount.total": (v11/*: any*/), + "target.comments.edges.node.user": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "User" + }, + "target.comments.edges.node.user.avatar": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "File" + }, + "target.comments.edges.node.user.avatar.url": (v7/*: any*/), + "target.comments.edges.node.user.fullName": (v8/*: any*/), + "target.comments.edges.node.user.id": (v12/*: any*/), + "target.comments.edges.node.user.pk": (v14/*: any*/), + "target.comments.pageInfo": { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "PageInfo" + }, + "target.comments.pageInfo.endCursor": (v8/*: any*/), + "target.comments.pageInfo.hasNextPage": (v13/*: any*/), + "target.commentsCount": (v10/*: any*/), + "target.commentsCount.total": (v11/*: any*/), + "target.id": (v12/*: any*/) + } }, + "name": "CommentsListWithQuery", + "operationKind": "query", + "text": "query CommentsListWithQuery {\n target: node(id: \"test-id\") {\n __typename\n ...CommentsList_comments\n id\n }\n}\n\nfragment CommentItem_comment on Comment {\n id\n pk\n body\n isPinned\n user {\n id\n pk\n fullName\n avatar(width: 50, height: 50) {\n url\n }\n }\n created\n commentsCount {\n total\n }\n canChange: hasPerm(perm: \"change\")\n canDelete: hasPerm(perm: \"delete\")\n canReport: hasPerm(perm: \"report\")\n canPin: hasPerm(perm: \"pin\")\n ...ReactionButton_target\n ...CommentItem_target\n}\n\nfragment CommentItem_target on CommentsInterface {\n __isCommentsInterface: __typename\n id\n}\n\nfragment CommentsList_comments on CommentsInterface {\n __isCommentsInterface: __typename\n id\n commentsCount {\n total\n }\n comments(first: 5, orderBy: \"-is_pinned,-created\") {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n node {\n id\n isPinned\n ...CommentItem_comment\n __typename\n }\n cursor\n }\n }\n ...CommentItem_target\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n __isReactionsInterface: __typename\n id\n reactionsCount {\n total\n }\n myReaction {\n id\n reactionType\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = 'acb6e47e69c86ce2d6db47adc66589dc' +(node as any).hash = "acb6e47e69c86ce2d6db47adc66589dc"; -export default node +export default node; diff --git a/packages/components/__generated__/CommentsList_comments.graphql.ts b/packages/components/__generated__/CommentsList_comments.graphql.ts index 12279aec..b75d2e41 100644 --- a/packages/components/__generated__/CommentsList_comments.graphql.ts +++ b/packages/components/__generated__/CommentsList_comments.graphql.ts @@ -5,224 +5,217 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ReaderFragment, RefetchableFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ReaderFragment, RefetchableFragment } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type CommentsList_comments$data = { - readonly comments: - | { - readonly edges: ReadonlyArray< - | { - readonly node: - | { - readonly id: string - readonly isPinned: boolean - readonly ' $fragmentSpreads': FragmentRefs<'CommentItem_comment'> - } - | null - | undefined - } - | null - | undefined - > - readonly pageInfo: { - readonly endCursor: string | null | undefined - readonly hasNextPage: boolean - } - } - | null - | undefined + readonly comments: { + readonly edges: ReadonlyArray<{ + readonly node: { + readonly id: string; + readonly isPinned: boolean; + readonly " $fragmentSpreads": FragmentRefs<"CommentItem_comment">; + } | null | undefined; + } | null | undefined>; + readonly pageInfo: { + readonly endCursor: string | null | undefined; + readonly hasNextPage: boolean; + }; + } | null | undefined; readonly commentsCount: { - readonly total: number | null | undefined - } - readonly id: string - readonly ' $fragmentSpreads': FragmentRefs<'CommentItem_target'> - readonly ' $fragmentType': 'CommentsList_comments' -} + readonly total: number | null | undefined; + }; + readonly id: string; + readonly " $fragmentSpreads": FragmentRefs<"CommentItem_target">; + readonly " $fragmentType": "CommentsList_comments"; +}; export type CommentsList_comments$key = { - readonly ' $data'?: CommentsList_comments$data - readonly ' $fragmentSpreads': FragmentRefs<'CommentsList_comments'> -} + readonly " $data"?: CommentsList_comments$data; + readonly " $fragmentSpreads": FragmentRefs<"CommentsList_comments">; +}; -const node: ReaderFragment = (function () { - var v0 = ['comments'], - v1 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, +const node: ReaderFragment = (function(){ +var v0 = [ + "comments" +], +v1 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}; +return { + "argumentDefinitions": [ + { + "defaultValue": 5, + "kind": "LocalArgument", + "name": "count" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "cursor" + }, + { + "defaultValue": "-is_pinned,-created", + "kind": "LocalArgument", + "name": "orderBy" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "q" } - return { - argumentDefinitions: [ - { - defaultValue: 5, - kind: 'LocalArgument', - name: 'count', - }, - { - defaultValue: null, - kind: 'LocalArgument', - name: 'cursor', - }, - { - defaultValue: '-is_pinned,-created', - kind: 'LocalArgument', - name: 'orderBy', - }, + ], + "kind": "Fragment", + "metadata": { + "connection": [ { - defaultValue: null, - kind: 'LocalArgument', - name: 'q', - }, + "count": "count", + "cursor": "cursor", + "direction": "forward", + "path": (v0/*: any*/) + } ], - kind: 'Fragment', - metadata: { - connection: [ - { - count: 'count', - cursor: 'cursor', - direction: 'forward', - path: v0 /*: any*/, + "refetch": { + "connection": { + "forward": { + "count": "count", + "cursor": "cursor" }, + "backward": null, + "path": (v0/*: any*/) + }, + "fragmentPathInResult": [ + "node" ], - refetch: { - connection: { - forward: { - count: 'count', - cursor: 'cursor', - }, - backward: null, - path: v0 /*: any*/, - }, - fragmentPathInResult: ['node'], - operation: require('./CommentsListPaginationQuery.graphql'), - identifierInfo: { - identifierField: 'id', - identifierQueryVariableName: 'id', + "operation": require('./CommentsListPaginationQuery.graphql'), + "identifierInfo": { + "identifierField": "id", + "identifierQueryVariableName": "id" + } + } + }, + "name": "CommentsList_comments", + "selections": [ + (v1/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "CommentsCount", + "kind": "LinkedField", + "name": "commentsCount", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "total", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": "comments", + "args": null, + "concreteType": "CommentConnection", + "kind": "LinkedField", + "name": "__CommentsList_comments_connection", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + } + ], + "storageKey": null }, - }, + { + "alias": null, + "args": null, + "concreteType": "CommentEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Comment", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v1/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isPinned", + "storageKey": null + }, + { + "args": null, + "kind": "FragmentSpread", + "name": "CommentItem_comment" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null }, - name: 'CommentsList_comments', - selections: [ - v1 /*: any*/, - { - alias: null, - args: null, - concreteType: 'CommentsCount', - kind: 'LinkedField', - name: 'commentsCount', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'total', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: 'comments', - args: null, - concreteType: 'CommentConnection', - kind: 'LinkedField', - name: '__CommentsList_comments_connection', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'CommentEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'Comment', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v1 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isPinned', - storageKey: null, - }, - { - args: null, - kind: 'FragmentSpread', - name: 'CommentItem_comment', - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - args: null, - kind: 'FragmentSpread', - name: 'CommentItem_target', - }, - ], - type: 'CommentsInterface', - abstractKey: '__isCommentsInterface', - } -})() + { + "args": null, + "kind": "FragmentSpread", + "name": "CommentItem_target" + } + ], + "type": "CommentsInterface", + "abstractKey": "__isCommentsInterface" +}; +})(); -;(node as any).hash = '873f3258ff0a18f046b689e6aafb00c9' +(node as any).hash = "873f3258ff0a18f046b689e6aafb00c9"; -export default node +export default node; diff --git a/packages/components/__generated__/CommentsRefetchQuery.graphql.ts b/packages/components/__generated__/CommentsRefetchQuery.graphql.ts index 856bdd0a..192ec05e 100644 --- a/packages/components/__generated__/CommentsRefetchQuery.graphql.ts +++ b/packages/components/__generated__/CommentsRefetchQuery.graphql.ts @@ -5,426 +5,428 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type CommentsRefetchQuery$variables = { - id: string - isCommentsOpened?: boolean | null | undefined -} + id: string; + isCommentsOpened?: boolean | null | undefined; +}; export type CommentsRefetchQuery$data = { - readonly node: - | { - readonly ' $fragmentSpreads': FragmentRefs<'CommentsFragment'> - } - | null - | undefined -} + readonly node: { + readonly " $fragmentSpreads": FragmentRefs<"CommentsFragment">; + } | null | undefined; +}; export type CommentsRefetchQuery = { - response: CommentsRefetchQuery$data - variables: CommentsRefetchQuery$variables -} + response: CommentsRefetchQuery$data; + variables: CommentsRefetchQuery$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'id', - }, - v1 = { - defaultValue: true, - kind: 'LocalArgument', - name: 'isCommentsOpened', - }, - v2 = [ - { - kind: 'Variable', - name: 'id', - variableName: 'id', - }, +const node: ConcreteRequest = (function(){ +var v0 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "id" +}, +v1 = { + "defaultValue": true, + "kind": "LocalArgument", + "name": "isCommentsOpened" +}, +v2 = [ + { + "kind": "Variable", + "name": "id", + "variableName": "id" + } +], +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null +}, +v4 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v5 = [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "total", + "storageKey": null + } +], +v6 = { + "alias": null, + "args": null, + "concreteType": "CommentsCount", + "kind": "LinkedField", + "name": "commentsCount", + "plural": false, + "selections": (v5/*: any*/), + "storageKey": null +}, +v7 = [ + { + "kind": "Literal", + "name": "first", + "value": 5 + }, + { + "kind": "Literal", + "name": "orderBy", + "value": "-is_pinned,-created" + } +], +v8 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "pk", + "storageKey": null +}; +return { + "fragment": { + "argumentDefinitions": [ + (v0/*: any*/), + (v1/*: any*/) ], - v3 = { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v4 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v5 = [ + "kind": "Fragment", + "metadata": null, + "name": "CommentsRefetchQuery", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'total', - storageKey: null, - }, + "alias": null, + "args": (v2/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "args": [ + { + "kind": "Variable", + "name": "isCommentsOpened", + "variableName": "isCommentsOpened" + } + ], + "kind": "FragmentSpread", + "name": "CommentsFragment" + } + ], + "storageKey": null + } ], - v6 = { - alias: null, - args: null, - concreteType: 'CommentsCount', - kind: 'LinkedField', - name: 'commentsCount', - plural: false, - selections: v5 /*: any*/, - storageKey: null, - }, - v7 = [ - { - kind: 'Literal', - name: 'first', - value: 5, - }, - { - kind: 'Literal', - name: 'orderBy', - value: '-is_pinned,-created', - }, + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": [ + (v1/*: any*/), + (v0/*: any*/) ], - v8 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'pk', - storageKey: null, - } - return { - fragment: { - argumentDefinitions: [v0 /*: any*/, v1 /*: any*/], - kind: 'Fragment', - metadata: null, - name: 'CommentsRefetchQuery', - selections: [ - { - alias: null, - args: v2 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - args: [ - { - kind: 'Variable', - name: 'isCommentsOpened', - variableName: 'isCommentsOpened', - }, - ], - kind: 'FragmentSpread', - name: 'CommentsFragment', - }, - ], - storageKey: null, - }, - ], - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: [v1 /*: any*/, v0 /*: any*/], - kind: 'Operation', - name: 'CommentsRefetchQuery', - selections: [ - { - alias: null, - args: v2 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v3 /*: any*/, - v4 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isCommentsEnabled', - storageKey: null, - }, - v6 /*: any*/, - { - condition: 'isCommentsOpened', - kind: 'Condition', - passingValue: true, - selections: [ - { - alias: null, - args: v7 /*: any*/, - concreteType: 'CommentConnection', - kind: 'LinkedField', - name: 'comments', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'CommentEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'Comment', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v4 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isPinned', - storageKey: null, - }, - v8 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'body', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'user', - plural: false, - selections: [ - v4 /*: any*/, - v8 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'fullName', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 50, - }, - { - kind: 'Literal', - name: 'width', - value: 50, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'avatar', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'avatar(height:50,width:50)', - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'created', - storageKey: null, - }, - v6 /*: any*/, - { - alias: 'canChange', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'change', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"change")', - }, - { - alias: 'canDelete', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'delete', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"delete")', - }, - { - alias: 'canReport', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'report', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"report")', - }, - { - alias: 'canPin', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'pin', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"pin")', - }, - v3 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: null, - concreteType: 'ReactionsCount', - kind: 'LinkedField', - name: 'reactionsCount', - plural: false, - selections: v5 /*: any*/, - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Reaction', - kind: 'LinkedField', - name: 'myReaction', - plural: false, - selections: [ - v4 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'reactionType', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'ReactionsInterface', - abstractKey: '__isReactionsInterface', - }, - { - kind: 'TypeDiscriminator', - abstractKey: '__isCommentsInterface', - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: 'comments(first:5,orderBy:"-is_pinned,-created")', - }, - { - alias: null, - args: v7 /*: any*/, - filters: [], - handle: 'connection', - key: 'CommentsList_comments', - kind: 'LinkedHandle', - name: 'comments', - }, - ], - }, - ], - type: 'CommentsInterface', - abstractKey: '__isCommentsInterface', - }, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: '29c62fd9e62f6ecb8ffe052163e053c6', - id: null, - metadata: {}, - name: 'CommentsRefetchQuery', - operationKind: 'query', - text: 'query CommentsRefetchQuery(\n $isCommentsOpened: Boolean = true\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...CommentsFragment_2iZoM\n id\n }\n}\n\nfragment CommentItem_comment on Comment {\n id\n pk\n body\n isPinned\n user {\n id\n pk\n fullName\n avatar(width: 50, height: 50) {\n url\n }\n }\n created\n commentsCount {\n total\n }\n canChange: hasPerm(perm: "change")\n canDelete: hasPerm(perm: "delete")\n canReport: hasPerm(perm: "report")\n canPin: hasPerm(perm: "pin")\n ...ReactionButton_target\n ...CommentItem_target\n}\n\nfragment CommentItem_target on CommentsInterface {\n __isCommentsInterface: __typename\n id\n}\n\nfragment CommentsFragment_2iZoM on CommentsInterface {\n __isCommentsInterface: __typename\n id\n __typename\n isCommentsEnabled\n commentsCount {\n total\n }\n ...CommentsList_comments @include(if: $isCommentsOpened)\n ...CommentItem_target\n}\n\nfragment CommentsList_comments on CommentsInterface {\n __isCommentsInterface: __typename\n id\n commentsCount {\n total\n }\n comments(first: 5, orderBy: "-is_pinned,-created") {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n node {\n id\n isPinned\n ...CommentItem_comment\n __typename\n }\n cursor\n }\n }\n ...CommentItem_target\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n __isReactionsInterface: __typename\n id\n reactionsCount {\n total\n }\n myReaction {\n id\n reactionType\n }\n}\n', - }, + "kind": "Operation", + "name": "CommentsRefetchQuery", + "selections": [ + { + "alias": null, + "args": (v2/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v3/*: any*/), + (v4/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isCommentsEnabled", + "storageKey": null + }, + (v6/*: any*/), + { + "condition": "isCommentsOpened", + "kind": "Condition", + "passingValue": true, + "selections": [ + { + "alias": null, + "args": (v7/*: any*/), + "concreteType": "CommentConnection", + "kind": "LinkedField", + "name": "comments", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "CommentEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Comment", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v4/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isPinned", + "storageKey": null + }, + (v8/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "body", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "user", + "plural": false, + "selections": [ + (v4/*: any*/), + (v8/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "fullName", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 50 + }, + { + "kind": "Literal", + "name": "width", + "value": 50 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "avatar", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "avatar(height:50,width:50)" + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "created", + "storageKey": null + }, + (v6/*: any*/), + { + "alias": "canChange", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "change" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"change\")" + }, + { + "alias": "canDelete", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "delete" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"delete\")" + }, + { + "alias": "canReport", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "report" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"report\")" + }, + { + "alias": "canPin", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "pin" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"pin\")" + }, + (v3/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ReactionsCount", + "kind": "LinkedField", + "name": "reactionsCount", + "plural": false, + "selections": (v5/*: any*/), + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Reaction", + "kind": "LinkedField", + "name": "myReaction", + "plural": false, + "selections": [ + (v4/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "reactionType", + "storageKey": null + } + ], + "storageKey": null + } + ], + "type": "ReactionsInterface", + "abstractKey": "__isReactionsInterface" + }, + { + "kind": "TypeDiscriminator", + "abstractKey": "__isCommentsInterface" + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": "comments(first:5,orderBy:\"-is_pinned,-created\")" + }, + { + "alias": null, + "args": (v7/*: any*/), + "filters": [], + "handle": "connection", + "key": "CommentsList_comments", + "kind": "LinkedHandle", + "name": "comments" + } + ] + } + ], + "type": "CommentsInterface", + "abstractKey": "__isCommentsInterface" + } + ], + "storageKey": null + } + ] + }, + "params": { + "cacheID": "29c62fd9e62f6ecb8ffe052163e053c6", + "id": null, + "metadata": {}, + "name": "CommentsRefetchQuery", + "operationKind": "query", + "text": "query CommentsRefetchQuery(\n $isCommentsOpened: Boolean = true\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...CommentsFragment_2iZoM\n id\n }\n}\n\nfragment CommentItem_comment on Comment {\n id\n pk\n body\n isPinned\n user {\n id\n pk\n fullName\n avatar(width: 50, height: 50) {\n url\n }\n }\n created\n commentsCount {\n total\n }\n canChange: hasPerm(perm: \"change\")\n canDelete: hasPerm(perm: \"delete\")\n canReport: hasPerm(perm: \"report\")\n canPin: hasPerm(perm: \"pin\")\n ...ReactionButton_target\n ...CommentItem_target\n}\n\nfragment CommentItem_target on CommentsInterface {\n __isCommentsInterface: __typename\n id\n}\n\nfragment CommentsFragment_2iZoM on CommentsInterface {\n __isCommentsInterface: __typename\n id\n __typename\n isCommentsEnabled\n commentsCount {\n total\n }\n ...CommentsList_comments @include(if: $isCommentsOpened)\n ...CommentItem_target\n}\n\nfragment CommentsList_comments on CommentsInterface {\n __isCommentsInterface: __typename\n id\n commentsCount {\n total\n }\n comments(first: 5, orderBy: \"-is_pinned,-created\") {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n node {\n id\n isPinned\n ...CommentItem_comment\n __typename\n }\n cursor\n }\n }\n ...CommentItem_target\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n __isReactionsInterface: __typename\n id\n reactionsCount {\n total\n }\n myReaction {\n id\n reactionType\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = '5c6447c09e41ab2fcd66157fb900571a' +(node as any).hash = "5c6447c09e41ab2fcd66157fb900571a"; -export default node +export default node; diff --git a/packages/components/__generated__/CommentsSubscription.graphql.ts b/packages/components/__generated__/CommentsSubscription.graphql.ts index ce87d021..74fa0278 100644 --- a/packages/components/__generated__/CommentsSubscription.graphql.ts +++ b/packages/components/__generated__/CommentsSubscription.graphql.ts @@ -5,511 +5,501 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, GraphQLSubscription } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, GraphQLSubscription } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type CommentsSubscription$variables = { - connections: ReadonlyArray - targetObjectId?: string | null | undefined -} + connections: ReadonlyArray; + targetObjectId?: string | null | undefined; +}; export type CommentsSubscription$data = { - readonly onCommentChange: - | { - readonly createdComment: - | { - readonly node: - | { - readonly id: string - readonly target: - | { - readonly commentsCount: { - readonly main: number | null | undefined - readonly replies: number | null | undefined - readonly total: number | null | undefined - } - } - | null - | undefined - readonly ' $fragmentSpreads': FragmentRefs<'CommentItem_comment'> - } - | null - | undefined - } - | null - | undefined - readonly deletedCommentId: string | null | undefined - readonly updatedComment: - | { - readonly ' $fragmentSpreads': FragmentRefs<'CommentItem_comment'> - } - | null - | undefined - } - | null - | undefined -} + readonly onCommentChange: { + readonly createdComment: { + readonly node: { + readonly id: string; + readonly target: { + readonly commentsCount: { + readonly main: number | null | undefined; + readonly replies: number | null | undefined; + readonly total: number | null | undefined; + }; + } | null | undefined; + readonly " $fragmentSpreads": FragmentRefs<"CommentItem_comment">; + } | null | undefined; + } | null | undefined; + readonly deletedCommentId: string | null | undefined; + readonly updatedComment: { + readonly " $fragmentSpreads": FragmentRefs<"CommentItem_comment">; + } | null | undefined; + } | null | undefined; +}; export type CommentsSubscription = { - response: CommentsSubscription$data - variables: CommentsSubscription$variables -} + response: CommentsSubscription$data; + variables: CommentsSubscription$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ - { - defaultValue: null, - kind: 'LocalArgument', - name: 'connections', - }, - { - defaultValue: null, - kind: 'LocalArgument', - name: 'targetObjectId', - }, - ], - v1 = [ - { - kind: 'Variable', - name: 'targetObjectId', - variableName: 'targetObjectId', - }, - ], - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v3 = { - args: null, - kind: 'FragmentSpread', - name: 'CommentItem_comment', - }, - v4 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'total', - storageKey: null, - }, - v5 = { - alias: null, - args: null, - concreteType: 'CommentsCount', - kind: 'LinkedField', - name: 'commentsCount', - plural: false, - selections: [ - v4 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'main', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'replies', - storageKey: null, - }, - ], - storageKey: null, - }, - v6 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'deletedCommentId', - storageKey: null, - }, - v7 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'pk', - storageKey: null, - }, - v8 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'body', - storageKey: null, - }, - v9 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isPinned', - storageKey: null, - }, - v10 = { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'user', - plural: false, - selections: [ - v2 /*: any*/, - v7 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'fullName', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 50, - }, - { - kind: 'Literal', - name: 'width', - value: 50, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'avatar', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'avatar(height:50,width:50)', - }, - ], - storageKey: null, - }, - v11 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'created', - storageKey: null, - }, - v12 = [v4 /*: any*/], - v13 = { - alias: null, - args: null, - concreteType: 'CommentsCount', - kind: 'LinkedField', - name: 'commentsCount', - plural: false, - selections: v12 /*: any*/, - storageKey: null, - }, - v14 = { - alias: 'canChange', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'change', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"change")', +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "connections" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "targetObjectId" + } +], +v1 = [ + { + "kind": "Variable", + "name": "targetObjectId", + "variableName": "targetObjectId" + } +], +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v3 = { + "args": null, + "kind": "FragmentSpread", + "name": "CommentItem_comment" +}, +v4 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "total", + "storageKey": null +}, +v5 = { + "alias": null, + "args": null, + "concreteType": "CommentsCount", + "kind": "LinkedField", + "name": "commentsCount", + "plural": false, + "selections": [ + (v4/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "main", + "storageKey": null }, - v15 = { - alias: 'canDelete', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'delete', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"delete")', + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "replies", + "storageKey": null + } + ], + "storageKey": null +}, +v6 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "deletedCommentId", + "storageKey": null +}, +v7 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "pk", + "storageKey": null +}, +v8 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "body", + "storageKey": null +}, +v9 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isPinned", + "storageKey": null +}, +v10 = { + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "user", + "plural": false, + "selections": [ + (v2/*: any*/), + (v7/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "fullName", + "storageKey": null }, - v16 = { - alias: 'canReport', - args: [ + { + "alias": null, + "args": [ { - kind: 'Literal', - name: 'perm', - value: 'report', + "kind": "Literal", + "name": "height", + "value": 50 }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"report")', - }, - v17 = { - alias: 'canPin', - args: [ { - kind: 'Literal', - name: 'perm', - value: 'pin', - }, + "kind": "Literal", + "name": "width", + "value": 50 + } ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"pin")', - }, - v18 = { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: null, - concreteType: 'ReactionsCount', - kind: 'LinkedField', - name: 'reactionsCount', - plural: false, - selections: v12 /*: any*/, - storageKey: null, - }, + "concreteType": "File", + "kind": "LinkedField", + "name": "avatar", + "plural": false, + "selections": [ { - alias: null, - args: null, - concreteType: 'Reaction', - kind: 'LinkedField', - name: 'myReaction', - plural: false, - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'reactionType', - storageKey: null, - }, - ], - storageKey: null, - }, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } ], - type: 'ReactionsInterface', - abstractKey: '__isReactionsInterface', - }, - v19 = { - kind: 'TypeDiscriminator', - abstractKey: '__isCommentsInterface', + "storageKey": "avatar(height:50,width:50)" } - return { - fragment: { - argumentDefinitions: v0 /*: any*/, - kind: 'Fragment', - metadata: null, - name: 'CommentsSubscription', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'OnCommentChange', - kind: 'LinkedField', - name: 'onCommentChange', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'CommentEdge', - kind: 'LinkedField', - name: 'createdComment', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Comment', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v2 /*: any*/, - v3 /*: any*/, - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'target', - plural: false, - selections: [v5 /*: any*/], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Comment', - kind: 'LinkedField', - name: 'updatedComment', - plural: false, - selections: [v3 /*: any*/], - storageKey: null, - }, - v6 /*: any*/, - ], - storageKey: null, - }, - ], - type: 'Subscription', - abstractKey: null, + ], + "storageKey": null +}, +v11 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "created", + "storageKey": null +}, +v12 = [ + (v4/*: any*/) +], +v13 = { + "alias": null, + "args": null, + "concreteType": "CommentsCount", + "kind": "LinkedField", + "name": "commentsCount", + "plural": false, + "selections": (v12/*: any*/), + "storageKey": null +}, +v14 = { + "alias": "canChange", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "change" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"change\")" +}, +v15 = { + "alias": "canDelete", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "delete" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"delete\")" +}, +v16 = { + "alias": "canReport", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "report" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"report\")" +}, +v17 = { + "alias": "canPin", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "pin" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"pin\")" +}, +v18 = { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ReactionsCount", + "kind": "LinkedField", + "name": "reactionsCount", + "plural": false, + "selections": (v12/*: any*/), + "storageKey": null }, - kind: 'Request', - operation: { - argumentDefinitions: v0 /*: any*/, - kind: 'Operation', - name: 'CommentsSubscription', - selections: [ + { + "alias": null, + "args": null, + "concreteType": "Reaction", + "kind": "LinkedField", + "name": "myReaction", + "plural": false, + "selections": [ + (v2/*: any*/), { - alias: null, - args: v1 /*: any*/, - concreteType: 'OnCommentChange', - kind: 'LinkedField', - name: 'onCommentChange', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'CommentEdge', - kind: 'LinkedField', - name: 'createdComment', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Comment', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v2 /*: any*/, - v7 /*: any*/, - v8 /*: any*/, - v9 /*: any*/, - v10 /*: any*/, - v11 /*: any*/, - v13 /*: any*/, - v14 /*: any*/, - v15 /*: any*/, - v16 /*: any*/, - v17 /*: any*/, - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'target', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v5 /*: any*/, - v2 /*: any*/, - ], - storageKey: null, - }, - v18 /*: any*/, - v19 /*: any*/, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - filters: null, - handle: 'prependEdge', - key: '', - kind: 'LinkedHandle', - name: 'createdComment', - handleArgs: [ - { - kind: 'Variable', - name: 'connections', - variableName: 'connections', - }, - ], - }, - { - alias: null, - args: null, - concreteType: 'Comment', - kind: 'LinkedField', - name: 'updatedComment', - plural: false, - selections: [ - v2 /*: any*/, - v7 /*: any*/, - v8 /*: any*/, - v9 /*: any*/, - v10 /*: any*/, - v11 /*: any*/, - v13 /*: any*/, - v14 /*: any*/, - v15 /*: any*/, - v16 /*: any*/, - v17 /*: any*/, - v18 /*: any*/, - v19 /*: any*/, - ], - storageKey: null, - }, - v6 /*: any*/, - { - alias: null, - args: null, - filters: null, - handle: 'deleteRecord', - key: '', - kind: 'ScalarHandle', - name: 'deletedCommentId', - }, - ], - storageKey: null, - }, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "reactionType", + "storageKey": null + } ], - }, - params: { - cacheID: 'e23e08eb3ec21610ecbc8771eed8f73f', - id: null, - metadata: {}, - name: 'CommentsSubscription', - operationKind: 'subscription', - text: 'subscription CommentsSubscription(\n $targetObjectId: ID\n) {\n onCommentChange(targetObjectId: $targetObjectId) {\n createdComment {\n node {\n id\n ...CommentItem_comment\n target {\n __typename\n commentsCount {\n total\n main\n replies\n }\n id\n }\n }\n }\n updatedComment {\n ...CommentItem_comment\n id\n }\n deletedCommentId\n }\n}\n\nfragment CommentItem_comment on Comment {\n id\n pk\n body\n isPinned\n user {\n id\n pk\n fullName\n avatar(width: 50, height: 50) {\n url\n }\n }\n created\n commentsCount {\n total\n }\n canChange: hasPerm(perm: "change")\n canDelete: hasPerm(perm: "delete")\n canReport: hasPerm(perm: "report")\n canPin: hasPerm(perm: "pin")\n ...ReactionButton_target\n ...CommentItem_target\n}\n\nfragment CommentItem_target on CommentsInterface {\n __isCommentsInterface: __typename\n id\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n __isReactionsInterface: __typename\n id\n reactionsCount {\n total\n }\n myReaction {\n id\n reactionType\n }\n}\n', - }, + "storageKey": null + } + ], + "type": "ReactionsInterface", + "abstractKey": "__isReactionsInterface" +}, +v19 = { + "kind": "TypeDiscriminator", + "abstractKey": "__isCommentsInterface" +}; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "CommentsSubscription", + "selections": [ + { + "alias": null, + "args": (v1/*: any*/), + "concreteType": "OnCommentChange", + "kind": "LinkedField", + "name": "onCommentChange", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "CommentEdge", + "kind": "LinkedField", + "name": "createdComment", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Comment", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v2/*: any*/), + (v3/*: any*/), + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "target", + "plural": false, + "selections": [ + (v5/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Comment", + "kind": "LinkedField", + "name": "updatedComment", + "plural": false, + "selections": [ + (v3/*: any*/) + ], + "storageKey": null + }, + (v6/*: any*/) + ], + "storageKey": null + } + ], + "type": "Subscription", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "CommentsSubscription", + "selections": [ + { + "alias": null, + "args": (v1/*: any*/), + "concreteType": "OnCommentChange", + "kind": "LinkedField", + "name": "onCommentChange", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "CommentEdge", + "kind": "LinkedField", + "name": "createdComment", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Comment", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v2/*: any*/), + (v7/*: any*/), + (v8/*: any*/), + (v9/*: any*/), + (v10/*: any*/), + (v11/*: any*/), + (v13/*: any*/), + (v14/*: any*/), + (v15/*: any*/), + (v16/*: any*/), + (v17/*: any*/), + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "target", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + }, + (v5/*: any*/), + (v2/*: any*/) + ], + "storageKey": null + }, + (v18/*: any*/), + (v19/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "filters": null, + "handle": "prependEdge", + "key": "", + "kind": "LinkedHandle", + "name": "createdComment", + "handleArgs": [ + { + "kind": "Variable", + "name": "connections", + "variableName": "connections" + } + ] + }, + { + "alias": null, + "args": null, + "concreteType": "Comment", + "kind": "LinkedField", + "name": "updatedComment", + "plural": false, + "selections": [ + (v2/*: any*/), + (v7/*: any*/), + (v8/*: any*/), + (v9/*: any*/), + (v10/*: any*/), + (v11/*: any*/), + (v13/*: any*/), + (v14/*: any*/), + (v15/*: any*/), + (v16/*: any*/), + (v17/*: any*/), + (v18/*: any*/), + (v19/*: any*/) + ], + "storageKey": null + }, + (v6/*: any*/), + { + "alias": null, + "args": null, + "filters": null, + "handle": "deleteRecord", + "key": "", + "kind": "ScalarHandle", + "name": "deletedCommentId" + } + ], + "storageKey": null + } + ] + }, + "params": { + "cacheID": "e23e08eb3ec21610ecbc8771eed8f73f", + "id": null, + "metadata": {}, + "name": "CommentsSubscription", + "operationKind": "subscription", + "text": "subscription CommentsSubscription(\n $targetObjectId: ID\n) {\n onCommentChange(targetObjectId: $targetObjectId) {\n createdComment {\n node {\n id\n ...CommentItem_comment\n target {\n __typename\n commentsCount {\n total\n main\n replies\n }\n id\n }\n }\n }\n updatedComment {\n ...CommentItem_comment\n id\n }\n deletedCommentId\n }\n}\n\nfragment CommentItem_comment on Comment {\n id\n pk\n body\n isPinned\n user {\n id\n pk\n fullName\n avatar(width: 50, height: 50) {\n url\n }\n }\n created\n commentsCount {\n total\n }\n canChange: hasPerm(perm: \"change\")\n canDelete: hasPerm(perm: \"delete\")\n canReport: hasPerm(perm: \"report\")\n canPin: hasPerm(perm: \"pin\")\n ...ReactionButton_target\n ...CommentItem_target\n}\n\nfragment CommentItem_target on CommentsInterface {\n __isCommentsInterface: __typename\n id\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n __isReactionsInterface: __typename\n id\n reactionsCount {\n total\n }\n myReaction {\n id\n reactionType\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = 'f649494aea3b062943d369c8368ca337' +(node as any).hash = "f649494aea3b062943d369c8368ca337"; -export default node +export default node; diff --git a/packages/components/__generated__/CommentsUpdateWithQuery.graphql.ts b/packages/components/__generated__/CommentsUpdateWithQuery.graphql.ts index 568fcb04..499788a6 100644 --- a/packages/components/__generated__/CommentsUpdateWithQuery.graphql.ts +++ b/packages/components/__generated__/CommentsUpdateWithQuery.graphql.ts @@ -5,412 +5,411 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' -export type CommentsUpdateWithQuery$variables = Record +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; +export type CommentsUpdateWithQuery$variables = Record; export type CommentsUpdateWithQuery$data = { - readonly target: - | { - readonly ' $fragmentSpreads': FragmentRefs<'CommentItem_comment'> - } - | null - | undefined -} + readonly target: { + readonly " $fragmentSpreads": FragmentRefs<"CommentItem_comment">; + } | null | undefined; +}; export type CommentsUpdateWithQuery = { - response: CommentsUpdateWithQuery$data - variables: CommentsUpdateWithQuery$variables -} + response: CommentsUpdateWithQuery$data; + variables: CommentsUpdateWithQuery$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "Literal", + "name": "id", + "value": "test-id" + } +], +v1 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "pk", + "storageKey": null +}, +v3 = [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "total", + "storageKey": null + } +], +v4 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "String" +}, +v5 = { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "String" +}, +v6 = { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Boolean" +}, +v7 = { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Int" +}, +v8 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "ID" +}, +v9 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "Int" +}; +return { + "fragment": { + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "CommentsUpdateWithQuery", + "selections": [ { - kind: 'Literal', - name: 'id', - value: 'test-id', - }, + "alias": "target", + "args": (v0/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "args": null, + "kind": "FragmentSpread", + "name": "CommentItem_comment" + } + ], + "storageKey": "node(id:\"test-id\")" + } ], - v1 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'pk', - storageKey: null, - }, - v3 = [ + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": [], + "kind": "Operation", + "name": "CommentsUpdateWithQuery", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'total', - storageKey: null, - }, - ], - v4 = { - enumValues: null, - nullable: false, - plural: false, - type: 'String', - }, - v5 = { - enumValues: null, - nullable: true, - plural: false, - type: 'String', - }, - v6 = { - enumValues: null, - nullable: true, - plural: false, - type: 'Boolean', - }, - v7 = { - enumValues: null, - nullable: true, - plural: false, - type: 'Int', - }, - v8 = { - enumValues: null, - nullable: false, - plural: false, - type: 'ID', - }, - v9 = { - enumValues: null, - nullable: false, - plural: false, - type: 'Int', - } - return { - fragment: { - argumentDefinitions: [], - kind: 'Fragment', - metadata: null, - name: 'CommentsUpdateWithQuery', - selections: [ - { - alias: 'target', - args: v0 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - args: null, - kind: 'FragmentSpread', - name: 'CommentItem_comment', - }, - ], - storageKey: 'node(id:"test-id")', + "alias": "target", + "args": (v0/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + }, + (v1/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "body", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isPinned", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "user", + "plural": false, + "selections": [ + (v1/*: any*/), + (v2/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "fullName", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 50 + }, + { + "kind": "Literal", + "name": "width", + "value": 50 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "avatar", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "avatar(height:50,width:50)" + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "created", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "CommentsCount", + "kind": "LinkedField", + "name": "commentsCount", + "plural": false, + "selections": (v3/*: any*/), + "storageKey": null + }, + { + "alias": "canChange", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "change" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"change\")" + }, + { + "alias": "canDelete", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "delete" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"delete\")" + }, + { + "alias": "canReport", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "report" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"report\")" + }, + { + "alias": "canPin", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "pin" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"pin\")" + }, + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ReactionsCount", + "kind": "LinkedField", + "name": "reactionsCount", + "plural": false, + "selections": (v3/*: any*/), + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Reaction", + "kind": "LinkedField", + "name": "myReaction", + "plural": false, + "selections": [ + (v1/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "reactionType", + "storageKey": null + } + ], + "storageKey": null + } + ], + "type": "ReactionsInterface", + "abstractKey": "__isReactionsInterface" + }, + { + "kind": "TypeDiscriminator", + "abstractKey": "__isCommentsInterface" + } + ], + "type": "Comment", + "abstractKey": null + } + ], + "storageKey": "node(id:\"test-id\")" + } + ] + }, + "params": { + "cacheID": "db4077014bdf5986fbfdc07879a630e9", + "id": null, + "metadata": { + "relayTestingSelectionTypeInfo": { + "target": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Node" }, - ], - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: [], - kind: 'Operation', - name: 'CommentsUpdateWithQuery', - selections: [ - { - alias: 'target', - args: v0 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v1 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'body', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isPinned', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'user', - plural: false, - selections: [ - v1 /*: any*/, - v2 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'fullName', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 50, - }, - { - kind: 'Literal', - name: 'width', - value: 50, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'avatar', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'avatar(height:50,width:50)', - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'created', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'CommentsCount', - kind: 'LinkedField', - name: 'commentsCount', - plural: false, - selections: v3 /*: any*/, - storageKey: null, - }, - { - alias: 'canChange', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'change', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"change")', - }, - { - alias: 'canDelete', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'delete', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"delete")', - }, - { - alias: 'canReport', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'report', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"report")', - }, - { - alias: 'canPin', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'pin', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"pin")', - }, - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: null, - concreteType: 'ReactionsCount', - kind: 'LinkedField', - name: 'reactionsCount', - plural: false, - selections: v3 /*: any*/, - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Reaction', - kind: 'LinkedField', - name: 'myReaction', - plural: false, - selections: [ - v1 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'reactionType', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'ReactionsInterface', - abstractKey: '__isReactionsInterface', - }, - { - kind: 'TypeDiscriminator', - abstractKey: '__isCommentsInterface', - }, - ], - type: 'Comment', - abstractKey: null, - }, + "target.__isCommentsInterface": (v4/*: any*/), + "target.__isReactionsInterface": (v4/*: any*/), + "target.__typename": (v4/*: any*/), + "target.body": (v5/*: any*/), + "target.canChange": (v6/*: any*/), + "target.canDelete": (v6/*: any*/), + "target.canPin": (v6/*: any*/), + "target.canReport": (v6/*: any*/), + "target.commentsCount": { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "CommentsCount" + }, + "target.commentsCount.total": (v7/*: any*/), + "target.created": { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "DateTime" + }, + "target.id": (v8/*: any*/), + "target.isPinned": { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "Boolean" + }, + "target.myReaction": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Reaction" + }, + "target.myReaction.id": (v8/*: any*/), + "target.myReaction.reactionType": { + "enumValues": [ + "LIKE", + "DISLIKE" ], - storageKey: 'node(id:"test-id")', + "nullable": true, + "plural": false, + "type": "ReactionTypes" }, - ], - }, - params: { - cacheID: 'db4077014bdf5986fbfdc07879a630e9', - id: null, - metadata: { - relayTestingSelectionTypeInfo: { - target: { - enumValues: null, - nullable: true, - plural: false, - type: 'Node', - }, - 'target.__isCommentsInterface': v4 /*: any*/, - 'target.__isReactionsInterface': v4 /*: any*/, - 'target.__typename': v4 /*: any*/, - 'target.body': v5 /*: any*/, - 'target.canChange': v6 /*: any*/, - 'target.canDelete': v6 /*: any*/, - 'target.canPin': v6 /*: any*/, - 'target.canReport': v6 /*: any*/, - 'target.commentsCount': { - enumValues: null, - nullable: false, - plural: false, - type: 'CommentsCount', - }, - 'target.commentsCount.total': v7 /*: any*/, - 'target.created': { - enumValues: null, - nullable: false, - plural: false, - type: 'DateTime', - }, - 'target.id': v8 /*: any*/, - 'target.isPinned': { - enumValues: null, - nullable: false, - plural: false, - type: 'Boolean', - }, - 'target.myReaction': { - enumValues: null, - nullable: true, - plural: false, - type: 'Reaction', - }, - 'target.myReaction.id': v8 /*: any*/, - 'target.myReaction.reactionType': { - enumValues: ['LIKE', 'DISLIKE'], - nullable: true, - plural: false, - type: 'ReactionTypes', - }, - 'target.pk': v9 /*: any*/, - 'target.reactionsCount': { - enumValues: null, - nullable: true, - plural: false, - type: 'ReactionsCount', - }, - 'target.reactionsCount.total': v7 /*: any*/, - 'target.user': { - enumValues: null, - nullable: true, - plural: false, - type: 'User', - }, - 'target.user.avatar': { - enumValues: null, - nullable: true, - plural: false, - type: 'File', - }, - 'target.user.avatar.url': v4 /*: any*/, - 'target.user.fullName': v5 /*: any*/, - 'target.user.id': v8 /*: any*/, - 'target.user.pk': v9 /*: any*/, + "target.pk": (v9/*: any*/), + "target.reactionsCount": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "ReactionsCount" + }, + "target.reactionsCount.total": (v7/*: any*/), + "target.user": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "User" }, - }, - name: 'CommentsUpdateWithQuery', - operationKind: 'query', - text: 'query CommentsUpdateWithQuery {\n target: node(id: "test-id") {\n __typename\n ...CommentItem_comment\n id\n }\n}\n\nfragment CommentItem_comment on Comment {\n id\n pk\n body\n isPinned\n user {\n id\n pk\n fullName\n avatar(width: 50, height: 50) {\n url\n }\n }\n created\n commentsCount {\n total\n }\n canChange: hasPerm(perm: "change")\n canDelete: hasPerm(perm: "delete")\n canReport: hasPerm(perm: "report")\n canPin: hasPerm(perm: "pin")\n ...ReactionButton_target\n ...CommentItem_target\n}\n\nfragment CommentItem_target on CommentsInterface {\n __isCommentsInterface: __typename\n id\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n __isReactionsInterface: __typename\n id\n reactionsCount {\n total\n }\n myReaction {\n id\n reactionType\n }\n}\n', + "target.user.avatar": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "File" + }, + "target.user.avatar.url": (v4/*: any*/), + "target.user.fullName": (v5/*: any*/), + "target.user.id": (v8/*: any*/), + "target.user.pk": (v9/*: any*/) + } }, + "name": "CommentsUpdateWithQuery", + "operationKind": "query", + "text": "query CommentsUpdateWithQuery {\n target: node(id: \"test-id\") {\n __typename\n ...CommentItem_comment\n id\n }\n}\n\nfragment CommentItem_comment on Comment {\n id\n pk\n body\n isPinned\n user {\n id\n pk\n fullName\n avatar(width: 50, height: 50) {\n url\n }\n }\n created\n commentsCount {\n total\n }\n canChange: hasPerm(perm: \"change\")\n canDelete: hasPerm(perm: \"delete\")\n canReport: hasPerm(perm: \"report\")\n canPin: hasPerm(perm: \"pin\")\n ...ReactionButton_target\n ...CommentItem_target\n}\n\nfragment CommentItem_target on CommentsInterface {\n __isCommentsInterface: __typename\n id\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n __isReactionsInterface: __typename\n id\n reactionsCount {\n total\n }\n myReaction {\n id\n reactionType\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = '5c2efd65e04ffa6eb22f008b49c78153' +(node as any).hash = "5c2efd65e04ffa6eb22f008b49c78153"; -export default node +export default node; diff --git a/packages/components/__generated__/CommentsWithQuery.graphql.ts b/packages/components/__generated__/CommentsWithQuery.graphql.ts index 751ea6b0..490e52e1 100644 --- a/packages/components/__generated__/CommentsWithQuery.graphql.ts +++ b/packages/components/__generated__/CommentsWithQuery.graphql.ts @@ -5,545 +5,544 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' -export type CommentsWithQuery$variables = Record +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; +export type CommentsWithQuery$variables = Record; export type CommentsWithQuery$data = { - readonly target: - | { - readonly ' $fragmentSpreads': FragmentRefs<'CommentsFragment'> - } - | null - | undefined -} + readonly target: { + readonly " $fragmentSpreads": FragmentRefs<"CommentsFragment">; + } | null | undefined; +}; export type CommentsWithQuery = { - response: CommentsWithQuery$data - variables: CommentsWithQuery$variables -} + response: CommentsWithQuery$data; + variables: CommentsWithQuery$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ - { - kind: 'Literal', - name: 'id', - value: 'test-id', - }, - ], - v1 = { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v3 = [ +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "Literal", + "name": "id", + "value": "test-id" + } +], +v1 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null +}, +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v3 = [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "total", + "storageKey": null + } +], +v4 = { + "alias": null, + "args": null, + "concreteType": "CommentsCount", + "kind": "LinkedField", + "name": "commentsCount", + "plural": false, + "selections": (v3/*: any*/), + "storageKey": null +}, +v5 = [ + { + "kind": "Literal", + "name": "first", + "value": 5 + }, + { + "kind": "Literal", + "name": "orderBy", + "value": "-is_pinned,-created" + } +], +v6 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "pk", + "storageKey": null +}, +v7 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "String" +}, +v8 = { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "String" +}, +v9 = { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Boolean" +}, +v10 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "CommentsCount" +}, +v11 = { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Int" +}, +v12 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "ID" +}, +v13 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "Boolean" +}, +v14 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "Int" +}; +return { + "fragment": { + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "CommentsWithQuery", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'total', - storageKey: null, - }, + "alias": "target", + "args": (v0/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "args": null, + "kind": "FragmentSpread", + "name": "CommentsFragment" + } + ], + "storageKey": "node(id:\"test-id\")" + } ], - v4 = { - alias: null, - args: null, - concreteType: 'CommentsCount', - kind: 'LinkedField', - name: 'commentsCount', - plural: false, - selections: v3 /*: any*/, - storageKey: null, - }, - v5 = [ + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": [], + "kind": "Operation", + "name": "CommentsWithQuery", + "selections": [ { - kind: 'Literal', - name: 'first', - value: 5, - }, - { - kind: 'Literal', - name: 'orderBy', - value: '-is_pinned,-created', - }, - ], - v6 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'pk', - storageKey: null, - }, - v7 = { - enumValues: null, - nullable: false, - plural: false, - type: 'String', - }, - v8 = { - enumValues: null, - nullable: true, - plural: false, - type: 'String', - }, - v9 = { - enumValues: null, - nullable: true, - plural: false, - type: 'Boolean', - }, - v10 = { - enumValues: null, - nullable: false, - plural: false, - type: 'CommentsCount', - }, - v11 = { - enumValues: null, - nullable: true, - plural: false, - type: 'Int', - }, - v12 = { - enumValues: null, - nullable: false, - plural: false, - type: 'ID', - }, - v13 = { - enumValues: null, - nullable: false, - plural: false, - type: 'Boolean', - }, - v14 = { - enumValues: null, - nullable: false, - plural: false, - type: 'Int', - } - return { - fragment: { - argumentDefinitions: [], - kind: 'Fragment', - metadata: null, - name: 'CommentsWithQuery', - selections: [ - { - alias: 'target', - args: v0 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - args: null, - kind: 'FragmentSpread', - name: 'CommentsFragment', - }, - ], - storageKey: 'node(id:"test-id")', + "alias": "target", + "args": (v0/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v1/*: any*/), + (v2/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isCommentsEnabled", + "storageKey": null + }, + (v4/*: any*/), + { + "alias": null, + "args": (v5/*: any*/), + "concreteType": "CommentConnection", + "kind": "LinkedField", + "name": "comments", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "CommentEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Comment", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isPinned", + "storageKey": null + }, + (v6/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "body", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "user", + "plural": false, + "selections": [ + (v2/*: any*/), + (v6/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "fullName", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 50 + }, + { + "kind": "Literal", + "name": "width", + "value": 50 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "avatar", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "avatar(height:50,width:50)" + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "created", + "storageKey": null + }, + (v4/*: any*/), + { + "alias": "canChange", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "change" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"change\")" + }, + { + "alias": "canDelete", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "delete" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"delete\")" + }, + { + "alias": "canReport", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "report" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"report\")" + }, + { + "alias": "canPin", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "pin" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"pin\")" + }, + (v1/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ReactionsCount", + "kind": "LinkedField", + "name": "reactionsCount", + "plural": false, + "selections": (v3/*: any*/), + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Reaction", + "kind": "LinkedField", + "name": "myReaction", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "reactionType", + "storageKey": null + } + ], + "storageKey": null + } + ], + "type": "ReactionsInterface", + "abstractKey": "__isReactionsInterface" + }, + { + "kind": "TypeDiscriminator", + "abstractKey": "__isCommentsInterface" + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": "comments(first:5,orderBy:\"-is_pinned,-created\")" + }, + { + "alias": null, + "args": (v5/*: any*/), + "filters": [], + "handle": "connection", + "key": "CommentsList_comments", + "kind": "LinkedHandle", + "name": "comments" + } + ], + "type": "CommentsInterface", + "abstractKey": "__isCommentsInterface" + } + ], + "storageKey": "node(id:\"test-id\")" + } + ] + }, + "params": { + "cacheID": "9482acd41c824d468c0704483b67ac7c", + "id": null, + "metadata": { + "relayTestingSelectionTypeInfo": { + "target": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Node" }, - ], - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: [], - kind: 'Operation', - name: 'CommentsWithQuery', - selections: [ - { - alias: 'target', - args: v0 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v1 /*: any*/, - v2 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isCommentsEnabled', - storageKey: null, - }, - v4 /*: any*/, - { - alias: null, - args: v5 /*: any*/, - concreteType: 'CommentConnection', - kind: 'LinkedField', - name: 'comments', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'CommentEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'Comment', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isPinned', - storageKey: null, - }, - v6 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'body', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'user', - plural: false, - selections: [ - v2 /*: any*/, - v6 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'fullName', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 50, - }, - { - kind: 'Literal', - name: 'width', - value: 50, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'avatar', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'avatar(height:50,width:50)', - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'created', - storageKey: null, - }, - v4 /*: any*/, - { - alias: 'canChange', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'change', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"change")', - }, - { - alias: 'canDelete', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'delete', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"delete")', - }, - { - alias: 'canReport', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'report', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"report")', - }, - { - alias: 'canPin', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'pin', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"pin")', - }, - v1 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: null, - concreteType: 'ReactionsCount', - kind: 'LinkedField', - name: 'reactionsCount', - plural: false, - selections: v3 /*: any*/, - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Reaction', - kind: 'LinkedField', - name: 'myReaction', - plural: false, - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'reactionType', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'ReactionsInterface', - abstractKey: '__isReactionsInterface', - }, - { - kind: 'TypeDiscriminator', - abstractKey: '__isCommentsInterface', - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: 'comments(first:5,orderBy:"-is_pinned,-created")', - }, - { - alias: null, - args: v5 /*: any*/, - filters: [], - handle: 'connection', - key: 'CommentsList_comments', - kind: 'LinkedHandle', - name: 'comments', - }, - ], - type: 'CommentsInterface', - abstractKey: '__isCommentsInterface', - }, + "target.__isCommentsInterface": (v7/*: any*/), + "target.__typename": (v7/*: any*/), + "target.comments": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "CommentConnection" + }, + "target.comments.edges": { + "enumValues": null, + "nullable": false, + "plural": true, + "type": "CommentEdge" + }, + "target.comments.edges.cursor": (v7/*: any*/), + "target.comments.edges.node": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Comment" + }, + "target.comments.edges.node.__isCommentsInterface": (v7/*: any*/), + "target.comments.edges.node.__isReactionsInterface": (v7/*: any*/), + "target.comments.edges.node.__typename": (v7/*: any*/), + "target.comments.edges.node.body": (v8/*: any*/), + "target.comments.edges.node.canChange": (v9/*: any*/), + "target.comments.edges.node.canDelete": (v9/*: any*/), + "target.comments.edges.node.canPin": (v9/*: any*/), + "target.comments.edges.node.canReport": (v9/*: any*/), + "target.comments.edges.node.commentsCount": (v10/*: any*/), + "target.comments.edges.node.commentsCount.total": (v11/*: any*/), + "target.comments.edges.node.created": { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "DateTime" + }, + "target.comments.edges.node.id": (v12/*: any*/), + "target.comments.edges.node.isPinned": (v13/*: any*/), + "target.comments.edges.node.myReaction": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Reaction" + }, + "target.comments.edges.node.myReaction.id": (v12/*: any*/), + "target.comments.edges.node.myReaction.reactionType": { + "enumValues": [ + "LIKE", + "DISLIKE" ], - storageKey: 'node(id:"test-id")', + "nullable": true, + "plural": false, + "type": "ReactionTypes" }, - ], - }, - params: { - cacheID: '9482acd41c824d468c0704483b67ac7c', - id: null, - metadata: { - relayTestingSelectionTypeInfo: { - target: { - enumValues: null, - nullable: true, - plural: false, - type: 'Node', - }, - 'target.__isCommentsInterface': v7 /*: any*/, - 'target.__typename': v7 /*: any*/, - 'target.comments': { - enumValues: null, - nullable: true, - plural: false, - type: 'CommentConnection', - }, - 'target.comments.edges': { - enumValues: null, - nullable: false, - plural: true, - type: 'CommentEdge', - }, - 'target.comments.edges.cursor': v7 /*: any*/, - 'target.comments.edges.node': { - enumValues: null, - nullable: true, - plural: false, - type: 'Comment', - }, - 'target.comments.edges.node.__isCommentsInterface': v7 /*: any*/, - 'target.comments.edges.node.__isReactionsInterface': v7 /*: any*/, - 'target.comments.edges.node.__typename': v7 /*: any*/, - 'target.comments.edges.node.body': v8 /*: any*/, - 'target.comments.edges.node.canChange': v9 /*: any*/, - 'target.comments.edges.node.canDelete': v9 /*: any*/, - 'target.comments.edges.node.canPin': v9 /*: any*/, - 'target.comments.edges.node.canReport': v9 /*: any*/, - 'target.comments.edges.node.commentsCount': v10 /*: any*/, - 'target.comments.edges.node.commentsCount.total': v11 /*: any*/, - 'target.comments.edges.node.created': { - enumValues: null, - nullable: false, - plural: false, - type: 'DateTime', - }, - 'target.comments.edges.node.id': v12 /*: any*/, - 'target.comments.edges.node.isPinned': v13 /*: any*/, - 'target.comments.edges.node.myReaction': { - enumValues: null, - nullable: true, - plural: false, - type: 'Reaction', - }, - 'target.comments.edges.node.myReaction.id': v12 /*: any*/, - 'target.comments.edges.node.myReaction.reactionType': { - enumValues: ['LIKE', 'DISLIKE'], - nullable: true, - plural: false, - type: 'ReactionTypes', - }, - 'target.comments.edges.node.pk': v14 /*: any*/, - 'target.comments.edges.node.reactionsCount': { - enumValues: null, - nullable: true, - plural: false, - type: 'ReactionsCount', - }, - 'target.comments.edges.node.reactionsCount.total': v11 /*: any*/, - 'target.comments.edges.node.user': { - enumValues: null, - nullable: true, - plural: false, - type: 'User', - }, - 'target.comments.edges.node.user.avatar': { - enumValues: null, - nullable: true, - plural: false, - type: 'File', - }, - 'target.comments.edges.node.user.avatar.url': v7 /*: any*/, - 'target.comments.edges.node.user.fullName': v8 /*: any*/, - 'target.comments.edges.node.user.id': v12 /*: any*/, - 'target.comments.edges.node.user.pk': v14 /*: any*/, - 'target.comments.pageInfo': { - enumValues: null, - nullable: false, - plural: false, - type: 'PageInfo', - }, - 'target.comments.pageInfo.endCursor': v8 /*: any*/, - 'target.comments.pageInfo.hasNextPage': v13 /*: any*/, - 'target.commentsCount': v10 /*: any*/, - 'target.commentsCount.total': v11 /*: any*/, - 'target.id': v12 /*: any*/, - 'target.isCommentsEnabled': v13 /*: any*/, + "target.comments.edges.node.pk": (v14/*: any*/), + "target.comments.edges.node.reactionsCount": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "ReactionsCount" }, - }, - name: 'CommentsWithQuery', - operationKind: 'query', - text: 'query CommentsWithQuery {\n target: node(id: "test-id") {\n __typename\n ...CommentsFragment\n id\n }\n}\n\nfragment CommentItem_comment on Comment {\n id\n pk\n body\n isPinned\n user {\n id\n pk\n fullName\n avatar(width: 50, height: 50) {\n url\n }\n }\n created\n commentsCount {\n total\n }\n canChange: hasPerm(perm: "change")\n canDelete: hasPerm(perm: "delete")\n canReport: hasPerm(perm: "report")\n canPin: hasPerm(perm: "pin")\n ...ReactionButton_target\n ...CommentItem_target\n}\n\nfragment CommentItem_target on CommentsInterface {\n __isCommentsInterface: __typename\n id\n}\n\nfragment CommentsFragment on CommentsInterface {\n __isCommentsInterface: __typename\n id\n __typename\n isCommentsEnabled\n commentsCount {\n total\n }\n ...CommentsList_comments\n ...CommentItem_target\n}\n\nfragment CommentsList_comments on CommentsInterface {\n __isCommentsInterface: __typename\n id\n commentsCount {\n total\n }\n comments(first: 5, orderBy: "-is_pinned,-created") {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n node {\n id\n isPinned\n ...CommentItem_comment\n __typename\n }\n cursor\n }\n }\n ...CommentItem_target\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n __isReactionsInterface: __typename\n id\n reactionsCount {\n total\n }\n myReaction {\n id\n reactionType\n }\n}\n', + "target.comments.edges.node.reactionsCount.total": (v11/*: any*/), + "target.comments.edges.node.user": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "User" + }, + "target.comments.edges.node.user.avatar": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "File" + }, + "target.comments.edges.node.user.avatar.url": (v7/*: any*/), + "target.comments.edges.node.user.fullName": (v8/*: any*/), + "target.comments.edges.node.user.id": (v12/*: any*/), + "target.comments.edges.node.user.pk": (v14/*: any*/), + "target.comments.pageInfo": { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "PageInfo" + }, + "target.comments.pageInfo.endCursor": (v8/*: any*/), + "target.comments.pageInfo.hasNextPage": (v13/*: any*/), + "target.commentsCount": (v10/*: any*/), + "target.commentsCount.total": (v11/*: any*/), + "target.id": (v12/*: any*/), + "target.isCommentsEnabled": (v13/*: any*/) + } }, + "name": "CommentsWithQuery", + "operationKind": "query", + "text": "query CommentsWithQuery {\n target: node(id: \"test-id\") {\n __typename\n ...CommentsFragment\n id\n }\n}\n\nfragment CommentItem_comment on Comment {\n id\n pk\n body\n isPinned\n user {\n id\n pk\n fullName\n avatar(width: 50, height: 50) {\n url\n }\n }\n created\n commentsCount {\n total\n }\n canChange: hasPerm(perm: \"change\")\n canDelete: hasPerm(perm: \"delete\")\n canReport: hasPerm(perm: \"report\")\n canPin: hasPerm(perm: \"pin\")\n ...ReactionButton_target\n ...CommentItem_target\n}\n\nfragment CommentItem_target on CommentsInterface {\n __isCommentsInterface: __typename\n id\n}\n\nfragment CommentsFragment on CommentsInterface {\n __isCommentsInterface: __typename\n id\n __typename\n isCommentsEnabled\n commentsCount {\n total\n }\n ...CommentsList_comments\n ...CommentItem_target\n}\n\nfragment CommentsList_comments on CommentsInterface {\n __isCommentsInterface: __typename\n id\n commentsCount {\n total\n }\n comments(first: 5, orderBy: \"-is_pinned,-created\") {\n pageInfo {\n endCursor\n hasNextPage\n }\n edges {\n node {\n id\n isPinned\n ...CommentItem_comment\n __typename\n }\n cursor\n }\n }\n ...CommentItem_target\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n __isReactionsInterface: __typename\n id\n reactionsCount {\n total\n }\n myReaction {\n id\n reactionType\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = '64b3a06f269b694de19ac7c4ca12ab26' +(node as any).hash = "64b3a06f269b694de19ac7c4ca12ab26"; -export default node +export default node; diff --git a/packages/components/__generated__/CreateChatRoomMutation.graphql.ts b/packages/components/__generated__/CreateChatRoomMutation.graphql.ts index 8abb12a1..9de11742 100644 --- a/packages/components/__generated__/CreateChatRoomMutation.graphql.ts +++ b/packages/components/__generated__/CreateChatRoomMutation.graphql.ts @@ -5,417 +5,404 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Mutation } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Mutation } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type ChatRoomCreateInput = { - clientMutationId?: string | null | undefined - isGroup?: boolean | null | undefined - participants: ReadonlyArray - profileId: string - title?: string | null | undefined -} + clientMutationId?: string | null | undefined; + isGroup?: boolean | null | undefined; + participants: ReadonlyArray; + profileId: string; + title?: string | null | undefined; +}; export type CreateChatRoomMutation$variables = { - connections: ReadonlyArray - input: ChatRoomCreateInput -} + connections: ReadonlyArray; + input: ChatRoomCreateInput; +}; export type CreateChatRoomMutation$data = { - readonly chatRoomCreate: - | { - readonly errors: - | ReadonlyArray< - | { - readonly field: string - readonly messages: ReadonlyArray - } - | null - | undefined - > - | null - | undefined - readonly room: - | { - readonly node: - | { - readonly id: string - readonly ' $fragmentSpreads': FragmentRefs< - 'LastMessageFragment' | 'TitleFragment' | 'UnreadMessagesCountFragment' - > - } - | null - | undefined - } - | null - | undefined - } - | null - | undefined -} + readonly chatRoomCreate: { + readonly errors: ReadonlyArray<{ + readonly field: string; + readonly messages: ReadonlyArray; + } | null | undefined> | null | undefined; + readonly room: { + readonly node: { + readonly id: string; + readonly " $fragmentSpreads": FragmentRefs<"LastMessageFragment" | "TitleFragment" | "UnreadMessagesCountFragment">; + } | null | undefined; + } | null | undefined; + } | null | undefined; +}; export type CreateChatRoomMutation = { - response: CreateChatRoomMutation$data - variables: CreateChatRoomMutation$variables -} + response: CreateChatRoomMutation$data; + variables: CreateChatRoomMutation$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'connections', - }, - v1 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'input', +const node: ConcreteRequest = (function(){ +var v0 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "connections" +}, +v1 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "input" +}, +v2 = [ + { + "kind": "Variable", + "name": "input", + "variableName": "input" + } +], +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v4 = { + "alias": null, + "args": null, + "concreteType": "ErrorType", + "kind": "LinkedField", + "name": "errors", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "field", + "storageKey": null }, - v2 = [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "messages", + "storageKey": null + } + ], + "storageKey": null +}, +v5 = [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } +]; +return { + "fragment": { + "argumentDefinitions": [ + (v0/*: any*/), + (v1/*: any*/) + ], + "kind": "Fragment", + "metadata": null, + "name": "CreateChatRoomMutation", + "selections": [ { - kind: 'Variable', - name: 'input', - variableName: 'input', - }, + "alias": null, + "args": (v2/*: any*/), + "concreteType": "ChatRoomCreatePayload", + "kind": "LinkedField", + "name": "chatRoomCreate", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomEdge", + "kind": "LinkedField", + "name": "room", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoom", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "args": null, + "kind": "FragmentSpread", + "name": "LastMessageFragment" + }, + { + "args": null, + "kind": "FragmentSpread", + "name": "TitleFragment" + }, + { + "args": null, + "kind": "FragmentSpread", + "name": "UnreadMessagesCountFragment" + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + (v4/*: any*/) + ], + "storageKey": null + } ], - v3 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v4 = { - alias: null, - args: null, - concreteType: 'ErrorType', - kind: 'LinkedField', - name: 'errors', - plural: true, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'field', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'messages', - storageKey: null, - }, - ], - storageKey: null, - }, - v5 = [ + "type": "Mutation", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": [ + (v1/*: any*/), + (v0/*: any*/) + ], + "kind": "Operation", + "name": "CreateChatRoomMutation", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, + "alias": null, + "args": (v2/*: any*/), + "concreteType": "ChatRoomCreatePayload", + "kind": "LinkedField", + "name": "chatRoomCreate", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomEdge", + "kind": "LinkedField", + "name": "room", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoom", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "lastMessageTime", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Message", + "kind": "LinkedField", + "name": "lastMessage", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "content", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isGroup", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "first", + "value": 2 + } + ], + "concreteType": "ChatRoomParticipantConnection", + "kind": "LinkedField", + "name": "participants", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomParticipantEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomParticipant", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "name", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100 + }, + { + "kind": "Literal", + "name": "width", + "value": 100 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": (v5/*: any*/), + "storageKey": "image(height:100,width:100)" + } + ], + "storageKey": null + }, + (v3/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": "participants(first:2)" + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 144 + }, + { + "kind": "Literal", + "name": "width", + "value": 144 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": (v5/*: any*/), + "storageKey": "image(height:144,width:144)" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "title", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "UnreadMessageCount", + "kind": "LinkedField", + "name": "unreadMessages", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "count", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "markedUnread", + "storageKey": null + }, + (v3/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "filters": null, + "handle": "prependEdge", + "key": "", + "kind": "LinkedHandle", + "name": "room", + "handleArgs": [ + { + "kind": "Variable", + "name": "connections", + "variableName": "connections" + } + ] + }, + (v4/*: any*/) + ], + "storageKey": null + } ] - return { - fragment: { - argumentDefinitions: [v0 /*: any*/, v1 /*: any*/], - kind: 'Fragment', - metadata: null, - name: 'CreateChatRoomMutation', - selections: [ - { - alias: null, - args: v2 /*: any*/, - concreteType: 'ChatRoomCreatePayload', - kind: 'LinkedField', - name: 'chatRoomCreate', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomEdge', - kind: 'LinkedField', - name: 'room', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoom', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v3 /*: any*/, - { - args: null, - kind: 'FragmentSpread', - name: 'LastMessageFragment', - }, - { - args: null, - kind: 'FragmentSpread', - name: 'TitleFragment', - }, - { - args: null, - kind: 'FragmentSpread', - name: 'UnreadMessagesCountFragment', - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - v4 /*: any*/, - ], - storageKey: null, - }, - ], - type: 'Mutation', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: [v1 /*: any*/, v0 /*: any*/], - kind: 'Operation', - name: 'CreateChatRoomMutation', - selections: [ - { - alias: null, - args: v2 /*: any*/, - concreteType: 'ChatRoomCreatePayload', - kind: 'LinkedField', - name: 'chatRoomCreate', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomEdge', - kind: 'LinkedField', - name: 'room', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoom', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v3 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'lastMessageTime', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Message', - kind: 'LinkedField', - name: 'lastMessage', - plural: false, - selections: [ - v3 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'content', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isGroup', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'first', - value: 2, - }, - ], - concreteType: 'ChatRoomParticipantConnection', - kind: 'LinkedField', - name: 'participants', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomParticipantEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomParticipant', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - v3 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'name', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 100, - }, - { - kind: 'Literal', - name: 'width', - value: 100, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: v5 /*: any*/, - storageKey: 'image(height:100,width:100)', - }, - ], - storageKey: null, - }, - v3 /*: any*/, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: 'participants(first:2)', - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 144, - }, - { - kind: 'Literal', - name: 'width', - value: 144, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: v5 /*: any*/, - storageKey: 'image(height:144,width:144)', - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'title', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'UnreadMessageCount', - kind: 'LinkedField', - name: 'unreadMessages', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'count', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'markedUnread', - storageKey: null, - }, - v3 /*: any*/, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - filters: null, - handle: 'prependEdge', - key: '', - kind: 'LinkedHandle', - name: 'room', - handleArgs: [ - { - kind: 'Variable', - name: 'connections', - variableName: 'connections', - }, - ], - }, - v4 /*: any*/, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: 'f180343b233d0cf61738ce2e0b866977', - id: null, - metadata: {}, - name: 'CreateChatRoomMutation', - operationKind: 'mutation', - text: 'mutation CreateChatRoomMutation(\n $input: ChatRoomCreateInput!\n) {\n chatRoomCreate(input: $input) {\n room {\n node {\n id\n ...LastMessageFragment\n ...TitleFragment\n ...UnreadMessagesCountFragment\n }\n }\n errors {\n field\n messages\n }\n }\n}\n\nfragment GroupTitleFragment on ChatRoom {\n id\n image(width: 144, height: 144) {\n url\n }\n title\n}\n\nfragment LastMessageFragment on ChatRoom {\n id\n lastMessageTime\n lastMessage {\n id\n content\n }\n}\n\nfragment RoomTitleFragment on ChatRoom {\n id\n participants(first: 2) {\n edges {\n node {\n profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n }\n id\n }\n }\n }\n}\n\nfragment TitleFragment on ChatRoom {\n id\n isGroup\n ...RoomTitleFragment\n ...GroupTitleFragment\n}\n\nfragment UnreadMessagesCountFragment on ChatRoom {\n id\n unreadMessages {\n count\n markedUnread\n id\n }\n}\n', - }, + }, + "params": { + "cacheID": "f180343b233d0cf61738ce2e0b866977", + "id": null, + "metadata": {}, + "name": "CreateChatRoomMutation", + "operationKind": "mutation", + "text": "mutation CreateChatRoomMutation(\n $input: ChatRoomCreateInput!\n) {\n chatRoomCreate(input: $input) {\n room {\n node {\n id\n ...LastMessageFragment\n ...TitleFragment\n ...UnreadMessagesCountFragment\n }\n }\n errors {\n field\n messages\n }\n }\n}\n\nfragment GroupTitleFragment on ChatRoom {\n id\n image(width: 144, height: 144) {\n url\n }\n title\n}\n\nfragment LastMessageFragment on ChatRoom {\n id\n lastMessageTime\n lastMessage {\n id\n content\n }\n}\n\nfragment RoomTitleFragment on ChatRoom {\n id\n participants(first: 2) {\n edges {\n node {\n profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n }\n id\n }\n }\n }\n}\n\nfragment TitleFragment on ChatRoom {\n id\n isGroup\n ...RoomTitleFragment\n ...GroupTitleFragment\n}\n\nfragment UnreadMessagesCountFragment on ChatRoom {\n id\n unreadMessages {\n count\n markedUnread\n id\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = '304767b39c282d78401577a512369b3e' +(node as any).hash = "304767b39c282d78401577a512369b3e"; -export default node +export default node; diff --git a/packages/components/__generated__/FollowToggleMutation.graphql.ts b/packages/components/__generated__/FollowToggleMutation.graphql.ts index 18f528bf..433edba4 100644 --- a/packages/components/__generated__/FollowToggleMutation.graphql.ts +++ b/packages/components/__generated__/FollowToggleMutation.graphql.ts @@ -5,219 +5,209 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Mutation } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Mutation } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type FollowToggleInput = { - actorObjectId: string - clientMutationId?: string | null | undefined - targetObjectId: string -} + actorObjectId: string; + clientMutationId?: string | null | undefined; + targetObjectId: string; +}; export type FollowToggleMutation$variables = { - input: FollowToggleInput -} + input: FollowToggleInput; +}; export type FollowToggleMutation$data = { - readonly followToggle: - | { - readonly follow: - | { - readonly node: - | { - readonly target: { - readonly $updatableFragmentSpreads: FragmentRefs<'FollowToggleUpdatableFragment'> - readonly followersCount: number | null | undefined - readonly isFollowedByMe: boolean | null | undefined - } - } - | null - | undefined - } - | null - | undefined - } - | null - | undefined -} + readonly followToggle: { + readonly follow: { + readonly node: { + readonly target: { + readonly $updatableFragmentSpreads: FragmentRefs<"FollowToggleUpdatableFragment">; + readonly followersCount: number | null | undefined; + readonly isFollowedByMe: boolean | null | undefined; + }; + } | null | undefined; + } | null | undefined; + } | null | undefined; +}; export type FollowToggleMutation = { - response: FollowToggleMutation$data - variables: FollowToggleMutation$variables -} + response: FollowToggleMutation$data; + variables: FollowToggleMutation$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "input" + } +], +v1 = [ + { + "kind": "Variable", + "name": "input", + "variableName": "input" + } +], +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isFollowedByMe", + "storageKey": null +}, +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "followersCount", + "storageKey": null +}, +v4 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "FollowToggleMutation", + "selections": [ { - defaultValue: null, - kind: 'LocalArgument', - name: 'input', - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": "FollowTogglePayload", + "kind": "LinkedField", + "name": "followToggle", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "FollowEdge", + "kind": "LinkedField", + "name": "follow", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Follow", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "target", + "plural": false, + "selections": [ + (v2/*: any*/), + (v3/*: any*/), + { + "args": null, + "kind": "FragmentSpread", + "name": "FollowToggleUpdatableFragment" + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + } ], - v1 = [ + "type": "Mutation", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "FollowToggleMutation", + "selections": [ { - kind: 'Variable', - name: 'input', - variableName: 'input', - }, - ], - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isFollowedByMe', - storageKey: null, - }, - v3 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'followersCount', - storageKey: null, - }, - v4 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - } - return { - fragment: { - argumentDefinitions: v0 /*: any*/, - kind: 'Fragment', - metadata: null, - name: 'FollowToggleMutation', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'FollowTogglePayload', - kind: 'LinkedField', - name: 'followToggle', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'FollowEdge', - kind: 'LinkedField', - name: 'follow', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Follow', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'target', - plural: false, - selections: [ - v2 /*: any*/, - v3 /*: any*/, - { - args: null, - kind: 'FragmentSpread', - name: 'FollowToggleUpdatableFragment', - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'Mutation', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: v0 /*: any*/, - kind: 'Operation', - name: 'FollowToggleMutation', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'FollowTogglePayload', - kind: 'LinkedField', - name: 'followToggle', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'FollowEdge', - kind: 'LinkedField', - name: 'follow', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Follow', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'target', - plural: false, - selections: [ - v2 /*: any*/, - v3 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v4 /*: any*/, - ], - storageKey: null, - }, - v4 /*: any*/, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: 'ebebfbcba39ec99da7c9589554a460d5', - id: null, - metadata: {}, - name: 'FollowToggleMutation', - operationKind: 'mutation', - text: 'mutation FollowToggleMutation(\n $input: FollowToggleInput!\n) {\n followToggle(input: $input) {\n follow {\n node {\n target {\n isFollowedByMe\n followersCount\n __typename\n id\n }\n id\n }\n }\n }\n}\n', - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": "FollowTogglePayload", + "kind": "LinkedField", + "name": "followToggle", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "FollowEdge", + "kind": "LinkedField", + "name": "follow", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Follow", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "target", + "plural": false, + "selections": [ + (v2/*: any*/), + (v3/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + }, + (v4/*: any*/) + ], + "storageKey": null + }, + (v4/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ] + }, + "params": { + "cacheID": "ebebfbcba39ec99da7c9589554a460d5", + "id": null, + "metadata": {}, + "name": "FollowToggleMutation", + "operationKind": "mutation", + "text": "mutation FollowToggleMutation(\n $input: FollowToggleInput!\n) {\n followToggle(input: $input) {\n follow {\n node {\n target {\n isFollowedByMe\n followersCount\n __typename\n id\n }\n id\n }\n }\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = 'd58a9c2e3572d54fec982030e1ccaab0' +(node as any).hash = "d58a9c2e3572d54fec982030e1ccaab0"; -export default node +export default node; diff --git a/packages/components/__generated__/FollowToggleUpdatableFragment.graphql.ts b/packages/components/__generated__/FollowToggleUpdatableFragment.graphql.ts index 0860759f..75bbde89 100644 --- a/packages/components/__generated__/FollowToggleUpdatableFragment.graphql.ts +++ b/packages/components/__generated__/FollowToggleUpdatableFragment.graphql.ts @@ -5,47 +5,46 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ReaderFragment, UpdatableFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { UpdatableFragment, ReaderFragment } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type FollowToggleUpdatableFragment$data = { - followersCount: number | null | undefined - isFollowedByMe: boolean | null | undefined - readonly ' $fragmentType': 'FollowToggleUpdatableFragment' -} + followersCount: number | null | undefined; + isFollowedByMe: boolean | null | undefined; + readonly " $fragmentType": "FollowToggleUpdatableFragment"; +}; export type FollowToggleUpdatableFragment$key = { - readonly ' $data'?: FollowToggleUpdatableFragment$data - readonly $updatableFragmentSpreads: FragmentRefs<'FollowToggleUpdatableFragment'> -} + readonly " $data"?: FollowToggleUpdatableFragment$data; + readonly $updatableFragmentSpreads: FragmentRefs<"FollowToggleUpdatableFragment">; +}; const node: ReaderFragment = { - argumentDefinitions: [], - kind: 'Fragment', - metadata: null, - name: 'FollowToggleUpdatableFragment', - selections: [ + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "FollowToggleUpdatableFragment", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isFollowedByMe', - storageKey: null, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isFollowedByMe", + "storageKey": null }, { - alias: null, - args: null, - kind: 'ScalarField', - name: 'followersCount', - storageKey: null, - }, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "followersCount", + "storageKey": null + } ], - type: 'Profile', - abstractKey: null, -} + "type": "Profile", + "abstractKey": null +}; -;(node as any).hash = '4d151f5906c7d00fa429a6ccd27ca8bd' +(node as any).hash = "4d151f5906c7d00fa429a6ccd27ca8bd"; -export default node +export default node; diff --git a/packages/components/__generated__/GroupDetailsQuery.graphql.ts b/packages/components/__generated__/GroupDetailsQuery.graphql.ts index 062cc975..035c2e3f 100644 --- a/packages/components/__generated__/GroupDetailsQuery.graphql.ts +++ b/packages/components/__generated__/GroupDetailsQuery.graphql.ts @@ -5,317 +5,313 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type GroupDetailsQuery$variables = { - roomId: string -} + roomId: string; +}; export type GroupDetailsQuery$data = { - readonly chatRoom: - | { - readonly id: string - readonly participantsCount: number - readonly ' $fragmentSpreads': FragmentRefs<'GroupTitleFragment' | 'MembersListFragment'> - } - | null - | undefined -} + readonly chatRoom: { + readonly id: string; + readonly participantsCount: number; + readonly " $fragmentSpreads": FragmentRefs<"GroupTitleFragment" | "MembersListFragment">; + } | null | undefined; +}; export type GroupDetailsQuery = { - response: GroupDetailsQuery$data - variables: GroupDetailsQuery$variables -} + response: GroupDetailsQuery$data; + variables: GroupDetailsQuery$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ - { - defaultValue: null, - kind: 'LocalArgument', - name: 'roomId', - }, - ], - v1 = [ - { - kind: 'Variable', - name: 'id', - variableName: 'roomId', - }, - ], - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v3 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'participantsCount', - storageKey: null, - }, - v4 = [ +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "roomId" + } +], +v1 = [ + { + "kind": "Variable", + "name": "id", + "variableName": "roomId" + } +], +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "participantsCount", + "storageKey": null +}, +v4 = [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } +], +v5 = [ + { + "kind": "Literal", + "name": "first", + "value": 5 + } +]; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "GroupDetailsQuery", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": "ChatRoom", + "kind": "LinkedField", + "name": "chatRoom", + "plural": false, + "selections": [ + (v2/*: any*/), + (v3/*: any*/), + { + "args": null, + "kind": "FragmentSpread", + "name": "GroupTitleFragment" + }, + { + "args": null, + "kind": "FragmentSpread", + "name": "MembersListFragment" + } + ], + "storageKey": null + } ], - v5 = [ + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "GroupDetailsQuery", + "selections": [ { - kind: 'Literal', - name: 'first', - value: 5, - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": "ChatRoom", + "kind": "LinkedField", + "name": "chatRoom", + "plural": false, + "selections": [ + (v2/*: any*/), + (v3/*: any*/), + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 144 + }, + { + "kind": "Literal", + "name": "width", + "value": 144 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": (v4/*: any*/), + "storageKey": "image(height:144,width:144)" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "title", + "storageKey": null + }, + { + "alias": null, + "args": (v5/*: any*/), + "concreteType": "ChatRoomParticipantConnection", + "kind": "LinkedField", + "name": "participants", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomParticipantEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomParticipant", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "name", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100 + }, + { + "kind": "Literal", + "name": "width", + "value": 100 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": (v4/*: any*/), + "storageKey": "image(height:100,width:100)" + }, + { + "alias": null, + "args": null, + "concreteType": "URLPath", + "kind": "LinkedField", + "name": "urlPath", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "path", + "storageKey": null + }, + (v2/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "role", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": "participants(first:5)" + }, + { + "alias": null, + "args": (v5/*: any*/), + "filters": null, + "handle": "connection", + "key": "ChatRoom_participants", + "kind": "LinkedHandle", + "name": "participants" + } + ], + "storageKey": null + } ] - return { - fragment: { - argumentDefinitions: v0 /*: any*/, - kind: 'Fragment', - metadata: null, - name: 'GroupDetailsQuery', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'ChatRoom', - kind: 'LinkedField', - name: 'chatRoom', - plural: false, - selections: [ - v2 /*: any*/, - v3 /*: any*/, - { - args: null, - kind: 'FragmentSpread', - name: 'GroupTitleFragment', - }, - { - args: null, - kind: 'FragmentSpread', - name: 'MembersListFragment', - }, - ], - storageKey: null, - }, - ], - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: v0 /*: any*/, - kind: 'Operation', - name: 'GroupDetailsQuery', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'ChatRoom', - kind: 'LinkedField', - name: 'chatRoom', - plural: false, - selections: [ - v2 /*: any*/, - v3 /*: any*/, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 144, - }, - { - kind: 'Literal', - name: 'width', - value: 144, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: v4 /*: any*/, - storageKey: 'image(height:144,width:144)', - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'title', - storageKey: null, - }, - { - alias: null, - args: v5 /*: any*/, - concreteType: 'ChatRoomParticipantConnection', - kind: 'LinkedField', - name: 'participants', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomParticipantEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomParticipant', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'name', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 100, - }, - { - kind: 'Literal', - name: 'width', - value: 100, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: v4 /*: any*/, - storageKey: 'image(height:100,width:100)', - }, - { - alias: null, - args: null, - concreteType: 'URLPath', - kind: 'LinkedField', - name: 'urlPath', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'path', - storageKey: null, - }, - v2 /*: any*/, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'role', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: 'participants(first:5)', - }, - { - alias: null, - args: v5 /*: any*/, - filters: null, - handle: 'connection', - key: 'ChatRoom_participants', - kind: 'LinkedHandle', - name: 'participants', - }, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: '6989f29aa2fb2a66b1bbaa0655b8371b', - id: null, - metadata: {}, - name: 'GroupDetailsQuery', - operationKind: 'query', - text: 'query GroupDetailsQuery(\n $roomId: ID!\n) {\n chatRoom(id: $roomId) {\n id\n participantsCount\n ...GroupTitleFragment\n ...MembersListFragment\n }\n}\n\nfragment GroupTitleFragment on ChatRoom {\n id\n image(width: 144, height: 144) {\n url\n }\n title\n}\n\nfragment MembersListFragment on ChatRoom {\n id\n participants(first: 5) {\n edges {\n node {\n id\n profile {\n id\n ...ProfileItemFragment\n }\n role\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n\nfragment ProfileItemFragment on Profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n urlPath {\n path\n id\n }\n}\n', - }, + }, + "params": { + "cacheID": "6989f29aa2fb2a66b1bbaa0655b8371b", + "id": null, + "metadata": {}, + "name": "GroupDetailsQuery", + "operationKind": "query", + "text": "query GroupDetailsQuery(\n $roomId: ID!\n) {\n chatRoom(id: $roomId) {\n id\n participantsCount\n ...GroupTitleFragment\n ...MembersListFragment\n }\n}\n\nfragment GroupTitleFragment on ChatRoom {\n id\n image(width: 144, height: 144) {\n url\n }\n title\n}\n\nfragment MembersListFragment on ChatRoom {\n id\n participants(first: 5) {\n edges {\n node {\n id\n profile {\n id\n ...ProfileItemFragment\n }\n role\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n\nfragment ProfileItemFragment on Profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n urlPath {\n path\n id\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = '9ee8b8ab9e1dd4679a2b518e8193f1c2' +(node as any).hash = "9ee8b8ab9e1dd4679a2b518e8193f1c2"; -export default node +export default node; diff --git a/packages/components/__generated__/GroupTitleFragment.graphql.ts b/packages/components/__generated__/GroupTitleFragment.graphql.ts index 1ef7ed51..fd6ba8e8 100644 --- a/packages/components/__generated__/GroupTitleFragment.graphql.ts +++ b/packages/components/__generated__/GroupTitleFragment.graphql.ts @@ -5,82 +5,78 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { Fragment, ReaderFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { Fragment, ReaderFragment } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type GroupTitleFragment$data = { - readonly id: string - readonly image: - | { - readonly url: string - } - | null - | undefined - readonly title: string | null | undefined - readonly ' $fragmentType': 'GroupTitleFragment' -} + readonly id: string; + readonly image: { + readonly url: string; + } | null | undefined; + readonly title: string | null | undefined; + readonly " $fragmentType": "GroupTitleFragment"; +}; export type GroupTitleFragment$key = { - readonly ' $data'?: GroupTitleFragment$data - readonly ' $fragmentSpreads': FragmentRefs<'GroupTitleFragment'> -} + readonly " $data"?: GroupTitleFragment$data; + readonly " $fragmentSpreads": FragmentRefs<"GroupTitleFragment">; +}; const node: ReaderFragment = { - argumentDefinitions: [], - kind: 'Fragment', - metadata: null, - name: 'GroupTitleFragment', - selections: [ + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "GroupTitleFragment", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null }, { - alias: null, - args: [ + "alias": null, + "args": [ { - kind: 'Literal', - name: 'height', - value: 144, + "kind": "Literal", + "name": "height", + "value": 144 }, { - kind: 'Literal', - name: 'width', - value: 144, - }, + "kind": "Literal", + "name": "width", + "value": 144 + } ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: [ + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } ], - storageKey: 'image(height:144,width:144)', + "storageKey": "image(height:144,width:144)" }, { - alias: null, - args: null, - kind: 'ScalarField', - name: 'title', - storageKey: null, - }, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "title", + "storageKey": null + } ], - type: 'ChatRoom', - abstractKey: null, -} + "type": "ChatRoom", + "abstractKey": null +}; -;(node as any).hash = 'ebf3753368c34b19880bd97c408df707' +(node as any).hash = "ebf3753368c34b19880bd97c408df707"; -export default node +export default node; diff --git a/packages/components/__generated__/LastMessageFragment.graphql.ts b/packages/components/__generated__/LastMessageFragment.graphql.ts index a0dd18b3..521c195b 100644 --- a/packages/components/__generated__/LastMessageFragment.graphql.ts +++ b/packages/components/__generated__/LastMessageFragment.graphql.ts @@ -5,76 +5,72 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { Fragment, ReaderFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { Fragment, ReaderFragment } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type LastMessageFragment$data = { - readonly id: string - readonly lastMessage: - | { - readonly content: string | null | undefined - readonly id: string - } - | null - | undefined - readonly lastMessageTime: any | null | undefined - readonly ' $fragmentType': 'LastMessageFragment' -} + readonly id: string; + readonly lastMessage: { + readonly content: string | null | undefined; + readonly id: string; + } | null | undefined; + readonly lastMessageTime: any | null | undefined; + readonly " $fragmentType": "LastMessageFragment"; +}; export type LastMessageFragment$key = { - readonly ' $data'?: LastMessageFragment$data - readonly ' $fragmentSpreads': FragmentRefs<'LastMessageFragment'> -} + readonly " $data"?: LastMessageFragment$data; + readonly " $fragmentSpreads": FragmentRefs<"LastMessageFragment">; +}; -const node: ReaderFragment = (function () { - var v0 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - } - return { - argumentDefinitions: [], - kind: 'Fragment', - metadata: null, - name: 'LastMessageFragment', - selections: [ - v0 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'lastMessageTime', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Message', - kind: 'LinkedField', - name: 'lastMessage', - plural: false, - selections: [ - v0 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'content', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'ChatRoom', - abstractKey: null, - } -})() +const node: ReaderFragment = (function(){ +var v0 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}; +return { + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "LastMessageFragment", + "selections": [ + (v0/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "lastMessageTime", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Message", + "kind": "LinkedField", + "name": "lastMessage", + "plural": false, + "selections": [ + (v0/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "content", + "storageKey": null + } + ], + "storageKey": null + } + ], + "type": "ChatRoom", + "abstractKey": null +}; +})(); -;(node as any).hash = '6aa67bb28e1946c5fb70f4ebf6213e7b' +(node as any).hash = "6aa67bb28e1946c5fb70f4ebf6213e7b"; -export default node +export default node; diff --git a/packages/components/__generated__/MemberItemFragment.graphql.ts b/packages/components/__generated__/MemberItemFragment.graphql.ts index 649d5581..366cd610 100644 --- a/packages/components/__generated__/MemberItemFragment.graphql.ts +++ b/packages/components/__generated__/MemberItemFragment.graphql.ts @@ -5,98 +5,93 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { Fragment, ReaderFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' - -export type ProfileRoleStatus = 'ACTIVE' | 'INACTIVE' | 'PENDING' | '%future added value' -export type ProfileRoles = 'ADMIN' | 'MANAGER' | '%future added value' +import { Fragment, ReaderFragment } from 'relay-runtime'; +export type ProfileRoleStatus = "ACTIVE" | "INACTIVE" | "PENDING" | "%future added value"; +export type ProfileRoles = "ADMIN" | "MANAGER" | "%future added value"; +import { FragmentRefs } from "relay-runtime"; export type MemberItemFragment$data = { - readonly id: string - readonly role: ProfileRoles | null | undefined - readonly status: ProfileRoleStatus | null | undefined + readonly id: string; + readonly role: ProfileRoles | null | undefined; + readonly status: ProfileRoleStatus | null | undefined; readonly user: { - readonly id: string - readonly profile: - | { - readonly ' $fragmentSpreads': FragmentRefs<'ProfileItemFragment'> - } - | null - | undefined - } - readonly ' $fragmentType': 'MemberItemFragment' -} + readonly id: string; + readonly profile: { + readonly " $fragmentSpreads": FragmentRefs<"ProfileItemFragment">; + } | null | undefined; + }; + readonly " $fragmentType": "MemberItemFragment"; +}; export type MemberItemFragment$key = { - readonly ' $data'?: MemberItemFragment$data - readonly ' $fragmentSpreads': FragmentRefs<'MemberItemFragment'> -} + readonly " $data"?: MemberItemFragment$data; + readonly " $fragmentSpreads": FragmentRefs<"MemberItemFragment">; +}; -const node: ReaderFragment = (function () { - var v0 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - } - return { - argumentDefinitions: [], - kind: 'Fragment', - metadata: null, - name: 'MemberItemFragment', - selections: [ - v0 /*: any*/, - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'user', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - { - args: null, - kind: 'FragmentSpread', - name: 'ProfileItemFragment', - }, - ], - storageKey: null, - }, - v0 /*: any*/, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'role', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'status', - storageKey: null, - }, - ], - type: 'ProfileUserRole', - abstractKey: null, - } -})() +const node: ReaderFragment = (function(){ +var v0 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}; +return { + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "MemberItemFragment", + "selections": [ + (v0/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "user", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + { + "args": null, + "kind": "FragmentSpread", + "name": "ProfileItemFragment" + } + ], + "storageKey": null + }, + (v0/*: any*/) + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "role", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "status", + "storageKey": null + } + ], + "type": "ProfileUserRole", + "abstractKey": null +}; +})(); -;(node as any).hash = '18aa448d266fed6b34c6377032e7a213' +(node as any).hash = "18aa448d266fed6b34c6377032e7a213"; -export default node +export default node; diff --git a/packages/components/__generated__/MembersListFragment.graphql.ts b/packages/components/__generated__/MembersListFragment.graphql.ts index 99c532f6..584a13a8 100644 --- a/packages/components/__generated__/MembersListFragment.graphql.ts +++ b/packages/components/__generated__/MembersListFragment.graphql.ts @@ -5,207 +5,196 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ReaderFragment, RefetchableFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' - -export type ChatRoomParticipantRoles = 'ADMIN' | 'MEMBER' | '%future added value' +import { ReaderFragment, RefetchableFragment } from 'relay-runtime'; +export type ChatRoomParticipantRoles = "ADMIN" | "MEMBER" | "%future added value"; +import { FragmentRefs } from "relay-runtime"; export type MembersListFragment$data = { - readonly id: string - readonly participants: - | { - readonly edges: ReadonlyArray< - | { - readonly node: - | { - readonly id: string - readonly profile: - | { - readonly id: string - readonly ' $fragmentSpreads': FragmentRefs<'ProfileItemFragment'> - } - | null - | undefined - readonly role: ChatRoomParticipantRoles | null | undefined - } - | null - | undefined - } - | null - | undefined - > - readonly pageInfo: { - readonly endCursor: string | null | undefined - readonly hasNextPage: boolean - } - } - | null - | undefined - readonly ' $fragmentType': 'MembersListFragment' -} + readonly id: string; + readonly participants: { + readonly edges: ReadonlyArray<{ + readonly node: { + readonly id: string; + readonly profile: { + readonly id: string; + readonly " $fragmentSpreads": FragmentRefs<"ProfileItemFragment">; + } | null | undefined; + readonly role: ChatRoomParticipantRoles | null | undefined; + } | null | undefined; + } | null | undefined>; + readonly pageInfo: { + readonly endCursor: string | null | undefined; + readonly hasNextPage: boolean; + }; + } | null | undefined; + readonly " $fragmentType": "MembersListFragment"; +}; export type MembersListFragment$key = { - readonly ' $data'?: MembersListFragment$data - readonly ' $fragmentSpreads': FragmentRefs<'MembersListFragment'> -} + readonly " $data"?: MembersListFragment$data; + readonly " $fragmentSpreads": FragmentRefs<"MembersListFragment">; +}; -const node: ReaderFragment = (function () { - var v0 = ['participants'], - v1 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, +const node: ReaderFragment = (function(){ +var v0 = [ + "participants" +], +v1 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}; +return { + "argumentDefinitions": [ + { + "defaultValue": 5, + "kind": "LocalArgument", + "name": "count" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "cursor" } - return { - argumentDefinitions: [ - { - defaultValue: 5, - kind: 'LocalArgument', - name: 'count', - }, + ], + "kind": "Fragment", + "metadata": { + "connection": [ { - defaultValue: null, - kind: 'LocalArgument', - name: 'cursor', - }, + "count": "count", + "cursor": "cursor", + "direction": "forward", + "path": (v0/*: any*/) + } ], - kind: 'Fragment', - metadata: { - connection: [ - { - count: 'count', - cursor: 'cursor', - direction: 'forward', - path: v0 /*: any*/, + "refetch": { + "connection": { + "forward": { + "count": "count", + "cursor": "cursor" }, + "backward": null, + "path": (v0/*: any*/) + }, + "fragmentPathInResult": [ + "node" ], - refetch: { - connection: { - forward: { - count: 'count', - cursor: 'cursor', - }, - backward: null, - path: v0 /*: any*/, - }, - fragmentPathInResult: ['node'], - operation: require('./ChatRoomParticipantsPaginationQuery.graphql'), - identifierInfo: { - identifierField: 'id', - identifierQueryVariableName: 'id', + "operation": require('./ChatRoomParticipantsPaginationQuery.graphql'), + "identifierInfo": { + "identifierField": "id", + "identifierQueryVariableName": "id" + } + } + }, + "name": "MembersListFragment", + "selections": [ + (v1/*: any*/), + { + "alias": "participants", + "args": null, + "concreteType": "ChatRoomParticipantConnection", + "kind": "LinkedField", + "name": "__ChatRoom_participants_connection", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomParticipantEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomParticipant", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v1/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + (v1/*: any*/), + { + "args": null, + "kind": "FragmentSpread", + "name": "ProfileItemFragment" + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "role", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + } + ], + "storageKey": null }, - }, - }, - name: 'MembersListFragment', - selections: [ - v1 /*: any*/, - { - alias: 'participants', - args: null, - concreteType: 'ChatRoomParticipantConnection', - kind: 'LinkedField', - name: '__ChatRoom_participants_connection', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomParticipantEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomParticipant', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v1 /*: any*/, - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - v1 /*: any*/, - { - args: null, - kind: 'FragmentSpread', - name: 'ProfileItemFragment', - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'role', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'ChatRoom', - abstractKey: null, - } -})() + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "type": "ChatRoom", + "abstractKey": null +}; +})(); -;(node as any).hash = '49f7bb8685111dd9a1075b9147c84abb' +(node as any).hash = "49f7bb8685111dd9a1075b9147c84abb"; -export default node +export default node; diff --git a/packages/components/__generated__/MessageItemFragment.graphql.ts b/packages/components/__generated__/MessageItemFragment.graphql.ts index 8bfffb2a..0332e517 100644 --- a/packages/components/__generated__/MessageItemFragment.graphql.ts +++ b/packages/components/__generated__/MessageItemFragment.graphql.ts @@ -5,125 +5,119 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { Fragment, ReaderFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' - -export type Verbs = 'SENT_MESSAGE' | '%future added value' +import { Fragment, ReaderFragment } from 'relay-runtime'; +export type Verbs = "SENT_MESSAGE" | "%future added value"; +import { FragmentRefs } from "relay-runtime"; export type MessageItemFragment$data = { - readonly content: string | null | undefined - readonly created: any - readonly extraData: any | null | undefined - readonly id: string - readonly inReplyTo: - | { - readonly id: string - } - | null - | undefined - readonly isRead: boolean | null | undefined - readonly pk: number - readonly profile: - | { - readonly id: string - } - | null - | undefined - readonly verb: Verbs | null | undefined - readonly ' $fragmentType': 'MessageItemFragment' -} + readonly content: string | null | undefined; + readonly created: any; + readonly extraData: any | null | undefined; + readonly id: string; + readonly inReplyTo: { + readonly id: string; + } | null | undefined; + readonly isRead: boolean | null | undefined; + readonly pk: number; + readonly profile: { + readonly id: string; + } | null | undefined; + readonly verb: Verbs | null | undefined; + readonly " $fragmentType": "MessageItemFragment"; +}; export type MessageItemFragment$key = { - readonly ' $data'?: MessageItemFragment$data - readonly ' $fragmentSpreads': FragmentRefs<'MessageItemFragment'> -} + readonly " $data"?: MessageItemFragment$data; + readonly " $fragmentSpreads": FragmentRefs<"MessageItemFragment">; +}; -const node: ReaderFragment = (function () { - var v0 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, +const node: ReaderFragment = (function(){ +var v0 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v1 = [ + (v0/*: any*/) +]; +return { + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "MessageItemFragment", + "selections": [ + (v0/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "content", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "created", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "extraData", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Message", + "kind": "LinkedField", + "name": "inReplyTo", + "plural": false, + "selections": (v1/*: any*/), + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isRead", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "pk", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": (v1/*: any*/), + "storageKey": null }, - v1 = [v0 /*: any*/] - return { - argumentDefinitions: [], - kind: 'Fragment', - metadata: null, - name: 'MessageItemFragment', - selections: [ - v0 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'content', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'created', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'extraData', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Message', - kind: 'LinkedField', - name: 'inReplyTo', - plural: false, - selections: v1 /*: any*/, - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isRead', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'pk', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: v1 /*: any*/, - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'verb', - storageKey: null, - }, - ], - type: 'Message', - abstractKey: null, - } -})() + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "verb", + "storageKey": null + } + ], + "type": "Message", + "abstractKey": null +}; +})(); -;(node as any).hash = 'c4f28d75734c65a3d4e80722daecfd7e' +(node as any).hash = "c4f28d75734c65a3d4e80722daecfd7e"; -export default node +export default node; diff --git a/packages/components/__generated__/MessagesListFragment.graphql.ts b/packages/components/__generated__/MessagesListFragment.graphql.ts index 8c9f7727..1c5f80a5 100644 --- a/packages/components/__generated__/MessagesListFragment.graphql.ts +++ b/packages/components/__generated__/MessagesListFragment.graphql.ts @@ -5,304 +5,288 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ReaderFragment, RefetchableFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ReaderFragment, RefetchableFragment } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type MessagesListFragment$data = { - readonly allMessages: - | { - readonly edges: ReadonlyArray< - | { - readonly node: - | { - readonly created: any - readonly id: string - readonly isRead: boolean | null | undefined - readonly profile: - | { - readonly id: string - readonly image: - | { - readonly url: string - } - | null - | undefined - readonly name: string | null | undefined - } - | null - | undefined - readonly ' $fragmentSpreads': FragmentRefs<'MessageItemFragment'> - } - | null - | undefined - } - | null - | undefined - > - readonly pageInfo: { - readonly endCursor: string | null | undefined - readonly hasNextPage: boolean - } - readonly totalCount: number | null | undefined - } - | null - | undefined - readonly id: string - readonly isGroup: boolean - readonly unreadMessages: - | { - readonly count: number - readonly markedUnread: boolean - } - | null - | undefined - readonly ' $fragmentType': 'MessagesListFragment' -} + readonly allMessages: { + readonly edges: ReadonlyArray<{ + readonly node: { + readonly created: any; + readonly id: string; + readonly isRead: boolean | null | undefined; + readonly profile: { + readonly id: string; + readonly image: { + readonly url: string; + } | null | undefined; + readonly name: string | null | undefined; + } | null | undefined; + readonly " $fragmentSpreads": FragmentRefs<"MessageItemFragment">; + } | null | undefined; + } | null | undefined>; + readonly pageInfo: { + readonly endCursor: string | null | undefined; + readonly hasNextPage: boolean; + }; + readonly totalCount: number | null | undefined; + } | null | undefined; + readonly id: string; + readonly isGroup: boolean; + readonly unreadMessages: { + readonly count: number; + readonly markedUnread: boolean; + } | null | undefined; + readonly " $fragmentType": "MessagesListFragment"; +}; export type MessagesListFragment$key = { - readonly ' $data'?: MessagesListFragment$data - readonly ' $fragmentSpreads': FragmentRefs<'MessagesListFragment'> -} + readonly " $data"?: MessagesListFragment$data; + readonly " $fragmentSpreads": FragmentRefs<"MessagesListFragment">; +}; -const node: ReaderFragment = (function () { - var v0 = ['allMessages'], - v1 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, +const node: ReaderFragment = (function(){ +var v0 = [ + "allMessages" +], +v1 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}; +return { + "argumentDefinitions": [ + { + "defaultValue": 20, + "kind": "LocalArgument", + "name": "count" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "cursor" } - return { - argumentDefinitions: [ + ], + "kind": "Fragment", + "metadata": { + "connection": [ { - defaultValue: 20, - kind: 'LocalArgument', - name: 'count', - }, - { - defaultValue: null, - kind: 'LocalArgument', - name: 'cursor', - }, + "count": "count", + "cursor": "cursor", + "direction": "forward", + "path": (v0/*: any*/) + } ], - kind: 'Fragment', - metadata: { - connection: [ + "refetch": { + "connection": { + "forward": { + "count": "count", + "cursor": "cursor" + }, + "backward": null, + "path": (v0/*: any*/) + }, + "fragmentPathInResult": [ + "node" + ], + "operation": require('./ChatRoomMessagesListPaginationQuery.graphql'), + "identifierInfo": { + "identifierField": "id", + "identifierQueryVariableName": "id" + } + } + }, + "name": "MessagesListFragment", + "selections": [ + (v1/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isGroup", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "UnreadMessageCount", + "kind": "LinkedField", + "name": "unreadMessages", + "plural": false, + "selections": [ { - count: 'count', - cursor: 'cursor', - direction: 'forward', - path: v0 /*: any*/, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "count", + "storageKey": null }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "markedUnread", + "storageKey": null + } ], - refetch: { - connection: { - forward: { - count: 'count', - cursor: 'cursor', - }, - backward: null, - path: v0 /*: any*/, + "storageKey": null + }, + { + "alias": "allMessages", + "args": null, + "concreteType": "MessageConnection", + "kind": "LinkedField", + "name": "__chatRoom_allMessages_connection", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "totalCount", + "storageKey": null }, - fragmentPathInResult: ['node'], - operation: require('./ChatRoomMessagesListPaginationQuery.graphql'), - identifierInfo: { - identifierField: 'id', - identifierQueryVariableName: 'id', + { + "alias": null, + "args": null, + "concreteType": "MessageEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Message", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v1/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "created", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + (v1/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "name", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 32 + }, + { + "kind": "Literal", + "name": "width", + "value": 32 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "image(height:32,width:32)" + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isRead", + "storageKey": null + }, + { + "args": null, + "kind": "FragmentSpread", + "name": "MessageItemFragment" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + } + ], + "storageKey": null }, - }, - }, - name: 'MessagesListFragment', - selections: [ - v1 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isGroup', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'UnreadMessageCount', - kind: 'LinkedField', - name: 'unreadMessages', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'count', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'markedUnread', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: 'allMessages', - args: null, - concreteType: 'MessageConnection', - kind: 'LinkedField', - name: '__chatRoom_allMessages_connection', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'totalCount', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'MessageEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'Message', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v1 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'created', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - v1 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'name', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 32, - }, - { - kind: 'Literal', - name: 'width', - value: 32, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'image(height:32,width:32)', - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isRead', - storageKey: null, - }, - { - args: null, - kind: 'FragmentSpread', - name: 'MessageItemFragment', - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'ChatRoom', - abstractKey: null, - } -})() + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "type": "ChatRoom", + "abstractKey": null +}; +})(); -;(node as any).hash = '2101646ad6b90d900738f9b290616d98' +(node as any).hash = "2101646ad6b90d900738f9b290616d98"; -export default node +export default node; diff --git a/packages/components/__generated__/NotificationItemFragment.graphql.ts b/packages/components/__generated__/NotificationItemFragment.graphql.ts index 4b7cb49c..87278095 100644 --- a/packages/components/__generated__/NotificationItemFragment.graphql.ts +++ b/packages/components/__generated__/NotificationItemFragment.graphql.ts @@ -5,233 +5,214 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { Fragment, ReaderFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' - -export type NotificationsNotificationLevelChoices = - | 'ERROR' - | 'INFO' - | 'SUCCESS' - | 'WARNING' - | '%future added value' +import { Fragment, ReaderFragment } from 'relay-runtime'; +export type NotificationsNotificationLevelChoices = "ERROR" | "INFO" | "SUCCESS" | "WARNING" | "%future added value"; +import { FragmentRefs } from "relay-runtime"; export type NotificationItemFragment$data = { - readonly actionObject: - | { - readonly __typename: string - readonly body?: string | null | undefined - readonly id: string - } - | null - | undefined - readonly actor: - | { - readonly avatar?: - | { - readonly url: string - } - | null - | undefined - readonly fullName?: string | null | undefined - readonly id: string - } - | null - | undefined - readonly data: any | null | undefined - readonly description: string | null | undefined - readonly id: string - readonly level: NotificationsNotificationLevelChoices - readonly pk: number - readonly target: - | { - readonly __typename: string - readonly body?: string | null | undefined - readonly id: string - } - | null - | undefined - readonly timestamp: any - readonly unread: boolean - readonly verb: string - readonly ' $fragmentType': 'NotificationItemFragment' -} + readonly actionObject: { + readonly __typename: string; + readonly body?: string | null | undefined; + readonly id: string; + } | null | undefined; + readonly actor: { + readonly avatar?: { + readonly url: string; + } | null | undefined; + readonly fullName?: string | null | undefined; + readonly id: string; + } | null | undefined; + readonly data: any | null | undefined; + readonly description: string | null | undefined; + readonly id: string; + readonly level: NotificationsNotificationLevelChoices; + readonly pk: number; + readonly target: { + readonly __typename: string; + readonly body?: string | null | undefined; + readonly id: string; + } | null | undefined; + readonly timestamp: any; + readonly unread: boolean; + readonly verb: string; + readonly " $fragmentType": "NotificationItemFragment"; +}; export type NotificationItemFragment$key = { - readonly ' $data'?: NotificationItemFragment$data - readonly ' $fragmentSpreads': FragmentRefs<'NotificationItemFragment'> -} + readonly " $data"?: NotificationItemFragment$data; + readonly " $fragmentSpreads": FragmentRefs<"NotificationItemFragment">; +}; -const node: ReaderFragment = (function () { - var v0 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v1 = [ - v0 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'body', - storageKey: null, - }, - ], - type: 'Comment', - abstractKey: null, - }, - ] - return { - argumentDefinitions: [], - kind: 'Fragment', - metadata: null, - name: 'NotificationItemFragment', - selections: [ - v0 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'pk', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'unread', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'timestamp', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'level', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'verb', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'description', - storageKey: null, - }, +const node: ReaderFragment = (function(){ +var v0 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v1 = [ + (v0/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + }, + { + "kind": "InlineFragment", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'data', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'actor', - plural: false, - selections: [ - v0 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 48, - }, - { - kind: 'Literal', - name: 'width', - value: 48, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'avatar', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'avatar(height:48,width:48)', - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'fullName', - storageKey: null, - }, - ], - type: 'User', - abstractKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'target', - plural: false, - selections: v1 /*: any*/, - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'actionObject', - plural: false, - selections: v1 /*: any*/, - storageKey: null, - }, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "body", + "storageKey": null + } ], - type: 'Notification', - abstractKey: null, + "type": "Comment", + "abstractKey": null } -})() +]; +return { + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "NotificationItemFragment", + "selections": [ + (v0/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "pk", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "unread", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "timestamp", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "level", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "verb", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "description", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "data", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "actor", + "plural": false, + "selections": [ + (v0/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 48 + }, + { + "kind": "Literal", + "name": "width", + "value": 48 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "avatar", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "avatar(height:48,width:48)" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "fullName", + "storageKey": null + } + ], + "type": "User", + "abstractKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "target", + "plural": false, + "selections": (v1/*: any*/), + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "actionObject", + "plural": false, + "selections": (v1/*: any*/), + "storageKey": null + } + ], + "type": "Notification", + "abstractKey": null +}; +})(); -;(node as any).hash = '18973be33a78d4c8acc5affd35b1a004' +(node as any).hash = "18973be33a78d4c8acc5affd35b1a004"; -export default node +export default node; diff --git a/packages/components/__generated__/NotificationItemWithQuery.graphql.ts b/packages/components/__generated__/NotificationItemWithQuery.graphql.ts index a8e08b4c..d7ad5e54 100644 --- a/packages/components/__generated__/NotificationItemWithQuery.graphql.ts +++ b/packages/components/__generated__/NotificationItemWithQuery.graphql.ts @@ -5,338 +5,339 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' -export type NotificationItemWithQuery$variables = Record +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; +export type NotificationItemWithQuery$variables = Record; export type NotificationItemWithQuery$data = { - readonly target: - | { - readonly ' $fragmentSpreads': FragmentRefs<'NotificationItemFragment'> - } - | null - | undefined -} + readonly target: { + readonly " $fragmentSpreads": FragmentRefs<"NotificationItemFragment">; + } | null | undefined; +}; export type NotificationItemWithQuery = { - response: NotificationItemWithQuery$data - variables: NotificationItemWithQuery$variables -} + response: NotificationItemWithQuery$data; + variables: NotificationItemWithQuery$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "Literal", + "name": "id", + "value": "test-id" + } +], +v1 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null +}, +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v3 = [ + (v2/*: any*/), + (v1/*: any*/), + { + "kind": "InlineFragment", + "selections": [ { - kind: 'Literal', - name: 'id', - value: 'test-id', - }, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "body", + "storageKey": null + } ], - v1 = { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v3 = [ - v2 /*: any*/, - v1 /*: any*/, + "type": "Comment", + "abstractKey": null + } +], +v4 = { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Node" +}, +v5 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "String" +}, +v6 = { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "String" +}, +v7 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "ID" +}; +return { + "fragment": { + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "NotificationItemWithQuery", + "selections": [ { - kind: 'InlineFragment', - selections: [ + "alias": "target", + "args": (v0/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'body', - storageKey: null, - }, + "args": null, + "kind": "FragmentSpread", + "name": "NotificationItemFragment" + } ], - type: 'Comment', - abstractKey: null, - }, + "storageKey": "node(id:\"test-id\")" + } ], - v4 = { - enumValues: null, - nullable: true, - plural: false, - type: 'Node', - }, - v5 = { - enumValues: null, - nullable: false, - plural: false, - type: 'String', - }, - v6 = { - enumValues: null, - nullable: true, - plural: false, - type: 'String', - }, - v7 = { - enumValues: null, - nullable: false, - plural: false, - type: 'ID', - } - return { - fragment: { - argumentDefinitions: [], - kind: 'Fragment', - metadata: null, - name: 'NotificationItemWithQuery', - selections: [ - { - alias: 'target', - args: v0 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - args: null, - kind: 'FragmentSpread', - name: 'NotificationItemFragment', - }, - ], - storageKey: 'node(id:"test-id")', + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": [], + "kind": "Operation", + "name": "NotificationItemWithQuery", + "selections": [ + { + "alias": "target", + "args": (v0/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v1/*: any*/), + (v2/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "pk", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "unread", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "timestamp", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "level", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "verb", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "description", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "data", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "actor", + "plural": false, + "selections": [ + (v1/*: any*/), + (v2/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 48 + }, + { + "kind": "Literal", + "name": "width", + "value": 48 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "avatar", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "avatar(height:48,width:48)" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "fullName", + "storageKey": null + } + ], + "type": "User", + "abstractKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "target", + "plural": false, + "selections": (v3/*: any*/), + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "actionObject", + "plural": false, + "selections": (v3/*: any*/), + "storageKey": null + } + ], + "type": "Notification", + "abstractKey": null + } + ], + "storageKey": "node(id:\"test-id\")" + } + ] + }, + "params": { + "cacheID": "2a1ab89672542581137a24207ae151e2", + "id": null, + "metadata": { + "relayTestingSelectionTypeInfo": { + "target": (v4/*: any*/), + "target.__typename": (v5/*: any*/), + "target.actionObject": (v4/*: any*/), + "target.actionObject.__typename": (v5/*: any*/), + "target.actionObject.body": (v6/*: any*/), + "target.actionObject.id": (v7/*: any*/), + "target.actor": (v4/*: any*/), + "target.actor.__typename": (v5/*: any*/), + "target.actor.avatar": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "File" }, - ], - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: [], - kind: 'Operation', - name: 'NotificationItemWithQuery', - selections: [ - { - alias: 'target', - args: v0 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v1 /*: any*/, - v2 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'pk', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'unread', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'timestamp', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'level', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'verb', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'description', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'data', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'actor', - plural: false, - selections: [ - v1 /*: any*/, - v2 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 48, - }, - { - kind: 'Literal', - name: 'width', - value: 48, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'avatar', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'avatar(height:48,width:48)', - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'fullName', - storageKey: null, - }, - ], - type: 'User', - abstractKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'target', - plural: false, - selections: v3 /*: any*/, - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'actionObject', - plural: false, - selections: v3 /*: any*/, - storageKey: null, - }, - ], - type: 'Notification', - abstractKey: null, - }, + "target.actor.avatar.url": (v5/*: any*/), + "target.actor.fullName": (v6/*: any*/), + "target.actor.id": (v7/*: any*/), + "target.data": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "GenericScalar" + }, + "target.description": (v6/*: any*/), + "target.id": (v7/*: any*/), + "target.level": { + "enumValues": [ + "SUCCESS", + "INFO", + "WARNING", + "ERROR" ], - storageKey: 'node(id:"test-id")', + "nullable": false, + "plural": false, + "type": "NotificationsNotificationLevelChoices" }, - ], - }, - params: { - cacheID: '2a1ab89672542581137a24207ae151e2', - id: null, - metadata: { - relayTestingSelectionTypeInfo: { - target: v4 /*: any*/, - 'target.__typename': v5 /*: any*/, - 'target.actionObject': v4 /*: any*/, - 'target.actionObject.__typename': v5 /*: any*/, - 'target.actionObject.body': v6 /*: any*/, - 'target.actionObject.id': v7 /*: any*/, - 'target.actor': v4 /*: any*/, - 'target.actor.__typename': v5 /*: any*/, - 'target.actor.avatar': { - enumValues: null, - nullable: true, - plural: false, - type: 'File', - }, - 'target.actor.avatar.url': v5 /*: any*/, - 'target.actor.fullName': v6 /*: any*/, - 'target.actor.id': v7 /*: any*/, - 'target.data': { - enumValues: null, - nullable: true, - plural: false, - type: 'GenericScalar', - }, - 'target.description': v6 /*: any*/, - 'target.id': v7 /*: any*/, - 'target.level': { - enumValues: ['SUCCESS', 'INFO', 'WARNING', 'ERROR'], - nullable: false, - plural: false, - type: 'NotificationsNotificationLevelChoices', - }, - 'target.pk': { - enumValues: null, - nullable: false, - plural: false, - type: 'Int', - }, - 'target.target': v4 /*: any*/, - 'target.target.__typename': v5 /*: any*/, - 'target.target.body': v6 /*: any*/, - 'target.target.id': v7 /*: any*/, - 'target.timestamp': { - enumValues: null, - nullable: false, - plural: false, - type: 'DateTime', - }, - 'target.unread': { - enumValues: null, - nullable: false, - plural: false, - type: 'Boolean', - }, - 'target.verb': v5 /*: any*/, + "target.pk": { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "Int" + }, + "target.target": (v4/*: any*/), + "target.target.__typename": (v5/*: any*/), + "target.target.body": (v6/*: any*/), + "target.target.id": (v7/*: any*/), + "target.timestamp": { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "DateTime" }, - }, - name: 'NotificationItemWithQuery', - operationKind: 'query', - text: 'query NotificationItemWithQuery {\n target: node(id: "test-id") {\n __typename\n ...NotificationItemFragment\n id\n }\n}\n\nfragment NotificationItemFragment on Notification {\n id\n pk\n unread\n timestamp\n level\n verb\n description\n data\n actor {\n __typename\n id\n ... on User {\n avatar(width: 48, height: 48) {\n url\n }\n fullName\n }\n }\n target {\n id\n __typename\n ... on Comment {\n id\n body\n }\n }\n actionObject {\n id\n __typename\n ... on Comment {\n id\n body\n }\n }\n}\n', + "target.unread": { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "Boolean" + }, + "target.verb": (v5/*: any*/) + } }, + "name": "NotificationItemWithQuery", + "operationKind": "query", + "text": "query NotificationItemWithQuery {\n target: node(id: \"test-id\") {\n __typename\n ...NotificationItemFragment\n id\n }\n}\n\nfragment NotificationItemFragment on Notification {\n id\n pk\n unread\n timestamp\n level\n verb\n description\n data\n actor {\n __typename\n id\n ... on User {\n avatar(width: 48, height: 48) {\n url\n }\n fullName\n }\n }\n target {\n id\n __typename\n ... on Comment {\n id\n body\n }\n }\n actionObject {\n id\n __typename\n ... on Comment {\n id\n body\n }\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = 'fdd4687d40d788b8c366d75a02c97403' +(node as any).hash = "fdd4687d40d788b8c366d75a02c97403"; -export default node +export default node; diff --git a/packages/components/__generated__/NotificationUserMenuFragment.graphql.ts b/packages/components/__generated__/NotificationUserMenuFragment.graphql.ts index 9bfcfbd3..bcf4872a 100644 --- a/packages/components/__generated__/NotificationUserMenuFragment.graphql.ts +++ b/packages/components/__generated__/NotificationUserMenuFragment.graphql.ts @@ -5,47 +5,46 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { Fragment, ReaderFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { Fragment, ReaderFragment } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type NotificationUserMenuFragment$data = { - readonly id: string - readonly notificationsUnreadCount: number | null | undefined - readonly ' $fragmentType': 'NotificationUserMenuFragment' -} + readonly id: string; + readonly notificationsUnreadCount: number | null | undefined; + readonly " $fragmentType": "NotificationUserMenuFragment"; +}; export type NotificationUserMenuFragment$key = { - readonly ' $data'?: NotificationUserMenuFragment$data - readonly ' $fragmentSpreads': FragmentRefs<'NotificationUserMenuFragment'> -} + readonly " $data"?: NotificationUserMenuFragment$data; + readonly " $fragmentSpreads": FragmentRefs<"NotificationUserMenuFragment">; +}; const node: ReaderFragment = { - argumentDefinitions: [], - kind: 'Fragment', - metadata: null, - name: 'NotificationUserMenuFragment', - selections: [ + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "NotificationUserMenuFragment", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null }, { - alias: null, - args: null, - kind: 'ScalarField', - name: 'notificationsUnreadCount', - storageKey: null, - }, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "notificationsUnreadCount", + "storageKey": null + } ], - type: 'User', - abstractKey: null, -} + "type": "User", + "abstractKey": null +}; -;(node as any).hash = '806ea8a5677a68e99edd0409886cb453' +(node as any).hash = "806ea8a5677a68e99edd0409886cb453"; -export default node +export default node; diff --git a/packages/components/__generated__/NotificationsListFragment.graphql.ts b/packages/components/__generated__/NotificationsListFragment.graphql.ts index 99e95e1c..257c8c5f 100644 --- a/packages/components/__generated__/NotificationsListFragment.graphql.ts +++ b/packages/components/__generated__/NotificationsListFragment.graphql.ts @@ -5,207 +5,200 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ReaderFragment, RefetchableFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ReaderFragment, RefetchableFragment } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type NotificationsListFragment$data = { - readonly id: string - readonly notifications: - | { - readonly edges: ReadonlyArray< - | { - readonly cursor: string - readonly node: - | { - readonly id: string - readonly unread: boolean - readonly ' $fragmentSpreads': FragmentRefs<'NotificationItemFragment'> - } - | null - | undefined - } - | null - | undefined - > - readonly pageInfo: { - readonly endCursor: string | null | undefined - readonly hasNextPage: boolean - } - } - | null - | undefined - readonly notificationsUnreadCount: number | null | undefined - readonly ' $fragmentType': 'NotificationsListFragment' -} + readonly id: string; + readonly notifications: { + readonly edges: ReadonlyArray<{ + readonly cursor: string; + readonly node: { + readonly id: string; + readonly unread: boolean; + readonly " $fragmentSpreads": FragmentRefs<"NotificationItemFragment">; + } | null | undefined; + } | null | undefined>; + readonly pageInfo: { + readonly endCursor: string | null | undefined; + readonly hasNextPage: boolean; + }; + } | null | undefined; + readonly notificationsUnreadCount: number | null | undefined; + readonly " $fragmentType": "NotificationsListFragment"; +}; export type NotificationsListFragment$key = { - readonly ' $data'?: NotificationsListFragment$data - readonly ' $fragmentSpreads': FragmentRefs<'NotificationsListFragment'> -} + readonly " $data"?: NotificationsListFragment$data; + readonly " $fragmentSpreads": FragmentRefs<"NotificationsListFragment">; +}; -const node: ReaderFragment = (function () { - var v0 = ['notifications'], - v1 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, +const node: ReaderFragment = (function(){ +var v0 = [ + "notifications" +], +v1 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}; +return { + "argumentDefinitions": [ + { + "defaultValue": 10, + "kind": "LocalArgument", + "name": "count" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "cursor" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "verbs" } - return { - argumentDefinitions: [ - { - defaultValue: 10, - kind: 'LocalArgument', - name: 'count', - }, - { - defaultValue: null, - kind: 'LocalArgument', - name: 'cursor', - }, + ], + "kind": "Fragment", + "metadata": { + "connection": [ { - defaultValue: null, - kind: 'LocalArgument', - name: 'verbs', - }, + "count": "count", + "cursor": "cursor", + "direction": "forward", + "path": (v0/*: any*/) + } ], - kind: 'Fragment', - metadata: { - connection: [ - { - count: 'count', - cursor: 'cursor', - direction: 'forward', - path: v0 /*: any*/, - }, - ], - refetch: { - connection: { - forward: { - count: 'count', - cursor: 'cursor', - }, - backward: null, - path: v0 /*: any*/, - }, - fragmentPathInResult: ['node'], - operation: require('./notificationsListRefetchable.graphql'), - identifierInfo: { - identifierField: 'id', - identifierQueryVariableName: 'id', + "refetch": { + "connection": { + "forward": { + "count": "count", + "cursor": "cursor" }, + "backward": null, + "path": (v0/*: any*/) }, + "fragmentPathInResult": [ + "node" + ], + "operation": require('./notificationsListRefetchable.graphql'), + "identifierInfo": { + "identifierField": "id", + "identifierQueryVariableName": "id" + } + } + }, + "name": "NotificationsListFragment", + "selections": [ + (v1/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "notificationsUnreadCount", + "storageKey": null }, - name: 'NotificationsListFragment', - selections: [ - v1 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'notificationsUnreadCount', - storageKey: null, - }, - { - alias: 'notifications', - args: [ - { - kind: 'Variable', - name: 'verbs', - variableName: 'verbs', - }, - ], - concreteType: 'NotificationConnection', - kind: 'LinkedField', - name: '__user_notifications_connection', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'NotificationEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Notification', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v1 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'unread', - storageKey: null, - }, - { - args: null, - kind: 'FragmentSpread', - name: 'NotificationItemFragment', - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'User', - abstractKey: null, - } -})() + { + "alias": "notifications", + "args": [ + { + "kind": "Variable", + "name": "verbs", + "variableName": "verbs" + } + ], + "concreteType": "NotificationConnection", + "kind": "LinkedField", + "name": "__user_notifications_connection", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "NotificationEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Notification", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v1/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "unread", + "storageKey": null + }, + { + "args": null, + "kind": "FragmentSpread", + "name": "NotificationItemFragment" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "type": "User", + "abstractKey": null +}; +})(); -;(node as any).hash = 'a6a3cbaf1db8c4d17187ab6631bf2764' +(node as any).hash = "a6a3cbaf1db8c4d17187ab6631bf2764"; -export default node +export default node; diff --git a/packages/components/__generated__/NotificationsListQuery.graphql.ts b/packages/components/__generated__/NotificationsListQuery.graphql.ts index ad5b8526..2f431893 100644 --- a/packages/components/__generated__/NotificationsListQuery.graphql.ts +++ b/packages/components/__generated__/NotificationsListQuery.graphql.ts @@ -5,378 +5,376 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type NotificationsListQuery$variables = { - count: number - cursor?: string | null | undefined - verbs?: string | null | undefined -} + count: number; + cursor?: string | null | undefined; + verbs?: string | null | undefined; +}; export type NotificationsListQuery$data = { - readonly me: - | { - readonly id: string - readonly ' $fragmentSpreads': FragmentRefs<'NotificationsListFragment'> - } - | null - | undefined -} + readonly me: { + readonly id: string; + readonly " $fragmentSpreads": FragmentRefs<"NotificationsListFragment">; + } | null | undefined; +}; export type NotificationsListQuery = { - response: NotificationsListQuery$data - variables: NotificationsListQuery$variables -} + response: NotificationsListQuery$data; + variables: NotificationsListQuery$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ - { - defaultValue: null, - kind: 'LocalArgument', - name: 'count', - }, - { - defaultValue: null, - kind: 'LocalArgument', - name: 'cursor', - }, +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "count" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "cursor" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "verbs" + } +], +v1 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v2 = { + "kind": "Variable", + "name": "verbs", + "variableName": "verbs" +}, +v3 = [ + { + "kind": "Variable", + "name": "after", + "variableName": "cursor" + }, + { + "kind": "Variable", + "name": "first", + "variableName": "count" + }, + (v2/*: any*/) +], +v4 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null +}, +v5 = [ + (v1/*: any*/), + (v4/*: any*/), + { + "kind": "InlineFragment", + "selections": [ { - defaultValue: null, - kind: 'LocalArgument', - name: 'verbs', - }, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "body", + "storageKey": null + } ], - v1 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v2 = { - kind: 'Variable', - name: 'verbs', - variableName: 'verbs', - }, - v3 = [ - { - kind: 'Variable', - name: 'after', - variableName: 'cursor', - }, + "type": "Comment", + "abstractKey": null + } +]; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "NotificationsListQuery", + "selections": [ { - kind: 'Variable', - name: 'first', - variableName: 'count', - }, - v2 /*: any*/, + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "me", + "plural": false, + "selections": [ + (v1/*: any*/), + { + "args": [ + { + "kind": "Variable", + "name": "count", + "variableName": "count" + }, + { + "kind": "Variable", + "name": "cursor", + "variableName": "cursor" + }, + (v2/*: any*/) + ], + "kind": "FragmentSpread", + "name": "NotificationsListFragment" + } + ], + "storageKey": null + } ], - v4 = { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v5 = [ - v1 /*: any*/, - v4 /*: any*/, + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "NotificationsListQuery", + "selections": [ { - kind: 'InlineFragment', - selections: [ + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "me", + "plural": false, + "selections": [ + (v1/*: any*/), { - alias: null, - args: null, - kind: 'ScalarField', - name: 'body', - storageKey: null, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "notificationsUnreadCount", + "storageKey": null }, + { + "alias": null, + "args": (v3/*: any*/), + "concreteType": "NotificationConnection", + "kind": "LinkedField", + "name": "notifications", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "NotificationEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Notification", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v1/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "unread", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "pk", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "timestamp", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "level", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "verb", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "description", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "data", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "actor", + "plural": false, + "selections": [ + (v4/*: any*/), + (v1/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 48 + }, + { + "kind": "Literal", + "name": "width", + "value": 48 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "avatar", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "avatar(height:48,width:48)" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "fullName", + "storageKey": null + } + ], + "type": "User", + "abstractKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "target", + "plural": false, + "selections": (v5/*: any*/), + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "actionObject", + "plural": false, + "selections": (v5/*: any*/), + "storageKey": null + }, + (v4/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": (v3/*: any*/), + "filters": [ + "verbs" + ], + "handle": "connection", + "key": "user_notifications", + "kind": "LinkedHandle", + "name": "notifications" + } ], - type: 'Comment', - abstractKey: null, - }, + "storageKey": null + } ] - return { - fragment: { - argumentDefinitions: v0 /*: any*/, - kind: 'Fragment', - metadata: null, - name: 'NotificationsListQuery', - selections: [ - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'me', - plural: false, - selections: [ - v1 /*: any*/, - { - args: [ - { - kind: 'Variable', - name: 'count', - variableName: 'count', - }, - { - kind: 'Variable', - name: 'cursor', - variableName: 'cursor', - }, - v2 /*: any*/, - ], - kind: 'FragmentSpread', - name: 'NotificationsListFragment', - }, - ], - storageKey: null, - }, - ], - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: v0 /*: any*/, - kind: 'Operation', - name: 'NotificationsListQuery', - selections: [ - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'me', - plural: false, - selections: [ - v1 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'notificationsUnreadCount', - storageKey: null, - }, - { - alias: null, - args: v3 /*: any*/, - concreteType: 'NotificationConnection', - kind: 'LinkedField', - name: 'notifications', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'NotificationEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Notification', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v1 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'unread', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'pk', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'timestamp', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'level', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'verb', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'description', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'data', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'actor', - plural: false, - selections: [ - v4 /*: any*/, - v1 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 48, - }, - { - kind: 'Literal', - name: 'width', - value: 48, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'avatar', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'avatar(height:48,width:48)', - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'fullName', - storageKey: null, - }, - ], - type: 'User', - abstractKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'target', - plural: false, - selections: v5 /*: any*/, - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'actionObject', - plural: false, - selections: v5 /*: any*/, - storageKey: null, - }, - v4 /*: any*/, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: v3 /*: any*/, - filters: ['verbs'], - handle: 'connection', - key: 'user_notifications', - kind: 'LinkedHandle', - name: 'notifications', - }, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: '5020e8d54e518cc03c83a9dae0d7a755', - id: null, - metadata: {}, - name: 'NotificationsListQuery', - operationKind: 'query', - text: 'query NotificationsListQuery(\n $count: Int!\n $cursor: String\n $verbs: String\n) {\n me {\n id\n ...NotificationsListFragment_LXqp7\n }\n}\n\nfragment NotificationItemFragment on Notification {\n id\n pk\n unread\n timestamp\n level\n verb\n description\n data\n actor {\n __typename\n id\n ... on User {\n avatar(width: 48, height: 48) {\n url\n }\n fullName\n }\n }\n target {\n id\n __typename\n ... on Comment {\n id\n body\n }\n }\n actionObject {\n id\n __typename\n ... on Comment {\n id\n body\n }\n }\n}\n\nfragment NotificationsListFragment_LXqp7 on User {\n id\n notificationsUnreadCount\n notifications(first: $count, after: $cursor, verbs: $verbs) {\n edges {\n cursor\n node {\n id\n unread\n ...NotificationItemFragment\n __typename\n }\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n', - }, + }, + "params": { + "cacheID": "5020e8d54e518cc03c83a9dae0d7a755", + "id": null, + "metadata": {}, + "name": "NotificationsListQuery", + "operationKind": "query", + "text": "query NotificationsListQuery(\n $count: Int!\n $cursor: String\n $verbs: String\n) {\n me {\n id\n ...NotificationsListFragment_LXqp7\n }\n}\n\nfragment NotificationItemFragment on Notification {\n id\n pk\n unread\n timestamp\n level\n verb\n description\n data\n actor {\n __typename\n id\n ... on User {\n avatar(width: 48, height: 48) {\n url\n }\n fullName\n }\n }\n target {\n id\n __typename\n ... on Comment {\n id\n body\n }\n }\n actionObject {\n id\n __typename\n ... on Comment {\n id\n body\n }\n }\n}\n\nfragment NotificationsListFragment_LXqp7 on User {\n id\n notificationsUnreadCount\n notifications(first: $count, after: $cursor, verbs: $verbs) {\n edges {\n cursor\n node {\n id\n unread\n ...NotificationItemFragment\n __typename\n }\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = '0554d356cc26427a8f329cf061e2faee' +(node as any).hash = "0554d356cc26427a8f329cf061e2faee"; -export default node +export default node; diff --git a/packages/components/__generated__/NotificationsMarkAllAsReadMutation.graphql.ts b/packages/components/__generated__/NotificationsMarkAllAsReadMutation.graphql.ts index b3211f67..784bc03b 100644 --- a/packages/components/__generated__/NotificationsMarkAllAsReadMutation.graphql.ts +++ b/packages/components/__generated__/NotificationsMarkAllAsReadMutation.graphql.ts @@ -5,148 +5,144 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Mutation } from 'relay-runtime' +import { ConcreteRequest, Mutation } from 'relay-runtime'; export type NotificationsMarkAllAsReadInput = { - clientMutationId?: string | null | undefined - read: boolean -} + clientMutationId?: string | null | undefined; + read: boolean; +}; export type NotificationsMarkAllAsReadMutation$variables = { - input: NotificationsMarkAllAsReadInput -} + input: NotificationsMarkAllAsReadInput; +}; export type NotificationsMarkAllAsReadMutation$data = { - readonly notificationsMarkAllAsRead: - | { - readonly recipient: - | { - readonly id: string - readonly notificationsUnreadCount: number | null | undefined - } - | null - | undefined - } - | null - | undefined -} + readonly notificationsMarkAllAsRead: { + readonly recipient: { + readonly id: string; + readonly notificationsUnreadCount: number | null | undefined; + } | null | undefined; + } | null | undefined; +}; export type NotificationsMarkAllAsReadMutation = { - response: NotificationsMarkAllAsReadMutation$data - variables: NotificationsMarkAllAsReadMutation$variables -} + response: NotificationsMarkAllAsReadMutation$data; + variables: NotificationsMarkAllAsReadMutation$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "input" + } +], +v1 = [ + { + "kind": "Variable", + "name": "input", + "variableName": "input" + } +], +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "notificationsUnreadCount", + "storageKey": null +}; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "NotificationsMarkAllAsReadMutation", + "selections": [ { - defaultValue: null, - kind: 'LocalArgument', - name: 'input', - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": "NotificationsMarkAllAsReadPayload", + "kind": "LinkedField", + "name": "notificationsMarkAllAsRead", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "recipient", + "plural": false, + "selections": [ + (v2/*: any*/), + (v3/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } ], - v1 = [ + "type": "Mutation", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "NotificationsMarkAllAsReadMutation", + "selections": [ { - kind: 'Variable', - name: 'input', - variableName: 'input', - }, - ], - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v3 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'notificationsUnreadCount', - storageKey: null, - } - return { - fragment: { - argumentDefinitions: v0 /*: any*/, - kind: 'Fragment', - metadata: null, - name: 'NotificationsMarkAllAsReadMutation', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'NotificationsMarkAllAsReadPayload', - kind: 'LinkedField', - name: 'notificationsMarkAllAsRead', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'recipient', - plural: false, - selections: [v2 /*: any*/, v3 /*: any*/], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'Mutation', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: v0 /*: any*/, - kind: 'Operation', - name: 'NotificationsMarkAllAsReadMutation', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'NotificationsMarkAllAsReadPayload', - kind: 'LinkedField', - name: 'notificationsMarkAllAsRead', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'recipient', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v2 /*: any*/, - v3 /*: any*/, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: 'a11d630beface00eb5af3e151d4990b0', - id: null, - metadata: {}, - name: 'NotificationsMarkAllAsReadMutation', - operationKind: 'mutation', - text: 'mutation NotificationsMarkAllAsReadMutation(\n $input: NotificationsMarkAllAsReadInput!\n) {\n notificationsMarkAllAsRead(input: $input) {\n recipient {\n __typename\n id\n notificationsUnreadCount\n }\n }\n}\n', - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": "NotificationsMarkAllAsReadPayload", + "kind": "LinkedField", + "name": "notificationsMarkAllAsRead", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "recipient", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + }, + (v2/*: any*/), + (v3/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } + ] + }, + "params": { + "cacheID": "a11d630beface00eb5af3e151d4990b0", + "id": null, + "metadata": {}, + "name": "NotificationsMarkAllAsReadMutation", + "operationKind": "mutation", + "text": "mutation NotificationsMarkAllAsReadMutation(\n $input: NotificationsMarkAllAsReadInput!\n) {\n notificationsMarkAllAsRead(input: $input) {\n recipient {\n __typename\n id\n notificationsUnreadCount\n }\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = 'e279aaf7402cac25fd7acbce4f1b9504' +(node as any).hash = "e279aaf7402cac25fd7acbce4f1b9504"; -export default node +export default node; diff --git a/packages/components/__generated__/NotificationsMarkAsReadMutation.graphql.ts b/packages/components/__generated__/NotificationsMarkAsReadMutation.graphql.ts index 0eba9c06..5d709ddd 100644 --- a/packages/components/__generated__/NotificationsMarkAsReadMutation.graphql.ts +++ b/packages/components/__generated__/NotificationsMarkAsReadMutation.graphql.ts @@ -5,181 +5,170 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Mutation } from 'relay-runtime' +import { ConcreteRequest, Mutation } from 'relay-runtime'; export type NotificationsMarkAsReadInput = { - clientMutationId?: string | null | undefined - notificationIds?: ReadonlyArray | null | undefined - read: boolean -} + clientMutationId?: string | null | undefined; + notificationIds?: ReadonlyArray | null | undefined; + read: boolean; +}; export type NotificationsMarkAsReadMutation$variables = { - input: NotificationsMarkAsReadInput -} + input: NotificationsMarkAsReadInput; +}; export type NotificationsMarkAsReadMutation$data = { - readonly notificationsMarkAsRead: - | { - readonly notifications: - | ReadonlyArray< - | { - readonly id: string - readonly unread: boolean - } - | null - | undefined - > - | null - | undefined - readonly recipient: - | { - readonly id: string - readonly notificationsUnreadCount: number | null | undefined - } - | null - | undefined - } - | null - | undefined -} + readonly notificationsMarkAsRead: { + readonly notifications: ReadonlyArray<{ + readonly id: string; + readonly unread: boolean; + } | null | undefined> | null | undefined; + readonly recipient: { + readonly id: string; + readonly notificationsUnreadCount: number | null | undefined; + } | null | undefined; + } | null | undefined; +}; export type NotificationsMarkAsReadMutation = { - response: NotificationsMarkAsReadMutation$data - variables: NotificationsMarkAsReadMutation$variables -} + response: NotificationsMarkAsReadMutation$data; + variables: NotificationsMarkAsReadMutation$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "input" + } +], +v1 = [ + { + "kind": "Variable", + "name": "input", + "variableName": "input" + } +], +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "notificationsUnreadCount", + "storageKey": null +}, +v4 = { + "alias": null, + "args": null, + "concreteType": "Notification", + "kind": "LinkedField", + "name": "notifications", + "plural": true, + "selections": [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "unread", + "storageKey": null + } + ], + "storageKey": null +}; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "NotificationsMarkAsReadMutation", + "selections": [ { - defaultValue: null, - kind: 'LocalArgument', - name: 'input', - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": "NotificationsMarkAsReadPayload", + "kind": "LinkedField", + "name": "notificationsMarkAsRead", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "recipient", + "plural": false, + "selections": [ + (v2/*: any*/), + (v3/*: any*/) + ], + "storageKey": null + }, + (v4/*: any*/) + ], + "storageKey": null + } ], - v1 = [ + "type": "Mutation", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "NotificationsMarkAsReadMutation", + "selections": [ { - kind: 'Variable', - name: 'input', - variableName: 'input', - }, - ], - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v3 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'notificationsUnreadCount', - storageKey: null, - }, - v4 = { - alias: null, - args: null, - concreteType: 'Notification', - kind: 'LinkedField', - name: 'notifications', - plural: true, - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'unread', - storageKey: null, - }, - ], - storageKey: null, - } - return { - fragment: { - argumentDefinitions: v0 /*: any*/, - kind: 'Fragment', - metadata: null, - name: 'NotificationsMarkAsReadMutation', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'NotificationsMarkAsReadPayload', - kind: 'LinkedField', - name: 'notificationsMarkAsRead', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'recipient', - plural: false, - selections: [v2 /*: any*/, v3 /*: any*/], - storageKey: null, - }, - v4 /*: any*/, - ], - storageKey: null, - }, - ], - type: 'Mutation', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: v0 /*: any*/, - kind: 'Operation', - name: 'NotificationsMarkAsReadMutation', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'NotificationsMarkAsReadPayload', - kind: 'LinkedField', - name: 'notificationsMarkAsRead', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'recipient', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v2 /*: any*/, - v3 /*: any*/, - ], - storageKey: null, - }, - v4 /*: any*/, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: '0698b685c49a59a3df4f281ad894f4e3', - id: null, - metadata: {}, - name: 'NotificationsMarkAsReadMutation', - operationKind: 'mutation', - text: 'mutation NotificationsMarkAsReadMutation(\n $input: NotificationsMarkAsReadInput!\n) {\n notificationsMarkAsRead(input: $input) {\n recipient {\n __typename\n id\n notificationsUnreadCount\n }\n notifications {\n id\n unread\n }\n }\n}\n', - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": "NotificationsMarkAsReadPayload", + "kind": "LinkedField", + "name": "notificationsMarkAsRead", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "recipient", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + }, + (v2/*: any*/), + (v3/*: any*/) + ], + "storageKey": null + }, + (v4/*: any*/) + ], + "storageKey": null + } + ] + }, + "params": { + "cacheID": "0698b685c49a59a3df4f281ad894f4e3", + "id": null, + "metadata": {}, + "name": "NotificationsMarkAsReadMutation", + "operationKind": "mutation", + "text": "mutation NotificationsMarkAsReadMutation(\n $input: NotificationsMarkAsReadInput!\n) {\n notificationsMarkAsRead(input: $input) {\n recipient {\n __typename\n id\n notificationsUnreadCount\n }\n notifications {\n id\n unread\n }\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = '0cbe23296c6c313d6443121d9695dc09' +(node as any).hash = "0cbe23296c6c313d6443121d9695dc09"; -export default node +export default node; diff --git a/packages/components/__generated__/NotificationsPopoverQuery.graphql.ts b/packages/components/__generated__/NotificationsPopoverQuery.graphql.ts index f9c5d372..885bce46 100644 --- a/packages/components/__generated__/NotificationsPopoverQuery.graphql.ts +++ b/packages/components/__generated__/NotificationsPopoverQuery.graphql.ts @@ -5,96 +5,92 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' -export type NotificationsPopoverQuery$variables = Record +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; +export type NotificationsPopoverQuery$variables = Record; export type NotificationsPopoverQuery$data = { - readonly me: - | { - readonly ' $fragmentSpreads': FragmentRefs<'NotificationUserMenuFragment'> - } - | null - | undefined -} + readonly me: { + readonly " $fragmentSpreads": FragmentRefs<"NotificationUserMenuFragment">; + } | null | undefined; +}; export type NotificationsPopoverQuery = { - response: NotificationsPopoverQuery$data - variables: NotificationsPopoverQuery$variables -} + response: NotificationsPopoverQuery$data; + variables: NotificationsPopoverQuery$variables; +}; const node: ConcreteRequest = { - fragment: { - argumentDefinitions: [], - kind: 'Fragment', - metadata: null, - name: 'NotificationsPopoverQuery', - selections: [ + "fragment": { + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "NotificationsPopoverQuery", + "selections": [ { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'me', - plural: false, - selections: [ + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "me", + "plural": false, + "selections": [ { - args: null, - kind: 'FragmentSpread', - name: 'NotificationUserMenuFragment', - }, + "args": null, + "kind": "FragmentSpread", + "name": "NotificationUserMenuFragment" + } ], - storageKey: null, - }, + "storageKey": null + } ], - type: 'Query', - abstractKey: null, + "type": "Query", + "abstractKey": null }, - kind: 'Request', - operation: { - argumentDefinitions: [], - kind: 'Operation', - name: 'NotificationsPopoverQuery', - selections: [ + "kind": "Request", + "operation": { + "argumentDefinitions": [], + "kind": "Operation", + "name": "NotificationsPopoverQuery", + "selections": [ { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'me', - plural: false, - selections: [ + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "me", + "plural": false, + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null }, { - alias: null, - args: null, - kind: 'ScalarField', - name: 'notificationsUnreadCount', - storageKey: null, - }, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "notificationsUnreadCount", + "storageKey": null + } ], - storageKey: null, - }, - ], - }, - params: { - cacheID: '58c1485b5059fc1681a5b306cec797c7', - id: null, - metadata: {}, - name: 'NotificationsPopoverQuery', - operationKind: 'query', - text: 'query NotificationsPopoverQuery {\n me {\n ...NotificationUserMenuFragment\n id\n }\n}\n\nfragment NotificationUserMenuFragment on User {\n id\n notificationsUnreadCount\n}\n', + "storageKey": null + } + ] }, -} + "params": { + "cacheID": "58c1485b5059fc1681a5b306cec797c7", + "id": null, + "metadata": {}, + "name": "NotificationsPopoverQuery", + "operationKind": "query", + "text": "query NotificationsPopoverQuery {\n me {\n ...NotificationUserMenuFragment\n id\n }\n}\n\nfragment NotificationUserMenuFragment on User {\n id\n notificationsUnreadCount\n}\n" + } +}; -;(node as any).hash = '5da34ad328e48607b7590cb556daeb22' +(node as any).hash = "5da34ad328e48607b7590cb556daeb22"; -export default node +export default node; diff --git a/packages/components/__generated__/OrganizationCreateMutation.graphql.ts b/packages/components/__generated__/OrganizationCreateMutation.graphql.ts index 81cfb851..4b35fbe2 100644 --- a/packages/components/__generated__/OrganizationCreateMutation.graphql.ts +++ b/packages/components/__generated__/OrganizationCreateMutation.graphql.ts @@ -5,314 +5,299 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Mutation } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Mutation } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type OrganizationCreateInput = { - clientMutationId?: string | null | undefined - name: string - urlPath?: string | null | undefined -} + clientMutationId?: string | null | undefined; + name: string; + urlPath?: string | null | undefined; +}; export type OrganizationCreateMutation$variables = { - connections: ReadonlyArray - input: OrganizationCreateInput -} + connections: ReadonlyArray; + input: OrganizationCreateInput; +}; export type OrganizationCreateMutation$data = { - readonly organizationCreate: - | { - readonly errors: - | ReadonlyArray< - | { - readonly field: string - readonly messages: ReadonlyArray - } - | null - | undefined - > - | null - | undefined - readonly organization: - | { - readonly node: - | { - readonly id: string - } - | null - | undefined - } - | null - | undefined - readonly profile: - | { - readonly node: - | { - readonly ' $fragmentSpreads': FragmentRefs<'ProfileItemFragment'> - } - | null - | undefined - } - | null - | undefined - } - | null - | undefined -} + readonly organizationCreate: { + readonly errors: ReadonlyArray<{ + readonly field: string; + readonly messages: ReadonlyArray; + } | null | undefined> | null | undefined; + readonly organization: { + readonly node: { + readonly id: string; + } | null | undefined; + } | null | undefined; + readonly profile: { + readonly node: { + readonly " $fragmentSpreads": FragmentRefs<"ProfileItemFragment">; + } | null | undefined; + } | null | undefined; + } | null | undefined; +}; export type OrganizationCreateMutation = { - response: OrganizationCreateMutation$data - variables: OrganizationCreateMutation$variables -} + response: OrganizationCreateMutation$data; + variables: OrganizationCreateMutation$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'connections', - }, - v1 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'input', - }, - v2 = [ - { - kind: 'Variable', - name: 'input', - variableName: 'input', - }, - ], - v3 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v4 = { - alias: null, - args: null, - concreteType: 'OrganizationEdge', - kind: 'LinkedField', - name: 'organization', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Organization', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [v3 /*: any*/], - storageKey: null, - }, - ], - storageKey: null, - }, - v5 = { - alias: null, - args: null, - concreteType: 'ErrorType', - kind: 'LinkedField', - name: 'errors', - plural: true, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'field', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'messages', - storageKey: null, - }, +const node: ConcreteRequest = (function(){ +var v0 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "connections" +}, +v1 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "input" +}, +v2 = [ + { + "kind": "Variable", + "name": "input", + "variableName": "input" + } +], +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v4 = { + "alias": null, + "args": null, + "concreteType": "OrganizationEdge", + "kind": "LinkedField", + "name": "organization", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Organization", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v3/*: any*/) ], - storageKey: null, + "storageKey": null } - return { - fragment: { - argumentDefinitions: [v0 /*: any*/, v1 /*: any*/], - kind: 'Fragment', - metadata: null, - name: 'OrganizationCreateMutation', - selections: [ - { - alias: null, - args: v2 /*: any*/, - concreteType: 'OrganizationCreatePayload', - kind: 'LinkedField', - name: 'organizationCreate', - plural: false, - selections: [ - v4 /*: any*/, - { - alias: null, - args: null, - concreteType: 'ProfileEdge', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - args: null, - kind: 'FragmentSpread', - name: 'ProfileItemFragment', - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - v5 /*: any*/, - ], - storageKey: null, - }, - ], - type: 'Mutation', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: [v1 /*: any*/, v0 /*: any*/], - kind: 'Operation', - name: 'OrganizationCreateMutation', - selections: [ - { - alias: null, - args: v2 /*: any*/, - concreteType: 'OrganizationCreatePayload', - kind: 'LinkedField', - name: 'organizationCreate', - plural: false, - selections: [ - v4 /*: any*/, - { - alias: null, - args: null, - concreteType: 'ProfileEdge', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v3 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'name', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 100, - }, - { - kind: 'Literal', - name: 'width', - value: 100, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'image(height:100,width:100)', - }, - { - alias: null, - args: null, - concreteType: 'URLPath', - kind: 'LinkedField', - name: 'urlPath', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'path', - storageKey: null, - }, - v3 /*: any*/, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - filters: null, - handle: 'prependEdge', - key: '', - kind: 'LinkedHandle', - name: 'profile', - handleArgs: [ - { - kind: 'Variable', - name: 'connections', - variableName: 'connections', - }, - ], - }, - v5 /*: any*/, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: '695d91d3d1771c63d98fd763396c8088', - id: null, - metadata: {}, - name: 'OrganizationCreateMutation', - operationKind: 'mutation', - text: 'mutation OrganizationCreateMutation(\n $input: OrganizationCreateInput!\n) {\n organizationCreate(input: $input) {\n organization {\n node {\n id\n }\n }\n profile {\n node {\n ...ProfileItemFragment\n id\n }\n }\n errors {\n field\n messages\n }\n }\n}\n\nfragment ProfileItemFragment on Profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n urlPath {\n path\n id\n }\n}\n', + ], + "storageKey": null +}, +v5 = { + "alias": null, + "args": null, + "concreteType": "ErrorType", + "kind": "LinkedField", + "name": "errors", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "field", + "storageKey": null }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "messages", + "storageKey": null + } + ], + "storageKey": null +}; +return { + "fragment": { + "argumentDefinitions": [ + (v0/*: any*/), + (v1/*: any*/) + ], + "kind": "Fragment", + "metadata": null, + "name": "OrganizationCreateMutation", + "selections": [ + { + "alias": null, + "args": (v2/*: any*/), + "concreteType": "OrganizationCreatePayload", + "kind": "LinkedField", + "name": "organizationCreate", + "plural": false, + "selections": [ + (v4/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "ProfileEdge", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "args": null, + "kind": "FragmentSpread", + "name": "ProfileItemFragment" + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + (v5/*: any*/) + ], + "storageKey": null + } + ], + "type": "Mutation", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": [ + (v1/*: any*/), + (v0/*: any*/) + ], + "kind": "Operation", + "name": "OrganizationCreateMutation", + "selections": [ + { + "alias": null, + "args": (v2/*: any*/), + "concreteType": "OrganizationCreatePayload", + "kind": "LinkedField", + "name": "organizationCreate", + "plural": false, + "selections": [ + (v4/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "ProfileEdge", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "name", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100 + }, + { + "kind": "Literal", + "name": "width", + "value": 100 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "image(height:100,width:100)" + }, + { + "alias": null, + "args": null, + "concreteType": "URLPath", + "kind": "LinkedField", + "name": "urlPath", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "path", + "storageKey": null + }, + (v3/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "filters": null, + "handle": "prependEdge", + "key": "", + "kind": "LinkedHandle", + "name": "profile", + "handleArgs": [ + { + "kind": "Variable", + "name": "connections", + "variableName": "connections" + } + ] + }, + (v5/*: any*/) + ], + "storageKey": null + } + ] + }, + "params": { + "cacheID": "695d91d3d1771c63d98fd763396c8088", + "id": null, + "metadata": {}, + "name": "OrganizationCreateMutation", + "operationKind": "mutation", + "text": "mutation OrganizationCreateMutation(\n $input: OrganizationCreateInput!\n) {\n organizationCreate(input: $input) {\n organization {\n node {\n id\n }\n }\n profile {\n node {\n ...ProfileItemFragment\n id\n }\n }\n errors {\n field\n messages\n }\n }\n}\n\nfragment ProfileItemFragment on Profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n urlPath {\n path\n id\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = '555c8c1ef3a4c59a8cd9cf1c8396dc13' +(node as any).hash = "555c8c1ef3a4c59a8cd9cf1c8396dc13"; -export default node +export default node; diff --git a/packages/components/__generated__/ProfileComponentFragment.graphql.ts b/packages/components/__generated__/ProfileComponentFragment.graphql.ts index 63f366f5..cc8ec69a 100644 --- a/packages/components/__generated__/ProfileComponentFragment.graphql.ts +++ b/packages/components/__generated__/ProfileComponentFragment.graphql.ts @@ -5,227 +5,216 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { Fragment, ReaderFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' - -export type ProfilesProfileStatusChoices = 'A_1' | 'A_2' | '%future added value' +import { Fragment, ReaderFragment } from 'relay-runtime'; +export type ProfilesProfileStatusChoices = "A_1" | "A_2" | "%future added value"; +import { FragmentRefs } from "relay-runtime"; export type ProfileComponentFragment$data = { - readonly bannerImage: - | { - readonly url: string - } - | null - | undefined - readonly biography: string | null | undefined - readonly canChange: boolean | null | undefined - readonly followersCount: number | null | undefined - readonly followingCount: number | null | undefined - readonly id: string - readonly image: - | { - readonly url: string - } - | null - | undefined - readonly isBlockedByMe: boolean | null | undefined - readonly isFollowedByMe: boolean | null | undefined - readonly name: string | null | undefined + readonly bannerImage: { + readonly url: string; + } | null | undefined; + readonly biography: string | null | undefined; + readonly canChange: boolean | null | undefined; + readonly followersCount: number | null | undefined; + readonly followingCount: number | null | undefined; + readonly id: string; + readonly image: { + readonly url: string; + } | null | undefined; + readonly isBlockedByMe: boolean | null | undefined; + readonly isFollowedByMe: boolean | null | undefined; + readonly name: string | null | undefined; readonly owner: { - readonly phoneNumber: string | null | undefined - } - readonly status: ProfilesProfileStatusChoices - readonly urlPath: - | { - readonly path: string - } - | null - | undefined - readonly ' $fragmentSpreads': FragmentRefs<'BlockToggleFragment'> - readonly ' $fragmentType': 'ProfileComponentFragment' -} + readonly phoneNumber: string | null | undefined; + }; + readonly status: ProfilesProfileStatusChoices; + readonly urlPath: { + readonly path: string; + } | null | undefined; + readonly " $fragmentSpreads": FragmentRefs<"BlockToggleFragment">; + readonly " $fragmentType": "ProfileComponentFragment"; +}; export type ProfileComponentFragment$key = { - readonly ' $data'?: ProfileComponentFragment$data - readonly ' $fragmentSpreads': FragmentRefs<'ProfileComponentFragment'> -} + readonly " $data"?: ProfileComponentFragment$data; + readonly " $fragmentSpreads": FragmentRefs<"ProfileComponentFragment">; +}; -const node: ReaderFragment = (function () { - var v0 = [ +const node: ReaderFragment = (function(){ +var v0 = [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } +]; +return { + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "ProfileComponentFragment", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null }, - ] - return { - argumentDefinitions: [], - kind: 'Fragment', - metadata: null, - name: 'ProfileComponentFragment', - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'status', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'name', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'biography', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 96, - }, - { - kind: 'Literal', - name: 'width', - value: 96, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: v0 /*: any*/, - storageKey: 'image(height:96,width:96)', - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 290, - }, - { - kind: 'Literal', - name: 'width', - value: 868, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'bannerImage', - plural: false, - selections: v0 /*: any*/, - storageKey: 'bannerImage(height:290,width:868)', - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isFollowedByMe', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'followersCount', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'followingCount', - storageKey: null, - }, - { - alias: 'canChange', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'change', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"change")', - }, - { - alias: null, - args: null, - concreteType: 'URLPath', - kind: 'LinkedField', - name: 'urlPath', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'path', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'owner', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'phoneNumber', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isBlockedByMe', - storageKey: null, - }, - { - args: null, - kind: 'FragmentSpread', - name: 'BlockToggleFragment', - }, - ], - type: 'Profile', - abstractKey: null, - } -})() + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "status", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "name", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "biography", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 96 + }, + { + "kind": "Literal", + "name": "width", + "value": 96 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": (v0/*: any*/), + "storageKey": "image(height:96,width:96)" + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 290 + }, + { + "kind": "Literal", + "name": "width", + "value": 868 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "bannerImage", + "plural": false, + "selections": (v0/*: any*/), + "storageKey": "bannerImage(height:290,width:868)" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isFollowedByMe", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "followersCount", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "followingCount", + "storageKey": null + }, + { + "alias": "canChange", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "change" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"change\")" + }, + { + "alias": null, + "args": null, + "concreteType": "URLPath", + "kind": "LinkedField", + "name": "urlPath", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "path", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "owner", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "phoneNumber", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isBlockedByMe", + "storageKey": null + }, + { + "args": null, + "kind": "FragmentSpread", + "name": "BlockToggleFragment" + } + ], + "type": "Profile", + "abstractKey": null +}; +})(); -;(node as any).hash = '14c553f27fa01a11431eb14bb57b92c8' +(node as any).hash = "14c553f27fa01a11431eb14bb57b92c8"; -export default node +export default node; diff --git a/packages/components/__generated__/ProfileItemFragment.graphql.ts b/packages/components/__generated__/ProfileItemFragment.graphql.ts index 78be7cd9..afe57ac2 100644 --- a/packages/components/__generated__/ProfileItemFragment.graphql.ts +++ b/packages/components/__generated__/ProfileItemFragment.graphql.ts @@ -5,112 +5,105 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { Fragment, ReaderFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { Fragment, ReaderFragment } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type ProfileItemFragment$data = { - readonly id: string - readonly image: - | { - readonly url: string - } - | null - | undefined - readonly name: string | null | undefined - readonly urlPath: - | { - readonly path: string - } - | null - | undefined - readonly ' $fragmentType': 'ProfileItemFragment' -} + readonly id: string; + readonly image: { + readonly url: string; + } | null | undefined; + readonly name: string | null | undefined; + readonly urlPath: { + readonly path: string; + } | null | undefined; + readonly " $fragmentType": "ProfileItemFragment"; +}; export type ProfileItemFragment$key = { - readonly ' $data'?: ProfileItemFragment$data - readonly ' $fragmentSpreads': FragmentRefs<'ProfileItemFragment'> -} + readonly " $data"?: ProfileItemFragment$data; + readonly " $fragmentSpreads": FragmentRefs<"ProfileItemFragment">; +}; const node: ReaderFragment = { - argumentDefinitions: [ + "argumentDefinitions": [ { - defaultValue: 100, - kind: 'LocalArgument', - name: 'avatarSize', - }, + "defaultValue": 100, + "kind": "LocalArgument", + "name": "avatarSize" + } ], - kind: 'Fragment', - metadata: null, - name: 'ProfileItemFragment', - selections: [ + "kind": "Fragment", + "metadata": null, + "name": "ProfileItemFragment", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null }, { - alias: null, - args: null, - kind: 'ScalarField', - name: 'name', - storageKey: null, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "name", + "storageKey": null }, { - alias: null, - args: [ + "alias": null, + "args": [ { - kind: 'Variable', - name: 'height', - variableName: 'avatarSize', + "kind": "Variable", + "name": "height", + "variableName": "avatarSize" }, { - kind: 'Variable', - name: 'width', - variableName: 'avatarSize', - }, + "kind": "Variable", + "name": "width", + "variableName": "avatarSize" + } ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: [ + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } ], - storageKey: null, + "storageKey": null }, { - alias: null, - args: null, - concreteType: 'URLPath', - kind: 'LinkedField', - name: 'urlPath', - plural: false, - selections: [ + "alias": null, + "args": null, + "concreteType": "URLPath", + "kind": "LinkedField", + "name": "urlPath", + "plural": false, + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'path', - storageKey: null, - }, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "path", + "storageKey": null + } ], - storageKey: null, - }, + "storageKey": null + } ], - type: 'Profile', - abstractKey: null, -} + "type": "Profile", + "abstractKey": null +}; -;(node as any).hash = 'b32115278ad65ec9a310b97d23b5c85b' +(node as any).hash = "b32115278ad65ec9a310b97d23b5c85b"; -export default node +export default node; diff --git a/packages/components/__generated__/ProfileUpdateMutation.graphql.ts b/packages/components/__generated__/ProfileUpdateMutation.graphql.ts index 5fa7fbd6..e3eb2cfa 100644 --- a/packages/components/__generated__/ProfileUpdateMutation.graphql.ts +++ b/packages/components/__generated__/ProfileUpdateMutation.graphql.ts @@ -5,339 +5,325 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Mutation } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Mutation } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type ProfileUpdateInput = { - bannerImage?: string | null | undefined - biography?: string | null | undefined - clientMutationId?: string | null | undefined - id: string - image?: string | null | undefined - name?: string | null | undefined - owner?: string | null | undefined - phoneNumber?: string | null | undefined - urlPath?: string | null | undefined -} + bannerImage?: string | null | undefined; + biography?: string | null | undefined; + clientMutationId?: string | null | undefined; + id: string; + image?: string | null | undefined; + name?: string | null | undefined; + owner?: string | null | undefined; + phoneNumber?: string | null | undefined; + urlPath?: string | null | undefined; +}; export type ProfileUpdateMutation$variables = { - input: ProfileUpdateInput -} + input: ProfileUpdateInput; +}; export type ProfileUpdateMutation$data = { - readonly profileUpdate: - | { - readonly errors: - | ReadonlyArray< - | { - readonly field: string - readonly messages: ReadonlyArray - } - | null - | undefined - > - | null - | undefined - readonly profile: - | { - readonly ' $fragmentSpreads': FragmentRefs<'ProfileComponentFragment'> - } - | null - | undefined - } - | null - | undefined -} + readonly profileUpdate: { + readonly errors: ReadonlyArray<{ + readonly field: string; + readonly messages: ReadonlyArray; + } | null | undefined> | null | undefined; + readonly profile: { + readonly " $fragmentSpreads": FragmentRefs<"ProfileComponentFragment">; + } | null | undefined; + } | null | undefined; +}; export type ProfileUpdateMutation = { - response: ProfileUpdateMutation$data - variables: ProfileUpdateMutation$variables -} + response: ProfileUpdateMutation$data; + variables: ProfileUpdateMutation$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ - { - defaultValue: null, - kind: 'LocalArgument', - name: 'input', - }, - ], - v1 = [ +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "input" + } +], +v1 = [ + { + "kind": "Variable", + "name": "input", + "variableName": "input" + } +], +v2 = { + "alias": null, + "args": null, + "concreteType": "ErrorType", + "kind": "LinkedField", + "name": "errors", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "field", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "messages", + "storageKey": null + } + ], + "storageKey": null +}, +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v4 = [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } +]; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "ProfileUpdateMutation", + "selections": [ { - kind: 'Variable', - name: 'input', - variableName: 'input', - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": "ProfileUpdatePayload", + "kind": "LinkedField", + "name": "profileUpdate", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + { + "args": null, + "kind": "FragmentSpread", + "name": "ProfileComponentFragment" + } + ], + "storageKey": null + }, + (v2/*: any*/) + ], + "storageKey": null + } ], - v2 = { - alias: null, - args: null, - concreteType: 'ErrorType', - kind: 'LinkedField', - name: 'errors', - plural: true, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'field', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'messages', - storageKey: null, - }, - ], - storageKey: null, - }, - v3 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v4 = [ + "type": "Mutation", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "ProfileUpdateMutation", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": "ProfileUpdatePayload", + "kind": "LinkedField", + "name": "profileUpdate", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "status", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "name", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "biography", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 96 + }, + { + "kind": "Literal", + "name": "width", + "value": 96 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": (v4/*: any*/), + "storageKey": "image(height:96,width:96)" + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 290 + }, + { + "kind": "Literal", + "name": "width", + "value": 868 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "bannerImage", + "plural": false, + "selections": (v4/*: any*/), + "storageKey": "bannerImage(height:290,width:868)" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isFollowedByMe", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "followersCount", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "followingCount", + "storageKey": null + }, + { + "alias": "canChange", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "change" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"change\")" + }, + { + "alias": null, + "args": null, + "concreteType": "URLPath", + "kind": "LinkedField", + "name": "urlPath", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "path", + "storageKey": null + }, + (v3/*: any*/) + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "owner", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "phoneNumber", + "storageKey": null + }, + (v3/*: any*/) + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isBlockedByMe", + "storageKey": null + }, + { + "kind": "TypeDiscriminator", + "abstractKey": "__isBlocksInterface" + } + ], + "storageKey": null + }, + (v2/*: any*/) + ], + "storageKey": null + } ] - return { - fragment: { - argumentDefinitions: v0 /*: any*/, - kind: 'Fragment', - metadata: null, - name: 'ProfileUpdateMutation', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'ProfileUpdatePayload', - kind: 'LinkedField', - name: 'profileUpdate', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - { - args: null, - kind: 'FragmentSpread', - name: 'ProfileComponentFragment', - }, - ], - storageKey: null, - }, - v2 /*: any*/, - ], - storageKey: null, - }, - ], - type: 'Mutation', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: v0 /*: any*/, - kind: 'Operation', - name: 'ProfileUpdateMutation', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'ProfileUpdatePayload', - kind: 'LinkedField', - name: 'profileUpdate', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - v3 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'status', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'name', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'biography', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 96, - }, - { - kind: 'Literal', - name: 'width', - value: 96, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: v4 /*: any*/, - storageKey: 'image(height:96,width:96)', - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 290, - }, - { - kind: 'Literal', - name: 'width', - value: 868, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'bannerImage', - plural: false, - selections: v4 /*: any*/, - storageKey: 'bannerImage(height:290,width:868)', - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isFollowedByMe', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'followersCount', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'followingCount', - storageKey: null, - }, - { - alias: 'canChange', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'change', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"change")', - }, - { - alias: null, - args: null, - concreteType: 'URLPath', - kind: 'LinkedField', - name: 'urlPath', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'path', - storageKey: null, - }, - v3 /*: any*/, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'owner', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'phoneNumber', - storageKey: null, - }, - v3 /*: any*/, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isBlockedByMe', - storageKey: null, - }, - { - kind: 'TypeDiscriminator', - abstractKey: '__isBlocksInterface', - }, - ], - storageKey: null, - }, - v2 /*: any*/, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: 'c0e960cbeeab17c8f65cbae625436ab9', - id: null, - metadata: {}, - name: 'ProfileUpdateMutation', - operationKind: 'mutation', - text: 'mutation ProfileUpdateMutation(\n $input: ProfileUpdateInput!\n) {\n profileUpdate(input: $input) {\n profile {\n ...ProfileComponentFragment\n id\n }\n errors {\n field\n messages\n }\n }\n}\n\nfragment BlockToggleFragment on BlocksInterface {\n __isBlocksInterface: __typename\n id\n isBlockedByMe\n ... on Profile {\n id\n name\n }\n}\n\nfragment ProfileComponentFragment on Profile {\n id\n status\n name\n biography\n image(height: 96, width: 96) {\n url\n }\n bannerImage(height: 290, width: 868) {\n url\n }\n isFollowedByMe\n followersCount\n followingCount\n canChange: hasPerm(perm: "change")\n urlPath {\n path\n id\n }\n owner {\n phoneNumber\n id\n }\n isBlockedByMe\n ...BlockToggleFragment\n}\n', - }, + }, + "params": { + "cacheID": "c0e960cbeeab17c8f65cbae625436ab9", + "id": null, + "metadata": {}, + "name": "ProfileUpdateMutation", + "operationKind": "mutation", + "text": "mutation ProfileUpdateMutation(\n $input: ProfileUpdateInput!\n) {\n profileUpdate(input: $input) {\n profile {\n ...ProfileComponentFragment\n id\n }\n errors {\n field\n messages\n }\n }\n}\n\nfragment BlockToggleFragment on BlocksInterface {\n __isBlocksInterface: __typename\n id\n isBlockedByMe\n ... on Profile {\n id\n name\n }\n}\n\nfragment ProfileComponentFragment on Profile {\n id\n status\n name\n biography\n image(height: 96, width: 96) {\n url\n }\n bannerImage(height: 290, width: 868) {\n url\n }\n isFollowedByMe\n followersCount\n followingCount\n canChange: hasPerm(perm: \"change\")\n urlPath {\n path\n id\n }\n owner {\n phoneNumber\n id\n }\n isBlockedByMe\n ...BlockToggleFragment\n}\n" } -})() +}; +})(); -;(node as any).hash = 'b15251b426798b8c3457aed1249f8a64' +(node as any).hash = "b15251b426798b8c3457aed1249f8a64"; -export default node +export default node; diff --git a/packages/components/__generated__/ProfilesListFragment.graphql.ts b/packages/components/__generated__/ProfilesListFragment.graphql.ts index 3a70d8c7..bb960958 100644 --- a/packages/components/__generated__/ProfilesListFragment.graphql.ts +++ b/packages/components/__generated__/ProfilesListFragment.graphql.ts @@ -5,180 +5,173 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ReaderFragment, RefetchableFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ReaderFragment, RefetchableFragment } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type ProfilesListFragment$data = { - readonly id: string - readonly profiles: - | { - readonly edges: ReadonlyArray< - | { - readonly cursor: string - readonly node: - | { - readonly id: string - readonly ' $fragmentSpreads': FragmentRefs<'ProfileItemFragment'> - } - | null - | undefined - } - | null - | undefined - > - readonly pageInfo: { - readonly endCursor: string | null | undefined - readonly hasNextPage: boolean - } - } - | null - | undefined - readonly ' $fragmentType': 'ProfilesListFragment' -} + readonly id: string; + readonly profiles: { + readonly edges: ReadonlyArray<{ + readonly cursor: string; + readonly node: { + readonly id: string; + readonly " $fragmentSpreads": FragmentRefs<"ProfileItemFragment">; + } | null | undefined; + } | null | undefined>; + readonly pageInfo: { + readonly endCursor: string | null | undefined; + readonly hasNextPage: boolean; + }; + } | null | undefined; + readonly " $fragmentType": "ProfilesListFragment"; +}; export type ProfilesListFragment$key = { - readonly ' $data'?: ProfilesListFragment$data - readonly ' $fragmentSpreads': FragmentRefs<'ProfilesListFragment'> -} + readonly " $data"?: ProfilesListFragment$data; + readonly " $fragmentSpreads": FragmentRefs<"ProfilesListFragment">; +}; -const node: ReaderFragment = (function () { - var v0 = ['profiles'], - v1 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, +const node: ReaderFragment = (function(){ +var v0 = [ + "profiles" +], +v1 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}; +return { + "argumentDefinitions": [ + { + "defaultValue": 10, + "kind": "LocalArgument", + "name": "count" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "cursor" } - return { - argumentDefinitions: [ - { - defaultValue: 10, - kind: 'LocalArgument', - name: 'count', - }, + ], + "kind": "Fragment", + "metadata": { + "connection": [ { - defaultValue: null, - kind: 'LocalArgument', - name: 'cursor', - }, + "count": "count", + "cursor": "cursor", + "direction": "forward", + "path": (v0/*: any*/) + } ], - kind: 'Fragment', - metadata: { - connection: [ - { - count: 'count', - cursor: 'cursor', - direction: 'forward', - path: v0 /*: any*/, + "refetch": { + "connection": { + "forward": { + "count": "count", + "cursor": "cursor" }, + "backward": null, + "path": (v0/*: any*/) + }, + "fragmentPathInResult": [ + "node" ], - refetch: { - connection: { - forward: { - count: 'count', - cursor: 'cursor', - }, - backward: null, - path: v0 /*: any*/, - }, - fragmentPathInResult: ['node'], - operation: require('./profilesListRefetchable.graphql'), - identifierInfo: { - identifierField: 'id', - identifierQueryVariableName: 'id', + "operation": require('./profilesListRefetchable.graphql'), + "identifierInfo": { + "identifierField": "id", + "identifierQueryVariableName": "id" + } + } + }, + "name": "ProfilesListFragment", + "selections": [ + (v1/*: any*/), + { + "alias": "profiles", + "args": null, + "concreteType": "ProfileConnection", + "kind": "LinkedField", + "name": "__ProfilesListFragment_profiles_connection", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ProfileEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v1/*: any*/), + { + "args": null, + "kind": "FragmentSpread", + "name": "ProfileItemFragment" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null }, - }, - }, - name: 'ProfilesListFragment', - selections: [ - v1 /*: any*/, - { - alias: 'profiles', - args: null, - concreteType: 'ProfileConnection', - kind: 'LinkedField', - name: '__ProfilesListFragment_profiles_connection', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ProfileEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v1 /*: any*/, - { - args: null, - kind: 'FragmentSpread', - name: 'ProfileItemFragment', - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'User', - abstractKey: null, - } -})() + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "type": "User", + "abstractKey": null +}; +})(); -;(node as any).hash = '220e97b8d45724f507762ff4f3d39dce' +(node as any).hash = "220e97b8d45724f507762ff4f3d39dce"; -export default node +export default node; diff --git a/packages/components/__generated__/ProfilesListQuery.graphql.ts b/packages/components/__generated__/ProfilesListQuery.graphql.ts index 7ce825d5..a915eff9 100644 --- a/packages/components/__generated__/ProfilesListQuery.graphql.ts +++ b/packages/components/__generated__/ProfilesListQuery.graphql.ts @@ -5,269 +5,265 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type ProfilesListQuery$variables = { - count: number - cursor?: string | null | undefined -} + count: number; + cursor?: string | null | undefined; +}; export type ProfilesListQuery$data = { - readonly me: - | { - readonly id: string - readonly ' $fragmentSpreads': FragmentRefs<'ProfilesListFragment'> - } - | null - | undefined -} + readonly me: { + readonly id: string; + readonly " $fragmentSpreads": FragmentRefs<"ProfilesListFragment">; + } | null | undefined; +}; export type ProfilesListQuery = { - response: ProfilesListQuery$data - variables: ProfilesListQuery$variables -} + response: ProfilesListQuery$data; + variables: ProfilesListQuery$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ - { - defaultValue: null, - kind: 'LocalArgument', - name: 'count', - }, +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "count" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "cursor" + } +], +v1 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v2 = [ + { + "kind": "Variable", + "name": "after", + "variableName": "cursor" + }, + { + "kind": "Variable", + "name": "first", + "variableName": "count" + } +]; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "ProfilesListQuery", + "selections": [ { - defaultValue: null, - kind: 'LocalArgument', - name: 'cursor', - }, + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "me", + "plural": false, + "selections": [ + (v1/*: any*/), + { + "args": [ + { + "kind": "Variable", + "name": "count", + "variableName": "count" + }, + { + "kind": "Variable", + "name": "cursor", + "variableName": "cursor" + } + ], + "kind": "FragmentSpread", + "name": "ProfilesListFragment" + } + ], + "storageKey": null + } ], - v1 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v2 = [ + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "ProfilesListQuery", + "selections": [ { - kind: 'Variable', - name: 'after', - variableName: 'cursor', - }, - { - kind: 'Variable', - name: 'first', - variableName: 'count', - }, + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "me", + "plural": false, + "selections": [ + (v1/*: any*/), + { + "alias": null, + "args": (v2/*: any*/), + "concreteType": "ProfileConnection", + "kind": "LinkedField", + "name": "profiles", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ProfileEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v1/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "name", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100 + }, + { + "kind": "Literal", + "name": "width", + "value": 100 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "image(height:100,width:100)" + }, + { + "alias": null, + "args": null, + "concreteType": "URLPath", + "kind": "LinkedField", + "name": "urlPath", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "path", + "storageKey": null + }, + (v1/*: any*/) + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": (v2/*: any*/), + "filters": null, + "handle": "connection", + "key": "ProfilesListFragment_profiles", + "kind": "LinkedHandle", + "name": "profiles" + } + ], + "storageKey": null + } ] - return { - fragment: { - argumentDefinitions: v0 /*: any*/, - kind: 'Fragment', - metadata: null, - name: 'ProfilesListQuery', - selections: [ - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'me', - plural: false, - selections: [ - v1 /*: any*/, - { - args: [ - { - kind: 'Variable', - name: 'count', - variableName: 'count', - }, - { - kind: 'Variable', - name: 'cursor', - variableName: 'cursor', - }, - ], - kind: 'FragmentSpread', - name: 'ProfilesListFragment', - }, - ], - storageKey: null, - }, - ], - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: v0 /*: any*/, - kind: 'Operation', - name: 'ProfilesListQuery', - selections: [ - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'me', - plural: false, - selections: [ - v1 /*: any*/, - { - alias: null, - args: v2 /*: any*/, - concreteType: 'ProfileConnection', - kind: 'LinkedField', - name: 'profiles', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ProfileEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v1 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'name', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 100, - }, - { - kind: 'Literal', - name: 'width', - value: 100, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'image(height:100,width:100)', - }, - { - alias: null, - args: null, - concreteType: 'URLPath', - kind: 'LinkedField', - name: 'urlPath', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'path', - storageKey: null, - }, - v1 /*: any*/, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: v2 /*: any*/, - filters: null, - handle: 'connection', - key: 'ProfilesListFragment_profiles', - kind: 'LinkedHandle', - name: 'profiles', - }, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: '4254a9462b2759817c71e9febce50ff8', - id: null, - metadata: {}, - name: 'ProfilesListQuery', - operationKind: 'query', - text: 'query ProfilesListQuery(\n $count: Int!\n $cursor: String\n) {\n me {\n id\n ...ProfilesListFragment_1G22uz\n }\n}\n\nfragment ProfileItemFragment on Profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n urlPath {\n path\n id\n }\n}\n\nfragment ProfilesListFragment_1G22uz on User {\n id\n profiles(first: $count, after: $cursor) {\n edges {\n cursor\n node {\n id\n ...ProfileItemFragment\n __typename\n }\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n', - }, + }, + "params": { + "cacheID": "4254a9462b2759817c71e9febce50ff8", + "id": null, + "metadata": {}, + "name": "ProfilesListQuery", + "operationKind": "query", + "text": "query ProfilesListQuery(\n $count: Int!\n $cursor: String\n) {\n me {\n id\n ...ProfilesListFragment_1G22uz\n }\n}\n\nfragment ProfileItemFragment on Profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n urlPath {\n path\n id\n }\n}\n\nfragment ProfilesListFragment_1G22uz on User {\n id\n profiles(first: $count, after: $cursor) {\n edges {\n cursor\n node {\n id\n ...ProfileItemFragment\n __typename\n }\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = 'f29be79e4f4e86911f0532d2c86db263' +(node as any).hash = "f29be79e4f4e86911f0532d2c86db263"; -export default node +export default node; diff --git a/packages/components/__generated__/ReactionButtonMutation.graphql.ts b/packages/components/__generated__/ReactionButtonMutation.graphql.ts index 2f1cb05a..f1564f6d 100644 --- a/packages/components/__generated__/ReactionButtonMutation.graphql.ts +++ b/packages/components/__generated__/ReactionButtonMutation.graphql.ts @@ -5,247 +5,234 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Mutation } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' -export type ReactionTypes = 'DISLIKE' | 'LIKE' | '%future added value' +import { ConcreteRequest, Mutation } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; +export type ReactionTypes = "DISLIKE" | "LIKE" | "%future added value"; export type ReactionToggleInput = { - clientMutationId?: string | null | undefined - profileObjectId?: string | null | undefined - reactionType: ReactionTypes - targetObjectId: string -} + clientMutationId?: string | null | undefined; + profileObjectId?: string | null | undefined; + reactionType: ReactionTypes; + targetObjectId: string; +}; export type ReactionButtonMutation$variables = { - input: ReactionToggleInput -} + input: ReactionToggleInput; +}; export type ReactionButtonMutation$data = { - readonly reactionToggle: - | { - readonly reaction: - | { - readonly node: - | { - readonly id: string - readonly reactionType: ReactionTypes | null | undefined - } - | null - | undefined - } - | null - | undefined - readonly reactionDeletedId: string | null | undefined - readonly target: - | { - readonly id: string - readonly ' $fragmentSpreads': FragmentRefs<'ReactionButton_target'> - } - | null - | undefined - } - | null - | undefined -} + readonly reactionToggle: { + readonly reaction: { + readonly node: { + readonly id: string; + readonly reactionType: ReactionTypes | null | undefined; + } | null | undefined; + } | null | undefined; + readonly reactionDeletedId: string | null | undefined; + readonly target: { + readonly id: string; + readonly " $fragmentSpreads": FragmentRefs<"ReactionButton_target">; + } | null | undefined; + } | null | undefined; +}; export type ReactionButtonMutation = { - response: ReactionButtonMutation$data - variables: ReactionButtonMutation$variables -} + response: ReactionButtonMutation$data; + variables: ReactionButtonMutation$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ - { - defaultValue: null, - kind: 'LocalArgument', - name: 'input', - }, - ], - v1 = [ +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "input" + } +], +v1 = [ + { + "kind": "Variable", + "name": "input", + "variableName": "input" + } +], +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v3 = [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "reactionType", + "storageKey": null + } +], +v4 = { + "alias": null, + "args": null, + "concreteType": "ReactionEdge", + "kind": "LinkedField", + "name": "reaction", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Reaction", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": (v3/*: any*/), + "storageKey": null + } + ], + "storageKey": null +}, +v5 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "reactionDeletedId", + "storageKey": null +}; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "ReactionButtonMutation", + "selections": [ { - kind: 'Variable', - name: 'input', - variableName: 'input', - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": "ReactionTogglePayload", + "kind": "LinkedField", + "name": "reactionToggle", + "plural": false, + "selections": [ + (v4/*: any*/), + (v5/*: any*/), + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "target", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "args": null, + "kind": "FragmentSpread", + "name": "ReactionButton_target" + } + ], + "storageKey": null + } + ], + "storageKey": null + } ], - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v3 = [ - v2 /*: any*/, + "type": "Mutation", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "ReactionButtonMutation", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'reactionType', - storageKey: null, - }, - ], - v4 = { - alias: null, - args: null, - concreteType: 'ReactionEdge', - kind: 'LinkedField', - name: 'reaction', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Reaction', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: v3 /*: any*/, - storageKey: null, - }, - ], - storageKey: null, - }, - v5 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'reactionDeletedId', - storageKey: null, - } - return { - fragment: { - argumentDefinitions: v0 /*: any*/, - kind: 'Fragment', - metadata: null, - name: 'ReactionButtonMutation', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'ReactionTogglePayload', - kind: 'LinkedField', - name: 'reactionToggle', - plural: false, - selections: [ - v4 /*: any*/, - v5 /*: any*/, - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'target', - plural: false, - selections: [ - v2 /*: any*/, - { - args: null, - kind: 'FragmentSpread', - name: 'ReactionButton_target', - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'Mutation', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: v0 /*: any*/, - kind: 'Operation', - name: 'ReactionButtonMutation', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'ReactionTogglePayload', - kind: 'LinkedField', - name: 'reactionToggle', - plural: false, - selections: [ - v4 /*: any*/, - v5 /*: any*/, - { - alias: null, - args: null, - filters: null, - handle: 'deleteRecord', - key: '', - kind: 'ScalarHandle', - name: 'reactionDeletedId', - }, - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'target', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v2 /*: any*/, - { - kind: 'TypeDiscriminator', - abstractKey: '__isReactionsInterface', - }, - { - alias: null, - args: null, - concreteType: 'ReactionsCount', - kind: 'LinkedField', - name: 'reactionsCount', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'total', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Reaction', - kind: 'LinkedField', - name: 'myReaction', - plural: false, - selections: v3 /*: any*/, - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: '10b1f38991c6795cddbb1a4cf30f2286', - id: null, - metadata: {}, - name: 'ReactionButtonMutation', - operationKind: 'mutation', - text: 'mutation ReactionButtonMutation(\n $input: ReactionToggleInput!\n) {\n reactionToggle(input: $input) {\n reaction {\n node {\n id\n reactionType\n }\n }\n reactionDeletedId\n target {\n __typename\n id\n ...ReactionButton_target\n }\n }\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n __isReactionsInterface: __typename\n id\n reactionsCount {\n total\n }\n myReaction {\n id\n reactionType\n }\n}\n', - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": "ReactionTogglePayload", + "kind": "LinkedField", + "name": "reactionToggle", + "plural": false, + "selections": [ + (v4/*: any*/), + (v5/*: any*/), + { + "alias": null, + "args": null, + "filters": null, + "handle": "deleteRecord", + "key": "", + "kind": "ScalarHandle", + "name": "reactionDeletedId" + }, + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "target", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + }, + (v2/*: any*/), + { + "kind": "TypeDiscriminator", + "abstractKey": "__isReactionsInterface" + }, + { + "alias": null, + "args": null, + "concreteType": "ReactionsCount", + "kind": "LinkedField", + "name": "reactionsCount", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "total", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Reaction", + "kind": "LinkedField", + "name": "myReaction", + "plural": false, + "selections": (v3/*: any*/), + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ] + }, + "params": { + "cacheID": "10b1f38991c6795cddbb1a4cf30f2286", + "id": null, + "metadata": {}, + "name": "ReactionButtonMutation", + "operationKind": "mutation", + "text": "mutation ReactionButtonMutation(\n $input: ReactionToggleInput!\n) {\n reactionToggle(input: $input) {\n reaction {\n node {\n id\n reactionType\n }\n }\n reactionDeletedId\n target {\n __typename\n id\n ...ReactionButton_target\n }\n }\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n __isReactionsInterface: __typename\n id\n reactionsCount {\n total\n }\n myReaction {\n id\n reactionType\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = '3c678770713154c56e2c50d7d9bc17f4' +(node as any).hash = "3c678770713154c56e2c50d7d9bc17f4"; -export default node +export default node; diff --git a/packages/components/__generated__/ReactionButtonWithQuery.graphql.ts b/packages/components/__generated__/ReactionButtonWithQuery.graphql.ts index 52e4c6f7..d4f1a9dd 100644 --- a/packages/components/__generated__/ReactionButtonWithQuery.graphql.ts +++ b/packages/components/__generated__/ReactionButtonWithQuery.graphql.ts @@ -5,412 +5,411 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' -export type ReactionButtonWithQuery$variables = Record +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; +export type ReactionButtonWithQuery$variables = Record; export type ReactionButtonWithQuery$data = { - readonly target: - | { - readonly ' $fragmentSpreads': FragmentRefs<'CommentItem_comment'> - } - | null - | undefined -} + readonly target: { + readonly " $fragmentSpreads": FragmentRefs<"CommentItem_comment">; + } | null | undefined; +}; export type ReactionButtonWithQuery = { - response: ReactionButtonWithQuery$data - variables: ReactionButtonWithQuery$variables -} + response: ReactionButtonWithQuery$data; + variables: ReactionButtonWithQuery$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "kind": "Literal", + "name": "id", + "value": "test-id" + } +], +v1 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "pk", + "storageKey": null +}, +v3 = [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "total", + "storageKey": null + } +], +v4 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "String" +}, +v5 = { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "String" +}, +v6 = { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Boolean" +}, +v7 = { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Int" +}, +v8 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "ID" +}, +v9 = { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "Int" +}; +return { + "fragment": { + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "ReactionButtonWithQuery", + "selections": [ { - kind: 'Literal', - name: 'id', - value: 'test-id', - }, + "alias": "target", + "args": (v0/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "args": null, + "kind": "FragmentSpread", + "name": "CommentItem_comment" + } + ], + "storageKey": "node(id:\"test-id\")" + } ], - v1 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'pk', - storageKey: null, - }, - v3 = [ + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": [], + "kind": "Operation", + "name": "ReactionButtonWithQuery", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'total', - storageKey: null, - }, - ], - v4 = { - enumValues: null, - nullable: false, - plural: false, - type: 'String', - }, - v5 = { - enumValues: null, - nullable: true, - plural: false, - type: 'String', - }, - v6 = { - enumValues: null, - nullable: true, - plural: false, - type: 'Boolean', - }, - v7 = { - enumValues: null, - nullable: true, - plural: false, - type: 'Int', - }, - v8 = { - enumValues: null, - nullable: false, - plural: false, - type: 'ID', - }, - v9 = { - enumValues: null, - nullable: false, - plural: false, - type: 'Int', - } - return { - fragment: { - argumentDefinitions: [], - kind: 'Fragment', - metadata: null, - name: 'ReactionButtonWithQuery', - selections: [ - { - alias: 'target', - args: v0 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - args: null, - kind: 'FragmentSpread', - name: 'CommentItem_comment', - }, - ], - storageKey: 'node(id:"test-id")', + "alias": "target", + "args": (v0/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + }, + (v1/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "body", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isPinned", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "user", + "plural": false, + "selections": [ + (v1/*: any*/), + (v2/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "fullName", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 50 + }, + { + "kind": "Literal", + "name": "width", + "value": 50 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "avatar", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "avatar(height:50,width:50)" + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "created", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "CommentsCount", + "kind": "LinkedField", + "name": "commentsCount", + "plural": false, + "selections": (v3/*: any*/), + "storageKey": null + }, + { + "alias": "canChange", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "change" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"change\")" + }, + { + "alias": "canDelete", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "delete" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"delete\")" + }, + { + "alias": "canReport", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "report" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"report\")" + }, + { + "alias": "canPin", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "pin" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"pin\")" + }, + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ReactionsCount", + "kind": "LinkedField", + "name": "reactionsCount", + "plural": false, + "selections": (v3/*: any*/), + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Reaction", + "kind": "LinkedField", + "name": "myReaction", + "plural": false, + "selections": [ + (v1/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "reactionType", + "storageKey": null + } + ], + "storageKey": null + } + ], + "type": "ReactionsInterface", + "abstractKey": "__isReactionsInterface" + }, + { + "kind": "TypeDiscriminator", + "abstractKey": "__isCommentsInterface" + } + ], + "type": "Comment", + "abstractKey": null + } + ], + "storageKey": "node(id:\"test-id\")" + } + ] + }, + "params": { + "cacheID": "c8523e79b838681dfb707c627f361688", + "id": null, + "metadata": { + "relayTestingSelectionTypeInfo": { + "target": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Node" }, - ], - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: [], - kind: 'Operation', - name: 'ReactionButtonWithQuery', - selections: [ - { - alias: 'target', - args: v0 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v1 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'body', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isPinned', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'user', - plural: false, - selections: [ - v1 /*: any*/, - v2 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'fullName', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 50, - }, - { - kind: 'Literal', - name: 'width', - value: 50, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'avatar', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'avatar(height:50,width:50)', - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'created', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'CommentsCount', - kind: 'LinkedField', - name: 'commentsCount', - plural: false, - selections: v3 /*: any*/, - storageKey: null, - }, - { - alias: 'canChange', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'change', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"change")', - }, - { - alias: 'canDelete', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'delete', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"delete")', - }, - { - alias: 'canReport', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'report', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"report")', - }, - { - alias: 'canPin', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'pin', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"pin")', - }, - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: null, - concreteType: 'ReactionsCount', - kind: 'LinkedField', - name: 'reactionsCount', - plural: false, - selections: v3 /*: any*/, - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Reaction', - kind: 'LinkedField', - name: 'myReaction', - plural: false, - selections: [ - v1 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'reactionType', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'ReactionsInterface', - abstractKey: '__isReactionsInterface', - }, - { - kind: 'TypeDiscriminator', - abstractKey: '__isCommentsInterface', - }, - ], - type: 'Comment', - abstractKey: null, - }, + "target.__isCommentsInterface": (v4/*: any*/), + "target.__isReactionsInterface": (v4/*: any*/), + "target.__typename": (v4/*: any*/), + "target.body": (v5/*: any*/), + "target.canChange": (v6/*: any*/), + "target.canDelete": (v6/*: any*/), + "target.canPin": (v6/*: any*/), + "target.canReport": (v6/*: any*/), + "target.commentsCount": { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "CommentsCount" + }, + "target.commentsCount.total": (v7/*: any*/), + "target.created": { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "DateTime" + }, + "target.id": (v8/*: any*/), + "target.isPinned": { + "enumValues": null, + "nullable": false, + "plural": false, + "type": "Boolean" + }, + "target.myReaction": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "Reaction" + }, + "target.myReaction.id": (v8/*: any*/), + "target.myReaction.reactionType": { + "enumValues": [ + "LIKE", + "DISLIKE" ], - storageKey: 'node(id:"test-id")', + "nullable": true, + "plural": false, + "type": "ReactionTypes" }, - ], - }, - params: { - cacheID: 'c8523e79b838681dfb707c627f361688', - id: null, - metadata: { - relayTestingSelectionTypeInfo: { - target: { - enumValues: null, - nullable: true, - plural: false, - type: 'Node', - }, - 'target.__isCommentsInterface': v4 /*: any*/, - 'target.__isReactionsInterface': v4 /*: any*/, - 'target.__typename': v4 /*: any*/, - 'target.body': v5 /*: any*/, - 'target.canChange': v6 /*: any*/, - 'target.canDelete': v6 /*: any*/, - 'target.canPin': v6 /*: any*/, - 'target.canReport': v6 /*: any*/, - 'target.commentsCount': { - enumValues: null, - nullable: false, - plural: false, - type: 'CommentsCount', - }, - 'target.commentsCount.total': v7 /*: any*/, - 'target.created': { - enumValues: null, - nullable: false, - plural: false, - type: 'DateTime', - }, - 'target.id': v8 /*: any*/, - 'target.isPinned': { - enumValues: null, - nullable: false, - plural: false, - type: 'Boolean', - }, - 'target.myReaction': { - enumValues: null, - nullable: true, - plural: false, - type: 'Reaction', - }, - 'target.myReaction.id': v8 /*: any*/, - 'target.myReaction.reactionType': { - enumValues: ['LIKE', 'DISLIKE'], - nullable: true, - plural: false, - type: 'ReactionTypes', - }, - 'target.pk': v9 /*: any*/, - 'target.reactionsCount': { - enumValues: null, - nullable: true, - plural: false, - type: 'ReactionsCount', - }, - 'target.reactionsCount.total': v7 /*: any*/, - 'target.user': { - enumValues: null, - nullable: true, - plural: false, - type: 'User', - }, - 'target.user.avatar': { - enumValues: null, - nullable: true, - plural: false, - type: 'File', - }, - 'target.user.avatar.url': v4 /*: any*/, - 'target.user.fullName': v5 /*: any*/, - 'target.user.id': v8 /*: any*/, - 'target.user.pk': v9 /*: any*/, + "target.pk": (v9/*: any*/), + "target.reactionsCount": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "ReactionsCount" + }, + "target.reactionsCount.total": (v7/*: any*/), + "target.user": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "User" }, - }, - name: 'ReactionButtonWithQuery', - operationKind: 'query', - text: 'query ReactionButtonWithQuery {\n target: node(id: "test-id") {\n __typename\n ...CommentItem_comment\n id\n }\n}\n\nfragment CommentItem_comment on Comment {\n id\n pk\n body\n isPinned\n user {\n id\n pk\n fullName\n avatar(width: 50, height: 50) {\n url\n }\n }\n created\n commentsCount {\n total\n }\n canChange: hasPerm(perm: "change")\n canDelete: hasPerm(perm: "delete")\n canReport: hasPerm(perm: "report")\n canPin: hasPerm(perm: "pin")\n ...ReactionButton_target\n ...CommentItem_target\n}\n\nfragment CommentItem_target on CommentsInterface {\n __isCommentsInterface: __typename\n id\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n __isReactionsInterface: __typename\n id\n reactionsCount {\n total\n }\n myReaction {\n id\n reactionType\n }\n}\n', + "target.user.avatar": { + "enumValues": null, + "nullable": true, + "plural": false, + "type": "File" + }, + "target.user.avatar.url": (v4/*: any*/), + "target.user.fullName": (v5/*: any*/), + "target.user.id": (v8/*: any*/), + "target.user.pk": (v9/*: any*/) + } }, + "name": "ReactionButtonWithQuery", + "operationKind": "query", + "text": "query ReactionButtonWithQuery {\n target: node(id: \"test-id\") {\n __typename\n ...CommentItem_comment\n id\n }\n}\n\nfragment CommentItem_comment on Comment {\n id\n pk\n body\n isPinned\n user {\n id\n pk\n fullName\n avatar(width: 50, height: 50) {\n url\n }\n }\n created\n commentsCount {\n total\n }\n canChange: hasPerm(perm: \"change\")\n canDelete: hasPerm(perm: \"delete\")\n canReport: hasPerm(perm: \"report\")\n canPin: hasPerm(perm: \"pin\")\n ...ReactionButton_target\n ...CommentItem_target\n}\n\nfragment CommentItem_target on CommentsInterface {\n __isCommentsInterface: __typename\n id\n}\n\nfragment ReactionButton_target on ReactionsInterface {\n __isReactionsInterface: __typename\n id\n reactionsCount {\n total\n }\n myReaction {\n id\n reactionType\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = '03cac874433a23a0b1fe9361e70a0999' +(node as any).hash = "03cac874433a23a0b1fe9361e70a0999"; -export default node +export default node; diff --git a/packages/components/__generated__/ReactionButton_target.graphql.ts b/packages/components/__generated__/ReactionButton_target.graphql.ts index 84b0a2fa..00937c07 100644 --- a/packages/components/__generated__/ReactionButton_target.graphql.ts +++ b/packages/components/__generated__/ReactionButton_target.graphql.ts @@ -5,94 +5,86 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { Fragment, ReaderFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' - -export type ReactionTypes = 'DISLIKE' | 'LIKE' | '%future added value' +import { Fragment, ReaderFragment } from 'relay-runtime'; +export type ReactionTypes = "DISLIKE" | "LIKE" | "%future added value"; +import { FragmentRefs } from "relay-runtime"; export type ReactionButton_target$data = { - readonly id: string - readonly myReaction: - | { - readonly id: string - readonly reactionType: ReactionTypes | null | undefined - } - | null - | undefined - readonly reactionsCount: - | { - readonly total: number | null | undefined - } - | null - | undefined - readonly ' $fragmentType': 'ReactionButton_target' -} + readonly id: string; + readonly myReaction: { + readonly id: string; + readonly reactionType: ReactionTypes | null | undefined; + } | null | undefined; + readonly reactionsCount: { + readonly total: number | null | undefined; + } | null | undefined; + readonly " $fragmentType": "ReactionButton_target"; +}; export type ReactionButton_target$key = { - readonly ' $data'?: ReactionButton_target$data - readonly ' $fragmentSpreads': FragmentRefs<'ReactionButton_target'> -} + readonly " $data"?: ReactionButton_target$data; + readonly " $fragmentSpreads": FragmentRefs<"ReactionButton_target">; +}; -const node: ReaderFragment = (function () { - var v0 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - } - return { - argumentDefinitions: [], - kind: 'Fragment', - metadata: null, - name: 'ReactionButton_target', - selections: [ - v0 /*: any*/, - { - alias: null, - args: null, - concreteType: 'ReactionsCount', - kind: 'LinkedField', - name: 'reactionsCount', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'total', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Reaction', - kind: 'LinkedField', - name: 'myReaction', - plural: false, - selections: [ - v0 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'reactionType', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'ReactionsInterface', - abstractKey: '__isReactionsInterface', - } -})() +const node: ReaderFragment = (function(){ +var v0 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}; +return { + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "ReactionButton_target", + "selections": [ + (v0/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "ReactionsCount", + "kind": "LinkedField", + "name": "reactionsCount", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "total", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Reaction", + "kind": "LinkedField", + "name": "myReaction", + "plural": false, + "selections": [ + (v0/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "reactionType", + "storageKey": null + } + ], + "storageKey": null + } + ], + "type": "ReactionsInterface", + "abstractKey": "__isReactionsInterface" +}; +})(); -;(node as any).hash = 'c3861c327bdc15c2a59dfbfe2ce2ed12' +(node as any).hash = "c3861c327bdc15c2a59dfbfe2ce2ed12"; -export default node +export default node; diff --git a/packages/components/__generated__/ReadMessagesMutation.graphql.ts b/packages/components/__generated__/ReadMessagesMutation.graphql.ts index 0f90873b..9478a951 100644 --- a/packages/components/__generated__/ReadMessagesMutation.graphql.ts +++ b/packages/components/__generated__/ReadMessagesMutation.graphql.ts @@ -5,207 +5,193 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Mutation } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Mutation } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type ChatRoomReadMessagesInput = { - clientMutationId?: string | null | undefined - messageIds?: ReadonlyArray | null | undefined - profileId: string - roomId: string -} + clientMutationId?: string | null | undefined; + messageIds?: ReadonlyArray | null | undefined; + profileId: string; + roomId: string; +}; export type ReadMessagesMutation$variables = { - input: ChatRoomReadMessagesInput -} + input: ChatRoomReadMessagesInput; +}; export type ReadMessagesMutation$data = { - readonly chatRoomReadMessages: - | { - readonly errors: - | ReadonlyArray< - | { - readonly field: string - readonly messages: ReadonlyArray - } - | null - | undefined - > - | null - | undefined - readonly room: - | { - readonly id: string - readonly ' $fragmentSpreads': FragmentRefs<'UnreadMessagesCountFragment'> - } - | null - | undefined - } - | null - | undefined -} + readonly chatRoomReadMessages: { + readonly errors: ReadonlyArray<{ + readonly field: string; + readonly messages: ReadonlyArray; + } | null | undefined> | null | undefined; + readonly room: { + readonly id: string; + readonly " $fragmentSpreads": FragmentRefs<"UnreadMessagesCountFragment">; + } | null | undefined; + } | null | undefined; +}; export type ReadMessagesMutation = { - response: ReadMessagesMutation$data - variables: ReadMessagesMutation$variables -} + response: ReadMessagesMutation$data; + variables: ReadMessagesMutation$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "input" + } +], +v1 = [ + { + "kind": "Variable", + "name": "input", + "variableName": "input" + } +], +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v3 = { + "alias": null, + "args": null, + "concreteType": "ErrorType", + "kind": "LinkedField", + "name": "errors", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "field", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "messages", + "storageKey": null + } + ], + "storageKey": null +}; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "ReadMessagesMutation", + "selections": [ { - defaultValue: null, - kind: 'LocalArgument', - name: 'input', - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": "ChatRoomReadMessagesPayload", + "kind": "LinkedField", + "name": "chatRoomReadMessages", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoom", + "kind": "LinkedField", + "name": "room", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "args": null, + "kind": "FragmentSpread", + "name": "UnreadMessagesCountFragment" + } + ], + "storageKey": null + }, + (v3/*: any*/) + ], + "storageKey": null + } ], - v1 = [ + "type": "Mutation", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "ReadMessagesMutation", + "selections": [ { - kind: 'Variable', - name: 'input', - variableName: 'input', - }, - ], - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v3 = { - alias: null, - args: null, - concreteType: 'ErrorType', - kind: 'LinkedField', - name: 'errors', - plural: true, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'field', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'messages', - storageKey: null, - }, - ], - storageKey: null, - } - return { - fragment: { - argumentDefinitions: v0 /*: any*/, - kind: 'Fragment', - metadata: null, - name: 'ReadMessagesMutation', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'ChatRoomReadMessagesPayload', - kind: 'LinkedField', - name: 'chatRoomReadMessages', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoom', - kind: 'LinkedField', - name: 'room', - plural: false, - selections: [ - v2 /*: any*/, - { - args: null, - kind: 'FragmentSpread', - name: 'UnreadMessagesCountFragment', - }, - ], - storageKey: null, - }, - v3 /*: any*/, - ], - storageKey: null, - }, - ], - type: 'Mutation', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: v0 /*: any*/, - kind: 'Operation', - name: 'ReadMessagesMutation', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'ChatRoomReadMessagesPayload', - kind: 'LinkedField', - name: 'chatRoomReadMessages', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoom', - kind: 'LinkedField', - name: 'room', - plural: false, - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - concreteType: 'UnreadMessageCount', - kind: 'LinkedField', - name: 'unreadMessages', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'count', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'markedUnread', - storageKey: null, - }, - v2 /*: any*/, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - v3 /*: any*/, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: '4bebc93464740f3be7c5f5fdd1a3d6df', - id: null, - metadata: {}, - name: 'ReadMessagesMutation', - operationKind: 'mutation', - text: 'mutation ReadMessagesMutation(\n $input: ChatRoomReadMessagesInput!\n) {\n chatRoomReadMessages(input: $input) {\n room {\n id\n ...UnreadMessagesCountFragment\n }\n errors {\n field\n messages\n }\n }\n}\n\nfragment UnreadMessagesCountFragment on ChatRoom {\n id\n unreadMessages {\n count\n markedUnread\n id\n }\n}\n', - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": "ChatRoomReadMessagesPayload", + "kind": "LinkedField", + "name": "chatRoomReadMessages", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoom", + "kind": "LinkedField", + "name": "room", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "UnreadMessageCount", + "kind": "LinkedField", + "name": "unreadMessages", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "count", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "markedUnread", + "storageKey": null + }, + (v2/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + }, + (v3/*: any*/) + ], + "storageKey": null + } + ] + }, + "params": { + "cacheID": "4bebc93464740f3be7c5f5fdd1a3d6df", + "id": null, + "metadata": {}, + "name": "ReadMessagesMutation", + "operationKind": "mutation", + "text": "mutation ReadMessagesMutation(\n $input: ChatRoomReadMessagesInput!\n) {\n chatRoomReadMessages(input: $input) {\n room {\n id\n ...UnreadMessagesCountFragment\n }\n errors {\n field\n messages\n }\n }\n}\n\nfragment UnreadMessagesCountFragment on ChatRoom {\n id\n unreadMessages {\n count\n markedUnread\n id\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = 'eeed77ccb23fc338a5f401cb106e66fb' +(node as any).hash = "eeed77ccb23fc338a5f401cb106e66fb"; -export default node +export default node; diff --git a/packages/components/__generated__/RoomFragment.graphql.ts b/packages/components/__generated__/RoomFragment.graphql.ts index 0f2a563c..9309590b 100644 --- a/packages/components/__generated__/RoomFragment.graphql.ts +++ b/packages/components/__generated__/RoomFragment.graphql.ts @@ -5,78 +5,75 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { Fragment, ReaderFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { Fragment, ReaderFragment } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type RoomFragment$data = { - readonly id: string - readonly isGroup: boolean - readonly participantsCount: number - readonly ' $fragmentSpreads': FragmentRefs< - 'LastMessageFragment' | 'MessagesListFragment' | 'TitleFragment' | 'UnreadMessagesCountFragment' - > - readonly ' $fragmentType': 'RoomFragment' -} + readonly id: string; + readonly isGroup: boolean; + readonly participantsCount: number; + readonly " $fragmentSpreads": FragmentRefs<"LastMessageFragment" | "MessagesListFragment" | "TitleFragment" | "UnreadMessagesCountFragment">; + readonly " $fragmentType": "RoomFragment"; +}; export type RoomFragment$key = { - readonly ' $data'?: RoomFragment$data - readonly ' $fragmentSpreads': FragmentRefs<'RoomFragment'> -} + readonly " $data"?: RoomFragment$data; + readonly " $fragmentSpreads": FragmentRefs<"RoomFragment">; +}; const node: ReaderFragment = { - argumentDefinitions: [], - kind: 'Fragment', - metadata: null, - name: 'RoomFragment', - selections: [ + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "RoomFragment", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null }, { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isGroup', - storageKey: null, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isGroup", + "storageKey": null }, { - alias: null, - args: null, - kind: 'ScalarField', - name: 'participantsCount', - storageKey: null, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "participantsCount", + "storageKey": null }, { - args: null, - kind: 'FragmentSpread', - name: 'LastMessageFragment', + "args": null, + "kind": "FragmentSpread", + "name": "LastMessageFragment" }, { - args: null, - kind: 'FragmentSpread', - name: 'MessagesListFragment', + "args": null, + "kind": "FragmentSpread", + "name": "MessagesListFragment" }, { - args: null, - kind: 'FragmentSpread', - name: 'TitleFragment', + "args": null, + "kind": "FragmentSpread", + "name": "TitleFragment" }, { - args: null, - kind: 'FragmentSpread', - name: 'UnreadMessagesCountFragment', - }, + "args": null, + "kind": "FragmentSpread", + "name": "UnreadMessagesCountFragment" + } ], - type: 'ChatRoom', - abstractKey: null, -} + "type": "ChatRoom", + "abstractKey": null +}; -;(node as any).hash = 'eaa59457c134fb1f7bad4797532926da' +(node as any).hash = "eaa59457c134fb1f7bad4797532926da"; -export default node +export default node; diff --git a/packages/components/__generated__/RoomTitleFragment.graphql.ts b/packages/components/__generated__/RoomTitleFragment.graphql.ts index 8ab59b6b..e10d0ec0 100644 --- a/packages/components/__generated__/RoomTitleFragment.graphql.ts +++ b/packages/components/__generated__/RoomTitleFragment.graphql.ts @@ -5,158 +5,141 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { Fragment, ReaderFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { Fragment, ReaderFragment } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type RoomTitleFragment$data = { - readonly id: string - readonly participants: - | { - readonly edges: ReadonlyArray< - | { - readonly node: - | { - readonly profile: - | { - readonly id: string - readonly image: - | { - readonly url: string - } - | null - | undefined - readonly name: string | null | undefined - } - | null - | undefined - } - | null - | undefined - } - | null - | undefined - > - } - | null - | undefined - readonly ' $fragmentType': 'RoomTitleFragment' -} + readonly id: string; + readonly participants: { + readonly edges: ReadonlyArray<{ + readonly node: { + readonly profile: { + readonly id: string; + readonly image: { + readonly url: string; + } | null | undefined; + readonly name: string | null | undefined; + } | null | undefined; + } | null | undefined; + } | null | undefined>; + } | null | undefined; + readonly " $fragmentType": "RoomTitleFragment"; +}; export type RoomTitleFragment$key = { - readonly ' $data'?: RoomTitleFragment$data - readonly ' $fragmentSpreads': FragmentRefs<'RoomTitleFragment'> -} + readonly " $data"?: RoomTitleFragment$data; + readonly " $fragmentSpreads": FragmentRefs<"RoomTitleFragment">; +}; -const node: ReaderFragment = (function () { - var v0 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - } - return { - argumentDefinitions: [], - kind: 'Fragment', - metadata: null, - name: 'RoomTitleFragment', - selections: [ - v0 /*: any*/, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'first', - value: 2, - }, - ], - concreteType: 'ChatRoomParticipantConnection', - kind: 'LinkedField', - name: 'participants', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomParticipantEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomParticipant', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - v0 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'name', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 100, - }, - { - kind: 'Literal', - name: 'width', - value: 100, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'image(height:100,width:100)', - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: 'participants(first:2)', - }, - ], - type: 'ChatRoom', - abstractKey: null, - } -})() +const node: ReaderFragment = (function(){ +var v0 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}; +return { + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "RoomTitleFragment", + "selections": [ + (v0/*: any*/), + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "first", + "value": 2 + } + ], + "concreteType": "ChatRoomParticipantConnection", + "kind": "LinkedField", + "name": "participants", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomParticipantEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomParticipant", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + (v0/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "name", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100 + }, + { + "kind": "Literal", + "name": "width", + "value": 100 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "image(height:100,width:100)" + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": "participants(first:2)" + } + ], + "type": "ChatRoom", + "abstractKey": null +}; +})(); -;(node as any).hash = '89160f172288e6c8c11de9207b13170b' +(node as any).hash = "89160f172288e6c8c11de9207b13170b"; -export default node +export default node; diff --git a/packages/components/__generated__/RoomsListFragment.graphql.ts b/packages/components/__generated__/RoomsListFragment.graphql.ts index 81f0fb50..241b35ca 100644 --- a/packages/components/__generated__/RoomsListFragment.graphql.ts +++ b/packages/components/__generated__/RoomsListFragment.graphql.ts @@ -5,222 +5,213 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ReaderFragment, RefetchableFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ReaderFragment, RefetchableFragment } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type RoomsListFragment$data = { - readonly chatRooms: - | { - readonly edges: ReadonlyArray< - | { - readonly node: - | { - readonly id: string - readonly ' $fragmentSpreads': FragmentRefs< - 'LastMessageFragment' | 'TitleFragment' | 'UnreadMessagesCountFragment' - > - } - | null - | undefined - } - | null - | undefined - > - readonly pageInfo: { - readonly endCursor: string | null | undefined - readonly hasNextPage: boolean - } - } - | null - | undefined - readonly id: string - readonly ' $fragmentType': 'RoomsListFragment' -} + readonly chatRooms: { + readonly edges: ReadonlyArray<{ + readonly node: { + readonly id: string; + readonly " $fragmentSpreads": FragmentRefs<"LastMessageFragment" | "TitleFragment" | "UnreadMessagesCountFragment">; + } | null | undefined; + } | null | undefined>; + readonly pageInfo: { + readonly endCursor: string | null | undefined; + readonly hasNextPage: boolean; + }; + } | null | undefined; + readonly id: string; + readonly " $fragmentType": "RoomsListFragment"; +}; export type RoomsListFragment$key = { - readonly ' $data'?: RoomsListFragment$data - readonly ' $fragmentSpreads': FragmentRefs<'RoomsListFragment'> -} + readonly " $data"?: RoomsListFragment$data; + readonly " $fragmentSpreads": FragmentRefs<"RoomsListFragment">; +}; -const node: ReaderFragment = (function () { - var v0 = ['chatRooms'], - v1 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, +const node: ReaderFragment = (function(){ +var v0 = [ + "chatRooms" +], +v1 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}; +return { + "argumentDefinitions": [ + { + "defaultValue": false, + "kind": "LocalArgument", + "name": "archived" + }, + { + "defaultValue": 5, + "kind": "LocalArgument", + "name": "count" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "cursor" + }, + { + "defaultValue": "", + "kind": "LocalArgument", + "name": "q" + }, + { + "defaultValue": false, + "kind": "LocalArgument", + "name": "unreadMessages" } - return { - argumentDefinitions: [ - { - defaultValue: false, - kind: 'LocalArgument', - name: 'archived', - }, + ], + "kind": "Fragment", + "metadata": { + "connection": [ { - defaultValue: 5, - kind: 'LocalArgument', - name: 'count', - }, - { - defaultValue: null, - kind: 'LocalArgument', - name: 'cursor', - }, - { - defaultValue: '', - kind: 'LocalArgument', - name: 'q', - }, - { - defaultValue: false, - kind: 'LocalArgument', - name: 'unreadMessages', - }, + "count": "count", + "cursor": "cursor", + "direction": "forward", + "path": (v0/*: any*/) + } ], - kind: 'Fragment', - metadata: { - connection: [ - { - count: 'count', - cursor: 'cursor', - direction: 'forward', - path: v0 /*: any*/, + "refetch": { + "connection": { + "forward": { + "count": "count", + "cursor": "cursor" }, + "backward": null, + "path": (v0/*: any*/) + }, + "fragmentPathInResult": [ + "node" ], - refetch: { - connection: { - forward: { - count: 'count', - cursor: 'cursor', - }, - backward: null, - path: v0 /*: any*/, + "operation": require('./chatRoomsPaginationQuery.graphql'), + "identifierInfo": { + "identifierField": "id", + "identifierQueryVariableName": "id" + } + } + }, + "name": "RoomsListFragment", + "selections": [ + { + "alias": "chatRooms", + "args": [ + { + "kind": "Variable", + "name": "archived", + "variableName": "archived" }, - fragmentPathInResult: ['node'], - operation: require('./chatRoomsPaginationQuery.graphql'), - identifierInfo: { - identifierField: 'id', - identifierQueryVariableName: 'id', + { + "kind": "Variable", + "name": "q", + "variableName": "q" }, - }, + { + "kind": "Variable", + "name": "unreadMessages", + "variableName": "unreadMessages" + } + ], + "concreteType": "ChatRoomConnection", + "kind": "LinkedField", + "name": "__roomsList_chatRooms_connection", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoom", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v1/*: any*/), + { + "args": null, + "kind": "FragmentSpread", + "name": "LastMessageFragment" + }, + { + "args": null, + "kind": "FragmentSpread", + "name": "TitleFragment" + }, + { + "args": null, + "kind": "FragmentSpread", + "name": "UnreadMessagesCountFragment" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null }, - name: 'RoomsListFragment', - selections: [ - { - alias: 'chatRooms', - args: [ - { - kind: 'Variable', - name: 'archived', - variableName: 'archived', - }, - { - kind: 'Variable', - name: 'q', - variableName: 'q', - }, - { - kind: 'Variable', - name: 'unreadMessages', - variableName: 'unreadMessages', - }, - ], - concreteType: 'ChatRoomConnection', - kind: 'LinkedField', - name: '__roomsList_chatRooms_connection', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoom', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v1 /*: any*/, - { - args: null, - kind: 'FragmentSpread', - name: 'LastMessageFragment', - }, - { - args: null, - kind: 'FragmentSpread', - name: 'TitleFragment', - }, - { - args: null, - kind: 'FragmentSpread', - name: 'UnreadMessagesCountFragment', - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - v1 /*: any*/, - ], - type: 'ChatRoomsInterface', - abstractKey: '__isChatRoomsInterface', - } -})() + (v1/*: any*/) + ], + "type": "ChatRoomsInterface", + "abstractKey": "__isChatRoomsInterface" +}; +})(); -;(node as any).hash = '3a66898cb96bbf4ce999aa5ad9822ca0' +(node as any).hash = "3a66898cb96bbf4ce999aa5ad9822ca0"; -export default node +export default node; diff --git a/packages/components/__generated__/SendMessageMutation.graphql.ts b/packages/components/__generated__/SendMessageMutation.graphql.ts index 4ac8e316..090bde08 100644 --- a/packages/components/__generated__/SendMessageMutation.graphql.ts +++ b/packages/components/__generated__/SendMessageMutation.graphql.ts @@ -5,292 +5,283 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Mutation } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Mutation } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type ChatRoomSendMessageInput = { - clientMutationId?: string | null | undefined - content: string - inReplyToId?: string | null | undefined - profileId: string - roomId: string -} + clientMutationId?: string | null | undefined; + content: string; + inReplyToId?: string | null | undefined; + profileId: string; + roomId: string; +}; export type SendMessageMutation$variables = { - connections: ReadonlyArray - input: ChatRoomSendMessageInput -} + connections: ReadonlyArray; + input: ChatRoomSendMessageInput; +}; export type SendMessageMutation$data = { - readonly chatRoomSendMessage: - | { - readonly errors: - | ReadonlyArray< - | { - readonly field: string - readonly messages: ReadonlyArray - } - | null - | undefined - > - | null - | undefined - readonly message: - | { - readonly node: - | { - readonly id: string - readonly ' $fragmentSpreads': FragmentRefs<'MessageItemFragment'> - } - | null - | undefined - } - | null - | undefined - } - | null - | undefined -} + readonly chatRoomSendMessage: { + readonly errors: ReadonlyArray<{ + readonly field: string; + readonly messages: ReadonlyArray; + } | null | undefined> | null | undefined; + readonly message: { + readonly node: { + readonly id: string; + readonly " $fragmentSpreads": FragmentRefs<"MessageItemFragment">; + } | null | undefined; + } | null | undefined; + } | null | undefined; +}; export type SendMessageMutation = { - response: SendMessageMutation$data - variables: SendMessageMutation$variables -} + response: SendMessageMutation$data; + variables: SendMessageMutation$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'connections', - }, - v1 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'input', +const node: ConcreteRequest = (function(){ +var v0 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "connections" +}, +v1 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "input" +}, +v2 = [ + { + "kind": "Variable", + "name": "input", + "variableName": "input" + } +], +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v4 = { + "alias": null, + "args": null, + "concreteType": "ErrorType", + "kind": "LinkedField", + "name": "errors", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "field", + "storageKey": null }, - v2 = [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "messages", + "storageKey": null + } + ], + "storageKey": null +}, +v5 = [ + (v3/*: any*/) +]; +return { + "fragment": { + "argumentDefinitions": [ + (v0/*: any*/), + (v1/*: any*/) + ], + "kind": "Fragment", + "metadata": null, + "name": "SendMessageMutation", + "selections": [ { - kind: 'Variable', - name: 'input', - variableName: 'input', - }, + "alias": null, + "args": (v2/*: any*/), + "concreteType": "ChatRoomSendMessagePayload", + "kind": "LinkedField", + "name": "chatRoomSendMessage", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "MessageEdge", + "kind": "LinkedField", + "name": "message", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Message", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "args": null, + "kind": "FragmentSpread", + "name": "MessageItemFragment" + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + (v4/*: any*/) + ], + "storageKey": null + } ], - v3 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v4 = { - alias: null, - args: null, - concreteType: 'ErrorType', - kind: 'LinkedField', - name: 'errors', - plural: true, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'field', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'messages', - storageKey: null, - }, - ], - storageKey: null, - }, - v5 = [v3 /*: any*/] - return { - fragment: { - argumentDefinitions: [v0 /*: any*/, v1 /*: any*/], - kind: 'Fragment', - metadata: null, - name: 'SendMessageMutation', - selections: [ - { - alias: null, - args: v2 /*: any*/, - concreteType: 'ChatRoomSendMessagePayload', - kind: 'LinkedField', - name: 'chatRoomSendMessage', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'MessageEdge', - kind: 'LinkedField', - name: 'message', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Message', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v3 /*: any*/, - { - args: null, - kind: 'FragmentSpread', - name: 'MessageItemFragment', - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - v4 /*: any*/, - ], - storageKey: null, - }, - ], - type: 'Mutation', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: [v1 /*: any*/, v0 /*: any*/], - kind: 'Operation', - name: 'SendMessageMutation', - selections: [ - { - alias: null, - args: v2 /*: any*/, - concreteType: 'ChatRoomSendMessagePayload', - kind: 'LinkedField', - name: 'chatRoomSendMessage', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'MessageEdge', - kind: 'LinkedField', - name: 'message', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Message', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v3 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'content', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'created', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'extraData', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Message', - kind: 'LinkedField', - name: 'inReplyTo', - plural: false, - selections: v5 /*: any*/, - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isRead', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'pk', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: v5 /*: any*/, - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'verb', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - filters: null, - handle: 'prependEdge', - key: '', - kind: 'LinkedHandle', - name: 'message', - handleArgs: [ - { - kind: 'Variable', - name: 'connections', - variableName: 'connections', - }, - ], - }, - v4 /*: any*/, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: '1d655e68797f0439e7ca317168d662ce', - id: null, - metadata: {}, - name: 'SendMessageMutation', - operationKind: 'mutation', - text: 'mutation SendMessageMutation(\n $input: ChatRoomSendMessageInput!\n) {\n chatRoomSendMessage(input: $input) {\n message {\n node {\n id\n ...MessageItemFragment\n }\n }\n errors {\n field\n messages\n }\n }\n}\n\nfragment MessageItemFragment on Message {\n id\n content\n created\n extraData\n inReplyTo {\n id\n }\n isRead\n pk\n profile {\n id\n }\n verb\n}\n', - }, + "type": "Mutation", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": [ + (v1/*: any*/), + (v0/*: any*/) + ], + "kind": "Operation", + "name": "SendMessageMutation", + "selections": [ + { + "alias": null, + "args": (v2/*: any*/), + "concreteType": "ChatRoomSendMessagePayload", + "kind": "LinkedField", + "name": "chatRoomSendMessage", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "MessageEdge", + "kind": "LinkedField", + "name": "message", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Message", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "content", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "created", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "extraData", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Message", + "kind": "LinkedField", + "name": "inReplyTo", + "plural": false, + "selections": (v5/*: any*/), + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isRead", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "pk", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": (v5/*: any*/), + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "verb", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "filters": null, + "handle": "prependEdge", + "key": "", + "kind": "LinkedHandle", + "name": "message", + "handleArgs": [ + { + "kind": "Variable", + "name": "connections", + "variableName": "connections" + } + ] + }, + (v4/*: any*/) + ], + "storageKey": null + } + ] + }, + "params": { + "cacheID": "1d655e68797f0439e7ca317168d662ce", + "id": null, + "metadata": {}, + "name": "SendMessageMutation", + "operationKind": "mutation", + "text": "mutation SendMessageMutation(\n $input: ChatRoomSendMessageInput!\n) {\n chatRoomSendMessage(input: $input) {\n message {\n node {\n id\n ...MessageItemFragment\n }\n }\n errors {\n field\n messages\n }\n }\n}\n\nfragment MessageItemFragment on Message {\n id\n content\n created\n extraData\n inReplyTo {\n id\n }\n isRead\n pk\n profile {\n id\n }\n verb\n}\n" } -})() +}; +})(); -;(node as any).hash = '7fd0124ce48b9ceff7e9bf2091d0709e' +(node as any).hash = "7fd0124ce48b9ceff7e9bf2091d0709e"; -export default node +export default node; diff --git a/packages/components/__generated__/TitleFragment.graphql.ts b/packages/components/__generated__/TitleFragment.graphql.ts index 799ba1a3..87ca8bef 100644 --- a/packages/components/__generated__/TitleFragment.graphql.ts +++ b/packages/components/__generated__/TitleFragment.graphql.ts @@ -5,58 +5,57 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { Fragment, ReaderFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { Fragment, ReaderFragment } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type TitleFragment$data = { - readonly id: string - readonly isGroup: boolean - readonly ' $fragmentSpreads': FragmentRefs<'GroupTitleFragment' | 'RoomTitleFragment'> - readonly ' $fragmentType': 'TitleFragment' -} + readonly id: string; + readonly isGroup: boolean; + readonly " $fragmentSpreads": FragmentRefs<"GroupTitleFragment" | "RoomTitleFragment">; + readonly " $fragmentType": "TitleFragment"; +}; export type TitleFragment$key = { - readonly ' $data'?: TitleFragment$data - readonly ' $fragmentSpreads': FragmentRefs<'TitleFragment'> -} + readonly " $data"?: TitleFragment$data; + readonly " $fragmentSpreads": FragmentRefs<"TitleFragment">; +}; const node: ReaderFragment = { - argumentDefinitions: [], - kind: 'Fragment', - metadata: null, - name: 'TitleFragment', - selections: [ + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "TitleFragment", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null }, { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isGroup', - storageKey: null, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isGroup", + "storageKey": null }, { - args: null, - kind: 'FragmentSpread', - name: 'RoomTitleFragment', + "args": null, + "kind": "FragmentSpread", + "name": "RoomTitleFragment" }, { - args: null, - kind: 'FragmentSpread', - name: 'GroupTitleFragment', - }, + "args": null, + "kind": "FragmentSpread", + "name": "GroupTitleFragment" + } ], - type: 'ChatRoom', - abstractKey: null, -} + "type": "ChatRoom", + "abstractKey": null +}; -;(node as any).hash = '0b053ad212f52bdfe86f56b46c3873bf' +(node as any).hash = "0b053ad212f52bdfe86f56b46c3873bf"; -export default node +export default node; diff --git a/packages/components/__generated__/UnreadChatMutation.graphql.ts b/packages/components/__generated__/UnreadChatMutation.graphql.ts index be824171..2cff532e 100644 --- a/packages/components/__generated__/UnreadChatMutation.graphql.ts +++ b/packages/components/__generated__/UnreadChatMutation.graphql.ts @@ -5,206 +5,192 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Mutation } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Mutation } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type ChatRoomUnreadInput = { - clientMutationId?: string | null | undefined - profileId: string - roomId: string -} + clientMutationId?: string | null | undefined; + profileId: string; + roomId: string; +}; export type UnreadChatMutation$variables = { - input: ChatRoomUnreadInput -} + input: ChatRoomUnreadInput; +}; export type UnreadChatMutation$data = { - readonly chatRoomUnread: - | { - readonly errors: - | ReadonlyArray< - | { - readonly field: string - readonly messages: ReadonlyArray - } - | null - | undefined - > - | null - | undefined - readonly room: - | { - readonly id: string - readonly ' $fragmentSpreads': FragmentRefs<'UnreadMessagesCountFragment'> - } - | null - | undefined - } - | null - | undefined -} + readonly chatRoomUnread: { + readonly errors: ReadonlyArray<{ + readonly field: string; + readonly messages: ReadonlyArray; + } | null | undefined> | null | undefined; + readonly room: { + readonly id: string; + readonly " $fragmentSpreads": FragmentRefs<"UnreadMessagesCountFragment">; + } | null | undefined; + } | null | undefined; +}; export type UnreadChatMutation = { - response: UnreadChatMutation$data - variables: UnreadChatMutation$variables -} + response: UnreadChatMutation$data; + variables: UnreadChatMutation$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "input" + } +], +v1 = [ + { + "kind": "Variable", + "name": "input", + "variableName": "input" + } +], +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v3 = { + "alias": null, + "args": null, + "concreteType": "ErrorType", + "kind": "LinkedField", + "name": "errors", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "field", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "messages", + "storageKey": null + } + ], + "storageKey": null +}; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "UnreadChatMutation", + "selections": [ { - defaultValue: null, - kind: 'LocalArgument', - name: 'input', - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": "ChatRoomUnreadPayload", + "kind": "LinkedField", + "name": "chatRoomUnread", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoom", + "kind": "LinkedField", + "name": "room", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "args": null, + "kind": "FragmentSpread", + "name": "UnreadMessagesCountFragment" + } + ], + "storageKey": null + }, + (v3/*: any*/) + ], + "storageKey": null + } ], - v1 = [ + "type": "Mutation", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "UnreadChatMutation", + "selections": [ { - kind: 'Variable', - name: 'input', - variableName: 'input', - }, - ], - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v3 = { - alias: null, - args: null, - concreteType: 'ErrorType', - kind: 'LinkedField', - name: 'errors', - plural: true, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'field', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'messages', - storageKey: null, - }, - ], - storageKey: null, - } - return { - fragment: { - argumentDefinitions: v0 /*: any*/, - kind: 'Fragment', - metadata: null, - name: 'UnreadChatMutation', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'ChatRoomUnreadPayload', - kind: 'LinkedField', - name: 'chatRoomUnread', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoom', - kind: 'LinkedField', - name: 'room', - plural: false, - selections: [ - v2 /*: any*/, - { - args: null, - kind: 'FragmentSpread', - name: 'UnreadMessagesCountFragment', - }, - ], - storageKey: null, - }, - v3 /*: any*/, - ], - storageKey: null, - }, - ], - type: 'Mutation', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: v0 /*: any*/, - kind: 'Operation', - name: 'UnreadChatMutation', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'ChatRoomUnreadPayload', - kind: 'LinkedField', - name: 'chatRoomUnread', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoom', - kind: 'LinkedField', - name: 'room', - plural: false, - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - concreteType: 'UnreadMessageCount', - kind: 'LinkedField', - name: 'unreadMessages', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'count', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'markedUnread', - storageKey: null, - }, - v2 /*: any*/, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - v3 /*: any*/, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: 'b5c9682f04c174e181c522db06feb0a5', - id: null, - metadata: {}, - name: 'UnreadChatMutation', - operationKind: 'mutation', - text: 'mutation UnreadChatMutation(\n $input: ChatRoomUnreadInput!\n) {\n chatRoomUnread(input: $input) {\n room {\n id\n ...UnreadMessagesCountFragment\n }\n errors {\n field\n messages\n }\n }\n}\n\nfragment UnreadMessagesCountFragment on ChatRoom {\n id\n unreadMessages {\n count\n markedUnread\n id\n }\n}\n', - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": "ChatRoomUnreadPayload", + "kind": "LinkedField", + "name": "chatRoomUnread", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoom", + "kind": "LinkedField", + "name": "room", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "UnreadMessageCount", + "kind": "LinkedField", + "name": "unreadMessages", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "count", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "markedUnread", + "storageKey": null + }, + (v2/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + }, + (v3/*: any*/) + ], + "storageKey": null + } + ] + }, + "params": { + "cacheID": "b5c9682f04c174e181c522db06feb0a5", + "id": null, + "metadata": {}, + "name": "UnreadChatMutation", + "operationKind": "mutation", + "text": "mutation UnreadChatMutation(\n $input: ChatRoomUnreadInput!\n) {\n chatRoomUnread(input: $input) {\n room {\n id\n ...UnreadMessagesCountFragment\n }\n errors {\n field\n messages\n }\n }\n}\n\nfragment UnreadMessagesCountFragment on ChatRoom {\n id\n unreadMessages {\n count\n markedUnread\n id\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = 'fb95629ed4c89ffb9689a72b91d6cefa' +(node as any).hash = "fb95629ed4c89ffb9689a72b91d6cefa"; -export default node +export default node; diff --git a/packages/components/__generated__/UnreadMessagesCountFragment.graphql.ts b/packages/components/__generated__/UnreadMessagesCountFragment.graphql.ts index 8d90ae31..1dce13ee 100644 --- a/packages/components/__generated__/UnreadMessagesCountFragment.graphql.ts +++ b/packages/components/__generated__/UnreadMessagesCountFragment.graphql.ts @@ -5,71 +5,67 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { Fragment, ReaderFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { Fragment, ReaderFragment } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type UnreadMessagesCountFragment$data = { - readonly id: string - readonly unreadMessages: - | { - readonly count: number - readonly markedUnread: boolean - } - | null - | undefined - readonly ' $fragmentType': 'UnreadMessagesCountFragment' -} + readonly id: string; + readonly unreadMessages: { + readonly count: number; + readonly markedUnread: boolean; + } | null | undefined; + readonly " $fragmentType": "UnreadMessagesCountFragment"; +}; export type UnreadMessagesCountFragment$key = { - readonly ' $data'?: UnreadMessagesCountFragment$data - readonly ' $fragmentSpreads': FragmentRefs<'UnreadMessagesCountFragment'> -} + readonly " $data"?: UnreadMessagesCountFragment$data; + readonly " $fragmentSpreads": FragmentRefs<"UnreadMessagesCountFragment">; +}; const node: ReaderFragment = { - argumentDefinitions: [], - kind: 'Fragment', - metadata: null, - name: 'UnreadMessagesCountFragment', - selections: [ + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "UnreadMessagesCountFragment", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null }, { - alias: null, - args: null, - concreteType: 'UnreadMessageCount', - kind: 'LinkedField', - name: 'unreadMessages', - plural: false, - selections: [ + "alias": null, + "args": null, + "concreteType": "UnreadMessageCount", + "kind": "LinkedField", + "name": "unreadMessages", + "plural": false, + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'count', - storageKey: null, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "count", + "storageKey": null }, { - alias: null, - args: null, - kind: 'ScalarField', - name: 'markedUnread', - storageKey: null, - }, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "markedUnread", + "storageKey": null + } ], - storageKey: null, - }, + "storageKey": null + } ], - type: 'ChatRoom', - abstractKey: null, -} + "type": "ChatRoom", + "abstractKey": null +}; -;(node as any).hash = '153dd01c7e0a3cfb050cbc4215409310' +(node as any).hash = "153dd01c7e0a3cfb050cbc4215409310"; -export default node +export default node; diff --git a/packages/components/__generated__/UpdateChatRoomMutation.graphql.ts b/packages/components/__generated__/UpdateChatRoomMutation.graphql.ts index 21ff329a..2e2f1d45 100644 --- a/packages/components/__generated__/UpdateChatRoomMutation.graphql.ts +++ b/packages/components/__generated__/UpdateChatRoomMutation.graphql.ts @@ -5,451 +5,433 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Mutation } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Mutation } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type ChatRoomUpdateInput = { - addParticipants?: ReadonlyArray | null | undefined - clientMutationId?: string | null | undefined - deleteImage?: boolean | null | undefined - profileId: string - removeParticipants?: ReadonlyArray | null | undefined - roomId: string - title?: string | null | undefined -} + addParticipants?: ReadonlyArray | null | undefined; + clientMutationId?: string | null | undefined; + deleteImage?: boolean | null | undefined; + profileId: string; + removeParticipants?: ReadonlyArray | null | undefined; + roomId: string; + title?: string | null | undefined; +}; export type UpdateChatRoomMutation$variables = { - connections: ReadonlyArray - input: ChatRoomUpdateInput -} + connections: ReadonlyArray; + input: ChatRoomUpdateInput; +}; export type UpdateChatRoomMutation$data = { - readonly chatRoomUpdate: - | { - readonly errors: - | ReadonlyArray< - | { - readonly field: string - readonly messages: ReadonlyArray - } - | null - | undefined - > - | null - | undefined - readonly removedParticipants: - | ReadonlyArray< - | { - readonly id: string - } - | null - | undefined - > - | null - | undefined - readonly room: - | { - readonly node: - | { - readonly id: string - readonly ' $fragmentSpreads': FragmentRefs< - 'LastMessageFragment' | 'TitleFragment' | 'UnreadMessagesCountFragment' - > - } - | null - | undefined - } - | null - | undefined - } - | null - | undefined -} + readonly chatRoomUpdate: { + readonly errors: ReadonlyArray<{ + readonly field: string; + readonly messages: ReadonlyArray; + } | null | undefined> | null | undefined; + readonly removedParticipants: ReadonlyArray<{ + readonly id: string; + } | null | undefined> | null | undefined; + readonly room: { + readonly node: { + readonly id: string; + readonly " $fragmentSpreads": FragmentRefs<"LastMessageFragment" | "TitleFragment" | "UnreadMessagesCountFragment">; + } | null | undefined; + } | null | undefined; + } | null | undefined; +}; export type UpdateChatRoomMutation = { - response: UpdateChatRoomMutation$data - variables: UpdateChatRoomMutation$variables -} + response: UpdateChatRoomMutation$data; + variables: UpdateChatRoomMutation$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'connections', - }, - v1 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'input', +const node: ConcreteRequest = (function(){ +var v0 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "connections" +}, +v1 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "input" +}, +v2 = [ + { + "kind": "Variable", + "name": "input", + "variableName": "input" + } +], +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v4 = { + "alias": null, + "args": null, + "concreteType": "ErrorType", + "kind": "LinkedField", + "name": "errors", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "field", + "storageKey": null }, - v2 = [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "messages", + "storageKey": null + } + ], + "storageKey": null +}, +v5 = [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } +]; +return { + "fragment": { + "argumentDefinitions": [ + (v0/*: any*/), + (v1/*: any*/) + ], + "kind": "Fragment", + "metadata": null, + "name": "UpdateChatRoomMutation", + "selections": [ { - kind: 'Variable', - name: 'input', - variableName: 'input', - }, + "alias": null, + "args": (v2/*: any*/), + "concreteType": "ChatRoomUpdatePayload", + "kind": "LinkedField", + "name": "chatRoomUpdate", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomEdge", + "kind": "LinkedField", + "name": "room", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoom", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "args": null, + "kind": "FragmentSpread", + "name": "LastMessageFragment" + }, + { + "args": null, + "kind": "FragmentSpread", + "name": "TitleFragment" + }, + { + "args": null, + "kind": "FragmentSpread", + "name": "UnreadMessagesCountFragment" + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "ChatRoomParticipant", + "kind": "LinkedField", + "name": "removedParticipants", + "plural": true, + "selections": [ + (v3/*: any*/) + ], + "storageKey": null + }, + (v4/*: any*/) + ], + "storageKey": null + } ], - v3 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v4 = { - alias: null, - args: null, - concreteType: 'ErrorType', - kind: 'LinkedField', - name: 'errors', - plural: true, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'field', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'messages', - storageKey: null, - }, - ], - storageKey: null, - }, - v5 = [ + "type": "Mutation", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": [ + (v1/*: any*/), + (v0/*: any*/) + ], + "kind": "Operation", + "name": "UpdateChatRoomMutation", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, + "alias": null, + "args": (v2/*: any*/), + "concreteType": "ChatRoomUpdatePayload", + "kind": "LinkedField", + "name": "chatRoomUpdate", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomEdge", + "kind": "LinkedField", + "name": "room", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoom", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "lastMessageTime", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Message", + "kind": "LinkedField", + "name": "lastMessage", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "content", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isGroup", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "first", + "value": 2 + } + ], + "concreteType": "ChatRoomParticipantConnection", + "kind": "LinkedField", + "name": "participants", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomParticipantEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomParticipant", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "name", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100 + }, + { + "kind": "Literal", + "name": "width", + "value": 100 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": (v5/*: any*/), + "storageKey": "image(height:100,width:100)" + } + ], + "storageKey": null + }, + (v3/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": "participants(first:2)" + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 144 + }, + { + "kind": "Literal", + "name": "width", + "value": 144 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": (v5/*: any*/), + "storageKey": "image(height:144,width:144)" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "title", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "UnreadMessageCount", + "kind": "LinkedField", + "name": "unreadMessages", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "count", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "markedUnread", + "storageKey": null + }, + (v3/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "ChatRoomParticipant", + "kind": "LinkedField", + "name": "removedParticipants", + "plural": true, + "selections": [ + (v3/*: any*/), + { + "alias": null, + "args": null, + "filters": null, + "handle": "deleteEdge", + "key": "", + "kind": "ScalarHandle", + "name": "id", + "handleArgs": [ + { + "kind": "Variable", + "name": "connections", + "variableName": "connections" + } + ] + } + ], + "storageKey": null + }, + (v4/*: any*/) + ], + "storageKey": null + } ] - return { - fragment: { - argumentDefinitions: [v0 /*: any*/, v1 /*: any*/], - kind: 'Fragment', - metadata: null, - name: 'UpdateChatRoomMutation', - selections: [ - { - alias: null, - args: v2 /*: any*/, - concreteType: 'ChatRoomUpdatePayload', - kind: 'LinkedField', - name: 'chatRoomUpdate', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomEdge', - kind: 'LinkedField', - name: 'room', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoom', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v3 /*: any*/, - { - args: null, - kind: 'FragmentSpread', - name: 'LastMessageFragment', - }, - { - args: null, - kind: 'FragmentSpread', - name: 'TitleFragment', - }, - { - args: null, - kind: 'FragmentSpread', - name: 'UnreadMessagesCountFragment', - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'ChatRoomParticipant', - kind: 'LinkedField', - name: 'removedParticipants', - plural: true, - selections: [v3 /*: any*/], - storageKey: null, - }, - v4 /*: any*/, - ], - storageKey: null, - }, - ], - type: 'Mutation', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: [v1 /*: any*/, v0 /*: any*/], - kind: 'Operation', - name: 'UpdateChatRoomMutation', - selections: [ - { - alias: null, - args: v2 /*: any*/, - concreteType: 'ChatRoomUpdatePayload', - kind: 'LinkedField', - name: 'chatRoomUpdate', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomEdge', - kind: 'LinkedField', - name: 'room', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoom', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v3 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'lastMessageTime', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Message', - kind: 'LinkedField', - name: 'lastMessage', - plural: false, - selections: [ - v3 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'content', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isGroup', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'first', - value: 2, - }, - ], - concreteType: 'ChatRoomParticipantConnection', - kind: 'LinkedField', - name: 'participants', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomParticipantEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomParticipant', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - v3 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'name', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 100, - }, - { - kind: 'Literal', - name: 'width', - value: 100, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: v5 /*: any*/, - storageKey: 'image(height:100,width:100)', - }, - ], - storageKey: null, - }, - v3 /*: any*/, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: 'participants(first:2)', - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 144, - }, - { - kind: 'Literal', - name: 'width', - value: 144, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: v5 /*: any*/, - storageKey: 'image(height:144,width:144)', - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'title', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'UnreadMessageCount', - kind: 'LinkedField', - name: 'unreadMessages', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'count', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'markedUnread', - storageKey: null, - }, - v3 /*: any*/, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'ChatRoomParticipant', - kind: 'LinkedField', - name: 'removedParticipants', - plural: true, - selections: [ - v3 /*: any*/, - { - alias: null, - args: null, - filters: null, - handle: 'deleteEdge', - key: '', - kind: 'ScalarHandle', - name: 'id', - handleArgs: [ - { - kind: 'Variable', - name: 'connections', - variableName: 'connections', - }, - ], - }, - ], - storageKey: null, - }, - v4 /*: any*/, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: '02ee6230858c1fc8bfc1d3cdff0ff168', - id: null, - metadata: {}, - name: 'UpdateChatRoomMutation', - operationKind: 'mutation', - text: 'mutation UpdateChatRoomMutation(\n $input: ChatRoomUpdateInput!\n) {\n chatRoomUpdate(input: $input) {\n room {\n node {\n id\n ...LastMessageFragment\n ...TitleFragment\n ...UnreadMessagesCountFragment\n }\n }\n removedParticipants {\n id\n }\n errors {\n field\n messages\n }\n }\n}\n\nfragment GroupTitleFragment on ChatRoom {\n id\n image(width: 144, height: 144) {\n url\n }\n title\n}\n\nfragment LastMessageFragment on ChatRoom {\n id\n lastMessageTime\n lastMessage {\n id\n content\n }\n}\n\nfragment RoomTitleFragment on ChatRoom {\n id\n participants(first: 2) {\n edges {\n node {\n profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n }\n id\n }\n }\n }\n}\n\nfragment TitleFragment on ChatRoom {\n id\n isGroup\n ...RoomTitleFragment\n ...GroupTitleFragment\n}\n\nfragment UnreadMessagesCountFragment on ChatRoom {\n id\n unreadMessages {\n count\n markedUnread\n id\n }\n}\n', - }, + }, + "params": { + "cacheID": "02ee6230858c1fc8bfc1d3cdff0ff168", + "id": null, + "metadata": {}, + "name": "UpdateChatRoomMutation", + "operationKind": "mutation", + "text": "mutation UpdateChatRoomMutation(\n $input: ChatRoomUpdateInput!\n) {\n chatRoomUpdate(input: $input) {\n room {\n node {\n id\n ...LastMessageFragment\n ...TitleFragment\n ...UnreadMessagesCountFragment\n }\n }\n removedParticipants {\n id\n }\n errors {\n field\n messages\n }\n }\n}\n\nfragment GroupTitleFragment on ChatRoom {\n id\n image(width: 144, height: 144) {\n url\n }\n title\n}\n\nfragment LastMessageFragment on ChatRoom {\n id\n lastMessageTime\n lastMessage {\n id\n content\n }\n}\n\nfragment RoomTitleFragment on ChatRoom {\n id\n participants(first: 2) {\n edges {\n node {\n profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n }\n id\n }\n }\n }\n}\n\nfragment TitleFragment on ChatRoom {\n id\n isGroup\n ...RoomTitleFragment\n ...GroupTitleFragment\n}\n\nfragment UnreadMessagesCountFragment on ChatRoom {\n id\n unreadMessages {\n count\n markedUnread\n id\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = '814ba3e87407537b5be32eb40c45a80d' +(node as any).hash = "814ba3e87407537b5be32eb40c45a80d"; -export default node +export default node; diff --git a/packages/components/__generated__/UserMembersListFragment.graphql.ts b/packages/components/__generated__/UserMembersListFragment.graphql.ts index 06c7adc2..b760bd60 100644 --- a/packages/components/__generated__/UserMembersListFragment.graphql.ts +++ b/packages/components/__generated__/UserMembersListFragment.graphql.ts @@ -1,219 +1,222 @@ /** - * @generated SignedSource<<1ccb4ef3183869c662dc4a70b535479d>> + * @generated SignedSource<<44456281204431792d1fc91d06873cee>> * @lightSyntaxTransform * @nogrep */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ReaderFragment, RefetchableFragment } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ReaderFragment, RefetchableFragment } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type UserMembersListFragment$data = { - readonly canChangeRole: boolean | null | undefined - readonly id: string - readonly members: - | { - readonly edges: ReadonlyArray< - | { - readonly node: - | { - readonly ' $fragmentSpreads': FragmentRefs<'MemberItemFragment'> - } - | null - | undefined - } - | null - | undefined - > - readonly pageInfo: { - readonly endCursor: string | null | undefined - readonly hasNextPage: boolean - } - readonly totalCount: number | null | undefined - } - | null - | undefined - readonly ' $fragmentSpreads': FragmentRefs<'ProfileItemFragment'> - readonly ' $fragmentType': 'UserMembersListFragment' -} + readonly canChangeRole: boolean | null | undefined; + readonly id: string; + readonly members: { + readonly edges: ReadonlyArray<{ + readonly node: { + readonly " $fragmentSpreads": FragmentRefs<"MemberItemFragment">; + } | null | undefined; + } | null | undefined>; + readonly pageInfo: { + readonly endCursor: string | null | undefined; + readonly hasNextPage: boolean; + }; + readonly totalCount: number | null | undefined; + } | null | undefined; + readonly " $fragmentSpreads": FragmentRefs<"ProfileItemFragment">; + readonly " $fragmentType": "UserMembersListFragment"; +}; export type UserMembersListFragment$key = { - readonly ' $data'?: UserMembersListFragment$data - readonly ' $fragmentSpreads': FragmentRefs<'UserMembersListFragment'> -} + readonly " $data"?: UserMembersListFragment$data; + readonly " $fragmentSpreads": FragmentRefs<"UserMembersListFragment">; +}; -const node: ReaderFragment = (function () { - var v0 = ['members'] - return { - argumentDefinitions: [ - { - defaultValue: 10, - kind: 'LocalArgument', - name: 'count', - }, - { - defaultValue: null, - kind: 'LocalArgument', - name: 'cursor', - }, +const node: ReaderFragment = (function(){ +var v0 = [ + "members" +]; +return { + "argumentDefinitions": [ + { + "defaultValue": 10, + "kind": "LocalArgument", + "name": "count" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "cursor" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "orderBy" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "q" + } + ], + "kind": "Fragment", + "metadata": { + "connection": [ { - defaultValue: null, - kind: 'LocalArgument', - name: 'orderBy', - }, + "count": "count", + "cursor": "cursor", + "direction": "forward", + "path": (v0/*: any*/) + } ], - kind: 'Fragment', - metadata: { - connection: [ + "refetch": { + "connection": { + "forward": { + "count": "count", + "cursor": "cursor" + }, + "backward": null, + "path": (v0/*: any*/) + }, + "fragmentPathInResult": [ + "node" + ], + "operation": require('./userMembersListPaginationRefetchable.graphql'), + "identifierInfo": { + "identifierField": "id", + "identifierQueryVariableName": "id" + } + } + }, + "name": "UserMembersListFragment", + "selections": [ + { + "alias": "canChangeRole", + "args": [ { - count: 'count', - cursor: 'cursor', - direction: 'forward', - path: v0 /*: any*/, + "kind": "Literal", + "name": "perm", + "value": "baseapp_profiles.change_profileuserrole" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"baseapp_profiles.change_profileuserrole\")" + }, + { + "args": null, + "kind": "FragmentSpread", + "name": "ProfileItemFragment" + }, + { + "alias": "members", + "args": [ + { + "kind": "Variable", + "name": "orderBy", + "variableName": "orderBy" }, + { + "kind": "Variable", + "name": "q", + "variableName": "q" + } ], - refetch: { - connection: { - forward: { - count: 'count', - cursor: 'cursor', - }, - backward: null, - path: v0 /*: any*/, + "concreteType": "ProfileUserRoleConnection", + "kind": "LinkedField", + "name": "__UserMembersFragment_members_connection", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "totalCount", + "storageKey": null }, - fragmentPathInResult: ['node'], - operation: require('./userMembersListPaginationRefetchable.graphql'), - identifierInfo: { - identifierField: 'id', - identifierQueryVariableName: 'id', + { + "alias": null, + "args": null, + "concreteType": "ProfileUserRoleEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ProfileUserRole", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "args": null, + "kind": "FragmentSpread", + "name": "MemberItemFragment" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + } + ], + "storageKey": null }, - }, + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null }, - name: 'UserMembersListFragment', - selections: [ - { - alias: 'canChangeRole', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'baseapp_profiles.change_profileuserrole', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"baseapp_profiles.change_profileuserrole")', - }, - { - args: null, - kind: 'FragmentSpread', - name: 'ProfileItemFragment', - }, - { - alias: 'members', - args: [ - { - kind: 'Variable', - name: 'orderBy', - variableName: 'orderBy', - }, - ], - concreteType: 'ProfileUserRoleConnection', - kind: 'LinkedField', - name: '__UserMembersFragment_members_connection', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'totalCount', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'ProfileUserRoleEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'ProfileUserRole', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - args: null, - kind: 'FragmentSpread', - name: 'MemberItemFragment', - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - ], - type: 'Profile', - abstractKey: null, - } -})() + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null + } + ], + "type": "Profile", + "abstractKey": null +}; +})(); -;(node as any).hash = '8337f3f7c24d4eeb8d4c2495429a0d71' +(node as any).hash = "36d39484eb42189ff857dac6fec4b13d"; -export default node +export default node; diff --git a/packages/components/__generated__/UserMembersListPaginationQuery.graphql.ts b/packages/components/__generated__/UserMembersListPaginationQuery.graphql.ts index fe1b29ac..a829bf37 100644 --- a/packages/components/__generated__/UserMembersListPaginationQuery.graphql.ts +++ b/packages/components/__generated__/UserMembersListPaginationQuery.graphql.ts @@ -1,366 +1,383 @@ /** - * @generated SignedSource<<0460ee653a305690604a858c7e8b8e59>> + * @generated SignedSource<<8af0ed87aaf7bcb1f2d2c88c2a39acb6>> * @lightSyntaxTransform * @nogrep */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type UserMembersListPaginationQuery$variables = { - count?: number | null | undefined - cursor?: string | null | undefined - orderBy?: string | null | undefined - profileId: string -} + count?: number | null | undefined; + cursor?: string | null | undefined; + orderBy?: string | null | undefined; + profileId: string; + q?: string | null | undefined; +}; export type UserMembersListPaginationQuery$data = { - readonly profile: - | { - readonly pk: number - readonly ' $fragmentSpreads': FragmentRefs<'UserMembersListFragment'> - } - | null - | undefined -} + readonly profile: { + readonly pk: number; + readonly " $fragmentSpreads": FragmentRefs<"UserMembersListFragment">; + } | null | undefined; +}; export type UserMembersListPaginationQuery = { - response: UserMembersListPaginationQuery$data - variables: UserMembersListPaginationQuery$variables -} + response: UserMembersListPaginationQuery$data; + variables: UserMembersListPaginationQuery$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ - { - defaultValue: 10, - kind: 'LocalArgument', - name: 'count', - }, - { - defaultValue: null, - kind: 'LocalArgument', - name: 'cursor', - }, - { - defaultValue: null, - kind: 'LocalArgument', - name: 'orderBy', - }, - { - defaultValue: null, - kind: 'LocalArgument', - name: 'profileId', - }, - ], - v1 = [ - { - kind: 'Variable', - name: 'id', - variableName: 'profileId', - }, - ], - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'pk', - storageKey: null, - }, - v3 = { - kind: 'Variable', - name: 'orderBy', - variableName: 'orderBy', - }, - v4 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v5 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'name', - storageKey: null, - }, - v6 = { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 100, - }, - { - kind: 'Literal', - name: 'width', - value: 100, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'image(height:100,width:100)', +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "defaultValue": 10, + "kind": "LocalArgument", + "name": "count" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "cursor" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "orderBy" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "profileId" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "q" + } +], +v1 = [ + { + "kind": "Variable", + "name": "id", + "variableName": "profileId" + } +], +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "pk", + "storageKey": null +}, +v3 = { + "kind": "Variable", + "name": "orderBy", + "variableName": "orderBy" +}, +v4 = { + "kind": "Variable", + "name": "q", + "variableName": "q" +}, +v5 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v6 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "name", + "storageKey": null +}, +v7 = { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100 }, - v7 = { - alias: null, - args: null, - concreteType: 'URLPath', - kind: 'LinkedField', - name: 'urlPath', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'path', - storageKey: null, - }, - v4 /*: any*/, - ], - storageKey: null, + { + "kind": "Literal", + "name": "width", + "value": 100 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "image(height:100,width:100)" +}, +v8 = { + "alias": null, + "args": null, + "concreteType": "URLPath", + "kind": "LinkedField", + "name": "urlPath", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "path", + "storageKey": null }, - v8 = [ + (v5/*: any*/) + ], + "storageKey": null +}, +v9 = [ + { + "kind": "Variable", + "name": "after", + "variableName": "cursor" + }, + { + "kind": "Variable", + "name": "first", + "variableName": "count" + }, + (v3/*: any*/), + (v4/*: any*/) +]; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "UserMembersListPaginationQuery", + "selections": [ { - kind: 'Variable', - name: 'after', - variableName: 'cursor', - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "args": [ + { + "kind": "Variable", + "name": "count", + "variableName": "count" + }, + { + "kind": "Variable", + "name": "cursor", + "variableName": "cursor" + }, + (v3/*: any*/), + (v4/*: any*/) + ], + "kind": "FragmentSpread", + "name": "UserMembersListFragment" + } + ], + "storageKey": null + } + ], + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "UserMembersListPaginationQuery", + "selections": [ { - kind: 'Variable', - name: 'first', - variableName: 'count', - }, - v3 /*: any*/, + "alias": null, + "args": (v1/*: any*/), + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "alias": "canChangeRole", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "baseapp_profiles.change_profileuserrole" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"baseapp_profiles.change_profileuserrole\")" + }, + (v5/*: any*/), + (v6/*: any*/), + (v7/*: any*/), + (v8/*: any*/), + { + "alias": null, + "args": (v9/*: any*/), + "concreteType": "ProfileUserRoleConnection", + "kind": "LinkedField", + "name": "members", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "totalCount", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "ProfileUserRoleEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ProfileUserRole", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v5/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "user", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + (v5/*: any*/), + (v6/*: any*/), + (v7/*: any*/), + (v8/*: any*/) + ], + "storageKey": null + }, + (v5/*: any*/) + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "role", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "status", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": (v9/*: any*/), + "filters": [ + "orderBy", + "q" + ], + "handle": "connection", + "key": "UserMembersFragment_members", + "kind": "LinkedHandle", + "name": "members" + } + ], + "storageKey": null + } ] - return { - fragment: { - argumentDefinitions: v0 /*: any*/, - kind: 'Fragment', - metadata: null, - name: 'UserMembersListPaginationQuery', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - v2 /*: any*/, - { - args: [ - { - kind: 'Variable', - name: 'count', - variableName: 'count', - }, - { - kind: 'Variable', - name: 'cursor', - variableName: 'cursor', - }, - v3 /*: any*/, - ], - kind: 'FragmentSpread', - name: 'UserMembersListFragment', - }, - ], - storageKey: null, - }, - ], - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: v0 /*: any*/, - kind: 'Operation', - name: 'UserMembersListPaginationQuery', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - v2 /*: any*/, - { - alias: 'canChangeRole', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'baseapp_profiles.change_profileuserrole', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"baseapp_profiles.change_profileuserrole")', - }, - v4 /*: any*/, - v5 /*: any*/, - v6 /*: any*/, - v7 /*: any*/, - { - alias: null, - args: v8 /*: any*/, - concreteType: 'ProfileUserRoleConnection', - kind: 'LinkedField', - name: 'members', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'totalCount', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'ProfileUserRoleEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'ProfileUserRole', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v4 /*: any*/, - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'user', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [v4 /*: any*/, v5 /*: any*/, v6 /*: any*/, v7 /*: any*/], - storageKey: null, - }, - v4 /*: any*/, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'role', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'status', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: v8 /*: any*/, - filters: ['orderBy'], - handle: 'connection', - key: 'UserMembersFragment_members', - kind: 'LinkedHandle', - name: 'members', - }, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: 'fc604a63cecf6efc1ec2d8381adf066b', - id: null, - metadata: {}, - name: 'UserMembersListPaginationQuery', - operationKind: 'query', - text: 'query UserMembersListPaginationQuery(\n $count: Int = 10\n $cursor: String\n $orderBy: String\n $profileId: ID!\n) {\n profile(id: $profileId) {\n pk\n ...UserMembersListFragment_32czeo\n id\n }\n}\n\nfragment MemberItemFragment on ProfileUserRole {\n id\n user {\n profile {\n ...ProfileItemFragment\n id\n }\n id\n }\n role\n status\n}\n\nfragment ProfileItemFragment on Profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n urlPath {\n path\n id\n }\n}\n\nfragment UserMembersListFragment_32czeo on Profile {\n canChangeRole: hasPerm(perm: "baseapp_profiles.change_profileuserrole")\n ...ProfileItemFragment\n members(first: $count, after: $cursor, orderBy: $orderBy) {\n totalCount\n edges {\n node {\n ...MemberItemFragment\n id\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n id\n}\n', - }, + }, + "params": { + "cacheID": "4c26b6c390f8f6f6311b61783c7aa5ba", + "id": null, + "metadata": {}, + "name": "UserMembersListPaginationQuery", + "operationKind": "query", + "text": "query UserMembersListPaginationQuery(\n $count: Int = 10\n $cursor: String\n $orderBy: String\n $profileId: ID!\n $q: String\n) {\n profile(id: $profileId) {\n pk\n ...UserMembersListFragment_40Ewnb\n id\n }\n}\n\nfragment MemberItemFragment on ProfileUserRole {\n id\n user {\n profile {\n ...ProfileItemFragment\n id\n }\n id\n }\n role\n status\n}\n\nfragment ProfileItemFragment on Profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n urlPath {\n path\n id\n }\n}\n\nfragment UserMembersListFragment_40Ewnb on Profile {\n canChangeRole: hasPerm(perm: \"baseapp_profiles.change_profileuserrole\")\n ...ProfileItemFragment\n members(first: $count, after: $cursor, orderBy: $orderBy, q: $q) {\n totalCount\n edges {\n node {\n ...MemberItemFragment\n id\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n id\n}\n" } -})() +}; +})(); -;(node as any).hash = 'bc02b9d42e6f3e087d064c23c98c1a16' +(node as any).hash = "86d1da775d16041c78aa054204fed0cd"; -export default node +export default node; diff --git a/packages/components/__generated__/UserProfileQuery.graphql.ts b/packages/components/__generated__/UserProfileQuery.graphql.ts index 4fb2e338..4059a8a8 100644 --- a/packages/components/__generated__/UserProfileQuery.graphql.ts +++ b/packages/components/__generated__/UserProfileQuery.graphql.ts @@ -5,177 +5,170 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' -export type UserProfileQuery$variables = Record +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; +export type UserProfileQuery$variables = Record; export type UserProfileQuery$data = { - readonly me: - | { - readonly profile: - | { - readonly id: string - readonly ' $fragmentSpreads': FragmentRefs<'ProfileItemFragment'> - } - | null - | undefined - } - | null - | undefined -} + readonly me: { + readonly profile: { + readonly id: string; + readonly " $fragmentSpreads": FragmentRefs<"ProfileItemFragment">; + } | null | undefined; + } | null | undefined; +}; export type UserProfileQuery = { - response: UserProfileQuery$data - variables: UserProfileQuery$variables -} + response: UserProfileQuery$data; + variables: UserProfileQuery$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - } - return { - fragment: { - argumentDefinitions: [], - kind: 'Fragment', - metadata: null, - name: 'UserProfileQuery', - selections: [ - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'me', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - v0 /*: any*/, - { - args: null, - kind: 'FragmentSpread', - name: 'ProfileItemFragment', - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: [], - kind: 'Operation', - name: 'UserProfileQuery', - selections: [ - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'me', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - v0 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'name', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 100, - }, - { - kind: 'Literal', - name: 'width', - value: 100, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'image(height:100,width:100)', - }, - { - alias: null, - args: null, - concreteType: 'URLPath', - kind: 'LinkedField', - name: 'urlPath', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'path', - storageKey: null, - }, - v0 /*: any*/, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - v0 /*: any*/, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: 'bf91f0acfc2126f408b4cbe09838bbda', - id: null, - metadata: {}, - name: 'UserProfileQuery', - operationKind: 'query', - text: 'query UserProfileQuery {\n me {\n profile {\n id\n ...ProfileItemFragment\n }\n id\n }\n}\n\nfragment ProfileItemFragment on Profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n urlPath {\n path\n id\n }\n}\n', - }, +const node: ConcreteRequest = (function(){ +var v0 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}; +return { + "fragment": { + "argumentDefinitions": [], + "kind": "Fragment", + "metadata": null, + "name": "UserProfileQuery", + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "me", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + (v0/*: any*/), + { + "args": null, + "kind": "FragmentSpread", + "name": "ProfileItemFragment" + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": [], + "kind": "Operation", + "name": "UserProfileQuery", + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "me", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + (v0/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "name", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100 + }, + { + "kind": "Literal", + "name": "width", + "value": 100 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "image(height:100,width:100)" + }, + { + "alias": null, + "args": null, + "concreteType": "URLPath", + "kind": "LinkedField", + "name": "urlPath", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "path", + "storageKey": null + }, + (v0/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + }, + (v0/*: any*/) + ], + "storageKey": null + } + ] + }, + "params": { + "cacheID": "bf91f0acfc2126f408b4cbe09838bbda", + "id": null, + "metadata": {}, + "name": "UserProfileQuery", + "operationKind": "query", + "text": "query UserProfileQuery {\n me {\n profile {\n id\n ...ProfileItemFragment\n }\n id\n }\n}\n\nfragment ProfileItemFragment on Profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n urlPath {\n path\n id\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = '66224b5e2a7b852c882a5c0b76571987' +(node as any).hash = "66224b5e2a7b852c882a5c0b76571987"; -export default node +export default node; diff --git a/packages/components/__generated__/chatRoomsPaginationQuery.graphql.ts b/packages/components/__generated__/chatRoomsPaginationQuery.graphql.ts index a1bfd747..f6f9fe23 100644 --- a/packages/components/__generated__/chatRoomsPaginationQuery.graphql.ts +++ b/packages/components/__generated__/chatRoomsPaginationQuery.graphql.ts @@ -5,461 +5,461 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type chatRoomsPaginationQuery$variables = { - archived?: boolean | null | undefined - count?: number | null | undefined - cursor?: string | null | undefined - id: string - q?: string | null | undefined - unreadMessages?: boolean | null | undefined -} + archived?: boolean | null | undefined; + count?: number | null | undefined; + cursor?: string | null | undefined; + id: string; + q?: string | null | undefined; + unreadMessages?: boolean | null | undefined; +}; export type chatRoomsPaginationQuery$data = { - readonly node: - | { - readonly ' $fragmentSpreads': FragmentRefs<'RoomsListFragment'> - } - | null - | undefined -} + readonly node: { + readonly " $fragmentSpreads": FragmentRefs<"RoomsListFragment">; + } | null | undefined; +}; export type chatRoomsPaginationQuery = { - response: chatRoomsPaginationQuery$data - variables: chatRoomsPaginationQuery$variables -} + response: chatRoomsPaginationQuery$data; + variables: chatRoomsPaginationQuery$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = { - defaultValue: false, - kind: 'LocalArgument', - name: 'archived', - }, - v1 = { - defaultValue: 5, - kind: 'LocalArgument', - name: 'count', - }, - v2 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'cursor', - }, - v3 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'id', - }, - v4 = { - defaultValue: '', - kind: 'LocalArgument', - name: 'q', - }, - v5 = { - defaultValue: false, - kind: 'LocalArgument', - name: 'unreadMessages', - }, - v6 = [ - { - kind: 'Variable', - name: 'id', - variableName: 'id', - }, +const node: ConcreteRequest = (function(){ +var v0 = { + "defaultValue": false, + "kind": "LocalArgument", + "name": "archived" +}, +v1 = { + "defaultValue": 5, + "kind": "LocalArgument", + "name": "count" +}, +v2 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "cursor" +}, +v3 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "id" +}, +v4 = { + "defaultValue": "", + "kind": "LocalArgument", + "name": "q" +}, +v5 = { + "defaultValue": false, + "kind": "LocalArgument", + "name": "unreadMessages" +}, +v6 = [ + { + "kind": "Variable", + "name": "id", + "variableName": "id" + } +], +v7 = { + "kind": "Variable", + "name": "archived", + "variableName": "archived" +}, +v8 = { + "kind": "Variable", + "name": "q", + "variableName": "q" +}, +v9 = { + "kind": "Variable", + "name": "unreadMessages", + "variableName": "unreadMessages" +}, +v10 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null +}, +v11 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v12 = [ + { + "kind": "Variable", + "name": "after", + "variableName": "cursor" + }, + (v7/*: any*/), + { + "kind": "Variable", + "name": "first", + "variableName": "count" + }, + (v8/*: any*/), + (v9/*: any*/) +], +v13 = [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } +]; +return { + "fragment": { + "argumentDefinitions": [ + (v0/*: any*/), + (v1/*: any*/), + (v2/*: any*/), + (v3/*: any*/), + (v4/*: any*/), + (v5/*: any*/) ], - v7 = { - kind: 'Variable', - name: 'archived', - variableName: 'archived', - }, - v8 = { - kind: 'Variable', - name: 'q', - variableName: 'q', - }, - v9 = { - kind: 'Variable', - name: 'unreadMessages', - variableName: 'unreadMessages', - }, - v10 = { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v11 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v12 = [ + "kind": "Fragment", + "metadata": null, + "name": "chatRoomsPaginationQuery", + "selections": [ { - kind: 'Variable', - name: 'after', - variableName: 'cursor', - }, - v7 /*: any*/, - { - kind: 'Variable', - name: 'first', - variableName: 'count', - }, - v8 /*: any*/, - v9 /*: any*/, + "alias": null, + "args": (v6/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "args": [ + (v7/*: any*/), + { + "kind": "Variable", + "name": "count", + "variableName": "count" + }, + { + "kind": "Variable", + "name": "cursor", + "variableName": "cursor" + }, + (v8/*: any*/), + (v9/*: any*/) + ], + "kind": "FragmentSpread", + "name": "RoomsListFragment" + } + ], + "storageKey": null + } ], - v13 = [ + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": [ + (v0/*: any*/), + (v1/*: any*/), + (v2/*: any*/), + (v4/*: any*/), + (v5/*: any*/), + (v3/*: any*/) + ], + "kind": "Operation", + "name": "chatRoomsPaginationQuery", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, + "alias": null, + "args": (v6/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v10/*: any*/), + (v11/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": (v12/*: any*/), + "concreteType": "ChatRoomConnection", + "kind": "LinkedField", + "name": "chatRooms", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoom", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v11/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "lastMessageTime", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Message", + "kind": "LinkedField", + "name": "lastMessage", + "plural": false, + "selections": [ + (v11/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "content", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isGroup", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "first", + "value": 2 + } + ], + "concreteType": "ChatRoomParticipantConnection", + "kind": "LinkedField", + "name": "participants", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomParticipantEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomParticipant", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + (v11/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "name", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100 + }, + { + "kind": "Literal", + "name": "width", + "value": 100 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": (v13/*: any*/), + "storageKey": "image(height:100,width:100)" + } + ], + "storageKey": null + }, + (v11/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": "participants(first:2)" + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 144 + }, + { + "kind": "Literal", + "name": "width", + "value": 144 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": (v13/*: any*/), + "storageKey": "image(height:144,width:144)" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "title", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "UnreadMessageCount", + "kind": "LinkedField", + "name": "unreadMessages", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "count", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "markedUnread", + "storageKey": null + }, + (v11/*: any*/) + ], + "storageKey": null + }, + (v10/*: any*/) + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": (v12/*: any*/), + "filters": [ + "q", + "unreadMessages", + "archived" + ], + "handle": "connection", + "key": "roomsList_chatRooms", + "kind": "LinkedHandle", + "name": "chatRooms" + } + ], + "type": "ChatRoomsInterface", + "abstractKey": "__isChatRoomsInterface" + } + ], + "storageKey": null + } ] - return { - fragment: { - argumentDefinitions: [ - v0 /*: any*/, - v1 /*: any*/, - v2 /*: any*/, - v3 /*: any*/, - v4 /*: any*/, - v5 /*: any*/, - ], - kind: 'Fragment', - metadata: null, - name: 'chatRoomsPaginationQuery', - selections: [ - { - alias: null, - args: v6 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - args: [ - v7 /*: any*/, - { - kind: 'Variable', - name: 'count', - variableName: 'count', - }, - { - kind: 'Variable', - name: 'cursor', - variableName: 'cursor', - }, - v8 /*: any*/, - v9 /*: any*/, - ], - kind: 'FragmentSpread', - name: 'RoomsListFragment', - }, - ], - storageKey: null, - }, - ], - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: [ - v0 /*: any*/, - v1 /*: any*/, - v2 /*: any*/, - v4 /*: any*/, - v5 /*: any*/, - v3 /*: any*/, - ], - kind: 'Operation', - name: 'chatRoomsPaginationQuery', - selections: [ - { - alias: null, - args: v6 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v10 /*: any*/, - v11 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: v12 /*: any*/, - concreteType: 'ChatRoomConnection', - kind: 'LinkedField', - name: 'chatRooms', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoom', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v11 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'lastMessageTime', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Message', - kind: 'LinkedField', - name: 'lastMessage', - plural: false, - selections: [ - v11 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'content', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isGroup', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'first', - value: 2, - }, - ], - concreteType: 'ChatRoomParticipantConnection', - kind: 'LinkedField', - name: 'participants', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomParticipantEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomParticipant', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - v11 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'name', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 100, - }, - { - kind: 'Literal', - name: 'width', - value: 100, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: v13 /*: any*/, - storageKey: 'image(height:100,width:100)', - }, - ], - storageKey: null, - }, - v11 /*: any*/, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: 'participants(first:2)', - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 144, - }, - { - kind: 'Literal', - name: 'width', - value: 144, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: v13 /*: any*/, - storageKey: 'image(height:144,width:144)', - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'title', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'UnreadMessageCount', - kind: 'LinkedField', - name: 'unreadMessages', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'count', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'markedUnread', - storageKey: null, - }, - v11 /*: any*/, - ], - storageKey: null, - }, - v10 /*: any*/, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: v12 /*: any*/, - filters: ['q', 'unreadMessages', 'archived'], - handle: 'connection', - key: 'roomsList_chatRooms', - kind: 'LinkedHandle', - name: 'chatRooms', - }, - ], - type: 'ChatRoomsInterface', - abstractKey: '__isChatRoomsInterface', - }, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: 'b1100ee4f24d18cdd232451eaaf87847', - id: null, - metadata: {}, - name: 'chatRoomsPaginationQuery', - operationKind: 'query', - text: 'query chatRoomsPaginationQuery(\n $archived: Boolean = false\n $count: Int = 5\n $cursor: String\n $q: String = ""\n $unreadMessages: Boolean = false\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...RoomsListFragment_3I5PKK\n id\n }\n}\n\nfragment GroupTitleFragment on ChatRoom {\n id\n image(width: 144, height: 144) {\n url\n }\n title\n}\n\nfragment LastMessageFragment on ChatRoom {\n id\n lastMessageTime\n lastMessage {\n id\n content\n }\n}\n\nfragment RoomTitleFragment on ChatRoom {\n id\n participants(first: 2) {\n edges {\n node {\n profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n }\n id\n }\n }\n }\n}\n\nfragment RoomsListFragment_3I5PKK on ChatRoomsInterface {\n __isChatRoomsInterface: __typename\n chatRooms(first: $count, after: $cursor, q: $q, unreadMessages: $unreadMessages, archived: $archived) {\n edges {\n node {\n id\n ...LastMessageFragment\n ...TitleFragment\n ...UnreadMessagesCountFragment\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n id\n}\n\nfragment TitleFragment on ChatRoom {\n id\n isGroup\n ...RoomTitleFragment\n ...GroupTitleFragment\n}\n\nfragment UnreadMessagesCountFragment on ChatRoom {\n id\n unreadMessages {\n count\n markedUnread\n id\n }\n}\n', - }, + }, + "params": { + "cacheID": "b1100ee4f24d18cdd232451eaaf87847", + "id": null, + "metadata": {}, + "name": "chatRoomsPaginationQuery", + "operationKind": "query", + "text": "query chatRoomsPaginationQuery(\n $archived: Boolean = false\n $count: Int = 5\n $cursor: String\n $q: String = \"\"\n $unreadMessages: Boolean = false\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...RoomsListFragment_3I5PKK\n id\n }\n}\n\nfragment GroupTitleFragment on ChatRoom {\n id\n image(width: 144, height: 144) {\n url\n }\n title\n}\n\nfragment LastMessageFragment on ChatRoom {\n id\n lastMessageTime\n lastMessage {\n id\n content\n }\n}\n\nfragment RoomTitleFragment on ChatRoom {\n id\n participants(first: 2) {\n edges {\n node {\n profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n }\n id\n }\n }\n }\n}\n\nfragment RoomsListFragment_3I5PKK on ChatRoomsInterface {\n __isChatRoomsInterface: __typename\n chatRooms(first: $count, after: $cursor, q: $q, unreadMessages: $unreadMessages, archived: $archived) {\n edges {\n node {\n id\n ...LastMessageFragment\n ...TitleFragment\n ...UnreadMessagesCountFragment\n __typename\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n id\n}\n\nfragment TitleFragment on ChatRoom {\n id\n isGroup\n ...RoomTitleFragment\n ...GroupTitleFragment\n}\n\nfragment UnreadMessagesCountFragment on ChatRoom {\n id\n unreadMessages {\n count\n markedUnread\n id\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = '3a66898cb96bbf4ce999aa5ad9822ca0' +(node as any).hash = "3a66898cb96bbf4ce999aa5ad9822ca0"; -export default node +export default node; diff --git a/packages/components/__generated__/notificationsListRefetchable.graphql.ts b/packages/components/__generated__/notificationsListRefetchable.graphql.ts index 5217389d..b034f6db 100644 --- a/packages/components/__generated__/notificationsListRefetchable.graphql.ts +++ b/packages/components/__generated__/notificationsListRefetchable.graphql.ts @@ -5,395 +5,403 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type notificationsListRefetchable$variables = { - count?: number | null | undefined - cursor?: string | null | undefined - id: string - verbs?: string | null | undefined -} + count?: number | null | undefined; + cursor?: string | null | undefined; + id: string; + verbs?: string | null | undefined; +}; export type notificationsListRefetchable$data = { - readonly node: - | { - readonly ' $fragmentSpreads': FragmentRefs<'NotificationsListFragment'> - } - | null - | undefined -} + readonly node: { + readonly " $fragmentSpreads": FragmentRefs<"NotificationsListFragment">; + } | null | undefined; +}; export type notificationsListRefetchable = { - response: notificationsListRefetchable$data - variables: notificationsListRefetchable$variables -} + response: notificationsListRefetchable$data; + variables: notificationsListRefetchable$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = { - defaultValue: 10, - kind: 'LocalArgument', - name: 'count', - }, - v1 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'cursor', - }, - v2 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'id', - }, - v3 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'verbs', - }, - v4 = [ +const node: ConcreteRequest = (function(){ +var v0 = { + "defaultValue": 10, + "kind": "LocalArgument", + "name": "count" +}, +v1 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "cursor" +}, +v2 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "id" +}, +v3 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "verbs" +}, +v4 = [ + { + "kind": "Variable", + "name": "id", + "variableName": "id" + } +], +v5 = { + "kind": "Variable", + "name": "verbs", + "variableName": "verbs" +}, +v6 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null +}, +v7 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v8 = [ + { + "kind": "Variable", + "name": "after", + "variableName": "cursor" + }, + { + "kind": "Variable", + "name": "first", + "variableName": "count" + }, + (v5/*: any*/) +], +v9 = [ + (v7/*: any*/), + (v6/*: any*/), + { + "kind": "InlineFragment", + "selections": [ { - kind: 'Variable', - name: 'id', - variableName: 'id', - }, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "body", + "storageKey": null + } ], - v5 = { - kind: 'Variable', - name: 'verbs', - variableName: 'verbs', - }, - v6 = { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v7 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v8 = [ - { - kind: 'Variable', - name: 'after', - variableName: 'cursor', - }, + "type": "Comment", + "abstractKey": null + } +]; +return { + "fragment": { + "argumentDefinitions": [ + (v0/*: any*/), + (v1/*: any*/), + (v2/*: any*/), + (v3/*: any*/) + ], + "kind": "Fragment", + "metadata": null, + "name": "notificationsListRefetchable", + "selections": [ { - kind: 'Variable', - name: 'first', - variableName: 'count', - }, - v5 /*: any*/, + "alias": null, + "args": (v4/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "args": [ + { + "kind": "Variable", + "name": "count", + "variableName": "count" + }, + { + "kind": "Variable", + "name": "cursor", + "variableName": "cursor" + }, + (v5/*: any*/) + ], + "kind": "FragmentSpread", + "name": "NotificationsListFragment" + } + ], + "storageKey": null + } + ], + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": [ + (v0/*: any*/), + (v1/*: any*/), + (v3/*: any*/), + (v2/*: any*/) ], - v9 = [ - v7 /*: any*/, - v6 /*: any*/, + "kind": "Operation", + "name": "notificationsListRefetchable", + "selections": [ { - kind: 'InlineFragment', - selections: [ + "alias": null, + "args": (v4/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v6/*: any*/), + (v7/*: any*/), { - alias: null, - args: null, - kind: 'ScalarField', - name: 'body', - storageKey: null, - }, + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "notificationsUnreadCount", + "storageKey": null + }, + { + "alias": null, + "args": (v8/*: any*/), + "concreteType": "NotificationConnection", + "kind": "LinkedField", + "name": "notifications", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "NotificationEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Notification", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v7/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "unread", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "pk", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "timestamp", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "level", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "verb", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "description", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "data", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "actor", + "plural": false, + "selections": [ + (v6/*: any*/), + (v7/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 48 + }, + { + "kind": "Literal", + "name": "width", + "value": 48 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "avatar", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "avatar(height:48,width:48)" + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "fullName", + "storageKey": null + } + ], + "type": "User", + "abstractKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "target", + "plural": false, + "selections": (v9/*: any*/), + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "actionObject", + "plural": false, + "selections": (v9/*: any*/), + "storageKey": null + }, + (v6/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": (v8/*: any*/), + "filters": [ + "verbs" + ], + "handle": "connection", + "key": "user_notifications", + "kind": "LinkedHandle", + "name": "notifications" + } + ], + "type": "User", + "abstractKey": null + } ], - type: 'Comment', - abstractKey: null, - }, + "storageKey": null + } ] - return { - fragment: { - argumentDefinitions: [v0 /*: any*/, v1 /*: any*/, v2 /*: any*/, v3 /*: any*/], - kind: 'Fragment', - metadata: null, - name: 'notificationsListRefetchable', - selections: [ - { - alias: null, - args: v4 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - args: [ - { - kind: 'Variable', - name: 'count', - variableName: 'count', - }, - { - kind: 'Variable', - name: 'cursor', - variableName: 'cursor', - }, - v5 /*: any*/, - ], - kind: 'FragmentSpread', - name: 'NotificationsListFragment', - }, - ], - storageKey: null, - }, - ], - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: [v0 /*: any*/, v1 /*: any*/, v3 /*: any*/, v2 /*: any*/], - kind: 'Operation', - name: 'notificationsListRefetchable', - selections: [ - { - alias: null, - args: v4 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v6 /*: any*/, - v7 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'notificationsUnreadCount', - storageKey: null, - }, - { - alias: null, - args: v8 /*: any*/, - concreteType: 'NotificationConnection', - kind: 'LinkedField', - name: 'notifications', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'NotificationEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Notification', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v7 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'unread', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'pk', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'timestamp', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'level', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'verb', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'description', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'data', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'actor', - plural: false, - selections: [ - v6 /*: any*/, - v7 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 48, - }, - { - kind: 'Literal', - name: 'width', - value: 48, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'avatar', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'avatar(height:48,width:48)', - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'fullName', - storageKey: null, - }, - ], - type: 'User', - abstractKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'target', - plural: false, - selections: v9 /*: any*/, - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'actionObject', - plural: false, - selections: v9 /*: any*/, - storageKey: null, - }, - v6 /*: any*/, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: v8 /*: any*/, - filters: ['verbs'], - handle: 'connection', - key: 'user_notifications', - kind: 'LinkedHandle', - name: 'notifications', - }, - ], - type: 'User', - abstractKey: null, - }, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: 'cb6015305038b797b1e0172988517f82', - id: null, - metadata: {}, - name: 'notificationsListRefetchable', - operationKind: 'query', - text: 'query notificationsListRefetchable(\n $count: Int = 10\n $cursor: String\n $verbs: String\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...NotificationsListFragment_LXqp7\n id\n }\n}\n\nfragment NotificationItemFragment on Notification {\n id\n pk\n unread\n timestamp\n level\n verb\n description\n data\n actor {\n __typename\n id\n ... on User {\n avatar(width: 48, height: 48) {\n url\n }\n fullName\n }\n }\n target {\n id\n __typename\n ... on Comment {\n id\n body\n }\n }\n actionObject {\n id\n __typename\n ... on Comment {\n id\n body\n }\n }\n}\n\nfragment NotificationsListFragment_LXqp7 on User {\n id\n notificationsUnreadCount\n notifications(first: $count, after: $cursor, verbs: $verbs) {\n edges {\n cursor\n node {\n id\n unread\n ...NotificationItemFragment\n __typename\n }\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n', - }, + }, + "params": { + "cacheID": "cb6015305038b797b1e0172988517f82", + "id": null, + "metadata": {}, + "name": "notificationsListRefetchable", + "operationKind": "query", + "text": "query notificationsListRefetchable(\n $count: Int = 10\n $cursor: String\n $verbs: String\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...NotificationsListFragment_LXqp7\n id\n }\n}\n\nfragment NotificationItemFragment on Notification {\n id\n pk\n unread\n timestamp\n level\n verb\n description\n data\n actor {\n __typename\n id\n ... on User {\n avatar(width: 48, height: 48) {\n url\n }\n fullName\n }\n }\n target {\n id\n __typename\n ... on Comment {\n id\n body\n }\n }\n actionObject {\n id\n __typename\n ... on Comment {\n id\n body\n }\n }\n}\n\nfragment NotificationsListFragment_LXqp7 on User {\n id\n notificationsUnreadCount\n notifications(first: $count, after: $cursor, verbs: $verbs) {\n edges {\n cursor\n node {\n id\n unread\n ...NotificationItemFragment\n __typename\n }\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = 'a6a3cbaf1db8c4d17187ab6631bf2764' +(node as any).hash = "a6a3cbaf1db8c4d17187ab6631bf2764"; -export default node +export default node; diff --git a/packages/components/__generated__/profilesListRefetchable.graphql.ts b/packages/components/__generated__/profilesListRefetchable.graphql.ts index ba0b3a3a..35a41d06 100644 --- a/packages/components/__generated__/profilesListRefetchable.graphql.ts +++ b/packages/components/__generated__/profilesListRefetchable.graphql.ts @@ -5,289 +5,285 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type profilesListRefetchable$variables = { - count?: number | null | undefined - cursor?: string | null | undefined - id: string -} + count?: number | null | undefined; + cursor?: string | null | undefined; + id: string; +}; export type profilesListRefetchable$data = { - readonly node: - | { - readonly ' $fragmentSpreads': FragmentRefs<'ProfilesListFragment'> - } - | null - | undefined -} + readonly node: { + readonly " $fragmentSpreads": FragmentRefs<"ProfilesListFragment">; + } | null | undefined; +}; export type profilesListRefetchable = { - response: profilesListRefetchable$data - variables: profilesListRefetchable$variables -} + response: profilesListRefetchable$data; + variables: profilesListRefetchable$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ - { - defaultValue: 10, - kind: 'LocalArgument', - name: 'count', - }, - { - defaultValue: null, - kind: 'LocalArgument', - name: 'cursor', - }, - { - defaultValue: null, - kind: 'LocalArgument', - name: 'id', - }, - ], - v1 = [ +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "defaultValue": 10, + "kind": "LocalArgument", + "name": "count" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "cursor" + }, + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "id" + } +], +v1 = [ + { + "kind": "Variable", + "name": "id", + "variableName": "id" + } +], +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null +}, +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v4 = [ + { + "kind": "Variable", + "name": "after", + "variableName": "cursor" + }, + { + "kind": "Variable", + "name": "first", + "variableName": "count" + } +]; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "profilesListRefetchable", + "selections": [ { - kind: 'Variable', - name: 'id', - variableName: 'id', - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "args": [ + { + "kind": "Variable", + "name": "count", + "variableName": "count" + }, + { + "kind": "Variable", + "name": "cursor", + "variableName": "cursor" + } + ], + "kind": "FragmentSpread", + "name": "ProfilesListFragment" + } + ], + "storageKey": null + } ], - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v3 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v4 = [ - { - kind: 'Variable', - name: 'after', - variableName: 'cursor', - }, + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "profilesListRefetchable", + "selections": [ { - kind: 'Variable', - name: 'first', - variableName: 'count', - }, + "alias": null, + "args": (v1/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v2/*: any*/), + (v3/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + { + "alias": null, + "args": (v4/*: any*/), + "concreteType": "ProfileConnection", + "kind": "LinkedField", + "name": "profiles", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ProfileEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "name", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100 + }, + { + "kind": "Literal", + "name": "width", + "value": 100 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "image(height:100,width:100)" + }, + { + "alias": null, + "args": null, + "concreteType": "URLPath", + "kind": "LinkedField", + "name": "urlPath", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "path", + "storageKey": null + }, + (v3/*: any*/) + ], + "storageKey": null + }, + (v2/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": (v4/*: any*/), + "filters": null, + "handle": "connection", + "key": "ProfilesListFragment_profiles", + "kind": "LinkedHandle", + "name": "profiles" + } + ], + "type": "User", + "abstractKey": null + } + ], + "storageKey": null + } ] - return { - fragment: { - argumentDefinitions: v0 /*: any*/, - kind: 'Fragment', - metadata: null, - name: 'profilesListRefetchable', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - args: [ - { - kind: 'Variable', - name: 'count', - variableName: 'count', - }, - { - kind: 'Variable', - name: 'cursor', - variableName: 'cursor', - }, - ], - kind: 'FragmentSpread', - name: 'ProfilesListFragment', - }, - ], - storageKey: null, - }, - ], - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: v0 /*: any*/, - kind: 'Operation', - name: 'profilesListRefetchable', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v2 /*: any*/, - v3 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - { - alias: null, - args: v4 /*: any*/, - concreteType: 'ProfileConnection', - kind: 'LinkedField', - name: 'profiles', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ProfileEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v3 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'name', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 100, - }, - { - kind: 'Literal', - name: 'width', - value: 100, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'image(height:100,width:100)', - }, - { - alias: null, - args: null, - concreteType: 'URLPath', - kind: 'LinkedField', - name: 'urlPath', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'path', - storageKey: null, - }, - v3 /*: any*/, - ], - storageKey: null, - }, - v2 /*: any*/, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: v4 /*: any*/, - filters: null, - handle: 'connection', - key: 'ProfilesListFragment_profiles', - kind: 'LinkedHandle', - name: 'profiles', - }, - ], - type: 'User', - abstractKey: null, - }, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: '4076e2b1f754ffe0e086cd58c1941149', - id: null, - metadata: {}, - name: 'profilesListRefetchable', - operationKind: 'query', - text: 'query profilesListRefetchable(\n $count: Int = 10\n $cursor: String\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...ProfilesListFragment_1G22uz\n id\n }\n}\n\nfragment ProfileItemFragment on Profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n urlPath {\n path\n id\n }\n}\n\nfragment ProfilesListFragment_1G22uz on User {\n id\n profiles(first: $count, after: $cursor) {\n edges {\n cursor\n node {\n id\n ...ProfileItemFragment\n __typename\n }\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n', - }, + }, + "params": { + "cacheID": "4076e2b1f754ffe0e086cd58c1941149", + "id": null, + "metadata": {}, + "name": "profilesListRefetchable", + "operationKind": "query", + "text": "query profilesListRefetchable(\n $count: Int = 10\n $cursor: String\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...ProfilesListFragment_1G22uz\n id\n }\n}\n\nfragment ProfileItemFragment on Profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n urlPath {\n path\n id\n }\n}\n\nfragment ProfilesListFragment_1G22uz on User {\n id\n profiles(first: $count, after: $cursor) {\n edges {\n cursor\n node {\n id\n ...ProfileItemFragment\n __typename\n }\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = '220e97b8d45724f507762ff4f3d39dce' +(node as any).hash = "220e97b8d45724f507762ff4f3d39dce"; -export default node +export default node; diff --git a/packages/components/__generated__/useMessageCountUpdateSubscription.graphql.ts b/packages/components/__generated__/useMessageCountUpdateSubscription.graphql.ts index 3a40e9cf..0ad2e3e0 100644 --- a/packages/components/__generated__/useMessageCountUpdateSubscription.graphql.ts +++ b/packages/components/__generated__/useMessageCountUpdateSubscription.graphql.ts @@ -5,327 +5,304 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, GraphQLSubscription } from 'relay-runtime' +import { ConcreteRequest, GraphQLSubscription } from 'relay-runtime'; export type useMessageCountUpdateSubscription$variables = { - profileId: string -} + profileId: string; +}; export type useMessageCountUpdateSubscription$data = { - readonly chatRoomOnMessagesCountUpdate: - | { - readonly profile: - | { - readonly chatRooms: - | { - readonly edges: ReadonlyArray< - | { - readonly node: - | { - readonly allMessages: - | { - readonly edges: ReadonlyArray< - | { - readonly node: - | { - readonly id: string - readonly isRead: boolean | null | undefined - } - | null - | undefined - } - | null - | undefined - > - } - | null - | undefined - readonly id: string - readonly unreadMessages: - | { - readonly count: number - readonly markedUnread: boolean - } - | null - | undefined - } - | null - | undefined - } - | null - | undefined - > - readonly totalCount: number | null | undefined - } - | null - | undefined - readonly id: string - } - | null - | undefined - } - | null - | undefined -} + readonly chatRoomOnMessagesCountUpdate: { + readonly profile: { + readonly chatRooms: { + readonly edges: ReadonlyArray<{ + readonly node: { + readonly allMessages: { + readonly edges: ReadonlyArray<{ + readonly node: { + readonly id: string; + readonly isRead: boolean | null | undefined; + } | null | undefined; + } | null | undefined>; + } | null | undefined; + readonly id: string; + readonly unreadMessages: { + readonly count: number; + readonly markedUnread: boolean; + } | null | undefined; + } | null | undefined; + } | null | undefined>; + readonly totalCount: number | null | undefined; + } | null | undefined; + readonly id: string; + } | null | undefined; + } | null | undefined; +}; export type useMessageCountUpdateSubscription = { - response: useMessageCountUpdateSubscription$data - variables: useMessageCountUpdateSubscription$variables -} + response: useMessageCountUpdateSubscription$data; + variables: useMessageCountUpdateSubscription$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ - { - defaultValue: null, - kind: 'LocalArgument', - name: 'profileId', - }, - ], - v1 = [ - { - kind: 'Variable', - name: 'profileId', - variableName: 'profileId', - }, - ], - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v3 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'totalCount', - storageKey: null, - }, - v4 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'count', - storageKey: null, - }, - v5 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'markedUnread', - storageKey: null, - }, - v6 = { - alias: null, - args: null, - concreteType: 'MessageConnection', - kind: 'LinkedField', - name: 'allMessages', - plural: false, - selections: [ +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "profileId" + } +], +v1 = [ + { + "kind": "Variable", + "name": "profileId", + "variableName": "profileId" + } +], +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "totalCount", + "storageKey": null +}, +v4 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "count", + "storageKey": null +}, +v5 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "markedUnread", + "storageKey": null +}, +v6 = { + "alias": null, + "args": null, + "concreteType": "MessageConnection", + "kind": "LinkedField", + "name": "allMessages", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "MessageEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ { - alias: null, - args: null, - concreteType: 'MessageEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ + "alias": null, + "args": null, + "concreteType": "Message", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v2/*: any*/), { - alias: null, - args: null, - concreteType: 'Message', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isRead', - storageKey: null, - }, - ], - storageKey: null, - }, + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isRead", + "storageKey": null + } ], - storageKey: null, - }, + "storageKey": null + } ], - storageKey: null, + "storageKey": null } - return { - fragment: { - argumentDefinitions: v0 /*: any*/, - kind: 'Fragment', - metadata: null, - name: 'useMessageCountUpdateSubscription', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'ChatRoomOnMessagesCountUpdate', - kind: 'LinkedField', - name: 'chatRoomOnMessagesCountUpdate', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - concreteType: 'ChatRoomConnection', - kind: 'LinkedField', - name: 'chatRooms', - plural: false, - selections: [ - v3 /*: any*/, - { - alias: null, - args: null, - concreteType: 'ChatRoomEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoom', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - concreteType: 'UnreadMessageCount', - kind: 'LinkedField', - name: 'unreadMessages', - plural: false, - selections: [v4 /*: any*/, v5 /*: any*/], - storageKey: null, - }, - v6 /*: any*/, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'Subscription', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: v0 /*: any*/, - kind: 'Operation', - name: 'useMessageCountUpdateSubscription', - selections: [ - { - alias: null, - args: v1 /*: any*/, - concreteType: 'ChatRoomOnMessagesCountUpdate', - kind: 'LinkedField', - name: 'chatRoomOnMessagesCountUpdate', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - concreteType: 'ChatRoomConnection', - kind: 'LinkedField', - name: 'chatRooms', - plural: false, - selections: [ - v3 /*: any*/, - { - alias: null, - args: null, - concreteType: 'ChatRoomEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoom', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - concreteType: 'UnreadMessageCount', - kind: 'LinkedField', - name: 'unreadMessages', - plural: false, - selections: [v4 /*: any*/, v5 /*: any*/, v2 /*: any*/], - storageKey: null, - }, - v6 /*: any*/, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: 'ee87a4300f113870813418b0a818d031', - id: null, - metadata: {}, - name: 'useMessageCountUpdateSubscription', - operationKind: 'subscription', - text: 'subscription useMessageCountUpdateSubscription(\n $profileId: ID!\n) {\n chatRoomOnMessagesCountUpdate(profileId: $profileId) {\n profile {\n id\n chatRooms {\n totalCount\n edges {\n node {\n id\n unreadMessages {\n count\n markedUnread\n id\n }\n allMessages {\n edges {\n node {\n id\n isRead\n }\n }\n }\n }\n }\n }\n }\n }\n}\n', - }, + ], + "storageKey": null +}; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "useMessageCountUpdateSubscription", + "selections": [ + { + "alias": null, + "args": (v1/*: any*/), + "concreteType": "ChatRoomOnMessagesCountUpdate", + "kind": "LinkedField", + "name": "chatRoomOnMessagesCountUpdate", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "ChatRoomConnection", + "kind": "LinkedField", + "name": "chatRooms", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "ChatRoomEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoom", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "UnreadMessageCount", + "kind": "LinkedField", + "name": "unreadMessages", + "plural": false, + "selections": [ + (v4/*: any*/), + (v5/*: any*/) + ], + "storageKey": null + }, + (v6/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "type": "Subscription", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "useMessageCountUpdateSubscription", + "selections": [ + { + "alias": null, + "args": (v1/*: any*/), + "concreteType": "ChatRoomOnMessagesCountUpdate", + "kind": "LinkedField", + "name": "chatRoomOnMessagesCountUpdate", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "ChatRoomConnection", + "kind": "LinkedField", + "name": "chatRooms", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "ChatRoomEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoom", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "UnreadMessageCount", + "kind": "LinkedField", + "name": "unreadMessages", + "plural": false, + "selections": [ + (v4/*: any*/), + (v5/*: any*/), + (v2/*: any*/) + ], + "storageKey": null + }, + (v6/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ] + }, + "params": { + "cacheID": "ee87a4300f113870813418b0a818d031", + "id": null, + "metadata": {}, + "name": "useMessageCountUpdateSubscription", + "operationKind": "subscription", + "text": "subscription useMessageCountUpdateSubscription(\n $profileId: ID!\n) {\n chatRoomOnMessagesCountUpdate(profileId: $profileId) {\n profile {\n id\n chatRooms {\n totalCount\n edges {\n node {\n id\n unreadMessages {\n count\n markedUnread\n id\n }\n allMessages {\n edges {\n node {\n id\n isRead\n }\n }\n }\n }\n }\n }\n }\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = '57b09f90d1cdf7f57abc3956378d6b27' +(node as any).hash = "57b09f90d1cdf7f57abc3956378d6b27"; -export default node +export default node; diff --git a/packages/components/__generated__/useMessagesListSubscription.graphql.ts b/packages/components/__generated__/useMessagesListSubscription.graphql.ts index 9706f661..5898f518 100644 --- a/packages/components/__generated__/useMessagesListSubscription.graphql.ts +++ b/packages/components/__generated__/useMessagesListSubscription.graphql.ts @@ -5,280 +5,275 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, GraphQLSubscription } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, GraphQLSubscription } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type useMessagesListSubscription$variables = { - connections: ReadonlyArray - roomId: string -} + connections: ReadonlyArray; + roomId: string; +}; export type useMessagesListSubscription$data = { - readonly chatRoomOnNewMessage: - | { - readonly message: - | { - readonly node: - | { - readonly actionObject: - | { - readonly id: string - } - | null - | undefined - readonly ' $fragmentSpreads': FragmentRefs<'MessageItemFragment'> - } - | null - | undefined - } - | null - | undefined - } - | null - | undefined -} + readonly chatRoomOnNewMessage: { + readonly message: { + readonly node: { + readonly actionObject: { + readonly id: string; + } | null | undefined; + readonly " $fragmentSpreads": FragmentRefs<"MessageItemFragment">; + } | null | undefined; + } | null | undefined; + } | null | undefined; +}; export type useMessagesListSubscription = { - response: useMessagesListSubscription$data - variables: useMessagesListSubscription$variables -} + response: useMessagesListSubscription$data; + variables: useMessagesListSubscription$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'connections', - }, - v1 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'roomId', - }, - v2 = [ +const node: ConcreteRequest = (function(){ +var v0 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "connections" +}, +v1 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "roomId" +}, +v2 = [ + { + "kind": "Variable", + "name": "roomId", + "variableName": "roomId" + } +], +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v4 = [ + (v3/*: any*/) +]; +return { + "fragment": { + "argumentDefinitions": [ + (v0/*: any*/), + (v1/*: any*/) + ], + "kind": "Fragment", + "metadata": null, + "name": "useMessagesListSubscription", + "selections": [ { - kind: 'Variable', - name: 'roomId', - variableName: 'roomId', - }, + "alias": null, + "args": (v2/*: any*/), + "concreteType": "ChatRoomOnNewMessage", + "kind": "LinkedField", + "name": "chatRoomOnNewMessage", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "MessageEdge", + "kind": "LinkedField", + "name": "message", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Message", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "args": null, + "kind": "FragmentSpread", + "name": "MessageItemFragment" + }, + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "actionObject", + "plural": false, + "selections": (v4/*: any*/), + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "type": "Subscription", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": [ + (v1/*: any*/), + (v0/*: any*/) ], - v3 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v4 = [v3 /*: any*/] - return { - fragment: { - argumentDefinitions: [v0 /*: any*/, v1 /*: any*/], - kind: 'Fragment', - metadata: null, - name: 'useMessagesListSubscription', - selections: [ - { - alias: null, - args: v2 /*: any*/, - concreteType: 'ChatRoomOnNewMessage', - kind: 'LinkedField', - name: 'chatRoomOnNewMessage', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'MessageEdge', - kind: 'LinkedField', - name: 'message', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Message', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - args: null, - kind: 'FragmentSpread', - name: 'MessageItemFragment', - }, - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'actionObject', - plural: false, - selections: v4 /*: any*/, - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'Subscription', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: [v1 /*: any*/, v0 /*: any*/], - kind: 'Operation', - name: 'useMessagesListSubscription', - selections: [ - { - alias: null, - args: v2 /*: any*/, - concreteType: 'ChatRoomOnNewMessage', - kind: 'LinkedField', - name: 'chatRoomOnNewMessage', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'MessageEdge', - kind: 'LinkedField', - name: 'message', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Message', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v3 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'content', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'created', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'extraData', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Message', - kind: 'LinkedField', - name: 'inReplyTo', - plural: false, - selections: v4 /*: any*/, - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isRead', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'pk', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: v4 /*: any*/, - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'verb', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'actionObject', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v3 /*: any*/, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - filters: null, - handle: 'prependEdge', - key: '', - kind: 'LinkedHandle', - name: 'message', - handleArgs: [ - { - kind: 'Variable', - name: 'connections', - variableName: 'connections', - }, - ], - }, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: '883bb43d76a5fc883f45f30697fd86db', - id: null, - metadata: {}, - name: 'useMessagesListSubscription', - operationKind: 'subscription', - text: 'subscription useMessagesListSubscription(\n $roomId: ID!\n) {\n chatRoomOnNewMessage(roomId: $roomId) {\n message {\n node {\n ...MessageItemFragment\n actionObject {\n __typename\n id\n }\n id\n }\n }\n }\n}\n\nfragment MessageItemFragment on Message {\n id\n content\n created\n extraData\n inReplyTo {\n id\n }\n isRead\n pk\n profile {\n id\n }\n verb\n}\n', - }, + "kind": "Operation", + "name": "useMessagesListSubscription", + "selections": [ + { + "alias": null, + "args": (v2/*: any*/), + "concreteType": "ChatRoomOnNewMessage", + "kind": "LinkedField", + "name": "chatRoomOnNewMessage", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "MessageEdge", + "kind": "LinkedField", + "name": "message", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Message", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "content", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "created", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "extraData", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Message", + "kind": "LinkedField", + "name": "inReplyTo", + "plural": false, + "selections": (v4/*: any*/), + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isRead", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "pk", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": (v4/*: any*/), + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "verb", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "actionObject", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null + }, + (v3/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "filters": null, + "handle": "prependEdge", + "key": "", + "kind": "LinkedHandle", + "name": "message", + "handleArgs": [ + { + "kind": "Variable", + "name": "connections", + "variableName": "connections" + } + ] + } + ], + "storageKey": null + } + ] + }, + "params": { + "cacheID": "883bb43d76a5fc883f45f30697fd86db", + "id": null, + "metadata": {}, + "name": "useMessagesListSubscription", + "operationKind": "subscription", + "text": "subscription useMessagesListSubscription(\n $roomId: ID!\n) {\n chatRoomOnNewMessage(roomId: $roomId) {\n message {\n node {\n ...MessageItemFragment\n actionObject {\n __typename\n id\n }\n id\n }\n }\n }\n}\n\nfragment MessageItemFragment on Message {\n id\n content\n created\n extraData\n inReplyTo {\n id\n }\n isRead\n pk\n profile {\n id\n }\n verb\n}\n" } -})() +}; +})(); -;(node as any).hash = '3a374ae22dfceafafaa817179b020ccb' +(node as any).hash = "3a374ae22dfceafafaa817179b020ccb"; -export default node +export default node; diff --git a/packages/components/__generated__/useNotificationsSubscription.graphql.ts b/packages/components/__generated__/useNotificationsSubscription.graphql.ts index 4731d830..6256f6bd 100644 --- a/packages/components/__generated__/useNotificationsSubscription.graphql.ts +++ b/packages/components/__generated__/useNotificationsSubscription.graphql.ts @@ -5,430 +5,420 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, GraphQLSubscription } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, GraphQLSubscription } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type useNotificationsSubscription$variables = { - connections: ReadonlyArray -} + connections: ReadonlyArray; +}; export type useNotificationsSubscription$data = { - readonly onNotificationChange: - | { - readonly createdNotification: - | { - readonly node: - | { - readonly recipient: { - readonly id: string - readonly ' $fragmentSpreads': FragmentRefs<'NotificationUserMenuFragment'> - } - readonly ' $fragmentSpreads': FragmentRefs<'NotificationItemFragment'> - } - | null - | undefined - } - | null - | undefined - readonly deletedNotificationId: string | null | undefined - readonly updatedNotification: - | { - readonly id: string - readonly ' $fragmentSpreads': FragmentRefs<'NotificationItemFragment'> - } - | null - | undefined - } - | null - | undefined -} + readonly onNotificationChange: { + readonly createdNotification: { + readonly node: { + readonly recipient: { + readonly id: string; + readonly " $fragmentSpreads": FragmentRefs<"NotificationUserMenuFragment">; + }; + readonly " $fragmentSpreads": FragmentRefs<"NotificationItemFragment">; + } | null | undefined; + } | null | undefined; + readonly deletedNotificationId: string | null | undefined; + readonly updatedNotification: { + readonly id: string; + readonly " $fragmentSpreads": FragmentRefs<"NotificationItemFragment">; + } | null | undefined; + } | null | undefined; +}; export type useNotificationsSubscription = { - response: useNotificationsSubscription$data - variables: useNotificationsSubscription$variables -} + response: useNotificationsSubscription$data; + variables: useNotificationsSubscription$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = [ - { - defaultValue: null, - kind: 'LocalArgument', - name: 'connections', - }, - ], - v1 = { - args: null, - kind: 'FragmentSpread', - name: 'NotificationItemFragment', - }, - v2 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v3 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'deletedNotificationId', - storageKey: null, - }, - v4 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'pk', - storageKey: null, - }, - v5 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'unread', - storageKey: null, - }, - v6 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'timestamp', - storageKey: null, - }, - v7 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'level', - storageKey: null, - }, - v8 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'verb', - storageKey: null, - }, - v9 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'description', - storageKey: null, - }, - v10 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'data', - storageKey: null, - }, - v11 = { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v12 = { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'actor', - plural: false, - selections: [ - v11 /*: any*/, - v2 /*: any*/, +const node: ConcreteRequest = (function(){ +var v0 = [ + { + "defaultValue": null, + "kind": "LocalArgument", + "name": "connections" + } +], +v1 = { + "args": null, + "kind": "FragmentSpread", + "name": "NotificationItemFragment" +}, +v2 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "deletedNotificationId", + "storageKey": null +}, +v4 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "pk", + "storageKey": null +}, +v5 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "unread", + "storageKey": null +}, +v6 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "timestamp", + "storageKey": null +}, +v7 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "level", + "storageKey": null +}, +v8 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "verb", + "storageKey": null +}, +v9 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "description", + "storageKey": null +}, +v10 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "data", + "storageKey": null +}, +v11 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null +}, +v12 = { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "actor", + "plural": false, + "selections": [ + (v11/*: any*/), + (v2/*: any*/), + { + "kind": "InlineFragment", + "selections": [ { - kind: 'InlineFragment', - selections: [ + "alias": null, + "args": [ { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 48, - }, - { - kind: 'Literal', - name: 'width', - value: 48, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'avatar', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'avatar(height:48,width:48)', + "kind": "Literal", + "name": "height", + "value": 48 }, { - alias: null, - args: null, - kind: 'ScalarField', - name: 'fullName', - storageKey: null, - }, + "kind": "Literal", + "name": "width", + "value": 48 + } ], - type: 'User', - abstractKey: null, + "concreteType": "File", + "kind": "LinkedField", + "name": "avatar", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "avatar(height:48,width:48)" }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "fullName", + "storageKey": null + } ], - storageKey: null, - }, - v13 = [ - v2 /*: any*/, - v11 /*: any*/, + "type": "User", + "abstractKey": null + } + ], + "storageKey": null +}, +v13 = [ + (v2/*: any*/), + (v11/*: any*/), + { + "kind": "InlineFragment", + "selections": [ { - kind: 'InlineFragment', - selections: [ + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "body", + "storageKey": null + } + ], + "type": "Comment", + "abstractKey": null + } +], +v14 = { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "target", + "plural": false, + "selections": (v13/*: any*/), + "storageKey": null +}, +v15 = { + "alias": null, + "args": null, + "concreteType": null, + "kind": "LinkedField", + "name": "actionObject", + "plural": false, + "selections": (v13/*: any*/), + "storageKey": null +}; +return { + "fragment": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Fragment", + "metadata": null, + "name": "useNotificationsSubscription", + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "OnNotificationChange", + "kind": "LinkedField", + "name": "onNotificationChange", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "NotificationEdge", + "kind": "LinkedField", + "name": "createdNotification", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Notification", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v1/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "recipient", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "args": null, + "kind": "FragmentSpread", + "name": "NotificationUserMenuFragment" + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, { - alias: null, - args: null, - kind: 'ScalarField', - name: 'body', - storageKey: null, + "alias": null, + "args": null, + "concreteType": "Notification", + "kind": "LinkedField", + "name": "updatedNotification", + "plural": false, + "selections": [ + (v2/*: any*/), + (v1/*: any*/) + ], + "storageKey": null }, + (v3/*: any*/) ], - type: 'Comment', - abstractKey: null, - }, + "storageKey": null + } ], - v14 = { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'target', - plural: false, - selections: v13 /*: any*/, - storageKey: null, - }, - v15 = { - alias: null, - args: null, - concreteType: null, - kind: 'LinkedField', - name: 'actionObject', - plural: false, - selections: v13 /*: any*/, - storageKey: null, - } - return { - fragment: { - argumentDefinitions: v0 /*: any*/, - kind: 'Fragment', - metadata: null, - name: 'useNotificationsSubscription', - selections: [ - { - alias: null, - args: null, - concreteType: 'OnNotificationChange', - kind: 'LinkedField', - name: 'onNotificationChange', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'NotificationEdge', - kind: 'LinkedField', - name: 'createdNotification', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Notification', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v1 /*: any*/, - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'recipient', - plural: false, - selections: [ - v2 /*: any*/, - { - args: null, - kind: 'FragmentSpread', - name: 'NotificationUserMenuFragment', - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Notification', - kind: 'LinkedField', - name: 'updatedNotification', - plural: false, - selections: [v2 /*: any*/, v1 /*: any*/], - storageKey: null, - }, - v3 /*: any*/, - ], - storageKey: null, - }, - ], - type: 'Subscription', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: v0 /*: any*/, - kind: 'Operation', - name: 'useNotificationsSubscription', - selections: [ - { - alias: null, - args: null, - concreteType: 'OnNotificationChange', - kind: 'LinkedField', - name: 'onNotificationChange', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'NotificationEdge', - kind: 'LinkedField', - name: 'createdNotification', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Notification', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v2 /*: any*/, - v4 /*: any*/, - v5 /*: any*/, - v6 /*: any*/, - v7 /*: any*/, - v8 /*: any*/, - v9 /*: any*/, - v10 /*: any*/, - v12 /*: any*/, - v14 /*: any*/, - v15 /*: any*/, - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'recipient', - plural: false, - selections: [ - v2 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'notificationsUnreadCount', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - filters: null, - handle: 'prependEdge', - key: '', - kind: 'LinkedHandle', - name: 'createdNotification', - handleArgs: [ - { - kind: 'Variable', - name: 'connections', - variableName: 'connections', - }, - ], - }, - { - alias: null, - args: null, - concreteType: 'Notification', - kind: 'LinkedField', - name: 'updatedNotification', - plural: false, - selections: [ - v2 /*: any*/, - v4 /*: any*/, - v5 /*: any*/, - v6 /*: any*/, - v7 /*: any*/, - v8 /*: any*/, - v9 /*: any*/, - v10 /*: any*/, - v12 /*: any*/, - v14 /*: any*/, - v15 /*: any*/, - ], - storageKey: null, - }, - v3 /*: any*/, - { - alias: null, - args: null, - filters: null, - handle: 'deleteRecord', - key: '', - kind: 'ScalarHandle', - name: 'deletedNotificationId', - }, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: 'dba91e538812ad2152bd5fb5c1284af4', - id: null, - metadata: {}, - name: 'useNotificationsSubscription', - operationKind: 'subscription', - text: 'subscription useNotificationsSubscription {\n onNotificationChange {\n createdNotification {\n node {\n ...NotificationItemFragment\n recipient {\n id\n ...NotificationUserMenuFragment\n }\n id\n }\n }\n updatedNotification {\n id\n ...NotificationItemFragment\n }\n deletedNotificationId\n }\n}\n\nfragment NotificationItemFragment on Notification {\n id\n pk\n unread\n timestamp\n level\n verb\n description\n data\n actor {\n __typename\n id\n ... on User {\n avatar(width: 48, height: 48) {\n url\n }\n fullName\n }\n }\n target {\n id\n __typename\n ... on Comment {\n id\n body\n }\n }\n actionObject {\n id\n __typename\n ... on Comment {\n id\n body\n }\n }\n}\n\nfragment NotificationUserMenuFragment on User {\n id\n notificationsUnreadCount\n}\n', - }, + "type": "Subscription", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": (v0/*: any*/), + "kind": "Operation", + "name": "useNotificationsSubscription", + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "OnNotificationChange", + "kind": "LinkedField", + "name": "onNotificationChange", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "NotificationEdge", + "kind": "LinkedField", + "name": "createdNotification", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Notification", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v2/*: any*/), + (v4/*: any*/), + (v5/*: any*/), + (v6/*: any*/), + (v7/*: any*/), + (v8/*: any*/), + (v9/*: any*/), + (v10/*: any*/), + (v12/*: any*/), + (v14/*: any*/), + (v15/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "recipient", + "plural": false, + "selections": [ + (v2/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "notificationsUnreadCount", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "filters": null, + "handle": "prependEdge", + "key": "", + "kind": "LinkedHandle", + "name": "createdNotification", + "handleArgs": [ + { + "kind": "Variable", + "name": "connections", + "variableName": "connections" + } + ] + }, + { + "alias": null, + "args": null, + "concreteType": "Notification", + "kind": "LinkedField", + "name": "updatedNotification", + "plural": false, + "selections": [ + (v2/*: any*/), + (v4/*: any*/), + (v5/*: any*/), + (v6/*: any*/), + (v7/*: any*/), + (v8/*: any*/), + (v9/*: any*/), + (v10/*: any*/), + (v12/*: any*/), + (v14/*: any*/), + (v15/*: any*/) + ], + "storageKey": null + }, + (v3/*: any*/), + { + "alias": null, + "args": null, + "filters": null, + "handle": "deleteRecord", + "key": "", + "kind": "ScalarHandle", + "name": "deletedNotificationId" + } + ], + "storageKey": null + } + ] + }, + "params": { + "cacheID": "dba91e538812ad2152bd5fb5c1284af4", + "id": null, + "metadata": {}, + "name": "useNotificationsSubscription", + "operationKind": "subscription", + "text": "subscription useNotificationsSubscription {\n onNotificationChange {\n createdNotification {\n node {\n ...NotificationItemFragment\n recipient {\n id\n ...NotificationUserMenuFragment\n }\n id\n }\n }\n updatedNotification {\n id\n ...NotificationItemFragment\n }\n deletedNotificationId\n }\n}\n\nfragment NotificationItemFragment on Notification {\n id\n pk\n unread\n timestamp\n level\n verb\n description\n data\n actor {\n __typename\n id\n ... on User {\n avatar(width: 48, height: 48) {\n url\n }\n fullName\n }\n }\n target {\n id\n __typename\n ... on Comment {\n id\n body\n }\n }\n actionObject {\n id\n __typename\n ... on Comment {\n id\n body\n }\n }\n}\n\nfragment NotificationUserMenuFragment on User {\n id\n notificationsUnreadCount\n}\n" } -})() +}; +})(); -;(node as any).hash = '1bca63a0d3abbb5c3d3ca3fbfa6e7d37' +(node as any).hash = "1bca63a0d3abbb5c3d3ca3fbfa6e7d37"; -export default node +export default node; diff --git a/packages/components/__generated__/useRoomListSubscription.graphql.ts b/packages/components/__generated__/useRoomListSubscription.graphql.ts index 80f0a53b..3972ae21 100644 --- a/packages/components/__generated__/useRoomListSubscription.graphql.ts +++ b/packages/components/__generated__/useRoomListSubscription.graphql.ts @@ -5,444 +5,433 @@ */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, GraphQLSubscription } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, GraphQLSubscription } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type useRoomListSubscription$variables = { - connections: ReadonlyArray - profileId: string -} + connections: ReadonlyArray; + profileId: string; +}; export type useRoomListSubscription$data = { - readonly chatRoomOnRoomUpdate: - | { - readonly removedParticipants: - | ReadonlyArray< - | { - readonly id: string - readonly profile: - | { - readonly id: string - } - | null - | undefined - } - | null - | undefined - > - | null - | undefined - readonly room: - | { - readonly node: - | { - readonly id: string - readonly isArchived: boolean | null | undefined - readonly participantsCount: number - readonly title: string | null | undefined - readonly ' $fragmentSpreads': FragmentRefs< - 'LastMessageFragment' | 'TitleFragment' | 'UnreadMessagesCountFragment' - > - } - | null - | undefined - } - | null - | undefined - } - | null - | undefined -} + readonly chatRoomOnRoomUpdate: { + readonly removedParticipants: ReadonlyArray<{ + readonly id: string; + readonly profile: { + readonly id: string; + } | null | undefined; + } | null | undefined> | null | undefined; + readonly room: { + readonly node: { + readonly id: string; + readonly isArchived: boolean | null | undefined; + readonly participantsCount: number; + readonly title: string | null | undefined; + readonly " $fragmentSpreads": FragmentRefs<"LastMessageFragment" | "TitleFragment" | "UnreadMessagesCountFragment">; + } | null | undefined; + } | null | undefined; + } | null | undefined; +}; export type useRoomListSubscription = { - response: useRoomListSubscription$data - variables: useRoomListSubscription$variables -} + response: useRoomListSubscription$data; + variables: useRoomListSubscription$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'connections', - }, - v1 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'profileId', - }, - v2 = [ +const node: ConcreteRequest = (function(){ +var v0 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "connections" +}, +v1 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "profileId" +}, +v2 = [ + { + "kind": "Variable", + "name": "profileId", + "variableName": "profileId" + } +], +v3 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v4 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isArchived", + "storageKey": null +}, +v5 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "participantsCount", + "storageKey": null +}, +v6 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "title", + "storageKey": null +}, +v7 = { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + (v3/*: any*/) + ], + "storageKey": null +}, +v8 = [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } +]; +return { + "fragment": { + "argumentDefinitions": [ + (v0/*: any*/), + (v1/*: any*/) + ], + "kind": "Fragment", + "metadata": null, + "name": "useRoomListSubscription", + "selections": [ { - kind: 'Variable', - name: 'profileId', - variableName: 'profileId', - }, + "alias": null, + "args": (v2/*: any*/), + "concreteType": "ChatRoomOnRoomUpdate", + "kind": "LinkedField", + "name": "chatRoomOnRoomUpdate", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomEdge", + "kind": "LinkedField", + "name": "room", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoom", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v3/*: any*/), + (v4/*: any*/), + (v5/*: any*/), + (v6/*: any*/), + { + "args": null, + "kind": "FragmentSpread", + "name": "LastMessageFragment" + }, + { + "args": null, + "kind": "FragmentSpread", + "name": "TitleFragment" + }, + { + "args": null, + "kind": "FragmentSpread", + "name": "UnreadMessagesCountFragment" + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "ChatRoomParticipant", + "kind": "LinkedField", + "name": "removedParticipants", + "plural": true, + "selections": [ + (v3/*: any*/), + (v7/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } ], - v3 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v4 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isArchived', - storageKey: null, - }, - v5 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'participantsCount', - storageKey: null, - }, - v6 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'title', - storageKey: null, - }, - v7 = { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [v3 /*: any*/], - storageKey: null, - }, - v8 = [ + "type": "Subscription", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": [ + (v1/*: any*/), + (v0/*: any*/) + ], + "kind": "Operation", + "name": "useRoomListSubscription", + "selections": [ { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, + "alias": null, + "args": (v2/*: any*/), + "concreteType": "ChatRoomOnRoomUpdate", + "kind": "LinkedField", + "name": "chatRoomOnRoomUpdate", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomEdge", + "kind": "LinkedField", + "name": "room", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoom", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v3/*: any*/), + (v4/*: any*/), + (v5/*: any*/), + (v6/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "lastMessageTime", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "Message", + "kind": "LinkedField", + "name": "lastMessage", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "content", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "isGroup", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "first", + "value": 2 + } + ], + "concreteType": "ChatRoomParticipantConnection", + "kind": "LinkedField", + "name": "participants", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomParticipantEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ChatRoomParticipant", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + (v3/*: any*/), + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "name", + "storageKey": null + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100 + }, + { + "kind": "Literal", + "name": "width", + "value": 100 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": (v8/*: any*/), + "storageKey": "image(height:100,width:100)" + } + ], + "storageKey": null + }, + (v3/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": "participants(first:2)" + }, + { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 144 + }, + { + "kind": "Literal", + "name": "width", + "value": 144 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": (v8/*: any*/), + "storageKey": "image(height:144,width:144)" + }, + { + "alias": null, + "args": null, + "concreteType": "UnreadMessageCount", + "kind": "LinkedField", + "name": "unreadMessages", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "count", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "markedUnread", + "storageKey": null + }, + (v3/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "ChatRoomParticipant", + "kind": "LinkedField", + "name": "removedParticipants", + "plural": true, + "selections": [ + (v3/*: any*/), + { + "alias": null, + "args": null, + "filters": null, + "handle": "deleteEdge", + "key": "", + "kind": "ScalarHandle", + "name": "id", + "handleArgs": [ + { + "kind": "Variable", + "name": "connections", + "variableName": "connections" + } + ] + }, + (v7/*: any*/) + ], + "storageKey": null + } + ], + "storageKey": null + } ] - return { - fragment: { - argumentDefinitions: [v0 /*: any*/, v1 /*: any*/], - kind: 'Fragment', - metadata: null, - name: 'useRoomListSubscription', - selections: [ - { - alias: null, - args: v2 /*: any*/, - concreteType: 'ChatRoomOnRoomUpdate', - kind: 'LinkedField', - name: 'chatRoomOnRoomUpdate', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomEdge', - kind: 'LinkedField', - name: 'room', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoom', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v3 /*: any*/, - v4 /*: any*/, - v5 /*: any*/, - v6 /*: any*/, - { - args: null, - kind: 'FragmentSpread', - name: 'LastMessageFragment', - }, - { - args: null, - kind: 'FragmentSpread', - name: 'TitleFragment', - }, - { - args: null, - kind: 'FragmentSpread', - name: 'UnreadMessagesCountFragment', - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'ChatRoomParticipant', - kind: 'LinkedField', - name: 'removedParticipants', - plural: true, - selections: [v3 /*: any*/, v7 /*: any*/], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - type: 'Subscription', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: [v1 /*: any*/, v0 /*: any*/], - kind: 'Operation', - name: 'useRoomListSubscription', - selections: [ - { - alias: null, - args: v2 /*: any*/, - concreteType: 'ChatRoomOnRoomUpdate', - kind: 'LinkedField', - name: 'chatRoomOnRoomUpdate', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomEdge', - kind: 'LinkedField', - name: 'room', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoom', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v3 /*: any*/, - v4 /*: any*/, - v5 /*: any*/, - v6 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'lastMessageTime', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'Message', - kind: 'LinkedField', - name: 'lastMessage', - plural: false, - selections: [ - v3 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'content', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'isGroup', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'first', - value: 2, - }, - ], - concreteType: 'ChatRoomParticipantConnection', - kind: 'LinkedField', - name: 'participants', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomParticipantEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'ChatRoomParticipant', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - v3 /*: any*/, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'name', - storageKey: null, - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 100, - }, - { - kind: 'Literal', - name: 'width', - value: 100, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: v8 /*: any*/, - storageKey: 'image(height:100,width:100)', - }, - ], - storageKey: null, - }, - v3 /*: any*/, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: 'participants(first:2)', - }, - { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 144, - }, - { - kind: 'Literal', - name: 'width', - value: 144, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: v8 /*: any*/, - storageKey: 'image(height:144,width:144)', - }, - { - alias: null, - args: null, - concreteType: 'UnreadMessageCount', - kind: 'LinkedField', - name: 'unreadMessages', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'count', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'markedUnread', - storageKey: null, - }, - v3 /*: any*/, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'ChatRoomParticipant', - kind: 'LinkedField', - name: 'removedParticipants', - plural: true, - selections: [ - v3 /*: any*/, - { - alias: null, - args: null, - filters: null, - handle: 'deleteEdge', - key: '', - kind: 'ScalarHandle', - name: 'id', - handleArgs: [ - { - kind: 'Variable', - name: 'connections', - variableName: 'connections', - }, - ], - }, - v7 /*: any*/, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: 'b33e570c1e964cbbf0ebdbe2cf54b30b', - id: null, - metadata: {}, - name: 'useRoomListSubscription', - operationKind: 'subscription', - text: 'subscription useRoomListSubscription(\n $profileId: ID!\n) {\n chatRoomOnRoomUpdate(profileId: $profileId) {\n room {\n node {\n id\n isArchived\n participantsCount\n title\n ...LastMessageFragment\n ...TitleFragment\n ...UnreadMessagesCountFragment\n }\n }\n removedParticipants {\n id\n profile {\n id\n }\n }\n }\n}\n\nfragment GroupTitleFragment on ChatRoom {\n id\n image(width: 144, height: 144) {\n url\n }\n title\n}\n\nfragment LastMessageFragment on ChatRoom {\n id\n lastMessageTime\n lastMessage {\n id\n content\n }\n}\n\nfragment RoomTitleFragment on ChatRoom {\n id\n participants(first: 2) {\n edges {\n node {\n profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n }\n id\n }\n }\n }\n}\n\nfragment TitleFragment on ChatRoom {\n id\n isGroup\n ...RoomTitleFragment\n ...GroupTitleFragment\n}\n\nfragment UnreadMessagesCountFragment on ChatRoom {\n id\n unreadMessages {\n count\n markedUnread\n id\n }\n}\n', - }, + }, + "params": { + "cacheID": "b33e570c1e964cbbf0ebdbe2cf54b30b", + "id": null, + "metadata": {}, + "name": "useRoomListSubscription", + "operationKind": "subscription", + "text": "subscription useRoomListSubscription(\n $profileId: ID!\n) {\n chatRoomOnRoomUpdate(profileId: $profileId) {\n room {\n node {\n id\n isArchived\n participantsCount\n title\n ...LastMessageFragment\n ...TitleFragment\n ...UnreadMessagesCountFragment\n }\n }\n removedParticipants {\n id\n profile {\n id\n }\n }\n }\n}\n\nfragment GroupTitleFragment on ChatRoom {\n id\n image(width: 144, height: 144) {\n url\n }\n title\n}\n\nfragment LastMessageFragment on ChatRoom {\n id\n lastMessageTime\n lastMessage {\n id\n content\n }\n}\n\nfragment RoomTitleFragment on ChatRoom {\n id\n participants(first: 2) {\n edges {\n node {\n profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n }\n id\n }\n }\n }\n}\n\nfragment TitleFragment on ChatRoom {\n id\n isGroup\n ...RoomTitleFragment\n ...GroupTitleFragment\n}\n\nfragment UnreadMessagesCountFragment on ChatRoom {\n id\n unreadMessages {\n count\n markedUnread\n id\n }\n}\n" } -})() +}; +})(); -;(node as any).hash = '1a6290e220a68b34641d01ea3ab017a1' +(node as any).hash = "1a6290e220a68b34641d01ea3ab017a1"; -export default node +export default node; diff --git a/packages/components/__generated__/userMembersListPaginationRefetchable.graphql.ts b/packages/components/__generated__/userMembersListPaginationRefetchable.graphql.ts index 36424844..915aba6f 100644 --- a/packages/components/__generated__/userMembersListPaginationRefetchable.graphql.ts +++ b/packages/components/__generated__/userMembersListPaginationRefetchable.graphql.ts @@ -1,368 +1,392 @@ /** - * @generated SignedSource<> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ /* tslint:disable */ - /* eslint-disable */ // @ts-nocheck -import { ConcreteRequest, Query } from 'relay-runtime' -import { FragmentRefs } from 'relay-runtime' +import { ConcreteRequest, Query } from 'relay-runtime'; +import { FragmentRefs } from "relay-runtime"; export type userMembersListPaginationRefetchable$variables = { - count?: number | null | undefined - cursor?: string | null | undefined - id: string - orderBy?: string | null | undefined -} + count?: number | null | undefined; + cursor?: string | null | undefined; + id: string; + orderBy?: string | null | undefined; + q?: string | null | undefined; +}; export type userMembersListPaginationRefetchable$data = { - readonly node: - | { - readonly ' $fragmentSpreads': FragmentRefs<'UserMembersListFragment'> - } - | null - | undefined -} + readonly node: { + readonly " $fragmentSpreads": FragmentRefs<"UserMembersListFragment">; + } | null | undefined; +}; export type userMembersListPaginationRefetchable = { - response: userMembersListPaginationRefetchable$data - variables: userMembersListPaginationRefetchable$variables -} + response: userMembersListPaginationRefetchable$data; + variables: userMembersListPaginationRefetchable$variables; +}; -const node: ConcreteRequest = (function () { - var v0 = { - defaultValue: 10, - kind: 'LocalArgument', - name: 'count', - }, - v1 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'cursor', - }, - v2 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'id', +const node: ConcreteRequest = (function(){ +var v0 = { + "defaultValue": 10, + "kind": "LocalArgument", + "name": "count" +}, +v1 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "cursor" +}, +v2 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "id" +}, +v3 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "orderBy" +}, +v4 = { + "defaultValue": null, + "kind": "LocalArgument", + "name": "q" +}, +v5 = [ + { + "kind": "Variable", + "name": "id", + "variableName": "id" + } +], +v6 = { + "kind": "Variable", + "name": "orderBy", + "variableName": "orderBy" +}, +v7 = { + "kind": "Variable", + "name": "q", + "variableName": "q" +}, +v8 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "__typename", + "storageKey": null +}, +v9 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "id", + "storageKey": null +}, +v10 = { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "name", + "storageKey": null +}, +v11 = { + "alias": null, + "args": [ + { + "kind": "Literal", + "name": "height", + "value": 100 }, - v3 = { - defaultValue: null, - kind: 'LocalArgument', - name: 'orderBy', + { + "kind": "Literal", + "name": "width", + "value": 100 + } + ], + "concreteType": "File", + "kind": "LinkedField", + "name": "image", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "url", + "storageKey": null + } + ], + "storageKey": "image(height:100,width:100)" +}, +v12 = { + "alias": null, + "args": null, + "concreteType": "URLPath", + "kind": "LinkedField", + "name": "urlPath", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "path", + "storageKey": null }, - v4 = [ - { - kind: 'Variable', - name: 'id', - variableName: 'id', - }, + (v9/*: any*/) + ], + "storageKey": null +}, +v13 = [ + { + "kind": "Variable", + "name": "after", + "variableName": "cursor" + }, + { + "kind": "Variable", + "name": "first", + "variableName": "count" + }, + (v6/*: any*/), + (v7/*: any*/) +]; +return { + "fragment": { + "argumentDefinitions": [ + (v0/*: any*/), + (v1/*: any*/), + (v2/*: any*/), + (v3/*: any*/), + (v4/*: any*/) ], - v5 = { - kind: 'Variable', - name: 'orderBy', - variableName: 'orderBy', - }, - v6 = { - alias: null, - args: null, - kind: 'ScalarField', - name: '__typename', - storageKey: null, - }, - v7 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'id', - storageKey: null, - }, - v8 = { - alias: null, - args: null, - kind: 'ScalarField', - name: 'name', - storageKey: null, - }, - v9 = { - alias: null, - args: [ - { - kind: 'Literal', - name: 'height', - value: 100, - }, - { - kind: 'Literal', - name: 'width', - value: 100, - }, - ], - concreteType: 'File', - kind: 'LinkedField', - name: 'image', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'url', - storageKey: null, - }, - ], - storageKey: 'image(height:100,width:100)', - }, - v10 = { - alias: null, - args: null, - concreteType: 'URLPath', - kind: 'LinkedField', - name: 'urlPath', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'path', - storageKey: null, - }, - v7 /*: any*/, - ], - storageKey: null, - }, - v11 = [ + "kind": "Fragment", + "metadata": null, + "name": "userMembersListPaginationRefetchable", + "selections": [ { - kind: 'Variable', - name: 'after', - variableName: 'cursor', - }, + "alias": null, + "args": (v5/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + { + "args": [ + { + "kind": "Variable", + "name": "count", + "variableName": "count" + }, + { + "kind": "Variable", + "name": "cursor", + "variableName": "cursor" + }, + (v6/*: any*/), + (v7/*: any*/) + ], + "kind": "FragmentSpread", + "name": "UserMembersListFragment" + } + ], + "storageKey": null + } + ], + "type": "Query", + "abstractKey": null + }, + "kind": "Request", + "operation": { + "argumentDefinitions": [ + (v0/*: any*/), + (v1/*: any*/), + (v3/*: any*/), + (v4/*: any*/), + (v2/*: any*/) + ], + "kind": "Operation", + "name": "userMembersListPaginationRefetchable", + "selections": [ { - kind: 'Variable', - name: 'first', - variableName: 'count', - }, - v5 /*: any*/, + "alias": null, + "args": (v5/*: any*/), + "concreteType": null, + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v8/*: any*/), + (v9/*: any*/), + { + "kind": "InlineFragment", + "selections": [ + { + "alias": "canChangeRole", + "args": [ + { + "kind": "Literal", + "name": "perm", + "value": "baseapp_profiles.change_profileuserrole" + } + ], + "kind": "ScalarField", + "name": "hasPerm", + "storageKey": "hasPerm(perm:\"baseapp_profiles.change_profileuserrole\")" + }, + (v10/*: any*/), + (v11/*: any*/), + (v12/*: any*/), + { + "alias": null, + "args": (v13/*: any*/), + "concreteType": "ProfileUserRoleConnection", + "kind": "LinkedField", + "name": "members", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "totalCount", + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "ProfileUserRoleEdge", + "kind": "LinkedField", + "name": "edges", + "plural": true, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "ProfileUserRole", + "kind": "LinkedField", + "name": "node", + "plural": false, + "selections": [ + (v9/*: any*/), + { + "alias": null, + "args": null, + "concreteType": "User", + "kind": "LinkedField", + "name": "user", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "concreteType": "Profile", + "kind": "LinkedField", + "name": "profile", + "plural": false, + "selections": [ + (v9/*: any*/), + (v10/*: any*/), + (v11/*: any*/), + (v12/*: any*/) + ], + "storageKey": null + }, + (v9/*: any*/) + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "role", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "status", + "storageKey": null + }, + (v8/*: any*/) + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "cursor", + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": null, + "concreteType": "PageInfo", + "kind": "LinkedField", + "name": "pageInfo", + "plural": false, + "selections": [ + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "endCursor", + "storageKey": null + }, + { + "alias": null, + "args": null, + "kind": "ScalarField", + "name": "hasNextPage", + "storageKey": null + } + ], + "storageKey": null + } + ], + "storageKey": null + }, + { + "alias": null, + "args": (v13/*: any*/), + "filters": [ + "orderBy", + "q" + ], + "handle": "connection", + "key": "UserMembersFragment_members", + "kind": "LinkedHandle", + "name": "members" + } + ], + "type": "Profile", + "abstractKey": null + } + ], + "storageKey": null + } ] - return { - fragment: { - argumentDefinitions: [v0 /*: any*/, v1 /*: any*/, v2 /*: any*/, v3 /*: any*/], - kind: 'Fragment', - metadata: null, - name: 'userMembersListPaginationRefetchable', - selections: [ - { - alias: null, - args: v4 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - { - args: [ - { - kind: 'Variable', - name: 'count', - variableName: 'count', - }, - { - kind: 'Variable', - name: 'cursor', - variableName: 'cursor', - }, - v5 /*: any*/, - ], - kind: 'FragmentSpread', - name: 'UserMembersListFragment', - }, - ], - storageKey: null, - }, - ], - type: 'Query', - abstractKey: null, - }, - kind: 'Request', - operation: { - argumentDefinitions: [v0 /*: any*/, v1 /*: any*/, v3 /*: any*/, v2 /*: any*/], - kind: 'Operation', - name: 'userMembersListPaginationRefetchable', - selections: [ - { - alias: null, - args: v4 /*: any*/, - concreteType: null, - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v6 /*: any*/, - v7 /*: any*/, - { - kind: 'InlineFragment', - selections: [ - { - alias: 'canChangeRole', - args: [ - { - kind: 'Literal', - name: 'perm', - value: 'baseapp_profiles.change_profileuserrole', - }, - ], - kind: 'ScalarField', - name: 'hasPerm', - storageKey: 'hasPerm(perm:"baseapp_profiles.change_profileuserrole")', - }, - v8 /*: any*/, - v9 /*: any*/, - v10 /*: any*/, - { - alias: null, - args: v11 /*: any*/, - concreteType: 'ProfileUserRoleConnection', - kind: 'LinkedField', - name: 'members', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'totalCount', - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'ProfileUserRoleEdge', - kind: 'LinkedField', - name: 'edges', - plural: true, - selections: [ - { - alias: null, - args: null, - concreteType: 'ProfileUserRole', - kind: 'LinkedField', - name: 'node', - plural: false, - selections: [ - v7 /*: any*/, - { - alias: null, - args: null, - concreteType: 'User', - kind: 'LinkedField', - name: 'user', - plural: false, - selections: [ - { - alias: null, - args: null, - concreteType: 'Profile', - kind: 'LinkedField', - name: 'profile', - plural: false, - selections: [ - v7 /*: any*/, - v8 /*: any*/, - v9 /*: any*/, - v10 /*: any*/, - ], - storageKey: null, - }, - v7 /*: any*/, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'role', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'status', - storageKey: null, - }, - v6 /*: any*/, - ], - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'cursor', - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: null, - concreteType: 'PageInfo', - kind: 'LinkedField', - name: 'pageInfo', - plural: false, - selections: [ - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'endCursor', - storageKey: null, - }, - { - alias: null, - args: null, - kind: 'ScalarField', - name: 'hasNextPage', - storageKey: null, - }, - ], - storageKey: null, - }, - ], - storageKey: null, - }, - { - alias: null, - args: v11 /*: any*/, - filters: ['orderBy'], - handle: 'connection', - key: 'UserMembersFragment_members', - kind: 'LinkedHandle', - name: 'members', - }, - ], - type: 'Profile', - abstractKey: null, - }, - ], - storageKey: null, - }, - ], - }, - params: { - cacheID: '433292e795ecdcf8b2954be5d812f489', - id: null, - metadata: {}, - name: 'userMembersListPaginationRefetchable', - operationKind: 'query', - text: 'query userMembersListPaginationRefetchable(\n $count: Int = 10\n $cursor: String\n $orderBy: String\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...UserMembersListFragment_32czeo\n id\n }\n}\n\nfragment MemberItemFragment on ProfileUserRole {\n id\n user {\n profile {\n ...ProfileItemFragment\n id\n }\n id\n }\n role\n status\n}\n\nfragment ProfileItemFragment on Profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n urlPath {\n path\n id\n }\n}\n\nfragment UserMembersListFragment_32czeo on Profile {\n canChangeRole: hasPerm(perm: "baseapp_profiles.change_profileuserrole")\n ...ProfileItemFragment\n members(first: $count, after: $cursor, orderBy: $orderBy) {\n totalCount\n edges {\n node {\n ...MemberItemFragment\n id\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n id\n}\n', - }, + }, + "params": { + "cacheID": "face3a956a429a02eac4e1ebaedda0ff", + "id": null, + "metadata": {}, + "name": "userMembersListPaginationRefetchable", + "operationKind": "query", + "text": "query userMembersListPaginationRefetchable(\n $count: Int = 10\n $cursor: String\n $orderBy: String\n $q: String\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...UserMembersListFragment_40Ewnb\n id\n }\n}\n\nfragment MemberItemFragment on ProfileUserRole {\n id\n user {\n profile {\n ...ProfileItemFragment\n id\n }\n id\n }\n role\n status\n}\n\nfragment ProfileItemFragment on Profile {\n id\n name\n image(width: 100, height: 100) {\n url\n }\n urlPath {\n path\n id\n }\n}\n\nfragment UserMembersListFragment_40Ewnb on Profile {\n canChangeRole: hasPerm(perm: \"baseapp_profiles.change_profileuserrole\")\n ...ProfileItemFragment\n members(first: $count, after: $cursor, orderBy: $orderBy, q: $q) {\n totalCount\n edges {\n node {\n ...MemberItemFragment\n id\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n id\n}\n" } -})() +}; +})(); -;(node as any).hash = '8337f3f7c24d4eeb8d4c2495429a0d71' +(node as any).hash = "36d39484eb42189ff857dac6fec4b13d"; -export default node +export default node; diff --git a/packages/components/modules/profiles/Members/MemberItem/index.tsx b/packages/components/modules/profiles/Members/MemberItem/index.tsx index 72e6e576..92c0ed83 100644 --- a/packages/components/modules/profiles/Members/MemberItem/index.tsx +++ b/packages/components/modules/profiles/Members/MemberItem/index.tsx @@ -23,6 +23,7 @@ const MemberItem: FC = ({ avatarHeight = 40, canChangeMember = false, userId, + searchQuery, }) => { const memberProfile = useFragment(ProfileItemFragment, member) @@ -106,6 +107,10 @@ const MemberItem: FC = ({ return null } + if (searchQuery && !memberProfile?.name?.toLowerCase().includes(searchQuery.toLowerCase())) { + return null + } + return ( = ({ nextMember, MemberItemComponent, memberItemComponentProps, + searchQuery, }) => { const memberFragment = useFragment(MemberItemFragment, member) const nextMemberFragment = useFragment(MemberItemFragment, nextMember) @@ -37,6 +38,7 @@ const MemberListItem: FC = ({ member={data} memberRole="owner" status={MemberStatuses.active} + searchQuery={searchQuery} {...memberItemComponentProps} /> = ({ member={data} memberRole="owner" status={MemberStatuses.active} + searchQuery={searchQuery} {...memberItemComponentProps} /> diff --git a/packages/components/modules/profiles/Members/MemberListItem/types.ts b/packages/components/modules/profiles/Members/MemberListItem/types.ts index a86305b8..9c304662 100644 --- a/packages/components/modules/profiles/Members/MemberListItem/types.ts +++ b/packages/components/modules/profiles/Members/MemberListItem/types.ts @@ -11,4 +11,5 @@ export interface MemberListItemProps { nextMember: MemberItemFragment$key | null | undefined MemberItemComponent: FC memberItemComponentProps?: Partial + searchQuery?: string } diff --git a/packages/components/modules/profiles/Members/MembersList/index.tsx b/packages/components/modules/profiles/Members/MembersList/index.tsx index 2c82d0ab..1e02f396 100644 --- a/packages/components/modules/profiles/Members/MembersList/index.tsx +++ b/packages/components/modules/profiles/Members/MembersList/index.tsx @@ -1,17 +1,20 @@ -import { FC, useMemo } from 'react' +import { FC, useMemo, useTransition } from 'react' -import { LoadingState as DefaultLoadingState } from '@baseapp-frontend/design-system' +import { LoadingState as DefaultLoadingState, Searchbar } from '@baseapp-frontend/design-system' import { Box, Typography } from '@mui/material' -import { usePaginationFragment } from 'react-relay' +import { useFragment, usePaginationFragment } from 'react-relay' import { Virtuoso } from 'react-virtuoso' +import { useForm } from 'react-hook-form' import { MemberItemFragment$key } from '../../../../__generated__/MemberItemFragment.graphql' import { UserMembersListFragment } from '../../graphql/queries/UserMembersList' import DefaultMemberItem from '../MemberItem' import MemberListItem from '../MemberListItem' import { MemberStatuses, NUMBER_OF_MEMBERS_TO_LOAD_NEXT } from '../constants' import { MemberListProps } from '../types' +import { ProfileItemFragment } from '../../graphql/queries/ProfileItem' +import { ProfileItemFragment$key } from '../../../../__generated__/ProfileItemFragment.graphql' const MembersList: FC = ({ userRef, @@ -21,16 +24,36 @@ const MembersList: FC = ({ LoadingStateProps = {}, membersContainerHeight = 400, }) => { - const { data, loadNext, hasNext, isLoadingNext } = usePaginationFragment( + const [isPending, startTransition] = useTransition() + const { control, reset, watch } = useForm({ defaultValues: { search: '' } }) + const { data, loadNext, hasNext, isLoadingNext , refetch} = usePaginationFragment( UserMembersListFragment, userRef, ) + const ownerProfile = useFragment(ProfileItemFragment, data) + + const handleSearch = (value: string) => { + startTransition(() => { + refetch({ q: value }) + }) + } + + const handleSearchClear = () => { + startTransition(() => { + reset() + handleSearch('') + }) + } const members = useMemo( () => data?.members?.edges.filter((edge) => edge?.node).map((edge) => edge?.node) || [], [data?.members?.edges], ) + const isOwnerVisible = ownerProfile?.name?.includes(watch('search')) + + const resultsCount = isOwnerVisible ? members.length + 1 : members.length + const renderLoadingState = () => { if (!isLoadingNext) return @@ -51,24 +74,45 @@ const MembersList: FC = ({ nextMember={members[index + 1]} MemberItemComponent={MemberItem} memberItemComponentProps={MemberItemProps} + searchQuery={watch('search')} /> ) if (members.length === 0) { return ( <> + handleSearch(e.target.value)} + onClear={() => handleSearchClear()} + name="search" + control={control} + sx={{ mb: 4 }} + /> - 1 member + {resultsCount === 1 ? `${resultsCount} member` : `${resultsCount} members`} - + ) } return ( <> + handleSearch(e.target.value)} + onClear={() => handleSearchClear()} + name="search" + control={control} + sx={{ mb: 4 }} + /> - {(data.members?.totalCount ?? 0) + 1} members + {resultsCount === 1 ? `${resultsCount} member` : `${resultsCount} members`} = ({ InitialLoadingState = DefaultLoadingState, membersContainerHeight = 400, }) => ( - <> + <> {title} @@ -64,6 +64,6 @@ const MembersSuspended: FC = ({ /> -) + ) export default MembersSuspended diff --git a/packages/components/modules/profiles/Members/types.ts b/packages/components/modules/profiles/Members/types.ts index b1c06a40..c47fc57e 100644 --- a/packages/components/modules/profiles/Members/types.ts +++ b/packages/components/modules/profiles/Members/types.ts @@ -24,4 +24,5 @@ export interface UserMembersSuspendedProps { membersContainerHeight?: number } -export interface UserMembersProps extends Omit {} +export interface UserMembersProps extends Omit { +} diff --git a/packages/components/modules/profiles/graphql/queries/UserMembersList.ts b/packages/components/modules/profiles/graphql/queries/UserMembersList.ts index 146c2319..bd13fc2f 100644 --- a/packages/components/modules/profiles/graphql/queries/UserMembersList.ts +++ b/packages/components/modules/profiles/graphql/queries/UserMembersList.ts @@ -6,10 +6,11 @@ export const UserMembersListPaginationQuery = graphql` $cursor: String $orderBy: String $profileId: ID! + $q: String ) { profile(id: $profileId) { pk - ...UserMembersListFragment @arguments(count: $count, cursor: $cursor, orderBy: $orderBy) + ...UserMembersListFragment @arguments(count: $count, cursor: $cursor, orderBy: $orderBy, q: $q) } } ` @@ -21,11 +22,12 @@ export const UserMembersListFragment = graphql` count: { type: "Int", defaultValue: 10 } cursor: { type: "String" } orderBy: { type: "String" } + q: { type: "String" } ) { canChangeRole: hasPerm(perm: "baseapp_profiles.change_profileuserrole") ...ProfileItemFragment - members(first: $count, after: $cursor, orderBy: $orderBy) - @connection(key: "UserMembersFragment_members", filters: ["orderBy"]) { + members(first: $count, after: $cursor, orderBy: $orderBy, q: $q) + @connection(key: "UserMembersFragment_members", filters: ["orderBy", "q"]) { totalCount edges { node { diff --git a/packages/components/package.json b/packages/components/package.json index 2203dedf..e4716d12 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -1,7 +1,7 @@ { "name": "@baseapp-frontend/components", "description": "BaseApp components modules such as comments, notifications, messages, and more.", - "version": "0.0.50", + "version": "0.0.51", "main": "./index.ts", "types": "dist/index.d.ts", "sideEffects": false, diff --git a/packages/components/schema.graphql b/packages/components/schema.graphql index 884b61ea..4f1fbbf4 100644 --- a/packages/components/schema.graphql +++ b/packages/components/schema.graphql @@ -1,23 +1,78 @@ -"""Exposes a URL that specifies the behaviour of this scalar.""" -directive @specifiedBy( - """The URL that specifies the behaviour of this scalar.""" - url: String! -) on SCALAR +type Query { + activityLogs(visibility: VisibilityTypes, first: Int = 10, offset: Int, before: String, after: String, last: Int, createdFrom: Date, createdTo: Date, userPk: Decimal, profilePk: Decimal): ActivityLogConnection + organization( + """The ID of the object""" + id: ID! + ): Organization + chatRoom( + """The ID of the object""" + id: ID! + ): ChatRoom + rate( + """The ID of the object""" + id: ID! + ): Rate + report( + """The ID of the object""" + id: ID! + ): Report + comment( + """The ID of the object""" + id: ID! + ): Comment + allComments( + offset: Int + before: String + after: String + first: Int + last: Int + q: String -type ActivityLog implements Node { - """The ID of the object""" - id: ID! - createdAt: DateTime! - updatedAt: DateTime! - pk: Int! - metadata: GenericScalar - events(offset: Int, before: String, after: String, first: Int, last: Int, createdFrom: Date, createdTo: Date, userPk: Decimal): NodeLogEventConnection - user: User - profile: Profile - visibility: VisibilityTypes - verb: String - ipAddress: String - url: String + """Ordering""" + orderBy: String + ): CommentConnection + urlPath(path: String!): URLPath + allPages(offset: Int, before: String, after: String, first: Int, last: Int, status: PageStatus): PageConnection + page( + """The ID of the object""" + id: ID! + ): Page + allProfiles( + offset: Int + before: String + after: String + first: Int + last: Int + q: String + + """Ordering""" + orderBy: String + ): ProfileConnection + profile( + """The ID of the object""" + id: ID! + ): Profile + users( + offset: Int + before: String + after: String + first: Int + last: Int + q: String + + """Ordering""" + orderBy: String + ): UserConnection + user( + """The ID of the object""" + id: ID! + ): User + me: User + node( + """The ID of the object""" + id: ID! + ): Node + _debug: DjangoDebug } type ActivityLogConnection { @@ -30,226 +85,131 @@ type ActivityLogConnection { edgeCount: Int } -"""A Relay edge containing a `ActivityLog` and its cursor.""" -type ActivityLogEdge { - """The item at the end of the edge""" - node: ActivityLog - - """A cursor for use in pagination""" - cursor: String! -} +""" +The Relay compliant `PageInfo` type, containing data necessary to paginate this connection. +""" +type PageInfo { + """When paginating forwards, are there more items?""" + hasNextPage: Boolean! -type Block implements Node { - """The ID of the object""" - id: ID! - created: DateTime! - modified: DateTime! - actor: Profile - target: Profile - user: User - pk: Int! -} + """When paginating backwards, are there more items?""" + hasPreviousPage: Boolean! -type BlockConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! + """When paginating backwards, the cursor to continue.""" + startCursor: String - """Contains the nodes in this connection.""" - edges: [BlockEdge]! - totalCount: Int - edgeCount: Int + """When paginating forwards, the cursor to continue.""" + endCursor: String } -"""A Relay edge containing a `Block` and its cursor.""" -type BlockEdge { +"""A Relay edge containing a `ActivityLog` and its cursor.""" +type ActivityLogEdge { """The item at the end of the edge""" - node: Block + node: ActivityLog """A cursor for use in pagination""" cursor: String! } -interface BlocksInterface { +type ActivityLog implements Node { """The ID of the object""" id: ID! - blockers(offset: Int, before: String, after: String, first: Int, last: Int): BlockConnection - blocking(offset: Int, before: String, after: String, first: Int, last: Int): BlockConnection - blockersCount: Int - blockingCount: Int - isBlockedByMe(profileId: ID): Boolean -} - -input BlockToggleInput { - actorObjectId: ID! - targetObjectId: ID! - clientMutationId: String -} - -type BlockTogglePayload { - """May contain more than one error for same field.""" - errors: [ErrorType] - _debug: DjangoDebug - block: BlockEdge - target: BlocksInterface - actor: BlocksInterface - blockDeletedId: ID - clientMutationId: String + createdAt: DateTime! + updatedAt: DateTime! + pk: Int! + metadata: GenericScalar + events(offset: Int, before: String, after: String, first: Int, last: Int, createdFrom: Date, createdTo: Date, userPk: Decimal): NodeLogEventConnection + user: User + profile: Profile + visibility: VisibilityTypes + verb: String + ipAddress: String + url: String } -type ChatRoom implements Node { +"""An object with an ID""" +interface Node { """The ID of the object""" id: ID! - title: String - image(width: Int!, height: Int!): File - lastMessage: Message - lastMessageTime: DateTime - participantsCount: Int! - isGroup: Boolean! - participants(offset: Int, before: String, after: String, first: Int, last: Int): ChatRoomParticipantConnection - pk: Int! - allMessages(offset: Int, before: String, after: String, first: Int, last: Int, verb: Verbs): MessageConnection - unreadMessages(profileId: ID): UnreadMessageCount - isArchived(profileId: ID): Boolean } -input ChatRoomArchiveInput { - roomId: ID! - profileId: ID! - archive: Boolean! - clientMutationId: String -} +""" +The `DateTime` scalar type represents a DateTime +value as specified by +[iso8601](https://en.wikipedia.org/wiki/ISO_8601). +""" +scalar DateTime -type ChatRoomArchivePayload { - """May contain more than one error for same field.""" - errors: [ErrorType] - _debug: DjangoDebug - room: ChatRoom - clientMutationId: String -} +""" +The `GenericScalar` scalar type represents a generic +GraphQL scalar value that could be: +String, Boolean, Int, Float, List or Object. +""" +scalar GenericScalar -type ChatRoomConnection { +type NodeLogEventConnection { """Pagination data for this connection.""" pageInfo: PageInfo! """Contains the nodes in this connection.""" - edges: [ChatRoomEdge]! + edges: [NodeLogEventEdge]! totalCount: Int edgeCount: Int } -input ChatRoomCreateInput { - profileId: ID! - participants: [ID]! - isGroup: Boolean = false - title: String - clientMutationId: String -} - -type ChatRoomCreatePayload { - """May contain more than one error for same field.""" - errors: [ErrorType] - _debug: DjangoDebug - room: ChatRoomEdge - profile: Profile - clientMutationId: String -} - -"""A Relay edge containing a `ChatRoom` and its cursor.""" -type ChatRoomEdge { +"""A Relay edge containing a `NodeLogEvent` and its cursor.""" +type NodeLogEventEdge { """The item at the end of the edge""" - node: ChatRoom + node: NodeLogEvent """A cursor for use in pagination""" cursor: String! } -type ChatRoomOnMessagesCountUpdate { - profile: Profile -} - -type ChatRoomOnNewMessage { - message: MessageEdge -} - -type ChatRoomOnRoomUpdate { - room: ChatRoomEdge - removedParticipants: [ChatRoomParticipant] -} +type NodeLogEvent implements Node { + """The user associated with the event.""" + user: User -type ChatRoomParticipant implements Node { """The ID of the object""" id: ID! - profile: Profile - role: ChatRoomParticipantRoles - hasArchivedRoom: Boolean! pk: Int! -} -type ChatRoomParticipantConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - - """Contains the nodes in this connection.""" - edges: [ChatRoomParticipantEdge]! - totalCount: Int - edgeCount: Int -} - -"""A Relay edge containing a `ChatRoomParticipant` and its cursor.""" -type ChatRoomParticipantEdge { - """The item at the end of the edge""" - node: ChatRoomParticipant - - """A cursor for use in pagination""" - cursor: String! -} - -"""An enumeration.""" -enum ChatRoomParticipantRoles { - """member""" - MEMBER + """The object of the event.""" + obj: Node - """admin""" - ADMIN -} + """The event label.""" + label: String -input ChatRoomReadMessagesInput { - roomId: ID! - profileId: ID! - messageIds: [ID] - clientMutationId: String -} + """The raw data of the event.""" + data: GenericScalar -type ChatRoomReadMessagesPayload { - """May contain more than one error for same field.""" - errors: [ErrorType] - _debug: DjangoDebug - room: ChatRoom - profile: Profile - messages: [Message] - clientMutationId: String -} + """The diff between the previous event of the same label.""" + diff: GenericScalar -input ChatRoomSendMessageInput { - roomId: ID! - profileId: ID! - content: String! - inReplyToId: ID - clientMutationId: String + """When the event was created.""" + createdAt: DateTime } -type ChatRoomSendMessagePayload { - """May contain more than one error for same field.""" - errors: [ErrorType] - _debug: DjangoDebug - message: MessageEdge - clientMutationId: String -} +type User implements Node & PermissionsInterface & NotificationsInterface & PageInterface & RatingsInterface & ProfilesInterface & ProfileInterface { + lastLogin: DateTime + isSuperuser: Boolean + email: String + isEmailVerified: Boolean + dateJoined: DateTime! + passwordChangedDate: DateTime + newEmail: String + isNewEmailConfirmed: Boolean + firstName: String @deprecated(reason: "Deprecated in favor of fullName and shortName") + lastName: String @deprecated(reason: "Deprecated in favor of fullName and shortName") + phoneNumber: String -interface ChatRoomsInterface { - """The ID of the object""" - id: ID! - chatRooms( + """ + Designates whether this user should be treated as active. Unselect this instead of deleting accounts. + """ + isActive: Boolean! + isStaff: Boolean + reactions(offset: Int, before: String, after: String, first: Int, last: Int, id: ID): ReactionConnection! + comments( offset: Int before: String after: String @@ -259,65 +219,30 @@ interface ChatRoomsInterface { """Ordering""" orderBy: String - profileId: String - unreadMessages: Boolean - archived: Boolean - ): ChatRoomConnection - unreadMessagesCount: Int -} - -input ChatRoomUnreadInput { - roomId: ID! - profileId: ID! - clientMutationId: String -} - -type ChatRoomUnreadPayload { - """May contain more than one error for same field.""" - errors: [ErrorType] - _debug: DjangoDebug - room: ChatRoom - profile: Profile - clientMutationId: String -} - -input ChatRoomUpdateInput { - roomId: ID! - profileId: ID! - title: String - deleteImage: Boolean = false - addParticipants: [ID] = [] - removeParticipants: [ID] = [] - clientMutationId: String -} - -type ChatRoomUpdatePayload { - """May contain more than one error for same field.""" - errors: [ErrorType] - _debug: DjangoDebug - room: ChatRoomEdge - removedParticipants: [ChatRoomParticipant] - clientMutationId: String -} - -type Comment implements Node & CommentsInterface & ReactionsInterface & PermissionsInterface & NodeActivityLogInterface { - created: DateTime! - modified: DateTime! - user: User - profile: Profile - body: String - - """languaged used in the comment""" - language: String - isEdited: Boolean! - isPinned: Boolean! - inReplyTo: Comment - status: CommentStatus + ): CommentConnection! + pages(offset: Int, before: String, after: String, first: Int, last: Int, status: PageStatus): PageConnection! """The ID of the object""" id: ID! - commentsCount: CommentsCount! - comments( + + """ + Determine if the logged in user has a specific permission for this object. + """ + hasPerm(perm: String!): Boolean + notificationsUnreadCount: Int + notifications(offset: Int, before: String, after: String, first: Int, last: Int, level: NotificationsNotificationLevelChoices, unread: Boolean, verbs: String): NotificationConnection + notificationSettings(offset: Int, before: String, after: String, first: Int, last: Int): NotificationSettingConnection + isNotificationSettingActive(verb: String!, channel: NotificationChannelTypes!): Boolean + urlPath: URLPath + urlPaths: [URLPath] + metadata: Metadata + ratingsCount: Int + ratingsSum: Int + ratingsAverage: Float + ratings(offset: Int, before: String, after: String, first: Int, last: Int): RateConnection + isRatingsEnabled: Boolean! + myRating(profileId: ID): Rate + profiles( offset: Int before: String after: String @@ -327,652 +252,610 @@ type Comment implements Node & CommentsInterface & ReactionsInterface & Permissi """Ordering""" orderBy: String - ): CommentConnection - isCommentsEnabled: Boolean! - reactionsCount: ReactionsCount - reactions(offset: Int, before: String, after: String, first: Int, last: Int, id: ID): ReactionConnection - isReactionsEnabled: Boolean! - myReaction(profileId: ID): Reaction + ): ProfileConnection + profile: Profile + pk: Int! + activityLogs(visibility: VisibilityTypes, first: Int = 10, offset: Int, before: String, after: String, last: Int, createdFrom: Date, createdTo: Date, userPk: Decimal, profilePk: Decimal): ActivityLogConnection + isAuthenticated: Boolean + fullName: String + shortName: String + avatar(width: Int!, height: Int!): File +} + +interface PermissionsInterface { + """The ID of the object""" + id: ID! """ Determine if the logged in user has a specific permission for this object. """ hasPerm(perm: String!): Boolean - nodeActivityLogs(visibility: VisibilityTypes, first: Int = 10, offset: Int, before: String, after: String, last: Int, createdFrom: Date, createdTo: Date, userPk: Decimal, profilePk: Decimal): ActivityLogConnection - pk: Int! - target: CommentsInterface } -type CommentConnection { +interface NotificationsInterface { + """The ID of the object""" + id: ID! + notificationsUnreadCount: Int + notifications(offset: Int, before: String, after: String, first: Int, last: Int, level: NotificationsNotificationLevelChoices, unread: Boolean, verbs: String): NotificationConnection + notificationSettings(offset: Int, before: String, after: String, first: Int, last: Int): NotificationSettingConnection + isNotificationSettingActive(verb: String!, channel: NotificationChannelTypes!): Boolean +} + +type NotificationConnection { """Pagination data for this connection.""" pageInfo: PageInfo! """Contains the nodes in this connection.""" - edges: [CommentEdge]! + edges: [NotificationEdge]! totalCount: Int edgeCount: Int } -input CommentCreateInput { - targetObjectId: ID! - inReplyToId: ID - profileId: ID - body: String! - clientMutationId: String -} - -type CommentCreatePayload { - """May contain more than one error for same field.""" - errors: [ErrorType] - _debug: DjangoDebug - comment: CommentEdge - clientMutationId: String -} - -input CommentDeleteInput { - id: ID! - clientMutationId: String -} - -type CommentDeletePayload { - """May contain more than one error for same field.""" - errors: [ErrorType] - _debug: DjangoDebug - deletedId: ID - target: CommentsInterface - inReplyTo: Comment - clientMutationId: String -} - -"""A Relay edge containing a `Comment` and its cursor.""" -type CommentEdge { +"""A Relay edge containing a `Notification` and its cursor.""" +type NotificationEdge { """The item at the end of the edge""" - node: Comment + node: Notification """A cursor for use in pagination""" cursor: String! } -input CommentPinInput { +type Notification implements Node { + """The ID of the object""" id: ID! - clientMutationId: String + level: NotificationsNotificationLevelChoices! + recipient: User! + unread: Boolean! + actorObjectId: String! + verb: String! + description: String + targetObjectId: String + actionObjectObjectId: String + timestamp: DateTime! + public: Boolean! + deleted: Boolean! + emailed: Boolean! + data: GenericScalar + pk: Int! + actor: Node + target: Node + actionObject: Node } -type CommentPinPayload { - """May contain more than one error for same field.""" - errors: [ErrorType] - _debug: DjangoDebug - comment: Comment - clientMutationId: String -} - -type CommentsCount { - total: Int - main: Int - replies: Int - pinned: Int - reported: Int -} +"""An enumeration.""" +enum NotificationsNotificationLevelChoices { + """success""" + SUCCESS -interface CommentsInterface { - """The ID of the object""" - id: ID! - commentsCount: CommentsCount! - comments( - offset: Int - before: String - after: String - first: Int - last: Int - q: String + """info""" + INFO - """Ordering""" - orderBy: String - ): CommentConnection - isCommentsEnabled: Boolean! -} + """warning""" + WARNING -"""An enumeration.""" -enum CommentStatus { - DELETED - PUBLISHED + """error""" + ERROR } -input CommentUpdateInput { - id: ID! - body: String! - clientMutationId: String -} +type NotificationSettingConnection { + """Pagination data for this connection.""" + pageInfo: PageInfo! -type CommentUpdatePayload { - """May contain more than one error for same field.""" - errors: [ErrorType] - _debug: DjangoDebug - comment: Comment - clientMutationId: String + """Contains the nodes in this connection.""" + edges: [NotificationSettingEdge]! + totalCount: Int + edgeCount: Int } -""" -The `Date` scalar type represents a Date -value as specified by -[iso8601](https://en.wikipedia.org/wiki/ISO_8601). -""" -scalar Date - -""" -The `DateTime` scalar type represents a DateTime -value as specified by -[iso8601](https://en.wikipedia.org/wiki/ISO_8601). -""" -scalar DateTime - -"""The `Decimal` scalar type represents a python Decimal.""" -scalar Decimal - -"""Debugging information for the current query.""" -type DjangoDebug { - """Executed SQL queries for this API query.""" - sql: [DjangoDebugSQL] +"""A Relay edge containing a `NotificationSetting` and its cursor.""" +type NotificationSettingEdge { + """The item at the end of the edge""" + node: NotificationSetting - """Raise exceptions for this API query.""" - exceptions: [DjangoDebugException] + """A cursor for use in pagination""" + cursor: String! } -"""Represents a single exception raised.""" -type DjangoDebugException { - """The class of the exception""" - excType: String! - - """The message of the exception""" - message: String! - - """The stack trace""" - stack: String! +type NotificationSetting implements Node { + """The ID of the object""" + id: ID! + created: DateTime! + modified: DateTime! + user: User! + channel: NotificationChannelTypes + verb: String! + isActive: Boolean! + pk: Int! } -"""Represents a single database query made to a Django managed DB.""" -type DjangoDebugSQL { - """The type of database being used (e.g. postrgesql, mysql, sqlite).""" - vendor: String! - - """The Django database alias (e.g. 'default').""" - alias: String! - - """The actual SQL sent to this database.""" - sql: String - - """Duration of this database query in seconds.""" - duration: Float! - - """The raw SQL of this query, without params.""" - rawSql: String! - - """JSON encoded database query parameters.""" - params: String! - - """Start time of this database query.""" - startTime: Float! - - """Stop time of this database query.""" - stopTime: Float! +"""An enumeration.""" +enum NotificationChannelTypes { + """All""" + ALL - """Whether this database query took more than 10 seconds.""" - isSlow: Boolean! + """Email""" + EMAIL - """Whether this database query was a SELECT.""" - isSelect: Boolean! + """Push""" + PUSH - """Postgres transaction ID if available.""" - transId: String + """In-App""" + IN_APP +} - """Postgres transaction status if available.""" - transStatus: String +interface PageInterface { + """The ID of the object""" + id: ID! + urlPath: URLPath + urlPaths: [URLPath] + metadata: Metadata +} - """Postgres isolation level if available.""" - isoLevel: String +type URLPath implements Node { + """The ID of the object""" + id: ID! + created: DateTime! + modified: DateTime! + path: String! + language: Languages + isActive: Boolean! + pk: Int! + target: PageInterface +} - """Postgres connection encoding if available.""" - encoding: String +"""Languages available""" +enum Languages { + en + es + pt } -type ErrorType { - field: String! - messages: [String!]! +type Metadata { + created: DateTime! + modified: DateTime! + targetObjectId: Int + language: Languages + metaTitle: String + metaDescription: String + metaRobots: String + metaOgType: String + metaOgImage(width: Int!, height: Int!): File + pk: Int! } type File { url: String! } -type Follow implements Node { +interface RatingsInterface { """The ID of the object""" id: ID! - created: DateTime! - modified: DateTime! - user: User - actor: Profile! - targetIsFollowingBack: Boolean! - target: Profile! - pk: Int! + ratingsCount: Int + ratingsSum: Int + ratingsAverage: Float + ratings(offset: Int, before: String, after: String, first: Int, last: Int): RateConnection + isRatingsEnabled: Boolean! + myRating(profileId: ID): Rate } -type FollowConnection { +type RateConnection { """Pagination data for this connection.""" pageInfo: PageInfo! """Contains the nodes in this connection.""" - edges: [FollowEdge]! + edges: [RateEdge]! totalCount: Int edgeCount: Int } -"""A Relay edge containing a `Follow` and its cursor.""" -type FollowEdge { +"""A Relay edge containing a `Rate` and its cursor.""" +type RateEdge { """The item at the end of the edge""" - node: Follow + node: Rate """A cursor for use in pagination""" cursor: String! } -interface FollowsInterface { +type Rate implements Node { """The ID of the object""" id: ID! - followers(offset: Int, before: String, after: String, first: Int, last: Int, targetIsFollowingBack: Boolean): FollowConnection - following(offset: Int, before: String, after: String, first: Int, last: Int, targetIsFollowingBack: Boolean): FollowConnection - followersCount: Int - followingCount: Int - isFollowedByMe(profileId: ID): Boolean -} - -input FollowToggleInput { - actorObjectId: ID! - targetObjectId: ID! - clientMutationId: String -} - -type FollowTogglePayload { - """May contain more than one error for same field.""" - errors: [ErrorType] - _debug: DjangoDebug - follow: FollowEdge - target: FollowsInterface - actor: FollowsInterface - followDeletedId: ID - clientMutationId: String + created: DateTime! + modified: DateTime! + user: User! + profile: Profile + value: Int! + pk: Int! + target: Node } -""" -The `GenericScalar` scalar type represents a generic -GraphQL scalar value that could be: -String, Boolean, Int, Float, List or Object. -""" -scalar GenericScalar +type Profile implements Node & PermissionsInterface & PageInterface & FollowsInterface & BlocksInterface & ChatRoomsInterface { + """The ID of the object""" + id: ID! + created: DateTime! + modified: DateTime! + blockersCount: Int + blockingCount: Int + followersCount: Int + followingCount: Int + reportsCount: JSONString! + commentsCount: JSONString! + isCommentsEnabled: Boolean! + name: String + image(width: Int!, height: Int!): File + bannerImage(width: Int!, height: Int!): File + biography: String + targetObjectId: Int + status: ProfilesProfileStatusChoices! + owner: User! + comments( + offset: Int + before: String + after: String + first: Int + last: Int + q: String -""" -Allows use of a JSON String for input / output from the GraphQL schema. + """Ordering""" + orderBy: String + ): CommentConnection! + reactions(offset: Int, before: String, after: String, first: Int, last: Int, id: ID): ReactionConnection! + ratings(offset: Int, before: String, after: String, first: Int, last: Int): RateConnection! + user: User + members( + offset: Int + before: String + after: String + first: Int + last: Int + role: ProfileRoles -Use of this type is *not recommended* as you lose the benefits of having a defined, static -schema (one of the key benefits of GraphQL). -""" -scalar JSONString + """Ordering""" + orderBy: String + q: String + ): ProfileUserRoleConnection + chatroomparticipantSet(offset: Int, before: String, after: String, first: Int, last: Int, profile_TargetContentType: ID): ChatRoomParticipantConnection! + unreadmessagecountSet(offset: Int, before: String, after: String, first: Int, last: Int): UnreadMessageCountConnection! + messageSet(offset: Int, before: String, after: String, first: Int, last: Int, verb: Verbs): MessageConnection! + following(offset: Int, before: String, after: String, first: Int, last: Int, targetIsFollowingBack: Boolean): FollowConnection + followers(offset: Int, before: String, after: String, first: Int, last: Int, targetIsFollowingBack: Boolean): FollowConnection + blocking(offset: Int, before: String, after: String, first: Int, last: Int): BlockConnection + blockers(offset: Int, before: String, after: String, first: Int, last: Int): BlockConnection + organization: Organization -"""Languages available""" -enum Languages { - en - es - pt + """ + Determine if the logged in user has a specific permission for this object. + """ + hasPerm(perm: String!): Boolean + urlPath: URLPath + urlPaths: [URLPath] + metadata: Metadata + isFollowedByMe(profileId: ID): Boolean + isBlockedByMe(profileId: ID): Boolean + chatRooms( + offset: Int + before: String + after: String + first: Int + last: Int + q: String + + """Ordering""" + orderBy: String + profileId: String + unreadMessages: Boolean + archived: Boolean + ): ChatRoomConnection + unreadMessagesCount: Int + pk: Int! + activityLogs(visibility: VisibilityTypes, first: Int = 10, offset: Int, before: String, after: String, last: Int, createdFrom: Date, createdTo: Date, userPk: Decimal, profilePk: Decimal): ActivityLogConnection + target: ProfileInterface } -type Message implements Node { +interface FollowsInterface { """The ID of the object""" id: ID! - created: DateTime! - content: String - user: User - profile: Profile - verb: Verbs - room: ChatRoom - inReplyTo: Message - extraData: JSONString - pk: Int! - actionObject: Node - isRead(profileId: ID): Boolean + followers(offset: Int, before: String, after: String, first: Int, last: Int, targetIsFollowingBack: Boolean): FollowConnection + following(offset: Int, before: String, after: String, first: Int, last: Int, targetIsFollowingBack: Boolean): FollowConnection + followersCount: Int + followingCount: Int + isFollowedByMe(profileId: ID): Boolean } -type MessageConnection { +type FollowConnection { """Pagination data for this connection.""" pageInfo: PageInfo! """Contains the nodes in this connection.""" - edges: [MessageEdge]! + edges: [FollowEdge]! totalCount: Int edgeCount: Int } -"""A Relay edge containing a `Message` and its cursor.""" -type MessageEdge { +"""A Relay edge containing a `Follow` and its cursor.""" +type FollowEdge { """The item at the end of the edge""" - node: Message + node: Follow """A cursor for use in pagination""" cursor: String! } -type Metadata { +type Follow implements Node { + """The ID of the object""" + id: ID! created: DateTime! modified: DateTime! - targetObjectId: Int - language: Languages - metaTitle: String - metaDescription: String - metaRobots: String - metaOgType: String - metaOgImage(width: Int!, height: Int!): File + user: User + actor: Profile! + targetIsFollowingBack: Boolean! + target: Profile! pk: Int! } -type Mutation { - rateCreate(input: RateCreateInput!): RateCreatePayload - organizationCreate(input: OrganizationCreateInput!): OrganizationCreatePayload - chatRoomCreate(input: ChatRoomCreateInput!): ChatRoomCreatePayload - chatRoomUpdate(input: ChatRoomUpdateInput!): ChatRoomUpdatePayload - chatRoomSendMessage(input: ChatRoomSendMessageInput!): ChatRoomSendMessagePayload - chatRoomReadMessages(input: ChatRoomReadMessagesInput!): ChatRoomReadMessagesPayload - chatRoomUnread(input: ChatRoomUnreadInput!): ChatRoomUnreadPayload - chatRoomArchive(input: ChatRoomArchiveInput!): ChatRoomArchivePayload - reportCreate(input: ReportCreateInput!): ReportCreatePayload - followToggle(input: FollowToggleInput!): FollowTogglePayload - blockToggle(input: BlockToggleInput!): BlockTogglePayload - reactionToggle(input: ReactionToggleInput!): ReactionTogglePayload - notificationsMarkAsRead(input: NotificationsMarkAsReadInput!): NotificationsMarkAsReadPayload - notificationsMarkAllAsRead(input: NotificationsMarkAllAsReadInput!): NotificationsMarkAllAsReadPayload - notificationSettingToggle(input: NotificationSettingToggleInput!): NotificationSettingTogglePayload - commentCreate(input: CommentCreateInput!): CommentCreatePayload - commentUpdate(input: CommentUpdateInput!): CommentUpdatePayload - commentPin(input: CommentPinInput!): CommentPinPayload - commentDelete(input: CommentDeleteInput!): CommentDeletePayload - pageCreate(input: PageCreateInput!): PageCreatePayload - pageEdit(input: PageEditInput!): PageEditPayload - profileCreate(input: ProfileCreateInput!): ProfileCreatePayload - profileUpdate(input: ProfileUpdateInput!): ProfileUpdatePayload - profileDelete(input: ProfileDeleteInput!): ProfileDeletePayload - profileRoleUpdate(input: RoleUpdateInput!): RoleUpdatePayload -} - -"""An object with an ID""" -interface Node { +interface BlocksInterface { """The ID of the object""" id: ID! + blockers(offset: Int, before: String, after: String, first: Int, last: Int): BlockConnection + blocking(offset: Int, before: String, after: String, first: Int, last: Int): BlockConnection + blockersCount: Int + blockingCount: Int + isBlockedByMe(profileId: ID): Boolean } -interface NodeActivityLogInterface { - nodeActivityLogs(visibility: VisibilityTypes, first: Int = 10, offset: Int, before: String, after: String, last: Int, createdFrom: Date, createdTo: Date, userPk: Decimal, profilePk: Decimal): ActivityLogConnection +type BlockConnection { + """Pagination data for this connection.""" + pageInfo: PageInfo! + + """Contains the nodes in this connection.""" + edges: [BlockEdge]! + totalCount: Int + edgeCount: Int } -type NodeLogEvent implements Node { - """The user associated with the event.""" - user: User +"""A Relay edge containing a `Block` and its cursor.""" +type BlockEdge { + """The item at the end of the edge""" + node: Block + + """A cursor for use in pagination""" + cursor: String! +} +type Block implements Node { """The ID of the object""" id: ID! + created: DateTime! + modified: DateTime! + actor: Profile + target: Profile + user: User pk: Int! +} - """The object of the event.""" - obj: Node - - """The event label.""" - label: String - - """The raw data of the event.""" - data: GenericScalar - - """The diff between the previous event of the same label.""" - diff: GenericScalar +interface ChatRoomsInterface { + """The ID of the object""" + id: ID! + chatRooms( + offset: Int + before: String + after: String + first: Int + last: Int + q: String - """When the event was created.""" - createdAt: DateTime + """Ordering""" + orderBy: String + profileId: String + unreadMessages: Boolean + archived: Boolean + ): ChatRoomConnection + unreadMessagesCount: Int } -type NodeLogEventConnection { +type ChatRoomConnection { """Pagination data for this connection.""" pageInfo: PageInfo! """Contains the nodes in this connection.""" - edges: [NodeLogEventEdge]! + edges: [ChatRoomEdge]! totalCount: Int edgeCount: Int } -"""A Relay edge containing a `NodeLogEvent` and its cursor.""" -type NodeLogEventEdge { +"""A Relay edge containing a `ChatRoom` and its cursor.""" +type ChatRoomEdge { """The item at the end of the edge""" - node: NodeLogEvent + node: ChatRoom """A cursor for use in pagination""" cursor: String! } -type Notification implements Node { +type ChatRoom implements Node { """The ID of the object""" id: ID! - level: NotificationsNotificationLevelChoices! - recipient: User! - unread: Boolean! - actorObjectId: String! - verb: String! - description: String - targetObjectId: String - actionObjectObjectId: String - timestamp: DateTime! - public: Boolean! - deleted: Boolean! - emailed: Boolean! - data: GenericScalar - pk: Int! - actor: Node - target: Node - actionObject: Node + title: String + image(width: Int!, height: Int!): File + lastMessage: Message + lastMessageTime: DateTime + participantsCount: Int! + isGroup: Boolean! + participants(offset: Int, before: String, after: String, first: Int, last: Int): ChatRoomParticipantConnection + pk: Int! + allMessages(offset: Int, before: String, after: String, first: Int, last: Int, verb: Verbs): MessageConnection + unreadMessages(profileId: ID): UnreadMessageCount + isArchived(profileId: ID): Boolean } -"""An enumeration.""" -enum NotificationChannelTypes { - """All""" - ALL +type Message implements Node { + """The ID of the object""" + id: ID! + created: DateTime! + content: String + user: User + profile: Profile + verb: Verbs + room: ChatRoom + inReplyTo: Message + extraData: JSONString + pk: Int! + actionObject: Node + isRead(profileId: ID): Boolean +} - """Email""" - EMAIL +"""An enumeration.""" +enum Verbs { + SENT_MESSAGE +} - """Push""" - PUSH +""" +Allows use of a JSON String for input / output from the GraphQL schema. - """In-App""" - IN_APP -} +Use of this type is *not recommended* as you lose the benefits of having a defined, static +schema (one of the key benefits of GraphQL). +""" +scalar JSONString -type NotificationConnection { +type ChatRoomParticipantConnection { """Pagination data for this connection.""" pageInfo: PageInfo! """Contains the nodes in this connection.""" - edges: [NotificationEdge]! + edges: [ChatRoomParticipantEdge]! totalCount: Int edgeCount: Int } -"""A Relay edge containing a `Notification` and its cursor.""" -type NotificationEdge { +"""A Relay edge containing a `ChatRoomParticipant` and its cursor.""" +type ChatRoomParticipantEdge { """The item at the end of the edge""" - node: Notification + node: ChatRoomParticipant """A cursor for use in pagination""" cursor: String! } -type NotificationSetting implements Node { +type ChatRoomParticipant implements Node { """The ID of the object""" id: ID! - created: DateTime! - modified: DateTime! - user: User! - channel: NotificationChannelTypes - verb: String! - isActive: Boolean! + profile: Profile + role: ChatRoomParticipantRoles + hasArchivedRoom: Boolean! pk: Int! } -type NotificationSettingConnection { +"""An enumeration.""" +enum ChatRoomParticipantRoles { + """member""" + MEMBER + + """admin""" + ADMIN +} + +type MessageConnection { """Pagination data for this connection.""" pageInfo: PageInfo! """Contains the nodes in this connection.""" - edges: [NotificationSettingEdge]! + edges: [MessageEdge]! totalCount: Int edgeCount: Int } -"""A Relay edge containing a `NotificationSetting` and its cursor.""" -type NotificationSettingEdge { +"""A Relay edge containing a `Message` and its cursor.""" +type MessageEdge { """The item at the end of the edge""" - node: NotificationSetting + node: Message """A cursor for use in pagination""" cursor: String! } -input NotificationSettingToggleInput { - verb: String! - channel: NotificationChannelTypes! - clientMutationId: String -} - -type NotificationSettingTogglePayload { - """May contain more than one error for same field.""" - errors: [ErrorType] - _debug: DjangoDebug - notificationSetting: NotificationSetting - clientMutationId: String -} +type UnreadMessageCount implements Node { + markedUnread: Boolean! + count: Int! -interface NotificationsInterface { """The ID of the object""" id: ID! - notificationsUnreadCount: Int - notifications(offset: Int, before: String, after: String, first: Int, last: Int, level: NotificationsNotificationLevelChoices, unread: Boolean, verbs: String): NotificationConnection - notificationSettings(offset: Int, before: String, after: String, first: Int, last: Int): NotificationSettingConnection - isNotificationSettingActive(verb: String!, channel: NotificationChannelTypes!): Boolean -} - -input NotificationsMarkAllAsReadInput { - """Mark as read or unread""" - read: Boolean! - clientMutationId: String -} - -type NotificationsMarkAllAsReadPayload { - """May contain more than one error for same field.""" - errors: [ErrorType] - _debug: DjangoDebug - recipient: NotificationsInterface - clientMutationId: String -} - -input NotificationsMarkAsReadInput { - """Mark as read or unread""" - read: Boolean! - notificationIds: [ID!] - clientMutationId: String -} - -type NotificationsMarkAsReadPayload { - """May contain more than one error for same field.""" - errors: [ErrorType] - _debug: DjangoDebug - recipient: NotificationsInterface - notifications: [Notification] - clientMutationId: String + pk: Int! } """An enumeration.""" -enum NotificationsNotificationLevelChoices { - """success""" - SUCCESS - - """info""" - INFO - - """warning""" - WARNING - - """error""" - ERROR -} - -type OnCommentChange { - createdComment: CommentEdge - updatedComment: Comment - deletedCommentId: ID -} - -type OnNotificationChange { - createdNotification: NotificationEdge - updatedNotification: Notification - deletedNotificationId: ID -} - -type Organization implements Node & PermissionsInterface { - profile: Profile - - """The ID of the object""" - id: ID! +enum ProfilesProfileStatusChoices { + """public""" + A_1 - """ - Determine if the logged in user has a specific permission for this object. - """ - hasPerm(perm: String!): Boolean - pk: Int! + """private""" + A_2 } -input OrganizationCreateInput { - name: String! - urlPath: String - clientMutationId: String -} +type CommentConnection { + """Pagination data for this connection.""" + pageInfo: PageInfo! -type OrganizationCreatePayload { - """May contain more than one error for same field.""" - errors: [ErrorType] - _debug: DjangoDebug - organization: OrganizationEdge - profile: ProfileEdge - clientMutationId: String + """Contains the nodes in this connection.""" + edges: [CommentEdge]! + totalCount: Int + edgeCount: Int } -"""A Relay edge containing a `Organization` and its cursor.""" -type OrganizationEdge { +"""A Relay edge containing a `Comment` and its cursor.""" +type CommentEdge { """The item at the end of the edge""" - node: Organization + node: Comment """A cursor for use in pagination""" cursor: String! } -type Page implements Node & PageInterface & PermissionsInterface & CommentsInterface { +type Comment implements Node & CommentsInterface & ReactionsInterface & PermissionsInterface & NodeActivityLogInterface { created: DateTime! modified: DateTime! user: User - status: PageStatus + profile: Profile + body: String + + """languaged used in the comment""" + language: String + isEdited: Boolean! + isPinned: Boolean! + inReplyTo: Comment + status: CommentStatus """The ID of the object""" id: ID! - urlPath: URLPath - urlPaths: [URLPath] - metadata: Metadata + commentsCount: CommentsCount! + comments( + offset: Int + before: String + after: String + first: Int + last: Int + q: String + + """Ordering""" + orderBy: String + ): CommentConnection + isCommentsEnabled: Boolean! + reactionsCount: ReactionsCount + reactions(offset: Int, before: String, after: String, first: Int, last: Int, id: ID): ReactionConnection + isReactionsEnabled: Boolean! + myReaction(profileId: ID): Reaction """ Determine if the logged in user has a specific permission for this object. """ hasPerm(perm: String!): Boolean + nodeActivityLogs(visibility: VisibilityTypes, first: Int = 10, offset: Int, before: String, after: String, last: Int, createdFrom: Date, createdTo: Date, userPk: Decimal, profilePk: Decimal): ActivityLogConnection + pk: Int! + target: CommentsInterface +} + +interface CommentsInterface { + """The ID of the object""" + id: ID! commentsCount: CommentsCount! comments( offset: Int @@ -986,98 +869,173 @@ type Page implements Node & PageInterface & PermissionsInterface & CommentsInter orderBy: String ): CommentConnection isCommentsEnabled: Boolean! - pk: Int! - title: String - body: String } -type PageConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - - """Contains the nodes in this connection.""" - edges: [PageEdge]! - totalCount: Int - edgeCount: Int +type CommentsCount { + total: Int + main: Int + replies: Int + pinned: Int + reported: Int } -input PageCreateInput { - user: String - title: String - body: String - urlPath: String - clientMutationId: String +interface ReactionsInterface { + """The ID of the object""" + id: ID! + reactionsCount: ReactionsCount + reactions(offset: Int, before: String, after: String, first: Int, last: Int, id: ID): ReactionConnection + isReactionsEnabled: Boolean! + myReaction(profileId: ID): Reaction } -type PageCreatePayload { - """May contain more than one error for same field.""" - errors: [ErrorType] - _debug: DjangoDebug - page: PageEdge - clientMutationId: String +type ReactionsCount { + LIKE: Int + DISLIKE: Int + total: Int } -"""A Relay edge containing a `Page` and its cursor.""" -type PageEdge { +type ReactionConnection { + """Pagination data for this connection.""" + pageInfo: PageInfo! + + """Contains the nodes in this connection.""" + edges: [ReactionEdge]! + totalCount: Int + edgeCount: Int +} + +"""A Relay edge containing a `Reaction` and its cursor.""" +type ReactionEdge { """The item at the end of the edge""" - node: Page + node: Reaction """A cursor for use in pagination""" cursor: String! } -input PageEditInput { +type Reaction implements Node { + """The ID of the object""" id: ID! - user: String - title: String - body: String - urlPath: String - clientMutationId: String + created: DateTime! + modified: DateTime! + user: User! + reactionType: ReactionTypes + pk: Int! + target: Node } -type PageEditPayload { - """May contain more than one error for same field.""" - errors: [ErrorType] - _debug: DjangoDebug - page: Page - clientMutationId: String +"""An enumeration.""" +enum ReactionTypes { + """like""" + LIKE + + """dislike""" + DISLIKE +} + +interface NodeActivityLogInterface { + nodeActivityLogs(visibility: VisibilityTypes, first: Int = 10, offset: Int, before: String, after: String, last: Int, createdFrom: Date, createdTo: Date, userPk: Decimal, profilePk: Decimal): ActivityLogConnection +} + +"""An enumeration.""" +enum VisibilityTypes { + """public""" + PUBLIC + + """private""" + PRIVATE + + """internal""" + INTERNAL } """ -The Relay compliant `PageInfo` type, containing data necessary to paginate this connection. +The `Date` scalar type represents a Date +value as specified by +[iso8601](https://en.wikipedia.org/wiki/ISO_8601). """ -type PageInfo { - """When paginating forwards, are there more items?""" - hasNextPage: Boolean! +scalar Date - """When paginating backwards, are there more items?""" - hasPreviousPage: Boolean! +"""The `Decimal` scalar type represents a python Decimal.""" +scalar Decimal - """When paginating backwards, the cursor to continue.""" - startCursor: String +"""An enumeration.""" +enum CommentStatus { + DELETED + PUBLISHED +} - """When paginating forwards, the cursor to continue.""" - endCursor: String +type ProfileUserRoleConnection { + """Pagination data for this connection.""" + pageInfo: PageInfo! + + """Contains the nodes in this connection.""" + edges: [ProfileUserRoleEdge]! + totalCount: Int + edgeCount: Int } -interface PageInterface { +"""A Relay edge containing a `ProfileUserRole` and its cursor.""" +type ProfileUserRoleEdge { + """The item at the end of the edge""" + node: ProfileUserRole + + """A cursor for use in pagination""" + cursor: String! +} + +type ProfileUserRole implements Node { """The ID of the object""" id: ID! - urlPath: URLPath - urlPaths: [URLPath] - metadata: Metadata + user: User! + role: ProfileRoles + status: ProfileRoleStatus + pk: Int! } """An enumeration.""" -enum PageStatus { - """Draft""" - DRAFT +enum ProfileRoles { + """admin""" + ADMIN - """Published""" - PUBLISHED + """manager""" + MANAGER } -interface PermissionsInterface { +"""An enumeration.""" +enum ProfileRoleStatus { + """active""" + ACTIVE + + """pending""" + PENDING + + """inactive""" + INACTIVE +} + +type UnreadMessageCountConnection { + """Pagination data for this connection.""" + pageInfo: PageInfo! + + """Contains the nodes in this connection.""" + edges: [UnreadMessageCountEdge]! + totalCount: Int + edgeCount: Int +} + +"""A Relay edge containing a `UnreadMessageCount` and its cursor.""" +type UnreadMessageCountEdge { + """The item at the end of the edge""" + node: UnreadMessageCount + + """A cursor for use in pagination""" + cursor: String! +} + +type Organization implements Node & PermissionsInterface { + profile: Profile + """The ID of the object""" id: ID! @@ -1085,28 +1043,19 @@ interface PermissionsInterface { Determine if the logged in user has a specific permission for this object. """ hasPerm(perm: String!): Boolean + pk: Int! } -type Profile implements Node & PermissionsInterface & PageInterface & FollowsInterface & BlocksInterface & ChatRoomsInterface { +interface ProfileInterface { """The ID of the object""" id: ID! - created: DateTime! - modified: DateTime! - blockersCount: Int - blockingCount: Int - followersCount: Int - followingCount: Int - reportsCount: JSONString! - commentsCount: JSONString! - isCommentsEnabled: Boolean! - name: String - image(width: Int!, height: Int!): File - bannerImage(width: Int!, height: Int!): File - biography: String - targetObjectId: Int - status: ProfilesProfileStatusChoices! - owner: User! - comments( + profile: Profile +} + +interface ProfilesInterface { + """The ID of the object""" + id: ID! + profiles( offset: Int before: String after: String @@ -1116,396 +1065,456 @@ type Profile implements Node & PermissionsInterface & PageInterface & FollowsInt """Ordering""" orderBy: String - ): CommentConnection! - reactions(offset: Int, before: String, after: String, first: Int, last: Int, id: ID): ReactionConnection! - ratings(offset: Int, before: String, after: String, first: Int, last: Int): RateConnection! - user: User - members( - offset: Int - before: String - after: String - first: Int - last: Int - role: ProfileRoles + ): ProfileConnection +} - """Ordering""" - orderBy: String - ): ProfileUserRoleConnection - chatroomparticipantSet(offset: Int, before: String, after: String, first: Int, last: Int, profile_TargetContentType: ID): ChatRoomParticipantConnection! - unreadmessagecountSet(offset: Int, before: String, after: String, first: Int, last: Int): UnreadMessageCountConnection! - messageSet(offset: Int, before: String, after: String, first: Int, last: Int, verb: Verbs): MessageConnection! - following(offset: Int, before: String, after: String, first: Int, last: Int, targetIsFollowingBack: Boolean): FollowConnection - followers(offset: Int, before: String, after: String, first: Int, last: Int, targetIsFollowingBack: Boolean): FollowConnection - blocking(offset: Int, before: String, after: String, first: Int, last: Int): BlockConnection - blockers(offset: Int, before: String, after: String, first: Int, last: Int): BlockConnection - organization: Organization +type ProfileConnection { + """Pagination data for this connection.""" + pageInfo: PageInfo! - """ - Determine if the logged in user has a specific permission for this object. - """ - hasPerm(perm: String!): Boolean - urlPath: URLPath - urlPaths: [URLPath] - metadata: Metadata - isFollowedByMe(profileId: ID): Boolean - isBlockedByMe(profileId: ID): Boolean - chatRooms( - offset: Int - before: String - after: String - first: Int - last: Int - q: String + """Contains the nodes in this connection.""" + edges: [ProfileEdge]! + totalCount: Int + edgeCount: Int +} - """Ordering""" - orderBy: String - profileId: String - unreadMessages: Boolean - archived: Boolean - ): ChatRoomConnection - unreadMessagesCount: Int - pk: Int! - activityLogs(visibility: VisibilityTypes, first: Int = 10, offset: Int, before: String, after: String, last: Int, createdFrom: Date, createdTo: Date, userPk: Decimal, profilePk: Decimal): ActivityLogConnection - target: ProfileInterface +"""A Relay edge containing a `Profile` and its cursor.""" +type ProfileEdge { + """The item at the end of the edge""" + node: Profile + + """A cursor for use in pagination""" + cursor: String! } -type ProfileConnection { +type PageConnection { """Pagination data for this connection.""" pageInfo: PageInfo! """Contains the nodes in this connection.""" - edges: [ProfileEdge]! + edges: [PageEdge]! totalCount: Int edgeCount: Int } -input ProfileCreateInput { - owner: String - name: String! - image: String - bannerImage: String - biography: String - urlPath: String - target: String - targetContentType: String! - targetObjectId: Int! - clientMutationId: String -} +"""A Relay edge containing a `Page` and its cursor.""" +type PageEdge { + """The item at the end of the edge""" + node: Page -type ProfileCreatePayload { - """May contain more than one error for same field.""" - errors: [ErrorType] - _debug: DjangoDebug - profile: ProfileEdge - clientMutationId: String + """A cursor for use in pagination""" + cursor: String! } -input ProfileDeleteInput { +type Page implements Node & PageInterface & PermissionsInterface & CommentsInterface { + created: DateTime! + modified: DateTime! + user: User + status: PageStatus + + """The ID of the object""" id: ID! - clientMutationId: String -} + urlPath: URLPath + urlPaths: [URLPath] + metadata: Metadata -type ProfileDeletePayload { - """May contain more than one error for same field.""" - errors: [ErrorType] - _debug: DjangoDebug - deletedId: ID - clientMutationId: String + """ + Determine if the logged in user has a specific permission for this object. + """ + hasPerm(perm: String!): Boolean + commentsCount: CommentsCount! + comments( + offset: Int + before: String + after: String + first: Int + last: Int + q: String + + """Ordering""" + orderBy: String + ): CommentConnection + isCommentsEnabled: Boolean! + pk: Int! + title: String + body: String } -"""A Relay edge containing a `Profile` and its cursor.""" -type ProfileEdge { - """The item at the end of the edge""" - node: Profile +"""An enumeration.""" +enum PageStatus { + """Draft""" + DRAFT - """A cursor for use in pagination""" - cursor: String! + """Published""" + PUBLISHED } -interface ProfileInterface { +type Report implements Node { """The ID of the object""" id: ID! - profile: Profile + created: DateTime! + modified: DateTime! + user: User! + reportType: ReportTypes + reportSubject: String + pk: Int! + target: Node } """An enumeration.""" -enum ProfileRoles { - """admin""" - ADMIN +enum ReportTypes { + """Spam""" + SPAM - """manager""" - MANAGER + """Inappropriate""" + INAPPROPRIATE + + """Fake""" + FAKE + + """Other""" + OTHER } -"""An enumeration.""" -enum ProfileRoleStatus { - """active""" - ACTIVE +type UserConnection { + """Pagination data for this connection.""" + pageInfo: PageInfo! - """pending""" - PENDING + """Contains the nodes in this connection.""" + edges: [UserEdge]! + totalCount: Int + edgeCount: Int +} - """inactive""" - INACTIVE +"""A Relay edge containing a `User` and its cursor.""" +type UserEdge { + """The item at the end of the edge""" + node: User + + """A cursor for use in pagination""" + cursor: String! } -interface ProfilesInterface { - """The ID of the object""" - id: ID! - profiles( - offset: Int - before: String - after: String - first: Int - last: Int - q: String +"""Debugging information for the current query.""" +type DjangoDebug { + """Executed SQL queries for this API query.""" + sql: [DjangoDebugSQL] - """Ordering""" - orderBy: String - ): ProfileConnection + """Raise exceptions for this API query.""" + exceptions: [DjangoDebugException] } -"""An enumeration.""" -enum ProfilesProfileStatusChoices { - """public""" - A_1 +"""Represents a single database query made to a Django managed DB.""" +type DjangoDebugSQL { + """The type of database being used (e.g. postrgesql, mysql, sqlite).""" + vendor: String! - """private""" - A_2 + """The Django database alias (e.g. 'default').""" + alias: String! + + """The actual SQL sent to this database.""" + sql: String + + """Duration of this database query in seconds.""" + duration: Float! + + """The raw SQL of this query, without params.""" + rawSql: String! + + """JSON encoded database query parameters.""" + params: String! + + """Start time of this database query.""" + startTime: Float! + + """Stop time of this database query.""" + stopTime: Float! + + """Whether this database query took more than 10 seconds.""" + isSlow: Boolean! + + """Whether this database query was a SELECT.""" + isSelect: Boolean! + + """Postgres transaction ID if available.""" + transId: String + + """Postgres transaction status if available.""" + transStatus: String + + """Postgres isolation level if available.""" + isoLevel: String + + """Postgres connection encoding if available.""" + encoding: String } -input ProfileUpdateInput { - id: ID! - owner: String - name: String - image: String - bannerImage: String - biography: String - urlPath: String - phoneNumber: String - clientMutationId: String +"""Represents a single exception raised.""" +type DjangoDebugException { + """The class of the exception""" + excType: String! + + """The message of the exception""" + message: String! + + """The stack trace""" + stack: String! } -type ProfileUpdatePayload { +type Mutation { + rateCreate(input: RateCreateInput!): RateCreatePayload + organizationCreate(input: OrganizationCreateInput!): OrganizationCreatePayload + chatRoomCreate(input: ChatRoomCreateInput!): ChatRoomCreatePayload + chatRoomUpdate(input: ChatRoomUpdateInput!): ChatRoomUpdatePayload + chatRoomSendMessage(input: ChatRoomSendMessageInput!): ChatRoomSendMessagePayload + chatRoomReadMessages(input: ChatRoomReadMessagesInput!): ChatRoomReadMessagesPayload + chatRoomUnread(input: ChatRoomUnreadInput!): ChatRoomUnreadPayload + chatRoomArchive(input: ChatRoomArchiveInput!): ChatRoomArchivePayload + reportCreate(input: ReportCreateInput!): ReportCreatePayload + followToggle(input: FollowToggleInput!): FollowTogglePayload + blockToggle(input: BlockToggleInput!): BlockTogglePayload + reactionToggle(input: ReactionToggleInput!): ReactionTogglePayload + notificationsMarkAsRead(input: NotificationsMarkAsReadInput!): NotificationsMarkAsReadPayload + notificationsMarkAllAsRead(input: NotificationsMarkAllAsReadInput!): NotificationsMarkAllAsReadPayload + notificationSettingToggle(input: NotificationSettingToggleInput!): NotificationSettingTogglePayload + commentCreate(input: CommentCreateInput!): CommentCreatePayload + commentUpdate(input: CommentUpdateInput!): CommentUpdatePayload + commentPin(input: CommentPinInput!): CommentPinPayload + commentDelete(input: CommentDeleteInput!): CommentDeletePayload + pageCreate(input: PageCreateInput!): PageCreatePayload + pageEdit(input: PageEditInput!): PageEditPayload + profileCreate(input: ProfileCreateInput!): ProfileCreatePayload + profileUpdate(input: ProfileUpdateInput!): ProfileUpdatePayload + profileDelete(input: ProfileDeleteInput!): ProfileDeletePayload + profileRoleUpdate(input: RoleUpdateInput!): RoleUpdatePayload +} + +type RateCreatePayload { """May contain more than one error for same field.""" errors: [ErrorType] _debug: DjangoDebug - profile: Profile + rate: RateEdge + target: RatingsInterface clientMutationId: String } -type ProfileUserRole implements Node { - """The ID of the object""" - id: ID! - user: User! - role: ProfileRoles - status: ProfileRoleStatus - pk: Int! +type ErrorType { + field: String! + messages: [String!]! } -type ProfileUserRoleConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! +input RateCreateInput { + targetObjectId: ID! + profileId: ID + value: Int! + clientMutationId: String +} - """Contains the nodes in this connection.""" - edges: [ProfileUserRoleEdge]! - totalCount: Int - edgeCount: Int +type OrganizationCreatePayload { + """May contain more than one error for same field.""" + errors: [ErrorType] + _debug: DjangoDebug + organization: OrganizationEdge + profile: ProfileEdge + clientMutationId: String } -"""A Relay edge containing a `ProfileUserRole` and its cursor.""" -type ProfileUserRoleEdge { +"""A Relay edge containing a `Organization` and its cursor.""" +type OrganizationEdge { """The item at the end of the edge""" - node: ProfileUserRole + node: Organization """A cursor for use in pagination""" cursor: String! } -type Query { - activityLogs(visibility: VisibilityTypes, first: Int = 10, offset: Int, before: String, after: String, last: Int, createdFrom: Date, createdTo: Date, userPk: Decimal, profilePk: Decimal): ActivityLogConnection - organization( - """The ID of the object""" - id: ID! - ): Organization - chatRoom( - """The ID of the object""" - id: ID! - ): ChatRoom - rate( - """The ID of the object""" - id: ID! - ): Rate - report( - """The ID of the object""" - id: ID! - ): Report - comment( - """The ID of the object""" - id: ID! - ): Comment - allComments( - offset: Int - before: String - after: String - first: Int - last: Int - q: String +input OrganizationCreateInput { + name: String! + urlPath: String + clientMutationId: String +} - """Ordering""" - orderBy: String - ): CommentConnection - urlPath(path: String!): URLPath - allPages(offset: Int, before: String, after: String, first: Int, last: Int, status: PageStatus): PageConnection - page( - """The ID of the object""" - id: ID! - ): Page - allProfiles( - offset: Int - before: String - after: String - first: Int - last: Int - q: String +type ChatRoomCreatePayload { + """May contain more than one error for same field.""" + errors: [ErrorType] + _debug: DjangoDebug + room: ChatRoomEdge + profile: Profile + clientMutationId: String +} - """Ordering""" - orderBy: String - ): ProfileConnection - profile( - """The ID of the object""" - id: ID! - ): Profile - users( - offset: Int - before: String - after: String - first: Int - last: Int - q: String +input ChatRoomCreateInput { + profileId: ID! + participants: [ID]! + isGroup: Boolean = false + title: String + clientMutationId: String +} - """Ordering""" - orderBy: String - ): UserConnection - user( - """The ID of the object""" - id: ID! - ): User - me: User - node( - """The ID of the object""" - id: ID! - ): Node +type ChatRoomUpdatePayload { + """May contain more than one error for same field.""" + errors: [ErrorType] + _debug: DjangoDebug + room: ChatRoomEdge + removedParticipants: [ChatRoomParticipant] + clientMutationId: String +} + +input ChatRoomUpdateInput { + roomId: ID! + profileId: ID! + title: String + deleteImage: Boolean = false + addParticipants: [ID] = [] + removeParticipants: [ID] = [] + clientMutationId: String +} + +type ChatRoomSendMessagePayload { + """May contain more than one error for same field.""" + errors: [ErrorType] _debug: DjangoDebug + message: MessageEdge + clientMutationId: String } -type Rate implements Node { - """The ID of the object""" - id: ID! - created: DateTime! - modified: DateTime! - user: User! +input ChatRoomSendMessageInput { + roomId: ID! + profileId: ID! + content: String! + inReplyToId: ID + clientMutationId: String +} + +type ChatRoomReadMessagesPayload { + """May contain more than one error for same field.""" + errors: [ErrorType] + _debug: DjangoDebug + room: ChatRoom + profile: Profile + messages: [Message] + clientMutationId: String +} + +input ChatRoomReadMessagesInput { + roomId: ID! + profileId: ID! + messageIds: [ID] + clientMutationId: String +} + +type ChatRoomUnreadPayload { + """May contain more than one error for same field.""" + errors: [ErrorType] + _debug: DjangoDebug + room: ChatRoom profile: Profile - value: Int! - pk: Int! - target: Node + clientMutationId: String } -type RateConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! +input ChatRoomUnreadInput { + roomId: ID! + profileId: ID! + clientMutationId: String +} - """Contains the nodes in this connection.""" - edges: [RateEdge]! - totalCount: Int - edgeCount: Int +type ChatRoomArchivePayload { + """May contain more than one error for same field.""" + errors: [ErrorType] + _debug: DjangoDebug + room: ChatRoom + clientMutationId: String } -input RateCreateInput { - targetObjectId: ID! - profileId: ID - value: Int! +input ChatRoomArchiveInput { + roomId: ID! + profileId: ID! + archive: Boolean! clientMutationId: String } -type RateCreatePayload { +type ReportCreatePayload { """May contain more than one error for same field.""" errors: [ErrorType] _debug: DjangoDebug - rate: RateEdge - target: RatingsInterface + report: ReportEdge + target: ReportsInterface clientMutationId: String } -"""A Relay edge containing a `Rate` and its cursor.""" -type RateEdge { +"""A Relay edge containing a `Report` and its cursor.""" +type ReportEdge { """The item at the end of the edge""" - node: Rate + node: Report """A cursor for use in pagination""" cursor: String! } -interface RatingsInterface { +interface ReportsInterface { """The ID of the object""" id: ID! - ratingsCount: Int - ratingsSum: Int - ratingsAverage: Float - ratings(offset: Int, before: String, after: String, first: Int, last: Int): RateConnection - isRatingsEnabled: Boolean! - myRating(profileId: ID): Rate + reportsCount: ReportsCount + reports(offset: Int, before: String, after: String, first: Int, last: Int, id: ID): ReportConnection + myReports: Report } -type Reaction implements Node { - """The ID of the object""" - id: ID! - created: DateTime! - modified: DateTime! - user: User! - reactionType: ReactionTypes - pk: Int! - target: Node +type ReportsCount { + SPAM: Int + INAPPROPRIATE: Int + FAKE: Int + OTHER: Int + total: Int } -type ReactionConnection { +type ReportConnection { """Pagination data for this connection.""" pageInfo: PageInfo! """Contains the nodes in this connection.""" - edges: [ReactionEdge]! + edges: [ReportEdge]! totalCount: Int edgeCount: Int } -"""A Relay edge containing a `Reaction` and its cursor.""" -type ReactionEdge { - """The item at the end of the edge""" - node: Reaction +input ReportCreateInput { + targetObjectId: ID! + reportType: ReportTypes = null + reportSubject: String + clientMutationId: String +} - """A cursor for use in pagination""" - cursor: String! +type FollowTogglePayload { + """May contain more than one error for same field.""" + errors: [ErrorType] + _debug: DjangoDebug + follow: FollowEdge + target: FollowsInterface + actor: FollowsInterface + followDeletedId: ID + clientMutationId: String } -type ReactionsCount { - LIKE: Int - DISLIKE: Int - total: Int +input FollowToggleInput { + actorObjectId: ID! + targetObjectId: ID! + clientMutationId: String } -interface ReactionsInterface { - """The ID of the object""" - id: ID! - reactionsCount: ReactionsCount - reactions(offset: Int, before: String, after: String, first: Int, last: Int, id: ID): ReactionConnection - isReactionsEnabled: Boolean! - myReaction(profileId: ID): Reaction +type BlockTogglePayload { + """May contain more than one error for same field.""" + errors: [ErrorType] + _debug: DjangoDebug + block: BlockEdge + target: BlocksInterface + actor: BlocksInterface + blockDeletedId: ID + clientMutationId: String } -input ReactionToggleInput { +input BlockToggleInput { + actorObjectId: ID! targetObjectId: ID! - profileObjectId: ID - reactionType: ReactionTypes! clientMutationId: String } @@ -1519,97 +1528,199 @@ type ReactionTogglePayload { clientMutationId: String } -"""An enumeration.""" -enum ReactionTypes { - """like""" - LIKE +input ReactionToggleInput { + targetObjectId: ID! + profileObjectId: ID + reactionType: ReactionTypes! + clientMutationId: String +} - """dislike""" - DISLIKE +type NotificationsMarkAsReadPayload { + """May contain more than one error for same field.""" + errors: [ErrorType] + _debug: DjangoDebug + recipient: NotificationsInterface + notifications: [Notification] + clientMutationId: String } -type Report implements Node { - """The ID of the object""" +input NotificationsMarkAsReadInput { + """Mark as read or unread""" + read: Boolean! + notificationIds: [ID!] + clientMutationId: String +} + +type NotificationsMarkAllAsReadPayload { + """May contain more than one error for same field.""" + errors: [ErrorType] + _debug: DjangoDebug + recipient: NotificationsInterface + clientMutationId: String +} + +input NotificationsMarkAllAsReadInput { + """Mark as read or unread""" + read: Boolean! + clientMutationId: String +} + +type NotificationSettingTogglePayload { + """May contain more than one error for same field.""" + errors: [ErrorType] + _debug: DjangoDebug + notificationSetting: NotificationSetting + clientMutationId: String +} + +input NotificationSettingToggleInput { + verb: String! + channel: NotificationChannelTypes! + clientMutationId: String +} + +type CommentCreatePayload { + """May contain more than one error for same field.""" + errors: [ErrorType] + _debug: DjangoDebug + comment: CommentEdge + clientMutationId: String +} + +input CommentCreateInput { + targetObjectId: ID! + inReplyToId: ID + profileId: ID + body: String! + clientMutationId: String +} + +type CommentUpdatePayload { + """May contain more than one error for same field.""" + errors: [ErrorType] + _debug: DjangoDebug + comment: Comment + clientMutationId: String +} + +input CommentUpdateInput { id: ID! - created: DateTime! - modified: DateTime! - user: User! - reportType: ReportTypes - reportSubject: String - pk: Int! - target: Node + body: String! + clientMutationId: String } -type ReportConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! +type CommentPinPayload { + """May contain more than one error for same field.""" + errors: [ErrorType] + _debug: DjangoDebug + comment: Comment + clientMutationId: String +} + +input CommentPinInput { + id: ID! + clientMutationId: String +} + +type CommentDeletePayload { + """May contain more than one error for same field.""" + errors: [ErrorType] + _debug: DjangoDebug + deletedId: ID + target: CommentsInterface + inReplyTo: Comment + clientMutationId: String +} + +input CommentDeleteInput { + id: ID! + clientMutationId: String +} + +type PageCreatePayload { + """May contain more than one error for same field.""" + errors: [ErrorType] + _debug: DjangoDebug + page: PageEdge + clientMutationId: String +} + +input PageCreateInput { + user: String + title: String + body: String + urlPath: String + clientMutationId: String +} - """Contains the nodes in this connection.""" - edges: [ReportEdge]! - totalCount: Int - edgeCount: Int +type PageEditPayload { + """May contain more than one error for same field.""" + errors: [ErrorType] + _debug: DjangoDebug + page: Page + clientMutationId: String } -input ReportCreateInput { - targetObjectId: ID! - reportType: ReportTypes = null - reportSubject: String +input PageEditInput { + id: ID! + user: String + title: String + body: String + urlPath: String clientMutationId: String } -type ReportCreatePayload { +type ProfileCreatePayload { """May contain more than one error for same field.""" errors: [ErrorType] _debug: DjangoDebug - report: ReportEdge - target: ReportsInterface + profile: ProfileEdge clientMutationId: String } -"""A Relay edge containing a `Report` and its cursor.""" -type ReportEdge { - """The item at the end of the edge""" - node: Report - - """A cursor for use in pagination""" - cursor: String! +input ProfileCreateInput { + owner: String + name: String! + image: String + bannerImage: String + biography: String + urlPath: String + target: String + targetContentType: String! + targetObjectId: Int! + clientMutationId: String } -type ReportsCount { - SPAM: Int - INAPPROPRIATE: Int - FAKE: Int - OTHER: Int - total: Int +type ProfileUpdatePayload { + """May contain more than one error for same field.""" + errors: [ErrorType] + _debug: DjangoDebug + profile: Profile + clientMutationId: String } -interface ReportsInterface { - """The ID of the object""" +input ProfileUpdateInput { id: ID! - reportsCount: ReportsCount - reports(offset: Int, before: String, after: String, first: Int, last: Int, id: ID): ReportConnection - myReports: Report + owner: String + name: String + image: String + bannerImage: String + biography: String + urlPath: String + phoneNumber: String + clientMutationId: String } -"""An enumeration.""" -enum ReportTypes { - """Spam""" - SPAM - - """Inappropriate""" - INAPPROPRIATE - - """Fake""" - FAKE - - """Other""" - OTHER +type ProfileDeletePayload { + """May contain more than one error for same field.""" + errors: [ErrorType] + _debug: DjangoDebug + deletedId: ID + clientMutationId: String } -input RoleUpdateInput { - profileId: ID! - userId: ID! - roleType: ProfileRoles = null +input ProfileDeleteInput { + id: ID! clientMutationId: String } @@ -1621,6 +1732,13 @@ type RoleUpdatePayload { clientMutationId: String } +input RoleUpdateInput { + profileId: ID! + userId: ID! + roleType: ProfileRoles = null + clientMutationId: String +} + type Subscription { chatRoomOnNewMessage(roomId: ID!): ChatRoomOnNewMessage chatRoomOnRoomUpdate(profileId: ID!): ChatRoomOnRoomUpdate @@ -1629,151 +1747,27 @@ type Subscription { onCommentChange(targetObjectId: ID): OnCommentChange } -type UnreadMessageCount implements Node { - markedUnread: Boolean! - count: Int! - - """The ID of the object""" - id: ID! - pk: Int! -} - -type UnreadMessageCountConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - - """Contains the nodes in this connection.""" - edges: [UnreadMessageCountEdge]! - totalCount: Int - edgeCount: Int -} - -"""A Relay edge containing a `UnreadMessageCount` and its cursor.""" -type UnreadMessageCountEdge { - """The item at the end of the edge""" - node: UnreadMessageCount - - """A cursor for use in pagination""" - cursor: String! +type ChatRoomOnNewMessage { + message: MessageEdge } -type URLPath implements Node { - """The ID of the object""" - id: ID! - created: DateTime! - modified: DateTime! - path: String! - language: Languages - isActive: Boolean! - pk: Int! - target: PageInterface +type ChatRoomOnRoomUpdate { + room: ChatRoomEdge + removedParticipants: [ChatRoomParticipant] } -type User implements Node & PermissionsInterface & NotificationsInterface & PageInterface & RatingsInterface & ProfilesInterface & ProfileInterface { - lastLogin: DateTime - isSuperuser: Boolean - email: String - isEmailVerified: Boolean - dateJoined: DateTime! - passwordChangedDate: DateTime - newEmail: String - isNewEmailConfirmed: Boolean - firstName: String @deprecated(reason: "Deprecated in favor of fullName and shortName") - lastName: String @deprecated(reason: "Deprecated in favor of fullName and shortName") - phoneNumber: String - - """ - Designates whether this user should be treated as active. Unselect this instead of deleting accounts. - """ - isActive: Boolean! - isStaff: Boolean - reactions(offset: Int, before: String, after: String, first: Int, last: Int, id: ID): ReactionConnection! - comments( - offset: Int - before: String - after: String - first: Int - last: Int - q: String - - """Ordering""" - orderBy: String - ): CommentConnection! - pages(offset: Int, before: String, after: String, first: Int, last: Int, status: PageStatus): PageConnection! - - """The ID of the object""" - id: ID! - - """ - Determine if the logged in user has a specific permission for this object. - """ - hasPerm(perm: String!): Boolean - notificationsUnreadCount: Int - notifications(offset: Int, before: String, after: String, first: Int, last: Int, level: NotificationsNotificationLevelChoices, unread: Boolean, verbs: String): NotificationConnection - notificationSettings(offset: Int, before: String, after: String, first: Int, last: Int): NotificationSettingConnection - isNotificationSettingActive(verb: String!, channel: NotificationChannelTypes!): Boolean - urlPath: URLPath - urlPaths: [URLPath] - metadata: Metadata - ratingsCount: Int - ratingsSum: Int - ratingsAverage: Float - ratings(offset: Int, before: String, after: String, first: Int, last: Int): RateConnection - isRatingsEnabled: Boolean! - myRating(profileId: ID): Rate - profiles( - offset: Int - before: String - after: String - first: Int - last: Int - q: String - - """Ordering""" - orderBy: String - ): ProfileConnection +type ChatRoomOnMessagesCountUpdate { profile: Profile - pk: Int! - activityLogs(visibility: VisibilityTypes, first: Int = 10, offset: Int, before: String, after: String, last: Int, createdFrom: Date, createdTo: Date, userPk: Decimal, profilePk: Decimal): ActivityLogConnection - isAuthenticated: Boolean - fullName: String - shortName: String - avatar(width: Int!, height: Int!): File -} - -type UserConnection { - """Pagination data for this connection.""" - pageInfo: PageInfo! - - """Contains the nodes in this connection.""" - edges: [UserEdge]! - totalCount: Int - edgeCount: Int } -"""A Relay edge containing a `User` and its cursor.""" -type UserEdge { - """The item at the end of the edge""" - node: User - - """A cursor for use in pagination""" - cursor: String! -} - -"""An enumeration.""" -enum Verbs { - SENT_MESSAGE -} - -"""An enumeration.""" -enum VisibilityTypes { - """public""" - PUBLIC - - """private""" - PRIVATE - - """internal""" - INTERNAL +type OnNotificationChange { + createdNotification: NotificationEdge + updatedNotification: Notification + deletedNotificationId: ID } +type OnCommentChange { + createdComment: CommentEdge + updatedComment: Comment + deletedCommentId: ID +} \ No newline at end of file