UNPKG

@kiwicom/smart-faq

Version:

130 lines (123 loc) 2.9 kB
/** * @flow * @relayHash f82abde51f3a4cdba9eb89a6ffa90a81 */ /* eslint-disable */ 'use strict'; /*:: import type { ConcreteRequest } from 'relay-runtime'; export type FAQCommentType = "CONFUSING" | "DOESNT_ANSWER" | "DONT_LIKE" | "NOT_ACCURATE" | "OTHER" | "%future added value"; export type CreateCommentMutationVariables = {| articleId: string, type: FAQCommentType, comment: string, |}; export type CreateCommentMutationResponse = {| +_addFAQArticleComment: ?{| +isRateLimitExhausted: ?boolean |} |}; export type CreateCommentMutation = {| variables: CreateCommentMutationVariables, response: CreateCommentMutationResponse, |}; */ /* mutation CreateCommentMutation( $articleId: ID! $type: FAQCommentType! $comment: String! ) { _addFAQArticleComment(id: $articleId, type: $type, comment: $comment) { isRateLimitExhausted } } */ const node/*: ConcreteRequest*/ = (function(){ var v0 = [ { "kind": "LocalArgument", "name": "articleId", "type": "ID!", "defaultValue": null }, { "kind": "LocalArgument", "name": "type", "type": "FAQCommentType!", "defaultValue": null }, { "kind": "LocalArgument", "name": "comment", "type": "String!", "defaultValue": null } ], v1 = [ { "kind": "LinkedField", "alias": null, "name": "_addFAQArticleComment", "storageKey": null, "args": [ { "kind": "Variable", "name": "comment", "variableName": "comment", "type": "String!" }, { "kind": "Variable", "name": "id", "variableName": "articleId", "type": "ID!" }, { "kind": "Variable", "name": "type", "variableName": "type", "type": "FAQCommentType!" } ], "concreteType": "FAQFeedbackResponse", "plural": false, "selections": [ { "kind": "ScalarField", "alias": null, "name": "isRateLimitExhausted", "args": null, "storageKey": null } ] } ]; return { "kind": "Request", "fragment": { "kind": "Fragment", "name": "CreateCommentMutation", "type": "RootMutation", "metadata": null, "argumentDefinitions": (v0/*: any*/), "selections": (v1/*: any*/) }, "operation": { "kind": "Operation", "name": "CreateCommentMutation", "argumentDefinitions": (v0/*: any*/), "selections": (v1/*: any*/) }, "params": { "operationKind": "mutation", "name": "CreateCommentMutation", "id": null, "text": "mutation CreateCommentMutation(\n $articleId: ID!\n $type: FAQCommentType!\n $comment: String!\n) {\n _addFAQArticleComment(id: $articleId, type: $type, comment: $comment) {\n isRateLimitExhausted\n }\n}\n", "metadata": {} } }; })(); // prettier-ignore (node/*: any*/).hash = '8b9457edbf3298e943fbe962c9a21457'; module.exports = node;