@takeshape/schema 7.194.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/es/api-version.js +21 -0
- package/es/auth-schemas.js +0 -0
- package/es/builtin-schema.js +590 -0
- package/es/content-schema-transform.js +192 -0
- package/es/entitlements.js +0 -0
- package/es/enum.js +11 -0
- package/es/get-is-leaf.js +58 -0
- package/es/index.js +25 -0
- package/es/migration.js +413 -0
- package/es/mocks.js +47 -0
- package/es/patterns.js +0 -0
- package/es/project-schema/index.js +10 -0
- package/es/project-schema/v1.0.0.js +0 -0
- package/es/project-schema/v3.0.0.js +0 -0
- package/es/project-schema/v3.1.0.js +0 -0
- package/es/project-schema/v3.2.0.js +0 -0
- package/es/project-schema/v3.3.0.js +0 -0
- package/es/project-schema/v3.4.0.js +0 -0
- package/es/project-schema/v3.5.0.js +0 -0
- package/es/project-schema/v3.5.1.js +0 -0
- package/es/project-schema/v3.6.0.js +0 -0
- package/es/refs.js +301 -0
- package/es/resolvers.js +2 -0
- package/es/scalars.js +4 -0
- package/es/schema-util.js +1197 -0
- package/es/schemas/auth-schemas.json +313 -0
- package/es/schemas/project-schema/meta-schema-v1.0.0.json +209 -0
- package/es/schemas/project-schema/meta-schema-v3.0.0.json +609 -0
- package/es/schemas/project-schema/meta-schema-v3.1.0.json +609 -0
- package/es/schemas/project-schema/meta-schema-v3.2.0.json +613 -0
- package/es/schemas/project-schema/meta-schema-v3.3.0.json +613 -0
- package/es/schemas/project-schema/meta-schema-v3.4.0.json +613 -0
- package/es/schemas/project-schema/meta-schema-v3.5.0.json +627 -0
- package/es/schemas/project-schema/meta-schema-v3.5.1.json +630 -0
- package/es/schemas/project-schema/meta-schema-v3.6.0.json +633 -0
- package/es/schemas/project-schema/v1.0.0.json +321 -0
- package/es/schemas/project-schema/v3.0.0.json +411 -0
- package/es/schemas/project-schema/v3.1.0.json +569 -0
- package/es/schemas/project-schema/v3.2.0.json +577 -0
- package/es/schemas/project-schema/v3.3.0.json +578 -0
- package/es/schemas/project-schema/v3.4.0.json +568 -0
- package/es/schemas/project-schema/v3.5.0.json +568 -0
- package/es/schemas/project-schema/v3.5.1.json +568 -0
- package/es/schemas/project-schema/v3.6.0.json +584 -0
- package/es/schemas/project-schema.json +16 -0
- package/es/schemas/user-schema.json +58 -0
- package/es/services.js +379 -0
- package/es/taxonomies.js +55 -0
- package/es/template-shapes.js +79 -0
- package/es/types.js +202 -0
- package/es/unions.js +137 -0
- package/es/user-schema.js +0 -0
- package/es/util/detect-cycles.js +54 -0
- package/es/util/index.js +1 -0
- package/es/validate.js +764 -0
- package/es/versions.js +4 -0
- package/es/workflows.js +69 -0
- package/examples/.pnpm-debug.log +20 -0
- package/examples/v1_0_0/beer-schema.json +125 -0
- package/examples/v1_0_0/blog-schema.json +192 -0
- package/examples/v1_0_0/brewery-schema.json +232 -0
- package/examples/v1_0_0/complex-project-schema.json +3197 -0
- package/examples/v1_0_0/error-schema.json +275 -0
- package/examples/v1_0_0/frank-and-fred-schema.json +21387 -0
- package/examples/v1_0_0/massive-schema.json +6930 -0
- package/examples/v1_0_0/post-schema.json +83 -0
- package/examples/v1_0_0/real-world-schema.json +797 -0
- package/examples/v1_0_0/recursive-repeater-schema.json +69 -0
- package/examples/v1_0_0/recursive-schema.json +79 -0
- package/examples/v1_0_0/schema-with-repeater-draftjs.json +292 -0
- package/examples/v1_0_0/shape-books.json +797 -0
- package/examples/v1_0_0/user-schema-no-required.json +84 -0
- package/examples/v1_0_0/user-schema-with-defaults.json +105 -0
- package/examples/v1_0_0/user-schema-with-obj-prop.json +92 -0
- package/examples/v1_0_0/user-schema.json +87 -0
- package/examples/v3_0_0/rick-and-morty-rest.json +62 -0
- package/examples/v3_0_0/shopify-lookbook.json +1172 -0
- package/examples/v3_0_0/shopify-store-with-widget.json +11323 -0
- package/examples/v3_2_0/blog-schema.json +378 -0
- package/examples/v3_2_0/brewery-schema.json +385 -0
- package/examples/v3_2_0/complex-project-schema.json +3748 -0
- package/examples/v3_2_0/frank-and-fred-schema.json +19217 -0
- package/examples/v3_2_0/massive-schema.json +6676 -0
- package/examples/v3_2_0/pet-oneof-array.json +323 -0
- package/examples/v3_2_0/post-schema.json +265 -0
- package/examples/v3_2_0/real-world-schema.json +970 -0
- package/examples/v3_2_0/recursive-repeater-schema.json +144 -0
- package/examples/v3_2_0/recursive-schema.json +151 -0
- package/examples/v3_2_0/rick-and-morty-rest.json +65 -0
- package/examples/v3_2_0/schema-with-repeater-draftjs.json +381 -0
- package/examples/v3_2_0/shape-books.json +1044 -0
- package/examples/v3_2_0/shopify-store-with-widget.json +11016 -0
- package/examples/v3_2_0/user-schema-no-required.json +174 -0
- package/examples/v3_2_0/user-schema-with-defaults.json +187 -0
- package/examples/v3_3_0/blog-schema.json +405 -0
- package/examples/v3_3_0/brewery-schema.json +406 -0
- package/examples/v3_3_0/complex-project-schema.json +4076 -0
- package/examples/v3_3_0/frank-and-fred-schema.json +20913 -0
- package/examples/v3_3_0/massive-schema.json +7309 -0
- package/examples/v3_3_0/pet-oneof-array.json +380 -0
- package/examples/v3_3_0/post-schema.json +248 -0
- package/examples/v3_3_0/real-world-schema.json +1046 -0
- package/examples/v3_3_0/recursive-repeater-schema.json +154 -0
- package/examples/v3_3_0/recursive-schema.json +161 -0
- package/examples/v3_3_0/rick-and-morty-rest.json +101 -0
- package/examples/v3_3_0/schema-with-repeater-draftjs.json +393 -0
- package/examples/v3_3_0/shape-books.json +1121 -0
- package/examples/v3_3_0/shopify-lookbook.json +1196 -0
- package/examples/v3_3_0/shopify-store-with-widget.json +11320 -0
- package/examples/v3_3_0/user-schema-no-required.json +185 -0
- package/examples/v3_3_0/user-schema-with-defaults.json +210 -0
- package/examples/v3_4_0/blog-schema.json +405 -0
- package/examples/v3_4_0/brewery-schema.json +406 -0
- package/examples/v3_4_0/complex-project-schema.json +4076 -0
- package/examples/v3_4_0/frank-and-fred-schema.json +20913 -0
- package/examples/v3_4_0/massive-schema.json +7309 -0
- package/examples/v3_4_0/pet-oneof-array.json +420 -0
- package/examples/v3_4_0/post-schema.json +248 -0
- package/examples/v3_4_0/real-world-schema.json +1046 -0
- package/examples/v3_4_0/recursive-repeater-schema.json +154 -0
- package/examples/v3_4_0/recursive-schema.json +161 -0
- package/examples/v3_4_0/rick-and-morty-rest.json +101 -0
- package/examples/v3_4_0/schema-with-repeater-draftjs.json +393 -0
- package/examples/v3_4_0/shape-books.json +1121 -0
- package/examples/v3_4_0/shopify-lookbook.json +1196 -0
- package/examples/v3_4_0/shopify-store-with-widget.json +11323 -0
- package/examples/v3_4_0/user-schema-no-required.json +185 -0
- package/examples/v3_4_0/user-schema-with-defaults.json +210 -0
- package/examples/v3_5_0/blog-schema.json +405 -0
- package/examples/v3_5_0/brewery-schema.json +406 -0
- package/examples/v3_5_0/complex-project-schema.json +4076 -0
- package/examples/v3_5_0/frank-and-fred-schema.json +20913 -0
- package/examples/v3_5_0/massive-schema.json +7309 -0
- package/examples/v3_5_0/pet-oneof-array.json +420 -0
- package/examples/v3_5_0/post-schema.json +248 -0
- package/examples/v3_5_0/real-world-schema.json +1046 -0
- package/examples/v3_5_0/recursive-repeater-schema.json +154 -0
- package/examples/v3_5_0/recursive-schema.json +161 -0
- package/examples/v3_5_0/rick-and-morty-rest.json +101 -0
- package/examples/v3_5_0/schema-with-repeater-draftjs.json +393 -0
- package/examples/v3_5_0/shape-books.json +1121 -0
- package/examples/v3_5_0/shopify-lookbook.json +1196 -0
- package/examples/v3_5_0/shopify-store-with-widget.json +12271 -0
- package/examples/v3_5_0/user-schema-no-required.json +185 -0
- package/examples/v3_5_0/user-schema-with-defaults.json +210 -0
- package/examples/v3_5_1/blog-schema.json +405 -0
- package/examples/v3_5_1/brewery-schema.json +406 -0
- package/examples/v3_5_1/complex-project-schema.json +4076 -0
- package/examples/v3_5_1/frank-and-fred-schema.json +20913 -0
- package/examples/v3_5_1/massive-schema.json +7309 -0
- package/examples/v3_5_1/pet-oneof-array.json +420 -0
- package/examples/v3_5_1/post-schema.json +248 -0
- package/examples/v3_5_1/real-world-schema.json +1046 -0
- package/examples/v3_5_1/recursive-repeater-schema.json +154 -0
- package/examples/v3_5_1/recursive-schema.json +161 -0
- package/examples/v3_5_1/rick-and-morty-rest.json +101 -0
- package/examples/v3_5_1/schema-with-repeater-draftjs.json +393 -0
- package/examples/v3_5_1/shape-books.json +1121 -0
- package/examples/v3_5_1/shopify-lookbook.json +1196 -0
- package/examples/v3_5_1/shopify-store-with-widget.json +12271 -0
- package/examples/v3_5_1/stripe-starter-resolved.json +21419 -0
- package/examples/v3_5_1/user-schema-no-required.json +185 -0
- package/examples/v3_5_1/user-schema-with-defaults.json +210 -0
- package/examples/v3_6_0/blog-schema.json +405 -0
- package/examples/v3_6_0/brewery-schema.json +406 -0
- package/examples/v3_6_0/complex-project-schema.json +4076 -0
- package/examples/v3_6_0/frank-and-fred-schema.json +20913 -0
- package/examples/v3_6_0/massive-schema.json +7309 -0
- package/examples/v3_6_0/pet-oneof-array.json +420 -0
- package/examples/v3_6_0/post-schema.json +248 -0
- package/examples/v3_6_0/real-world-schema.json +1046 -0
- package/examples/v3_6_0/recursive-repeater-schema.json +154 -0
- package/examples/v3_6_0/recursive-schema.json +161 -0
- package/examples/v3_6_0/rick-and-morty-rest.json +101 -0
- package/examples/v3_6_0/schema-with-repeater-draftjs.json +393 -0
- package/examples/v3_6_0/shape-books.json +1121 -0
- package/examples/v3_6_0/shopify-lookbook.json +1196 -0
- package/examples/v3_6_0/shopify-store-with-widget.json +12271 -0
- package/examples/v3_6_0/stripe-starter-resolved.json +21419 -0
- package/examples/v3_6_0/user-schema-no-required.json +185 -0
- package/examples/v3_6_0/user-schema-with-defaults.json +210 -0
- package/lib/api-version.d.ts +6 -0
- package/lib/api-version.d.ts.map +1 -0
- package/lib/api-version.js +36 -0
- package/lib/auth-schemas.d.ts +105 -0
- package/lib/auth-schemas.d.ts.map +1 -0
- package/lib/auth-schemas.js +1 -0
- package/lib/builtin-schema.d.ts +8 -0
- package/lib/builtin-schema.d.ts.map +1 -0
- package/lib/builtin-schema.js +606 -0
- package/lib/content-schema-transform.d.ts +41 -0
- package/lib/content-schema-transform.d.ts.map +1 -0
- package/lib/content-schema-transform.js +217 -0
- package/lib/entitlements.d.ts +1 -0
- package/lib/entitlements.d.ts.map +1 -0
- package/lib/entitlements.js +1 -0
- package/lib/enum.d.ts +3 -0
- package/lib/enum.d.ts.map +1 -0
- package/lib/enum.js +18 -0
- package/lib/get-is-leaf.d.ts +4 -0
- package/lib/get-is-leaf.d.ts.map +1 -0
- package/lib/get-is-leaf.js +68 -0
- package/lib/index.d.ts +27 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +359 -0
- package/lib/migration.d.ts +55 -0
- package/lib/migration.d.ts.map +1 -0
- package/lib/migration.js +463 -0
- package/lib/mocks.d.ts +13 -0
- package/lib/mocks.d.ts.map +1 -0
- package/lib/mocks.js +61 -0
- package/lib/patterns.d.ts +13 -0
- package/lib/patterns.d.ts.map +1 -0
- package/lib/patterns.js +1 -0
- package/lib/project-schema/index.d.ts +21 -0
- package/lib/project-schema/index.d.ts.map +1 -0
- package/lib/project-schema/index.js +122 -0
- package/lib/project-schema/v1.0.0.d.ts +293 -0
- package/lib/project-schema/v1.0.0.d.ts.map +1 -0
- package/lib/project-schema/v1.0.0.js +1 -0
- package/lib/project-schema/v3.0.0.d.ts +480 -0
- package/lib/project-schema/v3.0.0.d.ts.map +1 -0
- package/lib/project-schema/v3.0.0.js +1 -0
- package/lib/project-schema/v3.1.0.d.ts +623 -0
- package/lib/project-schema/v3.1.0.d.ts.map +1 -0
- package/lib/project-schema/v3.1.0.js +1 -0
- package/lib/project-schema/v3.2.0.d.ts +634 -0
- package/lib/project-schema/v3.2.0.d.ts.map +1 -0
- package/lib/project-schema/v3.2.0.js +1 -0
- package/lib/project-schema/v3.3.0.d.ts +634 -0
- package/lib/project-schema/v3.3.0.d.ts.map +1 -0
- package/lib/project-schema/v3.3.0.js +1 -0
- package/lib/project-schema/v3.4.0.d.ts +626 -0
- package/lib/project-schema/v3.4.0.d.ts.map +1 -0
- package/lib/project-schema/v3.4.0.js +1 -0
- package/lib/project-schema/v3.5.0.d.ts +651 -0
- package/lib/project-schema/v3.5.0.d.ts.map +1 -0
- package/lib/project-schema/v3.5.0.js +1 -0
- package/lib/project-schema/v3.5.1.d.ts +651 -0
- package/lib/project-schema/v3.5.1.d.ts.map +1 -0
- package/lib/project-schema/v3.5.1.js +1 -0
- package/lib/project-schema/v3.6.0.d.ts +660 -0
- package/lib/project-schema/v3.6.0.d.ts.map +1 -0
- package/lib/project-schema/v3.6.0.js +1 -0
- package/lib/refs.d.ts +122 -0
- package/lib/refs.d.ts.map +1 -0
- package/lib/refs.js +359 -0
- package/lib/resolvers.d.ts +4 -0
- package/lib/resolvers.d.ts.map +1 -0
- package/lib/resolvers.js +10 -0
- package/lib/scalars.d.ts +3 -0
- package/lib/scalars.d.ts.map +1 -0
- package/lib/scalars.js +13 -0
- package/lib/schema-util.d.ts +201 -0
- package/lib/schema-util.d.ts.map +1 -0
- package/lib/schema-util.js +1353 -0
- package/lib/schemas/auth-schemas.json +313 -0
- package/lib/schemas/project-schema/meta-schema-v1.0.0.json +209 -0
- package/lib/schemas/project-schema/meta-schema-v3.0.0.json +609 -0
- package/lib/schemas/project-schema/meta-schema-v3.1.0.json +609 -0
- package/lib/schemas/project-schema/meta-schema-v3.2.0.json +613 -0
- package/lib/schemas/project-schema/meta-schema-v3.3.0.json +613 -0
- package/lib/schemas/project-schema/meta-schema-v3.4.0.json +613 -0
- package/lib/schemas/project-schema/meta-schema-v3.5.0.json +627 -0
- package/lib/schemas/project-schema/meta-schema-v3.5.1.json +630 -0
- package/lib/schemas/project-schema/meta-schema-v3.6.0.json +633 -0
- package/lib/schemas/project-schema/v1.0.0.json +321 -0
- package/lib/schemas/project-schema/v3.0.0.json +411 -0
- package/lib/schemas/project-schema/v3.1.0.json +569 -0
- package/lib/schemas/project-schema/v3.2.0.json +577 -0
- package/lib/schemas/project-schema/v3.3.0.json +578 -0
- package/lib/schemas/project-schema/v3.4.0.json +568 -0
- package/lib/schemas/project-schema/v3.5.0.json +568 -0
- package/lib/schemas/project-schema/v3.5.1.json +568 -0
- package/lib/schemas/project-schema/v3.6.0.json +584 -0
- package/lib/schemas/project-schema.json +16 -0
- package/lib/schemas/user-schema.json +58 -0
- package/lib/services.d.ts +71 -0
- package/lib/services.d.ts.map +1 -0
- package/lib/services.js +413 -0
- package/lib/taxonomies.d.ts +16 -0
- package/lib/taxonomies.d.ts.map +1 -0
- package/lib/taxonomies.js +69 -0
- package/lib/template-shapes.d.ts +32 -0
- package/lib/template-shapes.d.ts.map +1 -0
- package/lib/template-shapes.js +100 -0
- package/lib/types.d.ts +187 -0
- package/lib/types.d.ts.map +1 -0
- package/lib/types.js +289 -0
- package/lib/unions.d.ts +29 -0
- package/lib/unions.d.ts.map +1 -0
- package/lib/unions.js +167 -0
- package/lib/user-schema.d.ts +39 -0
- package/lib/user-schema.d.ts.map +1 -0
- package/lib/user-schema.js +1 -0
- package/lib/util/detect-cycles.d.ts +6 -0
- package/lib/util/detect-cycles.d.ts.map +1 -0
- package/lib/util/detect-cycles.js +61 -0
- package/lib/util/index.d.ts +2 -0
- package/lib/util/index.d.ts.map +1 -0
- package/lib/util/index.js +18 -0
- package/lib/validate.d.ts +49 -0
- package/lib/validate.d.ts.map +1 -0
- package/lib/validate.js +823 -0
- package/lib/versions.d.ts +5 -0
- package/lib/versions.d.ts.map +1 -0
- package/lib/versions.js +14 -0
- package/lib/workflows.d.ts +15 -0
- package/lib/workflows.d.ts.map +1 -0
- package/lib/workflows.js +92 -0
- package/package.json +65 -0
|
@@ -0,0 +1,380 @@
|
|
|
1
|
+
{
|
|
2
|
+
"apiVersion": "2",
|
|
3
|
+
"projectId": "ac06e342-afe2-40f8-864b-1345d3fed493",
|
|
4
|
+
"version": 31,
|
|
5
|
+
"created": "2021-07-01T18:24:33.290Z",
|
|
6
|
+
"updated": "2021-07-12T22:07:46.153Z",
|
|
7
|
+
"defaultLocale": "en-us",
|
|
8
|
+
"locales": ["en-us"],
|
|
9
|
+
"schemaVersion": "3.3.0",
|
|
10
|
+
"queries": {
|
|
11
|
+
"getMall": {
|
|
12
|
+
"shape": "Mall",
|
|
13
|
+
"resolver": {
|
|
14
|
+
"name": "takeshape:get",
|
|
15
|
+
"service": "takeshape:local",
|
|
16
|
+
"options": {
|
|
17
|
+
"model": "Mall"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"description": "Get a Mall by ID",
|
|
21
|
+
"args": "TSGetArgs<Mall>"
|
|
22
|
+
},
|
|
23
|
+
"getMallList": {
|
|
24
|
+
"shape": "PaginatedList<Mall>",
|
|
25
|
+
"resolver": {
|
|
26
|
+
"name": "takeshape:list",
|
|
27
|
+
"service": "takeshape:local",
|
|
28
|
+
"options": {
|
|
29
|
+
"model": "Mall"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"description": "Returns a list PetStore in natural order.",
|
|
33
|
+
"args": "TSListArgs<Mall>"
|
|
34
|
+
},
|
|
35
|
+
"getPetHouse": {
|
|
36
|
+
"shape": "PetHouse",
|
|
37
|
+
"resolver": {
|
|
38
|
+
"name": "takeshape:get",
|
|
39
|
+
"service": "takeshape:local",
|
|
40
|
+
"options": {"model": "PetHouse"}
|
|
41
|
+
},
|
|
42
|
+
"description": "Get a PetHouse by ID",
|
|
43
|
+
"args": "TSGetArgs<PetHouse>"
|
|
44
|
+
},
|
|
45
|
+
"getPetHouseList": {
|
|
46
|
+
"shape": "PaginatedList<PetHouse>",
|
|
47
|
+
"resolver": {
|
|
48
|
+
"name": "takeshape:list",
|
|
49
|
+
"service": "takeshape:local",
|
|
50
|
+
"options": {"model": "PetHouse"}
|
|
51
|
+
},
|
|
52
|
+
"description": "Returns a list PetHouse in natural order.",
|
|
53
|
+
"args": "TSListArgs<PetHouse>"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"mutations": {
|
|
57
|
+
"updateMall": {
|
|
58
|
+
"shape": "UpdateResult<Mall>",
|
|
59
|
+
"resolver": {
|
|
60
|
+
"name": "takeshape:update",
|
|
61
|
+
"service": "takeshape:local",
|
|
62
|
+
"options": {
|
|
63
|
+
"model": "Mall"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"description": "Update Mall",
|
|
67
|
+
"args": "UpdateArgs<PetStore>"
|
|
68
|
+
},
|
|
69
|
+
"createMall": {
|
|
70
|
+
"shape": "CreateResult<Mall>",
|
|
71
|
+
"resolver": {
|
|
72
|
+
"name": "takeshape:create",
|
|
73
|
+
"service": "takeshape:local",
|
|
74
|
+
"options": {
|
|
75
|
+
"model": "Mall"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"description": "Create Mall",
|
|
79
|
+
"args": "CreateArgs<Mall>"
|
|
80
|
+
},
|
|
81
|
+
"duplicateMall": {
|
|
82
|
+
"shape": "DuplicateResult<Mall>",
|
|
83
|
+
"resolver": {
|
|
84
|
+
"name": "takeshape:duplicate",
|
|
85
|
+
"service": "takeshape:local",
|
|
86
|
+
"options": {
|
|
87
|
+
"model": "Mall"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"description": "Duplicate Mall",
|
|
91
|
+
"args": "DuplicateArgs<Mall>"
|
|
92
|
+
},
|
|
93
|
+
"deleteMall": {
|
|
94
|
+
"shape": "DeleteResult<Mall>",
|
|
95
|
+
"resolver": {
|
|
96
|
+
"name": "takeshape:delete",
|
|
97
|
+
"service": "takeshape:local",
|
|
98
|
+
"options": {
|
|
99
|
+
"model": "Mall"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"description": "Delete Mall",
|
|
103
|
+
"args": "DeleteArgs<Mall>"
|
|
104
|
+
},
|
|
105
|
+
"updatePetHouse": {
|
|
106
|
+
"shape": "UpdateResult<PetHouse>",
|
|
107
|
+
"resolver": {
|
|
108
|
+
"name": "takeshape:update",
|
|
109
|
+
"service": "takeshape:local",
|
|
110
|
+
"options": {"model": "PetHouse"}
|
|
111
|
+
},
|
|
112
|
+
"description": "Update PetHouse",
|
|
113
|
+
"args": "UpdateArgs<PetHouse>"
|
|
114
|
+
},
|
|
115
|
+
"createPetHouse": {
|
|
116
|
+
"shape": "CreateResult<PetHouse>",
|
|
117
|
+
"resolver": {
|
|
118
|
+
"name": "takeshape:create",
|
|
119
|
+
"service": "takeshape:local",
|
|
120
|
+
"options": {"model": "PetHouse"}
|
|
121
|
+
},
|
|
122
|
+
"description": "Create PetHouse",
|
|
123
|
+
"args": "CreateArgs<PetHouse>"
|
|
124
|
+
},
|
|
125
|
+
"duplicatePetHouse": {
|
|
126
|
+
"shape": "DuplicateResult<PetHouse>",
|
|
127
|
+
"resolver": {
|
|
128
|
+
"name": "takeshape:duplicate",
|
|
129
|
+
"service": "takeshape:local",
|
|
130
|
+
"options": {"model": "PetHouse"}
|
|
131
|
+
},
|
|
132
|
+
"description": "Duplicate PetHouse",
|
|
133
|
+
"args": "DuplicateArgs<PetHouse>"
|
|
134
|
+
},
|
|
135
|
+
"deletePetHouse": {
|
|
136
|
+
"shape": "DeleteResult<PetHouse>",
|
|
137
|
+
"resolver": {
|
|
138
|
+
"name": "takeshape:delete",
|
|
139
|
+
"service": "takeshape:local",
|
|
140
|
+
"options": {"model": "PetHouse"}
|
|
141
|
+
},
|
|
142
|
+
"description": "Delete PetHouse",
|
|
143
|
+
"args": "DeleteArgs<PetHouse>"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"shapes": {
|
|
147
|
+
"PetStore": {
|
|
148
|
+
"id": "i8tv9QutR",
|
|
149
|
+
"name": "PetStore",
|
|
150
|
+
"title": "PetStore",
|
|
151
|
+
"workflow": "default",
|
|
152
|
+
"schema": {
|
|
153
|
+
"type": "object",
|
|
154
|
+
"properties": {
|
|
155
|
+
"animals": {
|
|
156
|
+
"items": {
|
|
157
|
+
"oneOf": [
|
|
158
|
+
{
|
|
159
|
+
"@ref": "local:Cat"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"@ref": "local:Dog"
|
|
163
|
+
}
|
|
164
|
+
]
|
|
165
|
+
},
|
|
166
|
+
"type": "array",
|
|
167
|
+
"description": "Information about animals",
|
|
168
|
+
"title": "Animal",
|
|
169
|
+
"@mapping": "takeshape:local:PetStore.aaa3LRPxC"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"DogStore": {
|
|
175
|
+
"id": "DogStore",
|
|
176
|
+
"name": "DogStore",
|
|
177
|
+
"title": "DogStore",
|
|
178
|
+
"workflow": "default",
|
|
179
|
+
"schema": {
|
|
180
|
+
"type": "object",
|
|
181
|
+
"properties": {
|
|
182
|
+
"animals": {
|
|
183
|
+
"items": {
|
|
184
|
+
"oneOf": [
|
|
185
|
+
{
|
|
186
|
+
"@ref": "local:Dog"
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
"type": "array",
|
|
191
|
+
"description": "Information about animals",
|
|
192
|
+
"title": "Animal",
|
|
193
|
+
"@mapping": "takeshape:local:DogStore.bbb3LRPxC"
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"Dog": {
|
|
199
|
+
"id": "7PSFIZU-N",
|
|
200
|
+
"name": "Dog",
|
|
201
|
+
"title": "Dog",
|
|
202
|
+
"workflow": "default",
|
|
203
|
+
"schema": {
|
|
204
|
+
"type": "object",
|
|
205
|
+
"properties": {
|
|
206
|
+
"name": {
|
|
207
|
+
"type": "string",
|
|
208
|
+
"minLength": 0,
|
|
209
|
+
"description": "",
|
|
210
|
+
"title": "Name",
|
|
211
|
+
"@mapping": "takeshape:local:Dog.i7S3LRPxC"
|
|
212
|
+
},
|
|
213
|
+
"rank": {
|
|
214
|
+
"type": "string",
|
|
215
|
+
"minLength": 0,
|
|
216
|
+
"description": "",
|
|
217
|
+
"title": "Rank",
|
|
218
|
+
"@mapping": "takeshape:local:Dog.yOvol-ZPg"
|
|
219
|
+
},
|
|
220
|
+
"isBestFriend": {
|
|
221
|
+
"title": "Is best friend?",
|
|
222
|
+
"type": "boolean",
|
|
223
|
+
"default": true,
|
|
224
|
+
"@mapping": "takeshape:local:Dog.bbbbb-ZPg"
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
"Cat": {
|
|
230
|
+
"id": "k49WhBWPs",
|
|
231
|
+
"name": "Cat",
|
|
232
|
+
"title": "Cat",
|
|
233
|
+
"workflow": "default",
|
|
234
|
+
"schema": {
|
|
235
|
+
"type": "object",
|
|
236
|
+
"properties": {
|
|
237
|
+
"name": {
|
|
238
|
+
"type": "string",
|
|
239
|
+
"minLength": 0,
|
|
240
|
+
"description": "",
|
|
241
|
+
"title": "Name",
|
|
242
|
+
"@mapping": "takeshape:local:Cat.tbWPT2kvU"
|
|
243
|
+
},
|
|
244
|
+
"breed": {
|
|
245
|
+
"type": "string",
|
|
246
|
+
"minLength": 0,
|
|
247
|
+
"description": "",
|
|
248
|
+
"title": "Breed",
|
|
249
|
+
"@mapping": "takeshape:local:Cat.XuyPh7IHw"
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
"Mall": {
|
|
255
|
+
"name": "Mall",
|
|
256
|
+
"title": "Mall",
|
|
257
|
+
"id": "Mall",
|
|
258
|
+
"model": {
|
|
259
|
+
"type": "multiple"
|
|
260
|
+
},
|
|
261
|
+
"schema": {
|
|
262
|
+
"type": "object",
|
|
263
|
+
"properties": {
|
|
264
|
+
"name": {
|
|
265
|
+
"type": "string"
|
|
266
|
+
},
|
|
267
|
+
"shops": {
|
|
268
|
+
"type": "array",
|
|
269
|
+
"items": {
|
|
270
|
+
"oneOf": [
|
|
271
|
+
{
|
|
272
|
+
"@ref": "local:PetStore"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"@ref": "local:PretzelShop"
|
|
276
|
+
}
|
|
277
|
+
]
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"PretzelShop": {
|
|
284
|
+
"name": "PretzelShop",
|
|
285
|
+
"title": "PretzelShop",
|
|
286
|
+
"id": "PretzelShop",
|
|
287
|
+
"schema": {
|
|
288
|
+
"type": "object",
|
|
289
|
+
"properties": {
|
|
290
|
+
"name": {
|
|
291
|
+
"type": "string"
|
|
292
|
+
},
|
|
293
|
+
"address": {
|
|
294
|
+
"type": "string"
|
|
295
|
+
},
|
|
296
|
+
"nachoCheese": {
|
|
297
|
+
"type": "boolean"
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
"PetHouse": {
|
|
303
|
+
"id": "q5Qeu5hYU",
|
|
304
|
+
"name": "PetHouse",
|
|
305
|
+
"title": "Pet House",
|
|
306
|
+
"workflow": "default",
|
|
307
|
+
"model": {"type": "multiple"},
|
|
308
|
+
"schema": {
|
|
309
|
+
"type": "object",
|
|
310
|
+
"properties": {
|
|
311
|
+
"occupant": {
|
|
312
|
+
"title": "Occupant",
|
|
313
|
+
"description": "",
|
|
314
|
+
"oneOf": [{"$ref": "#/shapes/Dog/schema"}, {"$ref": "#/shapes/Cat/schema"}],
|
|
315
|
+
"@mapping": "takeshape:local:PetHouse.W-j4wZssh"
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
"workflows": {},
|
|
322
|
+
"forms": {
|
|
323
|
+
"Mall": {
|
|
324
|
+
"default": {
|
|
325
|
+
"properties": {
|
|
326
|
+
"shops": {
|
|
327
|
+
"widget": "repeater"
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
"order": ["shops"]
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
"PetStore": {
|
|
334
|
+
"default": {
|
|
335
|
+
"properties": {
|
|
336
|
+
"animals": {
|
|
337
|
+
"widget": "repeater"
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
"order": ["animals"]
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"Dog": {
|
|
344
|
+
"default": {
|
|
345
|
+
"properties": {
|
|
346
|
+
"name": {
|
|
347
|
+
"widget": "singleLineText"
|
|
348
|
+
},
|
|
349
|
+
"rank": {
|
|
350
|
+
"widget": "singleLineText"
|
|
351
|
+
},
|
|
352
|
+
"isBestFriend": {
|
|
353
|
+
"widget": "checkbox"
|
|
354
|
+
}
|
|
355
|
+
},
|
|
356
|
+
"order": ["name", "rank", "isBestFriend"]
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
"Cat": {
|
|
360
|
+
"default": {
|
|
361
|
+
"properties": {
|
|
362
|
+
"name": {
|
|
363
|
+
"widget": "singleLineText"
|
|
364
|
+
},
|
|
365
|
+
"breed": {
|
|
366
|
+
"widget": "singleLineText"
|
|
367
|
+
}
|
|
368
|
+
},
|
|
369
|
+
"order": ["name", "breed"]
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"PetHouse": {
|
|
373
|
+
"default": {
|
|
374
|
+
"properties": {"occupant": {"widget": "object"}},
|
|
375
|
+
"order": ["occupant"]
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
"dataKey": "supersecret"
|
|
380
|
+
}
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://takeshape.io/schemas/project-schema#",
|
|
3
|
+
"projectId": "<projectId>",
|
|
4
|
+
"defaultLocale": "en",
|
|
5
|
+
"locales": [
|
|
6
|
+
"en",
|
|
7
|
+
"es"
|
|
8
|
+
],
|
|
9
|
+
"version": 1,
|
|
10
|
+
"apiVersion": "2",
|
|
11
|
+
"author": "<userId>",
|
|
12
|
+
"workflows": {},
|
|
13
|
+
"queries": {
|
|
14
|
+
"getPost": {
|
|
15
|
+
"shape": "Post",
|
|
16
|
+
"resolver": {
|
|
17
|
+
"name": "takeshape:get",
|
|
18
|
+
"service": "takeshape:local",
|
|
19
|
+
"options": {
|
|
20
|
+
"model": "Post"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"description": "Get a Post by ID",
|
|
24
|
+
"args": "TSGetArgs<Post>"
|
|
25
|
+
},
|
|
26
|
+
"getPostList": {
|
|
27
|
+
"shape": "PaginatedList<Post>",
|
|
28
|
+
"resolver": {
|
|
29
|
+
"name": "takeshape:list",
|
|
30
|
+
"service": "takeshape:local",
|
|
31
|
+
"options": {
|
|
32
|
+
"model": "Post"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"description": "Returns a list Post in natural order.",
|
|
36
|
+
"args": "TSListArgs<Post>"
|
|
37
|
+
},
|
|
38
|
+
"getTag": {
|
|
39
|
+
"shape": "Tag",
|
|
40
|
+
"resolver": {
|
|
41
|
+
"name": "takeshape:get",
|
|
42
|
+
"service": "takeshape:local",
|
|
43
|
+
"options": {
|
|
44
|
+
"model": "Tag"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"description": "Get a Tag by ID",
|
|
48
|
+
"args": "TSGetArgs<Tag>"
|
|
49
|
+
},
|
|
50
|
+
"getTagList": {
|
|
51
|
+
"shape": "PaginatedList<Tag>",
|
|
52
|
+
"resolver": {
|
|
53
|
+
"name": "takeshape:list",
|
|
54
|
+
"service": "takeshape:local",
|
|
55
|
+
"options": {
|
|
56
|
+
"model": "Tag"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"description": "Returns a list Tag in natural order.",
|
|
60
|
+
"args": "TSListArgs<Tag>"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"mutations": {
|
|
64
|
+
"updatePost": {
|
|
65
|
+
"shape": "UpdateResult<Post>",
|
|
66
|
+
"resolver": {
|
|
67
|
+
"name": "takeshape:update",
|
|
68
|
+
"service": "takeshape:local",
|
|
69
|
+
"options": {
|
|
70
|
+
"model": "Post"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"description": "Update Post",
|
|
74
|
+
"args": "UpdateArgs<Post>"
|
|
75
|
+
},
|
|
76
|
+
"createPost": {
|
|
77
|
+
"shape": "CreateResult<Post>",
|
|
78
|
+
"resolver": {
|
|
79
|
+
"name": "takeshape:create",
|
|
80
|
+
"service": "takeshape:local",
|
|
81
|
+
"options": {
|
|
82
|
+
"model": "Post"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"description": "Create Post",
|
|
86
|
+
"args": "CreateArgs<Post>"
|
|
87
|
+
},
|
|
88
|
+
"duplicatePost": {
|
|
89
|
+
"shape": "DuplicateResult<Post>",
|
|
90
|
+
"resolver": {
|
|
91
|
+
"name": "takeshape:duplicate",
|
|
92
|
+
"service": "takeshape:local",
|
|
93
|
+
"options": {
|
|
94
|
+
"model": "Post"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"description": "Duplicate Post",
|
|
98
|
+
"args": "DuplicateArgs<Post>"
|
|
99
|
+
},
|
|
100
|
+
"deletePost": {
|
|
101
|
+
"shape": "DeleteResult<Post>",
|
|
102
|
+
"resolver": {
|
|
103
|
+
"name": "takeshape:delete",
|
|
104
|
+
"service": "takeshape:local",
|
|
105
|
+
"options": {
|
|
106
|
+
"model": "Post"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
"description": "Delete Post",
|
|
110
|
+
"args": "DeleteArgs<Post>"
|
|
111
|
+
},
|
|
112
|
+
"updateTag": {
|
|
113
|
+
"shape": "UpdateResult<Tag>",
|
|
114
|
+
"resolver": {
|
|
115
|
+
"name": "takeshape:update",
|
|
116
|
+
"service": "takeshape:local",
|
|
117
|
+
"options": {
|
|
118
|
+
"model": "Tag"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"description": "Update Tag",
|
|
122
|
+
"args": "UpdateArgs<Tag>"
|
|
123
|
+
},
|
|
124
|
+
"createTag": {
|
|
125
|
+
"shape": "CreateResult<Tag>",
|
|
126
|
+
"resolver": {
|
|
127
|
+
"name": "takeshape:create",
|
|
128
|
+
"service": "takeshape:local",
|
|
129
|
+
"options": {
|
|
130
|
+
"model": "Tag"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"description": "Create Tag",
|
|
134
|
+
"args": "CreateArgs<Tag>"
|
|
135
|
+
},
|
|
136
|
+
"duplicateTag": {
|
|
137
|
+
"shape": "DuplicateResult<Tag>",
|
|
138
|
+
"resolver": {
|
|
139
|
+
"name": "takeshape:duplicate",
|
|
140
|
+
"service": "takeshape:local",
|
|
141
|
+
"options": {
|
|
142
|
+
"model": "Tag"
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"description": "Duplicate Tag",
|
|
146
|
+
"args": "DuplicateArgs<Tag>"
|
|
147
|
+
},
|
|
148
|
+
"deleteTag": {
|
|
149
|
+
"shape": "DeleteResult<Tag>",
|
|
150
|
+
"resolver": {
|
|
151
|
+
"name": "takeshape:delete",
|
|
152
|
+
"service": "takeshape:local",
|
|
153
|
+
"options": {
|
|
154
|
+
"model": "Tag"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"description": "Delete Tag",
|
|
158
|
+
"args": "DeleteArgs<Tag>"
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"schemaVersion": "3.3.0",
|
|
162
|
+
"created": "2016-06-21T15:16:19.051Z",
|
|
163
|
+
"updated": "2016-06-21T15:16:19.051Z",
|
|
164
|
+
"shapes": {
|
|
165
|
+
"Post": {
|
|
166
|
+
"id": "postContentTypeId",
|
|
167
|
+
"name": "Post",
|
|
168
|
+
"title": "Post",
|
|
169
|
+
"model": {
|
|
170
|
+
"type": "multiple"
|
|
171
|
+
},
|
|
172
|
+
"schema": {
|
|
173
|
+
"type": "object",
|
|
174
|
+
"properties": {
|
|
175
|
+
"title": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"@mapping": "takeshape:local:Post.titleId"
|
|
178
|
+
},
|
|
179
|
+
"body": {
|
|
180
|
+
"type": "string",
|
|
181
|
+
"@mapping": "takeshape:local:Post.bodyId"
|
|
182
|
+
},
|
|
183
|
+
"rating": {
|
|
184
|
+
"type": "integer",
|
|
185
|
+
"@mapping": "takeshape:local:Post.ratingId"
|
|
186
|
+
},
|
|
187
|
+
"tags": {
|
|
188
|
+
"@mapping": "takeshape:local:Post.tagsId",
|
|
189
|
+
"type": "array",
|
|
190
|
+
"items": {
|
|
191
|
+
"$ref": "#/shapes/TSRelationship/schema"
|
|
192
|
+
},
|
|
193
|
+
"@relationship": {
|
|
194
|
+
"shapeIds": [
|
|
195
|
+
"tagContentTypeId"
|
|
196
|
+
],
|
|
197
|
+
"type": "multiple",
|
|
198
|
+
"relatedName": "firstTags"
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
"required": [
|
|
203
|
+
"title"
|
|
204
|
+
]
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"Tag": {
|
|
208
|
+
"id": "tagContentTypeId",
|
|
209
|
+
"name": "Tag",
|
|
210
|
+
"title": "Tag",
|
|
211
|
+
"model": {
|
|
212
|
+
"type": "taxonomy"
|
|
213
|
+
},
|
|
214
|
+
"schema": {
|
|
215
|
+
"type": "object",
|
|
216
|
+
"properties": {
|
|
217
|
+
"name": {
|
|
218
|
+
"type": "string",
|
|
219
|
+
"@mapping": "takeshape:local:Tag.nameId"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"required": [
|
|
223
|
+
"name"
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
"forms": {
|
|
229
|
+
"Post": {
|
|
230
|
+
"default": {
|
|
231
|
+
"order": [
|
|
232
|
+
"title",
|
|
233
|
+
"body",
|
|
234
|
+
"rating",
|
|
235
|
+
"tags"
|
|
236
|
+
]
|
|
237
|
+
}
|
|
238
|
+
},
|
|
239
|
+
"Tag": {
|
|
240
|
+
"default": {
|
|
241
|
+
"order": [
|
|
242
|
+
"name"
|
|
243
|
+
]
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
},
|
|
247
|
+
"dataKey": "supersecret"
|
|
248
|
+
}
|