@takeshape/schema 8.87.2 → 8.89.2
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/es/builtin-schema.js +23 -0
- package/es/migration/index.js +3 -1
- package/es/migration/to/v3.17.0.js +27 -0
- package/es/project-schema/index.js +3 -1
- package/es/project-schema/migrate.js +5 -1
- package/es/project-schema/v3.17.0.js +1 -0
- package/es/schema-util.js +29 -17
- package/es/schemas/index.js +4 -3
- package/es/schemas/index.ts +4 -2
- package/es/schemas/project-schema/latest.json +7 -8
- package/es/schemas/project-schema/v3.17.0.json +2358 -0
- package/es/schemas/project-schema.json +3 -0
- package/es/template-shapes/where.js +1 -1
- package/es/validate.js +12 -8
- package/examples/latest/betzino.json +1393 -349
- package/examples/latest/blog-schema.json +1 -1
- package/examples/latest/brewery-schema.json +1 -1
- package/examples/latest/complex-project-schema.json +1 -1
- package/examples/latest/fabric-ecommerce.json +1 -1
- package/examples/latest/frank-and-fred-schema.json +1 -1
- package/examples/latest/massive-schema.json +1 -1
- package/examples/latest/mill-components-schema.json +1 -1
- package/examples/latest/pet-oneof-array.json +1 -1
- package/examples/latest/post-schema.json +1 -1
- package/examples/latest/pruned-shopify-product-schema.json +1 -1
- package/examples/latest/real-world-schema.json +1 -1
- package/examples/latest/recursive-repeater-schema.json +1 -1
- package/examples/latest/recursive-schema.json +1 -1
- package/examples/latest/rick-and-morty-ast.json +145 -37
- package/examples/latest/rick-and-morty-graphql.json +113 -29
- package/examples/latest/rick-and-morty-rest.json +1 -1
- package/examples/latest/schema-with-repeater-draftjs.json +1 -1
- package/examples/latest/shape-books-v3_2_0.json +1 -1
- package/examples/latest/shape-books.json +1 -1
- package/examples/latest/shopify-lookbook.json +1 -1
- package/examples/latest/shopify-store-with-widget.json +81 -21
- package/examples/latest/stripe-starter-resolved.json +49 -13
- package/examples/latest/user-schema-no-required.json +1 -1
- package/examples/latest/user-schema-with-defaults.json +1 -1
- package/lib/builtin-schema.d.ts.map +1 -1
- package/lib/builtin-schema.js +23 -0
- package/lib/migration/index.d.ts +1 -0
- package/lib/migration/index.d.ts.map +1 -1
- package/lib/migration/index.js +4 -1
- package/lib/migration/to/v3.17.0.d.ts +5 -0
- package/lib/migration/to/v3.17.0.d.ts.map +1 -0
- package/lib/migration/to/v3.17.0.js +40 -0
- package/lib/project-schema/index.d.ts +4 -1
- package/lib/project-schema/index.d.ts.map +1 -1
- package/lib/project-schema/index.js +20 -3
- package/lib/project-schema/latest.d.ts +2 -5
- package/lib/project-schema/latest.d.ts.map +1 -1
- package/lib/project-schema/migrate.d.ts.map +1 -1
- package/lib/project-schema/migrate.js +4 -0
- package/lib/project-schema/v3.17.0.d.ts +1456 -0
- package/lib/project-schema/v3.17.0.d.ts.map +1 -0
- package/lib/project-schema/v3.17.0.js +5 -0
- package/lib/schema-util.d.ts.map +1 -1
- package/lib/schema-util.js +29 -17
- package/lib/schemas/index.d.ts +2301 -2
- package/lib/schemas/index.d.ts.map +1 -1
- package/lib/schemas/index.js +6 -4
- package/lib/schemas/index.ts +4 -2
- package/lib/schemas/project-schema/latest.json +7 -8
- package/lib/schemas/project-schema/v3.17.0.json +2358 -0
- package/lib/schemas/project-schema.json +3 -0
- package/lib/template-shapes/where.d.ts.map +1 -1
- package/lib/template-shapes/where.js +1 -1
- package/lib/types/types.d.ts +2 -2
- package/lib/types/types.d.ts.map +1 -1
- package/lib/validate.d.ts.map +1 -1
- package/lib/validate.js +12 -8
- package/package.json +4 -4
|
@@ -1803,8 +1803,14 @@
|
|
|
1803
1803
|
},
|
|
1804
1804
|
"_createdBy": {
|
|
1805
1805
|
"title": "Created By",
|
|
1806
|
-
"
|
|
1807
|
-
"@
|
|
1806
|
+
"@ref": "local:TSUser",
|
|
1807
|
+
"@input": {
|
|
1808
|
+
"type": "string"
|
|
1809
|
+
},
|
|
1810
|
+
"@resolver": {
|
|
1811
|
+
"name": "takeshape:getUser",
|
|
1812
|
+
"service": "takeshape:local"
|
|
1813
|
+
}
|
|
1808
1814
|
},
|
|
1809
1815
|
"_updatedAt": {
|
|
1810
1816
|
"title": "Updated",
|
|
@@ -1813,8 +1819,14 @@
|
|
|
1813
1819
|
},
|
|
1814
1820
|
"_updatedBy": {
|
|
1815
1821
|
"title": "Updated By",
|
|
1816
|
-
"
|
|
1817
|
-
"@
|
|
1822
|
+
"@ref": "local:TSUser",
|
|
1823
|
+
"@input": {
|
|
1824
|
+
"type": "string"
|
|
1825
|
+
},
|
|
1826
|
+
"@resolver": {
|
|
1827
|
+
"name": "takeshape:getUser",
|
|
1828
|
+
"service": "takeshape:local"
|
|
1829
|
+
}
|
|
1818
1830
|
},
|
|
1819
1831
|
"_schemaVersion": {
|
|
1820
1832
|
"title": "Schema Version",
|
|
@@ -2002,8 +2014,14 @@
|
|
|
2002
2014
|
},
|
|
2003
2015
|
"_createdBy": {
|
|
2004
2016
|
"title": "Created By",
|
|
2005
|
-
"
|
|
2006
|
-
"@
|
|
2017
|
+
"@ref": "local:TSUser",
|
|
2018
|
+
"@input": {
|
|
2019
|
+
"type": "string"
|
|
2020
|
+
},
|
|
2021
|
+
"@resolver": {
|
|
2022
|
+
"name": "takeshape:getUser",
|
|
2023
|
+
"service": "takeshape:local"
|
|
2024
|
+
}
|
|
2007
2025
|
},
|
|
2008
2026
|
"_updatedAt": {
|
|
2009
2027
|
"title": "Updated",
|
|
@@ -2012,8 +2030,14 @@
|
|
|
2012
2030
|
},
|
|
2013
2031
|
"_updatedBy": {
|
|
2014
2032
|
"title": "Updated By",
|
|
2015
|
-
"
|
|
2016
|
-
"@
|
|
2033
|
+
"@ref": "local:TSUser",
|
|
2034
|
+
"@input": {
|
|
2035
|
+
"type": "string"
|
|
2036
|
+
},
|
|
2037
|
+
"@resolver": {
|
|
2038
|
+
"name": "takeshape:getUser",
|
|
2039
|
+
"service": "takeshape:local"
|
|
2040
|
+
}
|
|
2017
2041
|
},
|
|
2018
2042
|
"_schemaVersion": {
|
|
2019
2043
|
"title": "Schema Version",
|
|
@@ -2213,8 +2237,14 @@
|
|
|
2213
2237
|
},
|
|
2214
2238
|
"_createdBy": {
|
|
2215
2239
|
"title": "Created By",
|
|
2216
|
-
"
|
|
2217
|
-
"@
|
|
2240
|
+
"@ref": "local:TSUser",
|
|
2241
|
+
"@input": {
|
|
2242
|
+
"type": "string"
|
|
2243
|
+
},
|
|
2244
|
+
"@resolver": {
|
|
2245
|
+
"name": "takeshape:getUser",
|
|
2246
|
+
"service": "takeshape:local"
|
|
2247
|
+
}
|
|
2218
2248
|
},
|
|
2219
2249
|
"_updatedAt": {
|
|
2220
2250
|
"title": "Updated",
|
|
@@ -2223,8 +2253,14 @@
|
|
|
2223
2253
|
},
|
|
2224
2254
|
"_updatedBy": {
|
|
2225
2255
|
"title": "Updated By",
|
|
2226
|
-
"
|
|
2227
|
-
"@
|
|
2256
|
+
"@ref": "local:TSUser",
|
|
2257
|
+
"@input": {
|
|
2258
|
+
"type": "string"
|
|
2259
|
+
},
|
|
2260
|
+
"@resolver": {
|
|
2261
|
+
"name": "takeshape:getUser",
|
|
2262
|
+
"service": "takeshape:local"
|
|
2263
|
+
}
|
|
2228
2264
|
},
|
|
2229
2265
|
"_schemaVersion": {
|
|
2230
2266
|
"title": "Schema Version",
|
|
@@ -2365,8 +2401,14 @@
|
|
|
2365
2401
|
},
|
|
2366
2402
|
"_createdBy": {
|
|
2367
2403
|
"title": "Created By",
|
|
2368
|
-
"
|
|
2369
|
-
"@
|
|
2404
|
+
"@ref": "local:TSUser",
|
|
2405
|
+
"@input": {
|
|
2406
|
+
"type": "string"
|
|
2407
|
+
},
|
|
2408
|
+
"@resolver": {
|
|
2409
|
+
"name": "takeshape:getUser",
|
|
2410
|
+
"service": "takeshape:local"
|
|
2411
|
+
}
|
|
2370
2412
|
},
|
|
2371
2413
|
"_updatedAt": {
|
|
2372
2414
|
"title": "Updated",
|
|
@@ -2375,8 +2417,14 @@
|
|
|
2375
2417
|
},
|
|
2376
2418
|
"_updatedBy": {
|
|
2377
2419
|
"title": "Updated By",
|
|
2378
|
-
"
|
|
2379
|
-
"@
|
|
2420
|
+
"@ref": "local:TSUser",
|
|
2421
|
+
"@input": {
|
|
2422
|
+
"type": "string"
|
|
2423
|
+
},
|
|
2424
|
+
"@resolver": {
|
|
2425
|
+
"name": "takeshape:getUser",
|
|
2426
|
+
"service": "takeshape:local"
|
|
2427
|
+
}
|
|
2380
2428
|
},
|
|
2381
2429
|
"_schemaVersion": {
|
|
2382
2430
|
"title": "Schema Version",
|
|
@@ -2517,8 +2565,14 @@
|
|
|
2517
2565
|
},
|
|
2518
2566
|
"_createdBy": {
|
|
2519
2567
|
"title": "Created By",
|
|
2520
|
-
"
|
|
2521
|
-
"@
|
|
2568
|
+
"@ref": "local:TSUser",
|
|
2569
|
+
"@input": {
|
|
2570
|
+
"type": "string"
|
|
2571
|
+
},
|
|
2572
|
+
"@resolver": {
|
|
2573
|
+
"name": "takeshape:getUser",
|
|
2574
|
+
"service": "takeshape:local"
|
|
2575
|
+
}
|
|
2522
2576
|
},
|
|
2523
2577
|
"_updatedAt": {
|
|
2524
2578
|
"title": "Updated",
|
|
@@ -2527,8 +2581,14 @@
|
|
|
2527
2581
|
},
|
|
2528
2582
|
"_updatedBy": {
|
|
2529
2583
|
"title": "Updated By",
|
|
2530
|
-
"
|
|
2531
|
-
"@
|
|
2584
|
+
"@ref": "local:TSUser",
|
|
2585
|
+
"@input": {
|
|
2586
|
+
"type": "string"
|
|
2587
|
+
},
|
|
2588
|
+
"@resolver": {
|
|
2589
|
+
"name": "takeshape:getUser",
|
|
2590
|
+
"service": "takeshape:local"
|
|
2591
|
+
}
|
|
2532
2592
|
},
|
|
2533
2593
|
"_schemaVersion": {
|
|
2534
2594
|
"title": "Schema Version",
|
|
@@ -12534,5 +12594,5 @@
|
|
|
12534
12594
|
}
|
|
12535
12595
|
}
|
|
12536
12596
|
},
|
|
12537
|
-
"schemaVersion": "3.
|
|
12597
|
+
"schemaVersion": "3.17.0"
|
|
12538
12598
|
}
|
|
@@ -1441,8 +1441,14 @@
|
|
|
1441
1441
|
},
|
|
1442
1442
|
"_createdBy": {
|
|
1443
1443
|
"title": "Created By",
|
|
1444
|
-
"
|
|
1445
|
-
"@
|
|
1444
|
+
"@ref": "local:TSUser",
|
|
1445
|
+
"@input": {
|
|
1446
|
+
"type": "string"
|
|
1447
|
+
},
|
|
1448
|
+
"@resolver": {
|
|
1449
|
+
"name": "takeshape:getUser",
|
|
1450
|
+
"service": "takeshape:local"
|
|
1451
|
+
}
|
|
1446
1452
|
},
|
|
1447
1453
|
"_updatedAt": {
|
|
1448
1454
|
"title": "Updated",
|
|
@@ -1451,8 +1457,14 @@
|
|
|
1451
1457
|
},
|
|
1452
1458
|
"_updatedBy": {
|
|
1453
1459
|
"title": "Updated By",
|
|
1454
|
-
"
|
|
1455
|
-
"@
|
|
1460
|
+
"@ref": "local:TSUser",
|
|
1461
|
+
"@input": {
|
|
1462
|
+
"type": "string"
|
|
1463
|
+
},
|
|
1464
|
+
"@resolver": {
|
|
1465
|
+
"name": "takeshape:getUser",
|
|
1466
|
+
"service": "takeshape:local"
|
|
1467
|
+
}
|
|
1456
1468
|
},
|
|
1457
1469
|
"_schemaVersion": {
|
|
1458
1470
|
"title": "Schema Version",
|
|
@@ -1624,8 +1636,14 @@
|
|
|
1624
1636
|
},
|
|
1625
1637
|
"_createdBy": {
|
|
1626
1638
|
"title": "Created By",
|
|
1627
|
-
"
|
|
1628
|
-
"@
|
|
1639
|
+
"@ref": "local:TSUser",
|
|
1640
|
+
"@input": {
|
|
1641
|
+
"type": "string"
|
|
1642
|
+
},
|
|
1643
|
+
"@resolver": {
|
|
1644
|
+
"name": "takeshape:getUser",
|
|
1645
|
+
"service": "takeshape:local"
|
|
1646
|
+
}
|
|
1629
1647
|
},
|
|
1630
1648
|
"_updatedAt": {
|
|
1631
1649
|
"title": "Updated",
|
|
@@ -1634,8 +1652,14 @@
|
|
|
1634
1652
|
},
|
|
1635
1653
|
"_updatedBy": {
|
|
1636
1654
|
"title": "Updated By",
|
|
1637
|
-
"
|
|
1638
|
-
"@
|
|
1655
|
+
"@ref": "local:TSUser",
|
|
1656
|
+
"@input": {
|
|
1657
|
+
"type": "string"
|
|
1658
|
+
},
|
|
1659
|
+
"@resolver": {
|
|
1660
|
+
"name": "takeshape:getUser",
|
|
1661
|
+
"service": "takeshape:local"
|
|
1662
|
+
}
|
|
1639
1663
|
},
|
|
1640
1664
|
"_schemaVersion": {
|
|
1641
1665
|
"title": "Schema Version",
|
|
@@ -1935,8 +1959,14 @@
|
|
|
1935
1959
|
},
|
|
1936
1960
|
"_createdBy": {
|
|
1937
1961
|
"title": "Created By",
|
|
1938
|
-
"
|
|
1939
|
-
"@
|
|
1962
|
+
"@ref": "local:TSUser",
|
|
1963
|
+
"@input": {
|
|
1964
|
+
"type": "string"
|
|
1965
|
+
},
|
|
1966
|
+
"@resolver": {
|
|
1967
|
+
"name": "takeshape:getUser",
|
|
1968
|
+
"service": "takeshape:local"
|
|
1969
|
+
}
|
|
1940
1970
|
},
|
|
1941
1971
|
"_updatedAt": {
|
|
1942
1972
|
"title": "Updated",
|
|
@@ -1945,8 +1975,14 @@
|
|
|
1945
1975
|
},
|
|
1946
1976
|
"_updatedBy": {
|
|
1947
1977
|
"title": "Updated By",
|
|
1948
|
-
"
|
|
1949
|
-
"@
|
|
1978
|
+
"@ref": "local:TSUser",
|
|
1979
|
+
"@input": {
|
|
1980
|
+
"type": "string"
|
|
1981
|
+
},
|
|
1982
|
+
"@resolver": {
|
|
1983
|
+
"name": "takeshape:getUser",
|
|
1984
|
+
"service": "takeshape:local"
|
|
1985
|
+
}
|
|
1950
1986
|
},
|
|
1951
1987
|
"_schemaVersion": {
|
|
1952
1988
|
"title": "Schema Version",
|
|
@@ -29315,5 +29351,5 @@
|
|
|
29315
29351
|
}
|
|
29316
29352
|
}
|
|
29317
29353
|
},
|
|
29318
|
-
"schemaVersion": "3.
|
|
29354
|
+
"schemaVersion": "3.17.0"
|
|
29319
29355
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builtin-schema.d.ts","sourceRoot":"","sources":["../../src/builtin-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAC;AAEtC,wBAAgB,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEjD;AAID,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAEnE;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAEnE;AAED,eAAO,MAAM,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"builtin-schema.d.ts","sourceRoot":"","sources":["../../src/builtin-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAC,OAAO,EAAC,MAAM,eAAe,CAAC;AAEtC,wBAAgB,OAAO,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAEjD;AAID,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAEnE;AAED,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAEnE;AAED,eAAO,MAAM,aAAa,EAAE,QA4T3B,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,OA+P1B,CAAC"}
|
package/lib/builtin-schema.js
CHANGED
|
@@ -135,6 +135,29 @@ const builtInShapes = {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
},
|
|
138
|
+
TSUser: {
|
|
139
|
+
id: 'TSUser',
|
|
140
|
+
name: 'TSUser',
|
|
141
|
+
title: 'TSUser',
|
|
142
|
+
schema: {
|
|
143
|
+
type: 'object',
|
|
144
|
+
properties: {
|
|
145
|
+
id: {
|
|
146
|
+
type: 'string'
|
|
147
|
+
},
|
|
148
|
+
email: {
|
|
149
|
+
type: 'string'
|
|
150
|
+
},
|
|
151
|
+
fullName: {
|
|
152
|
+
type: 'string'
|
|
153
|
+
},
|
|
154
|
+
avatarPath: {
|
|
155
|
+
type: 'string'
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
required: ['id', 'email', 'fullName']
|
|
159
|
+
}
|
|
160
|
+
},
|
|
138
161
|
Asset: {
|
|
139
162
|
id: 'ASSET',
|
|
140
163
|
name: 'Asset',
|
package/lib/migration/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export declare const migrateTo: {
|
|
|
20
20
|
'v3.14.0': import("./types").MigrateFunction<import("..").ProjectSchemaV3_13_0, import("..").ProjectSchemaV3_14_0>;
|
|
21
21
|
'v3.15.0': import("./types").MigrateFunction<import("..").ProjectSchemaV3_14_0, import("..").ProjectSchemaV3_15_0>;
|
|
22
22
|
'v3.16.0': import("./types").MigrateFunction<import("..").ProjectSchemaV3_15_0, import("..").ProjectSchemaV3_16_0>;
|
|
23
|
+
'v3.17.0': import("./types").MigrateFunction<import("..").ProjectSchemaV3_16_0, import("..").ProjectSchemaV3_17_0>;
|
|
23
24
|
};
|
|
24
25
|
export * from './utils';
|
|
25
26
|
export declare const listTypePrefix = "PaginatedList";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/migration/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/migration/index.ts"],"names":[],"mappings":"AAuBA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;CAuBrB,CAAC;AAEF,cAAc,SAAS,CAAC;AACxB,eAAO,MAAM,cAAc,kBAAkB,CAAC;AAC9C,YAAY,EAAC,6BAA6B,EAAC,MAAM,SAAS,CAAC"}
|
package/lib/migration/index.js
CHANGED
|
@@ -51,6 +51,8 @@ var _v20 = _interopRequireDefault(require("./to/v3.15.0"));
|
|
|
51
51
|
|
|
52
52
|
var _v21 = _interopRequireDefault(require("./to/v3.16.0"));
|
|
53
53
|
|
|
54
|
+
var _v22 = _interopRequireDefault(require("./to/v3.17.0"));
|
|
55
|
+
|
|
54
56
|
var _utils = require("./utils");
|
|
55
57
|
|
|
56
58
|
Object.keys(_utils).forEach(function (key) {
|
|
@@ -88,7 +90,8 @@ const migrateTo = {
|
|
|
88
90
|
'v3.13.0': _v18.default,
|
|
89
91
|
'v3.14.0': _v19.default,
|
|
90
92
|
'v3.15.0': _v20.default,
|
|
91
|
-
'v3.16.0': _v21.default
|
|
93
|
+
'v3.16.0': _v21.default,
|
|
94
|
+
'v3.17.0': _v22.default
|
|
92
95
|
};
|
|
93
96
|
exports.migrateTo = migrateTo;
|
|
94
97
|
const listTypePrefix = 'PaginatedList';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ProjectSchemaV3_16_0, ProjectSchemaV3_17_0 } from '../../project-schema';
|
|
2
|
+
import type { MigrateFunction } from '../types';
|
|
3
|
+
declare const migrate: MigrateFunction<ProjectSchemaV3_16_0, ProjectSchemaV3_17_0>;
|
|
4
|
+
export default migrate;
|
|
5
|
+
//# sourceMappingURL=v3.17.0.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v3.17.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.17.0.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,oBAAoB,EAGrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAM9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,oBAAoB,EAAE,oBAAoB,CAmBxE,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _util = require("@takeshape/util");
|
|
9
|
+
|
|
10
|
+
var _get = _interopRequireDefault(require("lodash/get"));
|
|
11
|
+
|
|
12
|
+
var _set = _interopRequireDefault(require("lodash/set"));
|
|
13
|
+
|
|
14
|
+
var _omit = _interopRequireDefault(require("lodash/omit"));
|
|
15
|
+
|
|
16
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
+
|
|
18
|
+
const migrate = async (_, projectSchema) => {
|
|
19
|
+
(0, _util.visit)(projectSchema, ['@user'], (_, path) => {
|
|
20
|
+
const parentPath = path.slice(0, -1);
|
|
21
|
+
const oldSchema = (0, _get.default)(projectSchema, parentPath);
|
|
22
|
+
const newSchema = { ...(0, _omit.default)(oldSchema, ['@user', 'type']),
|
|
23
|
+
'@ref': 'local:TSUser',
|
|
24
|
+
'@input': {
|
|
25
|
+
type: 'string'
|
|
26
|
+
},
|
|
27
|
+
'@resolver': {
|
|
28
|
+
name: 'takeshape:getUser',
|
|
29
|
+
service: 'takeshape:local'
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
(0, _set.default)(projectSchema, parentPath, newSchema);
|
|
33
|
+
});
|
|
34
|
+
return { ...projectSchema,
|
|
35
|
+
schemaVersion: '3.17.0'
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
var _default = migrate;
|
|
40
|
+
exports.default = _default;
|
|
@@ -21,6 +21,7 @@ export * from './v3.13.0';
|
|
|
21
21
|
export * from './v3.14.0';
|
|
22
22
|
export * from './v3.15.0';
|
|
23
23
|
export * from './v3.16.0';
|
|
24
|
+
export * from './v3.17.0';
|
|
24
25
|
export * from './v4.0.0';
|
|
25
26
|
import { ProjectSchemaV1_0_0 } from './v1.0.0';
|
|
26
27
|
import { ProjectSchemaV3_0_0 } from './v3.0.0';
|
|
@@ -44,9 +45,10 @@ import { ProjectSchemaV3_13_0 } from './v3.13.0';
|
|
|
44
45
|
import { ProjectSchemaV3_14_0 } from './v3.14.0';
|
|
45
46
|
import { ProjectSchemaV3_15_0 } from './v3.15.0';
|
|
46
47
|
import { ProjectSchemaV3_16_0 } from './v3.16.0';
|
|
48
|
+
import { ProjectSchemaV3_17_0 } from './v3.17.0';
|
|
47
49
|
import { ProjectSchemaV4_0_0 } from './v4.0.0';
|
|
48
50
|
import { ProjectSchema } from './latest';
|
|
49
|
-
export declare type AnyProjectSchema = ProjectSchemaV1_0_0 | ProjectSchemaV3_0_0 | ProjectSchemaV3_1_0 | ProjectSchemaV3_2_0 | ProjectSchemaV3_3_0 | ProjectSchemaV3_4_0 | ProjectSchemaV3_5_0 | ProjectSchemaV3_5_1 | ProjectSchemaV3_6_0 | ProjectSchemaV3_7_0 | ProjectSchemaV3_8_0 | ProjectSchemaV3_9_0 | ProjectSchemaV3_10_0 | ProjectSchemaV3_11_0 | ProjectSchemaV3_12_0 | ProjectSchemaV3_12_1 | ProjectSchemaV3_12_2 | ProjectSchemaV3_12_3 | ProjectSchemaV3_13_0 | ProjectSchemaV3_14_0 | ProjectSchemaV3_15_0 | ProjectSchemaV3_16_0 | ProjectSchemaV4_0_0 | ProjectSchema;
|
|
51
|
+
export declare type AnyProjectSchema = ProjectSchemaV1_0_0 | ProjectSchemaV3_0_0 | ProjectSchemaV3_1_0 | ProjectSchemaV3_2_0 | ProjectSchemaV3_3_0 | ProjectSchemaV3_4_0 | ProjectSchemaV3_5_0 | ProjectSchemaV3_5_1 | ProjectSchemaV3_6_0 | ProjectSchemaV3_7_0 | ProjectSchemaV3_8_0 | ProjectSchemaV3_9_0 | ProjectSchemaV3_10_0 | ProjectSchemaV3_11_0 | ProjectSchemaV3_12_0 | ProjectSchemaV3_12_1 | ProjectSchemaV3_12_2 | ProjectSchemaV3_12_3 | ProjectSchemaV3_13_0 | ProjectSchemaV3_14_0 | ProjectSchemaV3_15_0 | ProjectSchemaV3_16_0 | ProjectSchemaV3_17_0 | ProjectSchemaV4_0_0 | ProjectSchema;
|
|
50
52
|
export declare const isProjectSchemaV1_0_0: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchemaV1_0_0;
|
|
51
53
|
export declare const isProjectSchemaV3_0_0: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchemaV3_0_0;
|
|
52
54
|
export declare const isProjectSchemaV3_1_0: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchemaV3_1_0;
|
|
@@ -69,6 +71,7 @@ export declare const isProjectSchemaV3_13_0: (projectSchema: AnyProjectSchema) =
|
|
|
69
71
|
export declare const isProjectSchemaV3_14_0: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchemaV3_14_0;
|
|
70
72
|
export declare const isProjectSchemaV3_15_0: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchemaV3_15_0;
|
|
71
73
|
export declare const isProjectSchemaV3_16_0: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchemaV3_16_0;
|
|
74
|
+
export declare const isProjectSchemaV3_17_0: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchemaV3_17_0;
|
|
72
75
|
export declare const isLatestProjectSchema: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchema;
|
|
73
76
|
export declare const isProjectSchemaV4_0_0: (projectSchema: AnyProjectSchema) => projectSchema is ProjectSchemaV4_0_0;
|
|
74
77
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/project-schema/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UA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LatestProjectSchema: true,
|
|
30
31
|
isProjectSchemaV4_0_0: true
|
|
31
32
|
};
|
|
32
|
-
exports.isProjectSchemaV4_0_0 = exports.isProjectSchemaV3_9_0 = exports.isProjectSchemaV3_8_0 = exports.isProjectSchemaV3_7_0 = exports.isProjectSchemaV3_6_0 = exports.isProjectSchemaV3_5_1 = exports.isProjectSchemaV3_5_0 = exports.isProjectSchemaV3_4_0 = exports.isProjectSchemaV3_3_0 = exports.isProjectSchemaV3_2_0 = exports.isProjectSchemaV3_1_0 = exports.isProjectSchemaV3_16_0 = exports.isProjectSchemaV3_15_0 = exports.isProjectSchemaV3_14_0 = exports.isProjectSchemaV3_13_0 = exports.isProjectSchemaV3_12_3 = exports.isProjectSchemaV3_12_2 = exports.isProjectSchemaV3_12_1 = exports.isProjectSchemaV3_12_0 = exports.isProjectSchemaV3_11_0 = exports.isProjectSchemaV3_10_0 = exports.isProjectSchemaV3_0_0 = exports.isProjectSchemaV1_0_0 = exports.isLatestProjectSchema = void 0;
|
|
33
|
+
exports.isProjectSchemaV4_0_0 = exports.isProjectSchemaV3_9_0 = exports.isProjectSchemaV3_8_0 = exports.isProjectSchemaV3_7_0 = exports.isProjectSchemaV3_6_0 = exports.isProjectSchemaV3_5_1 = exports.isProjectSchemaV3_5_0 = exports.isProjectSchemaV3_4_0 = exports.isProjectSchemaV3_3_0 = exports.isProjectSchemaV3_2_0 = exports.isProjectSchemaV3_1_0 = exports.isProjectSchemaV3_17_0 = exports.isProjectSchemaV3_16_0 = exports.isProjectSchemaV3_15_0 = exports.isProjectSchemaV3_14_0 = exports.isProjectSchemaV3_13_0 = exports.isProjectSchemaV3_12_3 = exports.isProjectSchemaV3_12_2 = exports.isProjectSchemaV3_12_1 = exports.isProjectSchemaV3_12_0 = exports.isProjectSchemaV3_11_0 = exports.isProjectSchemaV3_10_0 = exports.isProjectSchemaV3_0_0 = exports.isProjectSchemaV1_0_0 = exports.isLatestProjectSchema = void 0;
|
|
33
34
|
|
|
34
35
|
var _latest = require("./latest");
|
|
35
36
|
|
|
@@ -353,7 +354,7 @@ Object.keys(_v22).forEach(function (key) {
|
|
|
353
354
|
});
|
|
354
355
|
});
|
|
355
356
|
|
|
356
|
-
var _v23 = require("./
|
|
357
|
+
var _v23 = require("./v3.17.0");
|
|
357
358
|
|
|
358
359
|
Object.keys(_v23).forEach(function (key) {
|
|
359
360
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -367,6 +368,20 @@ Object.keys(_v23).forEach(function (key) {
|
|
|
367
368
|
});
|
|
368
369
|
});
|
|
369
370
|
|
|
371
|
+
var _v24 = require("./v4.0.0");
|
|
372
|
+
|
|
373
|
+
Object.keys(_v24).forEach(function (key) {
|
|
374
|
+
if (key === "default" || key === "__esModule") return;
|
|
375
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
376
|
+
if (key in exports && exports[key] === _v24[key]) return;
|
|
377
|
+
Object.defineProperty(exports, key, {
|
|
378
|
+
enumerable: true,
|
|
379
|
+
get: function () {
|
|
380
|
+
return _v24[key];
|
|
381
|
+
}
|
|
382
|
+
});
|
|
383
|
+
});
|
|
384
|
+
|
|
370
385
|
// This file is generated by "pnpm json2ts"
|
|
371
386
|
// Schema type utilities
|
|
372
387
|
function createVersionPredicate(expectedVersion) {
|
|
@@ -431,7 +446,9 @@ const isProjectSchemaV3_15_0 = createVersionPredicate('3.15.0');
|
|
|
431
446
|
exports.isProjectSchemaV3_15_0 = isProjectSchemaV3_15_0;
|
|
432
447
|
const isProjectSchemaV3_16_0 = createVersionPredicate('3.16.0');
|
|
433
448
|
exports.isProjectSchemaV3_16_0 = isProjectSchemaV3_16_0;
|
|
434
|
-
const
|
|
449
|
+
const isProjectSchemaV3_17_0 = createVersionPredicate('3.17.0');
|
|
450
|
+
exports.isProjectSchemaV3_17_0 = isProjectSchemaV3_17_0;
|
|
451
|
+
const isLatestProjectSchema = createVersionPredicate('3.17.0');
|
|
435
452
|
exports.isLatestProjectSchema = isLatestProjectSchema;
|
|
436
453
|
const isProjectSchemaV4_0_0 = createVersionPredicate('4.0.0');
|
|
437
454
|
exports.isProjectSchemaV4_0_0 = isProjectSchemaV4_0_0;
|
|
@@ -130,7 +130,7 @@ export declare type TakeshapeResolverName = 'takeshape:get' | 'takeshape:create'
|
|
|
130
130
|
/**
|
|
131
131
|
* Name of the resolver function.
|
|
132
132
|
*/
|
|
133
|
-
export declare type InternalTakeshapeResolverName = 'takeshape:getRelationship' | 'takeshape:taxonomySuggest' | 'takeshape:list' | 'takeshape:search';
|
|
133
|
+
export declare type InternalTakeshapeResolverName = 'takeshape:getRelationship' | 'takeshape:taxonomySuggest' | 'takeshape:list' | 'takeshape:search' | 'takeshape:getUser';
|
|
134
134
|
/**
|
|
135
135
|
* Name of the resolver function.
|
|
136
136
|
*/
|
|
@@ -294,7 +294,7 @@ export interface ProjectSchema {
|
|
|
294
294
|
/**
|
|
295
295
|
* The version of the schema format your project is using. We increase the version as we make breaking changes to the schema format.
|
|
296
296
|
*/
|
|
297
|
-
schemaVersion: '3.
|
|
297
|
+
schemaVersion: '3.17.0';
|
|
298
298
|
/**
|
|
299
299
|
* The ID of the TakeShape project this schema belongs to.
|
|
300
300
|
*/
|
|
@@ -410,7 +410,6 @@ export interface PropertySchema {
|
|
|
410
410
|
'@tag'?: string;
|
|
411
411
|
'@tags'?: string[];
|
|
412
412
|
'@deprecationReason'?: string;
|
|
413
|
-
'@user'?: boolean;
|
|
414
413
|
'@args'?: Args;
|
|
415
414
|
'@resolver'?: Resolver;
|
|
416
415
|
'@ref'?: Ref;
|
|
@@ -507,7 +506,6 @@ export interface Input {
|
|
|
507
506
|
'@tag'?: string;
|
|
508
507
|
'@tags'?: string[];
|
|
509
508
|
'@deprecationReason'?: string;
|
|
510
|
-
'@user'?: boolean;
|
|
511
509
|
'@args'?: Args;
|
|
512
510
|
'@resolver'?: Resolver;
|
|
513
511
|
'@ref'?: Ref;
|
|
@@ -1285,7 +1283,6 @@ export interface PropertySchema1 {
|
|
|
1285
1283
|
'@tag'?: string;
|
|
1286
1284
|
'@tags'?: string[];
|
|
1287
1285
|
'@deprecationReason'?: string;
|
|
1288
|
-
'@user'?: boolean;
|
|
1289
1286
|
'@args'?: Args;
|
|
1290
1287
|
'@resolver'?: Resolver;
|
|
1291
1288
|
'@ref'?: Ref;
|