@jpmorganchase/mosaic-schemas 0.1.0-beta.49 → 0.1.0-beta.52
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/MosaicConfigSchema.d.ts +70 -65
- package/dist/MosaicConfigSchema.js +6 -1
- package/dist/MosaicConfigSchema.js.map +1 -1
- package/dist/PluginModuleSchema.d.ts +4 -4
- package/dist/SerialiserModuleSchema.d.ts +7 -8
- package/dist/SourceModuleSchema.d.ts +15 -32
- package/dist/SourceScheduleSchema.d.ts +2 -2
- package/dist/SourceWorkflowSchema.d.ts +2 -2
- package/package.json +2 -2
|
@@ -20,34 +20,33 @@ export declare const mosaicConfigSchema: z.ZodObject<{
|
|
|
20
20
|
* These are typically generated by plugins.
|
|
21
21
|
*/
|
|
22
22
|
ignorePages: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
23
|
-
serialisers: z.ZodArray<z.ZodObject<
|
|
23
|
+
serialisers: z.ZodArray<z.ZodObject<{
|
|
24
|
+
options: z.ZodOptional<z.ZodUnknown>;
|
|
24
25
|
modulePath: z.ZodString;
|
|
25
26
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
-
options: z.ZodOptional<z.ZodUnknown>;
|
|
27
27
|
runTimeOnly: z.ZodOptional<z.ZodBoolean>;
|
|
28
28
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
29
29
|
previewDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
30
30
|
allowMultiple: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
-
}, {
|
|
32
31
|
filter: z.ZodEffects<z.ZodAny, RegExp, any>;
|
|
33
|
-
}
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
filter: RegExp;
|
|
34
|
+
modulePath: string;
|
|
34
35
|
options?: unknown;
|
|
35
36
|
disabled?: boolean | undefined;
|
|
36
37
|
runTimeOnly?: boolean | undefined;
|
|
37
38
|
priority?: number | undefined;
|
|
38
39
|
previewDisabled?: boolean | undefined;
|
|
39
40
|
allowMultiple?: boolean | undefined;
|
|
40
|
-
filter: RegExp;
|
|
41
|
-
modulePath: string;
|
|
42
41
|
}, {
|
|
43
|
-
|
|
42
|
+
modulePath: string;
|
|
44
43
|
options?: unknown;
|
|
45
44
|
disabled?: boolean | undefined;
|
|
46
45
|
runTimeOnly?: boolean | undefined;
|
|
47
46
|
priority?: number | undefined;
|
|
48
47
|
previewDisabled?: boolean | undefined;
|
|
49
48
|
allowMultiple?: boolean | undefined;
|
|
50
|
-
|
|
49
|
+
filter?: any;
|
|
51
50
|
}>, "many">;
|
|
52
51
|
plugins: z.ZodArray<z.ZodObject<{
|
|
53
52
|
modulePath: z.ZodString;
|
|
@@ -58,31 +57,30 @@ export declare const mosaicConfigSchema: z.ZodObject<{
|
|
|
58
57
|
previewDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
59
58
|
allowMultiple: z.ZodOptional<z.ZodBoolean>;
|
|
60
59
|
}, "strip", z.ZodTypeAny, {
|
|
61
|
-
|
|
60
|
+
modulePath: string;
|
|
62
61
|
disabled?: boolean | undefined;
|
|
62
|
+
options?: unknown;
|
|
63
63
|
runTimeOnly?: boolean | undefined;
|
|
64
64
|
priority?: number | undefined;
|
|
65
65
|
previewDisabled?: boolean | undefined;
|
|
66
66
|
allowMultiple?: boolean | undefined;
|
|
67
|
-
modulePath: string;
|
|
68
67
|
}, {
|
|
69
|
-
|
|
68
|
+
modulePath: string;
|
|
70
69
|
disabled?: boolean | undefined;
|
|
70
|
+
options?: unknown;
|
|
71
71
|
runTimeOnly?: boolean | undefined;
|
|
72
72
|
priority?: number | undefined;
|
|
73
73
|
previewDisabled?: boolean | undefined;
|
|
74
74
|
allowMultiple?: boolean | undefined;
|
|
75
|
-
modulePath: string;
|
|
76
75
|
}>, "many">;
|
|
77
|
-
sources: z.ZodArray<z.ZodObject<
|
|
76
|
+
sources: z.ZodArray<z.ZodObject<{
|
|
77
|
+
options: z.ZodOptional<z.ZodUnknown>;
|
|
78
78
|
modulePath: z.ZodString;
|
|
79
79
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
80
|
-
options: z.ZodOptional<z.ZodUnknown>;
|
|
81
80
|
runTimeOnly: z.ZodOptional<z.ZodBoolean>;
|
|
82
81
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
83
82
|
previewDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
84
83
|
allowMultiple: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
-
}, {
|
|
86
84
|
namespace: z.ZodString;
|
|
87
85
|
cache: z.ZodOptional<z.ZodBoolean>;
|
|
88
86
|
workflows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -90,13 +88,13 @@ export declare const mosaicConfigSchema: z.ZodObject<{
|
|
|
90
88
|
options: z.ZodUnknown;
|
|
91
89
|
action: z.ZodAny;
|
|
92
90
|
}, "strip", z.ZodTypeAny, {
|
|
91
|
+
name: string;
|
|
93
92
|
options?: unknown;
|
|
94
93
|
action?: any;
|
|
95
|
-
name: string;
|
|
96
94
|
}, {
|
|
95
|
+
name: string;
|
|
97
96
|
options?: unknown;
|
|
98
97
|
action?: any;
|
|
99
|
-
name: string;
|
|
100
98
|
}>, "many">>;
|
|
101
99
|
schedule: z.ZodOptional<z.ZodObject<{
|
|
102
100
|
checkIntervalMins: z.ZodNumber;
|
|
@@ -113,14 +111,16 @@ export declare const mosaicConfigSchema: z.ZodObject<{
|
|
|
113
111
|
maxRetries: number;
|
|
114
112
|
resetOnSuccess: boolean;
|
|
115
113
|
}, {
|
|
114
|
+
checkIntervalMins: number;
|
|
115
|
+
initialDelayMs: number;
|
|
116
116
|
retryEnabled?: boolean | undefined;
|
|
117
117
|
retryDelayMins?: number | undefined;
|
|
118
118
|
maxRetries?: number | undefined;
|
|
119
119
|
resetOnSuccess?: boolean | undefined;
|
|
120
|
-
checkIntervalMins: number;
|
|
121
|
-
initialDelayMs: number;
|
|
122
120
|
}>>;
|
|
123
|
-
}
|
|
121
|
+
}, "strip", z.ZodTypeAny, {
|
|
122
|
+
modulePath: string;
|
|
123
|
+
namespace: string;
|
|
124
124
|
options?: unknown;
|
|
125
125
|
disabled?: boolean | undefined;
|
|
126
126
|
runTimeOnly?: boolean | undefined;
|
|
@@ -129,9 +129,9 @@ export declare const mosaicConfigSchema: z.ZodObject<{
|
|
|
129
129
|
allowMultiple?: boolean | undefined;
|
|
130
130
|
cache?: boolean | undefined;
|
|
131
131
|
workflows?: {
|
|
132
|
+
name: string;
|
|
132
133
|
options?: unknown;
|
|
133
134
|
action?: any;
|
|
134
|
-
name: string;
|
|
135
135
|
}[] | undefined;
|
|
136
136
|
schedule?: {
|
|
137
137
|
checkIntervalMins: number;
|
|
@@ -141,9 +141,9 @@ export declare const mosaicConfigSchema: z.ZodObject<{
|
|
|
141
141
|
maxRetries: number;
|
|
142
142
|
resetOnSuccess: boolean;
|
|
143
143
|
} | undefined;
|
|
144
|
+
}, {
|
|
144
145
|
modulePath: string;
|
|
145
146
|
namespace: string;
|
|
146
|
-
}, {
|
|
147
147
|
options?: unknown;
|
|
148
148
|
disabled?: boolean | undefined;
|
|
149
149
|
runTimeOnly?: boolean | undefined;
|
|
@@ -152,20 +152,18 @@ export declare const mosaicConfigSchema: z.ZodObject<{
|
|
|
152
152
|
allowMultiple?: boolean | undefined;
|
|
153
153
|
cache?: boolean | undefined;
|
|
154
154
|
workflows?: {
|
|
155
|
+
name: string;
|
|
155
156
|
options?: unknown;
|
|
156
157
|
action?: any;
|
|
157
|
-
name: string;
|
|
158
158
|
}[] | undefined;
|
|
159
159
|
schedule?: {
|
|
160
|
+
checkIntervalMins: number;
|
|
161
|
+
initialDelayMs: number;
|
|
160
162
|
retryEnabled?: boolean | undefined;
|
|
161
163
|
retryDelayMins?: number | undefined;
|
|
162
164
|
maxRetries?: number | undefined;
|
|
163
165
|
resetOnSuccess?: boolean | undefined;
|
|
164
|
-
checkIntervalMins: number;
|
|
165
|
-
initialDelayMs: number;
|
|
166
166
|
} | undefined;
|
|
167
|
-
modulePath: string;
|
|
168
|
-
namespace: string;
|
|
169
167
|
}>, "atleastone">;
|
|
170
168
|
schedule: z.ZodDefault<z.ZodOptional<z.ZodObject<{
|
|
171
169
|
checkIntervalMins: z.ZodNumber;
|
|
@@ -182,18 +180,19 @@ export declare const mosaicConfigSchema: z.ZodObject<{
|
|
|
182
180
|
maxRetries: number;
|
|
183
181
|
resetOnSuccess: boolean;
|
|
184
182
|
}, {
|
|
183
|
+
checkIntervalMins: number;
|
|
184
|
+
initialDelayMs: number;
|
|
185
185
|
retryEnabled?: boolean | undefined;
|
|
186
186
|
retryDelayMins?: number | undefined;
|
|
187
187
|
maxRetries?: number | undefined;
|
|
188
188
|
resetOnSuccess?: boolean | undefined;
|
|
189
|
-
checkIntervalMins: number;
|
|
190
|
-
initialDelayMs: number;
|
|
191
189
|
}>>>;
|
|
190
|
+
/**
|
|
191
|
+
* If true, allows source definitions to be pushed to Mosaic on demand.
|
|
192
|
+
* Only 'remote' source definitions will work as these will pull in the content from a remote source
|
|
193
|
+
*/
|
|
194
|
+
enableSourcePush: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
192
195
|
}, "strip", z.ZodTypeAny, {
|
|
193
|
-
deployment?: {
|
|
194
|
-
mode: "active" | "snapshot-file" | "snapshot-s3";
|
|
195
|
-
platform: string;
|
|
196
|
-
} | undefined;
|
|
197
196
|
schedule: {
|
|
198
197
|
checkIntervalMins: number;
|
|
199
198
|
initialDelayMs: number;
|
|
@@ -205,25 +204,27 @@ export declare const mosaicConfigSchema: z.ZodObject<{
|
|
|
205
204
|
pageExtensions: [string, ...string[]];
|
|
206
205
|
ignorePages: string[];
|
|
207
206
|
serialisers: {
|
|
207
|
+
filter: RegExp;
|
|
208
|
+
modulePath: string;
|
|
208
209
|
options?: unknown;
|
|
209
210
|
disabled?: boolean | undefined;
|
|
210
211
|
runTimeOnly?: boolean | undefined;
|
|
211
212
|
priority?: number | undefined;
|
|
212
213
|
previewDisabled?: boolean | undefined;
|
|
213
214
|
allowMultiple?: boolean | undefined;
|
|
214
|
-
filter: RegExp;
|
|
215
|
-
modulePath: string;
|
|
216
215
|
}[];
|
|
217
216
|
plugins: {
|
|
218
|
-
|
|
217
|
+
modulePath: string;
|
|
219
218
|
disabled?: boolean | undefined;
|
|
219
|
+
options?: unknown;
|
|
220
220
|
runTimeOnly?: boolean | undefined;
|
|
221
221
|
priority?: number | undefined;
|
|
222
222
|
previewDisabled?: boolean | undefined;
|
|
223
223
|
allowMultiple?: boolean | undefined;
|
|
224
|
-
modulePath: string;
|
|
225
224
|
}[];
|
|
226
225
|
sources: [{
|
|
226
|
+
modulePath: string;
|
|
227
|
+
namespace: string;
|
|
227
228
|
options?: unknown;
|
|
228
229
|
disabled?: boolean | undefined;
|
|
229
230
|
runTimeOnly?: boolean | undefined;
|
|
@@ -232,9 +233,9 @@ export declare const mosaicConfigSchema: z.ZodObject<{
|
|
|
232
233
|
allowMultiple?: boolean | undefined;
|
|
233
234
|
cache?: boolean | undefined;
|
|
234
235
|
workflows?: {
|
|
236
|
+
name: string;
|
|
235
237
|
options?: unknown;
|
|
236
238
|
action?: any;
|
|
237
|
-
name: string;
|
|
238
239
|
}[] | undefined;
|
|
239
240
|
schedule?: {
|
|
240
241
|
checkIntervalMins: number;
|
|
@@ -244,9 +245,9 @@ export declare const mosaicConfigSchema: z.ZodObject<{
|
|
|
244
245
|
maxRetries: number;
|
|
245
246
|
resetOnSuccess: boolean;
|
|
246
247
|
} | undefined;
|
|
248
|
+
}, ...{
|
|
247
249
|
modulePath: string;
|
|
248
250
|
namespace: string;
|
|
249
|
-
}, ...{
|
|
250
251
|
options?: unknown;
|
|
251
252
|
disabled?: boolean | undefined;
|
|
252
253
|
runTimeOnly?: boolean | undefined;
|
|
@@ -255,9 +256,9 @@ export declare const mosaicConfigSchema: z.ZodObject<{
|
|
|
255
256
|
allowMultiple?: boolean | undefined;
|
|
256
257
|
cache?: boolean | undefined;
|
|
257
258
|
workflows?: {
|
|
259
|
+
name: string;
|
|
258
260
|
options?: unknown;
|
|
259
261
|
action?: any;
|
|
260
|
-
name: string;
|
|
261
262
|
}[] | undefined;
|
|
262
263
|
schedule?: {
|
|
263
264
|
checkIntervalMins: number;
|
|
@@ -267,44 +268,36 @@ export declare const mosaicConfigSchema: z.ZodObject<{
|
|
|
267
268
|
maxRetries: number;
|
|
268
269
|
resetOnSuccess: boolean;
|
|
269
270
|
} | undefined;
|
|
270
|
-
modulePath: string;
|
|
271
|
-
namespace: string;
|
|
272
271
|
}[]];
|
|
273
|
-
|
|
274
|
-
schedule?: {
|
|
275
|
-
retryEnabled?: boolean | undefined;
|
|
276
|
-
retryDelayMins?: number | undefined;
|
|
277
|
-
maxRetries?: number | undefined;
|
|
278
|
-
resetOnSuccess?: boolean | undefined;
|
|
279
|
-
checkIntervalMins: number;
|
|
280
|
-
initialDelayMs: number;
|
|
281
|
-
} | undefined;
|
|
272
|
+
enableSourcePush: boolean;
|
|
282
273
|
deployment?: {
|
|
283
274
|
mode: "active" | "snapshot-file" | "snapshot-s3";
|
|
284
275
|
platform: string;
|
|
285
276
|
} | undefined;
|
|
286
|
-
|
|
277
|
+
}, {
|
|
287
278
|
pageExtensions: [string, ...string[]];
|
|
288
279
|
serialisers: {
|
|
289
|
-
|
|
280
|
+
modulePath: string;
|
|
290
281
|
options?: unknown;
|
|
291
282
|
disabled?: boolean | undefined;
|
|
292
283
|
runTimeOnly?: boolean | undefined;
|
|
293
284
|
priority?: number | undefined;
|
|
294
285
|
previewDisabled?: boolean | undefined;
|
|
295
286
|
allowMultiple?: boolean | undefined;
|
|
296
|
-
|
|
287
|
+
filter?: any;
|
|
297
288
|
}[];
|
|
298
289
|
plugins: {
|
|
299
|
-
|
|
290
|
+
modulePath: string;
|
|
300
291
|
disabled?: boolean | undefined;
|
|
292
|
+
options?: unknown;
|
|
301
293
|
runTimeOnly?: boolean | undefined;
|
|
302
294
|
priority?: number | undefined;
|
|
303
295
|
previewDisabled?: boolean | undefined;
|
|
304
296
|
allowMultiple?: boolean | undefined;
|
|
305
|
-
modulePath: string;
|
|
306
297
|
}[];
|
|
307
298
|
sources: [{
|
|
299
|
+
modulePath: string;
|
|
300
|
+
namespace: string;
|
|
308
301
|
options?: unknown;
|
|
309
302
|
disabled?: boolean | undefined;
|
|
310
303
|
runTimeOnly?: boolean | undefined;
|
|
@@ -313,21 +306,21 @@ export declare const mosaicConfigSchema: z.ZodObject<{
|
|
|
313
306
|
allowMultiple?: boolean | undefined;
|
|
314
307
|
cache?: boolean | undefined;
|
|
315
308
|
workflows?: {
|
|
309
|
+
name: string;
|
|
316
310
|
options?: unknown;
|
|
317
311
|
action?: any;
|
|
318
|
-
name: string;
|
|
319
312
|
}[] | undefined;
|
|
320
313
|
schedule?: {
|
|
314
|
+
checkIntervalMins: number;
|
|
315
|
+
initialDelayMs: number;
|
|
321
316
|
retryEnabled?: boolean | undefined;
|
|
322
317
|
retryDelayMins?: number | undefined;
|
|
323
318
|
maxRetries?: number | undefined;
|
|
324
319
|
resetOnSuccess?: boolean | undefined;
|
|
325
|
-
checkIntervalMins: number;
|
|
326
|
-
initialDelayMs: number;
|
|
327
320
|
} | undefined;
|
|
321
|
+
}, ...{
|
|
328
322
|
modulePath: string;
|
|
329
323
|
namespace: string;
|
|
330
|
-
}, ...{
|
|
331
324
|
options?: unknown;
|
|
332
325
|
disabled?: boolean | undefined;
|
|
333
326
|
runTimeOnly?: boolean | undefined;
|
|
@@ -336,20 +329,32 @@ export declare const mosaicConfigSchema: z.ZodObject<{
|
|
|
336
329
|
allowMultiple?: boolean | undefined;
|
|
337
330
|
cache?: boolean | undefined;
|
|
338
331
|
workflows?: {
|
|
332
|
+
name: string;
|
|
339
333
|
options?: unknown;
|
|
340
334
|
action?: any;
|
|
341
|
-
name: string;
|
|
342
335
|
}[] | undefined;
|
|
343
336
|
schedule?: {
|
|
337
|
+
checkIntervalMins: number;
|
|
338
|
+
initialDelayMs: number;
|
|
344
339
|
retryEnabled?: boolean | undefined;
|
|
345
340
|
retryDelayMins?: number | undefined;
|
|
346
341
|
maxRetries?: number | undefined;
|
|
347
342
|
resetOnSuccess?: boolean | undefined;
|
|
348
|
-
checkIntervalMins: number;
|
|
349
|
-
initialDelayMs: number;
|
|
350
343
|
} | undefined;
|
|
351
|
-
modulePath: string;
|
|
352
|
-
namespace: string;
|
|
353
344
|
}[]];
|
|
345
|
+
deployment?: {
|
|
346
|
+
mode: "active" | "snapshot-file" | "snapshot-s3";
|
|
347
|
+
platform: string;
|
|
348
|
+
} | undefined;
|
|
349
|
+
ignorePages?: string[] | undefined;
|
|
350
|
+
schedule?: {
|
|
351
|
+
checkIntervalMins: number;
|
|
352
|
+
initialDelayMs: number;
|
|
353
|
+
retryEnabled?: boolean | undefined;
|
|
354
|
+
retryDelayMins?: number | undefined;
|
|
355
|
+
maxRetries?: number | undefined;
|
|
356
|
+
resetOnSuccess?: boolean | undefined;
|
|
357
|
+
} | undefined;
|
|
358
|
+
enableSourcePush?: boolean | undefined;
|
|
354
359
|
}>;
|
|
355
360
|
export declare type MosaicConfig = z.infer<typeof mosaicConfigSchema>;
|
|
@@ -23,6 +23,11 @@ export const mosaicConfigSchema = z.object({
|
|
|
23
23
|
schedule: sourceScheduleSchema.optional().default({
|
|
24
24
|
checkIntervalMins: 30,
|
|
25
25
|
initialDelayMs: 1000
|
|
26
|
-
})
|
|
26
|
+
}),
|
|
27
|
+
/**
|
|
28
|
+
* If true, allows source definitions to be pushed to Mosaic on demand.
|
|
29
|
+
* Only 'remote' source definitions will work as these will pull in the content from a remote source
|
|
30
|
+
*/
|
|
31
|
+
enableSourcePush: z.boolean().optional().default(false)
|
|
27
32
|
});
|
|
28
33
|
//# sourceMappingURL=MosaicConfigSchema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MosaicConfigSchema.js","sourceRoot":"","sources":["../src/MosaicConfigSchema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE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: z.ZodOptional<z.ZodBoolean>;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
|
|
33
|
+
modulePath: string;
|
|
34
34
|
disabled?: boolean | undefined;
|
|
35
|
+
options?: unknown;
|
|
35
36
|
runTimeOnly?: boolean | undefined;
|
|
36
37
|
priority?: number | undefined;
|
|
37
38
|
previewDisabled?: boolean | undefined;
|
|
38
39
|
allowMultiple?: boolean | undefined;
|
|
39
|
-
modulePath: string;
|
|
40
40
|
}, {
|
|
41
|
-
|
|
41
|
+
modulePath: string;
|
|
42
42
|
disabled?: boolean | undefined;
|
|
43
|
+
options?: unknown;
|
|
43
44
|
runTimeOnly?: boolean | undefined;
|
|
44
45
|
priority?: number | undefined;
|
|
45
46
|
previewDisabled?: boolean | undefined;
|
|
46
47
|
allowMultiple?: boolean | undefined;
|
|
47
|
-
modulePath: string;
|
|
48
48
|
}>;
|
|
49
49
|
export declare type PluginModuleDefinition = z.infer<typeof pluginModuleSchema>;
|
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const serialiserModuleSchema: z.ZodObject<
|
|
2
|
+
export declare const serialiserModuleSchema: z.ZodObject<{
|
|
3
|
+
options: z.ZodOptional<z.ZodUnknown>;
|
|
3
4
|
modulePath: z.ZodString;
|
|
4
5
|
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
5
|
-
options: z.ZodOptional<z.ZodUnknown>;
|
|
6
6
|
runTimeOnly: z.ZodOptional<z.ZodBoolean>;
|
|
7
7
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
8
8
|
previewDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
9
9
|
allowMultiple: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
-
}, {
|
|
11
10
|
filter: z.ZodEffects<z.ZodAny, RegExp, any>;
|
|
12
|
-
}
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
filter: RegExp;
|
|
13
|
+
modulePath: string;
|
|
13
14
|
options?: unknown;
|
|
14
15
|
disabled?: boolean | undefined;
|
|
15
16
|
runTimeOnly?: boolean | undefined;
|
|
16
17
|
priority?: number | undefined;
|
|
17
18
|
previewDisabled?: boolean | undefined;
|
|
18
19
|
allowMultiple?: boolean | undefined;
|
|
19
|
-
filter: RegExp;
|
|
20
|
-
modulePath: string;
|
|
21
20
|
}, {
|
|
22
|
-
|
|
21
|
+
modulePath: string;
|
|
23
22
|
options?: unknown;
|
|
24
23
|
disabled?: boolean | undefined;
|
|
25
24
|
runTimeOnly?: boolean | undefined;
|
|
26
25
|
priority?: number | undefined;
|
|
27
26
|
previewDisabled?: boolean | undefined;
|
|
28
27
|
allowMultiple?: boolean | undefined;
|
|
29
|
-
|
|
28
|
+
filter?: any;
|
|
30
29
|
}>;
|
|
31
30
|
export declare type SerialiserModuleDefinition = z.infer<typeof serialiserModuleSchema>;
|
|
@@ -1,44 +1,27 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const sourceModuleSchema: z.ZodObject<
|
|
2
|
+
export declare const sourceModuleSchema: z.ZodObject<{
|
|
3
|
+
options: z.ZodOptional<z.ZodUnknown>;
|
|
3
4
|
modulePath: z.ZodString;
|
|
4
|
-
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
5
|
-
* set to true to cache the the source pages
|
|
6
|
-
*/
|
|
7
|
-
options: z.ZodOptional<z.ZodUnknown>; /**
|
|
8
|
-
* A collection of workflows that can be triggered for this source
|
|
9
|
-
*/
|
|
5
|
+
disabled: z.ZodOptional<z.ZodBoolean>;
|
|
10
6
|
runTimeOnly: z.ZodOptional<z.ZodBoolean>;
|
|
11
7
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
12
8
|
previewDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
13
9
|
allowMultiple: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
-
}, {
|
|
15
|
-
/**
|
|
16
|
-
* each site has it's own namespace, think of this as your content's uid
|
|
17
|
-
*/
|
|
18
10
|
namespace: z.ZodString;
|
|
19
|
-
/**
|
|
20
|
-
* set to true to cache the the source pages
|
|
21
|
-
*/
|
|
22
11
|
cache: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
-
/**
|
|
24
|
-
* A collection of workflows that can be triggered for this source
|
|
25
|
-
*/
|
|
26
12
|
workflows: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
27
13
|
name: z.ZodString;
|
|
28
14
|
options: z.ZodUnknown;
|
|
29
15
|
action: z.ZodAny;
|
|
30
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
name: string;
|
|
31
18
|
options?: unknown;
|
|
32
19
|
action?: any;
|
|
33
|
-
name: string;
|
|
34
20
|
}, {
|
|
21
|
+
name: string;
|
|
35
22
|
options?: unknown;
|
|
36
23
|
action?: any;
|
|
37
|
-
name: string;
|
|
38
24
|
}>, "many">>;
|
|
39
|
-
/**
|
|
40
|
-
* Configure how often a remote source should check for content updates
|
|
41
|
-
*/
|
|
42
25
|
schedule: z.ZodOptional<z.ZodObject<{
|
|
43
26
|
checkIntervalMins: z.ZodNumber;
|
|
44
27
|
initialDelayMs: z.ZodNumber;
|
|
@@ -54,14 +37,16 @@ export declare const sourceModuleSchema: z.ZodObject<z.extendShape<{
|
|
|
54
37
|
maxRetries: number;
|
|
55
38
|
resetOnSuccess: boolean;
|
|
56
39
|
}, {
|
|
40
|
+
checkIntervalMins: number;
|
|
41
|
+
initialDelayMs: number;
|
|
57
42
|
retryEnabled?: boolean | undefined;
|
|
58
43
|
retryDelayMins?: number | undefined;
|
|
59
44
|
maxRetries?: number | undefined;
|
|
60
45
|
resetOnSuccess?: boolean | undefined;
|
|
61
|
-
checkIntervalMins: number;
|
|
62
|
-
initialDelayMs: number;
|
|
63
46
|
}>>;
|
|
64
|
-
}
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
modulePath: string;
|
|
49
|
+
namespace: string;
|
|
65
50
|
options?: unknown;
|
|
66
51
|
disabled?: boolean | undefined;
|
|
67
52
|
runTimeOnly?: boolean | undefined;
|
|
@@ -70,9 +55,9 @@ export declare const sourceModuleSchema: z.ZodObject<z.extendShape<{
|
|
|
70
55
|
allowMultiple?: boolean | undefined;
|
|
71
56
|
cache?: boolean | undefined;
|
|
72
57
|
workflows?: {
|
|
58
|
+
name: string;
|
|
73
59
|
options?: unknown;
|
|
74
60
|
action?: any;
|
|
75
|
-
name: string;
|
|
76
61
|
}[] | undefined;
|
|
77
62
|
schedule?: {
|
|
78
63
|
checkIntervalMins: number;
|
|
@@ -82,9 +67,9 @@ export declare const sourceModuleSchema: z.ZodObject<z.extendShape<{
|
|
|
82
67
|
maxRetries: number;
|
|
83
68
|
resetOnSuccess: boolean;
|
|
84
69
|
} | undefined;
|
|
70
|
+
}, {
|
|
85
71
|
modulePath: string;
|
|
86
72
|
namespace: string;
|
|
87
|
-
}, {
|
|
88
73
|
options?: unknown;
|
|
89
74
|
disabled?: boolean | undefined;
|
|
90
75
|
runTimeOnly?: boolean | undefined;
|
|
@@ -93,19 +78,17 @@ export declare const sourceModuleSchema: z.ZodObject<z.extendShape<{
|
|
|
93
78
|
allowMultiple?: boolean | undefined;
|
|
94
79
|
cache?: boolean | undefined;
|
|
95
80
|
workflows?: {
|
|
81
|
+
name: string;
|
|
96
82
|
options?: unknown;
|
|
97
83
|
action?: any;
|
|
98
|
-
name: string;
|
|
99
84
|
}[] | undefined;
|
|
100
85
|
schedule?: {
|
|
86
|
+
checkIntervalMins: number;
|
|
87
|
+
initialDelayMs: number;
|
|
101
88
|
retryEnabled?: boolean | undefined;
|
|
102
89
|
retryDelayMins?: number | undefined;
|
|
103
90
|
maxRetries?: number | undefined;
|
|
104
91
|
resetOnSuccess?: boolean | undefined;
|
|
105
|
-
checkIntervalMins: number;
|
|
106
|
-
initialDelayMs: number;
|
|
107
92
|
} | undefined;
|
|
108
|
-
modulePath: string;
|
|
109
|
-
namespace: string;
|
|
110
93
|
}>;
|
|
111
94
|
export declare type SourceModuleDefinition = z.infer<typeof sourceModuleSchema>;
|
|
@@ -37,11 +37,11 @@ export declare const sourceScheduleSchema: z.ZodObject<{
|
|
|
37
37
|
maxRetries: number;
|
|
38
38
|
resetOnSuccess: boolean;
|
|
39
39
|
}, {
|
|
40
|
+
checkIntervalMins: number;
|
|
41
|
+
initialDelayMs: number;
|
|
40
42
|
retryEnabled?: boolean | undefined;
|
|
41
43
|
retryDelayMins?: number | undefined;
|
|
42
44
|
maxRetries?: number | undefined;
|
|
43
45
|
resetOnSuccess?: boolean | undefined;
|
|
44
|
-
checkIntervalMins: number;
|
|
45
|
-
initialDelayMs: number;
|
|
46
46
|
}>;
|
|
47
47
|
export declare type SourceSchedule = z.infer<typeof sourceScheduleSchema>;
|
|
@@ -13,12 +13,12 @@ export declare const sourceWorkflowSchema: z.ZodObject<{
|
|
|
13
13
|
*/
|
|
14
14
|
action: z.ZodAny;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
name: string;
|
|
16
17
|
options?: unknown;
|
|
17
18
|
action?: any;
|
|
18
|
-
name: string;
|
|
19
19
|
}, {
|
|
20
|
+
name: string;
|
|
20
21
|
options?: unknown;
|
|
21
22
|
action?: any;
|
|
22
|
-
name: string;
|
|
23
23
|
}>;
|
|
24
24
|
export declare type SourceWorkflow = z.infer<typeof sourceWorkflowSchema>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jpmorganchase/mosaic-schemas",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.52",
|
|
4
4
|
"author": "",
|
|
5
5
|
"description": "Mosaic Schemas",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,6 +31,6 @@
|
|
|
31
31
|
"lint": "eslint --ignore-pattern \"**/__tests__/**\""
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"zod": "^3.
|
|
34
|
+
"zod": "^3.22.3"
|
|
35
35
|
}
|
|
36
36
|
}
|