@llun/activities.schema 0.2.25 → 0.2.26
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/cjs/collection.js +2 -2
- package/dist/esm/collection.js +2 -2
- package/dist/types/collection.d.ts +16 -16
- package/dist/types/like.d.ts +16 -16
- package/dist/types/note/baseContent.d.ts +12 -12
- package/dist/types/note.d.ts +12 -12
- package/dist/types/question.d.ts +12 -12
- package/dist/types/undo.d.ts +20 -20
- package/package.json +1 -1
- package/src/collection.ts +2 -2
package/dist/cjs/collection.js
CHANGED
|
@@ -9,14 +9,14 @@ exports.CollectionWithFirstPage = zod_1.z.object({
|
|
|
9
9
|
type: zod_1.z.literal("CollectionPage"),
|
|
10
10
|
next: zod_1.z.string(),
|
|
11
11
|
partOf: zod_1.z.string(),
|
|
12
|
-
items: zod_1.z.array(zod_1.z.any()),
|
|
12
|
+
items: zod_1.z.union([zod_1.z.any(), zod_1.z.array(zod_1.z.any())]),
|
|
13
13
|
}),
|
|
14
14
|
});
|
|
15
15
|
exports.CollectionWithItems = zod_1.z.object({
|
|
16
16
|
id: zod_1.z.string(),
|
|
17
17
|
type: zod_1.z.literal("Collection"),
|
|
18
18
|
totalItems: zod_1.z.number(),
|
|
19
|
-
items: zod_1.z.array(zod_1.z.any()),
|
|
19
|
+
items: zod_1.z.union([zod_1.z.any(), zod_1.z.array(zod_1.z.any())]),
|
|
20
20
|
});
|
|
21
21
|
exports.Collection = zod_1.z.union([
|
|
22
22
|
exports.CollectionWithFirstPage,
|
package/dist/esm/collection.js
CHANGED
|
@@ -6,14 +6,14 @@ export const CollectionWithFirstPage = z.object({
|
|
|
6
6
|
type: z.literal("CollectionPage"),
|
|
7
7
|
next: z.string(),
|
|
8
8
|
partOf: z.string(),
|
|
9
|
-
items: z.array(z.any()),
|
|
9
|
+
items: z.union([z.any(), z.array(z.any())]),
|
|
10
10
|
}),
|
|
11
11
|
});
|
|
12
12
|
export const CollectionWithItems = z.object({
|
|
13
13
|
id: z.string(),
|
|
14
14
|
type: z.literal("Collection"),
|
|
15
15
|
totalItems: z.number(),
|
|
16
|
-
items: z.array(z.any()),
|
|
16
|
+
items: z.union([z.any(), z.array(z.any())]),
|
|
17
17
|
});
|
|
18
18
|
export const Collection = z.union([
|
|
19
19
|
CollectionWithFirstPage,
|
|
@@ -6,17 +6,17 @@ export declare const CollectionWithFirstPage: z.ZodObject<{
|
|
|
6
6
|
type: z.ZodLiteral<"CollectionPage">;
|
|
7
7
|
next: z.ZodString;
|
|
8
8
|
partOf: z.ZodString;
|
|
9
|
-
items: z.ZodArray<z.ZodAny, "many">;
|
|
9
|
+
items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny, "many">]>;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
11
|
type: "CollectionPage";
|
|
12
12
|
next: string;
|
|
13
13
|
partOf: string;
|
|
14
|
-
items
|
|
14
|
+
items?: any;
|
|
15
15
|
}, {
|
|
16
16
|
type: "CollectionPage";
|
|
17
17
|
next: string;
|
|
18
18
|
partOf: string;
|
|
19
|
-
items
|
|
19
|
+
items?: any;
|
|
20
20
|
}>;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
22
|
id: string;
|
|
@@ -25,7 +25,7 @@ export declare const CollectionWithFirstPage: z.ZodObject<{
|
|
|
25
25
|
type: "CollectionPage";
|
|
26
26
|
next: string;
|
|
27
27
|
partOf: string;
|
|
28
|
-
items
|
|
28
|
+
items?: any;
|
|
29
29
|
};
|
|
30
30
|
}, {
|
|
31
31
|
id: string;
|
|
@@ -34,7 +34,7 @@ export declare const CollectionWithFirstPage: z.ZodObject<{
|
|
|
34
34
|
type: "CollectionPage";
|
|
35
35
|
next: string;
|
|
36
36
|
partOf: string;
|
|
37
|
-
items
|
|
37
|
+
items?: any;
|
|
38
38
|
};
|
|
39
39
|
}>;
|
|
40
40
|
export type CollectionWithFirstPage = z.infer<typeof CollectionWithFirstPage>;
|
|
@@ -42,17 +42,17 @@ export declare const CollectionWithItems: z.ZodObject<{
|
|
|
42
42
|
id: z.ZodString;
|
|
43
43
|
type: z.ZodLiteral<"Collection">;
|
|
44
44
|
totalItems: z.ZodNumber;
|
|
45
|
-
items: z.ZodArray<z.ZodAny, "many">;
|
|
45
|
+
items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny, "many">]>;
|
|
46
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
47
|
id: string;
|
|
48
48
|
type: "Collection";
|
|
49
|
-
items: any[];
|
|
50
49
|
totalItems: number;
|
|
50
|
+
items?: any;
|
|
51
51
|
}, {
|
|
52
52
|
id: string;
|
|
53
53
|
type: "Collection";
|
|
54
|
-
items: any[];
|
|
55
54
|
totalItems: number;
|
|
55
|
+
items?: any;
|
|
56
56
|
}>;
|
|
57
57
|
export type CollectionWithItems = z.infer<typeof CollectionWithItems>;
|
|
58
58
|
export declare const Collection: z.ZodUnion<[z.ZodObject<{
|
|
@@ -62,17 +62,17 @@ export declare const Collection: z.ZodUnion<[z.ZodObject<{
|
|
|
62
62
|
type: z.ZodLiteral<"CollectionPage">;
|
|
63
63
|
next: z.ZodString;
|
|
64
64
|
partOf: z.ZodString;
|
|
65
|
-
items: z.ZodArray<z.ZodAny, "many">;
|
|
65
|
+
items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny, "many">]>;
|
|
66
66
|
}, "strip", z.ZodTypeAny, {
|
|
67
67
|
type: "CollectionPage";
|
|
68
68
|
next: string;
|
|
69
69
|
partOf: string;
|
|
70
|
-
items
|
|
70
|
+
items?: any;
|
|
71
71
|
}, {
|
|
72
72
|
type: "CollectionPage";
|
|
73
73
|
next: string;
|
|
74
74
|
partOf: string;
|
|
75
|
-
items
|
|
75
|
+
items?: any;
|
|
76
76
|
}>;
|
|
77
77
|
}, "strip", z.ZodTypeAny, {
|
|
78
78
|
id: string;
|
|
@@ -81,7 +81,7 @@ export declare const Collection: z.ZodUnion<[z.ZodObject<{
|
|
|
81
81
|
type: "CollectionPage";
|
|
82
82
|
next: string;
|
|
83
83
|
partOf: string;
|
|
84
|
-
items
|
|
84
|
+
items?: any;
|
|
85
85
|
};
|
|
86
86
|
}, {
|
|
87
87
|
id: string;
|
|
@@ -90,22 +90,22 @@ export declare const Collection: z.ZodUnion<[z.ZodObject<{
|
|
|
90
90
|
type: "CollectionPage";
|
|
91
91
|
next: string;
|
|
92
92
|
partOf: string;
|
|
93
|
-
items
|
|
93
|
+
items?: any;
|
|
94
94
|
};
|
|
95
95
|
}>, z.ZodObject<{
|
|
96
96
|
id: z.ZodString;
|
|
97
97
|
type: z.ZodLiteral<"Collection">;
|
|
98
98
|
totalItems: z.ZodNumber;
|
|
99
|
-
items: z.ZodArray<z.ZodAny, "many">;
|
|
99
|
+
items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny, "many">]>;
|
|
100
100
|
}, "strip", z.ZodTypeAny, {
|
|
101
101
|
id: string;
|
|
102
102
|
type: "Collection";
|
|
103
|
-
items: any[];
|
|
104
103
|
totalItems: number;
|
|
104
|
+
items?: any;
|
|
105
105
|
}, {
|
|
106
106
|
id: string;
|
|
107
107
|
type: "Collection";
|
|
108
|
-
items: any[];
|
|
109
108
|
totalItems: number;
|
|
109
|
+
items?: any;
|
|
110
110
|
}>]>;
|
|
111
111
|
export type Collection = z.infer<typeof Collection>;
|
package/dist/types/like.d.ts
CHANGED
|
@@ -22,17 +22,17 @@ export declare const Like: z.ZodObject<{
|
|
|
22
22
|
type: z.ZodLiteral<"CollectionPage">;
|
|
23
23
|
next: z.ZodString;
|
|
24
24
|
partOf: z.ZodString;
|
|
25
|
-
items: z.ZodArray<z.ZodAny, "many">;
|
|
25
|
+
items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny, "many">]>;
|
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
27
|
type: "CollectionPage";
|
|
28
28
|
next: string;
|
|
29
29
|
partOf: string;
|
|
30
|
-
items
|
|
30
|
+
items?: any;
|
|
31
31
|
}, {
|
|
32
32
|
type: "CollectionPage";
|
|
33
33
|
next: string;
|
|
34
34
|
partOf: string;
|
|
35
|
-
items
|
|
35
|
+
items?: any;
|
|
36
36
|
}>;
|
|
37
37
|
}, "strip", z.ZodTypeAny, {
|
|
38
38
|
id: string;
|
|
@@ -41,7 +41,7 @@ export declare const Like: z.ZodObject<{
|
|
|
41
41
|
type: "CollectionPage";
|
|
42
42
|
next: string;
|
|
43
43
|
partOf: string;
|
|
44
|
-
items
|
|
44
|
+
items?: any;
|
|
45
45
|
};
|
|
46
46
|
}, {
|
|
47
47
|
id: string;
|
|
@@ -50,23 +50,23 @@ export declare const Like: z.ZodObject<{
|
|
|
50
50
|
type: "CollectionPage";
|
|
51
51
|
next: string;
|
|
52
52
|
partOf: string;
|
|
53
|
-
items
|
|
53
|
+
items?: any;
|
|
54
54
|
};
|
|
55
55
|
}>, z.ZodObject<{
|
|
56
56
|
id: z.ZodString;
|
|
57
57
|
type: z.ZodLiteral<"Collection">;
|
|
58
58
|
totalItems: z.ZodNumber;
|
|
59
|
-
items: z.ZodArray<z.ZodAny, "many">;
|
|
59
|
+
items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny, "many">]>;
|
|
60
60
|
}, "strip", z.ZodTypeAny, {
|
|
61
61
|
id: string;
|
|
62
62
|
type: "Collection";
|
|
63
|
-
items: any[];
|
|
64
63
|
totalItems: number;
|
|
64
|
+
items?: any;
|
|
65
65
|
}, {
|
|
66
66
|
id: string;
|
|
67
67
|
type: "Collection";
|
|
68
|
-
items: any[];
|
|
69
68
|
totalItems: number;
|
|
69
|
+
items?: any;
|
|
70
70
|
}>]>>>;
|
|
71
71
|
attachment: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
72
72
|
type: z.ZodLiteral<"PropertyValue">;
|
|
@@ -326,13 +326,13 @@ export declare const Like: z.ZodObject<{
|
|
|
326
326
|
type: "CollectionPage";
|
|
327
327
|
next: string;
|
|
328
328
|
partOf: string;
|
|
329
|
-
items
|
|
329
|
+
items?: any;
|
|
330
330
|
};
|
|
331
331
|
} | {
|
|
332
332
|
id: string;
|
|
333
333
|
type: "Collection";
|
|
334
|
-
items: any[];
|
|
335
334
|
totalItems: number;
|
|
335
|
+
items?: any;
|
|
336
336
|
} | null | undefined;
|
|
337
337
|
attachment?: {
|
|
338
338
|
type: "Document";
|
|
@@ -417,13 +417,13 @@ export declare const Like: z.ZodObject<{
|
|
|
417
417
|
type: "CollectionPage";
|
|
418
418
|
next: string;
|
|
419
419
|
partOf: string;
|
|
420
|
-
items
|
|
420
|
+
items?: any;
|
|
421
421
|
};
|
|
422
422
|
} | {
|
|
423
423
|
id: string;
|
|
424
424
|
type: "Collection";
|
|
425
|
-
items: any[];
|
|
426
425
|
totalItems: number;
|
|
426
|
+
items?: any;
|
|
427
427
|
} | null | undefined;
|
|
428
428
|
attachment?: {
|
|
429
429
|
type: "Document";
|
|
@@ -510,13 +510,13 @@ export declare const Like: z.ZodObject<{
|
|
|
510
510
|
type: "CollectionPage";
|
|
511
511
|
next: string;
|
|
512
512
|
partOf: string;
|
|
513
|
-
items
|
|
513
|
+
items?: any;
|
|
514
514
|
};
|
|
515
515
|
} | {
|
|
516
516
|
id: string;
|
|
517
517
|
type: "Collection";
|
|
518
|
-
items: any[];
|
|
519
518
|
totalItems: number;
|
|
519
|
+
items?: any;
|
|
520
520
|
} | null | undefined;
|
|
521
521
|
attachment?: {
|
|
522
522
|
type: "Document";
|
|
@@ -606,13 +606,13 @@ export declare const Like: z.ZodObject<{
|
|
|
606
606
|
type: "CollectionPage";
|
|
607
607
|
next: string;
|
|
608
608
|
partOf: string;
|
|
609
|
-
items
|
|
609
|
+
items?: any;
|
|
610
610
|
};
|
|
611
611
|
} | {
|
|
612
612
|
id: string;
|
|
613
613
|
type: "Collection";
|
|
614
|
-
items: any[];
|
|
615
614
|
totalItems: number;
|
|
615
|
+
items?: any;
|
|
616
616
|
} | null | undefined;
|
|
617
617
|
attachment?: {
|
|
618
618
|
type: "Document";
|
|
@@ -17,17 +17,17 @@ export declare const BaseContent: z.ZodObject<{
|
|
|
17
17
|
type: z.ZodLiteral<"CollectionPage">;
|
|
18
18
|
next: z.ZodString;
|
|
19
19
|
partOf: z.ZodString;
|
|
20
|
-
items: z.ZodArray<z.ZodAny, "many">;
|
|
20
|
+
items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny, "many">]>;
|
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
|
22
22
|
type: "CollectionPage";
|
|
23
23
|
next: string;
|
|
24
24
|
partOf: string;
|
|
25
|
-
items
|
|
25
|
+
items?: any;
|
|
26
26
|
}, {
|
|
27
27
|
type: "CollectionPage";
|
|
28
28
|
next: string;
|
|
29
29
|
partOf: string;
|
|
30
|
-
items
|
|
30
|
+
items?: any;
|
|
31
31
|
}>;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
33
|
id: string;
|
|
@@ -36,7 +36,7 @@ export declare const BaseContent: z.ZodObject<{
|
|
|
36
36
|
type: "CollectionPage";
|
|
37
37
|
next: string;
|
|
38
38
|
partOf: string;
|
|
39
|
-
items
|
|
39
|
+
items?: any;
|
|
40
40
|
};
|
|
41
41
|
}, {
|
|
42
42
|
id: string;
|
|
@@ -45,23 +45,23 @@ export declare const BaseContent: z.ZodObject<{
|
|
|
45
45
|
type: "CollectionPage";
|
|
46
46
|
next: string;
|
|
47
47
|
partOf: string;
|
|
48
|
-
items
|
|
48
|
+
items?: any;
|
|
49
49
|
};
|
|
50
50
|
}>, z.ZodObject<{
|
|
51
51
|
id: z.ZodString;
|
|
52
52
|
type: z.ZodLiteral<"Collection">;
|
|
53
53
|
totalItems: z.ZodNumber;
|
|
54
|
-
items: z.ZodArray<z.ZodAny, "many">;
|
|
54
|
+
items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny, "many">]>;
|
|
55
55
|
}, "strip", z.ZodTypeAny, {
|
|
56
56
|
id: string;
|
|
57
57
|
type: "Collection";
|
|
58
|
-
items: any[];
|
|
59
58
|
totalItems: number;
|
|
59
|
+
items?: any;
|
|
60
60
|
}, {
|
|
61
61
|
id: string;
|
|
62
62
|
type: "Collection";
|
|
63
|
-
items: any[];
|
|
64
63
|
totalItems: number;
|
|
64
|
+
items?: any;
|
|
65
65
|
}>]>>>;
|
|
66
66
|
attachment: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
67
67
|
type: z.ZodLiteral<"PropertyValue">;
|
|
@@ -318,13 +318,13 @@ export declare const BaseContent: z.ZodObject<{
|
|
|
318
318
|
type: "CollectionPage";
|
|
319
319
|
next: string;
|
|
320
320
|
partOf: string;
|
|
321
|
-
items
|
|
321
|
+
items?: any;
|
|
322
322
|
};
|
|
323
323
|
} | {
|
|
324
324
|
id: string;
|
|
325
325
|
type: "Collection";
|
|
326
|
-
items: any[];
|
|
327
326
|
totalItems: number;
|
|
327
|
+
items?: any;
|
|
328
328
|
} | null | undefined;
|
|
329
329
|
attachment?: {
|
|
330
330
|
type: "Document";
|
|
@@ -408,13 +408,13 @@ export declare const BaseContent: z.ZodObject<{
|
|
|
408
408
|
type: "CollectionPage";
|
|
409
409
|
next: string;
|
|
410
410
|
partOf: string;
|
|
411
|
-
items
|
|
411
|
+
items?: any;
|
|
412
412
|
};
|
|
413
413
|
} | {
|
|
414
414
|
id: string;
|
|
415
415
|
type: "Collection";
|
|
416
|
-
items: any[];
|
|
417
416
|
totalItems: number;
|
|
417
|
+
items?: any;
|
|
418
418
|
} | null | undefined;
|
|
419
419
|
attachment?: {
|
|
420
420
|
type: "Document";
|
package/dist/types/note.d.ts
CHANGED
|
@@ -18,17 +18,17 @@ export declare const Note: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
18
18
|
type: z.ZodLiteral<"CollectionPage">;
|
|
19
19
|
next: z.ZodString;
|
|
20
20
|
partOf: z.ZodString;
|
|
21
|
-
items: z.ZodArray<z.ZodAny, "many">;
|
|
21
|
+
items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny, "many">]>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
type: "CollectionPage";
|
|
24
24
|
next: string;
|
|
25
25
|
partOf: string;
|
|
26
|
-
items
|
|
26
|
+
items?: any;
|
|
27
27
|
}, {
|
|
28
28
|
type: "CollectionPage";
|
|
29
29
|
next: string;
|
|
30
30
|
partOf: string;
|
|
31
|
-
items
|
|
31
|
+
items?: any;
|
|
32
32
|
}>;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
34
|
id: string;
|
|
@@ -37,7 +37,7 @@ export declare const Note: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
37
37
|
type: "CollectionPage";
|
|
38
38
|
next: string;
|
|
39
39
|
partOf: string;
|
|
40
|
-
items
|
|
40
|
+
items?: any;
|
|
41
41
|
};
|
|
42
42
|
}, {
|
|
43
43
|
id: string;
|
|
@@ -46,23 +46,23 @@ export declare const Note: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
46
46
|
type: "CollectionPage";
|
|
47
47
|
next: string;
|
|
48
48
|
partOf: string;
|
|
49
|
-
items
|
|
49
|
+
items?: any;
|
|
50
50
|
};
|
|
51
51
|
}>, z.ZodObject<{
|
|
52
52
|
id: z.ZodString;
|
|
53
53
|
type: z.ZodLiteral<"Collection">;
|
|
54
54
|
totalItems: z.ZodNumber;
|
|
55
|
-
items: z.ZodArray<z.ZodAny, "many">;
|
|
55
|
+
items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny, "many">]>;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
57
|
id: string;
|
|
58
58
|
type: "Collection";
|
|
59
|
-
items: any[];
|
|
60
59
|
totalItems: number;
|
|
60
|
+
items?: any;
|
|
61
61
|
}, {
|
|
62
62
|
id: string;
|
|
63
63
|
type: "Collection";
|
|
64
|
-
items: any[];
|
|
65
64
|
totalItems: number;
|
|
65
|
+
items?: any;
|
|
66
66
|
}>]>>>;
|
|
67
67
|
attachment: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
68
68
|
type: z.ZodLiteral<"PropertyValue">;
|
|
@@ -322,13 +322,13 @@ export declare const Note: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
322
322
|
type: "CollectionPage";
|
|
323
323
|
next: string;
|
|
324
324
|
partOf: string;
|
|
325
|
-
items
|
|
325
|
+
items?: any;
|
|
326
326
|
};
|
|
327
327
|
} | {
|
|
328
328
|
id: string;
|
|
329
329
|
type: "Collection";
|
|
330
|
-
items: any[];
|
|
331
330
|
totalItems: number;
|
|
331
|
+
items?: any;
|
|
332
332
|
} | null | undefined;
|
|
333
333
|
attachment?: {
|
|
334
334
|
type: "Document";
|
|
@@ -413,13 +413,13 @@ export declare const Note: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
413
413
|
type: "CollectionPage";
|
|
414
414
|
next: string;
|
|
415
415
|
partOf: string;
|
|
416
|
-
items
|
|
416
|
+
items?: any;
|
|
417
417
|
};
|
|
418
418
|
} | {
|
|
419
419
|
id: string;
|
|
420
420
|
type: "Collection";
|
|
421
|
-
items: any[];
|
|
422
421
|
totalItems: number;
|
|
422
|
+
items?: any;
|
|
423
423
|
} | null | undefined;
|
|
424
424
|
attachment?: {
|
|
425
425
|
type: "Document";
|
package/dist/types/question.d.ts
CHANGED
|
@@ -18,17 +18,17 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
18
18
|
type: z.ZodLiteral<"CollectionPage">;
|
|
19
19
|
next: z.ZodString;
|
|
20
20
|
partOf: z.ZodString;
|
|
21
|
-
items: z.ZodArray<z.ZodAny, "many">;
|
|
21
|
+
items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny, "many">]>;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
23
|
type: "CollectionPage";
|
|
24
24
|
next: string;
|
|
25
25
|
partOf: string;
|
|
26
|
-
items
|
|
26
|
+
items?: any;
|
|
27
27
|
}, {
|
|
28
28
|
type: "CollectionPage";
|
|
29
29
|
next: string;
|
|
30
30
|
partOf: string;
|
|
31
|
-
items
|
|
31
|
+
items?: any;
|
|
32
32
|
}>;
|
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
|
34
34
|
id: string;
|
|
@@ -37,7 +37,7 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
37
37
|
type: "CollectionPage";
|
|
38
38
|
next: string;
|
|
39
39
|
partOf: string;
|
|
40
|
-
items
|
|
40
|
+
items?: any;
|
|
41
41
|
};
|
|
42
42
|
}, {
|
|
43
43
|
id: string;
|
|
@@ -46,23 +46,23 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
46
46
|
type: "CollectionPage";
|
|
47
47
|
next: string;
|
|
48
48
|
partOf: string;
|
|
49
|
-
items
|
|
49
|
+
items?: any;
|
|
50
50
|
};
|
|
51
51
|
}>, z.ZodObject<{
|
|
52
52
|
id: z.ZodString;
|
|
53
53
|
type: z.ZodLiteral<"Collection">;
|
|
54
54
|
totalItems: z.ZodNumber;
|
|
55
|
-
items: z.ZodArray<z.ZodAny, "many">;
|
|
55
|
+
items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny, "many">]>;
|
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
|
57
57
|
id: string;
|
|
58
58
|
type: "Collection";
|
|
59
|
-
items: any[];
|
|
60
59
|
totalItems: number;
|
|
60
|
+
items?: any;
|
|
61
61
|
}, {
|
|
62
62
|
id: string;
|
|
63
63
|
type: "Collection";
|
|
64
|
-
items: any[];
|
|
65
64
|
totalItems: number;
|
|
65
|
+
items?: any;
|
|
66
66
|
}>]>>>;
|
|
67
67
|
attachment: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
68
68
|
type: z.ZodLiteral<"PropertyValue">;
|
|
@@ -360,13 +360,13 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
360
360
|
type: "CollectionPage";
|
|
361
361
|
next: string;
|
|
362
362
|
partOf: string;
|
|
363
|
-
items
|
|
363
|
+
items?: any;
|
|
364
364
|
};
|
|
365
365
|
} | {
|
|
366
366
|
id: string;
|
|
367
367
|
type: "Collection";
|
|
368
|
-
items: any[];
|
|
369
368
|
totalItems: number;
|
|
369
|
+
items?: any;
|
|
370
370
|
} | null | undefined;
|
|
371
371
|
attachment?: {
|
|
372
372
|
type: "Document";
|
|
@@ -460,13 +460,13 @@ export declare const Question: z.ZodObject<z.objectUtil.extendShape<{
|
|
|
460
460
|
type: "CollectionPage";
|
|
461
461
|
next: string;
|
|
462
462
|
partOf: string;
|
|
463
|
-
items
|
|
463
|
+
items?: any;
|
|
464
464
|
};
|
|
465
465
|
} | {
|
|
466
466
|
id: string;
|
|
467
467
|
type: "Collection";
|
|
468
|
-
items: any[];
|
|
469
468
|
totalItems: number;
|
|
469
|
+
items?: any;
|
|
470
470
|
} | null | undefined;
|
|
471
471
|
attachment?: {
|
|
472
472
|
type: "Document";
|
package/dist/types/undo.d.ts
CHANGED
|
@@ -25,17 +25,17 @@ export declare const Undo: z.ZodObject<{
|
|
|
25
25
|
type: z.ZodLiteral<"CollectionPage">;
|
|
26
26
|
next: z.ZodString;
|
|
27
27
|
partOf: z.ZodString;
|
|
28
|
-
items: z.ZodArray<z.ZodAny, "many">;
|
|
28
|
+
items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny, "many">]>;
|
|
29
29
|
}, "strip", z.ZodTypeAny, {
|
|
30
30
|
type: "CollectionPage";
|
|
31
31
|
next: string;
|
|
32
32
|
partOf: string;
|
|
33
|
-
items
|
|
33
|
+
items?: any;
|
|
34
34
|
}, {
|
|
35
35
|
type: "CollectionPage";
|
|
36
36
|
next: string;
|
|
37
37
|
partOf: string;
|
|
38
|
-
items
|
|
38
|
+
items?: any;
|
|
39
39
|
}>;
|
|
40
40
|
}, "strip", z.ZodTypeAny, {
|
|
41
41
|
id: string;
|
|
@@ -44,7 +44,7 @@ export declare const Undo: z.ZodObject<{
|
|
|
44
44
|
type: "CollectionPage";
|
|
45
45
|
next: string;
|
|
46
46
|
partOf: string;
|
|
47
|
-
items
|
|
47
|
+
items?: any;
|
|
48
48
|
};
|
|
49
49
|
}, {
|
|
50
50
|
id: string;
|
|
@@ -53,23 +53,23 @@ export declare const Undo: z.ZodObject<{
|
|
|
53
53
|
type: "CollectionPage";
|
|
54
54
|
next: string;
|
|
55
55
|
partOf: string;
|
|
56
|
-
items
|
|
56
|
+
items?: any;
|
|
57
57
|
};
|
|
58
58
|
}>, z.ZodObject<{
|
|
59
59
|
id: z.ZodString;
|
|
60
60
|
type: z.ZodLiteral<"Collection">;
|
|
61
61
|
totalItems: z.ZodNumber;
|
|
62
|
-
items: z.ZodArray<z.ZodAny, "many">;
|
|
62
|
+
items: z.ZodUnion<[z.ZodAny, z.ZodArray<z.ZodAny, "many">]>;
|
|
63
63
|
}, "strip", z.ZodTypeAny, {
|
|
64
64
|
id: string;
|
|
65
65
|
type: "Collection";
|
|
66
|
-
items: any[];
|
|
67
66
|
totalItems: number;
|
|
67
|
+
items?: any;
|
|
68
68
|
}, {
|
|
69
69
|
id: string;
|
|
70
70
|
type: "Collection";
|
|
71
|
-
items: any[];
|
|
72
71
|
totalItems: number;
|
|
72
|
+
items?: any;
|
|
73
73
|
}>]>>>;
|
|
74
74
|
attachment: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodUnion<[z.ZodObject<{
|
|
75
75
|
type: z.ZodLiteral<"PropertyValue">;
|
|
@@ -329,13 +329,13 @@ export declare const Undo: z.ZodObject<{
|
|
|
329
329
|
type: "CollectionPage";
|
|
330
330
|
next: string;
|
|
331
331
|
partOf: string;
|
|
332
|
-
items
|
|
332
|
+
items?: any;
|
|
333
333
|
};
|
|
334
334
|
} | {
|
|
335
335
|
id: string;
|
|
336
336
|
type: "Collection";
|
|
337
|
-
items: any[];
|
|
338
337
|
totalItems: number;
|
|
338
|
+
items?: any;
|
|
339
339
|
} | null | undefined;
|
|
340
340
|
attachment?: {
|
|
341
341
|
type: "Document";
|
|
@@ -420,13 +420,13 @@ export declare const Undo: z.ZodObject<{
|
|
|
420
420
|
type: "CollectionPage";
|
|
421
421
|
next: string;
|
|
422
422
|
partOf: string;
|
|
423
|
-
items
|
|
423
|
+
items?: any;
|
|
424
424
|
};
|
|
425
425
|
} | {
|
|
426
426
|
id: string;
|
|
427
427
|
type: "Collection";
|
|
428
|
-
items: any[];
|
|
429
428
|
totalItems: number;
|
|
429
|
+
items?: any;
|
|
430
430
|
} | null | undefined;
|
|
431
431
|
attachment?: {
|
|
432
432
|
type: "Document";
|
|
@@ -513,13 +513,13 @@ export declare const Undo: z.ZodObject<{
|
|
|
513
513
|
type: "CollectionPage";
|
|
514
514
|
next: string;
|
|
515
515
|
partOf: string;
|
|
516
|
-
items
|
|
516
|
+
items?: any;
|
|
517
517
|
};
|
|
518
518
|
} | {
|
|
519
519
|
id: string;
|
|
520
520
|
type: "Collection";
|
|
521
|
-
items: any[];
|
|
522
521
|
totalItems: number;
|
|
522
|
+
items?: any;
|
|
523
523
|
} | null | undefined;
|
|
524
524
|
attachment?: {
|
|
525
525
|
type: "Document";
|
|
@@ -609,13 +609,13 @@ export declare const Undo: z.ZodObject<{
|
|
|
609
609
|
type: "CollectionPage";
|
|
610
610
|
next: string;
|
|
611
611
|
partOf: string;
|
|
612
|
-
items
|
|
612
|
+
items?: any;
|
|
613
613
|
};
|
|
614
614
|
} | {
|
|
615
615
|
id: string;
|
|
616
616
|
type: "Collection";
|
|
617
|
-
items: any[];
|
|
618
617
|
totalItems: number;
|
|
618
|
+
items?: any;
|
|
619
619
|
} | null | undefined;
|
|
620
620
|
attachment?: {
|
|
621
621
|
type: "Document";
|
|
@@ -727,13 +727,13 @@ export declare const Undo: z.ZodObject<{
|
|
|
727
727
|
type: "CollectionPage";
|
|
728
728
|
next: string;
|
|
729
729
|
partOf: string;
|
|
730
|
-
items
|
|
730
|
+
items?: any;
|
|
731
731
|
};
|
|
732
732
|
} | {
|
|
733
733
|
id: string;
|
|
734
734
|
type: "Collection";
|
|
735
|
-
items: any[];
|
|
736
735
|
totalItems: number;
|
|
736
|
+
items?: any;
|
|
737
737
|
} | null | undefined;
|
|
738
738
|
attachment?: {
|
|
739
739
|
type: "Document";
|
|
@@ -833,13 +833,13 @@ export declare const Undo: z.ZodObject<{
|
|
|
833
833
|
type: "CollectionPage";
|
|
834
834
|
next: string;
|
|
835
835
|
partOf: string;
|
|
836
|
-
items
|
|
836
|
+
items?: any;
|
|
837
837
|
};
|
|
838
838
|
} | {
|
|
839
839
|
id: string;
|
|
840
840
|
type: "Collection";
|
|
841
|
-
items: any[];
|
|
842
841
|
totalItems: number;
|
|
842
|
+
items?: any;
|
|
843
843
|
} | null | undefined;
|
|
844
844
|
attachment?: {
|
|
845
845
|
type: "Document";
|
package/package.json
CHANGED
package/src/collection.ts
CHANGED
|
@@ -7,7 +7,7 @@ export const CollectionWithFirstPage = z.object({
|
|
|
7
7
|
type: z.literal("CollectionPage"),
|
|
8
8
|
next: z.string(),
|
|
9
9
|
partOf: z.string(),
|
|
10
|
-
items: z.array(z.any()),
|
|
10
|
+
items: z.union([z.any(), z.array(z.any())]),
|
|
11
11
|
}),
|
|
12
12
|
});
|
|
13
13
|
export type CollectionWithFirstPage = z.infer<typeof CollectionWithFirstPage>;
|
|
@@ -16,7 +16,7 @@ export const CollectionWithItems = z.object({
|
|
|
16
16
|
id: z.string(),
|
|
17
17
|
type: z.literal("Collection"),
|
|
18
18
|
totalItems: z.number(),
|
|
19
|
-
items: z.array(z.any()),
|
|
19
|
+
items: z.union([z.any(), z.array(z.any())]),
|
|
20
20
|
});
|
|
21
21
|
export type CollectionWithItems = z.infer<typeof CollectionWithItems>;
|
|
22
22
|
|