@takeshape/schema 10.4.6 → 10.4.14
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/dist/api-version.d.ts +1 -1
- package/dist/api-version.d.ts.map +1 -1
- package/dist/builtin-schema.d.ts +2 -2
- package/dist/builtin-schema.d.ts.map +1 -1
- package/dist/content-schema-transform.d.ts +10 -10
- package/dist/content-schema-transform.d.ts.map +1 -1
- package/dist/content-schema-transform.js +1 -1
- package/dist/create-input-schema.d.ts +3 -3
- package/dist/create-input-schema.d.ts.map +1 -1
- package/dist/enum.d.ts +1 -1
- package/dist/enum.d.ts.map +1 -1
- package/dist/enum.js +1 -1
- package/dist/flatten-templates.d.ts +1 -1
- package/dist/flatten-templates.d.ts.map +1 -1
- package/dist/flatten-templates.js +2 -2
- package/dist/get-is-leaf.js +1 -1
- package/dist/index.d.ts +2 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -49
- package/dist/interfaces.d.ts.map +1 -1
- package/dist/interfaces.js +2 -2
- package/dist/layers/layers.d.ts +2 -2
- package/dist/layers/layers.d.ts.map +1 -1
- package/dist/layers/layers.js +23 -27
- package/dist/layers/refs.d.ts +7 -7
- package/dist/layers/refs.d.ts.map +1 -1
- package/dist/layers/refs.js +2 -2
- package/dist/layers/type-utils.d.ts +1 -1
- package/dist/layers/type-utils.d.ts.map +1 -1
- package/dist/layers/visitor.d.ts +2 -2
- package/dist/layers/visitor.d.ts.map +1 -1
- package/dist/migration/to/v3.0.0.d.ts +1 -1
- package/dist/migration/to/v3.0.0.d.ts.map +1 -1
- package/dist/migration/to/v3.0.0.js +1 -1
- package/dist/migration/to/v3.1.0.d.ts +1 -1
- package/dist/migration/to/v3.1.0.d.ts.map +1 -1
- package/dist/migration/to/v3.10.0.d.ts.map +1 -1
- package/dist/migration/to/v3.11.0.d.ts.map +1 -1
- package/dist/migration/to/v3.13.0.d.ts.map +1 -1
- package/dist/migration/to/v3.17.0.d.ts +1 -1
- package/dist/migration/to/v3.17.0.d.ts.map +1 -1
- package/dist/migration/to/v3.17.1.d.ts +1 -1
- package/dist/migration/to/v3.17.1.d.ts.map +1 -1
- package/dist/migration/to/v3.18.0.d.ts +1 -1
- package/dist/migration/to/v3.18.0.d.ts.map +1 -1
- package/dist/migration/to/v3.18.1.d.ts.map +1 -1
- package/dist/migration/to/v3.18.2.d.ts.map +1 -1
- package/dist/migration/to/v3.19.0.d.ts +1 -1
- package/dist/migration/to/v3.19.0.d.ts.map +1 -1
- package/dist/migration/to/v3.20.0.d.ts.map +1 -1
- package/dist/migration/to/v3.21.0.d.ts +1 -1
- package/dist/migration/to/v3.21.0.d.ts.map +1 -1
- package/dist/migration/to/v3.22.0.d.ts +1 -1
- package/dist/migration/to/v3.22.0.d.ts.map +1 -1
- package/dist/migration/to/v3.23.0.d.ts +1 -1
- package/dist/migration/to/v3.23.0.d.ts.map +1 -1
- package/dist/migration/to/v3.24.0.d.ts +1 -1
- package/dist/migration/to/v3.24.0.d.ts.map +1 -1
- package/dist/migration/to/v3.25.0.d.ts +1 -1
- package/dist/migration/to/v3.25.0.d.ts.map +1 -1
- package/dist/migration/to/v3.26.0.d.ts +1 -1
- package/dist/migration/to/v3.26.0.d.ts.map +1 -1
- package/dist/migration/to/v3.27.0.d.ts +1 -1
- package/dist/migration/to/v3.27.0.d.ts.map +1 -1
- package/dist/migration/to/v3.28.0.d.ts +1 -1
- package/dist/migration/to/v3.28.0.d.ts.map +1 -1
- package/dist/migration/to/v3.29.0.d.ts +1 -1
- package/dist/migration/to/v3.29.0.d.ts.map +1 -1
- package/dist/migration/to/v3.30.0.d.ts +1 -1
- package/dist/migration/to/v3.30.0.d.ts.map +1 -1
- package/dist/migration/to/v3.31.0.d.ts +1 -1
- package/dist/migration/to/v3.31.0.d.ts.map +1 -1
- package/dist/migration/to/v3.32.0.d.ts +1 -1
- package/dist/migration/to/v3.32.0.d.ts.map +1 -1
- package/dist/migration/to/v3.32.0.js +10 -12
- package/dist/migration/to/v3.33.0.d.ts +1 -1
- package/dist/migration/to/v3.33.0.d.ts.map +1 -1
- package/dist/migration/to/v3.34.0.d.ts +1 -1
- package/dist/migration/to/v3.34.0.d.ts.map +1 -1
- package/dist/migration/to/v3.34.0.js +7 -10
- package/dist/migration/to/v3.35.0.d.ts +1 -1
- package/dist/migration/to/v3.35.0.d.ts.map +1 -1
- package/dist/migration/to/v3.36.0.d.ts +1 -1
- package/dist/migration/to/v3.36.0.d.ts.map +1 -1
- package/dist/migration/to/v3.36.0.js +13 -15
- package/dist/migration/to/v3.37.0.d.ts +1 -1
- package/dist/migration/to/v3.37.0.d.ts.map +1 -1
- package/dist/migration/to/v3.38.0.d.ts +1 -1
- package/dist/migration/to/v3.38.0.d.ts.map +1 -1
- package/dist/migration/to/v3.39.0.d.ts +1 -1
- package/dist/migration/to/v3.39.0.d.ts.map +1 -1
- package/dist/migration/to/v3.9.0.d.ts +1 -1
- package/dist/migration/to/v3.9.0.d.ts.map +1 -1
- package/dist/migration/types.d.ts +4 -4
- package/dist/migration/types.d.ts.map +1 -1
- package/dist/migration/utils.js +1 -1
- package/dist/mocks.d.ts.map +1 -1
- package/dist/mocks.js +1 -1
- package/dist/models/project-schema.d.ts +4 -4
- package/dist/models/project-schema.d.ts.map +1 -1
- package/dist/models/project-schema.js +4 -4
- package/dist/models/query.d.ts +2 -2
- package/dist/models/query.d.ts.map +1 -1
- package/dist/models/service.d.ts +2 -2
- package/dist/models/service.d.ts.map +1 -1
- package/dist/models/shape.d.ts +3 -3
- package/dist/models/shape.d.ts.map +1 -1
- package/dist/patterns.d.ts +4 -4
- package/dist/patterns.d.ts.map +1 -1
- package/dist/refs.d.ts +14 -14
- package/dist/refs.d.ts.map +1 -1
- package/dist/refs.js +4 -4
- package/dist/relationships.d.ts.map +1 -1
- package/dist/relationships.js +2 -4
- package/dist/schema-transform.d.ts +1 -1
- package/dist/schema-transform.d.ts.map +1 -1
- package/dist/schema-transform.js +1 -1
- package/dist/schema-util.d.ts +7 -7
- package/dist/schema-util.d.ts.map +1 -1
- package/dist/schema-util.js +9 -9
- package/dist/services.d.ts +2 -3
- package/dist/services.d.ts.map +1 -1
- package/dist/services.js +2 -2
- package/dist/taxonomies.d.ts +4 -4
- package/dist/taxonomies.d.ts.map +1 -1
- package/dist/taxonomies.js +1 -1
- package/dist/template-shapes/index.d.ts +2 -2
- package/dist/template-shapes/index.d.ts.map +1 -1
- package/dist/template-shapes/templates.d.ts +1 -1
- package/dist/template-shapes/templates.d.ts.map +1 -1
- package/dist/template-shapes/templates.js +4 -4
- package/dist/template-shapes/types.d.ts +5 -5
- package/dist/template-shapes/types.d.ts.map +1 -1
- package/dist/template-shapes/where.d.ts +2 -2
- package/dist/template-shapes/where.d.ts.map +1 -1
- package/dist/template-shapes/where.js +3 -3
- package/dist/types/types.d.ts +22 -22
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utils.d.ts +2 -2
- package/dist/types/utils.d.ts.map +1 -1
- package/dist/types/utils.js +2 -2
- package/dist/unions.d.ts +3 -3
- package/dist/unions.d.ts.map +1 -1
- package/dist/unions.js +2 -2
- package/dist/util/api-indexing.d.ts +1 -1
- package/dist/util/api-indexing.d.ts.map +1 -1
- package/dist/util/api-indexing.js +1 -1
- package/dist/util/detect-cycles.d.ts +1 -1
- package/dist/util/detect-cycles.d.ts.map +1 -1
- package/dist/util/detect-cycles.js +1 -1
- package/dist/util/find-shape-at-path.d.ts +1 -1
- package/dist/util/find-shape-at-path.d.ts.map +1 -1
- package/dist/util/form-config.d.ts +2 -3
- package/dist/util/form-config.d.ts.map +1 -1
- package/dist/util/form-config.js +4 -8
- package/dist/util/get-conflicting-properties.d.ts +2 -2
- package/dist/util/get-conflicting-properties.d.ts.map +1 -1
- package/dist/util/get-conflicting-properties.js +1 -1
- package/dist/util/get-return-shape.d.ts +2 -2
- package/dist/util/get-return-shape.d.ts.map +1 -1
- package/dist/util/has-arg.d.ts +2 -2
- package/dist/util/has-arg.d.ts.map +1 -1
- package/dist/util/merge.d.ts +1 -1
- package/dist/util/merge.d.ts.map +1 -1
- package/dist/util/merge.js +3 -5
- package/dist/util/patch-schema.d.ts +2 -2
- package/dist/util/patch-schema.d.ts.map +1 -1
- package/dist/validate.d.ts +11 -11
- package/dist/validate.d.ts.map +1 -1
- package/dist/validate.js +12 -13
- package/dist/workflows.d.ts +3 -3
- package/dist/workflows.d.ts.map +1 -1
- package/dist/workflows.js +4 -1
- package/es/content-schema-transform.js +1 -1
- package/es/enum.js +1 -1
- package/es/flatten-templates.js +2 -2
- package/es/get-is-leaf.js +1 -1
- package/es/index.js +3 -3
- package/es/interfaces.js +2 -2
- package/es/layers/layers.js +4 -8
- package/es/layers/refs.js +2 -2
- package/es/migration/to/v3.0.0.js +1 -1
- package/es/migration/to/v3.32.0.js +10 -12
- package/es/migration/to/v3.34.0.js +7 -10
- package/es/migration/to/v3.36.0.js +13 -15
- package/es/migration/utils.js +1 -1
- package/es/mocks.js +1 -1
- package/es/models/project-schema.js +4 -4
- package/es/models/shape.js +0 -1
- package/es/refs.js +4 -4
- package/es/relationships.js +2 -4
- package/es/schema-transform.js +1 -1
- package/es/schema-util.js +9 -9
- package/es/services.js +2 -2
- package/es/taxonomies.js +1 -1
- package/es/template-shapes/templates.js +4 -4
- package/es/template-shapes/where.js +3 -3
- package/es/types/utils.js +2 -3
- package/es/unions.js +2 -2
- package/es/util/api-indexing.js +1 -1
- package/es/util/detect-cycles.js +1 -1
- package/es/util/form-config.js +4 -8
- package/es/util/get-conflicting-properties.js +1 -1
- package/es/util/merge.js +3 -5
- package/es/validate.js +12 -13
- package/es/workflows.js +4 -1
- package/package.json +6 -6
package/dist/layers/layers.js
CHANGED
|
@@ -13,11 +13,11 @@ exports.isObjectSchemaV4_0_0 = isObjectSchemaV4_0_0;
|
|
|
13
13
|
var _minimatch = _interopRequireDefault(require("minimatch"));
|
|
14
14
|
var _util = require("@takeshape/util");
|
|
15
15
|
var _uniq = _interopRequireDefault(require("lodash/uniq"));
|
|
16
|
-
var
|
|
16
|
+
var _set = _interopRequireDefault(require("lodash/set"));
|
|
17
|
+
var _refs = require("../refs");
|
|
18
|
+
var _refs2 = require("./refs");
|
|
17
19
|
var _typeUtils = require("./type-utils");
|
|
18
20
|
var _visitor = require("./visitor");
|
|
19
|
-
var _set = _interopRequireDefault(require("lodash/set"));
|
|
20
|
-
var _refs2 = require("../refs");
|
|
21
21
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
22
22
|
const layerDefaults = {
|
|
23
23
|
namespace: '',
|
|
@@ -90,14 +90,14 @@ function getAllRefsInShapes(shapes, predicate) {
|
|
|
90
90
|
const shapeVisitor = (schema, schemaPath) => {
|
|
91
91
|
if (schema['@args'] && typeof schema['@args'] === 'object') {
|
|
92
92
|
(0, _visitor.visitSchemaProperties)(schema['@args'], schemaPath.concat(['@args']), (argSchema, argPath) => {
|
|
93
|
-
addRef(items, (0,
|
|
93
|
+
addRef(items, (0, _refs2.getRefOrItemsRef)(argSchema, argPath), predicate);
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
|
-
addRef(items, (0,
|
|
96
|
+
addRef(items, (0, _refs2.getArgsReferenceWithPath)(schema, schemaPath), predicate);
|
|
97
97
|
const newPath = schema.items ? schemaPath.concat('items') : schemaPath;
|
|
98
98
|
const newSchema = schema.items ?? schema;
|
|
99
99
|
if ((0, _typeUtils.isRefSchema)(newSchema)) {
|
|
100
|
-
addRef(items, (0,
|
|
100
|
+
addRef(items, (0, _refs2.getRefOrItemsRef)(newSchema, newPath), predicate);
|
|
101
101
|
} else if ((0, _typeUtils.isObjectSchema)(newSchema) || (0, _typeUtils.isAllOfSchema)(newSchema) || (0, _typeUtils.isOneOfSchema)(newSchema)) {
|
|
102
102
|
(0, _visitor.visitSchemaProperties)(newSchema, newPath, shapeVisitor);
|
|
103
103
|
}
|
|
@@ -114,16 +114,16 @@ function getAllRefsInShapes(shapes, predicate) {
|
|
|
114
114
|
function getAllRefsInQuery(shapes, queryPath, query, predicate) {
|
|
115
115
|
const refItems = [];
|
|
116
116
|
const propertyVisitor = (propSchema, propSchemaPath) => {
|
|
117
|
-
addRef(refItems, (0,
|
|
117
|
+
addRef(refItems, (0, _refs2.getRefOrItemsRef)(propSchema, propSchemaPath), predicate);
|
|
118
118
|
};
|
|
119
119
|
if (query.args && typeof query.args === 'string') {
|
|
120
|
-
addRef(refItems, (0,
|
|
120
|
+
addRef(refItems, (0, _refs2.getArgsReferenceWithPath)(query, queryPath), predicate);
|
|
121
121
|
}
|
|
122
122
|
if (query.args && typeof query.args === 'object') {
|
|
123
|
-
(0, _visitor.visitSchemaProperties)((0,
|
|
123
|
+
(0, _visitor.visitSchemaProperties)((0, _refs2.dereferenceSchema)(shapes, query.args), queryPath, propertyVisitor);
|
|
124
124
|
}
|
|
125
125
|
if (query.shape) {
|
|
126
|
-
const refItem = (0,
|
|
126
|
+
const refItem = (0, _refs2.parseReturnShape)(query.shape).ref;
|
|
127
127
|
if (refItem) {
|
|
128
128
|
addRef(refItems, {
|
|
129
129
|
...refItem,
|
|
@@ -166,22 +166,22 @@ function collectReferencedShapeNames(layerId, refSet) {
|
|
|
166
166
|
if (args && typeof args === 'object') {
|
|
167
167
|
Object.values(args.properties).forEach(collect);
|
|
168
168
|
}
|
|
169
|
-
const argsRefItem = (0,
|
|
169
|
+
const argsRefItem = (0, _refs2.getArgsReferenceWithPath)(schema);
|
|
170
170
|
if (argsRefItem) {
|
|
171
|
-
refSet.add((0,
|
|
171
|
+
refSet.add((0, _refs2.refItemToString)(addLayerId(argsRefItem)));
|
|
172
172
|
}
|
|
173
|
-
const refItem = (0,
|
|
173
|
+
const refItem = (0, _refs2.getRefOrItemsRef)(schema);
|
|
174
174
|
if (refItem) {
|
|
175
|
-
refSet.add((0,
|
|
175
|
+
refSet.add((0, _refs2.refItemToString)(addLayerId(refItem)));
|
|
176
176
|
}
|
|
177
177
|
};
|
|
178
178
|
return collect;
|
|
179
179
|
}
|
|
180
180
|
function collectServiceRefs(flattenedSchema, getLayer) {
|
|
181
|
-
const refs = new Set(getAllRefs(flattenedSchema, refItem => refItem.layerId !== 'local').map(
|
|
181
|
+
const refs = new Set(getAllRefs(flattenedSchema, refItem => refItem.layerId !== 'local').map(_refs2.refItemToString));
|
|
182
182
|
if (refs.size) {
|
|
183
183
|
for (const ref of refs) {
|
|
184
|
-
const [layerId, shapeName] = (0,
|
|
184
|
+
const [layerId, shapeName] = (0, _refs2.splitAtRef)(ref);
|
|
185
185
|
if (layerId !== 'local') {
|
|
186
186
|
const layer = getLayer(layerId);
|
|
187
187
|
const shape = layer?.shapes?.[shapeName];
|
|
@@ -194,9 +194,7 @@ function collectServiceRefs(flattenedSchema, getLayer) {
|
|
|
194
194
|
return refs;
|
|
195
195
|
}
|
|
196
196
|
function ensureServiceLayer(flattenedSchema, layerId) {
|
|
197
|
-
|
|
198
|
-
flattenedSchema.serviceLayers = {};
|
|
199
|
-
}
|
|
197
|
+
flattenedSchema.serviceLayers ||= {};
|
|
200
198
|
let serviceLayer = flattenedSchema.serviceLayers[layerId];
|
|
201
199
|
if (!serviceLayer) {
|
|
202
200
|
serviceLayer = {
|
|
@@ -215,7 +213,7 @@ function rewriteLayerId(localShapes, layerId, query) {
|
|
|
215
213
|
const propertyVisitor = (propSchema, propSchemaPath) => {
|
|
216
214
|
const ref = (propSchema.items ?? propSchema)['@ref'];
|
|
217
215
|
if (ref) {
|
|
218
|
-
const [argsLayerId, shapeName] = (0,
|
|
216
|
+
const [argsLayerId, shapeName] = (0, _refs2.splitAtRef)(ref);
|
|
219
217
|
if (argsLayerId === 'local' && !localShapes[shapeName]) {
|
|
220
218
|
const path = propSchemaPath.concat(propSchema.items ? ['items', '@ref'] : ['@ref']);
|
|
221
219
|
(0, _set.default)(newQuery, path, `${layerId}:${shapeName}`);
|
|
@@ -224,7 +222,7 @@ function rewriteLayerId(localShapes, layerId, query) {
|
|
|
224
222
|
};
|
|
225
223
|
if (query.args) {
|
|
226
224
|
if (typeof query.args === 'string') {
|
|
227
|
-
const [argsLayerId, shapeName] = (0,
|
|
225
|
+
const [argsLayerId, shapeName] = (0, _refs2.splitAtRef)((0, _refs.parseTemplateShape)(query.args).shapeName);
|
|
228
226
|
if (argsLayerId === 'local' && !localShapes[shapeName]) {
|
|
229
227
|
newQuery.args = `${layerId}:${shapeName}`;
|
|
230
228
|
}
|
|
@@ -233,14 +231,14 @@ function rewriteLayerId(localShapes, layerId, query) {
|
|
|
233
231
|
}
|
|
234
232
|
}
|
|
235
233
|
if (typeof query.shape === 'string') {
|
|
236
|
-
const [argsLayerId, shapeName] = (0,
|
|
234
|
+
const [argsLayerId, shapeName] = (0, _refs2.splitAtRef)((0, _refs.parseTemplateShape)(query.shape).shapeName);
|
|
237
235
|
if (argsLayerId === 'local' && !localShapes[shapeName]) {
|
|
238
236
|
newQuery.shape = `${layerId}:${shapeName}`;
|
|
239
237
|
}
|
|
240
238
|
} else {
|
|
241
239
|
const ref = query.shape.items['@ref'];
|
|
242
240
|
if (ref) {
|
|
243
|
-
const [argsLayerId, shapeName] = (0,
|
|
241
|
+
const [argsLayerId, shapeName] = (0, _refs2.splitAtRef)(ref);
|
|
244
242
|
if (argsLayerId === 'local' && !localShapes[shapeName]) {
|
|
245
243
|
(0, _set.default)(newQuery, ['shape', 'items', '@ref'], `${layerId}:${shapeName}`);
|
|
246
244
|
}
|
|
@@ -312,14 +310,12 @@ function flattenSchema(projectSchema, getLayer) {
|
|
|
312
310
|
|
|
313
311
|
// Preserve original service schema shapes
|
|
314
312
|
for (const refStr of collectServiceRefs(flattenedSchema, getLayer)) {
|
|
315
|
-
const [layerId, shapeName] = (0,
|
|
313
|
+
const [layerId, shapeName] = (0, _refs2.splitAtRef)(refStr);
|
|
316
314
|
if (layerId !== 'local') {
|
|
317
315
|
const shape = getLayer(layerId)?.shapes?.[shapeName];
|
|
318
316
|
if (shape) {
|
|
319
317
|
const serviceLayer = ensureServiceLayer(flattenedSchema, layerId);
|
|
320
|
-
|
|
321
|
-
serviceLayer.shapes = {};
|
|
322
|
-
}
|
|
318
|
+
serviceLayer.shapes ||= {};
|
|
323
319
|
serviceLayer.shapes[shapeName] = shape;
|
|
324
320
|
}
|
|
325
321
|
}
|
package/dist/layers/refs.d.ts
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/// <reference types="lodash" />
|
|
2
|
-
import type { SchemaPath } from '../types';
|
|
3
2
|
import type { Maybe } from '@takeshape/util';
|
|
4
3
|
import type { PropertySchemaV4_0_0, QueryJSONV4_0_0, ShapeMapV4_0_0, ShapeJSONV4_0_0, ReturnShapeV4_0_0 } from '../project-schema';
|
|
4
|
+
import type { SchemaPath } from '../types';
|
|
5
5
|
/**
|
|
6
6
|
* This interface describes a parsed `@ref` or `$ref`.
|
|
7
7
|
* The intended usage is to convert a schema with a ref to a RefItem which can then
|
|
8
8
|
* be passed to the various rich utilities in this file.
|
|
9
9
|
*/
|
|
10
|
-
export
|
|
10
|
+
export type RefItem = {
|
|
11
11
|
typeName: string;
|
|
12
12
|
layerId: string;
|
|
13
13
|
template?: string;
|
|
14
|
-
}
|
|
14
|
+
};
|
|
15
15
|
/**
|
|
16
16
|
* Adds a schema path, needed when visiting a whole schema to report errors.
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
18
|
+
export type RefItemWithPath = {
|
|
19
19
|
path: SchemaPath;
|
|
20
|
-
}
|
|
20
|
+
} & RefItem;
|
|
21
21
|
/**
|
|
22
22
|
* Safely turn a "template" shape reference (`@args`, `args`, `shape`) into a `RefItem`
|
|
23
23
|
*
|
|
@@ -94,11 +94,11 @@ export declare function hasRef(contentSchema: PropertySchemaV4_0_0): boolean;
|
|
|
94
94
|
export declare function hasResolvableRef(shapes: ShapeMapV4_0_0, contentSchema: PropertySchemaV4_0_0): boolean;
|
|
95
95
|
export declare function getArgsReferenceWithPath(argsSchema: PropertySchemaV4_0_0 | QueryJSONV4_0_0, schemaPath?: SchemaPath): Maybe<RefItemWithPath>;
|
|
96
96
|
export declare function dereferenceSchema(shapes: ShapeMapV4_0_0, shapeOrFieldSchema: PropertySchemaV4_0_0, schemaPath?: SchemaPath): PropertySchemaV4_0_0;
|
|
97
|
-
export
|
|
97
|
+
export type ParsedReturnShape = {
|
|
98
98
|
isArray: boolean;
|
|
99
99
|
template?: string;
|
|
100
100
|
shapeName: string;
|
|
101
101
|
ref?: RefItem;
|
|
102
|
-
}
|
|
102
|
+
};
|
|
103
103
|
export declare function parseReturnShape(shape: ReturnShapeV4_0_0): ParsedReturnShape;
|
|
104
104
|
//# sourceMappingURL=refs.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"refs.d.ts","sourceRoot":"","sources":["../../../src/layers/refs.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAC,
|
|
1
|
+
{"version":3,"file":"refs.d.ts","sourceRoot":"","sources":["../../../src/layers/refs.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAC,KAAK,EAAC,MAAM,iBAAiB,CAAC;AAM3C,OAAO,KAAK,EACV,oBAAoB,EACpB,eAAe,EACf,cAAc,EACd,eAAe,EACf,iBAAiB,EAClB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAC,UAAU,EAAC,MAAM,UAAU,CAAC;AAGzC;;;;GAIG;AACH,MAAM,MAAM,OAAO,GAAG;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,IAAI,EAAE,UAAU,CAAC;CAClB,GAAG,OAAO,CAAC;AAEZ;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAIrE;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,GAAG,KAAK,CAAC,eAAe,CAAC,CAE1G;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAW1D;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAQxE;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,SAAS,EAAE,oBAAoB,GAAG,KAAK,CAAC,OAAO,CAAC,CAKtE;AAED,wBAAgB,cAAc,CAAC,SAAS,EAAE,oBAAoB,EAAE,UAAU,GAAE,UAAe,GAAG,KAAK,CAAC,eAAe,CAAC,CASnH;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAEpE;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,SAAS,EAAE,oBAAoB,EAAE,UAAU,GAAE,UAAe,GAAG,KAAK,CAAC,eAAe,CAAC,CAUrH;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAExD;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,cAAc,EAAE,OAAO,EAAE,OAAO,GAAG,KAAK,CAAC,eAAe,CAAC,CAE/F;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,iBAAkB,oBAAoB,gBAAgB,oBAAoB,wFAC3C,CAAC;AAE7D;;;GAGG;AACH,wBAAgB,SAAS,CAAC,MAAM,EAAE,cAAc,EAAE,aAAa,EAAE,oBAAoB,GAAG,oBAAoB,CAW3G;AAED;;GAEG;AACH,wBAAgB,MAAM,CAAC,aAAa,EAAE,oBAAoB,GAAG,OAAO,CAcnE;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,cAAc,EAAE,aAAa,EAAE,oBAAoB,GAAG,OAAO,CAcrG;AAED,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,oBAAoB,GAAG,eAAe,EAClD,UAAU,GAAE,UAAe,GAC1B,KAAK,CAAC,eAAe,CAAC,CAYxB;AAQD,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,cAAc,EACtB,kBAAkB,EAAE,oBAAoB,EACxC,UAAU,GAAE,UAAe,GAC1B,oBAAoB,CAkCtB;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,iBAAiB,GAAG,iBAAiB,CAqB5E"}
|
package/dist/layers/refs.js
CHANGED
|
@@ -20,12 +20,12 @@ exports.refExpressionToShape = refExpressionToShape;
|
|
|
20
20
|
exports.refItemToShape = refItemToShape;
|
|
21
21
|
exports.refItemToString = refItemToString;
|
|
22
22
|
exports.splitAtRef = splitAtRef;
|
|
23
|
-
var _typeUtils = require("./type-utils");
|
|
24
|
-
var _refs = require("../refs");
|
|
25
23
|
var _assign = _interopRequireDefault(require("lodash/fp/assign"));
|
|
26
24
|
var _omit = _interopRequireDefault(require("lodash/fp/omit"));
|
|
27
25
|
var _util = require("@takeshape/util");
|
|
28
26
|
var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
|
|
27
|
+
var _refs = require("../refs");
|
|
28
|
+
var _typeUtils = require("./type-utils");
|
|
29
29
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
30
30
|
/**
|
|
31
31
|
* This interface describes a parsed `@ref` or `$ref`.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BasicResolverV4_0_0, ComposeResolverV4_0_0, TakeshapeResolverV4_0_0, GraphqlResolverV4_0_0, RestResolverV4_0_0, AwsLambdaResolverV4_0_0, UtilResolverV4_0_0, DirectiveMappingMapV4_0_0, DirectiveConfigV4_0_0, DirectiveMappingArrayV4_0_0, ParameterSerializeContentOptionsV4_0_0, ParameterOpV4_0_0, ParameterOpNestedV4_0_0, ParameterOpMappingV4_0_0, ParameterOpValueV4_0_0, PropertySchemaV4_0_0, OneOfSchemaV4_0_0, AllOfSchemaV4_0_0, RefSchemaLegacyV4_0_0, RefSchemaV4_0_0, ParameterSerializeStyleOptionsV4_0_0, ParameterSerializeOptionsV4_0_0, ObjectSchemaV4_0_0, ParameterOpOpV4_0_0, ReturnShapeArraySchemaV4_0_0 } from '../project-schema';
|
|
1
|
+
import { type BasicResolverV4_0_0, type ComposeResolverV4_0_0, type TakeshapeResolverV4_0_0, type GraphqlResolverV4_0_0, type RestResolverV4_0_0, type AwsLambdaResolverV4_0_0, type UtilResolverV4_0_0, type DirectiveMappingMapV4_0_0, type DirectiveConfigV4_0_0, type DirectiveMappingArrayV4_0_0, type ParameterSerializeContentOptionsV4_0_0, type ParameterOpV4_0_0, type ParameterOpNestedV4_0_0, type ParameterOpMappingV4_0_0, type ParameterOpValueV4_0_0, type PropertySchemaV4_0_0, type OneOfSchemaV4_0_0, type AllOfSchemaV4_0_0, type RefSchemaLegacyV4_0_0, type RefSchemaV4_0_0, type ParameterSerializeStyleOptionsV4_0_0, type ParameterSerializeOptionsV4_0_0, type ObjectSchemaV4_0_0, type ParameterOpOpV4_0_0, type ReturnShapeArraySchemaV4_0_0 } from '../project-schema';
|
|
2
2
|
/** Resolver Type Utils **/
|
|
3
3
|
/**
|
|
4
4
|
* Only tests that the shape is right, not that the name is correct. That's a job for the validator.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type-utils.d.ts","sourceRoot":"","sources":["../../../src/layers/type-utils.ts"],"names":[],"mappings":"AAKA,OAAO,EACL,mBAAmB,
|
|
1
|
+
{"version":3,"file":"type-utils.d.ts","sourceRoot":"","sources":["../../../src/layers/type-utils.ts"],"names":[],"mappings":"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"}
|
package/dist/layers/visitor.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PropertySchemaV4_0_0, ShapeMapV4_0_0 } from '../project-schema';
|
|
2
|
-
import { SchemaPath } from '../types';
|
|
1
|
+
import { type PropertySchemaV4_0_0, type ShapeMapV4_0_0 } from '../project-schema';
|
|
2
|
+
import { type SchemaPath } from '../types';
|
|
3
3
|
export type PropertyVisitorCallback = (schema: PropertySchemaV4_0_0, path: SchemaPath) => void;
|
|
4
4
|
export declare function visitSchemaProperties(schema: PropertySchemaV4_0_0, path: Array<string | number>, callback: PropertyVisitorCallback): void;
|
|
5
5
|
export declare function visitShapeProperties(shapes: ShapeMapV4_0_0, callback: PropertyVisitorCallback): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visitor.d.ts","sourceRoot":"","sources":["../../../src/layers/visitor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,oBAAoB,EAAE,cAAc,EAAC,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"visitor.d.ts","sourceRoot":"","sources":["../../../src/layers/visitor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,oBAAoB,EAAE,KAAK,cAAc,EAAC,MAAM,mBAAmB,CAAC;AACjF,OAAO,EAAC,KAAK,UAAU,EAAC,MAAM,UAAU,CAAC;AAGzC,MAAM,MAAM,uBAAuB,GAAG,CAAC,MAAM,EAAE,oBAAoB,EAAE,IAAI,EAAE,UAAU,KAAK,IAAI,CAAC;AAE/F,wBAAgB,qBAAqB,CACnC,MAAM,EAAE,oBAAoB,EAC5B,IAAI,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,EAC5B,QAAQ,EAAE,uBAAuB,GAChC,IAAI,CA4BN;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,uBAAuB,GAAG,IAAI,CAIpG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ProjectSchemaJSONV1_0_0, ProjectSchemaJSONV3_0_0 } from '../../project-schema';
|
|
2
1
|
import type { MigrateFunction } from '../types';
|
|
2
|
+
import type { ProjectSchemaJSONV1_0_0, ProjectSchemaJSONV3_0_0 } from '../../project-schema';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV1_0_0, ProjectSchemaJSONV3_0_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.0.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.0.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.0.0.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"v3.0.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.0.0.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EAEV,uBAAuB,EACvB,uBAAuB,EAQxB,MAAM,sBAAsB,CAAC;AA+N9B,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,uBAAuB,EAAE,uBAAuB,CAuB9E,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -20,7 +20,7 @@ function isColor(schema) {
|
|
|
20
20
|
type,
|
|
21
21
|
properties
|
|
22
22
|
} = schema;
|
|
23
|
-
return Boolean(type === 'object' && properties
|
|
23
|
+
return Boolean(type === 'object' && properties?.hsl && properties.hsv && properties.rgb && properties.hex);
|
|
24
24
|
}
|
|
25
25
|
function getModelType(contentType) {
|
|
26
26
|
if (contentType.single) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ProjectSchemaJSONV3_0_0, ProjectSchemaJSONV3_1_0 } from '../../project-schema';
|
|
2
1
|
import type { MigrateFunction } from '../types';
|
|
2
|
+
import type { ProjectSchemaJSONV3_0_0, ProjectSchemaJSONV3_1_0 } from '../../project-schema';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_0_0, ProjectSchemaJSONV3_1_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.1.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.1.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.1.0.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"v3.1.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.1.0.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,OAAO,KAAK,EACV,uBAAuB,EACvB,uBAAuB,EAIxB,MAAM,sBAAsB,CAAC;AA4L9B,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,uBAAuB,EAAE,uBAAuB,CAgC9E,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.10.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.10.0.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"v3.10.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.10.0.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,uBAAuB,EACvB,wBAAwB,EAOzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AA6E9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,uBAAuB,EAAE,wBAAwB,CAW/E,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.11.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.11.0.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"v3.11.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.11.0.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,wBAAwB,EACxB,wBAAwB,EAUzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CA8FhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.13.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.13.0.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"v3.13.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.13.0.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,wBAAwB,EAAE,wBAAwB,EAAsB,MAAM,sBAAsB,CAAC;AAClH,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAchF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ProjectSchemaJSONV3_16_0, ProjectSchemaJSONV3_17_0 } from '../../project-schema';
|
|
2
1
|
import type { MigrateFunction } from '../types';
|
|
2
|
+
import type { ProjectSchemaJSONV3_16_0, ProjectSchemaJSONV3_17_0 } from '../../project-schema';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_16_0, ProjectSchemaJSONV3_17_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.17.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.17.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.17.0.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"v3.17.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.17.0.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EACV,wBAAwB,EACxB,wBAAwB,EAGzB,MAAM,sBAAsB,CAAC;AAE9B,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAmBhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProjectSchemaJSONV3_17_0, ProjectSchemaJSONV3_17_1 } from '../..';
|
|
1
|
+
import { type ProjectSchemaJSONV3_17_0, type ProjectSchemaJSONV3_17_1 } from '../..';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_17_0, ProjectSchemaJSONV3_17_1>;
|
|
4
4
|
export default migrate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.17.1.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.17.1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"v3.17.1.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.17.1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,wBAAwB,EAAE,KAAK,wBAAwB,EAAC,MAAM,OAAO,CAAC;AACnF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ProjectSchemaJSONV3_17_1, ProjectSchemaJSONV3_18_0 } from '../../project-schema';
|
|
2
1
|
import type { MigrateFunction } from '../types';
|
|
2
|
+
import type { ProjectSchemaJSONV3_17_1, ProjectSchemaJSONV3_18_0 } from '../../project-schema';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_17_1, ProjectSchemaJSONV3_18_0>;
|
|
4
4
|
export default migrate;
|
|
5
5
|
//# sourceMappingURL=v3.18.0.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.18.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.18.0.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"v3.18.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.18.0.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAC9C,OAAO,KAAK,EACV,wBAAwB,EACxB,wBAAwB,EAGzB,MAAM,sBAAsB,CAAC;AAE9B,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAiEhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.18.1.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.18.1.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"v3.18.1.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.18.1.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,wBAAwB,EACxB,wBAAwB,EAGzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAI9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAUhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.18.2.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.18.2.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"v3.18.2.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.18.2.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AAC7F,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAgB9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAKhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProjectSchemaJSONV3_18_2, ProjectSchemaJSONV3_19_0 } from '../..';
|
|
1
|
+
import { type ProjectSchemaJSONV3_18_2, type ProjectSchemaJSONV3_19_0 } from '../..';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_18_2, ProjectSchemaJSONV3_19_0>;
|
|
4
4
|
export default migrate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.19.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.19.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"v3.19.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.19.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,wBAAwB,EAAE,KAAK,wBAAwB,EAAC,MAAM,OAAO,CAAC;AACnF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.20.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.20.0.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"v3.20.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.20.0.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AAC7F,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAkB9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAKhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProjectSchemaJSONV3_20_0, ProjectSchemaJSONV3_21_0 } from '../..';
|
|
1
|
+
import { type ProjectSchemaJSONV3_20_0, type ProjectSchemaJSONV3_21_0 } from '../..';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_20_0, ProjectSchemaJSONV3_21_0>;
|
|
4
4
|
export default migrate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.21.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.21.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"v3.21.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.21.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,wBAAwB,EAAE,KAAK,wBAAwB,EAAC,MAAM,OAAO,CAAC;AACnF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProjectSchemaJSONV3_21_0, ProjectSchemaJSONV3_22_0 } from '../..';
|
|
1
|
+
import { type ProjectSchemaJSONV3_21_0, type ProjectSchemaJSONV3_22_0 } from '../..';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_21_0, ProjectSchemaJSONV3_22_0>;
|
|
4
4
|
export default migrate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.22.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.22.0.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"v3.22.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.22.0.ts"],"names":[],"mappings":"AAEA,OAAO,EAAiC,KAAK,wBAAwB,EAAE,KAAK,wBAAwB,EAAC,MAAM,OAAO,CAAC;AACnH,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAwBhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProjectSchemaJSONV3_22_0, ProjectSchemaJSONV3_23_0 } from '../..';
|
|
1
|
+
import { type ProjectSchemaJSONV3_22_0, type ProjectSchemaJSONV3_23_0 } from '../..';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_22_0, ProjectSchemaJSONV3_23_0>;
|
|
4
4
|
export default migrate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.23.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.23.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"v3.23.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.23.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,wBAAwB,EAAE,KAAK,wBAAwB,EAAC,MAAM,OAAO,CAAC;AACnF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProjectSchemaJSONV3_23_0, ProjectSchemaJSONV3_24_0 } from '../..';
|
|
1
|
+
import { type ProjectSchemaJSONV3_23_0, type ProjectSchemaJSONV3_24_0 } from '../..';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_23_0, ProjectSchemaJSONV3_24_0>;
|
|
4
4
|
export default migrate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.24.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.24.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"v3.24.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.24.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,wBAAwB,EAAE,KAAK,wBAAwB,EAAC,MAAM,OAAO,CAAC;AACnF,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAUhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProjectSchemaJSONV3_24_0, ProjectSchemaJSONV3_25_0 } from '../../project-schema';
|
|
1
|
+
import { type ProjectSchemaJSONV3_24_0, type ProjectSchemaJSONV3_25_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_24_0, ProjectSchemaJSONV3_25_0>;
|
|
4
4
|
export default migrate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.25.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.25.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"v3.25.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.25.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,wBAAwB,EAAE,KAAK,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AAClG,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAUhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProjectSchemaJSONV3_25_0, ProjectSchemaJSONV3_26_0 } from '../../project-schema';
|
|
1
|
+
import { type ProjectSchemaJSONV3_25_0, type ProjectSchemaJSONV3_26_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_25_0, ProjectSchemaJSONV3_26_0>;
|
|
4
4
|
export default migrate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.26.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.26.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"v3.26.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.26.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,wBAAwB,EAAE,KAAK,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AAClG,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProjectSchemaJSONV3_26_0, ProjectSchemaJSONV3_27_0 } from '../../project-schema';
|
|
1
|
+
import { type ProjectSchemaJSONV3_26_0, type ProjectSchemaJSONV3_27_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_26_0, ProjectSchemaJSONV3_27_0>;
|
|
4
4
|
export default migrate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.27.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.27.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"v3.27.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.27.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,wBAAwB,EAAE,KAAK,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AAClG,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProjectSchemaJSONV3_27_0, ProjectSchemaJSONV3_28_0 } from '../../project-schema';
|
|
1
|
+
import { type ProjectSchemaJSONV3_27_0, type ProjectSchemaJSONV3_28_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_27_0, ProjectSchemaJSONV3_28_0>;
|
|
4
4
|
export default migrate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.28.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.28.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"v3.28.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.28.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,wBAAwB,EAAE,KAAK,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AAClG,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProjectSchemaJSONV3_28_0, ProjectSchemaJSONV3_29_0 } from '../../project-schema';
|
|
1
|
+
import { type ProjectSchemaJSONV3_28_0, type ProjectSchemaJSONV3_29_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_28_0, ProjectSchemaJSONV3_29_0>;
|
|
4
4
|
export default migrate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.29.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.29.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"v3.29.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.29.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,wBAAwB,EAAE,KAAK,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AAClG,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProjectSchemaJSONV3_29_0, ProjectSchemaJSONV3_30_0 } from '../../project-schema';
|
|
1
|
+
import { type ProjectSchemaJSONV3_29_0, type ProjectSchemaJSONV3_30_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_29_0, ProjectSchemaJSONV3_30_0>;
|
|
4
4
|
export default migrate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.30.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.30.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"v3.30.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.30.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,wBAAwB,EAAE,KAAK,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AAClG,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProjectSchemaJSONV3_30_0, ProjectSchemaJSONV3_31_0 } from '../../project-schema';
|
|
1
|
+
import { type ProjectSchemaJSONV3_30_0, type ProjectSchemaJSONV3_31_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_30_0, ProjectSchemaJSONV3_31_0>;
|
|
4
4
|
export default migrate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.31.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.31.0.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"v3.31.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.31.0.ts"],"names":[],"mappings":"AAKA,OAAO,EAAC,KAAK,wBAAwB,EAAE,KAAK,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AAClG,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAU9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAwBhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProjectSchemaJSONV3_31_0, ProjectSchemaJSONV3_32_0 } from '../../project-schema';
|
|
1
|
+
import { type ProjectSchemaJSONV3_31_0, type ProjectSchemaJSONV3_32_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_31_0, ProjectSchemaJSONV3_32_0>;
|
|
4
4
|
export default migrate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.32.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.32.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,wBAAwB,
|
|
1
|
+
{"version":3,"file":"v3.32.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.32.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAK9B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAmC9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAmChF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -66,18 +66,16 @@ const migrate = async (_, projectSchema) => {
|
|
|
66
66
|
if (indexedShapes) {
|
|
67
67
|
for (const [name, config] of Object.entries(indexedShapes)) {
|
|
68
68
|
let shape = updatedShapes[name];
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
};
|
|
80
|
-
}
|
|
69
|
+
shape ||= {
|
|
70
|
+
name,
|
|
71
|
+
id: name,
|
|
72
|
+
title: name,
|
|
73
|
+
schema: {
|
|
74
|
+
extends: [{
|
|
75
|
+
'@ref': (0, _refs.normalizeRefExpression)(projectSchema, name)
|
|
76
|
+
}]
|
|
77
|
+
}
|
|
78
|
+
};
|
|
81
79
|
const loaders = queriesToLoaders(config.queries);
|
|
82
80
|
if (loaders) {
|
|
83
81
|
shape.loaders = loaders;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProjectSchemaJSONV3_32_0, ProjectSchemaJSONV3_33_0 } from '../../project-schema';
|
|
1
|
+
import { type ProjectSchemaJSONV3_32_0, type ProjectSchemaJSONV3_33_0 } from '../../project-schema';
|
|
2
2
|
import type { MigrateFunction } from '../types';
|
|
3
3
|
declare const migrate: MigrateFunction<ProjectSchemaJSONV3_32_0, ProjectSchemaJSONV3_33_0>;
|
|
4
4
|
export default migrate;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.33.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.33.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,wBAAwB,EAAE,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"v3.33.0.d.ts","sourceRoot":"","sources":["../../../../src/migration/to/v3.33.0.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,KAAK,wBAAwB,EAAE,KAAK,wBAAwB,EAAC,MAAM,sBAAsB,CAAC;AAClG,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,UAAU,CAAC;AAE9C,QAAA,MAAM,OAAO,EAAE,eAAe,CAAC,wBAAwB,EAAE,wBAAwB,CAQhF,CAAC;AAEF,eAAe,OAAO,CAAC"}
|