@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,385 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://takeshape.io/schemas/project-schema#",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"author": "<userId>",
|
|
5
|
+
"apiVersion": "2",
|
|
6
|
+
"projectId": "project-id",
|
|
7
|
+
"defaultLocale": "en-us",
|
|
8
|
+
"locales": ["en-us"],
|
|
9
|
+
"workflows": {},
|
|
10
|
+
"queries": {
|
|
11
|
+
"getBrewery": {
|
|
12
|
+
"shape": "Brewery",
|
|
13
|
+
"resolver": {
|
|
14
|
+
"name": "takeshape:get",
|
|
15
|
+
"service": "takeshape:local",
|
|
16
|
+
"options": {
|
|
17
|
+
"model": "Brewery"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"description": "Get a Brewery by ID",
|
|
21
|
+
"args": "TSGetArgs<Brewery>"
|
|
22
|
+
},
|
|
23
|
+
"getBreweryList": {
|
|
24
|
+
"shape": "PaginatedList<Brewery>",
|
|
25
|
+
"resolver": {
|
|
26
|
+
"name": "takeshape:list",
|
|
27
|
+
"service": "takeshape:local",
|
|
28
|
+
"options": {
|
|
29
|
+
"model": "Brewery"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"description": "Returns a list Brewery in natural order.",
|
|
33
|
+
"args": "TSListArgs<Brewery>"
|
|
34
|
+
},
|
|
35
|
+
"getAsset": {
|
|
36
|
+
"shape": "Asset",
|
|
37
|
+
"resolver": {
|
|
38
|
+
"name": "takeshape:get",
|
|
39
|
+
"service": "takeshape:local",
|
|
40
|
+
"options": {
|
|
41
|
+
"model": "Asset"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"description": "Get a Asset by ID",
|
|
45
|
+
"args": "TSGetArgs<Asset>"
|
|
46
|
+
},
|
|
47
|
+
"getAssetList": {
|
|
48
|
+
"shape": "PaginatedList<Asset>",
|
|
49
|
+
"resolver": {
|
|
50
|
+
"name": "takeshape:list",
|
|
51
|
+
"service": "takeshape:local",
|
|
52
|
+
"options": {
|
|
53
|
+
"model": "Asset"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"description": "Returns a list Asset in natural order.",
|
|
57
|
+
"args": "TSListArgs<Asset>"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"mutations": {
|
|
61
|
+
"updateBrewery": {
|
|
62
|
+
"shape": "UpdateResult<Brewery>",
|
|
63
|
+
"resolver": {
|
|
64
|
+
"name": "takeshape:update",
|
|
65
|
+
"service": "takeshape:local",
|
|
66
|
+
"options": {
|
|
67
|
+
"model": "Brewery"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"description": "Update Brewery",
|
|
71
|
+
"args": "UpdateArgs<Brewery>"
|
|
72
|
+
},
|
|
73
|
+
"createBrewery": {
|
|
74
|
+
"shape": "CreateResult<Brewery>",
|
|
75
|
+
"resolver": {
|
|
76
|
+
"name": "takeshape:create",
|
|
77
|
+
"service": "takeshape:local",
|
|
78
|
+
"options": {
|
|
79
|
+
"model": "Brewery"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"description": "Create Brewery",
|
|
83
|
+
"args": "CreateArgs<Brewery>"
|
|
84
|
+
},
|
|
85
|
+
"duplicateBrewery": {
|
|
86
|
+
"shape": "DuplicateResult<Brewery>",
|
|
87
|
+
"resolver": {
|
|
88
|
+
"name": "takeshape:duplicate",
|
|
89
|
+
"service": "takeshape:local",
|
|
90
|
+
"options": {
|
|
91
|
+
"model": "Brewery"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"description": "Duplicate Brewery",
|
|
95
|
+
"args": "DuplicateArgs<Brewery>"
|
|
96
|
+
},
|
|
97
|
+
"deleteBrewery": {
|
|
98
|
+
"shape": "DeleteResult<Brewery>",
|
|
99
|
+
"resolver": {
|
|
100
|
+
"name": "takeshape:delete",
|
|
101
|
+
"service": "takeshape:local",
|
|
102
|
+
"options": {
|
|
103
|
+
"model": "Brewery"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"description": "Delete Brewery",
|
|
107
|
+
"args": "DeleteArgs<Brewery>"
|
|
108
|
+
},
|
|
109
|
+
"updateAsset": {
|
|
110
|
+
"shape": "UpdateResult<Asset>",
|
|
111
|
+
"resolver": {
|
|
112
|
+
"name": "takeshape:update",
|
|
113
|
+
"service": "takeshape:local",
|
|
114
|
+
"options": {
|
|
115
|
+
"model": "Asset"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"description": "Update Asset",
|
|
119
|
+
"args": "UpdateArgs<Asset>"
|
|
120
|
+
},
|
|
121
|
+
"createAsset": {
|
|
122
|
+
"shape": "CreateResult<Asset>",
|
|
123
|
+
"resolver": {
|
|
124
|
+
"name": "takeshape:create",
|
|
125
|
+
"service": "takeshape:local",
|
|
126
|
+
"options": {
|
|
127
|
+
"model": "Asset"
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"description": "Create Asset",
|
|
131
|
+
"args": "CreateArgs<Asset>"
|
|
132
|
+
},
|
|
133
|
+
"duplicateAsset": {
|
|
134
|
+
"shape": "DuplicateResult<Asset>",
|
|
135
|
+
"resolver": {
|
|
136
|
+
"name": "takeshape:duplicate",
|
|
137
|
+
"service": "takeshape:local",
|
|
138
|
+
"options": {
|
|
139
|
+
"model": "Asset"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"description": "Duplicate Asset",
|
|
143
|
+
"args": "DuplicateArgs<Asset>"
|
|
144
|
+
},
|
|
145
|
+
"deleteAsset": {
|
|
146
|
+
"shape": "DeleteResult<Asset>",
|
|
147
|
+
"resolver": {
|
|
148
|
+
"name": "takeshape:delete",
|
|
149
|
+
"service": "takeshape:local",
|
|
150
|
+
"options": {
|
|
151
|
+
"model": "Asset"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
"description": "Delete Asset",
|
|
155
|
+
"args": "DeleteArgs<Asset>"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
"schemaVersion": "3.2.0",
|
|
159
|
+
"created": "2016-06-21T15:16:19.051Z",
|
|
160
|
+
"updated": "2016-06-21T15:16:19.051Z",
|
|
161
|
+
"shapes": {
|
|
162
|
+
"Brewery": {
|
|
163
|
+
"id": "BREWERY",
|
|
164
|
+
"name": "Brewery",
|
|
165
|
+
"title": "Brewery",
|
|
166
|
+
"model": {
|
|
167
|
+
"type": "multiple"
|
|
168
|
+
},
|
|
169
|
+
"schema": {
|
|
170
|
+
"type": "object",
|
|
171
|
+
"properties": {
|
|
172
|
+
"name": {
|
|
173
|
+
"type": "string",
|
|
174
|
+
"title": "Name",
|
|
175
|
+
"description": "",
|
|
176
|
+
"minLength": 0,
|
|
177
|
+
"pattern": "^[\\S\\s]*?$",
|
|
178
|
+
"@mapping": "takeshape:local:Brewery.SkngG4Tkl"
|
|
179
|
+
},
|
|
180
|
+
"addresses": {
|
|
181
|
+
"type": "array",
|
|
182
|
+
"title": "Addresses",
|
|
183
|
+
"description": "",
|
|
184
|
+
"items": {
|
|
185
|
+
"$ref": "#/shapes/BreweryAddresses/schema"
|
|
186
|
+
},
|
|
187
|
+
"@mapping": "takeshape:local:Brewery.Hk56WNpke"
|
|
188
|
+
},
|
|
189
|
+
"_id": {
|
|
190
|
+
"type": "string",
|
|
191
|
+
"title": "Id"
|
|
192
|
+
},
|
|
193
|
+
"_contentTypeId": {
|
|
194
|
+
"type": "string",
|
|
195
|
+
"title": "Content Type Id"
|
|
196
|
+
},
|
|
197
|
+
"_version": {
|
|
198
|
+
"type": "integer",
|
|
199
|
+
"title": "Version"
|
|
200
|
+
},
|
|
201
|
+
"_createdAt": {
|
|
202
|
+
"type": "string",
|
|
203
|
+
"title": "Created Date",
|
|
204
|
+
"format": "date-time"
|
|
205
|
+
},
|
|
206
|
+
"_updatedAt": {
|
|
207
|
+
"type": "string",
|
|
208
|
+
"title": "Updated Date",
|
|
209
|
+
"format": "date-time"
|
|
210
|
+
},
|
|
211
|
+
"_enabled": {
|
|
212
|
+
"type": "boolean",
|
|
213
|
+
"title": "Enabled"
|
|
214
|
+
},
|
|
215
|
+
"_enabledAt": {
|
|
216
|
+
"type": "string",
|
|
217
|
+
"title": "Enabled Date",
|
|
218
|
+
"format": "date-time"
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
"required": ["name"]
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
"BreweryAddresses": {
|
|
225
|
+
"id": "Hk56WNpke",
|
|
226
|
+
"name": "BreweryAddresses",
|
|
227
|
+
"title": "Brewery Addresses",
|
|
228
|
+
"schema": {
|
|
229
|
+
"type": "object",
|
|
230
|
+
"properties": {
|
|
231
|
+
"image": {
|
|
232
|
+
"title": "Image",
|
|
233
|
+
"description": "",
|
|
234
|
+
"@mapping": "takeshape:local:BreweryAddresses.HkIsDL6ye",
|
|
235
|
+
"$ref": "#/shapes/TSRelationship/schema",
|
|
236
|
+
"@relationship": {
|
|
237
|
+
"shapeIds": ["ASSET"],
|
|
238
|
+
"type": "single"
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
"zipCode": {
|
|
242
|
+
"type": "string",
|
|
243
|
+
"title": "Zip Code",
|
|
244
|
+
"description": "",
|
|
245
|
+
"minLength": 0,
|
|
246
|
+
"pattern": "^[\\S\\s]*?$",
|
|
247
|
+
"@mapping": "takeshape:local:BreweryAddresses.ryyeGNp1g"
|
|
248
|
+
},
|
|
249
|
+
"state": {
|
|
250
|
+
"type": "string",
|
|
251
|
+
"title": "State",
|
|
252
|
+
"description": "",
|
|
253
|
+
"minLength": 0,
|
|
254
|
+
"pattern": "^[\\S\\s]*?$",
|
|
255
|
+
"@mapping": "takeshape:local:BreweryAddresses.SJuRbE6yx"
|
|
256
|
+
},
|
|
257
|
+
"city": {
|
|
258
|
+
"type": "string",
|
|
259
|
+
"title": "City",
|
|
260
|
+
"description": "",
|
|
261
|
+
"minLength": 0,
|
|
262
|
+
"pattern": "^[\\S\\s]*?$",
|
|
263
|
+
"@mapping": "takeshape:local:BreweryAddresses.S1ICWNa1e"
|
|
264
|
+
},
|
|
265
|
+
"street": {
|
|
266
|
+
"type": "string",
|
|
267
|
+
"title": "Street",
|
|
268
|
+
"description": "",
|
|
269
|
+
"minLength": 0,
|
|
270
|
+
"pattern": "^[\\S\\s]*?$",
|
|
271
|
+
"@mapping": "takeshape:local:BreweryAddresses.Hy40-N61l"
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
"Asset": {
|
|
277
|
+
"id": "ASSET",
|
|
278
|
+
"name": "Asset",
|
|
279
|
+
"title": "Asset",
|
|
280
|
+
"model": {
|
|
281
|
+
"type": "multiple"
|
|
282
|
+
},
|
|
283
|
+
"schema": {
|
|
284
|
+
"type": "object",
|
|
285
|
+
"properties": {
|
|
286
|
+
"_enabled": {
|
|
287
|
+
"type": "boolean",
|
|
288
|
+
"title": "Enabled"
|
|
289
|
+
},
|
|
290
|
+
"filename": {
|
|
291
|
+
"type": "string",
|
|
292
|
+
"title": "Filename",
|
|
293
|
+
"@mapping": "takeshape:local:Asset.H1oYQOM9"
|
|
294
|
+
},
|
|
295
|
+
"mimeType": {
|
|
296
|
+
"type": "string",
|
|
297
|
+
"title": "MIME type",
|
|
298
|
+
"@mapping": "takeshape:local:Asset.SyCYX_Gq"
|
|
299
|
+
},
|
|
300
|
+
"_updatedAt": {
|
|
301
|
+
"type": "string",
|
|
302
|
+
"title": "Updated Date",
|
|
303
|
+
"format": "date-time"
|
|
304
|
+
},
|
|
305
|
+
"uploadStatus": {
|
|
306
|
+
"type": "string",
|
|
307
|
+
"title": "Upload status",
|
|
308
|
+
"@mapping": "takeshape:local:Asset.ByeAYXdG9"
|
|
309
|
+
},
|
|
310
|
+
"_enabledAt": {
|
|
311
|
+
"type": "string",
|
|
312
|
+
"title": "Enabled Date",
|
|
313
|
+
"format": "date-time"
|
|
314
|
+
},
|
|
315
|
+
"title": {
|
|
316
|
+
"type": "string",
|
|
317
|
+
"title": "Title",
|
|
318
|
+
"@mapping": "takeshape:local:Asset.By5tQOMc"
|
|
319
|
+
},
|
|
320
|
+
"_version": {
|
|
321
|
+
"type": "integer",
|
|
322
|
+
"title": "Version"
|
|
323
|
+
},
|
|
324
|
+
"_id": {
|
|
325
|
+
"type": "string",
|
|
326
|
+
"title": "Id"
|
|
327
|
+
},
|
|
328
|
+
"_contentTypeId": {
|
|
329
|
+
"type": "string",
|
|
330
|
+
"title": "Content Type Id"
|
|
331
|
+
},
|
|
332
|
+
"_createdAt": {
|
|
333
|
+
"type": "string",
|
|
334
|
+
"title": "Created Date",
|
|
335
|
+
"format": "date-time"
|
|
336
|
+
},
|
|
337
|
+
"path": {
|
|
338
|
+
"type": "string",
|
|
339
|
+
"title": "s3 key",
|
|
340
|
+
"@mapping": "takeshape:local:Asset.Hk6FQuz5"
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"required": ["filename", "path"]
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
"forms": {
|
|
348
|
+
"Brewery": {
|
|
349
|
+
"default": {
|
|
350
|
+
"properties": {
|
|
351
|
+
"name": {
|
|
352
|
+
"widget": "singleLineText"
|
|
353
|
+
},
|
|
354
|
+
"addresses": {
|
|
355
|
+
"properties": {
|
|
356
|
+
"image": {
|
|
357
|
+
"widget": "image"
|
|
358
|
+
},
|
|
359
|
+
"zipCode": {
|
|
360
|
+
"widget": "singleLineText"
|
|
361
|
+
},
|
|
362
|
+
"state": {
|
|
363
|
+
"widget": "singleLineText"
|
|
364
|
+
},
|
|
365
|
+
"city": {
|
|
366
|
+
"widget": "singleLineText"
|
|
367
|
+
},
|
|
368
|
+
"street": {
|
|
369
|
+
"widget": "singleLineText"
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"widget": "repeater",
|
|
373
|
+
"order": ["image", "street", "city", "state", "zipCode"]
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
"order": ["name", "addresses"]
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
"Asset": {
|
|
380
|
+
"default": {
|
|
381
|
+
"order": ["title"]
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|