UNPKG

@kiwicom/smart-faq

Version:

124 lines (117 loc) 2.85 kB
/** * @flow * @relayHash 2b8a9ac3115ed760bb4edc6825cb66c0 */ /* 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: number, type: FAQCommentType, comment: string, |}; export type CreateCommentMutationResponse = {| +addFAQArticleComment: ?{| +isRateLimitExhausted: ?boolean |} |}; export type CreateCommentMutation = {| variables: CreateCommentMutationVariables, response: CreateCommentMutationResponse, |}; */ /* mutation CreateCommentMutation( $articleId: Int! $type: FAQCommentType! $comment: String! ) { addFAQArticleComment(originalId: $articleId, type: $type, comment: $comment) { isRateLimitExhausted } } */ var node /*: ConcreteRequest*/ = function () { var v0 = [{ "kind": "LocalArgument", "name": "articleId", "type": "Int!", "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" }, { "kind": "Variable", "name": "originalId", "variableName": "articleId" }, { "kind": "Variable", "name": "type", "variableName": "type" }], "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: Int!\n $type: FAQCommentType!\n $comment: String!\n) {\n addFAQArticleComment(originalId: $articleId, type: $type, comment: $comment) {\n isRateLimitExhausted\n }\n}\n", "metadata": {} } }; }(); // prettier-ignore node /*: any*/ .hash = 'd03b041608954e773dd71ec0b7cae92e'; module.exports = node;