@takeshape/schema 8.256.0 → 8.260.1

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.
Files changed (85) hide show
  1. package/dist/flatten-templates.d.ts +1 -1
  2. package/dist/flatten-templates.d.ts.map +1 -1
  3. package/dist/migration/index.d.ts +1 -0
  4. package/dist/migration/index.d.ts.map +1 -1
  5. package/dist/migration/index.js +4 -1
  6. package/dist/migration/to/v3.24.0.d.ts +5 -0
  7. package/dist/migration/to/v3.24.0.d.ts.map +1 -0
  8. package/dist/migration/to/v3.24.0.js +24 -0
  9. package/dist/project-schema/index.d.ts +4 -1
  10. package/dist/project-schema/index.d.ts.map +1 -1
  11. package/dist/project-schema/index.js +20 -3
  12. package/dist/project-schema/latest.d.ts +1 -13
  13. package/dist/project-schema/latest.d.ts.map +1 -1
  14. package/dist/project-schema/migrate.d.ts.map +1 -1
  15. package/dist/project-schema/migrate.js +4 -0
  16. package/dist/project-schema/v3.24.0.d.ts +1365 -0
  17. package/dist/project-schema/v3.24.0.d.ts.map +1 -0
  18. package/dist/project-schema/v3.24.0.js +5 -0
  19. package/dist/schema-util.d.ts +1 -1
  20. package/dist/schema-util.d.ts.map +1 -1
  21. package/dist/schema-util.js +0 -4
  22. package/dist/schemas/index.d.ts +2 -2
  23. package/dist/schemas/index.d.ts.map +1 -1
  24. package/dist/schemas/index.js +6 -4
  25. package/dist/schemas/index.ts +4 -2
  26. package/dist/schemas/project-schema/latest.json +617 -162
  27. package/dist/schemas/project-schema/v3.24.0.json +2907 -0
  28. package/dist/schemas/project-schema.json +3 -0
  29. package/dist/types/types.d.ts +4 -3
  30. package/dist/types/types.d.ts.map +1 -1
  31. package/dist/types/types.js +1 -1
  32. package/dist/util/merge.d.ts +10 -1
  33. package/dist/util/merge.d.ts.map +1 -1
  34. package/dist/util/merge.js +257 -0
  35. package/dist/util/patch-schema.d.ts +1 -1
  36. package/dist/util/patch-schema.d.ts.map +1 -1
  37. package/dist/util/patch-schema.js +3 -5
  38. package/dist/workflows.d.ts.map +1 -1
  39. package/dist/workflows.js +6 -1
  40. package/es/migration/index.js +3 -1
  41. package/es/migration/to/v3.24.0.js +16 -0
  42. package/es/project-schema/index.js +3 -1
  43. package/es/project-schema/migrate.js +5 -1
  44. package/es/project-schema/v3.24.0.js +1 -0
  45. package/es/schema-util.js +0 -4
  46. package/es/schemas/index.js +4 -3
  47. package/es/schemas/index.ts +4 -2
  48. package/es/schemas/project-schema/latest.json +617 -162
  49. package/es/schemas/project-schema/v3.24.0.json +2907 -0
  50. package/es/schemas/project-schema.json +3 -0
  51. package/es/types/types.js +1 -1
  52. package/es/util/merge.js +244 -1
  53. package/es/util/patch-schema.js +3 -5
  54. package/es/workflows.js +6 -1
  55. package/examples/latest/betzino.json +1 -4
  56. package/examples/latest/blog-schema.json +1 -4
  57. package/examples/latest/brewery-schema.json +1 -4
  58. package/examples/latest/complex-project-schema.json +1 -4
  59. package/examples/latest/complex-schema.json +1 -4
  60. package/examples/latest/fabric-ecommerce.json +1 -4
  61. package/examples/latest/frank-and-fred-schema.json +1 -4
  62. package/examples/latest/klirr-schema.json +1 -4
  63. package/examples/latest/massive-schema.json +1 -4
  64. package/examples/latest/mill-components-schema.json +1 -4
  65. package/examples/latest/one-earth.json +1 -4
  66. package/examples/latest/pet-oneof-array.json +1 -4
  67. package/examples/latest/post-schema.json +1 -4
  68. package/examples/latest/pruned-shopify-product-schema.json +1 -4
  69. package/examples/latest/real-world-schema.json +1 -4
  70. package/examples/latest/recursive-repeater-schema.json +1 -4
  71. package/examples/latest/recursive-schema.json +1 -4
  72. package/examples/latest/rick-and-morty-ast.json +1 -4
  73. package/examples/latest/rick-and-morty-graphql.json +1 -4
  74. package/examples/latest/rick-and-morty-rest.json +1 -4
  75. package/examples/latest/schema-with-repeater-draftjs.json +1 -4
  76. package/examples/latest/shape-books-v3_2_0.json +1 -4
  77. package/examples/latest/shape-books.json +1 -4
  78. package/examples/latest/shopify-lookbook.json +1 -4
  79. package/examples/latest/shopify-product-2022-07.json +1 -4
  80. package/examples/latest/shopify-store-with-widget.json +1 -4
  81. package/examples/latest/stripe-product-runtime-schema.json +1 -4
  82. package/examples/latest/stripe-starter-resolved.json +1 -4
  83. package/examples/latest/user-schema-no-required.json +1 -4
  84. package/examples/latest/user-schema-with-defaults.json +1 -4
  85. package/package.json +5 -4
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "$schema": "http://takeshape.io/schemas/project-schema#",
3
- "version": 1,
4
3
  "author": "<userId>",
5
4
  "apiVersion": "2",
6
5
  "projectId": "project-id",
@@ -9,8 +8,6 @@
9
8
  "en-us"
10
9
  ],
11
10
  "workflows": {},
12
- "created": "2016-06-21T15:16:19.051Z",
13
- "updated": "2016-06-21T15:16:19.051Z",
14
11
  "forms": {
15
12
  "Post": {
16
13
  "default": {
@@ -153,6 +150,6 @@
153
150
  }
154
151
  }
155
152
  },
156
- "schemaVersion": "3.23.0",
153
+ "schemaVersion": "3.24.0",
157
154
  "services": {}
158
155
  }
@@ -27,9 +27,6 @@
27
27
  "en"
28
28
  ],
29
29
  "projectId": "2c8c44e7-9cbc-4a35-9dea-f0cb2ced03a4",
30
- "version": 1,
31
- "created": "2017-07-13T19:16:10.801Z",
32
- "updated": "2021-01-22T23:29:35.102Z",
33
30
  "forms": {
34
31
  "Asset": {
35
32
  "default": {
@@ -2824,5 +2821,5 @@
2824
2821
  }
2825
2822
  }
2826
2823
  },
2827
- "schemaVersion": "3.23.0"
2824
+ "schemaVersion": "3.24.0"
2828
2825
  }
@@ -27,9 +27,6 @@
27
27
  "en"
28
28
  ],
29
29
  "projectId": "a8b9ea5b-2522-442d-9b68-be0bef4a1a74",
30
- "version": 4,
31
- "created": "2017-07-13T19:16:10.801Z",
32
- "updated": "2021-04-27T19:03:03.051Z",
33
30
  "forms": {
34
31
  "Asset": {
35
32
  "default": {
@@ -2296,5 +2293,5 @@
2296
2293
  }
2297
2294
  }
2298
2295
  },
2299
- "schemaVersion": "3.23.0"
2296
+ "schemaVersion": "3.24.0"
2300
2297
  }
@@ -1,9 +1,6 @@
1
1
  {
2
2
  "apiVersion": "2",
3
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
4
  "defaultLocale": "en-us",
8
5
  "locales": [
9
6
  "en-us"
@@ -95,5 +92,5 @@
95
92
  }
96
93
  }
97
94
  },
98
- "schemaVersion": "3.23.0"
95
+ "schemaVersion": "3.24.0"
99
96
  }
@@ -6,11 +6,8 @@
6
6
  "en",
7
7
  "es"
8
8
  ],
9
- "version": 1,
10
9
  "apiVersion": "2",
11
10
  "author": "<userId>",
12
- "created": "2020-08-20T14:41:46.114Z",
13
- "updated": "2020-08-20T14:41:46.114Z",
14
11
  "forms": {
15
12
  "Post": {
16
13
  "default": {}
@@ -401,6 +398,6 @@
401
398
  }
402
399
  }
403
400
  },
404
- "schemaVersion": "3.23.0",
401
+ "schemaVersion": "3.24.0",
405
402
  "services": {}
406
403
  }
@@ -1,14 +1,11 @@
1
1
  {
2
2
  "projectId": "6f78e8ac-527a-4e09-9c5e-510876b096bf",
3
- "version": 103,
4
3
  "apiVersion": "2",
5
4
  "defaultLocale": "en-us",
6
5
  "locales": [
7
6
  "en-us"
8
7
  ],
9
8
  "workflows": {},
10
- "created": "2017-07-13T19:16:10.801Z",
11
- "updated": "2018-09-08T20:16:45.814Z",
12
9
  "forms": {
13
10
  "Genre": {
14
11
  "default": {
@@ -1128,6 +1125,6 @@
1128
1125
  }
1129
1126
  }
1130
1127
  },
1131
- "schemaVersion": "3.23.0",
1128
+ "schemaVersion": "3.24.0",
1132
1129
  "services": {}
1133
1130
  }
@@ -1,14 +1,11 @@
1
1
  {
2
2
  "projectId": "6f78e8ac-527a-4e09-9c5e-510876b096bf",
3
- "version": 103,
4
3
  "apiVersion": "2",
5
4
  "defaultLocale": "en-us",
6
5
  "locales": [
7
6
  "en-us"
8
7
  ],
9
8
  "workflows": {},
10
- "created": "2017-07-13T19:16:10.801Z",
11
- "updated": "2018-09-08T20:16:45.814Z",
12
9
  "forms": {
13
10
  "Genre": {
14
11
  "default": {
@@ -1128,6 +1125,6 @@
1128
1125
  }
1129
1126
  }
1130
1127
  },
1131
- "schemaVersion": "3.23.0",
1128
+ "schemaVersion": "3.24.0",
1132
1129
  "services": {}
1133
1130
  }
@@ -1,9 +1,6 @@
1
1
  {
2
2
  "apiVersion": "2",
3
3
  "projectId": "fc50424f-6421-4023-a52f-f95dd900a069",
4
- "version": 21,
5
- "created": "2021-02-04T15:45:32.300Z",
6
- "updated": "2021-03-05T16:11:41.972Z",
7
4
  "defaultLocale": "en-us",
8
5
  "locales": [
9
6
  "en-us"
@@ -1181,5 +1178,5 @@
1181
1178
  }
1182
1179
  }
1183
1180
  },
1184
- "schemaVersion": "3.23.0"
1181
+ "schemaVersion": "3.24.0"
1185
1182
  }
@@ -1,15 +1,12 @@
1
1
  {
2
2
  "projectId": "88af4177-f5f0-4311-8496-eb7f66ba53ac",
3
3
  "dataKey": "secret",
4
- "version": 14,
5
- "created": "2022-08-30T03:18:18.171Z",
6
- "updated": "2022-09-01T21:17:33.840Z",
7
4
  "defaultLocale": "en-us",
8
5
  "locales": [
9
6
  "en-us"
10
7
  ],
11
8
  "apiVersion": "2",
12
- "schemaVersion": "3.23.0",
9
+ "schemaVersion": "3.24.0",
13
10
  "queries": {
14
11
  "getAsset": {
15
12
  "shape": "Asset",
@@ -1,9 +1,6 @@
1
1
  {
2
2
  "apiVersion": "2",
3
3
  "projectId": "0b205d13-df7b-4d38-8a21-7d0d96b341fc",
4
- "version": 4,
5
- "created": "2021-01-21T18:01:39.961Z",
6
- "updated": "2021-01-21T18:03:13.214Z",
7
4
  "defaultLocale": "en-us",
8
5
  "locales": [
9
6
  "en-us"
@@ -12564,5 +12561,5 @@
12564
12561
  }
12565
12562
  }
12566
12563
  },
12567
- "schemaVersion": "3.23.0"
12564
+ "schemaVersion": "3.24.0"
12568
12565
  }
@@ -1,15 +1,12 @@
1
1
  {
2
2
  "projectId": "9f513e93-01d6-4fa9-b158-5af4008cb575",
3
3
  "dataKey": "secret",
4
- "version": 3,
5
- "created": "2022-08-30T16:56:17.696Z",
6
- "updated": "2022-08-30T16:57:18.934Z",
7
4
  "defaultLocale": "en-us",
8
5
  "locales": [
9
6
  "en-us"
10
7
  ],
11
8
  "apiVersion": "2",
12
- "schemaVersion": "3.23.0",
9
+ "schemaVersion": "3.24.0",
13
10
  "queries": {
14
11
  "getAsset": {
15
12
  "shape": "Asset",
@@ -2,9 +2,6 @@
2
2
  "projectId": "520be3e2-877f-465b-8698-983500713948",
3
3
  "dataKey": "data-key",
4
4
  "apiVersion": "2",
5
- "version": 14,
6
- "created": "2021-06-08T13:12:26.923Z",
7
- "updated": "2021-09-07T21:43:42.009Z",
8
5
  "defaultLocale": "en-us",
9
6
  "locales": [
10
7
  "en-us"
@@ -29320,5 +29317,5 @@
29320
29317
  }
29321
29318
  }
29322
29319
  },
29323
- "schemaVersion": "3.23.0"
29320
+ "schemaVersion": "3.24.0"
29324
29321
  }
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "$schema": "https://schema.takeshape.io/project-schema#",
3
- "version": 1,
4
3
  "apiVersion": "1",
5
4
  "author": "<userId>",
6
5
  "projectId": "project-id",
@@ -9,8 +8,6 @@
9
8
  ],
10
9
  "defaultLocale": "en-us",
11
10
  "workflows": {},
12
- "created": "2016-06-21T15:16:19.051Z",
13
- "updated": "2016-06-21T15:16:19.051Z",
14
11
  "forms": {
15
12
  "User": {
16
13
  "default": {
@@ -169,6 +166,6 @@
169
166
  }
170
167
  }
171
168
  },
172
- "schemaVersion": "3.23.0",
169
+ "schemaVersion": "3.24.0",
173
170
  "services": {}
174
171
  }
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "$schema": "https://schema.takeshape.io/project-schema#",
3
- "version": 1,
4
3
  "apiVersion": "1",
5
4
  "author": "<userId>",
6
5
  "projectId": "project-id",
@@ -9,8 +8,6 @@
9
8
  ],
10
9
  "defaultLocale": "en-us",
11
10
  "workflows": {},
12
- "created": "2016-06-21T15:16:19.051Z",
13
- "updated": "2016-06-21T15:16:19.051Z",
14
11
  "forms": {
15
12
  "User": {
16
13
  "default": {
@@ -194,6 +191,6 @@
194
191
  }
195
192
  }
196
193
  },
197
- "schemaVersion": "3.23.0",
194
+ "schemaVersion": "3.24.0",
198
195
  "services": {}
199
196
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takeshape/schema",
3
- "version": "8.256.0",
3
+ "version": "8.260.1",
4
4
  "description": "TakeShape Schema",
5
5
  "homepage": "https://www.takeshape.io",
6
6
  "repository": {
@@ -29,9 +29,10 @@
29
29
  "minimatch": "^3.0.4",
30
30
  "p-reduce": "^2.1.0",
31
31
  "semver": "^7.3.2",
32
- "@takeshape/errors": "8.256.0",
33
- "@takeshape/json-schema": "8.256.0",
34
- "@takeshape/util": "8.256.0"
32
+ "tiny-invariant": "^1.2.0",
33
+ "@takeshape/errors": "8.260.1",
34
+ "@takeshape/json-schema": "8.260.1",
35
+ "@takeshape/util": "8.260.1"
35
36
  },
36
37
  "devDependencies": {
37
38
  "@takeshape/json-schema-to-typescript": "^11.0.0",