@revisium/schema-toolkit 0.2.1 → 0.2.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/dist/{chunk-RV56Z2F4.cjs → chunk-2GCG6HJO.cjs} +14 -14
- package/dist/{chunk-RV56Z2F4.cjs.map → chunk-2GCG6HJO.cjs.map} +1 -1
- package/dist/{chunk-22HBQQF4.js → chunk-3E7UGCRR.js} +4 -4
- package/dist/{chunk-22HBQQF4.js.map → chunk-3E7UGCRR.js.map} +1 -1
- package/dist/{chunk-BQWQLLSC.cjs → chunk-JLIZ7QT2.cjs} +74 -6
- package/dist/chunk-JLIZ7QT2.cjs.map +1 -0
- package/dist/{chunk-62P6L7GI.js → chunk-WCFA4226.js} +70 -6
- package/dist/chunk-WCFA4226.js.map +1 -0
- package/dist/index.cjs +69 -53
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/{json-string.store-O1J0j-a1.d.cts → json-string.store-BNF1Y93E.d.cts} +1 -0
- package/dist/{json-string.store-S9FXT39Q.d.ts → json-string.store-qHcWNv07.d.ts} +1 -0
- package/dist/lib/index.cjs +32 -32
- package/dist/lib/index.d.cts +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +2 -2
- package/dist/model/index.cjs +38 -22
- package/dist/model/index.d.cts +8 -4
- package/dist/model/index.d.ts +8 -4
- package/dist/model/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-62P6L7GI.js.map +0 -1
- package/dist/chunk-BQWQLLSC.cjs.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -4,10 +4,10 @@ require('./chunk-FD57PCAC.cjs');
|
|
|
4
4
|
var chunkEJYILFAK_cjs = require('./chunk-EJYILFAK.cjs');
|
|
5
5
|
var chunkIPL2CGVA_cjs = require('./chunk-IPL2CGVA.cjs');
|
|
6
6
|
require('./chunk-ODCH3PP2.cjs');
|
|
7
|
-
var
|
|
7
|
+
var chunk2GCG6HJO_cjs = require('./chunk-2GCG6HJO.cjs');
|
|
8
8
|
var chunk47AQWLHU_cjs = require('./chunk-47AQWLHU.cjs');
|
|
9
9
|
var chunkXNFSFT7T_cjs = require('./chunk-XNFSFT7T.cjs');
|
|
10
|
-
var
|
|
10
|
+
var chunkJLIZ7QT2_cjs = require('./chunk-JLIZ7QT2.cjs');
|
|
11
11
|
var chunkV2SSSD5X_cjs = require('./chunk-V2SSSD5X.cjs');
|
|
12
12
|
var chunkVGTHMWJJ_cjs = require('./chunk-VGTHMWJJ.cjs');
|
|
13
13
|
|
|
@@ -59,103 +59,103 @@ Object.defineProperty(exports, "CustomSchemeKeywords", {
|
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "SchemaTable", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunk2GCG6HJO_cjs.SchemaTable; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "VALIDATE_JSON_FIELD_NAME_ERROR_MESSAGE", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunk2GCG6HJO_cjs.VALIDATE_JSON_FIELD_NAME_ERROR_MESSAGE; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "applyAddPatch", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunk2GCG6HJO_cjs.applyAddPatch; }
|
|
71
71
|
});
|
|
72
72
|
Object.defineProperty(exports, "applyMovePatch", {
|
|
73
73
|
enumerable: true,
|
|
74
|
-
get: function () { return
|
|
74
|
+
get: function () { return chunk2GCG6HJO_cjs.applyMovePatch; }
|
|
75
75
|
});
|
|
76
76
|
Object.defineProperty(exports, "applyRemovePatch", {
|
|
77
77
|
enumerable: true,
|
|
78
|
-
get: function () { return
|
|
78
|
+
get: function () { return chunk2GCG6HJO_cjs.applyRemovePatch; }
|
|
79
79
|
});
|
|
80
80
|
Object.defineProperty(exports, "applyReplacePatch", {
|
|
81
81
|
enumerable: true,
|
|
82
|
-
get: function () { return
|
|
82
|
+
get: function () { return chunk2GCG6HJO_cjs.applyReplacePatch; }
|
|
83
83
|
});
|
|
84
84
|
Object.defineProperty(exports, "createJsonObjectSchemaStore", {
|
|
85
85
|
enumerable: true,
|
|
86
|
-
get: function () { return
|
|
86
|
+
get: function () { return chunk2GCG6HJO_cjs.createJsonObjectSchemaStore; }
|
|
87
87
|
});
|
|
88
88
|
Object.defineProperty(exports, "createJsonSchemaStore", {
|
|
89
89
|
enumerable: true,
|
|
90
|
-
get: function () { return
|
|
90
|
+
get: function () { return chunk2GCG6HJO_cjs.createJsonSchemaStore; }
|
|
91
91
|
});
|
|
92
92
|
Object.defineProperty(exports, "createPrimitiveStoreBySchema", {
|
|
93
93
|
enumerable: true,
|
|
94
|
-
get: function () { return
|
|
94
|
+
get: function () { return chunk2GCG6HJO_cjs.createPrimitiveStoreBySchema; }
|
|
95
95
|
});
|
|
96
96
|
Object.defineProperty(exports, "getDBJsonPathByJsonSchemaStore", {
|
|
97
97
|
enumerable: true,
|
|
98
|
-
get: function () { return
|
|
98
|
+
get: function () { return chunk2GCG6HJO_cjs.getDBJsonPathByJsonSchemaStore; }
|
|
99
99
|
});
|
|
100
100
|
Object.defineProperty(exports, "getForeignKeyPatchesFromSchema", {
|
|
101
101
|
enumerable: true,
|
|
102
|
-
get: function () { return
|
|
102
|
+
get: function () { return chunk2GCG6HJO_cjs.getForeignKeyPatchesFromSchema; }
|
|
103
103
|
});
|
|
104
104
|
Object.defineProperty(exports, "getForeignKeysFromSchema", {
|
|
105
105
|
enumerable: true,
|
|
106
|
-
get: function () { return
|
|
106
|
+
get: function () { return chunk2GCG6HJO_cjs.getForeignKeysFromSchema; }
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "getForeignKeysFromValue", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunk2GCG6HJO_cjs.getForeignKeysFromValue; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "getInvalidFieldNamesInSchema", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunk2GCG6HJO_cjs.getInvalidFieldNamesInSchema; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "getJsonSchemaStoreByPath", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunk2GCG6HJO_cjs.getJsonSchemaStoreByPath; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "getJsonValueStoreByPath", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunk2GCG6HJO_cjs.getJsonValueStoreByPath; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "getParentForPath", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunk2GCG6HJO_cjs.getParentForPath; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "getPathByStore", {
|
|
129
129
|
enumerable: true,
|
|
130
|
-
get: function () { return
|
|
130
|
+
get: function () { return chunk2GCG6HJO_cjs.getPathByStore; }
|
|
131
131
|
});
|
|
132
132
|
Object.defineProperty(exports, "pluginRefs", {
|
|
133
133
|
enumerable: true,
|
|
134
|
-
get: function () { return
|
|
134
|
+
get: function () { return chunk2GCG6HJO_cjs.pluginRefs; }
|
|
135
135
|
});
|
|
136
136
|
Object.defineProperty(exports, "replaceForeignKeyValue", {
|
|
137
137
|
enumerable: true,
|
|
138
|
-
get: function () { return
|
|
138
|
+
get: function () { return chunk2GCG6HJO_cjs.replaceForeignKeyValue; }
|
|
139
139
|
});
|
|
140
140
|
Object.defineProperty(exports, "resolveRefs", {
|
|
141
141
|
enumerable: true,
|
|
142
|
-
get: function () { return
|
|
142
|
+
get: function () { return chunk2GCG6HJO_cjs.resolveRefs; }
|
|
143
143
|
});
|
|
144
144
|
Object.defineProperty(exports, "saveSharedFields", {
|
|
145
145
|
enumerable: true,
|
|
146
|
-
get: function () { return
|
|
146
|
+
get: function () { return chunk2GCG6HJO_cjs.saveSharedFields; }
|
|
147
147
|
});
|
|
148
148
|
Object.defineProperty(exports, "traverseStore", {
|
|
149
149
|
enumerable: true,
|
|
150
|
-
get: function () { return
|
|
150
|
+
get: function () { return chunk2GCG6HJO_cjs.traverseStore; }
|
|
151
151
|
});
|
|
152
152
|
Object.defineProperty(exports, "traverseValue", {
|
|
153
153
|
enumerable: true,
|
|
154
|
-
get: function () { return
|
|
154
|
+
get: function () { return chunk2GCG6HJO_cjs.traverseValue; }
|
|
155
155
|
});
|
|
156
156
|
Object.defineProperty(exports, "validateJsonFieldName", {
|
|
157
157
|
enumerable: true,
|
|
158
|
-
get: function () { return
|
|
158
|
+
get: function () { return chunk2GCG6HJO_cjs.validateJsonFieldName; }
|
|
159
159
|
});
|
|
160
160
|
Object.defineProperty(exports, "fileSchema", {
|
|
161
161
|
enumerable: true,
|
|
@@ -199,103 +199,119 @@ Object.defineProperty(exports, "SystemSchemaIds", {
|
|
|
199
199
|
});
|
|
200
200
|
Object.defineProperty(exports, "JsonArrayStore", {
|
|
201
201
|
enumerable: true,
|
|
202
|
-
get: function () { return
|
|
202
|
+
get: function () { return chunkJLIZ7QT2_cjs.JsonArrayStore; }
|
|
203
203
|
});
|
|
204
204
|
Object.defineProperty(exports, "JsonArrayValueStore", {
|
|
205
205
|
enumerable: true,
|
|
206
|
-
get: function () { return
|
|
206
|
+
get: function () { return chunkJLIZ7QT2_cjs.JsonArrayValueStore; }
|
|
207
207
|
});
|
|
208
208
|
Object.defineProperty(exports, "JsonBooleanStore", {
|
|
209
209
|
enumerable: true,
|
|
210
|
-
get: function () { return
|
|
210
|
+
get: function () { return chunkJLIZ7QT2_cjs.JsonBooleanStore; }
|
|
211
211
|
});
|
|
212
212
|
Object.defineProperty(exports, "JsonBooleanValueStore", {
|
|
213
213
|
enumerable: true,
|
|
214
|
-
get: function () { return
|
|
214
|
+
get: function () { return chunkJLIZ7QT2_cjs.JsonBooleanValueStore; }
|
|
215
215
|
});
|
|
216
216
|
Object.defineProperty(exports, "JsonNumberStore", {
|
|
217
217
|
enumerable: true,
|
|
218
|
-
get: function () { return
|
|
218
|
+
get: function () { return chunkJLIZ7QT2_cjs.JsonNumberStore; }
|
|
219
219
|
});
|
|
220
220
|
Object.defineProperty(exports, "JsonNumberValueStore", {
|
|
221
221
|
enumerable: true,
|
|
222
|
-
get: function () { return
|
|
222
|
+
get: function () { return chunkJLIZ7QT2_cjs.JsonNumberValueStore; }
|
|
223
223
|
});
|
|
224
224
|
Object.defineProperty(exports, "JsonObjectStore", {
|
|
225
225
|
enumerable: true,
|
|
226
|
-
get: function () { return
|
|
226
|
+
get: function () { return chunkJLIZ7QT2_cjs.JsonObjectStore; }
|
|
227
227
|
});
|
|
228
228
|
Object.defineProperty(exports, "JsonObjectValueStore", {
|
|
229
229
|
enumerable: true,
|
|
230
|
-
get: function () { return
|
|
230
|
+
get: function () { return chunkJLIZ7QT2_cjs.JsonObjectValueStore; }
|
|
231
231
|
});
|
|
232
232
|
Object.defineProperty(exports, "JsonStringStore", {
|
|
233
233
|
enumerable: true,
|
|
234
|
-
get: function () { return
|
|
234
|
+
get: function () { return chunkJLIZ7QT2_cjs.JsonStringStore; }
|
|
235
235
|
});
|
|
236
236
|
Object.defineProperty(exports, "JsonStringValueStore", {
|
|
237
237
|
enumerable: true,
|
|
238
|
-
get: function () { return
|
|
238
|
+
get: function () { return chunkJLIZ7QT2_cjs.JsonStringValueStore; }
|
|
239
239
|
});
|
|
240
240
|
Object.defineProperty(exports, "addSharedFieldsFromState", {
|
|
241
241
|
enumerable: true,
|
|
242
|
-
get: function () { return
|
|
242
|
+
get: function () { return chunkJLIZ7QT2_cjs.addSharedFieldsFromState; }
|
|
243
243
|
});
|
|
244
244
|
Object.defineProperty(exports, "createJsonArrayValueStore", {
|
|
245
245
|
enumerable: true,
|
|
246
|
-
get: function () { return
|
|
246
|
+
get: function () { return chunkJLIZ7QT2_cjs.createJsonArrayValueStore; }
|
|
247
247
|
});
|
|
248
248
|
Object.defineProperty(exports, "createJsonObjectValueStore", {
|
|
249
249
|
enumerable: true,
|
|
250
|
-
get: function () { return
|
|
250
|
+
get: function () { return chunkJLIZ7QT2_cjs.createJsonObjectValueStore; }
|
|
251
251
|
});
|
|
252
252
|
Object.defineProperty(exports, "createJsonValueStore", {
|
|
253
253
|
enumerable: true,
|
|
254
|
-
get: function () { return
|
|
254
|
+
get: function () { return chunkJLIZ7QT2_cjs.createJsonValueStore; }
|
|
255
255
|
});
|
|
256
256
|
Object.defineProperty(exports, "createPrimitiveValueStore", {
|
|
257
257
|
enumerable: true,
|
|
258
|
-
get: function () { return
|
|
258
|
+
get: function () { return chunkJLIZ7QT2_cjs.createPrimitiveValueStore; }
|
|
259
259
|
});
|
|
260
|
-
Object.defineProperty(exports, "
|
|
260
|
+
Object.defineProperty(exports, "equal", {
|
|
261
261
|
enumerable: true,
|
|
262
|
-
get: function () { return
|
|
262
|
+
get: function () { return chunkJLIZ7QT2_cjs.equal; }
|
|
263
|
+
});
|
|
264
|
+
Object.defineProperty(exports, "fromArrayToObject", {
|
|
265
|
+
enumerable: true,
|
|
266
|
+
get: function () { return chunkJLIZ7QT2_cjs.fromArrayToObject; }
|
|
263
267
|
});
|
|
264
268
|
Object.defineProperty(exports, "fromArrayTransformation", {
|
|
265
269
|
enumerable: true,
|
|
266
|
-
get: function () { return
|
|
270
|
+
get: function () { return chunkJLIZ7QT2_cjs.fromArrayTransformation; }
|
|
267
271
|
});
|
|
268
272
|
Object.defineProperty(exports, "fromBooleanToNumber", {
|
|
269
273
|
enumerable: true,
|
|
270
|
-
get: function () { return
|
|
274
|
+
get: function () { return chunkJLIZ7QT2_cjs.fromBooleanToNumber; }
|
|
271
275
|
});
|
|
272
276
|
Object.defineProperty(exports, "fromBooleanToString", {
|
|
273
277
|
enumerable: true,
|
|
274
|
-
get: function () { return
|
|
278
|
+
get: function () { return chunkJLIZ7QT2_cjs.fromBooleanToString; }
|
|
275
279
|
});
|
|
276
280
|
Object.defineProperty(exports, "fromNumberToBoolean", {
|
|
277
281
|
enumerable: true,
|
|
278
|
-
get: function () { return
|
|
282
|
+
get: function () { return chunkJLIZ7QT2_cjs.fromNumberToBoolean; }
|
|
279
283
|
});
|
|
280
284
|
Object.defineProperty(exports, "fromNumberToString", {
|
|
281
285
|
enumerable: true,
|
|
282
|
-
get: function () { return
|
|
286
|
+
get: function () { return chunkJLIZ7QT2_cjs.fromNumberToString; }
|
|
287
|
+
});
|
|
288
|
+
Object.defineProperty(exports, "fromObjectToArray", {
|
|
289
|
+
enumerable: true,
|
|
290
|
+
get: function () { return chunkJLIZ7QT2_cjs.fromObjectToArray; }
|
|
291
|
+
});
|
|
292
|
+
Object.defineProperty(exports, "fromObjectToPrimitive", {
|
|
293
|
+
enumerable: true,
|
|
294
|
+
get: function () { return chunkJLIZ7QT2_cjs.fromObjectToPrimitive; }
|
|
295
|
+
});
|
|
296
|
+
Object.defineProperty(exports, "fromPrimitiveToObject", {
|
|
297
|
+
enumerable: true,
|
|
298
|
+
get: function () { return chunkJLIZ7QT2_cjs.fromPrimitiveToObject; }
|
|
283
299
|
});
|
|
284
300
|
Object.defineProperty(exports, "fromStringToBoolean", {
|
|
285
301
|
enumerable: true,
|
|
286
|
-
get: function () { return
|
|
302
|
+
get: function () { return chunkJLIZ7QT2_cjs.fromStringToBoolean; }
|
|
287
303
|
});
|
|
288
304
|
Object.defineProperty(exports, "fromStringToNumber", {
|
|
289
305
|
enumerable: true,
|
|
290
|
-
get: function () { return
|
|
306
|
+
get: function () { return chunkJLIZ7QT2_cjs.fromStringToNumber; }
|
|
291
307
|
});
|
|
292
308
|
Object.defineProperty(exports, "getTransformation", {
|
|
293
309
|
enumerable: true,
|
|
294
|
-
get: function () { return
|
|
310
|
+
get: function () { return chunkJLIZ7QT2_cjs.getTransformation; }
|
|
295
311
|
});
|
|
296
312
|
Object.defineProperty(exports, "toArrayTransformation", {
|
|
297
313
|
enumerable: true,
|
|
298
|
-
get: function () { return
|
|
314
|
+
get: function () { return chunkJLIZ7QT2_cjs.toArrayTransformation; }
|
|
299
315
|
});
|
|
300
316
|
Object.defineProperty(exports, "JsonSchemaTypeName", {
|
|
301
317
|
enumerable: true,
|
package/dist/index.d.cts
CHANGED
|
@@ -5,8 +5,8 @@ export { g as JsonArraySchema, d as JsonBooleanSchema, c as JsonNumberSchema, f
|
|
|
5
5
|
export { fileSchema, rowCreatedAtSchema, rowCreatedIdSchema, rowHashSchema, rowIdSchema, rowPublishedAtSchema, rowSchemaHashSchema, rowUpdatedAtSchema, rowVersionIdSchema } from './plugins/index.cjs';
|
|
6
6
|
export { getAddPatch, getArraySchema, getBooleanSchema, getMovePatch, getNumberSchema, getObjectSchema, getRefSchema, getRemovePatch, getReplacePatch, getStringSchema } from './mocks/index.cjs';
|
|
7
7
|
export { CustomSchemeKeywords, SystemSchemaIds } from './consts/index.cjs';
|
|
8
|
-
export { A as AddedPropertyEvent, C as ChangeNameEvent, f as JsonArrayStore, m as JsonArrayValueStore, b as JsonBooleanStore, k as JsonBooleanValueStore, a as JsonNumberStore, j as JsonNumberValueStore, c as JsonObjectStore, l as JsonObjectValueStore, h as JsonSchemaStore, g as JsonSchemaStorePrimitives, J as JsonStringStore, i as JsonStringValueStore, p as JsonValueStore, o as JsonValueStoreParent, n as JsonValueStorePrimitives, d as MigrateItemsEvent, M as MigratePropertyEvent, R as RemovedPropertyEvent, e as ReplaceItemsEvent } from './json-string.store-
|
|
9
|
-
export {
|
|
8
|
+
export { A as AddedPropertyEvent, C as ChangeNameEvent, f as JsonArrayStore, m as JsonArrayValueStore, b as JsonBooleanStore, k as JsonBooleanValueStore, a as JsonNumberStore, j as JsonNumberValueStore, c as JsonObjectStore, l as JsonObjectValueStore, h as JsonSchemaStore, g as JsonSchemaStorePrimitives, J as JsonStringStore, i as JsonStringValueStore, p as JsonValueStore, o as JsonValueStoreParent, n as JsonValueStorePrimitives, d as MigrateItemsEvent, M as MigratePropertyEvent, R as RemovedPropertyEvent, e as ReplaceItemsEvent } from './json-string.store-BNF1Y93E.cjs';
|
|
9
|
+
export { equal, fromArrayToObject, fromArrayTransformation, fromBooleanToNumber, fromBooleanToString, fromNumberToBoolean, fromNumberToString, fromObjectToArray, fromObjectToPrimitive, fromPrimitiveToObject, fromStringToBoolean, fromStringToNumber, getTransformation, toArrayTransformation } from './model/index.cjs';
|
|
10
10
|
export { GetForeignKeysFromValueType, RefsType, ReplaceForeignKeyValueOptions, SchemaTable, VALIDATE_JSON_FIELD_NAME_ERROR_MESSAGE, addSharedFieldsFromState, applyAddPatch, applyMovePatch, applyRemovePatch, applyReplacePatch, createJsonArrayValueStore, createJsonObjectSchemaStore, createJsonObjectValueStore, createJsonSchemaStore, createJsonValueStore, createPrimitiveStoreBySchema, createPrimitiveValueStore, getDBJsonPathByJsonSchemaStore, getForeignKeyPatchesFromSchema, getForeignKeysFromSchema, getForeignKeysFromValue, getInvalidFieldNamesInSchema, getJsonSchemaStoreByPath, getJsonValueStoreByPath, getParentForPath, getPathByStore, pluginRefs, replaceForeignKeyValue, resolveRefs, saveSharedFields, traverseStore, traverseValue, validateJsonFieldName } from './lib/index.cjs';
|
|
11
11
|
export { arrayMetaSchema, baseStringFields, booleanMetaSchema, historyPatchesSchema, jsonPatchSchema, metaSchema, noForeignKeyStringMetaSchema, notForeignKeyMetaSchema, numberMetaSchema, objectMetaSchema, refMetaSchema, sharedFields, stringMetaSchema, tableMigrationsSchema } from './validation-schemas/index.cjs';
|
|
12
12
|
import 'node:events';
|
package/dist/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ export { g as JsonArraySchema, d as JsonBooleanSchema, c as JsonNumberSchema, f
|
|
|
5
5
|
export { fileSchema, rowCreatedAtSchema, rowCreatedIdSchema, rowHashSchema, rowIdSchema, rowPublishedAtSchema, rowSchemaHashSchema, rowUpdatedAtSchema, rowVersionIdSchema } from './plugins/index.js';
|
|
6
6
|
export { getAddPatch, getArraySchema, getBooleanSchema, getMovePatch, getNumberSchema, getObjectSchema, getRefSchema, getRemovePatch, getReplacePatch, getStringSchema } from './mocks/index.js';
|
|
7
7
|
export { CustomSchemeKeywords, SystemSchemaIds } from './consts/index.js';
|
|
8
|
-
export { A as AddedPropertyEvent, C as ChangeNameEvent, f as JsonArrayStore, m as JsonArrayValueStore, b as JsonBooleanStore, k as JsonBooleanValueStore, a as JsonNumberStore, j as JsonNumberValueStore, c as JsonObjectStore, l as JsonObjectValueStore, h as JsonSchemaStore, g as JsonSchemaStorePrimitives, J as JsonStringStore, i as JsonStringValueStore, p as JsonValueStore, o as JsonValueStoreParent, n as JsonValueStorePrimitives, d as MigrateItemsEvent, M as MigratePropertyEvent, R as RemovedPropertyEvent, e as ReplaceItemsEvent } from './json-string.store-
|
|
9
|
-
export {
|
|
8
|
+
export { A as AddedPropertyEvent, C as ChangeNameEvent, f as JsonArrayStore, m as JsonArrayValueStore, b as JsonBooleanStore, k as JsonBooleanValueStore, a as JsonNumberStore, j as JsonNumberValueStore, c as JsonObjectStore, l as JsonObjectValueStore, h as JsonSchemaStore, g as JsonSchemaStorePrimitives, J as JsonStringStore, i as JsonStringValueStore, p as JsonValueStore, o as JsonValueStoreParent, n as JsonValueStorePrimitives, d as MigrateItemsEvent, M as MigratePropertyEvent, R as RemovedPropertyEvent, e as ReplaceItemsEvent } from './json-string.store-qHcWNv07.js';
|
|
9
|
+
export { equal, fromArrayToObject, fromArrayTransformation, fromBooleanToNumber, fromBooleanToString, fromNumberToBoolean, fromNumberToString, fromObjectToArray, fromObjectToPrimitive, fromPrimitiveToObject, fromStringToBoolean, fromStringToNumber, getTransformation, toArrayTransformation } from './model/index.js';
|
|
10
10
|
export { GetForeignKeysFromValueType, RefsType, ReplaceForeignKeyValueOptions, SchemaTable, VALIDATE_JSON_FIELD_NAME_ERROR_MESSAGE, addSharedFieldsFromState, applyAddPatch, applyMovePatch, applyRemovePatch, applyReplacePatch, createJsonArrayValueStore, createJsonObjectSchemaStore, createJsonObjectValueStore, createJsonSchemaStore, createJsonValueStore, createPrimitiveStoreBySchema, createPrimitiveValueStore, getDBJsonPathByJsonSchemaStore, getForeignKeyPatchesFromSchema, getForeignKeysFromSchema, getForeignKeysFromValue, getInvalidFieldNamesInSchema, getJsonSchemaStoreByPath, getJsonValueStoreByPath, getParentForPath, getPathByStore, pluginRefs, replaceForeignKeyValue, resolveRefs, saveSharedFields, traverseStore, traverseValue, validateJsonFieldName } from './lib/index.js';
|
|
11
11
|
export { arrayMetaSchema, baseStringFields, booleanMetaSchema, historyPatchesSchema, jsonPatchSchema, metaSchema, noForeignKeyStringMetaSchema, notForeignKeyMetaSchema, numberMetaSchema, objectMetaSchema, refMetaSchema, sharedFields, stringMetaSchema, tableMigrationsSchema } from './validation-schemas/index.js';
|
|
12
12
|
import 'node:events';
|
package/dist/index.js
CHANGED
|
@@ -2,10 +2,10 @@ import './chunk-DEPJRTVT.js';
|
|
|
2
2
|
export { getAddPatch, getArraySchema, getBooleanSchema, getMovePatch, getNumberSchema, getObjectSchema, getRefSchema, getRemovePatch, getReplacePatch, getStringSchema } from './chunk-AORPUIKD.js';
|
|
3
3
|
export { CustomSchemeKeywords } from './chunk-5VDDLW7U.js';
|
|
4
4
|
import './chunk-H7W4QNMA.js';
|
|
5
|
-
export { SchemaTable, VALIDATE_JSON_FIELD_NAME_ERROR_MESSAGE, applyAddPatch, applyMovePatch, applyRemovePatch, applyReplacePatch, createJsonObjectSchemaStore, createJsonSchemaStore, createPrimitiveStoreBySchema, getDBJsonPathByJsonSchemaStore, getForeignKeyPatchesFromSchema, getForeignKeysFromSchema, getForeignKeysFromValue, getInvalidFieldNamesInSchema, getJsonSchemaStoreByPath, getJsonValueStoreByPath, getParentForPath, getPathByStore, pluginRefs, replaceForeignKeyValue, resolveRefs, saveSharedFields, traverseStore, traverseValue, validateJsonFieldName } from './chunk-
|
|
5
|
+
export { SchemaTable, VALIDATE_JSON_FIELD_NAME_ERROR_MESSAGE, applyAddPatch, applyMovePatch, applyRemovePatch, applyReplacePatch, createJsonObjectSchemaStore, createJsonSchemaStore, createPrimitiveStoreBySchema, getDBJsonPathByJsonSchemaStore, getForeignKeyPatchesFromSchema, getForeignKeysFromSchema, getForeignKeysFromValue, getInvalidFieldNamesInSchema, getJsonSchemaStoreByPath, getJsonValueStoreByPath, getParentForPath, getPathByStore, pluginRefs, replaceForeignKeyValue, resolveRefs, saveSharedFields, traverseStore, traverseValue, validateJsonFieldName } from './chunk-3E7UGCRR.js';
|
|
6
6
|
export { fileSchema, rowCreatedAtSchema, rowCreatedIdSchema, rowHashSchema, rowIdSchema, rowPublishedAtSchema, rowSchemaHashSchema, rowUpdatedAtSchema, rowVersionIdSchema } from './chunk-22K22MMD.js';
|
|
7
7
|
export { SystemSchemaIds } from './chunk-Q2UOTIMG.js';
|
|
8
|
-
export { JsonArrayStore, JsonArrayValueStore, JsonBooleanStore, JsonBooleanValueStore, JsonNumberStore, JsonNumberValueStore, JsonObjectStore, JsonObjectValueStore, JsonStringStore, JsonStringValueStore, addSharedFieldsFromState, createJsonArrayValueStore, createJsonObjectValueStore, createJsonValueStore, createPrimitiveValueStore,
|
|
8
|
+
export { JsonArrayStore, JsonArrayValueStore, JsonBooleanStore, JsonBooleanValueStore, JsonNumberStore, JsonNumberValueStore, JsonObjectStore, JsonObjectValueStore, JsonStringStore, JsonStringValueStore, addSharedFieldsFromState, createJsonArrayValueStore, createJsonObjectValueStore, createJsonValueStore, createPrimitiveValueStore, equal, fromArrayToObject, fromArrayTransformation, fromBooleanToNumber, fromBooleanToString, fromNumberToBoolean, fromNumberToString, fromObjectToArray, fromObjectToPrimitive, fromPrimitiveToObject, fromStringToBoolean, fromStringToNumber, getTransformation, toArrayTransformation } from './chunk-WCFA4226.js';
|
|
9
9
|
export { JsonSchemaTypeName } from './chunk-ZXLLJAMQ.js';
|
|
10
10
|
export { arrayMetaSchema, baseStringFields, booleanMetaSchema, historyPatchesSchema, jsonPatchSchema, metaSchema, noForeignKeyStringMetaSchema, notForeignKeyMetaSchema, numberMetaSchema, objectMetaSchema, refMetaSchema, sharedFields, stringMetaSchema, tableMigrationsSchema } from './chunk-ASXCDIN2.js';
|
|
11
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -128,6 +128,7 @@ declare class JsonObjectValueStore {
|
|
|
128
128
|
removeProperty(event: RemovedPropertyEvent): void;
|
|
129
129
|
changeName(event: ChangeNameEvent): void;
|
|
130
130
|
private getAddedValue;
|
|
131
|
+
private findValueAtSchemaLevel;
|
|
131
132
|
private getMigratedValue;
|
|
132
133
|
private init;
|
|
133
134
|
}
|
|
@@ -128,6 +128,7 @@ declare class JsonObjectValueStore {
|
|
|
128
128
|
removeProperty(event: RemovedPropertyEvent): void;
|
|
129
129
|
changeName(event: ChangeNameEvent): void;
|
|
130
130
|
private getAddedValue;
|
|
131
|
+
private findValueAtSchemaLevel;
|
|
131
132
|
private getMigratedValue;
|
|
132
133
|
private init;
|
|
133
134
|
}
|
package/dist/lib/index.cjs
CHANGED
|
@@ -1,132 +1,132 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunk2GCG6HJO_cjs = require('../chunk-2GCG6HJO.cjs');
|
|
4
4
|
require('../chunk-47AQWLHU.cjs');
|
|
5
5
|
require('../chunk-XNFSFT7T.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkJLIZ7QT2_cjs = require('../chunk-JLIZ7QT2.cjs');
|
|
7
7
|
require('../chunk-V2SSSD5X.cjs');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
Object.defineProperty(exports, "SchemaTable", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunk2GCG6HJO_cjs.SchemaTable; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "VALIDATE_JSON_FIELD_NAME_ERROR_MESSAGE", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk2GCG6HJO_cjs.VALIDATE_JSON_FIELD_NAME_ERROR_MESSAGE; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "applyAddPatch", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk2GCG6HJO_cjs.applyAddPatch; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "applyMovePatch", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunk2GCG6HJO_cjs.applyMovePatch; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "applyRemovePatch", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk2GCG6HJO_cjs.applyRemovePatch; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "applyReplacePatch", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk2GCG6HJO_cjs.applyReplacePatch; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "createJsonObjectSchemaStore", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk2GCG6HJO_cjs.createJsonObjectSchemaStore; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "createJsonSchemaStore", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk2GCG6HJO_cjs.createJsonSchemaStore; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "createPrimitiveStoreBySchema", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk2GCG6HJO_cjs.createPrimitiveStoreBySchema; }
|
|
46
46
|
});
|
|
47
47
|
Object.defineProperty(exports, "getDBJsonPathByJsonSchemaStore", {
|
|
48
48
|
enumerable: true,
|
|
49
|
-
get: function () { return
|
|
49
|
+
get: function () { return chunk2GCG6HJO_cjs.getDBJsonPathByJsonSchemaStore; }
|
|
50
50
|
});
|
|
51
51
|
Object.defineProperty(exports, "getForeignKeyPatchesFromSchema", {
|
|
52
52
|
enumerable: true,
|
|
53
|
-
get: function () { return
|
|
53
|
+
get: function () { return chunk2GCG6HJO_cjs.getForeignKeyPatchesFromSchema; }
|
|
54
54
|
});
|
|
55
55
|
Object.defineProperty(exports, "getForeignKeysFromSchema", {
|
|
56
56
|
enumerable: true,
|
|
57
|
-
get: function () { return
|
|
57
|
+
get: function () { return chunk2GCG6HJO_cjs.getForeignKeysFromSchema; }
|
|
58
58
|
});
|
|
59
59
|
Object.defineProperty(exports, "getForeignKeysFromValue", {
|
|
60
60
|
enumerable: true,
|
|
61
|
-
get: function () { return
|
|
61
|
+
get: function () { return chunk2GCG6HJO_cjs.getForeignKeysFromValue; }
|
|
62
62
|
});
|
|
63
63
|
Object.defineProperty(exports, "getInvalidFieldNamesInSchema", {
|
|
64
64
|
enumerable: true,
|
|
65
|
-
get: function () { return
|
|
65
|
+
get: function () { return chunk2GCG6HJO_cjs.getInvalidFieldNamesInSchema; }
|
|
66
66
|
});
|
|
67
67
|
Object.defineProperty(exports, "getJsonSchemaStoreByPath", {
|
|
68
68
|
enumerable: true,
|
|
69
|
-
get: function () { return
|
|
69
|
+
get: function () { return chunk2GCG6HJO_cjs.getJsonSchemaStoreByPath; }
|
|
70
70
|
});
|
|
71
71
|
Object.defineProperty(exports, "getJsonValueStoreByPath", {
|
|
72
72
|
enumerable: true,
|
|
73
|
-
get: function () { return
|
|
73
|
+
get: function () { return chunk2GCG6HJO_cjs.getJsonValueStoreByPath; }
|
|
74
74
|
});
|
|
75
75
|
Object.defineProperty(exports, "getParentForPath", {
|
|
76
76
|
enumerable: true,
|
|
77
|
-
get: function () { return
|
|
77
|
+
get: function () { return chunk2GCG6HJO_cjs.getParentForPath; }
|
|
78
78
|
});
|
|
79
79
|
Object.defineProperty(exports, "getPathByStore", {
|
|
80
80
|
enumerable: true,
|
|
81
|
-
get: function () { return
|
|
81
|
+
get: function () { return chunk2GCG6HJO_cjs.getPathByStore; }
|
|
82
82
|
});
|
|
83
83
|
Object.defineProperty(exports, "pluginRefs", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunk2GCG6HJO_cjs.pluginRefs; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "replaceForeignKeyValue", {
|
|
88
88
|
enumerable: true,
|
|
89
|
-
get: function () { return
|
|
89
|
+
get: function () { return chunk2GCG6HJO_cjs.replaceForeignKeyValue; }
|
|
90
90
|
});
|
|
91
91
|
Object.defineProperty(exports, "resolveRefs", {
|
|
92
92
|
enumerable: true,
|
|
93
|
-
get: function () { return
|
|
93
|
+
get: function () { return chunk2GCG6HJO_cjs.resolveRefs; }
|
|
94
94
|
});
|
|
95
95
|
Object.defineProperty(exports, "saveSharedFields", {
|
|
96
96
|
enumerable: true,
|
|
97
|
-
get: function () { return
|
|
97
|
+
get: function () { return chunk2GCG6HJO_cjs.saveSharedFields; }
|
|
98
98
|
});
|
|
99
99
|
Object.defineProperty(exports, "traverseStore", {
|
|
100
100
|
enumerable: true,
|
|
101
|
-
get: function () { return
|
|
101
|
+
get: function () { return chunk2GCG6HJO_cjs.traverseStore; }
|
|
102
102
|
});
|
|
103
103
|
Object.defineProperty(exports, "traverseValue", {
|
|
104
104
|
enumerable: true,
|
|
105
|
-
get: function () { return
|
|
105
|
+
get: function () { return chunk2GCG6HJO_cjs.traverseValue; }
|
|
106
106
|
});
|
|
107
107
|
Object.defineProperty(exports, "validateJsonFieldName", {
|
|
108
108
|
enumerable: true,
|
|
109
|
-
get: function () { return
|
|
109
|
+
get: function () { return chunk2GCG6HJO_cjs.validateJsonFieldName; }
|
|
110
110
|
});
|
|
111
111
|
Object.defineProperty(exports, "addSharedFieldsFromState", {
|
|
112
112
|
enumerable: true,
|
|
113
|
-
get: function () { return
|
|
113
|
+
get: function () { return chunkJLIZ7QT2_cjs.addSharedFieldsFromState; }
|
|
114
114
|
});
|
|
115
115
|
Object.defineProperty(exports, "createJsonArrayValueStore", {
|
|
116
116
|
enumerable: true,
|
|
117
|
-
get: function () { return
|
|
117
|
+
get: function () { return chunkJLIZ7QT2_cjs.createJsonArrayValueStore; }
|
|
118
118
|
});
|
|
119
119
|
Object.defineProperty(exports, "createJsonObjectValueStore", {
|
|
120
120
|
enumerable: true,
|
|
121
|
-
get: function () { return
|
|
121
|
+
get: function () { return chunkJLIZ7QT2_cjs.createJsonObjectValueStore; }
|
|
122
122
|
});
|
|
123
123
|
Object.defineProperty(exports, "createJsonValueStore", {
|
|
124
124
|
enumerable: true,
|
|
125
|
-
get: function () { return
|
|
125
|
+
get: function () { return chunkJLIZ7QT2_cjs.createJsonValueStore; }
|
|
126
126
|
});
|
|
127
127
|
Object.defineProperty(exports, "createPrimitiveValueStore", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkJLIZ7QT2_cjs.createPrimitiveValueStore; }
|
|
130
130
|
});
|
|
131
131
|
//# sourceMappingURL=index.cjs.map
|
|
132
132
|
//# sourceMappingURL=index.cjs.map
|
package/dist/lib/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as JsonSchema, f as JsonObjectSchema, e as JsonSchemaPrimitives, b as JsonStringSchema, c as JsonNumberSchema, d as JsonBooleanSchema, g as JsonArraySchema, h as JsonRefSchema } from '../schema.types-Q3MYTp8z.cjs';
|
|
2
2
|
import { e as JsonPatchReplace, f as JsonPatchRemove, g as JsonPatchAdd, d as JsonPatchMove, h as JsonPatch } from '../json-patch.types-lByaF-OL.cjs';
|
|
3
|
-
import { h as JsonSchemaStore, c as JsonObjectStore, g as JsonSchemaStorePrimitives, p as JsonValueStore, l as JsonObjectValueStore, f as JsonArrayStore, m as JsonArrayValueStore, n as JsonValueStorePrimitives } from '../json-string.store-
|
|
3
|
+
import { h as JsonSchemaStore, c as JsonObjectStore, g as JsonSchemaStorePrimitives, p as JsonValueStore, l as JsonObjectValueStore, f as JsonArrayStore, m as JsonArrayValueStore, n as JsonValueStorePrimitives } from '../json-string.store-BNF1Y93E.cjs';
|
|
4
4
|
import { c as JsonValue, J as JsonObject, b as JsonArray, a as JsonPrimitives } from '../json.types-46Cq-WxU.cjs';
|
|
5
5
|
import 'node:events';
|
|
6
6
|
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as JsonSchema, f as JsonObjectSchema, e as JsonSchemaPrimitives, b as JsonStringSchema, c as JsonNumberSchema, d as JsonBooleanSchema, g as JsonArraySchema, h as JsonRefSchema } from '../schema.types-Q3MYTp8z.js';
|
|
2
2
|
import { e as JsonPatchReplace, f as JsonPatchRemove, g as JsonPatchAdd, d as JsonPatchMove, h as JsonPatch } from '../json-patch.types-DiJBqfxV.js';
|
|
3
|
-
import { h as JsonSchemaStore, c as JsonObjectStore, g as JsonSchemaStorePrimitives, p as JsonValueStore, l as JsonObjectValueStore, f as JsonArrayStore, m as JsonArrayValueStore, n as JsonValueStorePrimitives } from '../json-string.store-
|
|
3
|
+
import { h as JsonSchemaStore, c as JsonObjectStore, g as JsonSchemaStorePrimitives, p as JsonValueStore, l as JsonObjectValueStore, f as JsonArrayStore, m as JsonArrayValueStore, n as JsonValueStorePrimitives } from '../json-string.store-qHcWNv07.js';
|
|
4
4
|
import { c as JsonValue, J as JsonObject, b as JsonArray, a as JsonPrimitives } from '../json.types-46Cq-WxU.js';
|
|
5
5
|
import 'node:events';
|
|
6
6
|
|
package/dist/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { SchemaTable, VALIDATE_JSON_FIELD_NAME_ERROR_MESSAGE, applyAddPatch, applyMovePatch, applyRemovePatch, applyReplacePatch, createJsonObjectSchemaStore, createJsonSchemaStore, createPrimitiveStoreBySchema, getDBJsonPathByJsonSchemaStore, getForeignKeyPatchesFromSchema, getForeignKeysFromSchema, getForeignKeysFromValue, getInvalidFieldNamesInSchema, getJsonSchemaStoreByPath, getJsonValueStoreByPath, getParentForPath, getPathByStore, pluginRefs, replaceForeignKeyValue, resolveRefs, saveSharedFields, traverseStore, traverseValue, validateJsonFieldName } from '../chunk-
|
|
1
|
+
export { SchemaTable, VALIDATE_JSON_FIELD_NAME_ERROR_MESSAGE, applyAddPatch, applyMovePatch, applyRemovePatch, applyReplacePatch, createJsonObjectSchemaStore, createJsonSchemaStore, createPrimitiveStoreBySchema, getDBJsonPathByJsonSchemaStore, getForeignKeyPatchesFromSchema, getForeignKeysFromSchema, getForeignKeysFromValue, getInvalidFieldNamesInSchema, getJsonSchemaStoreByPath, getJsonValueStoreByPath, getParentForPath, getPathByStore, pluginRefs, replaceForeignKeyValue, resolveRefs, saveSharedFields, traverseStore, traverseValue, validateJsonFieldName } from '../chunk-3E7UGCRR.js';
|
|
2
2
|
import '../chunk-22K22MMD.js';
|
|
3
3
|
import '../chunk-Q2UOTIMG.js';
|
|
4
|
-
export { addSharedFieldsFromState, createJsonArrayValueStore, createJsonObjectValueStore, createJsonValueStore, createPrimitiveValueStore } from '../chunk-
|
|
4
|
+
export { addSharedFieldsFromState, createJsonArrayValueStore, createJsonObjectValueStore, createJsonValueStore, createPrimitiveValueStore } from '../chunk-WCFA4226.js';
|
|
5
5
|
import '../chunk-ZXLLJAMQ.js';
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
|
7
7
|
//# sourceMappingURL=index.js.map
|