@prismicio/types-internal 3.1.0-alpha.4 → 3.1.0-alpha.5
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/lib/content/Document.d.ts +12 -12
- package/lib/content/fields/RepeatableContent.d.ts +1 -1
- package/lib/content/fields/WidgetContent.d.ts +12 -12
- package/lib/content/fields/nestable/LinkContent.d.ts +3 -3
- package/lib/content/fields/nestable/LinkContent.js +9 -4
- package/lib/content/fields/nestable/NestableContent.d.ts +2 -2
- package/lib/content/fields/slices/Slice/CompositeSliceContent.d.ts +4 -4
- package/lib/content/fields/slices/Slice/RepeatableContent.d.ts +2 -2
- package/lib/content/fields/slices/Slice/SharedSliceContent.d.ts +4 -4
- package/lib/content/fields/slices/Slice/SimpleSliceContent.d.ts +2 -2
- package/lib/content/fields/slices/Slice/SlicePrimaryContent.d.ts +2 -2
- package/lib/content/fields/slices/Slice/index.d.ts +10 -10
- package/lib/content/fields/slices/SliceItem.d.ts +10 -10
- package/lib/content/fields/slices/SlicesContent.d.ts +10 -10
- package/package.json +1 -1
- package/src/content/fields/nestable/LinkContent.ts +16 -5
|
@@ -115,7 +115,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
115
115
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
116
116
|
value: t.StringC;
|
|
117
117
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
118
|
-
key: t.
|
|
118
|
+
key: t.Type<string, string, unknown>;
|
|
119
119
|
}>>, t.ExactC<t.TypeC<{
|
|
120
120
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
121
121
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -430,7 +430,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
430
430
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
431
431
|
type: t.LiteralC<"Link">;
|
|
432
432
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
433
|
-
key: t.
|
|
433
|
+
key: t.Type<string, string, unknown>;
|
|
434
434
|
}>>, t.ExactC<t.TypeC<{
|
|
435
435
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
436
436
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -623,7 +623,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
623
623
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
624
624
|
value: t.StringC;
|
|
625
625
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
626
|
-
key: t.
|
|
626
|
+
key: t.Type<string, string, unknown>;
|
|
627
627
|
}>>, t.ExactC<t.TypeC<{
|
|
628
628
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
629
629
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -938,7 +938,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
938
938
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
939
939
|
type: t.LiteralC<"Link">;
|
|
940
940
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
941
|
-
key: t.
|
|
941
|
+
key: t.Type<string, string, unknown>;
|
|
942
942
|
}>>, t.ExactC<t.TypeC<{
|
|
943
943
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
944
944
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -1123,7 +1123,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
1123
1123
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
1124
1124
|
value: t.StringC;
|
|
1125
1125
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1126
|
-
key: t.
|
|
1126
|
+
key: t.Type<string, string, unknown>;
|
|
1127
1127
|
}>>, t.ExactC<t.TypeC<{
|
|
1128
1128
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
1129
1129
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -1438,7 +1438,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
1438
1438
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
1439
1439
|
type: t.LiteralC<"Link">;
|
|
1440
1440
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1441
|
-
key: t.
|
|
1441
|
+
key: t.Type<string, string, unknown>;
|
|
1442
1442
|
}>>, t.ExactC<t.TypeC<{
|
|
1443
1443
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
1444
1444
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -1625,7 +1625,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
1625
1625
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
1626
1626
|
value: t.StringC;
|
|
1627
1627
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1628
|
-
key: t.
|
|
1628
|
+
key: t.Type<string, string, unknown>;
|
|
1629
1629
|
}>>, t.ExactC<t.TypeC<{
|
|
1630
1630
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
1631
1631
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -1940,7 +1940,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
1940
1940
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
1941
1941
|
type: t.LiteralC<"Link">;
|
|
1942
1942
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1943
|
-
key: t.
|
|
1943
|
+
key: t.Type<string, string, unknown>;
|
|
1944
1944
|
}>>, t.ExactC<t.TypeC<{
|
|
1945
1945
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
1946
1946
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -2125,7 +2125,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
2125
2125
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
2126
2126
|
value: t.StringC;
|
|
2127
2127
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2128
|
-
key: t.
|
|
2128
|
+
key: t.Type<string, string, unknown>;
|
|
2129
2129
|
}>>, t.ExactC<t.TypeC<{
|
|
2130
2130
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
2131
2131
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -2440,7 +2440,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
2440
2440
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
2441
2441
|
type: t.LiteralC<"Link">;
|
|
2442
2442
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2443
|
-
key: t.
|
|
2443
|
+
key: t.Type<string, string, unknown>;
|
|
2444
2444
|
}>>, t.ExactC<t.TypeC<{
|
|
2445
2445
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
2446
2446
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -2624,7 +2624,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
2624
2624
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
2625
2625
|
value: t.StringC;
|
|
2626
2626
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2627
|
-
key: t.
|
|
2627
|
+
key: t.Type<string, string, unknown>;
|
|
2628
2628
|
}>>, t.ExactC<t.TypeC<{
|
|
2629
2629
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
2630
2630
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -2939,7 +2939,7 @@ export declare const Document: t.RecordC<t.Type<string, string, unknown>, t.Unio
|
|
|
2939
2939
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
2940
2940
|
type: t.LiteralC<"Link">;
|
|
2941
2941
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2942
|
-
key: t.
|
|
2942
|
+
key: t.Type<string, string, unknown>;
|
|
2943
2943
|
}>>, t.ExactC<t.TypeC<{
|
|
2944
2944
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
2945
2945
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -6,7 +6,7 @@ export declare const RepeatableContent: t.ExactC<t.TypeC<{
|
|
|
6
6
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
7
7
|
type: t.LiteralC<"Link">;
|
|
8
8
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
9
|
-
key: t.
|
|
9
|
+
key: t.Type<string, string, unknown>;
|
|
10
10
|
}>>, t.ExactC<t.TypeC<{
|
|
11
11
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
12
12
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -112,7 +112,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
112
112
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
113
113
|
value: t.StringC;
|
|
114
114
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
115
|
-
key: t.
|
|
115
|
+
key: t.Type<string, string, unknown>;
|
|
116
116
|
}>>, t.ExactC<t.TypeC<{
|
|
117
117
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
118
118
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -427,7 +427,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
427
427
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
428
428
|
type: t.LiteralC<"Link">;
|
|
429
429
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
430
|
-
key: t.
|
|
430
|
+
key: t.Type<string, string, unknown>;
|
|
431
431
|
}>>, t.ExactC<t.TypeC<{
|
|
432
432
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
433
433
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -620,7 +620,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
620
620
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
621
621
|
value: t.StringC;
|
|
622
622
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
623
|
-
key: t.
|
|
623
|
+
key: t.Type<string, string, unknown>;
|
|
624
624
|
}>>, t.ExactC<t.TypeC<{
|
|
625
625
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
626
626
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -935,7 +935,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
935
935
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
936
936
|
type: t.LiteralC<"Link">;
|
|
937
937
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
938
|
-
key: t.
|
|
938
|
+
key: t.Type<string, string, unknown>;
|
|
939
939
|
}>>, t.ExactC<t.TypeC<{
|
|
940
940
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
941
941
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -1120,7 +1120,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
1120
1120
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
1121
1121
|
value: t.StringC;
|
|
1122
1122
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1123
|
-
key: t.
|
|
1123
|
+
key: t.Type<string, string, unknown>;
|
|
1124
1124
|
}>>, t.ExactC<t.TypeC<{
|
|
1125
1125
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
1126
1126
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -1435,7 +1435,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
1435
1435
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
1436
1436
|
type: t.LiteralC<"Link">;
|
|
1437
1437
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1438
|
-
key: t.
|
|
1438
|
+
key: t.Type<string, string, unknown>;
|
|
1439
1439
|
}>>, t.ExactC<t.TypeC<{
|
|
1440
1440
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
1441
1441
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -1622,7 +1622,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
1622
1622
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
1623
1623
|
value: t.StringC;
|
|
1624
1624
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1625
|
-
key: t.
|
|
1625
|
+
key: t.Type<string, string, unknown>;
|
|
1626
1626
|
}>>, t.ExactC<t.TypeC<{
|
|
1627
1627
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
1628
1628
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -1937,7 +1937,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
1937
1937
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
1938
1938
|
type: t.LiteralC<"Link">;
|
|
1939
1939
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1940
|
-
key: t.
|
|
1940
|
+
key: t.Type<string, string, unknown>;
|
|
1941
1941
|
}>>, t.ExactC<t.TypeC<{
|
|
1942
1942
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
1943
1943
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -2122,7 +2122,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
2122
2122
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
2123
2123
|
value: t.StringC;
|
|
2124
2124
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2125
|
-
key: t.
|
|
2125
|
+
key: t.Type<string, string, unknown>;
|
|
2126
2126
|
}>>, t.ExactC<t.TypeC<{
|
|
2127
2127
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
2128
2128
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -2437,7 +2437,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
2437
2437
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
2438
2438
|
type: t.LiteralC<"Link">;
|
|
2439
2439
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2440
|
-
key: t.
|
|
2440
|
+
key: t.Type<string, string, unknown>;
|
|
2441
2441
|
}>>, t.ExactC<t.TypeC<{
|
|
2442
2442
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
2443
2443
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -2621,7 +2621,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
2621
2621
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
2622
2622
|
value: t.StringC;
|
|
2623
2623
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2624
|
-
key: t.
|
|
2624
|
+
key: t.Type<string, string, unknown>;
|
|
2625
2625
|
}>>, t.ExactC<t.TypeC<{
|
|
2626
2626
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
2627
2627
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -2936,7 +2936,7 @@ export declare const WidgetContent: t.UnionC<[t.Type<GroupContent, GroupContent,
|
|
|
2936
2936
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
2937
2937
|
type: t.LiteralC<"Link">;
|
|
2938
2938
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2939
|
-
key: t.
|
|
2939
|
+
key: t.Type<string, string, unknown>;
|
|
2940
2940
|
}>>, t.ExactC<t.TypeC<{
|
|
2941
2941
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
2942
2942
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -225,7 +225,7 @@ export declare const isLinkContent: (u: unknown) => u is {
|
|
|
225
225
|
});
|
|
226
226
|
};
|
|
227
227
|
export declare const LinkLegacy: t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
228
|
-
key: t.
|
|
228
|
+
key: t.Type<string, string, unknown>;
|
|
229
229
|
}>>, t.UnionC<[t.Type<{
|
|
230
230
|
__TYPE__: "ImageLink";
|
|
231
231
|
} & ((({
|
|
@@ -535,7 +535,7 @@ export declare const Link: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
|
535
535
|
text: t.StringC;
|
|
536
536
|
}>]>>]>]>;
|
|
537
537
|
export declare const LinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
538
|
-
key: t.
|
|
538
|
+
key: t.Type<string, string, unknown>;
|
|
539
539
|
}>>, t.ExactC<t.TypeC<{
|
|
540
540
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
541
541
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -825,7 +825,7 @@ export declare const FilledLink: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
|
825
825
|
}, unknown>, t.NullC, t.UndefinedC]>;
|
|
826
826
|
}>]>>]>]>;
|
|
827
827
|
export declare const FilledLinkContent: t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
828
|
-
key: t.
|
|
828
|
+
key: t.Type<string, string, unknown>;
|
|
829
829
|
}>>, t.ExactC<t.TypeC<{
|
|
830
830
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
831
831
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -33,11 +33,16 @@ const uuid_1 = require("uuid");
|
|
|
33
33
|
const validators_1 = require("../../../validators");
|
|
34
34
|
const function_2 = require("../../../validators/function");
|
|
35
35
|
const utils_1 = require("../../utils");
|
|
36
|
+
const isUuid = (input) => typeof input === "string" && (0, uuid_1.validate)(input);
|
|
37
|
+
const uuidWithFallback = new t.Type("UUID", isUuid, (u, c) => {
|
|
38
|
+
if (typeof u === "undefined")
|
|
39
|
+
return t.success((0, uuid_1.v4)());
|
|
40
|
+
if (isUuid(u))
|
|
41
|
+
return t.success(u);
|
|
42
|
+
return t.failure(u, c);
|
|
43
|
+
}, t.identity);
|
|
36
44
|
function withKey(codec) {
|
|
37
|
-
return t.intersection([
|
|
38
|
-
t.strict({ key: (0, io_ts_types_1.withFallback)(t.string, (0, uuid_1.v4)()) }),
|
|
39
|
-
codec,
|
|
40
|
-
]);
|
|
45
|
+
return t.intersection([t.strict({ key: uuidWithFallback }), codec]);
|
|
41
46
|
}
|
|
42
47
|
// ImageLink.
|
|
43
48
|
exports.ImageLinkType = "ImageLink";
|
|
@@ -112,7 +112,7 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
112
112
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
113
113
|
value: t.StringC;
|
|
114
114
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
115
|
-
key: t.
|
|
115
|
+
key: t.Type<string, string, unknown>;
|
|
116
116
|
}>>, t.ExactC<t.TypeC<{
|
|
117
117
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
118
118
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -427,7 +427,7 @@ export declare const NestableContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
427
427
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
428
428
|
type: t.LiteralC<"Link">;
|
|
429
429
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
430
|
-
key: t.
|
|
430
|
+
key: t.Type<string, string, unknown>;
|
|
431
431
|
}>>, t.ExactC<t.TypeC<{
|
|
432
432
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
433
433
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -1778,7 +1778,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
1778
1778
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
1779
1779
|
value: t.StringC;
|
|
1780
1780
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1781
|
-
key: t.
|
|
1781
|
+
key: t.Type<string, string, unknown>;
|
|
1782
1782
|
}>>, t.ExactC<t.TypeC<{
|
|
1783
1783
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
1784
1784
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -2093,7 +2093,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
2093
2093
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
2094
2094
|
type: t.LiteralC<"Link">;
|
|
2095
2095
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2096
|
-
key: t.
|
|
2096
|
+
key: t.Type<string, string, unknown>;
|
|
2097
2097
|
}>>, t.ExactC<t.TypeC<{
|
|
2098
2098
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
2099
2099
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -2278,7 +2278,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
2278
2278
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
2279
2279
|
value: t.StringC;
|
|
2280
2280
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2281
|
-
key: t.
|
|
2281
|
+
key: t.Type<string, string, unknown>;
|
|
2282
2282
|
}>>, t.ExactC<t.TypeC<{
|
|
2283
2283
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
2284
2284
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -2593,7 +2593,7 @@ export declare const CompositeSliceContent: t.ExactC<t.TypeC<{
|
|
|
2593
2593
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
2594
2594
|
type: t.LiteralC<"Link">;
|
|
2595
2595
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2596
|
-
key: t.
|
|
2596
|
+
key: t.Type<string, string, unknown>;
|
|
2597
2597
|
}>>, t.ExactC<t.TypeC<{
|
|
2598
2598
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
2599
2599
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -117,7 +117,7 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
|
|
|
117
117
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
118
118
|
value: t.StringC;
|
|
119
119
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
120
|
-
key: t.
|
|
120
|
+
key: t.Type<string, string, unknown>;
|
|
121
121
|
}>>, t.ExactC<t.TypeC<{
|
|
122
122
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
123
123
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -432,7 +432,7 @@ export declare const RepeatableWidgets: t.ArrayC<t.ExactC<t.TypeC<{
|
|
|
432
432
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
433
433
|
type: t.LiteralC<"Link">;
|
|
434
434
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
435
|
-
key: t.
|
|
435
|
+
key: t.Type<string, string, unknown>;
|
|
436
436
|
}>>, t.ExactC<t.TypeC<{
|
|
437
437
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
438
438
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -1782,7 +1782,7 @@ export declare const SharedSliceContent: t.ExactC<t.TypeC<{
|
|
|
1782
1782
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
1783
1783
|
value: t.StringC;
|
|
1784
1784
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1785
|
-
key: t.
|
|
1785
|
+
key: t.Type<string, string, unknown>;
|
|
1786
1786
|
}>>, t.ExactC<t.TypeC<{
|
|
1787
1787
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
1788
1788
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -2097,7 +2097,7 @@ export declare const SharedSliceContent: t.ExactC<t.TypeC<{
|
|
|
2097
2097
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
2098
2098
|
type: t.LiteralC<"Link">;
|
|
2099
2099
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2100
|
-
key: t.
|
|
2100
|
+
key: t.Type<string, string, unknown>;
|
|
2101
2101
|
}>>, t.ExactC<t.TypeC<{
|
|
2102
2102
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
2103
2103
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -2282,7 +2282,7 @@ export declare const SharedSliceContent: t.ExactC<t.TypeC<{
|
|
|
2282
2282
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
2283
2283
|
value: t.StringC;
|
|
2284
2284
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2285
|
-
key: t.
|
|
2285
|
+
key: t.Type<string, string, unknown>;
|
|
2286
2286
|
}>>, t.ExactC<t.TypeC<{
|
|
2287
2287
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
2288
2288
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -2597,7 +2597,7 @@ export declare const SharedSliceContent: t.ExactC<t.TypeC<{
|
|
|
2597
2597
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
2598
2598
|
type: t.LiteralC<"Link">;
|
|
2599
2599
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2600
|
-
key: t.
|
|
2600
|
+
key: t.Type<string, string, unknown>;
|
|
2601
2601
|
}>>, t.ExactC<t.TypeC<{
|
|
2602
2602
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
2603
2603
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -115,7 +115,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
115
115
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
116
116
|
value: t.StringC;
|
|
117
117
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
118
|
-
key: t.
|
|
118
|
+
key: t.Type<string, string, unknown>;
|
|
119
119
|
}>>, t.ExactC<t.TypeC<{
|
|
120
120
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
121
121
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -430,7 +430,7 @@ export declare const SimpleSliceContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
430
430
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
431
431
|
type: t.LiteralC<"Link">;
|
|
432
432
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
433
|
-
key: t.
|
|
433
|
+
key: t.Type<string, string, unknown>;
|
|
434
434
|
}>>, t.ExactC<t.TypeC<{
|
|
435
435
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
436
436
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -112,7 +112,7 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
112
112
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
113
113
|
value: t.StringC;
|
|
114
114
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
115
|
-
key: t.
|
|
115
|
+
key: t.Type<string, string, unknown>;
|
|
116
116
|
}>>, t.ExactC<t.TypeC<{
|
|
117
117
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
118
118
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -427,7 +427,7 @@ export declare const SlicePrimaryContent: t.UnionC<[t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
427
427
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
428
428
|
type: t.LiteralC<"Link">;
|
|
429
429
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
430
|
-
key: t.
|
|
430
|
+
key: t.Type<string, string, unknown>;
|
|
431
431
|
}>>, t.ExactC<t.TypeC<{
|
|
432
432
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
433
433
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -2181,7 +2181,7 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
2181
2181
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
2182
2182
|
value: t.StringC;
|
|
2183
2183
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2184
|
-
key: t.
|
|
2184
|
+
key: t.Type<string, string, unknown>;
|
|
2185
2185
|
}>>, t.ExactC<t.TypeC<{
|
|
2186
2186
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
2187
2187
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -2496,7 +2496,7 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
2496
2496
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
2497
2497
|
type: t.LiteralC<"Link">;
|
|
2498
2498
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2499
|
-
key: t.
|
|
2499
|
+
key: t.Type<string, string, unknown>;
|
|
2500
2500
|
}>>, t.ExactC<t.TypeC<{
|
|
2501
2501
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
2502
2502
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -2681,7 +2681,7 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
2681
2681
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
2682
2682
|
value: t.StringC;
|
|
2683
2683
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2684
|
-
key: t.
|
|
2684
|
+
key: t.Type<string, string, unknown>;
|
|
2685
2685
|
}>>, t.ExactC<t.TypeC<{
|
|
2686
2686
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
2687
2687
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -2996,7 +2996,7 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
2996
2996
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
2997
2997
|
type: t.LiteralC<"Link">;
|
|
2998
2998
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2999
|
-
key: t.
|
|
2999
|
+
key: t.Type<string, string, unknown>;
|
|
3000
3000
|
}>>, t.ExactC<t.TypeC<{
|
|
3001
3001
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
3002
3002
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -3183,7 +3183,7 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
3183
3183
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
3184
3184
|
value: t.StringC;
|
|
3185
3185
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
3186
|
-
key: t.
|
|
3186
|
+
key: t.Type<string, string, unknown>;
|
|
3187
3187
|
}>>, t.ExactC<t.TypeC<{
|
|
3188
3188
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
3189
3189
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -3498,7 +3498,7 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
3498
3498
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
3499
3499
|
type: t.LiteralC<"Link">;
|
|
3500
3500
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
3501
|
-
key: t.
|
|
3501
|
+
key: t.Type<string, string, unknown>;
|
|
3502
3502
|
}>>, t.ExactC<t.TypeC<{
|
|
3503
3503
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
3504
3504
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -3683,7 +3683,7 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
3683
3683
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
3684
3684
|
value: t.StringC;
|
|
3685
3685
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
3686
|
-
key: t.
|
|
3686
|
+
key: t.Type<string, string, unknown>;
|
|
3687
3687
|
}>>, t.ExactC<t.TypeC<{
|
|
3688
3688
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
3689
3689
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -3998,7 +3998,7 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
3998
3998
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
3999
3999
|
type: t.LiteralC<"Link">;
|
|
4000
4000
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
4001
|
-
key: t.
|
|
4001
|
+
key: t.Type<string, string, unknown>;
|
|
4002
4002
|
}>>, t.ExactC<t.TypeC<{
|
|
4003
4003
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
4004
4004
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -4182,7 +4182,7 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
4182
4182
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
4183
4183
|
value: t.StringC;
|
|
4184
4184
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
4185
|
-
key: t.
|
|
4185
|
+
key: t.Type<string, string, unknown>;
|
|
4186
4186
|
}>>, t.ExactC<t.TypeC<{
|
|
4187
4187
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
4188
4188
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -4497,7 +4497,7 @@ export declare const SliceContent: t.UnionC<[t.ExactC<t.TypeC<{
|
|
|
4497
4497
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
4498
4498
|
type: t.LiteralC<"Link">;
|
|
4499
4499
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
4500
|
-
key: t.
|
|
4500
|
+
key: t.Type<string, string, unknown>;
|
|
4501
4501
|
}>>, t.ExactC<t.TypeC<{
|
|
4502
4502
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
4503
4503
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -123,7 +123,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
123
123
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
124
124
|
value: t.StringC;
|
|
125
125
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
126
|
-
key: t.
|
|
126
|
+
key: t.Type<string, string, unknown>;
|
|
127
127
|
}>>, t.ExactC<t.TypeC<{
|
|
128
128
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
129
129
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -438,7 +438,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
438
438
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
439
439
|
type: t.LiteralC<"Link">;
|
|
440
440
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
441
|
-
key: t.
|
|
441
|
+
key: t.Type<string, string, unknown>;
|
|
442
442
|
}>>, t.ExactC<t.TypeC<{
|
|
443
443
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
444
444
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -623,7 +623,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
623
623
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
624
624
|
value: t.StringC;
|
|
625
625
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
626
|
-
key: t.
|
|
626
|
+
key: t.Type<string, string, unknown>;
|
|
627
627
|
}>>, t.ExactC<t.TypeC<{
|
|
628
628
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
629
629
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -938,7 +938,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
938
938
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
939
939
|
type: t.LiteralC<"Link">;
|
|
940
940
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
941
|
-
key: t.
|
|
941
|
+
key: t.Type<string, string, unknown>;
|
|
942
942
|
}>>, t.ExactC<t.TypeC<{
|
|
943
943
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
944
944
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -1125,7 +1125,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
1125
1125
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
1126
1126
|
value: t.StringC;
|
|
1127
1127
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1128
|
-
key: t.
|
|
1128
|
+
key: t.Type<string, string, unknown>;
|
|
1129
1129
|
}>>, t.ExactC<t.TypeC<{
|
|
1130
1130
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
1131
1131
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -1440,7 +1440,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
1440
1440
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
1441
1441
|
type: t.LiteralC<"Link">;
|
|
1442
1442
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1443
|
-
key: t.
|
|
1443
|
+
key: t.Type<string, string, unknown>;
|
|
1444
1444
|
}>>, t.ExactC<t.TypeC<{
|
|
1445
1445
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
1446
1446
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -1625,7 +1625,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
1625
1625
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
1626
1626
|
value: t.StringC;
|
|
1627
1627
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1628
|
-
key: t.
|
|
1628
|
+
key: t.Type<string, string, unknown>;
|
|
1629
1629
|
}>>, t.ExactC<t.TypeC<{
|
|
1630
1630
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
1631
1631
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -1940,7 +1940,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
1940
1940
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
1941
1941
|
type: t.LiteralC<"Link">;
|
|
1942
1942
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
1943
|
-
key: t.
|
|
1943
|
+
key: t.Type<string, string, unknown>;
|
|
1944
1944
|
}>>, t.ExactC<t.TypeC<{
|
|
1945
1945
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
1946
1946
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -2124,7 +2124,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
2124
2124
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
2125
2125
|
value: t.StringC;
|
|
2126
2126
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2127
|
-
key: t.
|
|
2127
|
+
key: t.Type<string, string, unknown>;
|
|
2128
2128
|
}>>, t.ExactC<t.TypeC<{
|
|
2129
2129
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
2130
2130
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -2439,7 +2439,7 @@ export declare const SliceItemContent: t.TypeC<{
|
|
|
2439
2439
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
2440
2440
|
type: t.LiteralC<"Link">;
|
|
2441
2441
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
2442
|
-
key: t.
|
|
2442
|
+
key: t.Type<string, string, unknown>;
|
|
2443
2443
|
}>>, t.ExactC<t.TypeC<{
|
|
2444
2444
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
2445
2445
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -4269,7 +4269,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
4269
4269
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
4270
4270
|
value: t.StringC;
|
|
4271
4271
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
4272
|
-
key: t.
|
|
4272
|
+
key: t.Type<string, string, unknown>;
|
|
4273
4273
|
}>>, t.ExactC<t.TypeC<{
|
|
4274
4274
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
4275
4275
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -4584,7 +4584,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
4584
4584
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
4585
4585
|
type: t.LiteralC<"Link">;
|
|
4586
4586
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
4587
|
-
key: t.
|
|
4587
|
+
key: t.Type<string, string, unknown>;
|
|
4588
4588
|
}>>, t.ExactC<t.TypeC<{
|
|
4589
4589
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
4590
4590
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -4769,7 +4769,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
4769
4769
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
4770
4770
|
value: t.StringC;
|
|
4771
4771
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
4772
|
-
key: t.
|
|
4772
|
+
key: t.Type<string, string, unknown>;
|
|
4773
4773
|
}>>, t.ExactC<t.TypeC<{
|
|
4774
4774
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
4775
4775
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -5084,7 +5084,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
5084
5084
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
5085
5085
|
type: t.LiteralC<"Link">;
|
|
5086
5086
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
5087
|
-
key: t.
|
|
5087
|
+
key: t.Type<string, string, unknown>;
|
|
5088
5088
|
}>>, t.ExactC<t.TypeC<{
|
|
5089
5089
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
5090
5090
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -5271,7 +5271,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
5271
5271
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
5272
5272
|
value: t.StringC;
|
|
5273
5273
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
5274
|
-
key: t.
|
|
5274
|
+
key: t.Type<string, string, unknown>;
|
|
5275
5275
|
}>>, t.ExactC<t.TypeC<{
|
|
5276
5276
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
5277
5277
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -5586,7 +5586,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
5586
5586
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
5587
5587
|
type: t.LiteralC<"Link">;
|
|
5588
5588
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
5589
|
-
key: t.
|
|
5589
|
+
key: t.Type<string, string, unknown>;
|
|
5590
5590
|
}>>, t.ExactC<t.TypeC<{
|
|
5591
5591
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
5592
5592
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -5771,7 +5771,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
5771
5771
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
5772
5772
|
value: t.StringC;
|
|
5773
5773
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
5774
|
-
key: t.
|
|
5774
|
+
key: t.Type<string, string, unknown>;
|
|
5775
5775
|
}>>, t.ExactC<t.TypeC<{
|
|
5776
5776
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
5777
5777
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -6086,7 +6086,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
6086
6086
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
6087
6087
|
type: t.LiteralC<"Link">;
|
|
6088
6088
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
6089
|
-
key: t.
|
|
6089
|
+
key: t.Type<string, string, unknown>;
|
|
6090
6090
|
}>>, t.ExactC<t.TypeC<{
|
|
6091
6091
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
6092
6092
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -6270,7 +6270,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
6270
6270
|
__TYPE__: t.LiteralC<"IntegrationFieldsContent">;
|
|
6271
6271
|
value: t.StringC;
|
|
6272
6272
|
}>>, t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
6273
|
-
key: t.
|
|
6273
|
+
key: t.Type<string, string, unknown>;
|
|
6274
6274
|
}>>, t.ExactC<t.TypeC<{
|
|
6275
6275
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
6276
6276
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
@@ -6585,7 +6585,7 @@ export declare const SlicesContent: t.TypeC<{
|
|
|
6585
6585
|
__TYPE__: t.LiteralC<"RepeatableContent">;
|
|
6586
6586
|
type: t.LiteralC<"Link">;
|
|
6587
6587
|
value: t.ArrayC<t.IntersectionC<[t.ExactC<t.TypeC<{
|
|
6588
|
-
key: t.
|
|
6588
|
+
key: t.Type<string, string, unknown>;
|
|
6589
6589
|
}>>, t.ExactC<t.TypeC<{
|
|
6590
6590
|
__TYPE__: t.LiteralC<"LinkContent">;
|
|
6591
6591
|
value: t.UnionC<[t.IntersectionC<[t.ExactC<t.TypeC<{
|
package/package.json
CHANGED
|
@@ -26,18 +26,29 @@ import { either } from "fp-ts"
|
|
|
26
26
|
import { pipe } from "fp-ts/lib/function"
|
|
27
27
|
import * as t from "io-ts"
|
|
28
28
|
import { withFallback } from "io-ts-types"
|
|
29
|
-
import { v4 as uuid } from "uuid"
|
|
29
|
+
import { v4 as uuid, validate as validateUuid } from "uuid"
|
|
30
30
|
|
|
31
31
|
import { NonEmptyString, StringOrNull } from "../../../validators"
|
|
32
32
|
import { nullable } from "../../../validators/function"
|
|
33
33
|
import type { LegacyContentCtx, WithTypes } from "../../LegacyContentCtx"
|
|
34
34
|
import { hasContentType } from "../../utils"
|
|
35
35
|
|
|
36
|
+
const isUuid = (input: unknown): input is string =>
|
|
37
|
+
typeof input === "string" && validateUuid(input)
|
|
38
|
+
|
|
39
|
+
const uuidWithFallback = new t.Type<string, string, unknown>(
|
|
40
|
+
"UUID",
|
|
41
|
+
isUuid,
|
|
42
|
+
(u, c) => {
|
|
43
|
+
if (typeof u === "undefined") return t.success(uuid())
|
|
44
|
+
if (isUuid(u)) return t.success(u)
|
|
45
|
+
return t.failure(u, c)
|
|
46
|
+
},
|
|
47
|
+
t.identity,
|
|
48
|
+
)
|
|
49
|
+
|
|
36
50
|
function withKey<C extends t.Mixed>(codec: C) {
|
|
37
|
-
return t.intersection([
|
|
38
|
-
t.strict({ key: withFallback(t.string, uuid()) }),
|
|
39
|
-
codec,
|
|
40
|
-
])
|
|
51
|
+
return t.intersection([t.strict({ key: uuidWithFallback }), codec])
|
|
41
52
|
}
|
|
42
53
|
|
|
43
54
|
// ImageLink.
|