@tinacms/schema-tools 0.0.0-c6915ea-20250421012527 → 0.0.0-c706b9f-20251222081038
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/index.d.ts +6 -1
- package/dist/index.js +2467 -2427
- package/dist/schema/resolveForm.d.ts +1 -1
- package/dist/types/index.d.ts +148 -21
- package/dist/util/normalizePath.d.ts +8 -0
- package/dist/validate/schema.d.ts +180 -15
- package/dist/validate/tinaCloudSchemaConfig.d.ts +105 -0
- package/package.json +6 -14
- package/dist/index.mjs +0 -2731
|
@@ -3,33 +3,33 @@ export declare const CollectionBaseSchema: z.ZodObject<{
|
|
|
3
3
|
label: z.ZodOptional<z.ZodString>;
|
|
4
4
|
name: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
5
5
|
path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
6
|
-
format: z.ZodOptional<z.ZodEnum<["
|
|
6
|
+
format: z.ZodOptional<z.ZodEnum<["mdx", "md", "markdown", "json", "yaml", "yml", "toml"]>>;
|
|
7
7
|
isAuthCollection: z.ZodOptional<z.ZodBoolean>;
|
|
8
8
|
isDetached: z.ZodOptional<z.ZodBoolean>;
|
|
9
9
|
}, "strip", z.ZodTypeAny, {
|
|
10
10
|
name?: string;
|
|
11
11
|
label?: string;
|
|
12
12
|
path?: string;
|
|
13
|
-
format?: "
|
|
13
|
+
format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
|
|
14
14
|
isDetached?: boolean;
|
|
15
15
|
isAuthCollection?: boolean;
|
|
16
16
|
}, {
|
|
17
17
|
name?: string;
|
|
18
18
|
label?: string;
|
|
19
19
|
path?: string;
|
|
20
|
-
format?: "
|
|
20
|
+
format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
|
|
21
21
|
isDetached?: boolean;
|
|
22
22
|
isAuthCollection?: boolean;
|
|
23
23
|
}>;
|
|
24
24
|
export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
|
|
25
|
-
collections: z.ZodArray<z.ZodEffects<z.ZodObject<
|
|
25
|
+
collections: z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
26
26
|
label: z.ZodOptional<z.ZodString>;
|
|
27
27
|
name: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
28
28
|
path: z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>;
|
|
29
|
-
format: z.ZodOptional<z.ZodEnum<["
|
|
29
|
+
format: z.ZodOptional<z.ZodEnum<["mdx", "md", "markdown", "json", "yaml", "yml", "toml"]>>;
|
|
30
30
|
isAuthCollection: z.ZodOptional<z.ZodBoolean>;
|
|
31
31
|
isDetached: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
-
}
|
|
32
|
+
} & {
|
|
33
33
|
fields: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodType<import("..").TinaField, z.ZodTypeDef, import("..").TinaField>, "many">>, import("..").TinaField[], import("..").TinaField[]>, import("..").TinaField[], import("..").TinaField[]>, import("..").TinaField[], import("..").TinaField[]>, import("..").TinaField[], import("..").TinaField[]>;
|
|
34
34
|
templates: z.ZodEffects<z.ZodOptional<z.ZodArray<z.ZodEffects<z.ZodObject<{
|
|
35
35
|
label: z.ZodString;
|
|
@@ -60,7 +60,7 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
|
|
|
60
60
|
fields?: import("..").TinaField[];
|
|
61
61
|
label?: string;
|
|
62
62
|
}[]>;
|
|
63
|
-
}
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
64
|
name?: string;
|
|
65
65
|
templates?: {
|
|
66
66
|
name?: string;
|
|
@@ -70,7 +70,7 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
|
|
|
70
70
|
fields?: import("..").TinaField[];
|
|
71
71
|
label?: string;
|
|
72
72
|
path?: string;
|
|
73
|
-
format?: "
|
|
73
|
+
format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
|
|
74
74
|
isDetached?: boolean;
|
|
75
75
|
isAuthCollection?: boolean;
|
|
76
76
|
}, {
|
|
@@ -83,7 +83,7 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
|
|
|
83
83
|
fields?: import("..").TinaField[];
|
|
84
84
|
label?: string;
|
|
85
85
|
path?: string;
|
|
86
|
-
format?: "
|
|
86
|
+
format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
|
|
87
87
|
isDetached?: boolean;
|
|
88
88
|
isAuthCollection?: boolean;
|
|
89
89
|
}>, {
|
|
@@ -96,7 +96,7 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
|
|
|
96
96
|
fields?: import("..").TinaField[];
|
|
97
97
|
label?: string;
|
|
98
98
|
path?: string;
|
|
99
|
-
format?: "
|
|
99
|
+
format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
|
|
100
100
|
isDetached?: boolean;
|
|
101
101
|
isAuthCollection?: boolean;
|
|
102
102
|
}, {
|
|
@@ -109,7 +109,7 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
|
|
|
109
109
|
fields?: import("..").TinaField[];
|
|
110
110
|
label?: string;
|
|
111
111
|
path?: string;
|
|
112
|
-
format?: "
|
|
112
|
+
format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
|
|
113
113
|
isDetached?: boolean;
|
|
114
114
|
isAuthCollection?: boolean;
|
|
115
115
|
}>, "many">;
|
|
@@ -156,14 +156,50 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
|
|
|
156
156
|
indexerToken: z.ZodOptional<z.ZodString>;
|
|
157
157
|
stopwordLanguages: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
|
|
158
158
|
tokenSplitRegex: z.ZodOptional<z.ZodString>;
|
|
159
|
+
fuzzyEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
160
|
+
fuzzyOptions: z.ZodOptional<z.ZodObject<{
|
|
161
|
+
maxDistance: z.ZodOptional<z.ZodNumber>;
|
|
162
|
+
minSimilarity: z.ZodOptional<z.ZodNumber>;
|
|
163
|
+
maxResults: z.ZodOptional<z.ZodNumber>;
|
|
164
|
+
useTranspositions: z.ZodOptional<z.ZodBoolean>;
|
|
165
|
+
caseSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
166
|
+
}, "strict", z.ZodTypeAny, {
|
|
167
|
+
maxDistance?: number;
|
|
168
|
+
minSimilarity?: number;
|
|
169
|
+
maxResults?: number;
|
|
170
|
+
useTranspositions?: boolean;
|
|
171
|
+
caseSensitive?: boolean;
|
|
172
|
+
}, {
|
|
173
|
+
maxDistance?: number;
|
|
174
|
+
minSimilarity?: number;
|
|
175
|
+
maxResults?: number;
|
|
176
|
+
useTranspositions?: boolean;
|
|
177
|
+
caseSensitive?: boolean;
|
|
178
|
+
}>>;
|
|
159
179
|
}, "strict", z.ZodTypeAny, {
|
|
160
180
|
indexerToken?: string;
|
|
161
181
|
stopwordLanguages?: [string, ...string[]];
|
|
162
182
|
tokenSplitRegex?: string;
|
|
183
|
+
fuzzyEnabled?: boolean;
|
|
184
|
+
fuzzyOptions?: {
|
|
185
|
+
maxDistance?: number;
|
|
186
|
+
minSimilarity?: number;
|
|
187
|
+
maxResults?: number;
|
|
188
|
+
useTranspositions?: boolean;
|
|
189
|
+
caseSensitive?: boolean;
|
|
190
|
+
};
|
|
163
191
|
}, {
|
|
164
192
|
indexerToken?: string;
|
|
165
193
|
stopwordLanguages?: [string, ...string[]];
|
|
166
194
|
tokenSplitRegex?: string;
|
|
195
|
+
fuzzyEnabled?: boolean;
|
|
196
|
+
fuzzyOptions?: {
|
|
197
|
+
maxDistance?: number;
|
|
198
|
+
minSimilarity?: number;
|
|
199
|
+
maxResults?: number;
|
|
200
|
+
useTranspositions?: boolean;
|
|
201
|
+
caseSensitive?: boolean;
|
|
202
|
+
};
|
|
167
203
|
}>>;
|
|
168
204
|
searchClient: z.ZodOptional<z.ZodAny>;
|
|
169
205
|
indexBatchSize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -174,6 +210,14 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
|
|
|
174
210
|
indexerToken?: string;
|
|
175
211
|
stopwordLanguages?: [string, ...string[]];
|
|
176
212
|
tokenSplitRegex?: string;
|
|
213
|
+
fuzzyEnabled?: boolean;
|
|
214
|
+
fuzzyOptions?: {
|
|
215
|
+
maxDistance?: number;
|
|
216
|
+
minSimilarity?: number;
|
|
217
|
+
maxResults?: number;
|
|
218
|
+
useTranspositions?: boolean;
|
|
219
|
+
caseSensitive?: boolean;
|
|
220
|
+
};
|
|
177
221
|
};
|
|
178
222
|
searchClient?: any;
|
|
179
223
|
indexBatchSize?: number;
|
|
@@ -183,10 +227,41 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
|
|
|
183
227
|
indexerToken?: string;
|
|
184
228
|
stopwordLanguages?: [string, ...string[]];
|
|
185
229
|
tokenSplitRegex?: string;
|
|
230
|
+
fuzzyEnabled?: boolean;
|
|
231
|
+
fuzzyOptions?: {
|
|
232
|
+
maxDistance?: number;
|
|
233
|
+
minSimilarity?: number;
|
|
234
|
+
maxResults?: number;
|
|
235
|
+
useTranspositions?: boolean;
|
|
236
|
+
caseSensitive?: boolean;
|
|
237
|
+
};
|
|
186
238
|
};
|
|
187
239
|
searchClient?: any;
|
|
188
240
|
indexBatchSize?: number;
|
|
189
241
|
}>>;
|
|
242
|
+
ui: z.ZodOptional<z.ZodObject<{
|
|
243
|
+
previewUrl: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
|
|
244
|
+
optOutOfUpdateCheck: z.ZodOptional<z.ZodBoolean>;
|
|
245
|
+
regexValidation: z.ZodOptional<z.ZodObject<{
|
|
246
|
+
folderNameRegex: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
247
|
+
}, "strip", z.ZodTypeAny, {
|
|
248
|
+
folderNameRegex?: string;
|
|
249
|
+
}, {
|
|
250
|
+
folderNameRegex?: string;
|
|
251
|
+
}>>;
|
|
252
|
+
}, "strip", z.ZodTypeAny, {
|
|
253
|
+
previewUrl?: (...args: unknown[]) => unknown;
|
|
254
|
+
optOutOfUpdateCheck?: boolean;
|
|
255
|
+
regexValidation?: {
|
|
256
|
+
folderNameRegex?: string;
|
|
257
|
+
};
|
|
258
|
+
}, {
|
|
259
|
+
previewUrl?: (...args: unknown[]) => unknown;
|
|
260
|
+
optOutOfUpdateCheck?: boolean;
|
|
261
|
+
regexValidation?: {
|
|
262
|
+
folderNameRegex?: string;
|
|
263
|
+
};
|
|
264
|
+
}>>;
|
|
190
265
|
}, "strip", z.ZodTypeAny, {
|
|
191
266
|
search?: {
|
|
192
267
|
maxSearchIndexFieldLength?: number;
|
|
@@ -194,10 +269,25 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
|
|
|
194
269
|
indexerToken?: string;
|
|
195
270
|
stopwordLanguages?: [string, ...string[]];
|
|
196
271
|
tokenSplitRegex?: string;
|
|
272
|
+
fuzzyEnabled?: boolean;
|
|
273
|
+
fuzzyOptions?: {
|
|
274
|
+
maxDistance?: number;
|
|
275
|
+
minSimilarity?: number;
|
|
276
|
+
maxResults?: number;
|
|
277
|
+
useTranspositions?: boolean;
|
|
278
|
+
caseSensitive?: boolean;
|
|
279
|
+
};
|
|
197
280
|
};
|
|
198
281
|
searchClient?: any;
|
|
199
282
|
indexBatchSize?: number;
|
|
200
283
|
};
|
|
284
|
+
ui?: {
|
|
285
|
+
previewUrl?: (...args: unknown[]) => unknown;
|
|
286
|
+
optOutOfUpdateCheck?: boolean;
|
|
287
|
+
regexValidation?: {
|
|
288
|
+
folderNameRegex?: string;
|
|
289
|
+
};
|
|
290
|
+
};
|
|
201
291
|
client?: {
|
|
202
292
|
referenceDepth?: number;
|
|
203
293
|
};
|
|
@@ -216,10 +306,25 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
|
|
|
216
306
|
indexerToken?: string;
|
|
217
307
|
stopwordLanguages?: [string, ...string[]];
|
|
218
308
|
tokenSplitRegex?: string;
|
|
309
|
+
fuzzyEnabled?: boolean;
|
|
310
|
+
fuzzyOptions?: {
|
|
311
|
+
maxDistance?: number;
|
|
312
|
+
minSimilarity?: number;
|
|
313
|
+
maxResults?: number;
|
|
314
|
+
useTranspositions?: boolean;
|
|
315
|
+
caseSensitive?: boolean;
|
|
316
|
+
};
|
|
219
317
|
};
|
|
220
318
|
searchClient?: any;
|
|
221
319
|
indexBatchSize?: number;
|
|
222
320
|
};
|
|
321
|
+
ui?: {
|
|
322
|
+
previewUrl?: (...args: unknown[]) => unknown;
|
|
323
|
+
optOutOfUpdateCheck?: boolean;
|
|
324
|
+
regexValidation?: {
|
|
325
|
+
folderNameRegex?: string;
|
|
326
|
+
};
|
|
327
|
+
};
|
|
223
328
|
client?: {
|
|
224
329
|
referenceDepth?: number;
|
|
225
330
|
};
|
|
@@ -243,7 +348,7 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
|
|
|
243
348
|
fields?: import("..").TinaField[];
|
|
244
349
|
label?: string;
|
|
245
350
|
path?: string;
|
|
246
|
-
format?: "
|
|
351
|
+
format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
|
|
247
352
|
isDetached?: boolean;
|
|
248
353
|
isAuthCollection?: boolean;
|
|
249
354
|
}[];
|
|
@@ -254,10 +359,25 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
|
|
|
254
359
|
indexerToken?: string;
|
|
255
360
|
stopwordLanguages?: [string, ...string[]];
|
|
256
361
|
tokenSplitRegex?: string;
|
|
362
|
+
fuzzyEnabled?: boolean;
|
|
363
|
+
fuzzyOptions?: {
|
|
364
|
+
maxDistance?: number;
|
|
365
|
+
minSimilarity?: number;
|
|
366
|
+
maxResults?: number;
|
|
367
|
+
useTranspositions?: boolean;
|
|
368
|
+
caseSensitive?: boolean;
|
|
369
|
+
};
|
|
257
370
|
};
|
|
258
371
|
searchClient?: any;
|
|
259
372
|
indexBatchSize?: number;
|
|
260
373
|
};
|
|
374
|
+
ui?: {
|
|
375
|
+
previewUrl?: (...args: unknown[]) => unknown;
|
|
376
|
+
optOutOfUpdateCheck?: boolean;
|
|
377
|
+
regexValidation?: {
|
|
378
|
+
folderNameRegex?: string;
|
|
379
|
+
};
|
|
380
|
+
};
|
|
261
381
|
client?: {
|
|
262
382
|
referenceDepth?: number;
|
|
263
383
|
};
|
|
@@ -281,7 +401,7 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
|
|
|
281
401
|
fields?: import("..").TinaField[];
|
|
282
402
|
label?: string;
|
|
283
403
|
path?: string;
|
|
284
|
-
format?: "
|
|
404
|
+
format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
|
|
285
405
|
isDetached?: boolean;
|
|
286
406
|
isAuthCollection?: boolean;
|
|
287
407
|
}[];
|
|
@@ -292,10 +412,25 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
|
|
|
292
412
|
indexerToken?: string;
|
|
293
413
|
stopwordLanguages?: [string, ...string[]];
|
|
294
414
|
tokenSplitRegex?: string;
|
|
415
|
+
fuzzyEnabled?: boolean;
|
|
416
|
+
fuzzyOptions?: {
|
|
417
|
+
maxDistance?: number;
|
|
418
|
+
minSimilarity?: number;
|
|
419
|
+
maxResults?: number;
|
|
420
|
+
useTranspositions?: boolean;
|
|
421
|
+
caseSensitive?: boolean;
|
|
422
|
+
};
|
|
295
423
|
};
|
|
296
424
|
searchClient?: any;
|
|
297
425
|
indexBatchSize?: number;
|
|
298
426
|
};
|
|
427
|
+
ui?: {
|
|
428
|
+
previewUrl?: (...args: unknown[]) => unknown;
|
|
429
|
+
optOutOfUpdateCheck?: boolean;
|
|
430
|
+
regexValidation?: {
|
|
431
|
+
folderNameRegex?: string;
|
|
432
|
+
};
|
|
433
|
+
};
|
|
299
434
|
client?: {
|
|
300
435
|
referenceDepth?: number;
|
|
301
436
|
};
|
|
@@ -319,7 +454,7 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
|
|
|
319
454
|
fields?: import("..").TinaField[];
|
|
320
455
|
label?: string;
|
|
321
456
|
path?: string;
|
|
322
|
-
format?: "
|
|
457
|
+
format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
|
|
323
458
|
isDetached?: boolean;
|
|
324
459
|
isAuthCollection?: boolean;
|
|
325
460
|
}[];
|
|
@@ -330,10 +465,25 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
|
|
|
330
465
|
indexerToken?: string;
|
|
331
466
|
stopwordLanguages?: [string, ...string[]];
|
|
332
467
|
tokenSplitRegex?: string;
|
|
468
|
+
fuzzyEnabled?: boolean;
|
|
469
|
+
fuzzyOptions?: {
|
|
470
|
+
maxDistance?: number;
|
|
471
|
+
minSimilarity?: number;
|
|
472
|
+
maxResults?: number;
|
|
473
|
+
useTranspositions?: boolean;
|
|
474
|
+
caseSensitive?: boolean;
|
|
475
|
+
};
|
|
333
476
|
};
|
|
334
477
|
searchClient?: any;
|
|
335
478
|
indexBatchSize?: number;
|
|
336
479
|
};
|
|
480
|
+
ui?: {
|
|
481
|
+
previewUrl?: (...args: unknown[]) => unknown;
|
|
482
|
+
optOutOfUpdateCheck?: boolean;
|
|
483
|
+
regexValidation?: {
|
|
484
|
+
folderNameRegex?: string;
|
|
485
|
+
};
|
|
486
|
+
};
|
|
337
487
|
client?: {
|
|
338
488
|
referenceDepth?: number;
|
|
339
489
|
};
|
|
@@ -357,7 +507,7 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
|
|
|
357
507
|
fields?: import("..").TinaField[];
|
|
358
508
|
label?: string;
|
|
359
509
|
path?: string;
|
|
360
|
-
format?: "
|
|
510
|
+
format?: "mdx" | "md" | "markdown" | "json" | "yaml" | "yml" | "toml";
|
|
361
511
|
isDetached?: boolean;
|
|
362
512
|
isAuthCollection?: boolean;
|
|
363
513
|
}[];
|
|
@@ -368,10 +518,25 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
|
|
|
368
518
|
indexerToken?: string;
|
|
369
519
|
stopwordLanguages?: [string, ...string[]];
|
|
370
520
|
tokenSplitRegex?: string;
|
|
521
|
+
fuzzyEnabled?: boolean;
|
|
522
|
+
fuzzyOptions?: {
|
|
523
|
+
maxDistance?: number;
|
|
524
|
+
minSimilarity?: number;
|
|
525
|
+
maxResults?: number;
|
|
526
|
+
useTranspositions?: boolean;
|
|
527
|
+
caseSensitive?: boolean;
|
|
528
|
+
};
|
|
371
529
|
};
|
|
372
530
|
searchClient?: any;
|
|
373
531
|
indexBatchSize?: number;
|
|
374
532
|
};
|
|
533
|
+
ui?: {
|
|
534
|
+
previewUrl?: (...args: unknown[]) => unknown;
|
|
535
|
+
optOutOfUpdateCheck?: boolean;
|
|
536
|
+
regexValidation?: {
|
|
537
|
+
folderNameRegex?: string;
|
|
538
|
+
};
|
|
539
|
+
};
|
|
375
540
|
client?: {
|
|
376
541
|
referenceDepth?: number;
|
|
377
542
|
};
|
|
@@ -46,14 +46,50 @@ export declare const tinaConfigZod: z.ZodObject<{
|
|
|
46
46
|
indexerToken: z.ZodOptional<z.ZodString>;
|
|
47
47
|
stopwordLanguages: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
|
|
48
48
|
tokenSplitRegex: z.ZodOptional<z.ZodString>;
|
|
49
|
+
fuzzyEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
50
|
+
fuzzyOptions: z.ZodOptional<z.ZodObject<{
|
|
51
|
+
maxDistance: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
minSimilarity: z.ZodOptional<z.ZodNumber>;
|
|
53
|
+
maxResults: z.ZodOptional<z.ZodNumber>;
|
|
54
|
+
useTranspositions: z.ZodOptional<z.ZodBoolean>;
|
|
55
|
+
caseSensitive: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
+
}, "strict", z.ZodTypeAny, {
|
|
57
|
+
maxDistance?: number;
|
|
58
|
+
minSimilarity?: number;
|
|
59
|
+
maxResults?: number;
|
|
60
|
+
useTranspositions?: boolean;
|
|
61
|
+
caseSensitive?: boolean;
|
|
62
|
+
}, {
|
|
63
|
+
maxDistance?: number;
|
|
64
|
+
minSimilarity?: number;
|
|
65
|
+
maxResults?: number;
|
|
66
|
+
useTranspositions?: boolean;
|
|
67
|
+
caseSensitive?: boolean;
|
|
68
|
+
}>>;
|
|
49
69
|
}, "strict", z.ZodTypeAny, {
|
|
50
70
|
indexerToken?: string;
|
|
51
71
|
stopwordLanguages?: [string, ...string[]];
|
|
52
72
|
tokenSplitRegex?: string;
|
|
73
|
+
fuzzyEnabled?: boolean;
|
|
74
|
+
fuzzyOptions?: {
|
|
75
|
+
maxDistance?: number;
|
|
76
|
+
minSimilarity?: number;
|
|
77
|
+
maxResults?: number;
|
|
78
|
+
useTranspositions?: boolean;
|
|
79
|
+
caseSensitive?: boolean;
|
|
80
|
+
};
|
|
53
81
|
}, {
|
|
54
82
|
indexerToken?: string;
|
|
55
83
|
stopwordLanguages?: [string, ...string[]];
|
|
56
84
|
tokenSplitRegex?: string;
|
|
85
|
+
fuzzyEnabled?: boolean;
|
|
86
|
+
fuzzyOptions?: {
|
|
87
|
+
maxDistance?: number;
|
|
88
|
+
minSimilarity?: number;
|
|
89
|
+
maxResults?: number;
|
|
90
|
+
useTranspositions?: boolean;
|
|
91
|
+
caseSensitive?: boolean;
|
|
92
|
+
};
|
|
57
93
|
}>>;
|
|
58
94
|
searchClient: z.ZodOptional<z.ZodAny>;
|
|
59
95
|
indexBatchSize: z.ZodOptional<z.ZodNumber>;
|
|
@@ -64,6 +100,14 @@ export declare const tinaConfigZod: z.ZodObject<{
|
|
|
64
100
|
indexerToken?: string;
|
|
65
101
|
stopwordLanguages?: [string, ...string[]];
|
|
66
102
|
tokenSplitRegex?: string;
|
|
103
|
+
fuzzyEnabled?: boolean;
|
|
104
|
+
fuzzyOptions?: {
|
|
105
|
+
maxDistance?: number;
|
|
106
|
+
minSimilarity?: number;
|
|
107
|
+
maxResults?: number;
|
|
108
|
+
useTranspositions?: boolean;
|
|
109
|
+
caseSensitive?: boolean;
|
|
110
|
+
};
|
|
67
111
|
};
|
|
68
112
|
searchClient?: any;
|
|
69
113
|
indexBatchSize?: number;
|
|
@@ -73,10 +117,41 @@ export declare const tinaConfigZod: z.ZodObject<{
|
|
|
73
117
|
indexerToken?: string;
|
|
74
118
|
stopwordLanguages?: [string, ...string[]];
|
|
75
119
|
tokenSplitRegex?: string;
|
|
120
|
+
fuzzyEnabled?: boolean;
|
|
121
|
+
fuzzyOptions?: {
|
|
122
|
+
maxDistance?: number;
|
|
123
|
+
minSimilarity?: number;
|
|
124
|
+
maxResults?: number;
|
|
125
|
+
useTranspositions?: boolean;
|
|
126
|
+
caseSensitive?: boolean;
|
|
127
|
+
};
|
|
76
128
|
};
|
|
77
129
|
searchClient?: any;
|
|
78
130
|
indexBatchSize?: number;
|
|
79
131
|
}>>;
|
|
132
|
+
ui: z.ZodOptional<z.ZodObject<{
|
|
133
|
+
previewUrl: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
|
|
134
|
+
optOutOfUpdateCheck: z.ZodOptional<z.ZodBoolean>;
|
|
135
|
+
regexValidation: z.ZodOptional<z.ZodObject<{
|
|
136
|
+
folderNameRegex: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
|
138
|
+
folderNameRegex?: string;
|
|
139
|
+
}, {
|
|
140
|
+
folderNameRegex?: string;
|
|
141
|
+
}>>;
|
|
142
|
+
}, "strip", z.ZodTypeAny, {
|
|
143
|
+
previewUrl?: (...args: unknown[]) => unknown;
|
|
144
|
+
optOutOfUpdateCheck?: boolean;
|
|
145
|
+
regexValidation?: {
|
|
146
|
+
folderNameRegex?: string;
|
|
147
|
+
};
|
|
148
|
+
}, {
|
|
149
|
+
previewUrl?: (...args: unknown[]) => unknown;
|
|
150
|
+
optOutOfUpdateCheck?: boolean;
|
|
151
|
+
regexValidation?: {
|
|
152
|
+
folderNameRegex?: string;
|
|
153
|
+
};
|
|
154
|
+
}>>;
|
|
80
155
|
}, "strip", z.ZodTypeAny, {
|
|
81
156
|
search?: {
|
|
82
157
|
maxSearchIndexFieldLength?: number;
|
|
@@ -84,10 +159,25 @@ export declare const tinaConfigZod: z.ZodObject<{
|
|
|
84
159
|
indexerToken?: string;
|
|
85
160
|
stopwordLanguages?: [string, ...string[]];
|
|
86
161
|
tokenSplitRegex?: string;
|
|
162
|
+
fuzzyEnabled?: boolean;
|
|
163
|
+
fuzzyOptions?: {
|
|
164
|
+
maxDistance?: number;
|
|
165
|
+
minSimilarity?: number;
|
|
166
|
+
maxResults?: number;
|
|
167
|
+
useTranspositions?: boolean;
|
|
168
|
+
caseSensitive?: boolean;
|
|
169
|
+
};
|
|
87
170
|
};
|
|
88
171
|
searchClient?: any;
|
|
89
172
|
indexBatchSize?: number;
|
|
90
173
|
};
|
|
174
|
+
ui?: {
|
|
175
|
+
previewUrl?: (...args: unknown[]) => unknown;
|
|
176
|
+
optOutOfUpdateCheck?: boolean;
|
|
177
|
+
regexValidation?: {
|
|
178
|
+
folderNameRegex?: string;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
91
181
|
client?: {
|
|
92
182
|
referenceDepth?: number;
|
|
93
183
|
};
|
|
@@ -106,10 +196,25 @@ export declare const tinaConfigZod: z.ZodObject<{
|
|
|
106
196
|
indexerToken?: string;
|
|
107
197
|
stopwordLanguages?: [string, ...string[]];
|
|
108
198
|
tokenSplitRegex?: string;
|
|
199
|
+
fuzzyEnabled?: boolean;
|
|
200
|
+
fuzzyOptions?: {
|
|
201
|
+
maxDistance?: number;
|
|
202
|
+
minSimilarity?: number;
|
|
203
|
+
maxResults?: number;
|
|
204
|
+
useTranspositions?: boolean;
|
|
205
|
+
caseSensitive?: boolean;
|
|
206
|
+
};
|
|
109
207
|
};
|
|
110
208
|
searchClient?: any;
|
|
111
209
|
indexBatchSize?: number;
|
|
112
210
|
};
|
|
211
|
+
ui?: {
|
|
212
|
+
previewUrl?: (...args: unknown[]) => unknown;
|
|
213
|
+
optOutOfUpdateCheck?: boolean;
|
|
214
|
+
regexValidation?: {
|
|
215
|
+
folderNameRegex?: string;
|
|
216
|
+
};
|
|
217
|
+
};
|
|
113
218
|
client?: {
|
|
114
219
|
referenceDepth?: number;
|
|
115
220
|
};
|
package/package.json
CHANGED
|
@@ -1,16 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tinacms/schema-tools",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.0.0-c706b9f-20251222081038",
|
|
4
5
|
"main": "dist/index.js",
|
|
5
|
-
"
|
|
6
|
-
"exports": {
|
|
7
|
-
".": {
|
|
8
|
-
"types": "./dist/index.d.ts",
|
|
9
|
-
"import": "./dist/index.mjs",
|
|
10
|
-
"require": "./dist/index.js"
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
"typings": "dist/index.d.ts",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
14
7
|
"files": [
|
|
15
8
|
"dist"
|
|
16
9
|
],
|
|
@@ -26,17 +19,16 @@
|
|
|
26
19
|
"@types/jest": "^29.5.14",
|
|
27
20
|
"@types/micromatch": "^4.0.9",
|
|
28
21
|
"@types/react": "^18.3.18",
|
|
29
|
-
"@types/yup": "^0.29.14",
|
|
30
22
|
"jest": "^29.7.0",
|
|
31
23
|
"react": "^18.3.1",
|
|
32
24
|
"ts-jest": "^29.2.5",
|
|
33
25
|
"typescript": "^5.7.3",
|
|
34
|
-
"yup": "^
|
|
35
|
-
"@tinacms/scripts": "1.
|
|
26
|
+
"yup": "^1.6.1",
|
|
27
|
+
"@tinacms/scripts": "1.4.2"
|
|
36
28
|
},
|
|
37
29
|
"peerDependencies": {
|
|
38
30
|
"react": ">=16.14.0",
|
|
39
|
-
"yup": "^0.
|
|
31
|
+
"yup": "^1.0.0"
|
|
40
32
|
},
|
|
41
33
|
"publishConfig": {
|
|
42
34
|
"registry": "https://registry.npmjs.org"
|