@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,84 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://schema.takeshape.io/project-schema#",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"apiVersion": "1",
|
|
5
|
+
"author": "<userId>",
|
|
6
|
+
"created": 1466522179051,
|
|
7
|
+
"updated": 1466522179051,
|
|
8
|
+
"projectId": "project-id",
|
|
9
|
+
"locales": ["en-us"],
|
|
10
|
+
"defaultLocale": "en-us",
|
|
11
|
+
"contentTypes": {
|
|
12
|
+
"<userContentTypeId>": {
|
|
13
|
+
"name": "user",
|
|
14
|
+
"title": "User",
|
|
15
|
+
"description": "A basic user model",
|
|
16
|
+
"schema": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"properties": {
|
|
19
|
+
"firstName": {
|
|
20
|
+
"key": "firstNameId",
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"lastName": {
|
|
24
|
+
"key": "lastNameId",
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"username": {
|
|
28
|
+
"key": "usernameId",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"minLength": 3,
|
|
31
|
+
"maxLength": 16,
|
|
32
|
+
"pattern": "^[a-z0-9_-]+$",
|
|
33
|
+
"default": "dude"
|
|
34
|
+
},
|
|
35
|
+
"email": {
|
|
36
|
+
"key": "emailId",
|
|
37
|
+
"type": "string",
|
|
38
|
+
"format": "email"
|
|
39
|
+
},
|
|
40
|
+
"password": {
|
|
41
|
+
"key": "passwordId",
|
|
42
|
+
"type": "string",
|
|
43
|
+
"minLength": 3,
|
|
44
|
+
"maxLength": 16,
|
|
45
|
+
"sensitive": true
|
|
46
|
+
},
|
|
47
|
+
"roles": {
|
|
48
|
+
"key": "rolesId",
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"locations": {
|
|
55
|
+
"key": "locationsId",
|
|
56
|
+
"type": "array",
|
|
57
|
+
"items": {
|
|
58
|
+
"type": "object",
|
|
59
|
+
"properties": {
|
|
60
|
+
"lat": {
|
|
61
|
+
"key": "latId",
|
|
62
|
+
"type": "number",
|
|
63
|
+
"default": 40.694598
|
|
64
|
+
},
|
|
65
|
+
"lon": {
|
|
66
|
+
"key": "lonId",
|
|
67
|
+
"type": "number",
|
|
68
|
+
"default": 73.983119
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"required": []
|
|
75
|
+
},
|
|
76
|
+
"forms": {
|
|
77
|
+
"default": {
|
|
78
|
+
"order": ["firstName", "lastName", "username", "email", "password", "roles", "locations"]
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"workflows": {}
|
|
84
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://schema.takeshape.io/project-schema#",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"apiVersion": "1",
|
|
5
|
+
"author": "<userId>",
|
|
6
|
+
"created": 1466522179051,
|
|
7
|
+
"updated": 1466522179051,
|
|
8
|
+
"projectId": "project-id",
|
|
9
|
+
"locales": ["en-us"],
|
|
10
|
+
"defaultLocale": "en-us",
|
|
11
|
+
"contentTypes": {
|
|
12
|
+
"<userContentTypeId>": {
|
|
13
|
+
"name": "user",
|
|
14
|
+
"title": "User",
|
|
15
|
+
"description": "A basic user model",
|
|
16
|
+
"schema": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"properties": {
|
|
19
|
+
"firstName": {
|
|
20
|
+
"key": "firstNameId",
|
|
21
|
+
"type": "string",
|
|
22
|
+
"l10n": true
|
|
23
|
+
},
|
|
24
|
+
"lastName": {
|
|
25
|
+
"key": "lastNameId",
|
|
26
|
+
"type": "string",
|
|
27
|
+
"l10n": true
|
|
28
|
+
},
|
|
29
|
+
"age": {
|
|
30
|
+
"key": "ageId",
|
|
31
|
+
"type": "number"
|
|
32
|
+
},
|
|
33
|
+
"username": {
|
|
34
|
+
"key": "usernameId",
|
|
35
|
+
"type": "string",
|
|
36
|
+
"minLength": 3,
|
|
37
|
+
"maxLength": 16,
|
|
38
|
+
"pattern": "^[a-z0-9_-]+$",
|
|
39
|
+
"default": "dude"
|
|
40
|
+
},
|
|
41
|
+
"email": {
|
|
42
|
+
"key": "emailId",
|
|
43
|
+
"type": "string",
|
|
44
|
+
"format": "email",
|
|
45
|
+
"l10n": false
|
|
46
|
+
},
|
|
47
|
+
"password": {
|
|
48
|
+
"key": "passwordId",
|
|
49
|
+
"type": "string",
|
|
50
|
+
"minLength": 3,
|
|
51
|
+
"maxLength": 16,
|
|
52
|
+
"sensitive": true
|
|
53
|
+
},
|
|
54
|
+
"roles": {
|
|
55
|
+
"key": "rolesId",
|
|
56
|
+
"type": "array",
|
|
57
|
+
"items": {
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
"l10n": true
|
|
61
|
+
},
|
|
62
|
+
"locations": {
|
|
63
|
+
"l10n": true,
|
|
64
|
+
"syncLocaleStructure": true,
|
|
65
|
+
"key": "locationsId",
|
|
66
|
+
"type": "array",
|
|
67
|
+
"items": {
|
|
68
|
+
"type": "object",
|
|
69
|
+
"properties": {
|
|
70
|
+
"lat": {
|
|
71
|
+
"key": "latId",
|
|
72
|
+
"type": "string",
|
|
73
|
+
"default": "40.694598",
|
|
74
|
+
"l10n": true
|
|
75
|
+
},
|
|
76
|
+
"lon": {
|
|
77
|
+
"key": "lonId",
|
|
78
|
+
"type": "string",
|
|
79
|
+
"default": "73.983119",
|
|
80
|
+
"l10n": true
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"required": ["lat", "lon"]
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"required": [
|
|
88
|
+
"firstName",
|
|
89
|
+
"lastName",
|
|
90
|
+
"username",
|
|
91
|
+
"email",
|
|
92
|
+
"password",
|
|
93
|
+
"roles",
|
|
94
|
+
"locations"
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
"forms": {
|
|
98
|
+
"default": {
|
|
99
|
+
"order": ["firstName", "lastName", "age", "username", "email", "password", "roles", "locations"]
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"workflows": {}
|
|
105
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://schema.takeshape.io/project-schema#",
|
|
3
|
+
"version": 1,
|
|
4
|
+
"apiVersion": "1",
|
|
5
|
+
"author": "<userId>",
|
|
6
|
+
"created": 1466522179051,
|
|
7
|
+
"updated": 1466522179051,
|
|
8
|
+
"projectId": "project-id",
|
|
9
|
+
"locales": ["en-us"],
|
|
10
|
+
"defaultLocale": "en-us",
|
|
11
|
+
"workflows": {},
|
|
12
|
+
"contentTypes": {
|
|
13
|
+
"<userContentTypeId>": {
|
|
14
|
+
"name": "user",
|
|
15
|
+
"title": "User",
|
|
16
|
+
"description": "A basic user model",
|
|
17
|
+
"schema": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"properties": {
|
|
20
|
+
"firstName": {
|
|
21
|
+
"key": "firstNameId",
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"lastName": {
|
|
25
|
+
"key": "lastNameId",
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
"username": {
|
|
29
|
+
"key": "usernameId",
|
|
30
|
+
"type": "string",
|
|
31
|
+
"minLength": 3,
|
|
32
|
+
"maxLength": 16,
|
|
33
|
+
"pattern": "^[a-z0-9_-]+$"
|
|
34
|
+
},
|
|
35
|
+
"email": {
|
|
36
|
+
"key": "emailId",
|
|
37
|
+
"type": "string",
|
|
38
|
+
"format": "email"
|
|
39
|
+
},
|
|
40
|
+
"password": {
|
|
41
|
+
"key": "passwordId",
|
|
42
|
+
"type": "string",
|
|
43
|
+
"minLength": 3,
|
|
44
|
+
"maxLength": 16,
|
|
45
|
+
"sensitive": true
|
|
46
|
+
},
|
|
47
|
+
"roles": {
|
|
48
|
+
"key": "rolesId",
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"location": {
|
|
55
|
+
"key": "locationId",
|
|
56
|
+
"type": "object",
|
|
57
|
+
"properties": {
|
|
58
|
+
"lat": {
|
|
59
|
+
"key": "latId",
|
|
60
|
+
"type": "integer"
|
|
61
|
+
},
|
|
62
|
+
"lon": {
|
|
63
|
+
"key": "lonId",
|
|
64
|
+
"type": "integer"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"required": [
|
|
70
|
+
"firstName",
|
|
71
|
+
"lastName",
|
|
72
|
+
"username",
|
|
73
|
+
"email",
|
|
74
|
+
"password"
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
"forms": {
|
|
78
|
+
"default": {
|
|
79
|
+
"order":[
|
|
80
|
+
"firstName",
|
|
81
|
+
"lastName",
|
|
82
|
+
"username",
|
|
83
|
+
"email",
|
|
84
|
+
"password",
|
|
85
|
+
"roles",
|
|
86
|
+
"location"
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://schema.takeshape.io/project-schema#",
|
|
3
|
+
"projectId": "project-id",
|
|
4
|
+
"defaultLocale": "en",
|
|
5
|
+
"locales": ["en", "de"],
|
|
6
|
+
"version": 1,
|
|
7
|
+
"apiVersion": "2",
|
|
8
|
+
"author": "<userId>",
|
|
9
|
+
"created": 1466522179051,
|
|
10
|
+
"updated": 1466522179051,
|
|
11
|
+
"contentTypes": {
|
|
12
|
+
"<userContentTypeId>": {
|
|
13
|
+
"name": "user",
|
|
14
|
+
"title": "User",
|
|
15
|
+
"description": "A basic user model",
|
|
16
|
+
"schema": {
|
|
17
|
+
"type": "object",
|
|
18
|
+
"properties": {
|
|
19
|
+
"firstName": {
|
|
20
|
+
"key": "firstNameId",
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"lastName": {
|
|
24
|
+
"key": "lastNameId",
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"username": {
|
|
28
|
+
"key": "usernameId",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"minLength": 3,
|
|
31
|
+
"maxLength": 16,
|
|
32
|
+
"pattern": "^[a-z0-9_-]+$"
|
|
33
|
+
},
|
|
34
|
+
"email": {
|
|
35
|
+
"key": "emailId",
|
|
36
|
+
"type": "string",
|
|
37
|
+
"format": "email"
|
|
38
|
+
},
|
|
39
|
+
"password": {
|
|
40
|
+
"key": "passwordId",
|
|
41
|
+
"type": "string",
|
|
42
|
+
"minLength": 3,
|
|
43
|
+
"maxLength": 16,
|
|
44
|
+
"sensitive": true
|
|
45
|
+
},
|
|
46
|
+
"roles": {
|
|
47
|
+
"key": "rolesId",
|
|
48
|
+
"type": "array",
|
|
49
|
+
"items": {
|
|
50
|
+
"type": "string"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"locations": {
|
|
54
|
+
"key": "locationsId",
|
|
55
|
+
"type": "array",
|
|
56
|
+
"items": {
|
|
57
|
+
"type": "object",
|
|
58
|
+
"properties": {
|
|
59
|
+
"lat": {
|
|
60
|
+
"key": "latId",
|
|
61
|
+
"type": "number"
|
|
62
|
+
},
|
|
63
|
+
"lon": {
|
|
64
|
+
"key": "lonId",
|
|
65
|
+
"type": "number"
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"required": [
|
|
72
|
+
"firstName",
|
|
73
|
+
"lastName",
|
|
74
|
+
"username",
|
|
75
|
+
"email",
|
|
76
|
+
"password"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"forms": {
|
|
80
|
+
"default": {
|
|
81
|
+
"order": ["firstName", "lastName", "username", "email", "password", "roles", "locations"]
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
"workflows": {}
|
|
87
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"apiVersion": "2",
|
|
3
|
+
"projectId": "cf32d44d-170c-461f-bbf4-855d6f5b98ad",
|
|
4
|
+
"version": 2,
|
|
5
|
+
"created": "2021-01-22T20:12:08.896Z",
|
|
6
|
+
"updated": "2021-03-03T19:12:21.663Z",
|
|
7
|
+
"defaultLocale": "en-us",
|
|
8
|
+
"locales": ["en-us"],
|
|
9
|
+
"schemaVersion": "3",
|
|
10
|
+
"queries": {
|
|
11
|
+
"getCharacter": {
|
|
12
|
+
"shape": "Rnm_Character",
|
|
13
|
+
"resolver": {
|
|
14
|
+
"name": "rest:get",
|
|
15
|
+
"service": "rick-n-morty",
|
|
16
|
+
"argsMapping": {"pathParams.id": [["get", {"path": "args.id"}]]},
|
|
17
|
+
"options": {"path": "character/{id}"}
|
|
18
|
+
},
|
|
19
|
+
"description": "Returns a list Author in natural order.",
|
|
20
|
+
"args": "Rnm_GetCharacterArgs"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"mutations": {},
|
|
24
|
+
"shapes": {
|
|
25
|
+
"Rnm_GetCharacterArgs": {
|
|
26
|
+
"id": "supaid2",
|
|
27
|
+
"name": "Rnm_GetCharacterArgs",
|
|
28
|
+
"title": "Rnm_GetCharacterArgs",
|
|
29
|
+
"schema": {
|
|
30
|
+
"type": "object",
|
|
31
|
+
"properties": {"id": {"type": "string", "title": "Id", "@mapping": "rick-n-morty:character.id"}},
|
|
32
|
+
"required": ["id"]
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"Rnm_Character": {
|
|
36
|
+
"id": "supaid",
|
|
37
|
+
"name": "Rnm_Character",
|
|
38
|
+
"title": "Rnm_Character",
|
|
39
|
+
"schema": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"properties": {
|
|
42
|
+
"id": {"type": "string", "title": "Id", "@mapping": "rick-n-morty:character.id"},
|
|
43
|
+
"name": {"type": "string", "title": "Name", "@mapping": "rick-n-morty:character.name"},
|
|
44
|
+
"status": {"type": "string", "title": "Status", "@mapping": "rick-n-morty:character.status"}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"workflows": {},
|
|
50
|
+
"forms": {},
|
|
51
|
+
"services": {
|
|
52
|
+
"rick-n-morty": {
|
|
53
|
+
"params": {
|
|
54
|
+
"authType": "none",
|
|
55
|
+
"name": "Rick N Morty",
|
|
56
|
+
"endpoint": "https://rickandmortyapi.com/api",
|
|
57
|
+
"type": "rest"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"dataKey": "AQIDAHhcZWXOdlBglkxBhI23ElO/clC/kuw5ynjXDSqJgfTz8gGs0V9U9qOKlqicZ9d2p+45AAAAfjB8BgkqhkiG9w0BBwagbzBtAgEAMGgGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQMzl46lhOMi4RGP3AkAgEQgDu0SsBk84UIM55pydDDKcz5L8EL02u/rhULFBliykTWhkSIv+EuqiaLVaqA7qVGJP84HpuPd+ZFORY/lw=="
|
|
62
|
+
}
|