From 6f7fd881e202e42c35eb72c95a0632683fc4bf95 Mon Sep 17 00:00:00 2001 From: Angelo Ashmore Date: Wed, 8 May 2024 12:01:10 -1000 Subject: [PATCH] feat: support group fields in slices (#62) * chore: update `@prismicio/client` * feat: support groups in fields * ci: temporarily install deps using `--legacy-peer-deps` * fix: add group item interface to output * test: remove `only` * chore: update @prismicio/client * chore: update packages --------- Co-authored-by: Xavier Rutayisire --- package-lock.json | 339 +-- package.json | 4 +- src/generateTypes.ts | 4 + src/lib/buildFieldProperties.ts | 38 +- src/lib/buildSharedSliceType.ts | 16 +- test/__snapshots__/generateTypes.test.ts.snap | 2377 +++++++++-------- test/generateTypes-sharedSlice.test.ts | 30 + 7 files changed, 1330 insertions(+), 1478 deletions(-) diff --git a/package-lock.json b/package-lock.json index 18fd10e..1aad1af 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,8 +23,8 @@ "prismic-ts-codegen": "bin/prismic-ts-codegen.js" }, "devDependencies": { - "@prismicio/client": "^7.1.0", - "@prismicio/mock": "^0.3.1", + "@prismicio/client": "^7.5.0", + "@prismicio/mock": "^0.3.6", "@size-limit/preset-small-lib": "^8.2.6", "@trivago/prettier-plugin-sort-imports": "^4.1.1", "@types/common-tags": "^1.8.1", @@ -913,13 +913,12 @@ } }, "node_modules/@prismicio/client": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/@prismicio/client/-/client-7.1.0.tgz", - "integrity": "sha512-9UvPjPae+7KfdZpUvdDCQG+9GCrR/A0BVFrixj1O7lv7SCJuyp50ZIVm9cc6G49E0HMSHFH592isRKj/xKjP+w==", + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@prismicio/client/-/client-7.5.0.tgz", + "integrity": "sha512-4gcW59r2/JF9hngd7HRTJ3dmOJ3+befegb7FQi3s5e5Eo4UBSDgq9ufh9d/pJ0yqsRpuPrjbib82uJBlFQf+rQ==", "dev": true, "dependencies": { - "@prismicio/richtext": "^2.1.5", - "imgix-url-builder": "^0.0.3" + "imgix-url-builder": "^0.0.4" }, "engines": { "node": ">=14.15.0" @@ -937,32 +936,20 @@ } }, "node_modules/@prismicio/mock": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@prismicio/mock/-/mock-0.3.1.tgz", - "integrity": "sha512-xwwnQ6kKfHMypjao2Q0sdUFuQsdDlif8qmgKoqYv8KlmNxKHzurgfGh9Zl1wHF1ldEJ8C3NVpI4AqdaHjyCHSA==", + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/@prismicio/mock/-/mock-0.3.6.tgz", + "integrity": "sha512-mWWtrE9hC70YitW2HErV/QpL1Z0SuG0zezxOvqUgRw157z9gyMvqmfBEXGEa7VoVv0vzVSnlThW3w6EnZioPXA==", "dev": true, "dependencies": { - "change-case": "^4.1.2" + "change-case": "^5.4.4" }, "engines": { - "node": ">=12.7.0" + "node": ">=18" }, "peerDependencies": { "@prismicio/client": "^7" } }, - "node_modules/@prismicio/richtext": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@prismicio/richtext/-/richtext-2.1.5.tgz", - "integrity": "sha512-Sf6iCsciPmfK3uQeFmeY9RTRSuhrCVzyU39OkiJ1VJn8O0531pKapGoWS+5WGxouJtE5+jGqV8L+L2mKP7NkXQ==", - "dev": true, - "dependencies": { - "@prismicio/types": "^0.2.7" - }, - "engines": { - "node": ">=12.7.0" - } - }, "node_modules/@prismicio/types": { "version": "0.2.8", "resolved": "https://registry.npmjs.org/@prismicio/types/-/types-0.2.8.tgz", @@ -1790,16 +1777,6 @@ "node": ">=6" } }, - "node_modules/camel-case": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", - "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", - "dev": true, - "dependencies": { - "pascal-case": "^3.1.2", - "tslib": "^2.0.3" - } - }, "node_modules/camelcase": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-7.0.1.tgz", @@ -1839,17 +1816,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/capital-case": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/capital-case/-/capital-case-1.0.4.tgz", - "integrity": "sha512-ds37W8CytHgwnhGGTi88pcPyR15qoNkOpYwmMMfnWqqWgESapLqvDx6huFjQ5vqWSn2Z06173XNA7LtMOeUh1A==", - "dev": true, - "dependencies": { - "no-case": "^3.0.4", - "tslib": "^2.0.3", - "upper-case-first": "^2.0.2" - } - }, "node_modules/chai": { "version": "4.3.7", "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.7.tgz", @@ -1882,24 +1848,10 @@ } }, "node_modules/change-case": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/change-case/-/change-case-4.1.2.tgz", - "integrity": "sha512-bSxY2ws9OtviILG1EiY5K7NNxkqg/JnRnFxLtKQ96JaviiIxi7djMrSd0ECT9AC+lttClmYwKw53BWpOMblo7A==", - "dev": true, - "dependencies": { - "camel-case": "^4.1.2", - "capital-case": "^1.0.4", - "constant-case": "^3.0.4", - "dot-case": "^3.0.4", - "header-case": "^2.0.4", - "no-case": "^3.0.4", - "param-case": "^3.0.4", - "pascal-case": "^3.1.2", - "path-case": "^3.0.4", - "sentence-case": "^3.0.4", - "snake-case": "^3.0.4", - "tslib": "^2.0.3" - } + "version": "5.4.4", + "resolved": "https://registry.npmjs.org/change-case/-/change-case-5.4.4.tgz", + "integrity": "sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==", + "dev": true }, "node_modules/character-entities": { "version": "2.0.2", @@ -2037,17 +1989,6 @@ "typedarray": "^0.0.6" } }, - "node_modules/constant-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/constant-case/-/constant-case-3.0.4.tgz", - "integrity": "sha512-I2hSBi7Vvs7BEuJDr5dDHfzb/Ruj3FyvFyh7KLilAjNQw3Be+xgqUBA2W6scVEcL0hL1dwPRtIqEPVUCKkSsyQ==", - "dev": true, - "dependencies": { - "no-case": "^3.0.4", - "tslib": "^2.0.3", - "upper-case": "^2.0.2" - } - }, "node_modules/conventional-changelog": { "version": "3.1.25", "resolved": "https://registry.npmjs.org/conventional-changelog/-/conventional-changelog-3.1.25.tgz", @@ -3704,16 +3645,6 @@ "node": ">=6.0.0" } }, - "node_modules/dot-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", - "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", - "dev": true, - "dependencies": { - "no-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, "node_modules/dot-prop": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", @@ -5421,16 +5352,6 @@ "node": ">=4" } }, - "node_modules/header-case": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/header-case/-/header-case-2.0.4.tgz", - "integrity": "sha512-H/vuk5TEEVZwrR0lp2zed9OCo1uAILMlx0JEMgC26rzyJJ3N1v6XkwHHXJQdR2doSjcGPM6OKPYoJgf0plJ11Q==", - "dev": true, - "dependencies": { - "capital-case": "^1.0.4", - "tslib": "^2.0.3" - } - }, "node_modules/hosted-git-info": { "version": "6.1.1", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-6.1.1.tgz", @@ -5458,9 +5379,9 @@ } }, "node_modules/imgix-url-builder": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/imgix-url-builder/-/imgix-url-builder-0.0.3.tgz", - "integrity": "sha512-8Oc2Cn4+jF06sEfJcVPlWYfD2F6RjrwIMbk1xEzux8unoB5LsvFc/GL1BQ47HPaeE12ReX2nMUcjUslGYWLxHA==", + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/imgix-url-builder/-/imgix-url-builder-0.0.4.tgz", + "integrity": "sha512-JRLydfxGTTbSSOG82ewuCgnmw/CzIPzoDqpP3UYD7RE+QWS8ZZbpF87ZuRqtcbEKdxahRsExinuKRxPZVvukWA==", "dev": true, "engines": { "node": ">=12.7.0" @@ -6820,16 +6741,6 @@ "node": ">=4" } }, - "node_modules/param-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", - "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", - "dev": true, - "dependencies": { - "dot-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, "node_modules/parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", @@ -6874,16 +6785,6 @@ "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", "dev": true }, - "node_modules/path-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/path-case/-/path-case-3.0.4.tgz", - "integrity": "sha512-qO4qCFjXqVTrcbPt/hQfhTQ+VhFsqNKOPtytgNKkKxSoEp3XPUQ8ObFuePylOIok5gjn69ry8XiULxCwot3Wfg==", - "dev": true, - "dependencies": { - "dot-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", @@ -7541,17 +7442,6 @@ "node": ">=10" } }, - "node_modules/sentence-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/sentence-case/-/sentence-case-3.0.4.tgz", - "integrity": "sha512-8LS0JInaQMCRoQ7YUytAo/xUu5W2XnQxV2HI/6uM6U7CITS1RqPElr30V6uIqyMKM9lJGRVFy5/4CuzcixNYSg==", - "dev": true, - "dependencies": { - "no-case": "^3.0.4", - "tslib": "^2.0.3", - "upper-case-first": "^2.0.2" - } - }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -7614,16 +7504,6 @@ "node": ">=8" } }, - "node_modules/snake-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/snake-case/-/snake-case-3.0.4.tgz", - "integrity": "sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==", - "dev": true, - "dependencies": { - "dot-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, "node_modules/source-map": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", @@ -8077,24 +7957,6 @@ "node": ">= 10.0.0" } }, - "node_modules/upper-case": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/upper-case/-/upper-case-2.0.2.tgz", - "integrity": "sha512-KgdgDGJt2TpuwBUIjgG6lzw2GWFRCW9Qkfkiv0DxqHHLYJHmtmdUIKcZd8rHgFSjopVTlw6ggzCm1b8MFQwikg==", - "dev": true, - "dependencies": { - "tslib": "^2.0.3" - } - }, - "node_modules/upper-case-first": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/upper-case-first/-/upper-case-first-2.0.2.tgz", - "integrity": "sha512-514ppYHBaKwfJRK/pNC6c/OxfGa0obSnAl106u97Ed0I625Nin96KAjttZF6ZL3e1XLtphxnqrOi9iWgm+u+bg==", - "dev": true, - "dependencies": { - "tslib": "^2.0.3" - } - }, "node_modules/uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", @@ -9468,13 +9330,12 @@ } }, "@prismicio/client": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/@prismicio/client/-/client-7.1.0.tgz", - "integrity": "sha512-9UvPjPae+7KfdZpUvdDCQG+9GCrR/A0BVFrixj1O7lv7SCJuyp50ZIVm9cc6G49E0HMSHFH592isRKj/xKjP+w==", + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/@prismicio/client/-/client-7.5.0.tgz", + "integrity": "sha512-4gcW59r2/JF9hngd7HRTJ3dmOJ3+befegb7FQi3s5e5Eo4UBSDgq9ufh9d/pJ0yqsRpuPrjbib82uJBlFQf+rQ==", "dev": true, "requires": { - "@prismicio/richtext": "^2.1.5", - "imgix-url-builder": "^0.0.3" + "imgix-url-builder": "^0.0.4" } }, "@prismicio/custom-types-client": { @@ -9486,21 +9347,12 @@ } }, "@prismicio/mock": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@prismicio/mock/-/mock-0.3.1.tgz", - "integrity": "sha512-xwwnQ6kKfHMypjao2Q0sdUFuQsdDlif8qmgKoqYv8KlmNxKHzurgfGh9Zl1wHF1ldEJ8C3NVpI4AqdaHjyCHSA==", + "version": "0.3.6", + "resolved": "https://registry.npmjs.org/@prismicio/mock/-/mock-0.3.6.tgz", + "integrity": "sha512-mWWtrE9hC70YitW2HErV/QpL1Z0SuG0zezxOvqUgRw157z9gyMvqmfBEXGEa7VoVv0vzVSnlThW3w6EnZioPXA==", "dev": true, "requires": { - "change-case": "^4.1.2" - } - }, - "@prismicio/richtext": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/@prismicio/richtext/-/richtext-2.1.5.tgz", - "integrity": "sha512-Sf6iCsciPmfK3uQeFmeY9RTRSuhrCVzyU39OkiJ1VJn8O0531pKapGoWS+5WGxouJtE5+jGqV8L+L2mKP7NkXQ==", - "dev": true, - "requires": { - "@prismicio/types": "^0.2.7" + "change-case": "^5.4.4" } }, "@prismicio/types": { @@ -10093,16 +9945,6 @@ "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "dev": true }, - "camel-case": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/camel-case/-/camel-case-4.1.2.tgz", - "integrity": "sha512-gxGWBrTT1JuMx6R+o5PTXMmUnhnVzLQ9SNutD4YqKtI6ap897t3tKECYla6gCWEkplXnlNybEkZg9GEGxKFCgw==", - "dev": true, - "requires": { - "pascal-case": "^3.1.2", - "tslib": "^2.0.3" - } - }, "camelcase": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-7.0.1.tgz", @@ -10126,17 +9968,6 @@ } } }, - "capital-case": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/capital-case/-/capital-case-1.0.4.tgz", - "integrity": "sha512-ds37W8CytHgwnhGGTi88pcPyR15qoNkOpYwmMMfnWqqWgESapLqvDx6huFjQ5vqWSn2Z06173XNA7LtMOeUh1A==", - "dev": true, - "requires": { - "no-case": "^3.0.4", - "tslib": "^2.0.3", - "upper-case-first": "^2.0.2" - } - }, "chai": { "version": "4.3.7", "resolved": "https://registry.npmjs.org/chai/-/chai-4.3.7.tgz", @@ -10163,24 +9994,10 @@ } }, "change-case": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/change-case/-/change-case-4.1.2.tgz", - "integrity": "sha512-bSxY2ws9OtviILG1EiY5K7NNxkqg/JnRnFxLtKQ96JaviiIxi7djMrSd0ECT9AC+lttClmYwKw53BWpOMblo7A==", - "dev": true, - "requires": { - "camel-case": "^4.1.2", - "capital-case": "^1.0.4", - "constant-case": "^3.0.4", - "dot-case": "^3.0.4", - "header-case": "^2.0.4", - "no-case": "^3.0.4", - "param-case": "^3.0.4", - "pascal-case": "^3.1.2", - "path-case": "^3.0.4", - "sentence-case": "^3.0.4", - "snake-case": "^3.0.4", - "tslib": "^2.0.3" - } + "version": "5.4.4", + "resolved": "https://registry.npmjs.org/change-case/-/change-case-5.4.4.tgz", + "integrity": "sha512-HRQyTk2/YPEkt9TnUPbOpr64Uw3KOicFWPVBb+xiHvd6eBx/qPr9xqfBFDT8P2vWsvvz4jbEkfDe71W3VyNu2w==", + "dev": true }, "character-entities": { "version": "2.0.2", @@ -10290,17 +10107,6 @@ "typedarray": "^0.0.6" } }, - "constant-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/constant-case/-/constant-case-3.0.4.tgz", - "integrity": "sha512-I2hSBi7Vvs7BEuJDr5dDHfzb/Ruj3FyvFyh7KLilAjNQw3Be+xgqUBA2W6scVEcL0hL1dwPRtIqEPVUCKkSsyQ==", - "dev": true, - "requires": { - "no-case": "^3.0.4", - "tslib": "^2.0.3", - "upper-case": "^2.0.2" - } - }, "conventional-changelog": { "version": "3.1.25", "resolved": "https://registry.npmjs.org/conventional-changelog/-/conventional-changelog-3.1.25.tgz", @@ -11534,16 +11340,6 @@ "esutils": "^2.0.2" } }, - "dot-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/dot-case/-/dot-case-3.0.4.tgz", - "integrity": "sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==", - "dev": true, - "requires": { - "no-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, "dot-prop": { "version": "5.3.0", "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", @@ -12808,16 +12604,6 @@ "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==" }, - "header-case": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/header-case/-/header-case-2.0.4.tgz", - "integrity": "sha512-H/vuk5TEEVZwrR0lp2zed9OCo1uAILMlx0JEMgC26rzyJJ3N1v6XkwHHXJQdR2doSjcGPM6OKPYoJgf0plJ11Q==", - "dev": true, - "requires": { - "capital-case": "^1.0.4", - "tslib": "^2.0.3" - } - }, "hosted-git-info": { "version": "6.1.1", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-6.1.1.tgz", @@ -12839,9 +12625,9 @@ "dev": true }, "imgix-url-builder": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/imgix-url-builder/-/imgix-url-builder-0.0.3.tgz", - "integrity": "sha512-8Oc2Cn4+jF06sEfJcVPlWYfD2F6RjrwIMbk1xEzux8unoB5LsvFc/GL1BQ47HPaeE12ReX2nMUcjUslGYWLxHA==", + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/imgix-url-builder/-/imgix-url-builder-0.0.4.tgz", + "integrity": "sha512-JRLydfxGTTbSSOG82ewuCgnmw/CzIPzoDqpP3UYD7RE+QWS8ZZbpF87ZuRqtcbEKdxahRsExinuKRxPZVvukWA==", "dev": true }, "import-fresh": { @@ -13754,16 +13540,6 @@ "integrity": "sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww==", "dev": true }, - "param-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/param-case/-/param-case-3.0.4.tgz", - "integrity": "sha512-RXlj7zCYokReqWpOPH9oYivUzLYZ5vAPIfEmCTNViosC78F8F0H9y7T7gG2M39ymgutxF5gcFEsyZQSph9Bp3A==", - "dev": true, - "requires": { - "dot-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, "parent-module": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", @@ -13799,16 +13575,6 @@ "integrity": "sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==", "dev": true }, - "path-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/path-case/-/path-case-3.0.4.tgz", - "integrity": "sha512-qO4qCFjXqVTrcbPt/hQfhTQ+VhFsqNKOPtytgNKkKxSoEp3XPUQ8ObFuePylOIok5gjn69ry8XiULxCwot3Wfg==", - "dev": true, - "requires": { - "dot-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, "path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", @@ -14213,17 +13979,6 @@ } } }, - "sentence-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/sentence-case/-/sentence-case-3.0.4.tgz", - "integrity": "sha512-8LS0JInaQMCRoQ7YUytAo/xUu5W2XnQxV2HI/6uM6U7CITS1RqPElr30V6uIqyMKM9lJGRVFy5/4CuzcixNYSg==", - "dev": true, - "requires": { - "no-case": "^3.0.4", - "tslib": "^2.0.3", - "upper-case-first": "^2.0.2" - } - }, "shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -14271,16 +14026,6 @@ "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true }, - "snake-case": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/snake-case/-/snake-case-3.0.4.tgz", - "integrity": "sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==", - "dev": true, - "requires": { - "dot-case": "^3.0.4", - "tslib": "^2.0.3" - } - }, "source-map": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", @@ -14624,24 +14369,6 @@ "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==", "dev": true }, - "upper-case": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/upper-case/-/upper-case-2.0.2.tgz", - "integrity": "sha512-KgdgDGJt2TpuwBUIjgG6lzw2GWFRCW9Qkfkiv0DxqHHLYJHmtmdUIKcZd8rHgFSjopVTlw6ggzCm1b8MFQwikg==", - "dev": true, - "requires": { - "tslib": "^2.0.3" - } - }, - "upper-case-first": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/upper-case-first/-/upper-case-first-2.0.2.tgz", - "integrity": "sha512-514ppYHBaKwfJRK/pNC6c/OxfGa0obSnAl106u97Ed0I625Nin96KAjttZF6ZL3e1XLtphxnqrOi9iWgm+u+bg==", - "dev": true, - "requires": { - "tslib": "^2.0.3" - } - }, "uri-js": { "version": "4.4.1", "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", diff --git a/package.json b/package.json index a158d83..3f4602f 100644 --- a/package.json +++ b/package.json @@ -60,8 +60,8 @@ "quick-lru": "^6.1.1" }, "devDependencies": { - "@prismicio/client": "^7.1.0", - "@prismicio/mock": "^0.3.1", + "@prismicio/client": "^7.5.0", + "@prismicio/mock": "^0.3.6", "@size-limit/preset-small-lib": "^8.2.6", "@trivago/prettier-plugin-sort-imports": "^4.1.1", "@types/common-tags": "^1.8.1", diff --git a/src/generateTypes.ts b/src/generateTypes.ts index 8bf1537..82fdf0d 100644 --- a/src/generateTypes.ts +++ b/src/generateTypes.ts @@ -105,6 +105,10 @@ export function generateTypes(config: GenerateTypesConfig = {}): string { cache: shouldUseCache ? cache : undefined, }); + for (const auxiliaryType of sharedSliceType.auxiliaryTypes) { + code = addSection(auxiliaryType.code, code); + } + code = addSection(sharedSliceType.code, code); contentTypeNames.push(sharedSliceType.name); diff --git a/src/lib/buildFieldProperties.ts b/src/lib/buildFieldProperties.ts index 5b7ead2..290b764 100644 --- a/src/lib/buildFieldProperties.ts +++ b/src/lib/buildFieldProperties.ts @@ -235,13 +235,31 @@ function buildFieldProperty( } case "Group": { - const itemName = buildTypeName( - args.path[0].name, - "Document", - "Data", - args.name, - "Item", - ); + let itemName; + if ( + args.path[0].model && + "type" in args.path[0].model && + args.path[0].model.type === "SharedSlice" + ) { + const [slicePathPart, variationPathPart, zonePathPart] = args.path; + + itemName = buildTypeName( + slicePathPart.name, + "Slice", + variationPathPart.name, + zonePathPart.name, + args.name, + "Item", + ); + } else { + itemName = buildTypeName( + args.path[0].name, + "Document", + "Data", + args.name, + "Item", + ); + } const path: FieldPath = [ ...args.path, @@ -257,6 +275,8 @@ function buildFieldProperty( fieldConfigs: args.fieldConfigs, path, }); + auxiliaryTypes.push(...itemFieldProperties.auxiliaryTypes); + contentTypeNames.push(...itemFieldProperties.contentTypeNames); auxiliaryTypes.push({ name: itemName, @@ -337,6 +357,8 @@ function buildFieldProperty( fieldConfigs: args.fieldConfigs, path, }); + auxiliaryTypes.push(...primaryFieldProperties.auxiliaryTypes); + contentTypeNames.push(...primaryFieldProperties.contentTypeNames); let primaryCode = stripIndent` /** @@ -390,6 +412,8 @@ function buildFieldProperty( fieldConfigs: args.fieldConfigs, path, }); + auxiliaryTypes.push(...itemFieldProperties.auxiliaryTypes); + contentTypeNames.push(...itemFieldProperties.contentTypeNames); let itemCode = stripIndent` /** diff --git a/src/lib/buildSharedSliceType.ts b/src/lib/buildSharedSliceType.ts index 05c5264..788ebe1 100644 --- a/src/lib/buildSharedSliceType.ts +++ b/src/lib/buildSharedSliceType.ts @@ -2,7 +2,7 @@ import type { SharedSliceModel } from "@prismicio/client"; import { source, stripIndent } from "common-tags"; import QuickLRU from "quick-lru"; -import { FieldConfigs, FieldPath } from "../types"; +import { AuxiliaryType, FieldConfigs, FieldPath } from "../types"; import { SHARED_SLICES_DOCUMENTATION_URL } from "../constants"; @@ -24,6 +24,7 @@ type BuildSharedSliceTypeReturnValue = { name: string; variationNames: string[]; code: string; + auxiliaryTypes: AuxiliaryType[]; contentTypeNames: string[]; }; @@ -40,6 +41,8 @@ export function buildSharedSliceType( } let code = ""; + + const auxiliaryTypes: AuxiliaryType[] = []; const contentTypeNames: string[] = []; const name = buildTypeName(args.model.id, "Slice"); @@ -64,6 +67,10 @@ export function buildSharedSliceType( name: args.model.id, model: args.model, }, + { + name: variationModel.id, + label: variationModel.name, + }, { name: "primary", label: "Primary", @@ -76,8 +83,9 @@ export function buildSharedSliceType( fieldConfigs: args.fieldConfigs, path, }); - + auxiliaryTypes.push(...primaryFieldProperties.auxiliaryTypes); contentTypeNames.push(...primaryFieldProperties.contentTypeNames); + contentTypeNames.push(primaryInterfaceName); const docs = stripIndent` @@ -123,8 +131,9 @@ export function buildSharedSliceType( fieldConfigs: args.fieldConfigs, path, }); - + auxiliaryTypes.push(...itemFieldProperties.auxiliaryTypes); contentTypeNames.push(...itemFieldProperties.contentTypeNames); + contentTypeNames.push(itemInterfaceName); const docs = stripIndent` @@ -210,6 +219,7 @@ export function buildSharedSliceType( name, variationNames, code, + auxiliaryTypes, contentTypeNames, }; diff --git a/test/__snapshots__/generateTypes.test.ts.snap b/test/__snapshots__/generateTypes.test.ts.snap index 34ba10f..2a91c32 100644 --- a/test/__snapshots__/generateTypes.test.ts.snap +++ b/test/__snapshots__/generateTypes.test.ts.snap @@ -642,103 +642,103 @@ type EnimDocumentDataSliceZoneSlice = EnimDocumentDataSliceZoneFooSlice */ interface EnimDocumentData { /** - * Volutpat field in *Enim* + * Quisque field in *Enim* + * + * - **Field Type**: Boolean + * - **Placeholder**: *None* + * - **API ID Path**: enim.volutpat_ac + * - **Tab**: Main + * - **Documentation**: https://prismic.io/docs/field#boolean + */ + volutpat_ac: prismic.BooleanField; + + /** + * Quisque field in *Enim* * * - **Field Type**: Embed - * - **Placeholder**: Quisque sagittis purus - * - **API ID Path**: enim.at + * - **Placeholder**: Ultrices dui sapien + * - **API ID Path**: enim.ac * - **Tab**: Main * - **Documentation**: https://prismic.io/docs/field#embed */ - at: prismic.EmbedField + ac: prismic.EmbedField /** - * Quisque field in *Enim* + * Vulputate field in *Enim* * * - **Field Type**: GeoPoint * - **Placeholder**: *None* - * - **API ID Path**: enim.ac + * - **API ID Path**: enim.id * - **Tab**: Main * - **Documentation**: https://prismic.io/docs/field#geopoint */ - ac: prismic.GeoPointField; + id: prismic.GeoPointField; /** - * Id field in *Enim* + * Vitae field in *Enim* * * - **Field Type**: Image * - **Placeholder**: *None* - * - **API ID Path**: enim.aliquam_malesuada + * - **API ID Path**: enim.neque_sodales * - **Tab**: Main * - **Documentation**: https://prismic.io/docs/field#image */ - aliquam_malesuada: prismic.ImageField; + neque_sodales: prismic.ImageField; /** - * Neque field in *Enim* + * Nulla field in *Enim* * * - **Field Type**: Text - * - **Placeholder**: Vitae suscipit tellus - * - **API ID Path**: enim.aliquam_sem + * - **Placeholder**: Massa sapien faucibus + * - **API ID Path**: enim.fusce * - **Tab**: Main * - **Documentation**: https://prismic.io/docs/field#key-text */ - aliquam_sem: prismic.KeyTextField; + fusce: prismic.KeyTextField; /** - * Nulla field in *Enim* + * Et field in *Enim* * * - **Field Type**: Link - * - **Placeholder**: Massa sapien faucibus - * - **API ID Path**: enim.fusce + * - **Placeholder**: Tincidunt id aliquet + * - **API ID Path**: enim.blandit * - **Tab**: Main * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - fusce: prismic.LinkField; + blandit: prismic.LinkField; /** - * Tincidunt field in *Enim* + * In field in *Enim* * * - **Field Type**: Link to Media - * - **Placeholder**: Nibh praesent tristique - * - **API ID Path**: enim.et_malesuada + * - **Placeholder**: Sapien faucibus et + * - **API ID Path**: enim.in_tellus * - **Tab**: Main * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - et_malesuada: prismic.LinkToMediaField; + in_tellus: prismic.LinkToMediaField; /** - * In field in *Enim* + * A field in *Enim* * * - **Field Type**: Number - * - **Placeholder**: Sapien faucibus et - * - **API ID Path**: enim.in_tellus + * - **Placeholder**: Neque sodales ut + * - **API ID Path**: enim.in_aliquam * - **Tab**: Main * - **Documentation**: https://prismic.io/docs/field#number */ - in_tellus: prismic.NumberField; + in_aliquam: prismic.NumberField; /** - * Egestas field in *Enim* + * Commodo field in *Enim* * * - **Field Type**: Rich Text - * - **Placeholder**: Natoque penatibus et - * - **API ID Path**: enim.in_aliquam + * - **Placeholder**: Nibh tellus molestie + * - **API ID Path**: enim.sit_amet * - **Tab**: Main * - **Documentation**: https://prismic.io/docs/field#rich-text-title */ - in_aliquam: prismic.RichTextField; - - /** - * Nibh field in *Enim* - * - * - **Field Type**: Select - * - **Placeholder**: Bibendum ut tristique - * - **API ID Path**: enim.commodo - * - **Tab**: Main - * - **Documentation**: https://prismic.io/docs/field#select - */ - commodo: prismic.SelectField; + sit_amet: prismic.RichTextField; /** * Fringilla field in *Enim* @@ -767,7 +767,7 @@ interface EnimDocumentData { * Enim document from Prismic * * - **API ID**: \`enim\` - * - **Repeatable**: \`false\` + * - **Repeatable**: \`true\` * - **Documentation**: https://prismic.io/docs/custom-types * * @typeParam Lang - Language API ID of the document. @@ -775,2013 +775,2070 @@ interface EnimDocumentData { export type EnimDocument = prismic.PrismicDocumentWithoutUID, \\"enim\\", Lang>; /** - * Item in *Eros → Cras* + * Item in *Et → Placerat* */ -export interface ErosDocumentDataGroupItem { +export interface EtDocumentDataGroupItem { /** - * Tortor field in *Eros → Cras* + * Odio field in *Et → Placerat* * - * - **Field Type**: Boolean - * - **Placeholder**: *None* - * - **API ID Path**: eros.group[].velit - * - **Documentation**: https://prismic.io/docs/field#boolean + * - **Field Type**: Content Relationship + * - **Placeholder**: Aliquam ultrices sagittis + * - **API ID Path**: et.group[].tortor + * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - velit: prismic.BooleanField; + tortor: prismic.ContentRelationshipField; /** - * Est field in *Eros → Cras* + * Erat field in *Et → Placerat* * * - **Field Type**: Date - * - **Placeholder**: Sit amet est - * - **API ID Path**: eros.group[].aliquam_ultrices + * - **Placeholder**: Est lorem ipsum + * - **API ID Path**: et.group[].sit_amet * - **Documentation**: https://prismic.io/docs/field#date */ - aliquam_ultrices: prismic.DateField; - - /** - * In field in *Eros → Cras* - * - * - **Field Type**: Embed - * - **Placeholder**: A iaculis at - * - **API ID Path**: eros.group[].est_lorem - * - **Documentation**: https://prismic.io/docs/field#embed - */ - est_lorem: prismic.EmbedField + sit_amet: prismic.DateField; /** - * Ullamcorper field in *Eros → Cras* + * Ullamcorper field in *Et → Placerat* * - * - **Field Type**: GeoPoint - * - **Placeholder**: *None* - * - **API ID Path**: eros.group[].pretium - * - **Documentation**: https://prismic.io/docs/field#geopoint + * - **Field Type**: Link to Media + * - **Placeholder**: Pretium fusce id + * - **API ID Path**: et.group[].a_iaculis + * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - pretium: prismic.GeoPointField; + a_iaculis: prismic.LinkToMediaField; /** - * Duis field in *Eros → Cras* + * Est field in *Et → Placerat* * - * - **Field Type**: Rich Text - * - **Placeholder**: Malesuada pellentesque elit - * - **API ID Path**: eros.group[].est_velit - * - **Documentation**: https://prismic.io/docs/field#rich-text-title + * - **Field Type**: Select + * - **Placeholder**: Massa sed elementum + * - **API ID Path**: et.group[].in + * - **Documentation**: https://prismic.io/docs/field#select */ - est_velit: prismic.RichTextField; + in: prismic.SelectField; /** - * Turpis field in *Eros → Cras* + * Tristique field in *Et → Placerat* * * - **Field Type**: Title - * - **Placeholder**: Ut aliquam purus - * - **API ID Path**: eros.group[].malesuada_fames + * - **Placeholder**: Id ornare arcu + * - **API ID Path**: et.group[].enim_neque * - **Documentation**: https://prismic.io/docs/field#rich-text-title */ - malesuada_fames: prismic.TitleField; + enim_neque: prismic.TitleField; } /** - * Primary content in *Eros → Slice zone → Vulputate Sapien → Primary* + * Primary content in *Et → Slice zone → Nisl Nisi → Primary* */ -export interface ErosDocumentDataSliceZoneFooSlicePrimary { +export interface EtDocumentDataSliceZoneFooSlicePrimary { /** - * Morbi field in *Eros → Slice zone → Vulputate Sapien → Primary* + * Nibh field in *Et → Slice zone → Nisl Nisi → Primary* * - * - **Field Type**: Boolean - * - **Placeholder**: *None* - * - **API ID Path**: eros.sliceZone[].foo.primary.volutpat - * - **Documentation**: https://prismic.io/docs/field#boolean + * - **Field Type**: Content Relationship + * - **Placeholder**: Fermentum et sollicitudin + * - **API ID Path**: et.sliceZone[].foo.primary.cras_adipiscing + * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - volutpat: prismic.BooleanField; + cras_adipiscing: prismic.ContentRelationshipField; /** - * Eget field in *Eros → Slice zone → Vulputate Sapien → Primary* + * Arcu field in *Et → Slice zone → Nisl Nisi → Primary* * - * - **Field Type**: Content Relationship - * - **Placeholder**: Et malesuada fames - * - **API ID Path**: eros.sliceZone[].foo.primary.etiam - * - **Documentation**: https://prismic.io/docs/field#link-content-relationship + * - **Field Type**: Date + * - **Placeholder**: Venenatis lectus magna + * - **API ID Path**: et.sliceZone[].foo.primary.mauris + * - **Documentation**: https://prismic.io/docs/field#date */ - etiam: prismic.ContentRelationshipField; + mauris: prismic.DateField; /** - * Amet field in *Eros → Slice zone → Vulputate Sapien → Primary* + * Id field in *Et → Slice zone → Nisl Nisi → Primary* * - * - **Field Type**: Integration Fields (Catalog: \`laoreet_suspendisse\`) + * - **Field Type**: GeoPoint * - **Placeholder**: *None* - * - **API ID Path**: eros.sliceZone[].foo.primary.quam - * - **Documentation**: https://prismic.io/docs/field#integration + * - **API ID Path**: et.sliceZone[].foo.primary.dictumst + * - **Documentation**: https://prismic.io/docs/field#geopoint */ - quam: prismic.IntegrationField; + dictumst: prismic.GeoPointField; /** - * Neque field in *Eros → Slice zone → Vulputate Sapien → Primary* + * Neque field in *Et → Slice zone → Nisl Nisi → Primary* * - * - **Field Type**: Text - * - **Placeholder**: Felis eget velit - * - **API ID Path**: eros.sliceZone[].foo.primary.eleifend_donec - * - **Documentation**: https://prismic.io/docs/field#key-text + * - **Field Type**: Integration Fields (Catalog: \`in_arcu\`) + * - **Placeholder**: *None* + * - **API ID Path**: et.sliceZone[].foo.primary.suspendisse_faucibus + * - **Documentation**: https://prismic.io/docs/field#integration */ - eleifend_donec: prismic.KeyTextField; + suspendisse_faucibus: prismic.IntegrationField; /** - * Amet field in *Eros → Slice zone → Vulputate Sapien → Primary* + * Dictum field in *Et → Slice zone → Nisl Nisi → Primary* * - * - **Field Type**: Link - * - **Placeholder**: Varius sit amet - * - **API ID Path**: eros.sliceZone[].foo.primary.erat - * - **Documentation**: https://prismic.io/docs/field#link-content-relationship + * - **Field Type**: Text + * - **Placeholder**: Egestas pretium aenean + * - **API ID Path**: et.sliceZone[].foo.primary.dolor_sed + * - **Documentation**: https://prismic.io/docs/field#key-text */ - erat: prismic.LinkField; + dolor_sed: prismic.KeyTextField; /** - * Dui field in *Eros → Slice zone → Vulputate Sapien → Primary* + * Nulla field in *Et → Slice zone → Nisl Nisi → Primary* * * - **Field Type**: Link to Media - * - **Placeholder**: Amet purus gravida - * - **API ID Path**: eros.sliceZone[].foo.primary.et_pharetra + * - **Placeholder**: Etiam tempor orci + * - **API ID Path**: et.sliceZone[].foo.primary.morbi_enim * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - et_pharetra: prismic.LinkToMediaField; + morbi_enim: prismic.LinkToMediaField; /** - * Condimentum field in *Eros → Slice zone → Vulputate Sapien → Primary* + * Tristique field in *Et → Slice zone → Nisl Nisi → Primary* * * - **Field Type**: Number - * - **Placeholder**: Cras sed felis - * - **API ID Path**: eros.sliceZone[].foo.primary.convallis + * - **Placeholder**: Quam viverra orci + * - **API ID Path**: et.sliceZone[].foo.primary.et * - **Documentation**: https://prismic.io/docs/field#number */ - convallis: prismic.NumberField; + et: prismic.NumberField; /** - * Viverra field in *Eros → Slice zone → Vulputate Sapien → Primary* + * Cras field in *Et → Slice zone → Nisl Nisi → Primary* * * - **Field Type**: Rich Text - * - **Placeholder**: Tellus pellentesque eu - * - **API ID Path**: eros.sliceZone[].foo.primary.sit + * - **Placeholder**: Lacinia quis vel + * - **API ID Path**: et.sliceZone[].foo.primary.laoreet_suspendisse * - **Documentation**: https://prismic.io/docs/field#rich-text-title */ - sit: prismic.RichTextField; - - /** - * Maecenas field in *Eros → Slice zone → Vulputate Sapien → Primary* - * - * - **Field Type**: Select - * - **Placeholder**: Vitae ultricies leo - * - **API ID Path**: eros.sliceZone[].foo.primary.leo_urna - * - **Documentation**: https://prismic.io/docs/field#select - */ - leo_urna: prismic.SelectField; + laoreet_suspendisse: prismic.RichTextField; /** - * Hac field in *Eros → Slice zone → Vulputate Sapien → Primary* + * Sit field in *Et → Slice zone → Nisl Nisi → Primary* * - * - **Field Type**: Title - * - **Placeholder**: Laoreet suspendisse interdum - * - **API ID Path**: eros.sliceZone[].foo.primary.eget_est - * - **Documentation**: https://prismic.io/docs/field#rich-text-title + * - **Field Type**: Timestamp + * - **Placeholder**: Amet nisl suscipit + * - **API ID Path**: et.sliceZone[].foo.primary.enim_eu + * - **Documentation**: https://prismic.io/docs/field#timestamp */ - eget_est: prismic.TitleField; + enim_eu: prismic.TimestampField; } /** - * Item content in *Eros → Slice zone → Vulputate Sapien → Items* + * Item content in *Et → Slice zone → Nisl Nisi → Items* */ -export interface ErosDocumentDataSliceZoneFooSliceItem { +export interface EtDocumentDataSliceZoneFooSliceItem { /** - * A field in *Eros → Slice zone → Vulputate Sapien → Items* + * Vitae field in *Et → Slice zone → Nisl Nisi → Items* * - * - **Field Type**: Boolean - * - **Placeholder**: *None* - * - **API ID Path**: eros.sliceZone[].foo.items.dolor - * - **Documentation**: https://prismic.io/docs/field#boolean + * - **Field Type**: Color + * - **Placeholder**: Sed adipiscing diam + * - **API ID Path**: et.sliceZone[].foo.items.maecenas_sed + * - **Documentation**: https://prismic.io/docs/field#color */ - dolor: prismic.BooleanField; + maecenas_sed: prismic.ColorField; /** - * Elementum field in *Eros → Slice zone → Vulputate Sapien → Items* + * Odio field in *Et → Slice zone → Nisl Nisi → Items* * - * - **Field Type**: Color - * - **Placeholder**: Viverra mauris in - * - **API ID Path**: eros.sliceZone[].foo.items.sagittis_aliquam - * - **Documentation**: https://prismic.io/docs/field#color + * - **Field Type**: Content Relationship + * - **Placeholder**: Ipsum nunc aliquet + * - **API ID Path**: et.sliceZone[].foo.items.semper + * - **Documentation**: https://prismic.io/docs/field#link-content-relationship + */ + semper: prismic.ContentRelationshipField; + + /** + * Mauris field in *Et → Slice zone → Nisl Nisi → Items* + * + * - **Field Type**: Embed + * - **Placeholder**: Hac habitasse platea + * - **API ID Path**: et.sliceZone[].foo.items.maecenas_pharetra + * - **Documentation**: https://prismic.io/docs/field#embed + */ + maecenas_pharetra: prismic.EmbedField + + /** + * Pellentesque field in *Et → Slice zone → Nisl Nisi → Items* + * + * - **Field Type**: GeoPoint + * - **Placeholder**: *None* + * - **API ID Path**: et.sliceZone[].foo.items.eu + * - **Documentation**: https://prismic.io/docs/field#geopoint */ - sagittis_aliquam: prismic.ColorField; + eu: prismic.GeoPointField; /** - * Sit field in *Eros → Slice zone → Vulputate Sapien → Items* + * Duis field in *Et → Slice zone → Nisl Nisi → Items* * * - **Field Type**: Image * - **Placeholder**: *None* - * - **API ID Path**: eros.sliceZone[].foo.items.aliquet + * - **API ID Path**: et.sliceZone[].foo.items.faucibus_interdum * - **Documentation**: https://prismic.io/docs/field#image */ - aliquet: prismic.ImageField; + faucibus_interdum: prismic.ImageField; /** - * Sit field in *Eros → Slice zone → Vulputate Sapien → Items* + * Elit field in *Et → Slice zone → Nisl Nisi → Items* * - * - **Field Type**: Integration Fields (Catalog: \`nibh_nisl\`) + * - **Field Type**: Integration Fields (Catalog: \`a_molestie\`) * - **Placeholder**: *None* - * - **API ID Path**: eros.sliceZone[].foo.items.dui_id + * - **API ID Path**: et.sliceZone[].foo.items.est * - **Documentation**: https://prismic.io/docs/field#integration */ - dui_id: prismic.IntegrationField; + est: prismic.IntegrationField; /** - * Pellentesque field in *Eros → Slice zone → Vulputate Sapien → Items* + * Eget field in *Et → Slice zone → Nisl Nisi → Items* * * - **Field Type**: Text - * - **Placeholder**: Adipiscing tristique risus - * - **API ID Path**: eros.sliceZone[].foo.items.tincidunt + * - **Placeholder**: Ultricies mi quis + * - **API ID Path**: et.sliceZone[].foo.items.massa_placerat * - **Documentation**: https://prismic.io/docs/field#key-text */ - tincidunt: prismic.KeyTextField; + massa_placerat: prismic.KeyTextField; /** - * In field in *Eros → Slice zone → Vulputate Sapien → Items* + * Risus field in *Et → Slice zone → Nisl Nisi → Items* * - * - **Field Type**: Number - * - **Placeholder**: Rutrum quisque non - * - **API ID Path**: eros.sliceZone[].foo.items.nam_aliquam - * - **Documentation**: https://prismic.io/docs/field#number + * - **Field Type**: Link + * - **Placeholder**: In nisl nisi + * - **API ID Path**: et.sliceZone[].foo.items.ut + * - **Documentation**: https://prismic.io/docs/field#link-content-relationship + */ + ut: prismic.LinkField; + + /** + * Commodo field in *Et → Slice zone → Nisl Nisi → Items* + * + * - **Field Type**: Link to Media + * - **Placeholder**: Sagittis aliquam malesuada + * - **API ID Path**: et.sliceZone[].foo.items.a + * - **Documentation**: https://prismic.io/docs/field#link-content-relationship + */ + a: prismic.LinkToMediaField; + + /** + * At field in *Et → Slice zone → Nisl Nisi → Items* + * + * - **Field Type**: Rich Text + * - **Placeholder**: At risus viverra + * - **API ID Path**: et.sliceZone[].foo.items.viverra_mauris + * - **Documentation**: https://prismic.io/docs/field#rich-text-title + */ + viverra_mauris: prismic.RichTextField; + + /** + * Vulputate field in *Et → Slice zone → Nisl Nisi → Items* + * + * - **Field Type**: Select + * - **Placeholder**: Amet cursus sit + * - **API ID Path**: et.sliceZone[].foo.items.tempor + * - **Documentation**: https://prismic.io/docs/field#select */ - nam_aliquam: prismic.NumberField; + tempor: prismic.SelectField; /** - * At field in *Eros → Slice zone → Vulputate Sapien → Items* + * Eros field in *Et → Slice zone → Nisl Nisi → Items* * * - **Field Type**: Timestamp - * - **Placeholder**: Massa eget egestas - * - **API ID Path**: eros.sliceZone[].foo.items.at + * - **Placeholder**: Vulputate dignissim suspendisse + * - **API ID Path**: et.sliceZone[].foo.items.lorem_mollis * - **Documentation**: https://prismic.io/docs/field#timestamp */ - at: prismic.TimestampField; + lorem_mollis: prismic.TimestampField; + + /** + * Pharetra field in *Et → Slice zone → Nisl Nisi → Items* + * + * - **Field Type**: Title + * - **Placeholder**: Molestie lorem ipsum + * - **API ID Path**: et.sliceZone[].foo.items.varius_vel + * - **Documentation**: https://prismic.io/docs/field#rich-text-title + */ + varius_vel: prismic.TitleField; } /** - * Slice for *Eros → Slice zone* + * Slice for *Et → Slice zone* */ -export type ErosDocumentDataSliceZoneFooSlice = prismic.Slice<\\"foo\\", Simplify, Simplify> +export type EtDocumentDataSliceZoneFooSlice = prismic.Slice<\\"foo\\", Simplify, Simplify> -type ErosDocumentDataSliceZoneSlice = ErosDocumentDataSliceZoneFooSlice +type EtDocumentDataSliceZoneSlice = EtDocumentDataSliceZoneFooSlice /** - * Content for Eros documents + * Content for Et documents */ -interface ErosDocumentData { +interface EtDocumentData { + /** + * Id field in *Et* + * + * - **Field Type**: Content Relationship + * - **Placeholder**: Aenean vel elit + * - **API ID Path**: et.ac + * - **Tab**: Main + * - **Documentation**: https://prismic.io/docs/field#link-content-relationship + */ + ac: prismic.ContentRelationshipField; + /** - * Ac field in *Eros* + * Id field in *Et* * * - **Field Type**: Date - * - **Placeholder**: Id donec ultrices - * - **API ID Path**: eros.neque + * - **Placeholder**: Nam libero justo + * - **API ID Path**: et.bibendum_arcu * - **Tab**: Main * - **Documentation**: https://prismic.io/docs/field#date */ - neque: prismic.DateField; + bibendum_arcu: prismic.DateField; /** - * Bibendum field in *Eros* + * Enim field in *Et* * * - **Field Type**: Embed - * - **Placeholder**: Id porta nibh - * - **API ID Path**: eros.proin_sagittis + * - **Placeholder**: Ut lectus arcu + * - **API ID Path**: et.et_leo * - **Tab**: Main * - **Documentation**: https://prismic.io/docs/field#embed */ - proin_sagittis: prismic.EmbedField + et_leo: prismic.EmbedField /** - * Et field in *Eros* + * Scelerisque field in *Et* * * - **Field Type**: GeoPoint * - **Placeholder**: *None* - * - **API ID Path**: eros.elit_duis + * - **API ID Path**: et.malesuada * - **Tab**: Main * - **Documentation**: https://prismic.io/docs/field#geopoint */ - elit_duis: prismic.GeoPointField; + malesuada: prismic.GeoPointField; /** - * Lorem field in *Eros* + * Id field in *Et* * * - **Field Type**: Link - * - **Placeholder**: Malesuada bibendum arcu - * - **API ID Path**: eros.ut + * - **Placeholder**: Rhoncus est pellentesque + * - **API ID Path**: et.scelerisque_viverra * - **Tab**: Main * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - ut: prismic.LinkField; + scelerisque_viverra: prismic.LinkField; /** - * Nulla field in *Eros* + * Aliquam field in *Et* * * - **Field Type**: Rich Text - * - **Placeholder**: Aliquam etiam erat - * - **API ID Path**: eros.scelerisque_viverra - * - **Tab**: Main - * - **Documentation**: https://prismic.io/docs/field#rich-text-title - */ - scelerisque_viverra: prismic.RichTextField; - - /** - * Aliquam field in *Eros* - * - * - **Field Type**: Timestamp * - **Placeholder**: Purus sit amet - * - **API ID Path**: eros.dolor + * - **API ID Path**: et.eget * - **Tab**: Main - * - **Documentation**: https://prismic.io/docs/field#timestamp + * - **Documentation**: https://prismic.io/docs/field#rich-text-title */ - dolor: prismic.TimestampField; + eget: prismic.RichTextField; /** - * Cras field in *Eros* + * Placerat field in *Et* * * - **Field Type**: Group * - **Placeholder**: *None* - * - **API ID Path**: eros.group[] + * - **API ID Path**: et.group[] * - **Tab**: Main * - **Documentation**: https://prismic.io/docs/field#group */ - group: prismic.GroupField>; + group: prismic.GroupField>; /** - * Slice zone field in *Eros* + * Slice zone field in *Et* * * - **Field Type**: Slice Zone * - **Placeholder**: *None* - * - **API ID Path**: eros.sliceZone[] + * - **API ID Path**: et.sliceZone[] * - **Tab**: Main * - **Documentation**: https://prismic.io/docs/field#slices */ - sliceZone: prismic.SliceZone; + sliceZone: prismic.SliceZone; } /** - * Eros document from Prismic + * Et document from Prismic * - * - **API ID**: \`eros\` - * - **Repeatable**: \`true\` + * - **API ID**: \`et\` + * - **Repeatable**: \`false\` * - **Documentation**: https://prismic.io/docs/custom-types * * @typeParam Lang - Language API ID of the document. */ -export type ErosDocument = prismic.PrismicDocumentWithoutUID, \\"eros\\", Lang>; +export type EtDocument = prismic.PrismicDocumentWithoutUID, \\"et\\", Lang>; /** - * Item in *Blandit → Sit* + * Item in *Id → Cursus* */ -export interface BlanditDocumentDataGroupItem { +export interface IdDocumentDataGroupItem { /** - * Vitae field in *Blandit → Sit* + * Ut field in *Id → Cursus* * * - **Field Type**: Boolean * - **Placeholder**: *None* - * - **API ID Path**: blandit.group[].quis_auctor + * - **API ID Path**: id.group[].eu * - **Documentation**: https://prismic.io/docs/field#boolean */ - quis_auctor: prismic.BooleanField; + eu: prismic.BooleanField; /** - * Nunc field in *Blandit → Sit* + * Eu field in *Id → Cursus* * - * - **Field Type**: Date - * - **Placeholder**: Nulla posuere sollicitudin - * - **API ID Path**: blandit.group[].blandit - * - **Documentation**: https://prismic.io/docs/field#date + * - **Field Type**: Color + * - **Placeholder**: Massa eget egestas + * - **API ID Path**: id.group[].magna_etiam + * - **Documentation**: https://prismic.io/docs/field#color */ - blandit: prismic.DateField; + magna_etiam: prismic.ColorField; /** - * Ac field in *Blandit → Sit* + * Volutpat field in *Id → Cursus* * - * - **Field Type**: GeoPoint - * - **Placeholder**: *None* - * - **API ID Path**: blandit.group[].turpis - * - **Documentation**: https://prismic.io/docs/field#geopoint + * - **Field Type**: Embed + * - **Placeholder**: Viverra vitae congue + * - **API ID Path**: id.group[].arcu_non + * - **Documentation**: https://prismic.io/docs/field#embed */ - turpis: prismic.GeoPointField; + arcu_non: prismic.EmbedField /** - * Purus field in *Blandit → Sit* + * Consequat field in *Id → Cursus* * - * - **Field Type**: Image + * - **Field Type**: Integration Fields (Catalog: \`venenatis_a\`) * - **Placeholder**: *None* - * - **API ID Path**: blandit.group[].dolor_sit - * - **Documentation**: https://prismic.io/docs/field#image + * - **API ID Path**: id.group[].amet + * - **Documentation**: https://prismic.io/docs/field#integration */ - dolor_sit: prismic.ImageField; + amet: prismic.IntegrationField; /** - * Lobortis field in *Blandit → Sit* + * Erat field in *Id → Cursus* * - * - **Field Type**: Integration Fields (Catalog: \`vivamus_at\`) - * - **Placeholder**: *None* - * - **API ID Path**: blandit.group[].varius_quam - * - **Documentation**: https://prismic.io/docs/field#integration + * - **Field Type**: Text + * - **Placeholder**: Quis imperdiet massa + * - **API ID Path**: id.group[].cras_pulvinar + * - **Documentation**: https://prismic.io/docs/field#key-text */ - varius_quam: prismic.IntegrationField; + cras_pulvinar: prismic.KeyTextField; /** - * Etiam field in *Blandit → Sit* + * In field in *Id → Cursus* * - * - **Field Type**: Link to Media - * - **Placeholder**: Magna etiam tempor - * - **API ID Path**: blandit.group[].ut_tortor + * - **Field Type**: Link + * - **Placeholder**: Arcu odio ut + * - **API ID Path**: id.group[].pellentesque * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - ut_tortor: prismic.LinkToMediaField; + pellentesque: prismic.LinkField; /** - * Tellus field in *Blandit → Sit* + * Non field in *Id → Cursus* * * - **Field Type**: Rich Text - * - **Placeholder**: Non consectetur a - * - **API ID Path**: blandit.group[].massa + * - **Placeholder**: A molestie lorem + * - **API ID Path**: id.group[].sed_tempus * - **Documentation**: https://prismic.io/docs/field#rich-text-title */ - massa: prismic.RichTextField; + sed_tempus: prismic.RichTextField; + + /** + * Tellus field in *Id → Cursus* + * + * - **Field Type**: Select + * - **Placeholder**: Gravida arcu ac + * - **API ID Path**: id.group[].adipiscing + * - **Documentation**: https://prismic.io/docs/field#select + */ + adipiscing: prismic.SelectField; /** - * Porttitor field in *Blandit → Sit* + * Velit field in *Id → Cursus* * * - **Field Type**: Timestamp - * - **Placeholder**: Volutpat diam ut - * - **API ID Path**: blandit.group[].aliquet_sagittis + * - **Placeholder**: Elit eget gravida + * - **API ID Path**: id.group[].posuere * - **Documentation**: https://prismic.io/docs/field#timestamp */ - aliquet_sagittis: prismic.TimestampField; + posuere: prismic.TimestampField; } /** - * Primary content in *Blandit → Slice zone → Libero Enim → Primary* + * Primary content in *Id → Slice zone → Vel Orci → Primary* */ -export interface BlanditDocumentDataSliceZoneFooSlicePrimary { +export interface IdDocumentDataSliceZoneFooSlicePrimary { /** - * Nec field in *Blandit → Slice zone → Libero Enim → Primary* + * Duis field in *Id → Slice zone → Vel Orci → Primary* * * - **Field Type**: Color - * - **Placeholder**: Posuere morbi leo - * - **API ID Path**: blandit.sliceZone[].foo.primary.gravida_arcu + * - **Placeholder**: Facilisis volutpat est + * - **API ID Path**: id.sliceZone[].foo.primary.sed_odio * - **Documentation**: https://prismic.io/docs/field#color */ - gravida_arcu: prismic.ColorField; - - /** - * Cursus field in *Blandit → Slice zone → Libero Enim → Primary* - * - * - **Field Type**: Integration Fields (Catalog: \`lectus_sit\`) - * - **Placeholder**: *None* - * - **API ID Path**: blandit.sliceZone[].foo.primary.elit_eget - * - **Documentation**: https://prismic.io/docs/field#integration - */ - elit_eget: prismic.IntegrationField; + sed_odio: prismic.ColorField; /** - * Sit field in *Blandit → Slice zone → Libero Enim → Primary* + * Nunc field in *Id → Slice zone → Vel Orci → Primary* * - * - **Field Type**: Link - * - **Placeholder**: Congue quisque egestas - * - **API ID Path**: blandit.sliceZone[].foo.primary.elit + * - **Field Type**: Content Relationship + * - **Placeholder**: Ipsum dolor sit + * - **API ID Path**: id.sliceZone[].foo.primary.turpis_egestas * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - elit: prismic.LinkField; + turpis_egestas: prismic.ContentRelationshipField; /** - * Fermentum field in *Blandit → Slice zone → Libero Enim → Primary* + * Mi field in *Id → Slice zone → Vel Orci → Primary* * - * - **Field Type**: Link to Media - * - **Placeholder**: Platea dictumst vestibulum - * - **API ID Path**: blandit.sliceZone[].foo.primary.id_diam - * - **Documentation**: https://prismic.io/docs/field#link-content-relationship + * - **Field Type**: Date + * - **Placeholder**: Egestas erat imperdiet + * - **API ID Path**: id.sliceZone[].foo.primary.auctor_elit + * - **Documentation**: https://prismic.io/docs/field#date */ - id_diam: prismic.LinkToMediaField; + auctor_elit: prismic.DateField; /** - * Pharetra field in *Blandit → Slice zone → Libero Enim → Primary* + * Nibh field in *Id → Slice zone → Vel Orci → Primary* * - * - **Field Type**: Rich Text - * - **Placeholder**: Sit amet dictum - * - **API ID Path**: blandit.sliceZone[].foo.primary.morbi_non - * - **Documentation**: https://prismic.io/docs/field#rich-text-title + * - **Field Type**: Embed + * - **Placeholder**: Sed risus pretium + * - **API ID Path**: id.sliceZone[].foo.primary.sit + * - **Documentation**: https://prismic.io/docs/field#embed */ - morbi_non: prismic.RichTextField; + sit: prismic.EmbedField /** - * Vel field in *Blandit → Slice zone → Libero Enim → Primary* - * - * - **Field Type**: Title - * - **Placeholder**: Turpis tincidunt id - * - **API ID Path**: blandit.sliceZone[].foo.primary.congue_nisi - * - **Documentation**: https://prismic.io/docs/field#rich-text-title - */ - congue_nisi: prismic.TitleField; -} - -/** - * Item content in *Blandit → Slice zone → Libero Enim → Items* - */ -export interface BlanditDocumentDataSliceZoneFooSliceItem { - /** - * Velit field in *Blandit → Slice zone → Libero Enim → Items* + * Suspendisse field in *Id → Slice zone → Vel Orci → Primary* * - * - **Field Type**: Color - * - **Placeholder**: At tempor commodo - * - **API ID Path**: blandit.sliceZone[].foo.items.sed_lectus - * - **Documentation**: https://prismic.io/docs/field#color + * - **Field Type**: GeoPoint + * - **Placeholder**: *None* + * - **API ID Path**: id.sliceZone[].foo.primary.hendrerit + * - **Documentation**: https://prismic.io/docs/field#geopoint */ - sed_lectus: prismic.ColorField; + hendrerit: prismic.GeoPointField; /** - * Ullamcorper field in *Blandit → Slice zone → Libero Enim → Items* + * Turpis field in *Id → Slice zone → Vel Orci → Primary* * - * - **Field Type**: Date - * - **Placeholder**: In fermentum et - * - **API ID Path**: blandit.sliceZone[].foo.items.eu - * - **Documentation**: https://prismic.io/docs/field#date + * - **Field Type**: Image + * - **Placeholder**: *None* + * - **API ID Path**: id.sliceZone[].foo.primary.non + * - **Documentation**: https://prismic.io/docs/field#image */ - eu: prismic.DateField; + non: prismic.ImageField; /** - * Suspendisse field in *Blandit → Slice zone → Libero Enim → Items* + * Turpis field in *Id → Slice zone → Vel Orci → Primary* * - * - **Field Type**: Integration Fields (Catalog: \`ut_tristique\`) + * - **Field Type**: Integration Fields (Catalog: \`ultrices_in\`) * - **Placeholder**: *None* - * - **API ID Path**: blandit.sliceZone[].foo.items.sagittis + * - **API ID Path**: id.sliceZone[].foo.primary.vel_risus * - **Documentation**: https://prismic.io/docs/field#integration */ - sagittis: prismic.IntegrationField; - - /** - * Tincidunt field in *Blandit → Slice zone → Libero Enim → Items* - * - * - **Field Type**: Rich Text - * - **Placeholder**: Sagittis eu volutpat - * - **API ID Path**: blandit.sliceZone[].foo.items.sed - * - **Documentation**: https://prismic.io/docs/field#rich-text-title - */ - sed: prismic.RichTextField; + vel_risus: prismic.IntegrationField; /** - * Aenean field in *Blandit → Slice zone → Libero Enim → Items* + * Mauris field in *Id → Slice zone → Vel Orci → Primary* * - * - **Field Type**: Select - * - **Placeholder**: Ipsum consequat nisl - * - **API ID Path**: blandit.sliceZone[].foo.items.gravida_quis - * - **Documentation**: https://prismic.io/docs/field#select + * - **Field Type**: Text + * - **Placeholder**: Nunc sed augue + * - **API ID Path**: id.sliceZone[].foo.primary.at + * - **Documentation**: https://prismic.io/docs/field#key-text */ - gravida_quis: prismic.SelectField; + at: prismic.KeyTextField; /** - * Feugiat field in *Blandit → Slice zone → Libero Enim → Items* + * Convallis field in *Id → Slice zone → Vel Orci → Primary* * - * - **Field Type**: Timestamp - * - **Placeholder**: Tincidunt vitae semper - * - **API ID Path**: blandit.sliceZone[].foo.items.nunc - * - **Documentation**: https://prismic.io/docs/field#timestamp + * - **Field Type**: Link to Media + * - **Placeholder**: Elementum eu facilisis + * - **API ID Path**: id.sliceZone[].foo.primary.turpis + * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - nunc: prismic.TimestampField; + turpis: prismic.LinkToMediaField; /** - * Morbi field in *Blandit → Slice zone → Libero Enim → Items* + * Sed field in *Id → Slice zone → Vel Orci → Primary* * - * - **Field Type**: Title - * - **Placeholder**: Nibh mauris cursus - * - **API ID Path**: blandit.sliceZone[].foo.items.consequat - * - **Documentation**: https://prismic.io/docs/field#rich-text-title + * - **Field Type**: Number + * - **Placeholder**: Consectetur adipiscing elit + * - **API ID Path**: id.sliceZone[].foo.primary.lectus + * - **Documentation**: https://prismic.io/docs/field#number */ - consequat: prismic.TitleField; + lectus: prismic.NumberField; } /** - * Slice for *Blandit → Slice zone* - */ -export type BlanditDocumentDataSliceZoneFooSlice = prismic.Slice<\\"foo\\", Simplify, Simplify> - -type BlanditDocumentDataSliceZoneSlice = BlanditDocumentDataSliceZoneFooSlice - -/** - * Content for Blandit documents + * Item content in *Id → Slice zone → Vel Orci → Items* */ -interface BlanditDocumentData { +export interface IdDocumentDataSliceZoneFooSliceItem { /** - * A field in *Blandit* + * Fusce field in *Id → Slice zone → Vel Orci → Items* * - * - **Field Type**: Content Relationship - * - **Placeholder**: Venenatis cras sed - * - **API ID Path**: blandit.non - * - **Tab**: Main + * - **Field Type**: Boolean + * - **Placeholder**: *None* + * - **API ID Path**: id.sliceZone[].foo.items.sed + * - **Documentation**: https://prismic.io/docs/field#boolean + */ + sed: prismic.BooleanField; + + /** + * Ullamcorper field in *Id → Slice zone → Vel Orci → Items* + * + * - **Field Type**: Color + * - **Placeholder**: Sed risus pretium + * - **API ID Path**: id.sliceZone[].foo.items.mattis + * - **Documentation**: https://prismic.io/docs/field#color + */ + mattis: prismic.ColorField; + + /** + * Ornare field in *Id → Slice zone → Vel Orci → Items* + * + * - **Field Type**: Content Relationship + * - **Placeholder**: Nibh praesent tristique + * - **API ID Path**: id.sliceZone[].foo.items.purus * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - non: prismic.ContentRelationshipField; + purus: prismic.ContentRelationshipField; /** - * Amet field in *Blandit* + * Tristique field in *Id → Slice zone → Vel Orci → Items* + * + * - **Field Type**: Date + * - **Placeholder**: Tellus at urna + * - **API ID Path**: id.sliceZone[].foo.items.in + * - **Documentation**: https://prismic.io/docs/field#date + */ + in: prismic.DateField; + + /** + * Imperdiet field in *Id → Slice zone → Vel Orci → Items* * * - **Field Type**: Image * - **Placeholder**: *None* - * - **API ID Path**: blandit.sed - * - **Tab**: Main + * - **API ID Path**: id.sliceZone[].foo.items.sociis_natoque * - **Documentation**: https://prismic.io/docs/field#image */ - sed: prismic.ImageField; + sociis_natoque: prismic.ImageField; /** - * Auctor field in *Blandit* + * Facilisi field in *Id → Slice zone → Vel Orci → Items* * - * - **Field Type**: Text - * - **Placeholder**: At varius vel - * - **API ID Path**: blandit.facilisis_volutpat - * - **Tab**: Main - * - **Documentation**: https://prismic.io/docs/field#key-text + * - **Field Type**: Link to Media + * - **Placeholder**: Morbi non arcu + * - **API ID Path**: id.sliceZone[].foo.items.sagittis + * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - facilisis_volutpat: prismic.KeyTextField; + sagittis: prismic.LinkToMediaField; /** - * Senectus field in *Blandit* + * Dignissim field in *Id → Slice zone → Vel Orci → Items* * - * - **Field Type**: Link to Media - * - **Placeholder**: Fusce id velit - * - **API ID Path**: blandit.massa + * - **Field Type**: Rich Text + * - **Placeholder**: Fringilla urna porttitor + * - **API ID Path**: id.sliceZone[].foo.items.aenean + * - **Documentation**: https://prismic.io/docs/field#rich-text-title + */ + aenean: prismic.RichTextField; + + /** + * Massa field in *Id → Slice zone → Vel Orci → Items* + * + * - **Field Type**: Title + * - **Placeholder**: Mi ipsum faucibus + * - **API ID Path**: id.sliceZone[].foo.items.turpis + * - **Documentation**: https://prismic.io/docs/field#rich-text-title + */ + turpis: prismic.TitleField; +} + +/** + * Slice for *Id → Slice zone* + */ +export type IdDocumentDataSliceZoneFooSlice = prismic.Slice<\\"foo\\", Simplify, Simplify> + +type IdDocumentDataSliceZoneSlice = IdDocumentDataSliceZoneFooSlice + +/** + * Content for Id documents + */ +interface IdDocumentData { + /** + * In field in *Id* + * + * - **Field Type**: Content Relationship + * - **Placeholder**: Mi eget mauris + * - **API ID Path**: id.tellus_elementum * - **Tab**: Main * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - massa: prismic.LinkToMediaField; + tellus_elementum: prismic.ContentRelationshipField; /** - * Cursus field in *Blandit* + * Neque field in *Id* * - * - **Field Type**: Timestamp - * - **Placeholder**: Mattis enim ut - * - **API ID Path**: blandit.turpis + * - **Field Type**: Date + * - **Placeholder**: Sed felis eget + * - **API ID Path**: id.massa * - **Tab**: Main - * - **Documentation**: https://prismic.io/docs/field#timestamp + * - **Documentation**: https://prismic.io/docs/field#date + */ + massa: prismic.DateField; + + /** + * Consectetur field in *Id* + * + * - **Field Type**: GeoPoint + * - **Placeholder**: *None* + * - **API ID Path**: id.nascetur + * - **Tab**: Main + * - **Documentation**: https://prismic.io/docs/field#geopoint + */ + nascetur: prismic.GeoPointField; + + /** + * Ut field in *Id* + * + * - **Field Type**: Select + * - **Placeholder**: Adipiscing elit ut + * - **API ID Path**: id.lorem_donec + * - **Tab**: Main + * - **Documentation**: https://prismic.io/docs/field#select */ - turpis: prismic.TimestampField; + lorem_donec: prismic.SelectField; /** - * Sit field in *Blandit* + * Cursus field in *Id* * * - **Field Type**: Group * - **Placeholder**: *None* - * - **API ID Path**: blandit.group[] + * - **API ID Path**: id.group[] * - **Tab**: Main * - **Documentation**: https://prismic.io/docs/field#group */ - group: prismic.GroupField>; + group: prismic.GroupField>; /** - * Slice zone field in *Blandit* + * Slice zone field in *Id* * * - **Field Type**: Slice Zone * - **Placeholder**: *None* - * - **API ID Path**: blandit.sliceZone[] + * - **API ID Path**: id.sliceZone[] * - **Tab**: Main * - **Documentation**: https://prismic.io/docs/field#slices */ - sliceZone: prismic.SliceZone; + sliceZone: prismic.SliceZone; } /** - * Blandit document from Prismic + * Id document from Prismic * - * - **API ID**: \`blandit\` + * - **API ID**: \`id\` * - **Repeatable**: \`true\` * - **Documentation**: https://prismic.io/docs/custom-types * * @typeParam Lang - Language API ID of the document. */ -export type BlanditDocument = prismic.PrismicDocumentWithoutUID, \\"blandit\\", Lang>; +export type IdDocument = prismic.PrismicDocumentWithoutUID, \\"id\\", Lang>; /** - * Item in *Ullamcorper → Amet* + * Item in *Id → Pretium* */ -export interface UllamcorperDocumentDataGroupItem { +export interface IdDocumentDataGroupItem { /** - * Sed field in *Ullamcorper → Amet* + * Sagittis field in *Id → Pretium* * - * - **Field Type**: Color - * - **Placeholder**: Vitae semper quis - * - **API ID Path**: ullamcorper.group[].eget - * - **Documentation**: https://prismic.io/docs/field#color + * - **Field Type**: Boolean + * - **Placeholder**: *None* + * - **API ID Path**: id.group[].commodo + * - **Documentation**: https://prismic.io/docs/field#boolean */ - eget: prismic.ColorField; + commodo: prismic.BooleanField; /** - * Mauris field in *Ullamcorper → Amet* + * Elementum field in *Id → Pretium* * - * - **Field Type**: Content Relationship - * - **Placeholder**: Commodo nulla facilisi - * - **API ID Path**: ullamcorper.group[].ipsum_faucibus - * - **Documentation**: https://prismic.io/docs/field#link-content-relationship + * - **Field Type**: Embed + * - **Placeholder**: Felis eget velit + * - **API ID Path**: id.group[].donec + * - **Documentation**: https://prismic.io/docs/field#embed */ - ipsum_faucibus: prismic.ContentRelationshipField; + donec: prismic.EmbedField /** - * Donec field in *Ullamcorper → Amet* + * Ornare field in *Id → Pretium* * - * - **Field Type**: Link to Media - * - **Placeholder**: Elementum sagittis vitae - * - **API ID Path**: ullamcorper.group[].cras_semper - * - **Documentation**: https://prismic.io/docs/field#link-content-relationship + * - **Field Type**: GeoPoint + * - **Placeholder**: *None* + * - **API ID Path**: id.group[].a_diam + * - **Documentation**: https://prismic.io/docs/field#geopoint */ - cras_semper: prismic.LinkToMediaField; + a_diam: prismic.GeoPointField; /** - * A field in *Ullamcorper → Amet* + * Nisl field in *Id → Pretium* * - * - **Field Type**: Number - * - **Placeholder**: Ornare arcu dui - * - **API ID Path**: ullamcorper.group[].lectus - * - **Documentation**: https://prismic.io/docs/field#number + * - **Field Type**: Image + * - **Placeholder**: *None* + * - **API ID Path**: id.group[].pellentesque_massa + * - **Documentation**: https://prismic.io/docs/field#image */ - lectus: prismic.NumberField; + pellentesque_massa: prismic.ImageField; /** - * Mauris field in *Ullamcorper → Amet* + * Sed field in *Id → Pretium* * - * - **Field Type**: Rich Text - * - **Placeholder**: Enim praesent elementum - * - **API ID Path**: ullamcorper.group[].pellentesque_massa - * - **Documentation**: https://prismic.io/docs/field#rich-text-title + * - **Field Type**: Integration Fields (Catalog: \`lacus_suspendisse\`) + * - **Placeholder**: *None* + * - **API ID Path**: id.group[].nec + * - **Documentation**: https://prismic.io/docs/field#integration */ - pellentesque_massa: prismic.RichTextField; + nec: prismic.IntegrationField; /** - * Est field in *Ullamcorper → Amet* + * Pulvinar field in *Id → Pretium* * - * - **Field Type**: Select - * - **Placeholder**: Malesuada proin libero - * - **API ID Path**: ullamcorper.group[].urna - * - **Documentation**: https://prismic.io/docs/field#select + * - **Field Type**: Text + * - **Placeholder**: Sociis natoque penatibus + * - **API ID Path**: id.group[].aenean_pharetra + * - **Documentation**: https://prismic.io/docs/field#key-text */ - urna: prismic.SelectField; + aenean_pharetra: prismic.KeyTextField; /** - * Dolor field in *Ullamcorper → Amet* + * Cras field in *Id → Pretium* * - * - **Field Type**: Timestamp - * - **Placeholder**: Hac habitasse platea - * - **API ID Path**: ullamcorper.group[].varius_duis - * - **Documentation**: https://prismic.io/docs/field#timestamp + * - **Field Type**: Link + * - **Placeholder**: Eu lobortis elementum + * - **API ID Path**: id.group[].elementum_integer + * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - varius_duis: prismic.TimestampField; + elementum_integer: prismic.LinkField; /** - * Sapien field in *Ullamcorper → Amet* + * Mauris field in *Id → Pretium* * - * - **Field Type**: Title - * - **Placeholder**: Nunc sed blandit - * - **API ID Path**: ullamcorper.group[].vel - * - **Documentation**: https://prismic.io/docs/field#rich-text-title + * - **Field Type**: Timestamp + * - **Placeholder**: Enim praesent elementum + * - **API ID Path**: id.group[].porta_non + * - **Documentation**: https://prismic.io/docs/field#timestamp */ - vel: prismic.TitleField; + porta_non: prismic.TimestampField; } /** - * Primary content in *Ullamcorper → Slice zone → Pretium Vulputate → Primary* + * Primary content in *Id → Slice zone → Et Tortor → Primary* */ -export interface UllamcorperDocumentDataSliceZoneFooSlicePrimary { - /** - * Eu field in *Ullamcorper → Slice zone → Pretium Vulputate → Primary* - * - * - **Field Type**: Date - * - **Placeholder**: Suscipit adipiscing bibendum - * - **API ID Path**: ullamcorper.sliceZone[].foo.primary.velit - * - **Documentation**: https://prismic.io/docs/field#date - */ - velit: prismic.DateField; - +export interface IdDocumentDataSliceZoneFooSlicePrimary { /** - * Vulputate field in *Ullamcorper → Slice zone → Pretium Vulputate → Primary* + * Scelerisque field in *Id → Slice zone → Et Tortor → Primary* * - * - **Field Type**: GeoPoint - * - **Placeholder**: *None* - * - **API ID Path**: ullamcorper.sliceZone[].foo.primary.donec_massa - * - **Documentation**: https://prismic.io/docs/field#geopoint + * - **Field Type**: Color + * - **Placeholder**: Amet cursus sit + * - **API ID Path**: id.sliceZone[].foo.primary.nunc_sed + * - **Documentation**: https://prismic.io/docs/field#color */ - donec_massa: prismic.GeoPointField; + nunc_sed: prismic.ColorField; /** - * Ullamcorper field in *Ullamcorper → Slice zone → Pretium Vulputate → Primary* + * Sed field in *Id → Slice zone → Et Tortor → Primary* * - * - **Field Type**: Image - * - **Placeholder**: *None* - * - **API ID Path**: ullamcorper.sliceZone[].foo.primary.morbi_tristique - * - **Documentation**: https://prismic.io/docs/field#image + * - **Field Type**: Date + * - **Placeholder**: Accumsan in nisl + * - **API ID Path**: id.sliceZone[].foo.primary.magna_eget + * - **Documentation**: https://prismic.io/docs/field#date */ - morbi_tristique: prismic.ImageField; + magna_eget: prismic.DateField; /** - * Volutpat field in *Ullamcorper → Slice zone → Pretium Vulputate → Primary* + * Egestas field in *Id → Slice zone → Et Tortor → Primary* * - * - **Field Type**: Integration Fields (Catalog: \`id_nibh\`) - * - **Placeholder**: *None* - * - **API ID Path**: ullamcorper.sliceZone[].foo.primary.vitae - * - **Documentation**: https://prismic.io/docs/field#integration + * - **Field Type**: Embed + * - **Placeholder**: Orci ac auctor + * - **API ID Path**: id.sliceZone[].foo.primary.scelerisque_eleifend + * - **Documentation**: https://prismic.io/docs/field#embed */ - vitae: prismic.IntegrationField; + scelerisque_eleifend: prismic.EmbedField /** - * Quisque field in *Ullamcorper → Slice zone → Pretium Vulputate → Primary* + * Sed field in *Id → Slice zone → Et Tortor → Primary* * - * - **Field Type**: Text - * - **Placeholder**: Adipiscing commodo elit - * - **API ID Path**: ullamcorper.sliceZone[].foo.primary.semper - * - **Documentation**: https://prismic.io/docs/field#key-text + * - **Field Type**: Link + * - **Placeholder**: Diam sollicitudin tempor + * - **API ID Path**: id.sliceZone[].foo.primary.interdum_velit + * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - semper: prismic.KeyTextField; + interdum_velit: prismic.LinkField; /** - * Curabitur field in *Ullamcorper → Slice zone → Pretium Vulputate → Primary* + * Senectus field in *Id → Slice zone → Et Tortor → Primary* * - * - **Field Type**: Link - * - **Placeholder**: Quam adipiscing vitae - * - **API ID Path**: ullamcorper.sliceZone[].foo.primary.adipiscing_elit + * - **Field Type**: Link to Media + * - **Placeholder**: Id aliquet lectus + * - **API ID Path**: id.sliceZone[].foo.primary.tortor * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - adipiscing_elit: prismic.LinkField; + tortor: prismic.LinkToMediaField; /** - * Amet field in *Ullamcorper → Slice zone → Pretium Vulputate → Primary* + * Suscipit field in *Id → Slice zone → Et Tortor → Primary* * - * - **Field Type**: Rich Text - * - **Placeholder**: Id porta nibh - * - **API ID Path**: ullamcorper.sliceZone[].foo.primary.ornare - * - **Documentation**: https://prismic.io/docs/field#rich-text-title + * - **Field Type**: Number + * - **Placeholder**: Cum sociis natoque + * - **API ID Path**: id.sliceZone[].foo.primary.eu + * - **Documentation**: https://prismic.io/docs/field#number */ - ornare: prismic.RichTextField; + eu: prismic.NumberField; /** - * Tincidunt field in *Ullamcorper → Slice zone → Pretium Vulputate → Primary* + * A field in *Id → Slice zone → Et Tortor → Primary* * * - **Field Type**: Timestamp - * - **Placeholder**: Diam sit amet - * - **API ID Path**: ullamcorper.sliceZone[].foo.primary.nunc + * - **Placeholder**: Morbi tristique senectus + * - **API ID Path**: id.sliceZone[].foo.primary.vulputate * - **Documentation**: https://prismic.io/docs/field#timestamp */ - nunc: prismic.TimestampField; + vulputate: prismic.TimestampField; } /** - * Item content in *Ullamcorper → Slice zone → Pretium Vulputate → Items* + * Item content in *Id → Slice zone → Et Tortor → Items* */ -export interface UllamcorperDocumentDataSliceZoneFooSliceItem { +export interface IdDocumentDataSliceZoneFooSliceItem { /** - * Quis field in *Ullamcorper → Slice zone → Pretium Vulputate → Items* + * Donec field in *Id → Slice zone → Et Tortor → Items* * - * - **Field Type**: Color - * - **Placeholder**: Vitae tortor condimentum - * - **API ID Path**: ullamcorper.sliceZone[].foo.items.cras_fermentum - * - **Documentation**: https://prismic.io/docs/field#color + * - **Field Type**: Content Relationship + * - **Placeholder**: Facilisi cras fermentum + * - **API ID Path**: id.sliceZone[].foo.items.ut + * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - cras_fermentum: prismic.ColorField; + ut: prismic.ContentRelationshipField; /** - * Faucibus field in *Ullamcorper → Slice zone → Pretium Vulputate → Items* + * Pulvinar field in *Id → Slice zone → Et Tortor → Items* * - * - **Field Type**: Image + * - **Field Type**: GeoPoint * - **Placeholder**: *None* - * - **API ID Path**: ullamcorper.sliceZone[].foo.items.lorem - * - **Documentation**: https://prismic.io/docs/field#image + * - **API ID Path**: id.sliceZone[].foo.items.elit + * - **Documentation**: https://prismic.io/docs/field#geopoint */ - lorem: prismic.ImageField; + elit: prismic.GeoPointField; /** - * Lacus field in *Ullamcorper → Slice zone → Pretium Vulputate → Items* + * Sit field in *Id → Slice zone → Et Tortor → Items* * - * - **Field Type**: Integration Fields (Catalog: \`tincidunt_ornare\`) - * - **Placeholder**: *None* - * - **API ID Path**: ullamcorper.sliceZone[].foo.items.id_porta - * - **Documentation**: https://prismic.io/docs/field#integration + * - **Field Type**: Text + * - **Placeholder**: Aliquet sagittis id + * - **API ID Path**: id.sliceZone[].foo.items.blandit + * - **Documentation**: https://prismic.io/docs/field#key-text */ - id_porta: prismic.IntegrationField; + blandit: prismic.KeyTextField; /** - * Aliquam field in *Ullamcorper → Slice zone → Pretium Vulputate → Items* + * Mi field in *Id → Slice zone → Et Tortor → Items* * - * - **Field Type**: Link to Media - * - **Placeholder**: Amet mauris commodo - * - **API ID Path**: ullamcorper.sliceZone[].foo.items.orci + * - **Field Type**: Link + * - **Placeholder**: Sed turpis tincidunt + * - **API ID Path**: id.sliceZone[].foo.items.fusce_id * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - orci: prismic.LinkToMediaField; - - /** - * Auctor field in *Ullamcorper → Slice zone → Pretium Vulputate → Items* - * - * - **Field Type**: Number - * - **Placeholder**: In vitae turpis - * - **API ID Path**: ullamcorper.sliceZone[].foo.items.lectus - * - **Documentation**: https://prismic.io/docs/field#number - */ - lectus: prismic.NumberField; + fusce_id: prismic.LinkField; /** - * Molestie field in *Ullamcorper → Slice zone → Pretium Vulputate → Items* + * Scelerisque field in *Id → Slice zone → Et Tortor → Items* * * - **Field Type**: Rich Text - * - **Placeholder**: A erat nam - * - **API ID Path**: ullamcorper.sliceZone[].foo.items.tempor + * - **Placeholder**: Mauris cursus mattis + * - **API ID Path**: id.sliceZone[].foo.items.id * - **Documentation**: https://prismic.io/docs/field#rich-text-title */ - tempor: prismic.RichTextField; + id: prismic.RichTextField; /** - * Ut field in *Ullamcorper → Slice zone → Pretium Vulputate → Items* + * Dignissim field in *Id → Slice zone → Et Tortor → Items* * * - **Field Type**: Select - * - **Placeholder**: Mollis nunc sed - * - **API ID Path**: ullamcorper.sliceZone[].foo.items.posuere_urna + * - **Placeholder**: Cras fermentum odio + * - **API ID Path**: id.sliceZone[].foo.items.posuere * - **Documentation**: https://prismic.io/docs/field#select */ - posuere_urna: prismic.SelectField; - - /** - * Nunc field in *Ullamcorper → Slice zone → Pretium Vulputate → Items* - * - * - **Field Type**: Title - * - **Placeholder**: Integer quis auctor - * - **API ID Path**: ullamcorper.sliceZone[].foo.items.eleifend - * - **Documentation**: https://prismic.io/docs/field#rich-text-title - */ - eleifend: prismic.TitleField; + posuere: prismic.SelectField; } /** - * Slice for *Ullamcorper → Slice zone* + * Slice for *Id → Slice zone* */ -export type UllamcorperDocumentDataSliceZoneFooSlice = prismic.Slice<\\"foo\\", Simplify, Simplify> +export type IdDocumentDataSliceZoneFooSlice = prismic.Slice<\\"foo\\", Simplify, Simplify> -type UllamcorperDocumentDataSliceZoneSlice = UllamcorperDocumentDataSliceZoneFooSlice +type IdDocumentDataSliceZoneSlice = IdDocumentDataSliceZoneFooSlice /** - * Content for Ullamcorper documents + * Content for Id documents */ -interface UllamcorperDocumentData { +interface IdDocumentData { /** - * Sit field in *Ullamcorper* + * Congue field in *Id* * * - **Field Type**: Boolean * - **Placeholder**: *None* - * - **API ID Path**: ullamcorper.faucibus_interdum + * - **API ID Path**: id.at * - **Tab**: Main * - **Documentation**: https://prismic.io/docs/field#boolean */ - faucibus_interdum: prismic.BooleanField; - - /** - * Tellus field in *Ullamcorper* - * - * - **Field Type**: Date - * - **Placeholder**: Nec sagittis aliquam - * - **API ID Path**: ullamcorper.quam_pellentesque - * - **Tab**: Main - * - **Documentation**: https://prismic.io/docs/field#date - */ - quam_pellentesque: prismic.DateField; + at: prismic.BooleanField; /** - * Condimentum field in *Ullamcorper* + * Tempus field in *Id* * - * - **Field Type**: Embed - * - **Placeholder**: Aliquam faucibus purus - * - **API ID Path**: ullamcorper.sit_amet + * - **Field Type**: Color + * - **Placeholder**: In eu mi + * - **API ID Path**: id.sapien_faucibus * - **Tab**: Main - * - **Documentation**: https://prismic.io/docs/field#embed + * - **Documentation**: https://prismic.io/docs/field#color */ - sit_amet: prismic.EmbedField + sapien_faucibus: prismic.ColorField; /** - * Felis field in *Ullamcorper* + * Convallis field in *Id* * - * - **Field Type**: Integration Fields (Catalog: \`nisl_rhoncus\`) - * - **Placeholder**: *None* - * - **API ID Path**: ullamcorper.sit + * - **Field Type**: Content Relationship + * - **Placeholder**: Tincidunt dui ut + * - **API ID Path**: id.a_diam * - **Tab**: Main - * - **Documentation**: https://prismic.io/docs/field#integration + * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - sit: prismic.IntegrationField; + a_diam: prismic.ContentRelationshipField; /** - * Congue field in *Ullamcorper* + * Ultrices field in *Id* * - * - **Field Type**: Text - * - **Placeholder**: Tortor aliquam nulla - * - **API ID Path**: ullamcorper.at + * - **Field Type**: Date + * - **Placeholder**: Eget velit aliquet + * - **API ID Path**: id.sapien_nec * - **Tab**: Main - * - **Documentation**: https://prismic.io/docs/field#key-text + * - **Documentation**: https://prismic.io/docs/field#date */ - at: prismic.KeyTextField; + sapien_nec: prismic.DateField; /** - * In field in *Ullamcorper* + * Ornare field in *Id* * - * - **Field Type**: Link - * - **Placeholder**: Quis auctor elit - * - **API ID Path**: ullamcorper.tempus + * - **Field Type**: Integration Fields (Catalog: \`ut_tellus\`) + * - **Placeholder**: *None* + * - **API ID Path**: id.malesuada * - **Tab**: Main - * - **Documentation**: https://prismic.io/docs/field#link-content-relationship + * - **Documentation**: https://prismic.io/docs/field#integration */ - tempus: prismic.LinkField; + malesuada: prismic.IntegrationField; /** - * Quam field in *Ullamcorper* + * Cursus field in *Id* * - * - **Field Type**: Number - * - **Placeholder**: Sapien nec sagittis - * - **API ID Path**: ullamcorper.tincidunt_dui + * - **Field Type**: Text + * - **Placeholder**: Ullamcorper dignissim cras + * - **API ID Path**: id.id_ornare * - **Tab**: Main - * - **Documentation**: https://prismic.io/docs/field#number + * - **Documentation**: https://prismic.io/docs/field#key-text */ - tincidunt_dui: prismic.NumberField; + id_ornare: prismic.KeyTextField; /** - * Aliquam field in *Ullamcorper* + * Commodo field in *Id* * * - **Field Type**: Rich Text - * - **Placeholder**: Tortor condimentum lacinia - * - **API ID Path**: ullamcorper.eget + * - **Placeholder**: Ut sem viverra + * - **API ID Path**: id.porta * - **Tab**: Main * - **Documentation**: https://prismic.io/docs/field#rich-text-title */ - eget: prismic.RichTextField; - - /** - * Aliquam field in *Ullamcorper* - * - * - **Field Type**: Select - * - **Placeholder**: Ornare lectus sit - * - **API ID Path**: ullamcorper.etiam - * - **Tab**: Main - * - **Documentation**: https://prismic.io/docs/field#select - */ - etiam: prismic.SelectField; + porta: prismic.RichTextField; /** - * Vulputate field in *Ullamcorper* + * Duis field in *Id* * * - **Field Type**: Timestamp - * - **Placeholder**: Commodo odio aenean - * - **API ID Path**: ullamcorper.mauris + * - **Placeholder**: Nulla porttitor massa + * - **API ID Path**: id.eget * - **Tab**: Main * - **Documentation**: https://prismic.io/docs/field#timestamp */ - mauris: prismic.TimestampField; + eget: prismic.TimestampField; /** - * Adipiscing field in *Ullamcorper* + * Eu field in *Id* * * - **Field Type**: Title - * - **Placeholder**: Nibh mauris cursus - * - **API ID Path**: ullamcorper.felis + * - **Placeholder**: Amet consectetur adipiscing + * - **API ID Path**: id.cursus_turpis * - **Tab**: Main * - **Documentation**: https://prismic.io/docs/field#rich-text-title */ - felis: prismic.TitleField; + cursus_turpis: prismic.TitleField; /** - * Amet field in *Ullamcorper* + * Pretium field in *Id* * * - **Field Type**: Group * - **Placeholder**: *None* - * - **API ID Path**: ullamcorper.group[] + * - **API ID Path**: id.group[] * - **Tab**: Main * - **Documentation**: https://prismic.io/docs/field#group */ - group: prismic.GroupField>; + group: prismic.GroupField>; /** - * Slice zone field in *Ullamcorper* + * Slice zone field in *Id* * * - **Field Type**: Slice Zone * - **Placeholder**: *None* - * - **API ID Path**: ullamcorper.sliceZone[] + * - **API ID Path**: id.sliceZone[] * - **Tab**: Main * - **Documentation**: https://prismic.io/docs/field#slices */ - sliceZone: prismic.SliceZone; + sliceZone: prismic.SliceZone; } /** - * Ullamcorper document from Prismic + * Id document from Prismic * - * - **API ID**: \`ullamcorper\` - * - **Repeatable**: \`true\` + * - **API ID**: \`id\` + * - **Repeatable**: \`false\` * - **Documentation**: https://prismic.io/docs/custom-types * * @typeParam Lang - Language API ID of the document. */ -export type UllamcorperDocument = prismic.PrismicDocumentWithoutUID, \\"ullamcorper\\", Lang>; +export type IdDocument = prismic.PrismicDocumentWithoutUID, \\"id\\", Lang>; -export type AllDocumentTypes = EgetDocument | EnimDocument | ErosDocument | BlanditDocument | UllamcorperDocument; +export type AllDocumentTypes = EgetDocument | EnimDocument | EtDocument | IdDocument | IdDocument; /** - * Primary content in *Neque → Primary* + * Primary content in *Elementum → Et → Primary* */ -export interface NequeSliceUltriciesPrimary { - /** - * Lacus field in *Neque → Primary* - * - * - **Field Type**: Boolean - * - **Placeholder**: *None* - * - **API ID Path**: neque.primary.aliquam_nulla - * - **Documentation**: https://prismic.io/docs/field#boolean - */ - aliquam_nulla: prismic.BooleanField; - +export interface ElementumSliceEtPrimary { /** - * Odio field in *Neque → Primary* + * Bibendum field in *Elementum → Et → Primary* * * - **Field Type**: Color - * - **Placeholder**: Sagittis id consectetur - * - **API ID Path**: neque.primary.aliquam_purus + * - **Placeholder**: Ac tortor vitae + * - **API ID Path**: elementum.et.primary.semper * - **Documentation**: https://prismic.io/docs/field#color */ - aliquam_purus: prismic.ColorField; + semper: prismic.ColorField; /** - * Donec field in *Neque → Primary* + * Turpis field in *Elementum → Et → Primary* * - * - **Field Type**: Content Relationship - * - **Placeholder**: Fringilla ut morbi - * - **API ID Path**: neque.primary.integer_feugiat - * - **Documentation**: https://prismic.io/docs/field#link-content-relationship + * - **Field Type**: Embed + * - **Placeholder**: Volutpat commodo sed + * - **API ID Path**: elementum.et.primary.eget_nunc + * - **Documentation**: https://prismic.io/docs/field#embed */ - integer_feugiat: prismic.ContentRelationshipField; + eget_nunc: prismic.EmbedField /** - * Neque field in *Neque → Primary* + * A field in *Elementum → Et → Primary* * - * - **Field Type**: Embed - * - **Placeholder**: Sed libero enim - * - **API ID Path**: neque.primary.convallis_posuere - * - **Documentation**: https://prismic.io/docs/field#embed + * - **Field Type**: GeoPoint + * - **Placeholder**: *None* + * - **API ID Path**: elementum.et.primary.molestie_at + * - **Documentation**: https://prismic.io/docs/field#geopoint */ - convallis_posuere: prismic.EmbedField + molestie_at: prismic.GeoPointField; /** - * Ornare field in *Neque → Primary* + * Pretium field in *Elementum → Et → Primary* * - * - **Field Type**: Text - * - **Placeholder**: Id donec ultrices - * - **API ID Path**: neque.primary.hendrerit_gravida - * - **Documentation**: https://prismic.io/docs/field#key-text + * - **Field Type**: Rich Text + * - **Placeholder**: Justo eget magna + * - **API ID Path**: elementum.et.primary.volutpat + * - **Documentation**: https://prismic.io/docs/field#rich-text-title */ - hendrerit_gravida: prismic.KeyTextField; + volutpat: prismic.RichTextField; /** - * Nisl field in *Neque → Primary* + * Habitasse field in *Elementum → Et → Primary* * - * - **Field Type**: Number - * - **Placeholder**: Aenean vel elit - * - **API ID Path**: neque.primary.amet_facilisis - * - **Documentation**: https://prismic.io/docs/field#number + * - **Field Type**: Timestamp + * - **Placeholder**: Adipiscing elit duis + * - **API ID Path**: elementum.et.primary.ullamcorper_malesuada + * - **Documentation**: https://prismic.io/docs/field#timestamp */ - amet_facilisis: prismic.NumberField; + ullamcorper_malesuada: prismic.TimestampField; /** - * In field in *Neque → Primary* + * Ultricies field in *Elementum → Et → Primary* * - * - **Field Type**: Select - * - **Placeholder**: Vulputate enim nulla - * - **API ID Path**: neque.primary.neque_gravida - * - **Documentation**: https://prismic.io/docs/field#select + * - **Field Type**: Title + * - **Placeholder**: Purus sit amet + * - **API ID Path**: elementum.et.primary.nibh + * - **Documentation**: https://prismic.io/docs/field#rich-text-title */ - neque_gravida: prismic.SelectField; + nibh: prismic.TitleField; } /** - * Primary content in *Neque → Items* + * Primary content in *Elementum → Items* */ -export interface NequeSliceUltriciesItem { +export interface ElementumSliceEtItem { /** - * Varius field in *Neque → Items* + * Neque field in *Elementum → Items* * * - **Field Type**: Color - * - **Placeholder**: Lacus sed turpis - * - **API ID Path**: neque.items[].ultrices + * - **Placeholder**: Sed libero enim + * - **API ID Path**: elementum.items[].convallis_posuere * - **Documentation**: https://prismic.io/docs/field#color */ - ultrices: prismic.ColorField; + convallis_posuere: prismic.ColorField; /** - * Diam field in *Neque → Items* + * Ornare field in *Elementum → Items* * - * - **Field Type**: Date - * - **Placeholder**: Dolor sit amet - * - **API ID Path**: neque.items[].suspendisse_in - * - **Documentation**: https://prismic.io/docs/field#date + * - **Field Type**: Embed + * - **Placeholder**: Id donec ultrices + * - **API ID Path**: elementum.items[].hendrerit_gravida + * - **Documentation**: https://prismic.io/docs/field#embed */ - suspendisse_in: prismic.DateField; + hendrerit_gravida: prismic.EmbedField /** - * Eu field in *Neque → Items* + * Nisl field in *Elementum → Items* * - * - **Field Type**: Embed - * - **Placeholder**: Viverra ipsum nunc - * - **API ID Path**: neque.items[].cursus - * - **Documentation**: https://prismic.io/docs/field#embed + * - **Field Type**: GeoPoint + * - **Placeholder**: *None* + * - **API ID Path**: elementum.items[].amet_facilisis + * - **Documentation**: https://prismic.io/docs/field#geopoint */ - cursus: prismic.EmbedField + amet_facilisis: prismic.GeoPointField; /** - * Ac field in *Neque → Items* + * Neque field in *Elementum → Items* * - * - **Field Type**: Rich Text - * - **Placeholder**: Libero justo laoreet - * - **API ID Path**: neque.items[].eu - * - **Documentation**: https://prismic.io/docs/field#rich-text-title + * - **Field Type**: Image + * - **Placeholder**: *None* + * - **API ID Path**: elementum.items[].turpis_tincidunt + * - **Documentation**: https://prismic.io/docs/field#image */ - eu: prismic.RichTextField; + turpis_tincidunt: prismic.ImageField; /** - * Amet field in *Neque → Items* + * Fermentum field in *Elementum → Items* * - * - **Field Type**: Integration Fields (Catalog: \`a_molestie\`) + * - **Field Type**: Integration Fields (Catalog: \`pellentesque_nec\`) * - **Placeholder**: *None* - * - **API ID Path**: neque.items[].vel + * - **API ID Path**: elementum.items[].vulputate_enim * - **Documentation**: https://prismic.io/docs/field#integration */ - vel: prismic.IntegrationField; + vulputate_enim: prismic.IntegrationField; /** - * Gravida field in *Neque → Items* + * Eget field in *Elementum → Items* * * - **Field Type**: Link - * - **Placeholder**: Donec pretium vulputate - * - **API ID Path**: neque.items[].morbi + * - **Placeholder**: Congue mauris rhoncus + * - **API ID Path**: elementum.items[].ornare_suspendisse * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - morbi: prismic.LinkField; + ornare_suspendisse: prismic.LinkField; /** - * Praesent field in *Neque → Items* + * Leo field in *Elementum → Items* * - * - **Field Type**: Select - * - **Placeholder**: In hac habitasse - * - **API ID Path**: neque.items[].vitae - * - **Documentation**: https://prismic.io/docs/field#select + * - **Field Type**: Number + * - **Placeholder**: Gravida hendrerit lectus + * - **API ID Path**: elementum.items[].tellus_rutrum + * - **Documentation**: https://prismic.io/docs/field#number */ - vitae: prismic.SelectField; + tellus_rutrum: prismic.NumberField; /** - * Vitae field in *Neque → Items* + * Eu field in *Elementum → Items* + * + * - **Field Type**: Rich Text + * - **Placeholder**: Cras adipiscing enim + * - **API ID Path**: elementum.items[].ut + * - **Documentation**: https://prismic.io/docs/field#rich-text-title + */ + ut: prismic.RichTextField; + + /** + * A field in *Elementum → Items* * * - **Field Type**: Timestamp - * - **Placeholder**: Elementum pulvinar etiam - * - **API ID Path**: neque.items[].et + * - **Placeholder**: Faucibus scelerisque eleifend + * - **API ID Path**: elementum.items[].amet_commodo * - **Documentation**: https://prismic.io/docs/field#timestamp */ - et: prismic.TimestampField; + amet_commodo: prismic.TimestampField; /** - * Sollicitudin field in *Neque → Items* + * Rutrum field in *Elementum → Items* * * - **Field Type**: Title - * - **Placeholder**: Auctor urna nunc - * - **API ID Path**: neque.items[].consectetur + * - **Placeholder**: Dictum non consectetur + * - **API ID Path**: elementum.items[].gravida_hendrerit * - **Documentation**: https://prismic.io/docs/field#rich-text-title */ - consectetur: prismic.TitleField; + gravida_hendrerit: prismic.TitleField; } /** - * Ultricies variation for Neque Slice + * Et variation for Elementum Slice * - * - **API ID**: \`ultricies\` - * - **Description**: Eu augue ut lectus arcu bibendum at varius + * - **API ID**: \`et\` + * - **Description**: Volutpat lacus laoreet non curabitur gravida * - **Documentation**: https://prismic.io/docs/slice */ -export type NequeSliceUltricies = prismic.SharedSliceVariation<\\"ultricies\\", Simplify, Simplify>; +export type ElementumSliceEt = prismic.SharedSliceVariation<\\"et\\", Simplify, Simplify>; /** - * Slice variation for *Neque* + * Slice variation for *Elementum* */ -type NequeSliceVariation = NequeSliceUltricies +type ElementumSliceVariation = ElementumSliceEt /** - * Neque Shared Slice + * Elementum Shared Slice * - * - **API ID**: \`neque\` - * - **Description**: Tempus egestas sed sed risus pretium + * - **API ID**: \`elementum\` + * - **Description**: Consectetur adipiscing elit pellentesque habitant * - **Documentation**: https://prismic.io/docs/slice */ -export type NequeSlice = prismic.SharedSlice<\\"neque\\", NequeSliceVariation>; +export type ElementumSlice = prismic.SharedSlice<\\"elementum\\", ElementumSliceVariation>; /** - * Primary content in *Sed → Primary* + * Primary content in *Nisl → Amet → Primary* */ -export interface SedSliceAdipiscingPrimary { +export interface NislSliceAmetPrimary { /** - * Luctus field in *Sed → Primary* + * Massa field in *Nisl → Amet → Primary* * * - **Field Type**: Boolean * - **Placeholder**: *None* - * - **API ID Path**: sed.primary.bibendum + * - **API ID Path**: nisl.amet.primary.id * - **Documentation**: https://prismic.io/docs/field#boolean */ - bibendum: prismic.BooleanField; + id: prismic.BooleanField; /** - * Mauris field in *Sed → Primary* + * In field in *Nisl → Amet → Primary* * - * - **Field Type**: Color - * - **Placeholder**: Urna neque viverra - * - **API ID Path**: sed.primary.vulputate - * - **Documentation**: https://prismic.io/docs/field#color + * - **Field Type**: Content Relationship + * - **Placeholder**: Sed velit dignissim + * - **API ID Path**: nisl.amet.primary.pellentesque + * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - vulputate: prismic.ColorField; + pellentesque: prismic.ContentRelationshipField; /** - * Lectus field in *Sed → Primary* + * Ullamcorper field in *Nisl → Amet → Primary* * * - **Field Type**: Embed - * - **Placeholder**: Suscipit tellus mauris - * - **API ID Path**: sed.primary.dolor + * - **Placeholder**: Eget gravida cum + * - **API ID Path**: nisl.amet.primary.mattis * - **Documentation**: https://prismic.io/docs/field#embed */ - dolor: prismic.EmbedField + mattis: prismic.EmbedField + + /** + * At field in *Nisl → Amet → Primary* + * + * - **Field Type**: GeoPoint + * - **Placeholder**: *None* + * - **API ID Path**: nisl.amet.primary.quisque_non + * - **Documentation**: https://prismic.io/docs/field#geopoint + */ + quisque_non: prismic.GeoPointField; /** - * Feugiat field in *Sed → Primary* + * Tempus field in *Nisl → Amet → Primary* * - * - **Field Type**: Integration Fields (Catalog: \`eu_facilisis\`) + * - **Field Type**: Integration Fields (Catalog: \`at_volutpat\`) * - **Placeholder**: *None* - * - **API ID Path**: sed.primary.vel + * - **API ID Path**: nisl.amet.primary.lobortis * - **Documentation**: https://prismic.io/docs/field#integration */ - vel: prismic.IntegrationField; + lobortis: prismic.IntegrationField; + + /** + * Porta field in *Nisl → Amet → Primary* + * + * - **Field Type**: Link + * - **Placeholder**: Vitae tempus quam + * - **API ID Path**: nisl.amet.primary.convallis_tellus + * - **Documentation**: https://prismic.io/docs/field#link-content-relationship + */ + convallis_tellus: prismic.LinkField; + + /** + * Tristique field in *Nisl → Amet → Primary* + * + * - **Field Type**: Link to Media + * - **Placeholder**: Nulla posuere sollicitudin + * - **API ID Path**: nisl.amet.primary.eget + * - **Documentation**: https://prismic.io/docs/field#link-content-relationship + */ + eget: prismic.LinkToMediaField; /** - * Cursus field in *Sed → Primary* + * In field in *Nisl → Amet → Primary* * * - **Field Type**: Number - * - **Placeholder**: Commodo quis imperdiet - * - **API ID Path**: sed.primary.dictum + * - **Placeholder**: Et tortor consequat + * - **API ID Path**: nisl.amet.primary.semper * - **Documentation**: https://prismic.io/docs/field#number */ - dictum: prismic.NumberField; -} - -/** - * Primary content in *Sed → Items* - */ -export interface SedSliceAdipiscingItem { + semper: prismic.NumberField; + /** - * Pharetra field in *Sed → Items* + * Dictum field in *Nisl → Amet → Primary* * - * - **Field Type**: Color - * - **Placeholder**: Non pulvinar neque - * - **API ID Path**: sed.items[].odio - * - **Documentation**: https://prismic.io/docs/field#color + * - **Field Type**: Rich Text + * - **Placeholder**: Cursus turpis massa + * - **API ID Path**: nisl.amet.primary.turpis + * - **Documentation**: https://prismic.io/docs/field#rich-text-title */ - odio: prismic.ColorField; + turpis: prismic.RichTextField; /** - * Arcu field in *Sed → Items* + * Amet field in *Nisl → Amet → Primary* * - * - **Field Type**: GeoPoint - * - **Placeholder**: *None* - * - **API ID Path**: sed.items[].ut_tellus - * - **Documentation**: https://prismic.io/docs/field#geopoint + * - **Field Type**: Title + * - **Placeholder**: Aliquet bibendum enim + * - **API ID Path**: nisl.amet.primary.condimentum + * - **Documentation**: https://prismic.io/docs/field#rich-text-title */ - ut_tellus: prismic.GeoPointField; - + condimentum: prismic.TitleField; +} + +/** + * Primary content in *Nisl → Items* + */ +export interface NislSliceAmetItem { /** - * Sagittis field in *Sed → Items* + * Metus field in *Nisl → Items* * - * - **Field Type**: Image - * - **Placeholder**: *None* - * - **API ID Path**: sed.items[].massa - * - **Documentation**: https://prismic.io/docs/field#image + * - **Field Type**: Content Relationship + * - **Placeholder**: Pellentesque id nibh + * - **API ID Path**: nisl.items[].nulla + * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - massa: prismic.ImageField; + nulla: prismic.ContentRelationshipField; /** - * Nulla field in *Sed → Items* + * In field in *Nisl → Items* * - * - **Field Type**: Integration Fields (Catalog: \`metus_vulputate\`) - * - **Placeholder**: *None* - * - **API ID Path**: sed.items[].aliquam - * - **Documentation**: https://prismic.io/docs/field#integration + * - **Field Type**: Text + * - **Placeholder**: Dignissim convallis aenean + * - **API ID Path**: nisl.items[].etiam_erat + * - **Documentation**: https://prismic.io/docs/field#key-text */ - aliquam: prismic.IntegrationField; + etiam_erat: prismic.KeyTextField; /** - * Etiam field in *Sed → Items* + * Euismod field in *Nisl → Items* * - * - **Field Type**: Number - * - **Placeholder**: In egestas erat - * - **API ID Path**: sed.items[].sed - * - **Documentation**: https://prismic.io/docs/field#number + * - **Field Type**: Link to Media + * - **Placeholder**: Diam quam nulla + * - **API ID Path**: nisl.items[].suscipit_tellus + * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - sed: prismic.NumberField; + suscipit_tellus: prismic.LinkToMediaField; /** - * Suscipit field in *Sed → Items* + * Dictum field in *Nisl → Items* * - * - **Field Type**: Timestamp - * - **Placeholder**: Euismod quis viverra - * - **API ID Path**: sed.items[].tortor_aliquam - * - **Documentation**: https://prismic.io/docs/field#timestamp + * - **Field Type**: Rich Text + * - **Placeholder**: Ut tristique et + * - **API ID Path**: nisl.items[].quis + * - **Documentation**: https://prismic.io/docs/field#rich-text-title */ - tortor_aliquam: prismic.TimestampField; + quis: prismic.RichTextField; } /** - * Adipiscing variation for Sed Slice + * Amet variation for Nisl Slice * - * - **API ID**: \`adipiscing\` - * - **Description**: Blandit massa enim nec dui nunc mattis enim ut + * - **API ID**: \`amet\` + * - **Description**: Diam in arcu cursus euismod quis * - **Documentation**: https://prismic.io/docs/slice */ -export type SedSliceAdipiscing = prismic.SharedSliceVariation<\\"adipiscing\\", Simplify, Simplify>; +export type NislSliceAmet = prismic.SharedSliceVariation<\\"amet\\", Simplify, Simplify>; /** - * Slice variation for *Sed* + * Slice variation for *Nisl* */ -type SedSliceVariation = SedSliceAdipiscing +type NislSliceVariation = NislSliceAmet /** - * Sed Shared Slice + * Nisl Shared Slice * - * - **API ID**: \`sed\` - * - **Description**: Amet justo donec enim diam + * - **API ID**: \`nisl\` + * - **Description**: Aliquam ultrices sagittis orci a scelerisque * - **Documentation**: https://prismic.io/docs/slice */ -export type SedSlice = prismic.SharedSlice<\\"sed\\", SedSliceVariation>; +export type NislSlice = prismic.SharedSlice<\\"nisl\\", NislSliceVariation>; /** - * Primary content in *Arcu → Primary* + * Primary content in *Dictumst → Ante → Primary* */ -export interface ArcuSliceIdPrimary { +export interface DictumstSliceAntePrimary { /** - * Rutrum field in *Arcu → Primary* + * Tristique field in *Dictumst → Ante → Primary* * * - **Field Type**: Boolean * - **Placeholder**: *None* - * - **API ID Path**: arcu.primary.lectus_sit + * - **API ID Path**: dictumst.ante.primary.risus * - **Documentation**: https://prismic.io/docs/field#boolean */ - lectus_sit: prismic.BooleanField; - - /** - * Aliquam field in *Arcu → Primary* - * - * - **Field Type**: Content Relationship - * - **Placeholder**: Urna nec tincidunt - * - **API ID Path**: arcu.primary.nisl_pretium - * - **Documentation**: https://prismic.io/docs/field#link-content-relationship - */ - nisl_pretium: prismic.ContentRelationshipField; - - /** - * Aliquet field in *Arcu → Primary* - * - * - **Field Type**: Embed - * - **Placeholder**: Non nisi est - * - **API ID Path**: arcu.primary.leo_vel - * - **Documentation**: https://prismic.io/docs/field#embed - */ - leo_vel: prismic.EmbedField + risus: prismic.BooleanField; /** - * Aliquet field in *Arcu → Primary* + * Suspendisse field in *Dictumst → Ante → Primary* * - * - **Field Type**: Integration Fields (Catalog: \`sit_amet\`) + * - **Field Type**: GeoPoint * - **Placeholder**: *None* - * - **API ID Path**: arcu.primary.tristique - * - **Documentation**: https://prismic.io/docs/field#integration + * - **API ID Path**: dictumst.ante.primary.lacus + * - **Documentation**: https://prismic.io/docs/field#geopoint */ - tristique: prismic.IntegrationField; + lacus: prismic.GeoPointField; /** - * Nullam field in *Arcu → Primary* + * Malesuada field in *Dictumst → Ante → Primary* * - * - **Field Type**: Link - * - **Placeholder**: Lacus laoreet non - * - **API ID Path**: arcu.primary.odio_pellentesque - * - **Documentation**: https://prismic.io/docs/field#link-content-relationship + * - **Field Type**: Text + * - **Placeholder**: Elementum sagittis vitae + * - **API ID Path**: dictumst.ante.primary.tincidunt_vitae + * - **Documentation**: https://prismic.io/docs/field#key-text */ - odio_pellentesque: prismic.LinkField; + tincidunt_vitae: prismic.KeyTextField; /** - * Nec field in *Arcu → Primary* + * Sodales field in *Dictumst → Ante → Primary* * - * - **Field Type**: Number - * - **Placeholder**: Risus feugiat in - * - **API ID Path**: arcu.primary.id_neque - * - **Documentation**: https://prismic.io/docs/field#number + * - **Field Type**: Select + * - **Placeholder**: Sed velit dignissim + * - **API ID Path**: dictumst.ante.primary.eget + * - **Documentation**: https://prismic.io/docs/field#select */ - id_neque: prismic.NumberField; + eget: prismic.SelectField; /** - * Congue field in *Arcu → Primary* + * Sed field in *Dictumst → Ante → Primary* * * - **Field Type**: Rich Text - * - **Placeholder**: Non tellus orci - * - **API ID Path**: arcu.primary.quis_blandit + * - **Placeholder**: Tempor id eu + * - **API ID Path**: dictumst.ante.primary.morbi * - **Documentation**: https://prismic.io/docs/field#rich-text-title */ - quis_blandit: prismic.RichTextField; + morbi: prismic.RichTextField; /** - * Donec field in *Arcu → Primary* + * Aliquam field in *Dictumst → Ante → Primary* * - * - **Field Type**: Select - * - **Placeholder**: Risus at ultrices - * - **API ID Path**: arcu.primary.neque_volutpat - * - **Documentation**: https://prismic.io/docs/field#select + * - **Field Type**: Timestamp + * - **Placeholder**: At imperdiet dui + * - **API ID Path**: dictumst.ante.primary.nunc + * - **Documentation**: https://prismic.io/docs/field#timestamp */ - neque_volutpat: prismic.SelectField; + nunc: prismic.TimestampField; /** - * Consectetur field in *Arcu → Primary* + * Feugiat field in *Dictumst → Ante → Primary* * - * - **Field Type**: Timestamp - * - **Placeholder**: Adipiscing enim eu - * - **API ID Path**: arcu.primary.quisque_non - * - **Documentation**: https://prismic.io/docs/field#timestamp + * - **Field Type**: Title + * - **Placeholder**: Ipsum dolor sit + * - **API ID Path**: dictumst.ante.primary.urna + * - **Documentation**: https://prismic.io/docs/field#rich-text-title */ - quisque_non: prismic.TimestampField; + urna: prismic.TitleField; } /** - * Primary content in *Arcu → Items* + * Primary content in *Dictumst → Items* */ -export interface ArcuSliceIdItem { +export interface DictumstSliceAnteItem { /** - * In field in *Arcu → Items* + * Blandit field in *Dictumst → Items* * - * - **Field Type**: Boolean + * - **Field Type**: Embed + * - **Placeholder**: Molestie a iaculis + * - **API ID Path**: dictumst.items[].ornare_suspendisse + * - **Documentation**: https://prismic.io/docs/field#embed + */ + ornare_suspendisse: prismic.EmbedField + + /** + * Viverra field in *Dictumst → Items* + * + * - **Field Type**: GeoPoint * - **Placeholder**: *None* - * - **API ID Path**: arcu.items[].vestibulum_lorem - * - **Documentation**: https://prismic.io/docs/field#boolean + * - **API ID Path**: dictumst.items[].sed + * - **Documentation**: https://prismic.io/docs/field#geopoint */ - vestibulum_lorem: prismic.BooleanField; + sed: prismic.GeoPointField; /** - * Ipsum field in *Arcu → Items* + * Elit field in *Dictumst → Items* * - * - **Field Type**: Date - * - **Placeholder**: Id cursus metus - * - **API ID Path**: arcu.items[].feugiat_scelerisque - * - **Documentation**: https://prismic.io/docs/field#date + * - **Field Type**: Integration Fields (Catalog: \`eu_non\`) + * - **Placeholder**: *None* + * - **API ID Path**: dictumst.items[].mauris_vitae + * - **Documentation**: https://prismic.io/docs/field#integration */ - feugiat_scelerisque: prismic.DateField; + mauris_vitae: prismic.IntegrationField; /** - * Sagittis field in *Arcu → Items* + * Donec field in *Dictumst → Items* * * - **Field Type**: Link - * - **Placeholder**: Faucibus ornare suspendisse - * - **API ID Path**: arcu.items[].diam_volutpat + * - **Placeholder**: Ac ut consequat + * - **API ID Path**: dictumst.items[].non + * - **Documentation**: https://prismic.io/docs/field#link-content-relationship + */ + non: prismic.LinkField; + + /** + * Arcu field in *Dictumst → Items* + * + * - **Field Type**: Link to Media + * - **Placeholder**: Mattis rhoncus urna + * - **API ID Path**: dictumst.items[].donec * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - diam_volutpat: prismic.LinkField; + donec: prismic.LinkToMediaField; /** - * Auctor field in *Arcu → Items* + * Dictum field in *Dictumst → Items* * * - **Field Type**: Number - * - **Placeholder**: Nec feugiat in - * - **API ID Path**: arcu.items[].arcu_ac + * - **Placeholder**: Adipiscing elit duis + * - **API ID Path**: dictumst.items[].aliquet * - **Documentation**: https://prismic.io/docs/field#number */ - arcu_ac: prismic.NumberField; + aliquet: prismic.NumberField; + + /** + * Ut field in *Dictumst → Items* + * + * - **Field Type**: Rich Text + * - **Placeholder**: Magna fringilla urna + * - **API ID Path**: dictumst.items[].varius_duis + * - **Documentation**: https://prismic.io/docs/field#rich-text-title + */ + varius_duis: prismic.RichTextField; + + /** + * Gravida field in *Dictumst → Items* + * + * - **Field Type**: Select + * - **Placeholder**: Nibh tortor id + * - **API ID Path**: dictumst.items[].bibendum_enim + * - **Documentation**: https://prismic.io/docs/field#select + */ + bibendum_enim: prismic.SelectField; /** - * Risus field in *Arcu → Items* + * At field in *Dictumst → Items* * * - **Field Type**: Timestamp - * - **Placeholder**: Quam quisque id - * - **API ID Path**: arcu.items[].molestie + * - **Placeholder**: Orci sagittis eu + * - **API ID Path**: dictumst.items[].cursus_vitae * - **Documentation**: https://prismic.io/docs/field#timestamp */ - molestie: prismic.TimestampField; + cursus_vitae: prismic.TimestampField; } /** - * Id variation for Arcu Slice + * Ante variation for Dictumst Slice * - * - **API ID**: \`id\` - * - **Description**: Ornare suspendisse sed nisi lacus sed viverra tellus in + * - **API ID**: \`ante\` + * - **Description**: Id cursus metus aliquam eleifend mi * - **Documentation**: https://prismic.io/docs/slice */ -export type ArcuSliceId = prismic.SharedSliceVariation<\\"id\\", Simplify, Simplify>; +export type DictumstSliceAnte = prismic.SharedSliceVariation<\\"ante\\", Simplify, Simplify>; /** - * Slice variation for *Arcu* + * Slice variation for *Dictumst* */ -type ArcuSliceVariation = ArcuSliceId +type DictumstSliceVariation = DictumstSliceAnte /** - * Arcu Shared Slice + * Dictumst Shared Slice * - * - **API ID**: \`arcu\` - * - **Description**: Ac turpis egestas integer eget aliquet nibh praesent + * - **API ID**: \`dictumst\` + * - **Description**: Quis ipsum suspendisse ultrices gravida dictum * - **Documentation**: https://prismic.io/docs/slice */ -export type ArcuSlice = prismic.SharedSlice<\\"arcu\\", ArcuSliceVariation>; +export type DictumstSlice = prismic.SharedSlice<\\"dictumst\\", DictumstSliceVariation>; /** - * Primary content in *Est → Primary* + * Primary content in *Interdum → Eros → Primary* */ -export interface EstSliceEratPrimary { +export interface InterdumSliceErosPrimary { /** - * Risus field in *Est → Primary* + * Commodo field in *Interdum → Eros → Primary* * * - **Field Type**: Boolean * - **Placeholder**: *None* - * - **API ID Path**: est.primary.elit_duis + * - **API ID Path**: interdum.eros.primary.sed_arcu * - **Documentation**: https://prismic.io/docs/field#boolean */ - elit_duis: prismic.BooleanField; - - /** - * Ut field in *Est → Primary* - * - * - **Field Type**: Color - * - **Placeholder**: Magna fringilla urna - * - **API ID Path**: est.primary.vitae - * - **Documentation**: https://prismic.io/docs/field#color - */ - vitae: prismic.ColorField; - - /** - * Bibendum field in *Est → Primary* - * - * - **Field Type**: Content Relationship - * - **Placeholder**: Gravida hendrerit lectus - * - **API ID Path**: est.primary.id_diam - * - **Documentation**: https://prismic.io/docs/field#link-content-relationship - */ - id_diam: prismic.ContentRelationshipField; + sed_arcu: prismic.BooleanField; /** - * Cursus field in *Est → Primary* + * Sem field in *Interdum → Eros → Primary* * * - **Field Type**: Date - * - **Placeholder**: At lectus urna - * - **API ID Path**: est.primary.malesuada + * - **Placeholder**: At volutpat diam + * - **API ID Path**: interdum.eros.primary.gravida_cum * - **Documentation**: https://prismic.io/docs/field#date */ - malesuada: prismic.DateField; + gravida_cum: prismic.DateField; /** - * Ante field in *Est → Primary* + * Cras field in *Interdum → Eros → Primary* * - * - **Field Type**: Text - * - **Placeholder**: Velit scelerisque in - * - **API ID Path**: est.primary.ornare - * - **Documentation**: https://prismic.io/docs/field#key-text + * - **Field Type**: Image + * - **Placeholder**: *None* + * - **API ID Path**: interdum.eros.primary.dictum_non + * - **Documentation**: https://prismic.io/docs/field#image */ - ornare: prismic.KeyTextField; + dictum_non: prismic.ImageField; /** - * Mollis field in *Est → Primary* + * Malesuada field in *Interdum → Eros → Primary* * - * - **Field Type**: Link to Media - * - **Placeholder**: Vestibulum rhoncus est - * - **API ID Path**: est.primary.id - * - **Documentation**: https://prismic.io/docs/field#link-content-relationship + * - **Field Type**: Text + * - **Placeholder**: Accumsan in nisl + * - **API ID Path**: interdum.eros.primary.sit_amet + * - **Documentation**: https://prismic.io/docs/field#key-text */ - id: prismic.LinkToMediaField; + sit_amet: prismic.KeyTextField; /** - * Vestibulum field in *Est → Primary* + * Nisl field in *Interdum → Eros → Primary* * - * - **Field Type**: Number - * - **Placeholder**: Nisi lacus sed - * - **API ID Path**: est.primary.vitae_nunc - * - **Documentation**: https://prismic.io/docs/field#number + * - **Field Type**: Select + * - **Placeholder**: Volutpat lacus laoreet + * - **API ID Path**: interdum.eros.primary.rhoncus + * - **Documentation**: https://prismic.io/docs/field#select */ - vitae_nunc: prismic.NumberField; + rhoncus: prismic.SelectField; /** - * Malesuada field in *Est → Primary* + * Donec field in *Interdum → Eros → Primary* * - * - **Field Type**: Select - * - **Placeholder**: Non quam lacus - * - **API ID Path**: est.primary.vel - * - **Documentation**: https://prismic.io/docs/field#select + * - **Field Type**: Timestamp + * - **Placeholder**: Erat velit scelerisque + * - **API ID Path**: interdum.eros.primary.magnis_dis + * - **Documentation**: https://prismic.io/docs/field#timestamp */ - vel: prismic.SelectField; + magnis_dis: prismic.TimestampField; } /** - * Primary content in *Est → Items* + * Primary content in *Interdum → Items* */ -export interface EstSliceEratItem { +export interface InterdumSliceErosItem { + /** + * Tempus field in *Interdum → Items* + * + * - **Field Type**: Boolean + * - **Placeholder**: *None* + * - **API ID Path**: interdum.items[].non_odio + * - **Documentation**: https://prismic.io/docs/field#boolean + */ + non_odio: prismic.BooleanField; + /** - * Vestibulum field in *Est → Items* + * Quam field in *Interdum → Items* * * - **Field Type**: Date - * - **Placeholder**: Consequat mauris nunc - * - **API ID Path**: est.items[].tortor_pretium + * - **Placeholder**: Eget mi proin + * - **API ID Path**: interdum.items[].nec * - **Documentation**: https://prismic.io/docs/field#date */ - tortor_pretium: prismic.DateField; + nec: prismic.DateField; /** - * Blandit field in *Est → Items* + * Neque field in *Interdum → Items* * - * - **Field Type**: Embed - * - **Placeholder**: Enim blandit volutpat - * - **API ID Path**: est.items[].diam - * - **Documentation**: https://prismic.io/docs/field#embed + * - **Field Type**: GeoPoint + * - **Placeholder**: *None* + * - **API ID Path**: interdum.items[].velit_laoreet + * - **Documentation**: https://prismic.io/docs/field#geopoint */ - diam: prismic.EmbedField + velit_laoreet: prismic.GeoPointField; /** - * Sed field in *Est → Items* + * At field in *Interdum → Items* * - * - **Field Type**: Integration Fields (Catalog: \`commodo_odio\`) + * - **Field Type**: Image * - **Placeholder**: *None* - * - **API ID Path**: est.items[].adipiscing - * - **Documentation**: https://prismic.io/docs/field#integration + * - **API ID Path**: interdum.items[].quam_viverra + * - **Documentation**: https://prismic.io/docs/field#image */ - adipiscing: prismic.IntegrationField; + quam_viverra: prismic.ImageField; /** - * Sem field in *Est → Items* + * Enim field in *Interdum → Items* * * - **Field Type**: Text - * - **Placeholder**: At volutpat diam - * - **API ID Path**: est.items[].gravida_cum + * - **Placeholder**: Vitae et leo + * - **API ID Path**: interdum.items[].fames_ac * - **Documentation**: https://prismic.io/docs/field#key-text */ - gravida_cum: prismic.KeyTextField; + fames_ac: prismic.KeyTextField; /** - * Cras field in *Est → Items* + * Egestas field in *Interdum → Items* * - * - **Field Type**: Link - * - **Placeholder**: Tincidunt arcu non - * - **API ID Path**: est.items[].dictum_non - * - **Documentation**: https://prismic.io/docs/field#link-content-relationship + * - **Field Type**: Number + * - **Placeholder**: Risus in hendrerit + * - **API ID Path**: interdum.items[].porttitor_rhoncus + * - **Documentation**: https://prismic.io/docs/field#number */ - dictum_non: prismic.LinkField; + porttitor_rhoncus: prismic.NumberField; /** - * Est field in *Est → Items* + * Mauris field in *Interdum → Items* * - * - **Field Type**: Link to Media - * - **Placeholder**: Rhoncus dolor purus - * - **API ID Path**: est.items[].accumsan - * - **Documentation**: https://prismic.io/docs/field#link-content-relationship + * - **Field Type**: Select + * - **Placeholder**: Cursus risus at + * - **API ID Path**: interdum.items[].risus + * - **Documentation**: https://prismic.io/docs/field#select */ - accumsan: prismic.LinkToMediaField; + risus: prismic.SelectField; /** - * Dui field in *Est → Items* + * Nulla field in *Interdum → Items* * - * - **Field Type**: Select - * - **Placeholder**: Magnis dis parturient - * - **API ID Path**: est.items[].volutpat - * - **Documentation**: https://prismic.io/docs/field#select + * - **Field Type**: Timestamp + * - **Placeholder**: Interdum velit laoreet + * - **API ID Path**: interdum.items[].turpis_cursus + * - **Documentation**: https://prismic.io/docs/field#timestamp */ - volutpat: prismic.SelectField; + turpis_cursus: prismic.TimestampField; } /** - * Erat variation for Est Slice + * Eros variation for Interdum Slice * - * - **API ID**: \`erat\` - * - **Description**: Auctor eu augue ut lectus arcu bibendum at varius + * - **API ID**: \`eros\` + * - **Description**: Vulputate mi sit amet mauris commodo * - **Documentation**: https://prismic.io/docs/slice */ -export type EstSliceErat = prismic.SharedSliceVariation<\\"erat\\", Simplify, Simplify>; +export type InterdumSliceEros = prismic.SharedSliceVariation<\\"eros\\", Simplify, Simplify>; /** - * Slice variation for *Est* + * Slice variation for *Interdum* */ -type EstSliceVariation = EstSliceErat +type InterdumSliceVariation = InterdumSliceEros /** - * Est Shared Slice + * Interdum Shared Slice * - * - **API ID**: \`est\` - * - **Description**: Quam nulla porttitor massa id + * - **API ID**: \`interdum\` + * - **Description**: Iaculis at erat pellentesque adipiscing commodo elit * - **Documentation**: https://prismic.io/docs/slice */ -export type EstSlice = prismic.SharedSlice<\\"est\\", EstSliceVariation>; +export type InterdumSlice = prismic.SharedSlice<\\"interdum\\", InterdumSliceVariation>; /** - * Primary content in *Ipsum → Primary* + * Primary content in *Ac → Nibh → Primary* */ -export interface IpsumSliceFermentumPrimary { +export interface AcSliceNibhPrimary { /** - * Cursus field in *Ipsum → Primary* + * In field in *Ac → Nibh → Primary* * * - **Field Type**: Boolean * - **Placeholder**: *None* - * - **API ID Path**: ipsum.primary.mauris_commodo + * - **API ID Path**: ac.nibh.primary.in * - **Documentation**: https://prismic.io/docs/field#boolean */ - mauris_commodo: prismic.BooleanField; + in: prismic.BooleanField; /** - * Nulla field in *Ipsum → Primary* + * Neque field in *Ac → Nibh → Primary* * * - **Field Type**: Color - * - **Placeholder**: Interdum velit laoreet - * - **API ID Path**: ipsum.primary.turpis_cursus + * - **Placeholder**: Euismod lacinia at + * - **API ID Path**: ac.nibh.primary.elementum_eu * - **Documentation**: https://prismic.io/docs/field#color */ - turpis_cursus: prismic.ColorField; + elementum_eu: prismic.ColorField; /** - * At field in *Ipsum → Primary* + * Luctus field in *Ac → Nibh → Primary* * * - **Field Type**: Content Relationship - * - **Placeholder**: Viverra suspendisse potenti - * - **API ID Path**: ipsum.primary.eros_in + * - **Placeholder**: Enim neque volutpat + * - **API ID Path**: ac.nibh.primary.venenatis * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - eros_in: prismic.ContentRelationshipField; + venenatis: prismic.ContentRelationshipField; /** - * Bibendum field in *Ipsum → Primary* + * Scelerisque field in *Ac → Nibh → Primary* * * - **Field Type**: Date - * - **Placeholder**: Pharetra vel turpis - * - **API ID Path**: ipsum.primary.at_consectetur + * - **Placeholder**: Quis vel eros + * - **API ID Path**: ac.nibh.primary.tortor_vitae * - **Documentation**: https://prismic.io/docs/field#date */ - at_consectetur: prismic.DateField; + tortor_vitae: prismic.DateField; /** - * Morbi field in *Ipsum → Primary* + * Diam field in *Ac → Nibh → Primary* * - * - **Field Type**: GeoPoint + * - **Field Type**: Image * - **Placeholder**: *None* - * - **API ID Path**: ipsum.primary.risus - * - **Documentation**: https://prismic.io/docs/field#geopoint + * - **API ID Path**: ac.nibh.primary.nunc + * - **Documentation**: https://prismic.io/docs/field#image */ - risus: prismic.GeoPointField; + nunc: prismic.ImageField; /** - * Pellentesque field in *Ipsum → Primary* + * Lacus field in *Ac → Nibh → Primary* * - * - **Field Type**: Image + * - **Field Type**: Integration Fields (Catalog: \`leo_urna\`) * - **Placeholder**: *None* - * - **API ID Path**: ipsum.primary.ridiculus_mus - * - **Documentation**: https://prismic.io/docs/field#image + * - **API ID Path**: ac.nibh.primary.euismod + * - **Documentation**: https://prismic.io/docs/field#integration */ - ridiculus_mus: prismic.ImageField; + euismod: prismic.IntegrationField; /** - * Sociis field in *Ipsum → Primary* + * Tincidunt field in *Ac → Nibh → Primary* * * - **Field Type**: Text - * - **Placeholder**: Viverra accumsan in - * - **API ID Path**: ipsum.primary.cras_pulvinar + * - **Placeholder**: Enim tortor at + * - **API ID Path**: ac.nibh.primary.facilisi_etiam * - **Documentation**: https://prismic.io/docs/field#key-text */ - cras_pulvinar: prismic.KeyTextField; + facilisi_etiam: prismic.KeyTextField; /** - * Dolor field in *Ipsum → Primary* + * Ante field in *Ac → Nibh → Primary* * - * - **Field Type**: Link to Media - * - **Placeholder**: Interdum varius sit - * - **API ID Path**: ipsum.primary.odio - * - **Documentation**: https://prismic.io/docs/field#link-content-relationship + * - **Field Type**: Rich Text + * - **Placeholder**: Vulputate mi sit + * - **API ID Path**: ac.nibh.primary.magna_fringilla + * - **Documentation**: https://prismic.io/docs/field#rich-text-title */ - odio: prismic.LinkToMediaField; + magna_fringilla: prismic.RichTextField; /** - * Bibendum field in *Ipsum → Primary* + * Fermentum field in *Ac → Nibh → Primary* * - * - **Field Type**: Number - * - **Placeholder**: Placerat duis ultricies - * - **API ID Path**: ipsum.primary.iaculis - * - **Documentation**: https://prismic.io/docs/field#number + * - **Field Type**: Select + * - **Placeholder**: Faucibus nisl tincidunt + * - **API ID Path**: ac.nibh.primary.non + * - **Documentation**: https://prismic.io/docs/field#select */ - iaculis: prismic.NumberField; + non: prismic.SelectField; /** - * Dictum field in *Ipsum → Primary* + * Bibendum field in *Ac → Nibh → Primary* * - * - **Field Type**: Timestamp - * - **Placeholder**: Vitae tortor condimentum - * - **API ID Path**: ipsum.primary.mi_tempus - * - **Documentation**: https://prismic.io/docs/field#timestamp + * - **Field Type**: Title + * - **Placeholder**: Diam quis enim + * - **API ID Path**: ac.nibh.primary.donec + * - **Documentation**: https://prismic.io/docs/field#rich-text-title */ - mi_tempus: prismic.TimestampField; + donec: prismic.TitleField; } /** - * Primary content in *Ipsum → Items* + * Primary content in *Ac → Items* */ -export interface IpsumSliceFermentumItem { +export interface AcSliceNibhItem { /** - * Venenatis field in *Ipsum → Items* + * Arcu field in *Ac → Items* * - * - **Field Type**: Boolean + * - **Field Type**: Integration Fields (Catalog: \`diam_in\`) * - **Placeholder**: *None* - * - **API ID Path**: ipsum.items[].congue_nisi - * - **Documentation**: https://prismic.io/docs/field#boolean + * - **API ID Path**: ac.items[].vivamus + * - **Documentation**: https://prismic.io/docs/field#integration */ - congue_nisi: prismic.BooleanField; + vivamus: prismic.IntegrationField; /** - * Congue field in *Ipsum → Items* + * Molestie field in *Ac → Items* * * - **Field Type**: Link - * - **Placeholder**: Magna fringilla urna - * - **API ID Path**: ipsum.items[].enim + * - **Placeholder**: Sed velit dignissim + * - **API ID Path**: ac.items[].mi_in * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - enim: prismic.LinkField; - - /** - * Nunc field in *Ipsum → Items* - * - * - **Field Type**: Date - * - **Placeholder**: Nunc eget lorem - * - **API ID Path**: ipsum.items[].quis - * - **Documentation**: https://prismic.io/docs/field#date - */ - quis: prismic.DateField; + mi_in: prismic.LinkField; /** - * Euismod field in *Ipsum → Items* + * Lacus field in *Ac → Items* * - * - **Field Type**: Image - * - **Placeholder**: *None* - * - **API ID Path**: ipsum.items[].tellus - * - **Documentation**: https://prismic.io/docs/field#image + * - **Field Type**: Link to Media + * - **Placeholder**: Pellentesque pulvinar pellentesque + * - **API ID Path**: ac.items[].dui + * - **Documentation**: https://prismic.io/docs/field#link-content-relationship */ - tellus: prismic.ImageField; + dui: prismic.LinkToMediaField; /** - * Vel field in *Ipsum → Items* + * Dui field in *Ac → Items* * - * - **Field Type**: Integration Fields (Catalog: \`facilisi_etiam\`) - * - **Placeholder**: *None* - * - **API ID Path**: ipsum.items[].leo_urna - * - **Documentation**: https://prismic.io/docs/field#integration + * - **Field Type**: Number + * - **Placeholder**: Molestie lorem ipsum + * - **API ID Path**: ac.items[].massa + * - **Documentation**: https://prismic.io/docs/field#number */ - leo_urna: prismic.IntegrationField; + massa: prismic.NumberField; /** - * Porta field in *Ipsum → Items* + * Pharetra field in *Ac → Items* * * - **Field Type**: Select - * - **Placeholder**: Euismod in pellentesque - * - **API ID Path**: ipsum.items[].sit_amet + * - **Placeholder**: Scelerisque mauris pellentesque + * - **API ID Path**: ac.items[].tellus_orci * - **Documentation**: https://prismic.io/docs/field#select */ - sit_amet: prismic.SelectField; - - /** - * Neque field in *Ipsum → Items* - * - * - **Field Type**: Timestamp - * - **Placeholder**: Donec massa sapien - * - **API ID Path**: ipsum.items[].turpis - * - **Documentation**: https://prismic.io/docs/field#timestamp - */ - turpis: prismic.TimestampField; + tellus_orci: prismic.SelectField; /** - * Vulputate field in *Ipsum → Items* + * Tellus field in *Ac → Items* * * - **Field Type**: Title - * - **Placeholder**: Molestie at elementum - * - **API ID Path**: ipsum.items[].laoreet + * - **Placeholder**: Egestas sed sed + * - **API ID Path**: ac.items[].risus * - **Documentation**: https://prismic.io/docs/field#rich-text-title */ - laoreet: prismic.TitleField; + risus: prismic.TitleField; } /** - * Fermentum variation for Ipsum Slice + * Nibh variation for Ac Slice * - * - **API ID**: \`fermentum\` - * - **Description**: Donec ultrices tincidunt arcu non sodales + * - **API ID**: \`nibh\` + * - **Description**: Mollis aliquam ut porttitor leo a diam * - **Documentation**: https://prismic.io/docs/slice */ -export type IpsumSliceFermentum = prismic.SharedSliceVariation<\\"fermentum\\", Simplify, Simplify>; +export type AcSliceNibh = prismic.SharedSliceVariation<\\"nibh\\", Simplify, Simplify>; /** - * Slice variation for *Ipsum* + * Slice variation for *Ac* */ -type IpsumSliceVariation = IpsumSliceFermentum +type AcSliceVariation = AcSliceNibh /** - * Ipsum Shared Slice + * Ac Shared Slice * - * - **API ID**: \`ipsum\` - * - **Description**: Pellentesque elit ullamcorper dignissim cras tincidunt lobortis feugiat vivamus + * - **API ID**: \`ac\` + * - **Description**: Ac tortor vitae purus faucibus ornare suspendisse * - **Documentation**: https://prismic.io/docs/slice */ -export type IpsumSlice = prismic.SharedSlice<\\"ipsum\\", IpsumSliceVariation>; +export type AcSlice = prismic.SharedSlice<\\"ac\\", AcSliceVariation>; declare module \\"@prismicio/client\\" { interface CreateClient { @@ -2802,50 +2859,50 @@ declare module \\"@prismicio/client\\" { EnimDocumentDataSliceZoneFooSlicePrimary, EnimDocumentDataSliceZoneFooSliceItem, EnimDocumentDataSliceZoneSlice, - ErosDocument, - ErosDocumentData, - ErosDocumentDataGroupItem, - ErosDocumentDataSliceZoneFooSlicePrimary, - ErosDocumentDataSliceZoneFooSliceItem, - ErosDocumentDataSliceZoneSlice, - BlanditDocument, - BlanditDocumentData, - BlanditDocumentDataGroupItem, - BlanditDocumentDataSliceZoneFooSlicePrimary, - BlanditDocumentDataSliceZoneFooSliceItem, - BlanditDocumentDataSliceZoneSlice, - UllamcorperDocument, - UllamcorperDocumentData, - UllamcorperDocumentDataGroupItem, - UllamcorperDocumentDataSliceZoneFooSlicePrimary, - UllamcorperDocumentDataSliceZoneFooSliceItem, - UllamcorperDocumentDataSliceZoneSlice, + EtDocument, + EtDocumentData, + EtDocumentDataGroupItem, + EtDocumentDataSliceZoneFooSlicePrimary, + EtDocumentDataSliceZoneFooSliceItem, + EtDocumentDataSliceZoneSlice, + IdDocument, + IdDocumentData, + IdDocumentDataGroupItem, + IdDocumentDataSliceZoneFooSlicePrimary, + IdDocumentDataSliceZoneFooSliceItem, + IdDocumentDataSliceZoneSlice, + IdDocument, + IdDocumentData, + IdDocumentDataGroupItem, + IdDocumentDataSliceZoneFooSlicePrimary, + IdDocumentDataSliceZoneFooSliceItem, + IdDocumentDataSliceZoneSlice, AllDocumentTypes, - NequeSlice, - NequeSliceUltriciesPrimary, - NequeSliceUltriciesItem, - NequeSliceVariation, - NequeSliceUltricies, - SedSlice, - SedSliceAdipiscingPrimary, - SedSliceAdipiscingItem, - SedSliceVariation, - SedSliceAdipiscing, - ArcuSlice, - ArcuSliceIdPrimary, - ArcuSliceIdItem, - ArcuSliceVariation, - ArcuSliceId, - EstSlice, - EstSliceEratPrimary, - EstSliceEratItem, - EstSliceVariation, - EstSliceErat, - IpsumSlice, - IpsumSliceFermentumPrimary, - IpsumSliceFermentumItem, - IpsumSliceVariation, - IpsumSliceFermentum + ElementumSlice, + ElementumSliceEtPrimary, + ElementumSliceEtItem, + ElementumSliceVariation, + ElementumSliceEt, + NislSlice, + NislSliceAmetPrimary, + NislSliceAmetItem, + NislSliceVariation, + NislSliceAmet, + DictumstSlice, + DictumstSliceAntePrimary, + DictumstSliceAnteItem, + DictumstSliceVariation, + DictumstSliceAnte, + InterdumSlice, + InterdumSliceErosPrimary, + InterdumSliceErosItem, + InterdumSliceVariation, + InterdumSliceEros, + AcSlice, + AcSliceNibhPrimary, + AcSliceNibhItem, + AcSliceVariation, + AcSliceNibh } } }" diff --git a/test/generateTypes-sharedSlice.test.ts b/test/generateTypes-sharedSlice.test.ts index 7ff189b..2ca894a 100644 --- a/test/generateTypes-sharedSlice.test.ts +++ b/test/generateTypes-sharedSlice.test.ts @@ -202,6 +202,36 @@ it("creates an interface for a Slice variation's primary fields", (ctx) => { ).toBe("prismic.KeyTextField"); }); +it("handles group fields in a Slice variation's primary fields", (ctx) => { + const model = ctx.mock.model.sharedSlice({ + id: "foo", + variations: [ + ctx.mock.model.sharedSliceVariation({ + id: "bar", + primaryFields: { + baz: ctx.mock.model.group({ + fields: { qux: ctx.mock.model.keyText() }, + }), + }, + }), + ], + }); + + const types = lib.generateTypes({ sharedSliceModels: [model] }); + const file = parseSourceFile(types); + + const primaryInterface = file.getInterfaceOrThrow("FooSliceBarPrimary"); + expect( + primaryInterface.getPropertyOrThrow("baz").getTypeNodeOrThrow().getText(), + ).toBe("prismic.GroupField>"); + + const itemInterface = file.getInterfaceOrThrow("FooSliceBarPrimaryBazItem"); + expect(itemInterface.isExported()).toBe(true); + expect( + itemInterface.getPropertyOrThrow("qux").getTypeNodeOrThrow().getText(), + ).toBe("prismic.KeyTextField"); +}); + it("creates an interface for a Slice variation's items fields", (ctx) => { const model = ctx.mock.model.sharedSlice({ id: "foo",