@takeshape/schema 9.80.4 → 9.81.3

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 (189) hide show
  1. package/dist/api-version.js +0 -9
  2. package/dist/builtin-schema.js +0 -5
  3. package/dist/content-schema-transform.js +4 -52
  4. package/dist/create-input-schema.js +7 -19
  5. package/dist/enum.js +0 -3
  6. package/dist/flatten-templates.js +0 -11
  7. package/dist/get-is-leaf.js +8 -18
  8. package/dist/index.js +0 -58
  9. package/dist/interfaces.js +2 -26
  10. package/dist/layers/layers.js +23 -103
  11. package/dist/layers/refs.js +26 -69
  12. package/dist/layers/type-utils.js +11 -43
  13. package/dist/layers/visitor.js +0 -6
  14. package/dist/migration/index.js +0 -51
  15. package/dist/migration/to/v3.0.0.js +31 -45
  16. package/dist/migration/to/v3.1.0.js +15 -41
  17. package/dist/migration/to/v3.10.0.js +6 -20
  18. package/dist/migration/to/v3.11.0.js +8 -20
  19. package/dist/migration/to/v3.12.0.js +2 -3
  20. package/dist/migration/to/v3.12.1.js +2 -3
  21. package/dist/migration/to/v3.12.2.js +2 -3
  22. package/dist/migration/to/v3.12.3.js +16 -21
  23. package/dist/migration/to/v3.13.0.js +2 -7
  24. package/dist/migration/to/v3.14.0.js +2 -3
  25. package/dist/migration/to/v3.15.0.js +2 -3
  26. package/dist/migration/to/v3.16.0.js +2 -3
  27. package/dist/migration/to/v3.17.0.js +4 -9
  28. package/dist/migration/to/v3.17.1.js +2 -3
  29. package/dist/migration/to/v3.18.0.js +2 -15
  30. package/dist/migration/to/v3.18.1.js +2 -7
  31. package/dist/migration/to/v3.18.2.js +8 -10
  32. package/dist/migration/to/v3.19.0.js +2 -3
  33. package/dist/migration/to/v3.2.0.js +2 -3
  34. package/dist/migration/to/v3.20.0.js +10 -11
  35. package/dist/migration/to/v3.21.0.js +2 -3
  36. package/dist/migration/to/v3.22.0.js +4 -9
  37. package/dist/migration/to/v3.23.0.js +2 -3
  38. package/dist/migration/to/v3.24.0.js +2 -3
  39. package/dist/migration/to/v3.25.0.js +2 -3
  40. package/dist/migration/to/v3.26.0.js +2 -3
  41. package/dist/migration/to/v3.27.0.js +2 -3
  42. package/dist/migration/to/v3.28.0.js +2 -3
  43. package/dist/migration/to/v3.29.0.js +2 -3
  44. package/dist/migration/to/v3.3.0.js +3 -4
  45. package/dist/migration/to/v3.30.0.js +2 -3
  46. package/dist/migration/to/v3.31.0.js +2 -12
  47. package/dist/migration/to/v3.32.0.js +12 -22
  48. package/dist/migration/to/v3.33.0.js +2 -3
  49. package/dist/migration/to/v3.34.0.js +14 -43
  50. package/dist/migration/to/v3.35.0.js +2 -3
  51. package/dist/migration/to/v3.36.0.js +6 -10
  52. package/dist/migration/to/v3.37.0.js +2 -3
  53. package/dist/migration/to/v3.38.0.js +2 -3
  54. package/dist/migration/to/v3.39.0.js +6 -13
  55. package/dist/migration/to/v3.4.0.js +2 -3
  56. package/dist/migration/to/v3.5.0.js +2 -3
  57. package/dist/migration/to/v3.5.1.js +2 -3
  58. package/dist/migration/to/v3.6.0.js +2 -3
  59. package/dist/migration/to/v3.7.0.js +2 -3
  60. package/dist/migration/to/v3.8.0.js +2 -3
  61. package/dist/migration/to/v3.9.0.js +8 -24
  62. package/dist/migration/utils.js +0 -2
  63. package/dist/mocks.js +9 -12
  64. package/dist/models/project-schema.js +0 -34
  65. package/dist/models/query.js +0 -9
  66. package/dist/models/service.js +0 -8
  67. package/dist/models/shape.js +0 -29
  68. package/dist/project-schema/index.js +1 -105
  69. package/dist/project-schema/migrate.js +1 -54
  70. package/dist/refs.js +39 -159
  71. package/dist/relationships.js +13 -57
  72. package/dist/scalars.js +0 -1
  73. package/dist/schema-transform.js +0 -11
  74. package/dist/schema-util.js +75 -271
  75. package/dist/schemas/index.js +0 -64
  76. package/dist/services.js +24 -44
  77. package/dist/taxonomies.js +0 -13
  78. package/dist/template-shapes/index.js +1 -8
  79. package/dist/template-shapes/templates.js +9 -40
  80. package/dist/template-shapes/types.js +4 -5
  81. package/dist/template-shapes/where.js +14 -110
  82. package/dist/types/index.js +0 -4
  83. package/dist/types/types.js +41 -13
  84. package/dist/types/utils.js +15 -89
  85. package/dist/unions.js +8 -38
  86. package/dist/util/api-indexing.js +2 -19
  87. package/dist/util/detect-cycles.js +2 -16
  88. package/dist/util/find-shape-at-path.js +1 -15
  89. package/dist/util/form-config.js +6 -23
  90. package/dist/util/get-conflicting-properties.js +7 -17
  91. package/dist/util/get-return-shape.js +0 -11
  92. package/dist/util/has-arg.js +0 -6
  93. package/dist/util/index.js +0 -18
  94. package/dist/util/merge.js +28 -74
  95. package/dist/util/patch-schema.js +5 -13
  96. package/dist/validate.js +15 -234
  97. package/dist/versions.js +0 -2
  98. package/dist/workflows.js +0 -15
  99. package/es/api-version.js +0 -4
  100. package/es/content-schema-transform.js +4 -38
  101. package/es/create-input-schema.js +7 -14
  102. package/es/enum.js +0 -2
  103. package/es/flatten-templates.js +0 -4
  104. package/es/get-is-leaf.js +8 -13
  105. package/es/index.js +1 -0
  106. package/es/interfaces.js +2 -14
  107. package/es/layers/layers.js +23 -90
  108. package/es/layers/refs.js +22 -45
  109. package/es/layers/type-utils.js +11 -16
  110. package/es/layers/visitor.js +0 -3
  111. package/es/migration/to/v3.0.0.js +31 -38
  112. package/es/migration/to/v3.1.0.js +16 -34
  113. package/es/migration/to/v3.10.0.js +6 -17
  114. package/es/migration/to/v3.11.0.js +8 -18
  115. package/es/migration/to/v3.12.0.js +2 -2
  116. package/es/migration/to/v3.12.1.js +2 -2
  117. package/es/migration/to/v3.12.2.js +2 -2
  118. package/es/migration/to/v3.12.3.js +16 -19
  119. package/es/migration/to/v3.13.0.js +2 -4
  120. package/es/migration/to/v3.14.0.js +2 -2
  121. package/es/migration/to/v3.15.0.js +2 -2
  122. package/es/migration/to/v3.16.0.js +2 -2
  123. package/es/migration/to/v3.17.0.js +4 -4
  124. package/es/migration/to/v3.17.1.js +2 -2
  125. package/es/migration/to/v3.18.0.js +2 -10
  126. package/es/migration/to/v3.18.1.js +2 -3
  127. package/es/migration/to/v3.18.2.js +8 -8
  128. package/es/migration/to/v3.19.0.js +2 -2
  129. package/es/migration/to/v3.2.0.js +2 -2
  130. package/es/migration/to/v3.20.0.js +10 -9
  131. package/es/migration/to/v3.21.0.js +2 -2
  132. package/es/migration/to/v3.22.0.js +4 -6
  133. package/es/migration/to/v3.23.0.js +2 -2
  134. package/es/migration/to/v3.24.0.js +2 -2
  135. package/es/migration/to/v3.25.0.js +2 -2
  136. package/es/migration/to/v3.26.0.js +2 -2
  137. package/es/migration/to/v3.27.0.js +2 -2
  138. package/es/migration/to/v3.28.0.js +2 -2
  139. package/es/migration/to/v3.29.0.js +2 -2
  140. package/es/migration/to/v3.3.0.js +3 -3
  141. package/es/migration/to/v3.30.0.js +2 -2
  142. package/es/migration/to/v3.31.0.js +2 -5
  143. package/es/migration/to/v3.32.0.js +12 -21
  144. package/es/migration/to/v3.33.0.js +2 -2
  145. package/es/migration/to/v3.34.0.js +16 -32
  146. package/es/migration/to/v3.35.0.js +2 -2
  147. package/es/migration/to/v3.36.0.js +6 -8
  148. package/es/migration/to/v3.37.0.js +2 -2
  149. package/es/migration/to/v3.38.0.js +2 -2
  150. package/es/migration/to/v3.39.0.js +6 -12
  151. package/es/migration/to/v3.4.0.js +2 -2
  152. package/es/migration/to/v3.5.0.js +2 -2
  153. package/es/migration/to/v3.5.1.js +2 -2
  154. package/es/migration/to/v3.6.0.js +2 -2
  155. package/es/migration/to/v3.7.0.js +2 -2
  156. package/es/migration/to/v3.8.0.js +2 -2
  157. package/es/migration/to/v3.9.0.js +8 -20
  158. package/es/mocks.js +10 -6
  159. package/es/models/project-schema.js +0 -26
  160. package/es/models/query.js +0 -7
  161. package/es/models/service.js +0 -6
  162. package/es/models/shape.js +1 -25
  163. package/es/project-schema/index.js +0 -5
  164. package/es/project-schema/migrate.js +3 -51
  165. package/es/refs.js +40 -96
  166. package/es/relationships.js +14 -42
  167. package/es/schema-transform.js +0 -7
  168. package/es/schema-util.js +75 -180
  169. package/es/services.js +18 -27
  170. package/es/taxonomies.js +0 -9
  171. package/es/template-shapes/index.js +1 -4
  172. package/es/template-shapes/templates.js +9 -18
  173. package/es/template-shapes/types.js +3 -4
  174. package/es/template-shapes/where.js +14 -94
  175. package/es/types/types.js +43 -10
  176. package/es/types/utils.js +16 -24
  177. package/es/unions.js +8 -22
  178. package/es/util/api-indexing.js +2 -12
  179. package/es/util/detect-cycles.js +2 -14
  180. package/es/util/find-shape-at-path.js +2 -12
  181. package/es/util/form-config.js +7 -19
  182. package/es/util/get-conflicting-properties.js +8 -14
  183. package/es/util/get-return-shape.js +0 -8
  184. package/es/util/has-arg.js +0 -3
  185. package/es/util/merge.js +28 -55
  186. package/es/util/patch-schema.js +5 -7
  187. package/es/validate.js +15 -194
  188. package/es/workflows.js +0 -6
  189. package/package.json +5 -5
@@ -56,9 +56,7 @@ var _exportNames = {
56
56
  isProjectSchemaJSONV4_0_0: true
57
57
  };
58
58
  exports.isProjectSchemaJSONV4_0_0 = exports.isProjectSchemaJSONV3_9_0 = exports.isProjectSchemaJSONV3_8_0 = exports.isProjectSchemaJSONV3_7_0 = exports.isProjectSchemaJSONV3_6_0 = exports.isProjectSchemaJSONV3_5_1 = exports.isProjectSchemaJSONV3_5_0 = exports.isProjectSchemaJSONV3_4_0 = exports.isProjectSchemaJSONV3_3_0 = exports.isProjectSchemaJSONV3_39_0 = exports.isProjectSchemaJSONV3_38_0 = exports.isProjectSchemaJSONV3_37_0 = exports.isProjectSchemaJSONV3_36_0 = exports.isProjectSchemaJSONV3_35_0 = exports.isProjectSchemaJSONV3_34_0 = exports.isProjectSchemaJSONV3_33_0 = exports.isProjectSchemaJSONV3_32_0 = exports.isProjectSchemaJSONV3_31_0 = exports.isProjectSchemaJSONV3_30_0 = exports.isProjectSchemaJSONV3_2_0 = exports.isProjectSchemaJSONV3_29_0 = exports.isProjectSchemaJSONV3_28_0 = exports.isProjectSchemaJSONV3_27_0 = exports.isProjectSchemaJSONV3_26_0 = exports.isProjectSchemaJSONV3_25_0 = exports.isProjectSchemaJSONV3_24_0 = exports.isProjectSchemaJSONV3_23_0 = exports.isProjectSchemaJSONV3_22_0 = exports.isProjectSchemaJSONV3_21_0 = exports.isProjectSchemaJSONV3_20_0 = exports.isProjectSchemaJSONV3_1_0 = exports.isProjectSchemaJSONV3_19_0 = exports.isProjectSchemaJSONV3_18_2 = exports.isProjectSchemaJSONV3_18_1 = exports.isProjectSchemaJSONV3_18_0 = exports.isProjectSchemaJSONV3_17_1 = exports.isProjectSchemaJSONV3_17_0 = exports.isProjectSchemaJSONV3_16_0 = exports.isProjectSchemaJSONV3_15_0 = exports.isProjectSchemaJSONV3_14_0 = exports.isProjectSchemaJSONV3_13_0 = exports.isProjectSchemaJSONV3_12_3 = exports.isProjectSchemaJSONV3_12_2 = exports.isProjectSchemaJSONV3_12_1 = exports.isProjectSchemaJSONV3_12_0 = exports.isProjectSchemaJSONV3_11_0 = exports.isProjectSchemaJSONV3_10_0 = exports.isProjectSchemaJSONV3_0_0 = exports.isProjectSchemaJSONV1_0_0 = exports.isLatestProjectSchemaJSON = void 0;
59
-
60
59
  var _latest = require("./latest");
61
-
62
60
  Object.keys(_latest).forEach(function (key) {
63
61
  if (key === "default" || key === "__esModule") return;
64
62
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -70,9 +68,7 @@ Object.keys(_latest).forEach(function (key) {
70
68
  }
71
69
  });
72
70
  });
73
-
74
71
  var _v = require("./v1.0.0");
75
-
76
72
  Object.keys(_v).forEach(function (key) {
77
73
  if (key === "default" || key === "__esModule") return;
78
74
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -84,9 +80,7 @@ Object.keys(_v).forEach(function (key) {
84
80
  }
85
81
  });
86
82
  });
87
-
88
83
  var _v2 = require("./v3.0.0");
89
-
90
84
  Object.keys(_v2).forEach(function (key) {
91
85
  if (key === "default" || key === "__esModule") return;
92
86
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -98,9 +92,7 @@ Object.keys(_v2).forEach(function (key) {
98
92
  }
99
93
  });
100
94
  });
101
-
102
95
  var _v3 = require("./v3.1.0");
103
-
104
96
  Object.keys(_v3).forEach(function (key) {
105
97
  if (key === "default" || key === "__esModule") return;
106
98
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -112,9 +104,7 @@ Object.keys(_v3).forEach(function (key) {
112
104
  }
113
105
  });
114
106
  });
115
-
116
107
  var _v4 = require("./v3.2.0");
117
-
118
108
  Object.keys(_v4).forEach(function (key) {
119
109
  if (key === "default" || key === "__esModule") return;
120
110
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -126,9 +116,7 @@ Object.keys(_v4).forEach(function (key) {
126
116
  }
127
117
  });
128
118
  });
129
-
130
119
  var _v5 = require("./v3.3.0");
131
-
132
120
  Object.keys(_v5).forEach(function (key) {
133
121
  if (key === "default" || key === "__esModule") return;
134
122
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -140,9 +128,7 @@ Object.keys(_v5).forEach(function (key) {
140
128
  }
141
129
  });
142
130
  });
143
-
144
131
  var _v6 = require("./v3.4.0");
145
-
146
132
  Object.keys(_v6).forEach(function (key) {
147
133
  if (key === "default" || key === "__esModule") return;
148
134
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -154,9 +140,7 @@ Object.keys(_v6).forEach(function (key) {
154
140
  }
155
141
  });
156
142
  });
157
-
158
143
  var _v7 = require("./v3.5.0");
159
-
160
144
  Object.keys(_v7).forEach(function (key) {
161
145
  if (key === "default" || key === "__esModule") return;
162
146
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -168,9 +152,7 @@ Object.keys(_v7).forEach(function (key) {
168
152
  }
169
153
  });
170
154
  });
171
-
172
155
  var _v8 = require("./v3.5.1");
173
-
174
156
  Object.keys(_v8).forEach(function (key) {
175
157
  if (key === "default" || key === "__esModule") return;
176
158
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -182,9 +164,7 @@ Object.keys(_v8).forEach(function (key) {
182
164
  }
183
165
  });
184
166
  });
185
-
186
167
  var _v9 = require("./v3.6.0");
187
-
188
168
  Object.keys(_v9).forEach(function (key) {
189
169
  if (key === "default" || key === "__esModule") return;
190
170
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -196,9 +176,7 @@ Object.keys(_v9).forEach(function (key) {
196
176
  }
197
177
  });
198
178
  });
199
-
200
179
  var _v10 = require("./v3.7.0");
201
-
202
180
  Object.keys(_v10).forEach(function (key) {
203
181
  if (key === "default" || key === "__esModule") return;
204
182
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -210,9 +188,7 @@ Object.keys(_v10).forEach(function (key) {
210
188
  }
211
189
  });
212
190
  });
213
-
214
191
  var _v11 = require("./v3.8.0");
215
-
216
192
  Object.keys(_v11).forEach(function (key) {
217
193
  if (key === "default" || key === "__esModule") return;
218
194
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -224,9 +200,7 @@ Object.keys(_v11).forEach(function (key) {
224
200
  }
225
201
  });
226
202
  });
227
-
228
203
  var _v12 = require("./v3.9.0");
229
-
230
204
  Object.keys(_v12).forEach(function (key) {
231
205
  if (key === "default" || key === "__esModule") return;
232
206
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -238,9 +212,7 @@ Object.keys(_v12).forEach(function (key) {
238
212
  }
239
213
  });
240
214
  });
241
-
242
215
  var _v13 = require("./v3.10.0");
243
-
244
216
  Object.keys(_v13).forEach(function (key) {
245
217
  if (key === "default" || key === "__esModule") return;
246
218
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -252,9 +224,7 @@ Object.keys(_v13).forEach(function (key) {
252
224
  }
253
225
  });
254
226
  });
255
-
256
227
  var _v14 = require("./v3.11.0");
257
-
258
228
  Object.keys(_v14).forEach(function (key) {
259
229
  if (key === "default" || key === "__esModule") return;
260
230
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -266,9 +236,7 @@ Object.keys(_v14).forEach(function (key) {
266
236
  }
267
237
  });
268
238
  });
269
-
270
239
  var _v15 = require("./v3.12.0");
271
-
272
240
  Object.keys(_v15).forEach(function (key) {
273
241
  if (key === "default" || key === "__esModule") return;
274
242
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -280,9 +248,7 @@ Object.keys(_v15).forEach(function (key) {
280
248
  }
281
249
  });
282
250
  });
283
-
284
251
  var _v16 = require("./v3.12.1");
285
-
286
252
  Object.keys(_v16).forEach(function (key) {
287
253
  if (key === "default" || key === "__esModule") return;
288
254
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -294,9 +260,7 @@ Object.keys(_v16).forEach(function (key) {
294
260
  }
295
261
  });
296
262
  });
297
-
298
263
  var _v17 = require("./v3.12.2");
299
-
300
264
  Object.keys(_v17).forEach(function (key) {
301
265
  if (key === "default" || key === "__esModule") return;
302
266
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -308,9 +272,7 @@ Object.keys(_v17).forEach(function (key) {
308
272
  }
309
273
  });
310
274
  });
311
-
312
275
  var _v18 = require("./v3.12.3");
313
-
314
276
  Object.keys(_v18).forEach(function (key) {
315
277
  if (key === "default" || key === "__esModule") return;
316
278
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -322,9 +284,7 @@ Object.keys(_v18).forEach(function (key) {
322
284
  }
323
285
  });
324
286
  });
325
-
326
287
  var _v19 = require("./v3.13.0");
327
-
328
288
  Object.keys(_v19).forEach(function (key) {
329
289
  if (key === "default" || key === "__esModule") return;
330
290
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -336,9 +296,7 @@ Object.keys(_v19).forEach(function (key) {
336
296
  }
337
297
  });
338
298
  });
339
-
340
299
  var _v20 = require("./v3.14.0");
341
-
342
300
  Object.keys(_v20).forEach(function (key) {
343
301
  if (key === "default" || key === "__esModule") return;
344
302
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -350,9 +308,7 @@ Object.keys(_v20).forEach(function (key) {
350
308
  }
351
309
  });
352
310
  });
353
-
354
311
  var _v21 = require("./v3.15.0");
355
-
356
312
  Object.keys(_v21).forEach(function (key) {
357
313
  if (key === "default" || key === "__esModule") return;
358
314
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -364,9 +320,7 @@ Object.keys(_v21).forEach(function (key) {
364
320
  }
365
321
  });
366
322
  });
367
-
368
323
  var _v22 = require("./v3.16.0");
369
-
370
324
  Object.keys(_v22).forEach(function (key) {
371
325
  if (key === "default" || key === "__esModule") return;
372
326
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -378,9 +332,7 @@ Object.keys(_v22).forEach(function (key) {
378
332
  }
379
333
  });
380
334
  });
381
-
382
335
  var _v23 = require("./v3.17.0");
383
-
384
336
  Object.keys(_v23).forEach(function (key) {
385
337
  if (key === "default" || key === "__esModule") return;
386
338
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -392,9 +344,7 @@ Object.keys(_v23).forEach(function (key) {
392
344
  }
393
345
  });
394
346
  });
395
-
396
347
  var _v24 = require("./v3.17.1");
397
-
398
348
  Object.keys(_v24).forEach(function (key) {
399
349
  if (key === "default" || key === "__esModule") return;
400
350
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -406,9 +356,7 @@ Object.keys(_v24).forEach(function (key) {
406
356
  }
407
357
  });
408
358
  });
409
-
410
359
  var _v25 = require("./v3.18.0");
411
-
412
360
  Object.keys(_v25).forEach(function (key) {
413
361
  if (key === "default" || key === "__esModule") return;
414
362
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -420,9 +368,7 @@ Object.keys(_v25).forEach(function (key) {
420
368
  }
421
369
  });
422
370
  });
423
-
424
371
  var _v26 = require("./v3.18.1");
425
-
426
372
  Object.keys(_v26).forEach(function (key) {
427
373
  if (key === "default" || key === "__esModule") return;
428
374
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -434,9 +380,7 @@ Object.keys(_v26).forEach(function (key) {
434
380
  }
435
381
  });
436
382
  });
437
-
438
383
  var _v27 = require("./v3.18.2");
439
-
440
384
  Object.keys(_v27).forEach(function (key) {
441
385
  if (key === "default" || key === "__esModule") return;
442
386
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -448,9 +392,7 @@ Object.keys(_v27).forEach(function (key) {
448
392
  }
449
393
  });
450
394
  });
451
-
452
395
  var _v28 = require("./v3.19.0");
453
-
454
396
  Object.keys(_v28).forEach(function (key) {
455
397
  if (key === "default" || key === "__esModule") return;
456
398
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -462,9 +404,7 @@ Object.keys(_v28).forEach(function (key) {
462
404
  }
463
405
  });
464
406
  });
465
-
466
407
  var _v29 = require("./v3.20.0");
467
-
468
408
  Object.keys(_v29).forEach(function (key) {
469
409
  if (key === "default" || key === "__esModule") return;
470
410
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -476,9 +416,7 @@ Object.keys(_v29).forEach(function (key) {
476
416
  }
477
417
  });
478
418
  });
479
-
480
419
  var _v30 = require("./v3.21.0");
481
-
482
420
  Object.keys(_v30).forEach(function (key) {
483
421
  if (key === "default" || key === "__esModule") return;
484
422
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -490,9 +428,7 @@ Object.keys(_v30).forEach(function (key) {
490
428
  }
491
429
  });
492
430
  });
493
-
494
431
  var _v31 = require("./v3.22.0");
495
-
496
432
  Object.keys(_v31).forEach(function (key) {
497
433
  if (key === "default" || key === "__esModule") return;
498
434
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -504,9 +440,7 @@ Object.keys(_v31).forEach(function (key) {
504
440
  }
505
441
  });
506
442
  });
507
-
508
443
  var _v32 = require("./v3.23.0");
509
-
510
444
  Object.keys(_v32).forEach(function (key) {
511
445
  if (key === "default" || key === "__esModule") return;
512
446
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -518,9 +452,7 @@ Object.keys(_v32).forEach(function (key) {
518
452
  }
519
453
  });
520
454
  });
521
-
522
455
  var _v33 = require("./v3.24.0");
523
-
524
456
  Object.keys(_v33).forEach(function (key) {
525
457
  if (key === "default" || key === "__esModule") return;
526
458
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -532,9 +464,7 @@ Object.keys(_v33).forEach(function (key) {
532
464
  }
533
465
  });
534
466
  });
535
-
536
467
  var _v34 = require("./v3.25.0");
537
-
538
468
  Object.keys(_v34).forEach(function (key) {
539
469
  if (key === "default" || key === "__esModule") return;
540
470
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -546,9 +476,7 @@ Object.keys(_v34).forEach(function (key) {
546
476
  }
547
477
  });
548
478
  });
549
-
550
479
  var _v35 = require("./v3.26.0");
551
-
552
480
  Object.keys(_v35).forEach(function (key) {
553
481
  if (key === "default" || key === "__esModule") return;
554
482
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -560,9 +488,7 @@ Object.keys(_v35).forEach(function (key) {
560
488
  }
561
489
  });
562
490
  });
563
-
564
491
  var _v36 = require("./v3.27.0");
565
-
566
492
  Object.keys(_v36).forEach(function (key) {
567
493
  if (key === "default" || key === "__esModule") return;
568
494
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -574,9 +500,7 @@ Object.keys(_v36).forEach(function (key) {
574
500
  }
575
501
  });
576
502
  });
577
-
578
503
  var _v37 = require("./v3.28.0");
579
-
580
504
  Object.keys(_v37).forEach(function (key) {
581
505
  if (key === "default" || key === "__esModule") return;
582
506
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -588,9 +512,7 @@ Object.keys(_v37).forEach(function (key) {
588
512
  }
589
513
  });
590
514
  });
591
-
592
515
  var _v38 = require("./v3.29.0");
593
-
594
516
  Object.keys(_v38).forEach(function (key) {
595
517
  if (key === "default" || key === "__esModule") return;
596
518
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -602,9 +524,7 @@ Object.keys(_v38).forEach(function (key) {
602
524
  }
603
525
  });
604
526
  });
605
-
606
527
  var _v39 = require("./v3.30.0");
607
-
608
528
  Object.keys(_v39).forEach(function (key) {
609
529
  if (key === "default" || key === "__esModule") return;
610
530
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -616,9 +536,7 @@ Object.keys(_v39).forEach(function (key) {
616
536
  }
617
537
  });
618
538
  });
619
-
620
539
  var _v40 = require("./v3.31.0");
621
-
622
540
  Object.keys(_v40).forEach(function (key) {
623
541
  if (key === "default" || key === "__esModule") return;
624
542
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -630,9 +548,7 @@ Object.keys(_v40).forEach(function (key) {
630
548
  }
631
549
  });
632
550
  });
633
-
634
551
  var _v41 = require("./v3.32.0");
635
-
636
552
  Object.keys(_v41).forEach(function (key) {
637
553
  if (key === "default" || key === "__esModule") return;
638
554
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -644,9 +560,7 @@ Object.keys(_v41).forEach(function (key) {
644
560
  }
645
561
  });
646
562
  });
647
-
648
563
  var _v42 = require("./v3.33.0");
649
-
650
564
  Object.keys(_v42).forEach(function (key) {
651
565
  if (key === "default" || key === "__esModule") return;
652
566
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -658,9 +572,7 @@ Object.keys(_v42).forEach(function (key) {
658
572
  }
659
573
  });
660
574
  });
661
-
662
575
  var _v43 = require("./v3.34.0");
663
-
664
576
  Object.keys(_v43).forEach(function (key) {
665
577
  if (key === "default" || key === "__esModule") return;
666
578
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -672,9 +584,7 @@ Object.keys(_v43).forEach(function (key) {
672
584
  }
673
585
  });
674
586
  });
675
-
676
587
  var _v44 = require("./v3.35.0");
677
-
678
588
  Object.keys(_v44).forEach(function (key) {
679
589
  if (key === "default" || key === "__esModule") return;
680
590
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -686,9 +596,7 @@ Object.keys(_v44).forEach(function (key) {
686
596
  }
687
597
  });
688
598
  });
689
-
690
599
  var _v45 = require("./v3.36.0");
691
-
692
600
  Object.keys(_v45).forEach(function (key) {
693
601
  if (key === "default" || key === "__esModule") return;
694
602
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -700,9 +608,7 @@ Object.keys(_v45).forEach(function (key) {
700
608
  }
701
609
  });
702
610
  });
703
-
704
611
  var _v46 = require("./v3.37.0");
705
-
706
612
  Object.keys(_v46).forEach(function (key) {
707
613
  if (key === "default" || key === "__esModule") return;
708
614
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -714,9 +620,7 @@ Object.keys(_v46).forEach(function (key) {
714
620
  }
715
621
  });
716
622
  });
717
-
718
623
  var _v47 = require("./v3.38.0");
719
-
720
624
  Object.keys(_v47).forEach(function (key) {
721
625
  if (key === "default" || key === "__esModule") return;
722
626
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -728,9 +632,7 @@ Object.keys(_v47).forEach(function (key) {
728
632
  }
729
633
  });
730
634
  });
731
-
732
635
  var _v48 = require("./v3.39.0");
733
-
734
636
  Object.keys(_v48).forEach(function (key) {
735
637
  if (key === "default" || key === "__esModule") return;
736
638
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -742,9 +644,7 @@ Object.keys(_v48).forEach(function (key) {
742
644
  }
743
645
  });
744
646
  });
745
-
746
647
  var _v49 = require("./v4.0.0");
747
-
748
648
  Object.keys(_v49).forEach(function (key) {
749
649
  if (key === "default" || key === "__esModule") return;
750
650
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -756,27 +656,23 @@ Object.keys(_v49).forEach(function (key) {
756
656
  }
757
657
  });
758
658
  });
759
-
760
659
  // This file is generated by "pnpm json2ts"
660
+
761
661
  // Schema type utilities
762
662
  function createVersionPredicate(expectedVersion) {
763
663
  return projectSchema => {
764
664
  let {
765
665
  schemaVersion
766
666
  } = projectSchema;
767
-
768
667
  if (!schemaVersion || schemaVersion === '1') {
769
668
  schemaVersion = '1.0.0';
770
669
  }
771
-
772
670
  if (schemaVersion === '3') {
773
671
  schemaVersion = '3.0.0';
774
672
  }
775
-
776
673
  return Boolean(expectedVersion && schemaVersion && expectedVersion === schemaVersion);
777
674
  };
778
675
  }
779
-
780
676
  const isProjectSchemaJSONV1_0_0 = createVersionPredicate('1.0.0');
781
677
  exports.isProjectSchemaJSONV1_0_0 = isProjectSchemaJSONV1_0_0;
782
678
  const isProjectSchemaJSONV3_0_0 = createVersionPredicate('3.0.0');