UNPKG

18.4 kBSource Map (JSON)View Raw
1{"version":3,"sources":["webpack:///webpack/bootstrap 000ba4c8300a7d577435","webpack:///./types.ts","webpack:///./typescript-single-file/config.ts","webpack:///./typescript-single-file/selection-set.handlebars","webpack:///./typescript-multi-file/config.ts","webpack:///./index.ts","webpack:///./typescript-single-file/template.handlebars","webpack:///./typescript-single-file/type.handlebars","webpack:///./typescript-single-file/schema.handlebars","webpack:///./typescript-single-file/documents.handlebars","webpack:///./typescript-multi-file/type.handlebars","webpack:///./typescript-multi-file/enum.handlebars","webpack:///./typescript-multi-file/scalar.handlebars","webpack:///./typescript-multi-file/union.handlebars","webpack:///./typescript-multi-file/operation.handlebars","webpack:///./typescript-multi-file/fragment.handlebars","webpack:///./get-generator.ts"],"names":[],"mappings":";AAAA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;;;AAGA;AACA;;AAEA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAK;AACL;AACA;;AAEA;AACA;AACA;AACA,mCAA2B,0BAA0B,EAAE;AACvD,yCAAiC,eAAe;AAChD;AACA;AACA;;AAEA;AACA,8DAAsD,+DAA+D;;AAErH;AACA;;AAEA;AACA;;;;;;;;;;AC7Da,kBAAU,GAAG;IACxB,WAAW,EAAE,aAAa;IAC1B,cAAc,EAAE,gBAAgB;IAChC,OAAO,EAAE,SAAS;CACnB,CAAC;;;;;;;;;;ACJF,mCAA+C;AAC/C,kCAA0C;AAC1C,oCAA8C;AAC9C,uCAAoD;AACpD,0CAA2D;AAC3D,qCAAuD;AAEvD,IAAM,MAAM,GAAoB;IAC9B,SAAS,EAAE,kBAAU,CAAC,WAAW;IACjC,SAAS,EAAE;QACT,KAAK;QACL,IAAI;QACJ,MAAM;QACN,SAAS;QACT,YAAY;KACb;IACD,YAAY,EAAE,IAAI;IAClB,UAAU,EAAE;QACV,MAAM,EAA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,gDAEC","file":"index.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 4);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 000ba4c8300a7d577435","export const EInputType = {\n SINGLE_FILE: 'SINGLE_FILE',\n MULTIPLE_FILES: 'MULTIPLE_FILES',\n PROJECT: 'PROJECT',\n};\n\nexport interface GeneratorConfig {\n inputType: string; // EInputType\n flattenTypes: boolean;\n templates: { [templateName: string]: string | string[] } | string;\n primitives: {\n String: string;\n Int: string;\n Float: string;\n Boolean: string;\n ID: string;\n };\n outFile?: string;\n filesExtension?: string;\n customHelpers?: { [helperName: string]: Function };\n}\n\n\n// WEBPACK FOOTER //\n// ./types.ts","import * as index from './template.handlebars';\nimport * as type from './type.handlebars';\nimport * as schema from './schema.handlebars';\nimport * as documents from './documents.handlebars';\nimport * as selectionSet from './selection-set.handlebars';\nimport { EInputType, GeneratorConfig } from '../types';\n\nconst config: GeneratorConfig = {\n inputType: EInputType.SINGLE_FILE,\n templates: {\n index,\n type,\n schema,\n documents,\n selectionSet,\n },\n flattenTypes: true,\n primitives: {\n String: 'string',\n Int: 'number',\n Float: 'number',\n Boolean: 'boolean',\n ID: 'string'\n },\n outFile: 'types.d.ts',\n};\n\nexport default config;\n\n\n\n// WEBPACK FOOTER //\n// ./typescript-single-file/config.ts","module.exports = \"{{#each this}}\\n{{ name }}: {{ toPrimitive type }}{{#if isArray}}[]{{/if}}{{#unless isRequired}} | null{{/unless}}; {{#if description }} // {{description}}{{/if}}\\n{{/each}}\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./typescript-single-file/selection-set.handlebars\n// module id = 2\n// module chunks = 0","import * as type from './type.handlebars';\nimport * as enumTemplate from './enum.handlebars';\nimport * as scalar from './scalar.handlebars';\nimport * as union from './union.handlebars';\nimport * as operation from './operation.handlebars';\nimport * as fragment from './fragment.handlebars';\nimport * as selectionSet from '../typescript-single-file/selection-set.handlebars';\nimport { EInputType, GeneratorConfig } from '../types';\n\nconst config: GeneratorConfig = {\n inputType: EInputType.MULTIPLE_FILES,\n templates: {\n type,\n inputType: type,\n 'enum': enumTemplate,\n 'interface': type,\n scalar,\n union,\n operation,\n fragment,\n selectionSet,\n },\n flattenTypes: true,\n primitives: {\n String: 'string',\n Int: 'number',\n Float: 'number',\n Boolean: 'boolean',\n ID: 'string'\n },\n filesExtension: 'd.ts',\n};\n\nexport default config;\n\n\n\n// WEBPACK FOOTER //\n// ./typescript-multi-file/config.ts","import TypescriptSingleFile from './typescript-single-file/config';\nimport TypescriptMultiFile from './typescript-multi-file/config';\n\nexport {\n TypescriptSingleFile,\n TypescriptMultiFile,\n};\n\nexport { GeneratorConfig, EInputType } from './types';\nexport { getGeneratorConfig, definitions } from './get-generator';\n\n\n\n// WEBPACK FOOTER //\n// ./index.ts","module.exports = \"/* tslint:disable */\\n{{> schema }}\\n{{> documents }}\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./typescript-single-file/template.handlebars\n// module id = 5\n// module chunks = 0","module.exports = \"{{ toComment description }}\\nexport interface {{ name }}{{#if hasInterfaces}} extends {{#each interfaces}}{{this}}{{#unless @last}},{{/unless}}{{/each}}{{/if}} {\\n{{#each fields}}\\n {{ name }}: {{ toPrimitive type }}{{#if isArray}}[]{{/if}}{{#unless isRequired}} | null{{/unless}}; {{ toComment description }}\\n{{/each}}\\n}\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./typescript-single-file/type.handlebars\n// module id = 6\n// module chunks = 0","module.exports = \"{{#each scalars}}\\n\\n{{ toComment description }}\\nexport type {{ name }} = any;\\n{{/each}}\\n{{#each interfaces}}\\n {{~> type }}\\n{{/each}}\\n{{#each types}}\\n {{~> type }}\\n{{/each}}\\n{{#each inputTypes}}\\n {{~> type }}\\n{{/each}}\\n{{~#each types}}\\n {{~#each fields}}\\n {{~# if hasArguments }}\\nexport interface {{ toPascalCase name }}{{ toPascalCase ../name }}Args {\\n{{#each arguments}}\\n {{ name }}: {{ toPrimitive type }}{{#if isArray}}[]{{/if}}{{#unless isRequired}} | null{{/unless}}; {{ toComment description }}\\n{{/each}}\\n}\\n {{/if}}\\n {{/each}}\\n{{/each}}\\n{{#each enums}}\\n{{ toComment description }}\\nexport type {{ name }} = {{#each values }}\\\"{{ value }}\\\"{{#unless @last}} | {{/unless}}{{/each}};\\n\\n{{/each}}\\n{{#each unions}}\\n{{ toComment description }}\\nexport type {{ name }} = {{#each possibleTypes}}{{this}}{{#unless @last}} | {{/unless}}{{/each}};\\n\\n{{/each}}\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./typescript-single-file/schema.handlebars\n// module id = 7\n// module chunks = 0","module.exports = \"{{#each operations }}\\nexport namespace {{ toPascalCase name }} {\\n export type Variables = {\\n {{#each variables}}\\n {{ name }}: {{ toPrimitive type }}{{#if isArray}}[]{{/if}}{{#unless isRequired}} | null{{/unless}};\\n {{/each}}\\n }\\n\\n export type {{ toPascalCase operationType }} = {\\n {{> selectionSet fields }}\\n }{{#if hasFragmentsSpread}}{{#each fragmentsSpread}} & {{fragmentName}}.Fragment{{/each}}{{/if}}{{#if hasInlineFragments}}{{#each inlineFragments}} & {{onType}}{{/each}}{{/if}}\\n {{#each innerModels }}\\n\\n export type {{ modelType }} = {\\n {{> selectionSet fields }}\\n }{{#if hasFragmentsSpread}}{{#each fragmentsSpread}} & {{fragmentName}}.Fragment{{/each}}{{/if}}{{#if hasInlineFragments}}{{#each inlineFragments}} & {{onType}}{{/each}}{{/if}}\\n {{/each}}\\n}\\n{{/each}}\\n{{#each fragments }}\\n\\nexport namespace {{name}} {\\n export type Fragment = {\\n {{> selectionSet fields }}\\n }{{#if hasFragmentsSpread}}{{#each fragmentsSpread}} & {{fragmentName}}.Fragment{{/each}}{{/if}}{{#if hasInlineFragments}}{{#each inlineFragments}} & {{onType}}{{/each}}{{/if}}\\n {{#each innerModels }}\\n\\n export type {{ modelType }} = {\\n {{> selectionSet fields }}\\n }{{#if hasFragmentsSpread}}{{#each fragmentsSpread}} & {{fragmentName}}.Fragment{{/each}}{{/if}}{{#if hasInlineFragments}}{{#each inlineFragments}} & {{onType}}{{/each}}{{/if}}\\n {{/each}}\\n}\\n{{/each}}\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./typescript-single-file/documents.handlebars\n// module id = 8\n// module chunks = 0","module.exports = \"{{#eachImport this }}\\nimport { {{ name }} } from './{{ file }}';\\n{{/eachImport}}\\n{{ toComment description }}\\nexport interface {{ name }}{{#if hasInterfaces}} extends {{#each interfaces}}{{this}}{{#unless @last}},{{/unless}}{{/each}}{{/if}} {\\n{{#each fields}}\\n {{ name }}: {{ toPrimitive type }}{{#if isArray}}[]{{/if}}{{#unless isRequired}} | null{{/unless}}; {{ toComment description }}\\n{{/each}}\\n}\\n\\n{{#each fields}}\\n {{~# if hasArguments }}\\nexport interface {{ toPascalCase name }}{{ toPascalCase ../name }}Args {\\n{{#each arguments}}\\n {{ name }}: {{ toPrimitive type }}{{#if isArray}}[]{{/if}}{{#unless isRequired}} | null{{/unless}}; {{ toComment description }}\\n{{/each}}\\n}\\n {{/if}}\\n{{/each}}\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./typescript-multi-file/type.handlebars\n// module id = 9\n// module chunks = 0","module.exports = \"{{ toComment description }}\\nexport type {{ name }} = {{#each values }}\\\"{{ value }}\\\"{{#unless @last}} | {{/unless}}{{/each}};\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./typescript-multi-file/enum.handlebars\n// module id = 10\n// module chunks = 0","module.exports = \"{{#eachImport this }}\\nimport { {{ name }} } from './{{ file }}';\\n{{/eachImport}}\\n{{ toComment description }}\\nexport type {{ name }} = any;\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./typescript-multi-file/scalar.handlebars\n// module id = 11\n// module chunks = 0","module.exports = \"{{#eachImport this }}\\nimport { {{ name }} } from './{{ file }}';\\n{{/eachImport}}\\n{{ toComment description }}\\nexport type {{ name }} = {{#each possibleTypes}}{{this}}{{#unless @last}} | {{/unless}}{{/each}};\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./typescript-multi-file/union.handlebars\n// module id = 12\n// module chunks = 0","module.exports = \"{{#eachImport this }}\\nimport { {{ name }} } from './{{ file }}';\\n{{/eachImport}}\\nexport namespace {{ toPascalCase name }} {\\n export type Variables = {\\n{{#each variables}}\\n {{ name }}: {{ toPrimitive type }}{{#if isArray}}[]{{/if}}{{#unless isRequired}} | null{{/unless}};\\n{{/each}}\\n }\\n\\n export type {{ toPascalCase operationType }} = {\\n {{> selectionSet fields }}\\n } {{#if hasFragmentsSpread}}{{#each fragmentsSpread}} & {{fragmentName}}.Fragment{{/each}}{{/if}}{{#if hasInlineFragments}}{{#each inlineFragments}} & {{onType}}{{/each}}{{/if}}\\n{{#each innerModels }}\\n\\n export type {{ modelType }} = {\\n {{> selectionSet fields }}\\n }{{#if hasFragmentsSpread}}{{#each fragmentsSpread}} & {{fragmentName}}.Fragment{{/each}}{{/if}}{{#if hasInlineFragments}}{{#each inlineFragments}} & {{onType}}{{/each}}{{/if}}\\n{{/each}}\\n}\\n\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./typescript-multi-file/operation.handlebars\n// module id = 13\n// module chunks = 0","module.exports = \"{{#eachImport this }}\\nimport { {{ name }} } from './{{ file }}';\\n{{/eachImport}}\\nexport namespace {{name}} {\\n export type Fragment = {\\n {{> selectionSet fields }}\\n } {{#if hasFragmentsSpread}}{{#each fragmentsSpread}} & {{fragmentName}}.Fragment{{/each}}{{/if}}{{#if hasInlineFragments}}{{#each inlineFragments}} & {{onType}}{{/each}}{{/if}}\\n {{#each innerModels }}\\n export type {{ modelType }} = {\\n {{> selectionSet fields }}\\n } {{#if hasFragmentsSpread}}{{#each fragmentsSpread}} & {{fragmentName}}.Fragment{{/each}}{{/if}}{{#if hasInlineFragments}}{{#each inlineFragments}} & {{onType}}{{/each}}{{/if}}\\n {{/each}}\\n}\"\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./typescript-multi-file/fragment.handlebars\n// module id = 14\n// module chunks = 0","import { GeneratorConfig } from './types';\nimport TypescriptSingleFile from './typescript-single-file/config';\nimport TypescriptMultiFile from './typescript-multi-file/config';\n\nexport const definitions = {\n // TypeScript single file\n ts: TypescriptSingleFile,\n typescript: TypescriptSingleFile,\n 'ts-single': TypescriptSingleFile,\n 'typescript-single': TypescriptSingleFile,\n // TypeScript multiple files\n 'ts-multiple': TypescriptMultiFile,\n 'typescript-multiple': TypescriptMultiFile,\n};\n\nexport function getGeneratorConfig(name: string): GeneratorConfig {\n return definitions[name];\n}\n\n\n\n// WEBPACK FOOTER //\n// ./get-generator.ts"],"sourceRoot":""}
\No newline at end of file