1 | "use strict";
|
2 | var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
3 | if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
4 | return cooked;
|
5 | };
|
6 | Object.defineProperty(exports, "__esModule", { value: true });
|
7 | var oda_gen_common_1 = require("oda-gen-common");
|
8 | var graphql_tag_1 = require("graphql-tag");
|
9 | var lodashProps = "\nmap: Path\nkeyBy: Path\neach: LodashOperations\ntrim: DummyArgument\nstringify: DummyArgument\ntoJSON: DummyArgument\n\n# Creates an array of elements split into groups the length of size.\n# If array can't be split evenly, the final chunk will be the remaining elements.\nchunk: Int\n\n# Creates a slice of array with n elements dropped from the beginning.\ndrop: Int\n\n# Creates a slice of array with n elements dropped from the end.\ndropRight: Int\n\n# Creates a slice of array with n elements taken from the beginning.\ntake: Int\n\n# Creates a slice of array with n elements taken from the end.\ntakeRight: Int\n\n# Recursively flatten array up to depth times.\nflattenDepth: Int\n\n# The inverse of `toPairs`; this method returns an object composed from key-value\n# pairs.\nfromPairs: DummyArgument\n\n# Gets the element at index n of array. If n is negative, the nth element from\n# the end is returned.\nnth: Int\n\n# Reverses array so that the first element becomes the last, the second element\n# becomes the second to last, and so on.\nreverse: DummyArgument\n\n# Creates a duplicate-free version of an array, in which only the first occurrence\n# of each element is kept. The order of result values is determined by the order\n# they occur in the array.\nuniq: DummyArgument\n\nuniqBy: Path\n\ncountBy: Path\nfilter: JSON\nreject: JSON\nfilterIf: Predicate\nrejectIf: Predicate\ngroupBy: Path\nsortBy: [Path!]\nmatch: RegExpr\nisMatch: RegExpr\n\nminBy: Path\nmaxBy: Path\nmeanBy: Path\nsumBy: Path\n\n# Converts all elements in array into a string separated by separator.\njoin: String\n\nget: Path\n# push selected item donw to the specified path\ndive: Path\n# get all fields of specified path to current object\nassign: [Path!]\nmapValues: Path\n\nconvert: ConvertTypeArgument\n\n# Creates an array of values corresponding to paths of object.\nat: [Path!]\n# Creates an array of own enumerable string keyed-value pairs for object.\ntoPairs: DummyArgument\n\n# Creates an object composed of the inverted keys and values of object.\n# If object contains duplicate values, subsequent values overwrite property\n# assignments of previous values.\ninvert: DummyArgument\n\ninvertBy: Path\n# Creates an array of the own enumerable property names of object.\nkeys: DummyArgument\n# Creates an array of the own enumerable string keyed property values of object.\nvalues: DummyArgument\n";
|
10 | exports.Path = new oda_gen_common_1.Scalar({
|
11 | schema: graphql_tag_1.default(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n scalar Path\n "], ["\n scalar Path\n "]))),
|
12 | resolver: {
|
13 | serialize: String,
|
14 | parseValue: String,
|
15 | parseLiteral: function (x) { return x.value; },
|
16 | },
|
17 | });
|
18 | exports.RegularExpression = new oda_gen_common_1.Input({
|
19 | schema: graphql_tag_1.default(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n input RegExpr {\n match: String!\n flags: String\n }\n "], ["\n input RegExpr {\n match: String!\n flags: String\n }\n "]))),
|
20 | });
|
21 | exports.Predicate = new oda_gen_common_1.Input({
|
22 | schema: graphql_tag_1.default(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n input Predicate {\n lt: JSON\n lte: JSON\n gt: JSON\n gte: JSON\n eq: JSON\n startsWith: String\n endsWith: String\n and: [Predicate!]\n or: [Predicate!]\n ", "\n }\n "], ["\n input Predicate {\n lt: JSON\n lte: JSON\n gt: JSON\n gte: JSON\n eq: JSON\n startsWith: String\n endsWith: String\n and: [Predicate!]\n or: [Predicate!]\n ", "\n }\n "])), lodashProps),
|
23 | });
|
24 | exports.Directives = new oda_gen_common_1.Directive({
|
25 | schema: graphql_tag_1.default(templateObject_4 || (templateObject_4 = __makeTemplateObject([" \n directive @_(\n ", "\n ) on FIELD | QUERY\n "], [" \n directive @_(\n ", "\n ) on FIELD | QUERY\n "])), lodashProps),
|
26 | });
|
27 | exports.LodashOperations = new oda_gen_common_1.Input({
|
28 | schema: graphql_tag_1.default(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n input LodashOperations {\n ", "\n }\n "], ["\n input LodashOperations {\n ", "\n }\n "])), lodashProps),
|
29 | });
|
30 | exports.DummyArgument = new oda_gen_common_1.Enum({
|
31 | schema: graphql_tag_1.default(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n enum DummyArgument {\n none\n }\n "], ["\n enum DummyArgument {\n none\n }\n "]))),
|
32 | });
|
33 | exports.ConvertTypeArgument = new oda_gen_common_1.Enum({
|
34 | schema: graphql_tag_1.default(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n enum ConvertTypeArgument {\n toNumber\n toString\n }\n "], ["\n enum ConvertTypeArgument {\n toNumber\n toString\n }\n "]))),
|
35 | });
|
36 | exports.default = new oda_gen_common_1.Schema({
|
37 | name: 'LodashSchema',
|
38 | items: [
|
39 | exports.Path,
|
40 | exports.RegularExpression,
|
41 | exports.Predicate,
|
42 | exports.Directives,
|
43 | exports.LodashOperations,
|
44 | exports.DummyArgument,
|
45 | exports.ConvertTypeArgument,
|
46 | ],
|
47 | });
|
48 | var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7;
|
49 |
|
\ | No newline at end of file |