@tinacms/schema-tools 1.4.5 → 1.4.6
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.es.js
CHANGED
|
@@ -889,7 +889,8 @@ const tinaConfigKey = z$1.object({
|
|
|
889
889
|
mediaRoot: z$1.string()
|
|
890
890
|
}).strict().optional();
|
|
891
891
|
const tinaSearchKey = z$1.object({
|
|
892
|
-
indexerToken: z$1.string().optional()
|
|
892
|
+
indexerToken: z$1.string().optional(),
|
|
893
|
+
stopwordLanguages: z$1.array(z$1.string()).nonempty().optional()
|
|
893
894
|
}).strict().optional();
|
|
894
895
|
const tinaConfigZod = z$1.object({
|
|
895
896
|
client: z$1.object({ referenceDepth: z$1.number().optional() }).optional(),
|
|
@@ -899,7 +900,9 @@ const tinaConfigZod = z$1.object({
|
|
|
899
900
|
}).optional(),
|
|
900
901
|
search: z$1.object({
|
|
901
902
|
tina: tinaSearchKey,
|
|
902
|
-
searchClient: z$1.any().optional()
|
|
903
|
+
searchClient: z$1.any().optional(),
|
|
904
|
+
indexBatchSize: z$1.number().gte(1).optional(),
|
|
905
|
+
maxSearchIndexFieldLength: z$1.number().gte(1).optional()
|
|
903
906
|
}).optional()
|
|
904
907
|
});
|
|
905
908
|
const validateTinaCloudSchemaConfig = (config) => {
|
package/dist/index.js
CHANGED
|
@@ -916,7 +916,8 @@ ${JSON.stringify(val, null, 2)}
|
|
|
916
916
|
mediaRoot: z__default["default"].string()
|
|
917
917
|
}).strict().optional();
|
|
918
918
|
const tinaSearchKey = z__default["default"].object({
|
|
919
|
-
indexerToken: z__default["default"].string().optional()
|
|
919
|
+
indexerToken: z__default["default"].string().optional(),
|
|
920
|
+
stopwordLanguages: z__default["default"].array(z__default["default"].string()).nonempty().optional()
|
|
920
921
|
}).strict().optional();
|
|
921
922
|
const tinaConfigZod = z__default["default"].object({
|
|
922
923
|
client: z__default["default"].object({ referenceDepth: z__default["default"].number().optional() }).optional(),
|
|
@@ -926,7 +927,9 @@ ${JSON.stringify(val, null, 2)}
|
|
|
926
927
|
}).optional(),
|
|
927
928
|
search: z__default["default"].object({
|
|
928
929
|
tina: tinaSearchKey,
|
|
929
|
-
searchClient: z__default["default"].any().optional()
|
|
930
|
+
searchClient: z__default["default"].any().optional(),
|
|
931
|
+
indexBatchSize: z__default["default"].number().gte(1).optional(),
|
|
932
|
+
maxSearchIndexFieldLength: z__default["default"].number().gte(1).optional()
|
|
930
933
|
}).optional()
|
|
931
934
|
});
|
|
932
935
|
const validateTinaCloudSchemaConfig = (config) => {
|
|
@@ -136,29 +136,43 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
|
|
|
136
136
|
search: z.ZodOptional<z.ZodObject<{
|
|
137
137
|
tina: z.ZodOptional<z.ZodObject<{
|
|
138
138
|
indexerToken: z.ZodOptional<z.ZodString>;
|
|
139
|
+
stopwordLanguages: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
|
|
139
140
|
}, "strict", z.ZodTypeAny, {
|
|
140
141
|
indexerToken?: string;
|
|
142
|
+
stopwordLanguages?: [string, ...string[]];
|
|
141
143
|
}, {
|
|
142
144
|
indexerToken?: string;
|
|
145
|
+
stopwordLanguages?: [string, ...string[]];
|
|
143
146
|
}>>;
|
|
144
147
|
searchClient: z.ZodOptional<z.ZodAny>;
|
|
148
|
+
indexBatchSize: z.ZodOptional<z.ZodNumber>;
|
|
149
|
+
maxSearchIndexFieldLength: z.ZodOptional<z.ZodNumber>;
|
|
145
150
|
}, "strip", z.ZodTypeAny, {
|
|
151
|
+
maxSearchIndexFieldLength?: number;
|
|
146
152
|
tina?: {
|
|
147
153
|
indexerToken?: string;
|
|
154
|
+
stopwordLanguages?: [string, ...string[]];
|
|
148
155
|
};
|
|
149
156
|
searchClient?: any;
|
|
157
|
+
indexBatchSize?: number;
|
|
150
158
|
}, {
|
|
159
|
+
maxSearchIndexFieldLength?: number;
|
|
151
160
|
tina?: {
|
|
152
161
|
indexerToken?: string;
|
|
162
|
+
stopwordLanguages?: [string, ...string[]];
|
|
153
163
|
};
|
|
154
164
|
searchClient?: any;
|
|
165
|
+
indexBatchSize?: number;
|
|
155
166
|
}>>;
|
|
156
167
|
}, "strip", z.ZodTypeAny, {
|
|
157
168
|
search?: {
|
|
169
|
+
maxSearchIndexFieldLength?: number;
|
|
158
170
|
tina?: {
|
|
159
171
|
indexerToken?: string;
|
|
172
|
+
stopwordLanguages?: [string, ...string[]];
|
|
160
173
|
};
|
|
161
174
|
searchClient?: any;
|
|
175
|
+
indexBatchSize?: number;
|
|
162
176
|
};
|
|
163
177
|
client?: {
|
|
164
178
|
referenceDepth?: number;
|
|
@@ -172,10 +186,13 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
|
|
|
172
186
|
};
|
|
173
187
|
}, {
|
|
174
188
|
search?: {
|
|
189
|
+
maxSearchIndexFieldLength?: number;
|
|
175
190
|
tina?: {
|
|
176
191
|
indexerToken?: string;
|
|
192
|
+
stopwordLanguages?: [string, ...string[]];
|
|
177
193
|
};
|
|
178
194
|
searchClient?: any;
|
|
195
|
+
indexBatchSize?: number;
|
|
179
196
|
};
|
|
180
197
|
client?: {
|
|
181
198
|
referenceDepth?: number;
|
|
@@ -203,10 +220,13 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
|
|
|
203
220
|
}[];
|
|
204
221
|
config?: {
|
|
205
222
|
search?: {
|
|
223
|
+
maxSearchIndexFieldLength?: number;
|
|
206
224
|
tina?: {
|
|
207
225
|
indexerToken?: string;
|
|
226
|
+
stopwordLanguages?: [string, ...string[]];
|
|
208
227
|
};
|
|
209
228
|
searchClient?: any;
|
|
229
|
+
indexBatchSize?: number;
|
|
210
230
|
};
|
|
211
231
|
client?: {
|
|
212
232
|
referenceDepth?: number;
|
|
@@ -234,10 +254,13 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
|
|
|
234
254
|
}[];
|
|
235
255
|
config?: {
|
|
236
256
|
search?: {
|
|
257
|
+
maxSearchIndexFieldLength?: number;
|
|
237
258
|
tina?: {
|
|
238
259
|
indexerToken?: string;
|
|
260
|
+
stopwordLanguages?: [string, ...string[]];
|
|
239
261
|
};
|
|
240
262
|
searchClient?: any;
|
|
263
|
+
indexBatchSize?: number;
|
|
241
264
|
};
|
|
242
265
|
client?: {
|
|
243
266
|
referenceDepth?: number;
|
|
@@ -265,10 +288,13 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
|
|
|
265
288
|
}[];
|
|
266
289
|
config?: {
|
|
267
290
|
search?: {
|
|
291
|
+
maxSearchIndexFieldLength?: number;
|
|
268
292
|
tina?: {
|
|
269
293
|
indexerToken?: string;
|
|
294
|
+
stopwordLanguages?: [string, ...string[]];
|
|
270
295
|
};
|
|
271
296
|
searchClient?: any;
|
|
297
|
+
indexBatchSize?: number;
|
|
272
298
|
};
|
|
273
299
|
client?: {
|
|
274
300
|
referenceDepth?: number;
|
|
@@ -296,10 +322,13 @@ export declare const TinaCloudSchemaZod: z.ZodEffects<z.ZodObject<{
|
|
|
296
322
|
}[];
|
|
297
323
|
config?: {
|
|
298
324
|
search?: {
|
|
325
|
+
maxSearchIndexFieldLength?: number;
|
|
299
326
|
tina?: {
|
|
300
327
|
indexerToken?: string;
|
|
328
|
+
stopwordLanguages?: [string, ...string[]];
|
|
301
329
|
};
|
|
302
330
|
searchClient?: any;
|
|
331
|
+
indexBatchSize?: number;
|
|
303
332
|
};
|
|
304
333
|
client?: {
|
|
305
334
|
referenceDepth?: number;
|
|
@@ -39,29 +39,43 @@ export declare const tinaConfigZod: z.ZodObject<{
|
|
|
39
39
|
search: z.ZodOptional<z.ZodObject<{
|
|
40
40
|
tina: z.ZodOptional<z.ZodObject<{
|
|
41
41
|
indexerToken: z.ZodOptional<z.ZodString>;
|
|
42
|
+
stopwordLanguages: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
|
|
42
43
|
}, "strict", z.ZodTypeAny, {
|
|
43
44
|
indexerToken?: string;
|
|
45
|
+
stopwordLanguages?: [string, ...string[]];
|
|
44
46
|
}, {
|
|
45
47
|
indexerToken?: string;
|
|
48
|
+
stopwordLanguages?: [string, ...string[]];
|
|
46
49
|
}>>;
|
|
47
50
|
searchClient: z.ZodOptional<z.ZodAny>;
|
|
51
|
+
indexBatchSize: z.ZodOptional<z.ZodNumber>;
|
|
52
|
+
maxSearchIndexFieldLength: z.ZodOptional<z.ZodNumber>;
|
|
48
53
|
}, "strip", z.ZodTypeAny, {
|
|
54
|
+
maxSearchIndexFieldLength?: number;
|
|
49
55
|
tina?: {
|
|
50
56
|
indexerToken?: string;
|
|
57
|
+
stopwordLanguages?: [string, ...string[]];
|
|
51
58
|
};
|
|
52
59
|
searchClient?: any;
|
|
60
|
+
indexBatchSize?: number;
|
|
53
61
|
}, {
|
|
62
|
+
maxSearchIndexFieldLength?: number;
|
|
54
63
|
tina?: {
|
|
55
64
|
indexerToken?: string;
|
|
65
|
+
stopwordLanguages?: [string, ...string[]];
|
|
56
66
|
};
|
|
57
67
|
searchClient?: any;
|
|
68
|
+
indexBatchSize?: number;
|
|
58
69
|
}>>;
|
|
59
70
|
}, "strip", z.ZodTypeAny, {
|
|
60
71
|
search?: {
|
|
72
|
+
maxSearchIndexFieldLength?: number;
|
|
61
73
|
tina?: {
|
|
62
74
|
indexerToken?: string;
|
|
75
|
+
stopwordLanguages?: [string, ...string[]];
|
|
63
76
|
};
|
|
64
77
|
searchClient?: any;
|
|
78
|
+
indexBatchSize?: number;
|
|
65
79
|
};
|
|
66
80
|
client?: {
|
|
67
81
|
referenceDepth?: number;
|
|
@@ -75,10 +89,13 @@ export declare const tinaConfigZod: z.ZodObject<{
|
|
|
75
89
|
};
|
|
76
90
|
}, {
|
|
77
91
|
search?: {
|
|
92
|
+
maxSearchIndexFieldLength?: number;
|
|
78
93
|
tina?: {
|
|
79
94
|
indexerToken?: string;
|
|
95
|
+
stopwordLanguages?: [string, ...string[]];
|
|
80
96
|
};
|
|
81
97
|
searchClient?: any;
|
|
98
|
+
indexBatchSize?: number;
|
|
82
99
|
};
|
|
83
100
|
client?: {
|
|
84
101
|
referenceDepth?: number;
|