@wise/dynamic-flow-types 4.18.0-experimental-9265cac → 4.19.0
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/build/renderers/AlertRendererProps.d.ts +5 -0
- package/build/renderers/AlertRendererProps.d.ts.map +1 -1
- package/build/renderers/CollectionRendererProps.d.ts +19 -5
- package/build/renderers/CollectionRendererProps.d.ts.map +1 -1
- package/build/renderers/RendererProps.d.ts +2 -2
- package/build/renderers/RendererProps.d.ts.map +1 -1
- package/build/renderers/SectionRendererProps.d.ts +1 -0
- package/build/renderers/SectionRendererProps.d.ts.map +1 -1
- package/build/renderers/constants.d.ts +1 -1
- package/build/renderers/constants.d.ts.map +1 -1
- package/build/renderers/index.d.ts +1 -1
- package/build/renderers/index.d.ts.map +1 -1
- package/build/spec/index.d.ts +2 -2
- package/build/spec/index.d.ts.map +1 -1
- package/build/spec/layout/AlertLayout.d.ts +18 -0
- package/build/spec/layout/AlertLayout.d.ts.map +1 -1
- package/build/spec/layout/CollectionLayout.d.ts +3 -8
- package/build/spec/layout/CollectionLayout.d.ts.map +1 -1
- package/build/spec/layout/CollectionLayoutCallToAction.d.ts +8 -8
- package/build/spec/layout/CollectionLayoutCallToAction.d.ts.map +1 -1
- package/build/spec/layout/CollectionLayoutItem.d.ts +5 -1
- package/build/spec/layout/CollectionLayoutItem.d.ts.map +1 -1
- package/build/spec/layout/CollectionLayoutSelectFilter.d.ts +2 -2
- package/build/spec/layout/CollectionLayoutSelectFilter.d.ts.map +1 -1
- package/build/spec/layout/{SelectFilterOption.d.ts → CollectionLayoutSelectFilterOption.d.ts} +3 -3
- package/build/spec/layout/CollectionLayoutSelectFilterOption.d.ts.map +1 -0
- package/build/spec/layout/CollectionLayoutState.d.ts +2 -2
- package/build/spec/layout/Layout.d.ts +3 -3
- package/build/spec/layout/Layout.d.ts.map +1 -1
- package/build/spec/layout/SectionLayout.d.ts +4 -0
- package/build/spec/layout/SectionLayout.d.ts.map +1 -1
- package/build/spec/layout/StatusListLayoutItem.d.ts +2 -2
- package/build/spec/layout/StatusListLayoutItem.d.ts.map +1 -1
- package/build/spec/layout/{ItemCallToAction.d.ts → StatusListLayoutItemCallToAction.d.ts} +2 -2
- package/build/spec/layout/StatusListLayoutItemCallToAction.d.ts.map +1 -0
- package/build/spec/main.js +42 -34
- package/build/spec/main.mjs +42 -34
- package/build/spec/misc/Context.d.ts +1 -1
- package/build/spec/misc/Context.d.ts.map +1 -1
- package/build/spec/misc/media/MediaAvatar.d.ts +2 -2
- package/build/spec/misc/media/MediaAvatar.d.ts.map +1 -1
- package/build/spec/misc/media/MediaAvatarContent.d.ts +7 -0
- package/build/spec/misc/media/MediaAvatarContent.d.ts.map +1 -0
- package/build/spec/misc/media/{AvatarTextContent.d.ts → MediaAvatarTextContent.d.ts} +2 -2
- package/build/spec/misc/media/MediaAvatarTextContent.d.ts.map +1 -0
- package/build/spec/misc/media/{AvatarUriContent.d.ts → MediaAvatarUriContent.d.ts} +2 -2
- package/build/spec/misc/media/MediaAvatarUriContent.d.ts.map +1 -0
- package/build/spec/responses/search/SearchResultSearch.d.ts +2 -2
- package/build/spec/responses/search/SearchResultSearch.d.ts.map +1 -1
- package/build/spec/responses/search/{SearchSearchRequest.d.ts → SearchResultSearchSearchRequest.d.ts} +2 -2
- package/build/spec/responses/search/SearchResultSearchSearchRequest.d.ts.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/zod/schemas.d.ts +375 -375
- package/build/zod/schemas.d.ts.map +1 -1
- package/build/zod/schemas.ts +780 -770
- package/package.json +1 -1
- package/build/spec/layout/ItemCallToAction.d.ts.map +0 -1
- package/build/spec/layout/SelectFilterOption.d.ts.map +0 -1
- package/build/spec/misc/media/AvatarContent.d.ts +0 -7
- package/build/spec/misc/media/AvatarContent.d.ts.map +0 -1
- package/build/spec/misc/media/AvatarTextContent.d.ts.map +0 -1
- package/build/spec/misc/media/AvatarUriContent.d.ts.map +0 -1
- package/build/spec/responses/search/SearchSearchRequest.d.ts.map +0 -1
package/build/spec/main.js
CHANGED
|
@@ -57,6 +57,7 @@ var contextSchema = import_zod.z.union([
|
|
|
57
57
|
import_zod.z.literal("neutral"),
|
|
58
58
|
import_zod.z.literal("warning"),
|
|
59
59
|
import_zod.z.literal("negative"),
|
|
60
|
+
import_zod.z.literal("proposition"),
|
|
60
61
|
import_zod.z.literal("success"),
|
|
61
62
|
import_zod.z.literal("failure"),
|
|
62
63
|
import_zod.z.literal("info"),
|
|
@@ -93,25 +94,28 @@ var jsonElementSchema = import_zod.z.lazy(
|
|
|
93
94
|
);
|
|
94
95
|
var alignSchema = import_zod.z.union([import_zod.z.literal("left"), import_zod.z.literal("center"), import_zod.z.literal("right")]);
|
|
95
96
|
var iconSchema = import_zod.z.union([iconNamedSchema, iconTextSchema]);
|
|
96
|
-
var
|
|
97
|
-
type: import_zod.z.literal("
|
|
98
|
-
|
|
99
|
-
|
|
97
|
+
var mediaAvatarTextContentSchema = import_zod.z.object({
|
|
98
|
+
type: import_zod.z.literal("text"),
|
|
99
|
+
text: import_zod.z.string(),
|
|
100
|
+
badgeUri: import_zod.z.string().optional()
|
|
100
101
|
});
|
|
101
|
-
var
|
|
102
|
+
var mediaAvatarUriContentSchema = import_zod.z.object({
|
|
102
103
|
type: import_zod.z.literal("uri"),
|
|
103
104
|
uri: import_zod.z.string(),
|
|
104
105
|
badgeUri: import_zod.z.string().optional()
|
|
105
106
|
});
|
|
106
|
-
var
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
var mediaAvatarContentSchema = import_zod.z.union([
|
|
108
|
+
mediaAvatarTextContentSchema,
|
|
109
|
+
mediaAvatarUriContentSchema
|
|
110
|
+
]);
|
|
111
|
+
var mediaImageSchema = import_zod.z.object({
|
|
112
|
+
type: import_zod.z.literal("image"),
|
|
113
|
+
uri: import_zod.z.string(),
|
|
114
|
+
accessibilityDescription: import_zod.z.string().optional()
|
|
110
115
|
});
|
|
111
|
-
var avatarContentSchema = import_zod.z.union([avatarTextContentSchema, avatarUriContentSchema]);
|
|
112
116
|
var mediaAvatarSchema = import_zod.z.object({
|
|
113
117
|
type: import_zod.z.literal("avatar"),
|
|
114
|
-
content: import_zod.z.array(
|
|
118
|
+
content: import_zod.z.array(mediaAvatarContentSchema),
|
|
115
119
|
accessibilityDescription: import_zod.z.string().optional()
|
|
116
120
|
});
|
|
117
121
|
var autocompleteTokenSchema = import_zod.z.union([
|
|
@@ -193,6 +197,13 @@ var collectionLayoutSearchSchema = import_zod.z.object({
|
|
|
193
197
|
title: import_zod.z.string().optional(),
|
|
194
198
|
hint: import_zod.z.string().optional()
|
|
195
199
|
});
|
|
200
|
+
var requestSchema = import_zod.z.object({
|
|
201
|
+
url: import_zod.z.string(),
|
|
202
|
+
method: httpMethodSchema,
|
|
203
|
+
body: jsonElementSchema.optional(),
|
|
204
|
+
prefetch: import_zod.z.boolean().optional(),
|
|
205
|
+
headers: import_zod.z.record(import_zod.z.string()).optional()
|
|
206
|
+
});
|
|
196
207
|
var paragraphLayoutSchema = import_zod.z.object({
|
|
197
208
|
type: import_zod.z.literal("paragraph"),
|
|
198
209
|
text: import_zod.z.string(),
|
|
@@ -215,19 +226,12 @@ var listLayoutStatusSchema = import_zod.z.union([
|
|
|
215
226
|
import_zod.z.literal("neutral"),
|
|
216
227
|
import_zod.z.literal("positive")
|
|
217
228
|
]);
|
|
218
|
-
var
|
|
229
|
+
var collectionLayoutSelectFilterOptionSchema = import_zod.z.object({
|
|
219
230
|
value: import_zod.z.string(),
|
|
220
231
|
title: import_zod.z.string(),
|
|
221
232
|
accessibilityDescription: import_zod.z.string().optional(),
|
|
222
233
|
selected: import_zod.z.boolean().optional()
|
|
223
234
|
});
|
|
224
|
-
var requestSchema = import_zod.z.object({
|
|
225
|
-
url: import_zod.z.string(),
|
|
226
|
-
method: httpMethodSchema,
|
|
227
|
-
body: jsonElementSchema.optional(),
|
|
228
|
-
prefetch: import_zod.z.boolean().optional(),
|
|
229
|
-
headers: import_zod.z.record(import_zod.z.string()).optional()
|
|
230
|
-
});
|
|
231
235
|
var formLayoutSchemaReferenceSchema = import_zod.z.object({
|
|
232
236
|
$ref: import_zod.z.string()
|
|
233
237
|
});
|
|
@@ -338,7 +342,7 @@ var columnsLayoutBiasSchema = import_zod.z.union([
|
|
|
338
342
|
import_zod.z.literal("right")
|
|
339
343
|
]);
|
|
340
344
|
var noOpResponseBodySchema = import_zod.z.object({});
|
|
341
|
-
var
|
|
345
|
+
var searchResultSearchSearchRequestSchema = import_zod.z.object({
|
|
342
346
|
url: import_zod.z.string(),
|
|
343
347
|
method: httpMethodSchema,
|
|
344
348
|
param: import_zod.z.string(),
|
|
@@ -350,7 +354,7 @@ var searchResultSearchSchema = import_zod.z.object({
|
|
|
350
354
|
description: import_zod.z.string().optional(),
|
|
351
355
|
icon: iconSchema.optional(),
|
|
352
356
|
image: imageSchema.optional(),
|
|
353
|
-
value:
|
|
357
|
+
value: searchResultSearchSearchRequestSchema,
|
|
354
358
|
media: mediaSchema.optional()
|
|
355
359
|
});
|
|
356
360
|
var errorResponseBodySchema = import_zod.z.object({
|
|
@@ -497,7 +501,7 @@ var suggestionsSchema = import_zod.z.object({
|
|
|
497
501
|
var collectionLayoutSelectFilterSchema = import_zod.z.object({
|
|
498
502
|
type: import_zod.z.literal("select"),
|
|
499
503
|
param: import_zod.z.string(),
|
|
500
|
-
options: import_zod.z.array(
|
|
504
|
+
options: import_zod.z.array(collectionLayoutSelectFilterOptionSchema),
|
|
501
505
|
multiSelect: import_zod.z.boolean().optional()
|
|
502
506
|
});
|
|
503
507
|
var searchResultActionSchema = import_zod.z.object({
|
|
@@ -641,7 +645,11 @@ var alertLayoutSchema = import_zod.z.lazy(
|
|
|
641
645
|
margin: sizeSchema.optional(),
|
|
642
646
|
callToAction: alertLayoutCallToActionSchema.optional(),
|
|
643
647
|
analyticsId: import_zod.z.string().optional(),
|
|
644
|
-
tags: import_zod.z.array(import_zod.z.string()).optional()
|
|
648
|
+
tags: import_zod.z.array(import_zod.z.string()).optional(),
|
|
649
|
+
title: import_zod.z.string().optional(),
|
|
650
|
+
media: mediaSchema.optional(),
|
|
651
|
+
onDismiss: requestSchema.optional(),
|
|
652
|
+
secondaryCallToAction: alertLayoutCallToActionSchema.optional()
|
|
645
653
|
})
|
|
646
654
|
);
|
|
647
655
|
var alertLayoutCallToActionSchema = import_zod.z.lazy(
|
|
@@ -654,6 +662,7 @@ var alertLayoutCallToActionSchema = import_zod.z.lazy(
|
|
|
654
662
|
);
|
|
655
663
|
var collectionLayoutItemSchema = import_zod.z.lazy(
|
|
656
664
|
() => import_zod.z.object({
|
|
665
|
+
entityId: import_zod.z.string(),
|
|
657
666
|
title: import_zod.z.string(),
|
|
658
667
|
description: import_zod.z.string().optional(),
|
|
659
668
|
disabled: import_zod.z.boolean().optional(),
|
|
@@ -674,6 +683,14 @@ var collectionLayoutCallToActionSchema = import_zod.z.lazy(
|
|
|
674
683
|
behavior: behaviorSchema
|
|
675
684
|
})
|
|
676
685
|
);
|
|
686
|
+
var statusListLayoutItemCallToActionSchema = import_zod.z.lazy(
|
|
687
|
+
() => import_zod.z.object({
|
|
688
|
+
title: import_zod.z.string(),
|
|
689
|
+
accessibilityDescription: import_zod.z.string().optional(),
|
|
690
|
+
behavior: behaviorSchema,
|
|
691
|
+
context: contextSchema.optional()
|
|
692
|
+
})
|
|
693
|
+
);
|
|
677
694
|
var listLayoutSchema = import_zod.z.lazy(
|
|
678
695
|
() => import_zod.z.object({
|
|
679
696
|
type: import_zod.z.literal("list"),
|
|
@@ -790,7 +807,7 @@ var statusListLayoutItemSchema = import_zod.z.lazy(
|
|
|
790
807
|
description: import_zod.z.string().optional(),
|
|
791
808
|
icon: iconSchema,
|
|
792
809
|
status: statusListLayoutStatusSchema.optional(),
|
|
793
|
-
callToAction:
|
|
810
|
+
callToAction: statusListLayoutItemCallToActionSchema.optional(),
|
|
794
811
|
tag: import_zod.z.string().optional(),
|
|
795
812
|
analyticsId: import_zod.z.string().optional(),
|
|
796
813
|
tags: import_zod.z.array(import_zod.z.string()).optional()
|
|
@@ -799,8 +816,7 @@ var statusListLayoutItemSchema = import_zod.z.lazy(
|
|
|
799
816
|
var collectionLayoutSchema = import_zod.z.lazy(
|
|
800
817
|
() => import_zod.z.object({
|
|
801
818
|
type: import_zod.z.literal("collection"),
|
|
802
|
-
|
|
803
|
-
method: httpMethodSchema,
|
|
819
|
+
baseRequest: requestSchema,
|
|
804
820
|
initialState: collectionLayoutStateSchema,
|
|
805
821
|
search: collectionLayoutSearchSchema.optional(),
|
|
806
822
|
control: import_zod.z.string().optional(),
|
|
@@ -821,14 +837,6 @@ var sectionLayoutSchema = import_zod.z.lazy(
|
|
|
821
837
|
tags: import_zod.z.array(import_zod.z.string()).optional()
|
|
822
838
|
})
|
|
823
839
|
);
|
|
824
|
-
var itemCallToActionSchema = import_zod.z.lazy(
|
|
825
|
-
() => import_zod.z.object({
|
|
826
|
-
title: import_zod.z.string(),
|
|
827
|
-
accessibilityDescription: import_zod.z.string().optional(),
|
|
828
|
-
behavior: behaviorSchema,
|
|
829
|
-
context: contextSchema.optional()
|
|
830
|
-
})
|
|
831
|
-
);
|
|
832
840
|
var searchLayoutSchema = import_zod.z.lazy(
|
|
833
841
|
() => import_zod.z.object({
|
|
834
842
|
type: import_zod.z.literal("search"),
|
package/build/spec/main.mjs
CHANGED
|
@@ -28,6 +28,7 @@ var contextSchema = z.union([
|
|
|
28
28
|
z.literal("neutral"),
|
|
29
29
|
z.literal("warning"),
|
|
30
30
|
z.literal("negative"),
|
|
31
|
+
z.literal("proposition"),
|
|
31
32
|
z.literal("success"),
|
|
32
33
|
z.literal("failure"),
|
|
33
34
|
z.literal("info"),
|
|
@@ -64,25 +65,28 @@ var jsonElementSchema = z.lazy(
|
|
|
64
65
|
);
|
|
65
66
|
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
66
67
|
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
67
|
-
var
|
|
68
|
-
type: z.literal("
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
var mediaAvatarTextContentSchema = z.object({
|
|
69
|
+
type: z.literal("text"),
|
|
70
|
+
text: z.string(),
|
|
71
|
+
badgeUri: z.string().optional()
|
|
71
72
|
});
|
|
72
|
-
var
|
|
73
|
+
var mediaAvatarUriContentSchema = z.object({
|
|
73
74
|
type: z.literal("uri"),
|
|
74
75
|
uri: z.string(),
|
|
75
76
|
badgeUri: z.string().optional()
|
|
76
77
|
});
|
|
77
|
-
var
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
var mediaAvatarContentSchema = z.union([
|
|
79
|
+
mediaAvatarTextContentSchema,
|
|
80
|
+
mediaAvatarUriContentSchema
|
|
81
|
+
]);
|
|
82
|
+
var mediaImageSchema = z.object({
|
|
83
|
+
type: z.literal("image"),
|
|
84
|
+
uri: z.string(),
|
|
85
|
+
accessibilityDescription: z.string().optional()
|
|
81
86
|
});
|
|
82
|
-
var avatarContentSchema = z.union([avatarTextContentSchema, avatarUriContentSchema]);
|
|
83
87
|
var mediaAvatarSchema = z.object({
|
|
84
88
|
type: z.literal("avatar"),
|
|
85
|
-
content: z.array(
|
|
89
|
+
content: z.array(mediaAvatarContentSchema),
|
|
86
90
|
accessibilityDescription: z.string().optional()
|
|
87
91
|
});
|
|
88
92
|
var autocompleteTokenSchema = z.union([
|
|
@@ -164,6 +168,13 @@ var collectionLayoutSearchSchema = z.object({
|
|
|
164
168
|
title: z.string().optional(),
|
|
165
169
|
hint: z.string().optional()
|
|
166
170
|
});
|
|
171
|
+
var requestSchema = z.object({
|
|
172
|
+
url: z.string(),
|
|
173
|
+
method: httpMethodSchema,
|
|
174
|
+
body: jsonElementSchema.optional(),
|
|
175
|
+
prefetch: z.boolean().optional(),
|
|
176
|
+
headers: z.record(z.string()).optional()
|
|
177
|
+
});
|
|
167
178
|
var paragraphLayoutSchema = z.object({
|
|
168
179
|
type: z.literal("paragraph"),
|
|
169
180
|
text: z.string(),
|
|
@@ -186,19 +197,12 @@ var listLayoutStatusSchema = z.union([
|
|
|
186
197
|
z.literal("neutral"),
|
|
187
198
|
z.literal("positive")
|
|
188
199
|
]);
|
|
189
|
-
var
|
|
200
|
+
var collectionLayoutSelectFilterOptionSchema = z.object({
|
|
190
201
|
value: z.string(),
|
|
191
202
|
title: z.string(),
|
|
192
203
|
accessibilityDescription: z.string().optional(),
|
|
193
204
|
selected: z.boolean().optional()
|
|
194
205
|
});
|
|
195
|
-
var requestSchema = z.object({
|
|
196
|
-
url: z.string(),
|
|
197
|
-
method: httpMethodSchema,
|
|
198
|
-
body: jsonElementSchema.optional(),
|
|
199
|
-
prefetch: z.boolean().optional(),
|
|
200
|
-
headers: z.record(z.string()).optional()
|
|
201
|
-
});
|
|
202
206
|
var formLayoutSchemaReferenceSchema = z.object({
|
|
203
207
|
$ref: z.string()
|
|
204
208
|
});
|
|
@@ -309,7 +313,7 @@ var columnsLayoutBiasSchema = z.union([
|
|
|
309
313
|
z.literal("right")
|
|
310
314
|
]);
|
|
311
315
|
var noOpResponseBodySchema = z.object({});
|
|
312
|
-
var
|
|
316
|
+
var searchResultSearchSearchRequestSchema = z.object({
|
|
313
317
|
url: z.string(),
|
|
314
318
|
method: httpMethodSchema,
|
|
315
319
|
param: z.string(),
|
|
@@ -321,7 +325,7 @@ var searchResultSearchSchema = z.object({
|
|
|
321
325
|
description: z.string().optional(),
|
|
322
326
|
icon: iconSchema.optional(),
|
|
323
327
|
image: imageSchema.optional(),
|
|
324
|
-
value:
|
|
328
|
+
value: searchResultSearchSearchRequestSchema,
|
|
325
329
|
media: mediaSchema.optional()
|
|
326
330
|
});
|
|
327
331
|
var errorResponseBodySchema = z.object({
|
|
@@ -468,7 +472,7 @@ var suggestionsSchema = z.object({
|
|
|
468
472
|
var collectionLayoutSelectFilterSchema = z.object({
|
|
469
473
|
type: z.literal("select"),
|
|
470
474
|
param: z.string(),
|
|
471
|
-
options: z.array(
|
|
475
|
+
options: z.array(collectionLayoutSelectFilterOptionSchema),
|
|
472
476
|
multiSelect: z.boolean().optional()
|
|
473
477
|
});
|
|
474
478
|
var searchResultActionSchema = z.object({
|
|
@@ -612,7 +616,11 @@ var alertLayoutSchema = z.lazy(
|
|
|
612
616
|
margin: sizeSchema.optional(),
|
|
613
617
|
callToAction: alertLayoutCallToActionSchema.optional(),
|
|
614
618
|
analyticsId: z.string().optional(),
|
|
615
|
-
tags: z.array(z.string()).optional()
|
|
619
|
+
tags: z.array(z.string()).optional(),
|
|
620
|
+
title: z.string().optional(),
|
|
621
|
+
media: mediaSchema.optional(),
|
|
622
|
+
onDismiss: requestSchema.optional(),
|
|
623
|
+
secondaryCallToAction: alertLayoutCallToActionSchema.optional()
|
|
616
624
|
})
|
|
617
625
|
);
|
|
618
626
|
var alertLayoutCallToActionSchema = z.lazy(
|
|
@@ -625,6 +633,7 @@ var alertLayoutCallToActionSchema = z.lazy(
|
|
|
625
633
|
);
|
|
626
634
|
var collectionLayoutItemSchema = z.lazy(
|
|
627
635
|
() => z.object({
|
|
636
|
+
entityId: z.string(),
|
|
628
637
|
title: z.string(),
|
|
629
638
|
description: z.string().optional(),
|
|
630
639
|
disabled: z.boolean().optional(),
|
|
@@ -645,6 +654,14 @@ var collectionLayoutCallToActionSchema = z.lazy(
|
|
|
645
654
|
behavior: behaviorSchema
|
|
646
655
|
})
|
|
647
656
|
);
|
|
657
|
+
var statusListLayoutItemCallToActionSchema = z.lazy(
|
|
658
|
+
() => z.object({
|
|
659
|
+
title: z.string(),
|
|
660
|
+
accessibilityDescription: z.string().optional(),
|
|
661
|
+
behavior: behaviorSchema,
|
|
662
|
+
context: contextSchema.optional()
|
|
663
|
+
})
|
|
664
|
+
);
|
|
648
665
|
var listLayoutSchema = z.lazy(
|
|
649
666
|
() => z.object({
|
|
650
667
|
type: z.literal("list"),
|
|
@@ -761,7 +778,7 @@ var statusListLayoutItemSchema = z.lazy(
|
|
|
761
778
|
description: z.string().optional(),
|
|
762
779
|
icon: iconSchema,
|
|
763
780
|
status: statusListLayoutStatusSchema.optional(),
|
|
764
|
-
callToAction:
|
|
781
|
+
callToAction: statusListLayoutItemCallToActionSchema.optional(),
|
|
765
782
|
tag: z.string().optional(),
|
|
766
783
|
analyticsId: z.string().optional(),
|
|
767
784
|
tags: z.array(z.string()).optional()
|
|
@@ -770,8 +787,7 @@ var statusListLayoutItemSchema = z.lazy(
|
|
|
770
787
|
var collectionLayoutSchema = z.lazy(
|
|
771
788
|
() => z.object({
|
|
772
789
|
type: z.literal("collection"),
|
|
773
|
-
|
|
774
|
-
method: httpMethodSchema,
|
|
790
|
+
baseRequest: requestSchema,
|
|
775
791
|
initialState: collectionLayoutStateSchema,
|
|
776
792
|
search: collectionLayoutSearchSchema.optional(),
|
|
777
793
|
control: z.string().optional(),
|
|
@@ -792,14 +808,6 @@ var sectionLayoutSchema = z.lazy(
|
|
|
792
808
|
tags: z.array(z.string()).optional()
|
|
793
809
|
})
|
|
794
810
|
);
|
|
795
|
-
var itemCallToActionSchema = z.lazy(
|
|
796
|
-
() => z.object({
|
|
797
|
-
title: z.string(),
|
|
798
|
-
accessibilityDescription: z.string().optional(),
|
|
799
|
-
behavior: behaviorSchema,
|
|
800
|
-
context: contextSchema.optional()
|
|
801
|
-
})
|
|
802
|
-
);
|
|
803
811
|
var searchLayoutSchema = z.lazy(
|
|
804
812
|
() => z.object({
|
|
805
813
|
type: z.literal("search"),
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* The specific meaning of these values is dependent on the client and it's possible that multiple values may be
|
|
4
4
|
* mapped to the same style in some implementations.
|
|
5
5
|
*/
|
|
6
|
-
export type Context = 'positive' | 'neutral' | 'warning' | 'negative' | 'success' | 'failure' | 'info' | 'primary';
|
|
6
|
+
export type Context = 'positive' | 'neutral' | 'warning' | 'negative' | 'proposition' | 'success' | 'failure' | 'info' | 'primary';
|
|
7
7
|
//# sourceMappingURL=Context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/spec/misc/Context.ts"],"names":[],"mappings":"AAAA;;;;EAIE;AACF,MAAM,MAAM,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"Context.d.ts","sourceRoot":"","sources":["../../../src/spec/misc/Context.ts"],"names":[],"mappings":"AAAA;;;;EAIE;AACF,MAAM,MAAM,OAAO,GAAG,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { MediaAvatarContent } from './MediaAvatarContent';
|
|
2
2
|
/**
|
|
3
3
|
* Avatar is a representation of a unique entity. It's comprised of one or more AvatarContent and an optional accessibilityDescription for screen readers.
|
|
4
4
|
*/
|
|
@@ -10,7 +10,7 @@ export type MediaAvatar = {
|
|
|
10
10
|
/**
|
|
11
11
|
* The content to be displayed in the Avatar.
|
|
12
12
|
*/
|
|
13
|
-
content:
|
|
13
|
+
content: MediaAvatarContent[];
|
|
14
14
|
/**
|
|
15
15
|
* An optional description for screen readers.
|
|
16
16
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaAvatar.d.ts","sourceRoot":"","sources":["../../../../src/spec/misc/media/MediaAvatar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"MediaAvatar.d.ts","sourceRoot":"","sources":["../../../../src/spec/misc/media/MediaAvatar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAE9D;;EAEE;AACF,MAAM,MAAM,WAAW,GAAG;IACtB;;MAEE;IACF,IAAI,EAAE,QAAQ,CAAC;IACf;;MAEE;IACF,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B;;MAEE;IACF,wBAAwB,CAAC,EAAE,MAAM,CAAC;CACrC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { MediaAvatarTextContent } from './MediaAvatarTextContent';
|
|
2
|
+
import type { MediaAvatarUriContent } from './MediaAvatarUriContent';
|
|
3
|
+
/**
|
|
4
|
+
* Describes the properties of a visual asset. It can be one of two mutually exclusive types: URI or Text.
|
|
5
|
+
*/
|
|
6
|
+
export type MediaAvatarContent = MediaAvatarTextContent | MediaAvatarUriContent;
|
|
7
|
+
//# sourceMappingURL=MediaAvatarContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaAvatarContent.d.ts","sourceRoot":"","sources":["../../../../src/spec/misc/media/MediaAvatarContent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACtE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAEpE;;EAEE;AACF,MAAM,MAAM,kBAAkB,GAAG,sBAAsB,GAAG,qBAAqB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* An avatar content that is text.
|
|
3
3
|
*/
|
|
4
|
-
export type
|
|
4
|
+
export type MediaAvatarTextContent = {
|
|
5
5
|
/**
|
|
6
6
|
* It must be `text`.
|
|
7
7
|
*/
|
|
@@ -15,4 +15,4 @@ export type AvatarTextContent = {
|
|
|
15
15
|
*/
|
|
16
16
|
badgeUri?: string;
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=
|
|
18
|
+
//# sourceMappingURL=MediaAvatarTextContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaAvatarTextContent.d.ts","sourceRoot":"","sources":["../../../../src/spec/misc/media/MediaAvatarTextContent.ts"],"names":[],"mappings":"AAAA;;EAEE;AACF,MAAM,MAAM,sBAAsB,GAAG;IACjC;;MAEE;IACF,IAAI,EAAE,MAAM,CAAC;IACb;;MAEE;IACF,IAAI,EAAE,MAAM,CAAC;IACb;;MAEE;IACF,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* An avatar content that is a URI.
|
|
3
3
|
*/
|
|
4
|
-
export type
|
|
4
|
+
export type MediaAvatarUriContent = {
|
|
5
5
|
/**
|
|
6
6
|
* It must be `uri`.
|
|
7
7
|
*/
|
|
@@ -15,4 +15,4 @@ export type AvatarUriContent = {
|
|
|
15
15
|
*/
|
|
16
16
|
badgeUri?: string;
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=
|
|
18
|
+
//# sourceMappingURL=MediaAvatarUriContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MediaAvatarUriContent.d.ts","sourceRoot":"","sources":["../../../../src/spec/misc/media/MediaAvatarUriContent.ts"],"names":[],"mappings":"AAAA;;EAEE;AACF,MAAM,MAAM,qBAAqB,GAAG;IAChC;;MAEE;IACF,IAAI,EAAE,KAAK,CAAC;IACZ;;MAEE;IACF,GAAG,EAAE,MAAM,CAAC;IACZ;;MAEE;IACF,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Icon } from '../../misc/Icon';
|
|
2
2
|
import type { Image } from '../../misc/Image';
|
|
3
|
-
import type {
|
|
3
|
+
import type { SearchResultSearchSearchRequest } from './SearchResultSearchSearchRequest';
|
|
4
4
|
import type { Media } from '../../misc/media/Media';
|
|
5
5
|
/**
|
|
6
6
|
* A search result which contains another search to be performed when selected. Can be used to provide groups of
|
|
@@ -30,7 +30,7 @@ export type SearchResultSearch = {
|
|
|
30
30
|
/**
|
|
31
31
|
* A search configuration to used when the option is selected.
|
|
32
32
|
*/
|
|
33
|
-
value:
|
|
33
|
+
value: SearchResultSearchSearchRequest;
|
|
34
34
|
/**
|
|
35
35
|
* The media object (avatar, icon, image) which the client can use to represent this search result.
|
|
36
36
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchResultSearch.d.ts","sourceRoot":"","sources":["../../../../src/spec/responses/search/SearchResultSearch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"SearchResultSearch.d.ts","sourceRoot":"","sources":["../../../../src/spec/responses/search/SearchResultSearch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAA;AACxF,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,wBAAwB,CAAA;AAEnD;;;EAGE;AACF,MAAM,MAAM,kBAAkB,GAAG;IAC7B;;MAEE;IACF,IAAI,EAAE,QAAQ,CAAC;IACf;;MAEE;IACF,KAAK,EAAE,MAAM,CAAC;IACd;;MAEE;IACF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;MAEE;IACF,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ;;MAEE;IACF,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;MAEE;IACF,KAAK,EAAE,+BAA+B,CAAC;IACvC;;MAEE;IACF,KAAK,CAAC,EAAE,KAAK,CAAC;CACjB,CAAC"}
|
|
@@ -2,7 +2,7 @@ import type { HttpMethod } from '../../misc/HttpMethod';
|
|
|
2
2
|
/**
|
|
3
3
|
* A search request.
|
|
4
4
|
*/
|
|
5
|
-
export type
|
|
5
|
+
export type SearchResultSearchSearchRequest = {
|
|
6
6
|
/**
|
|
7
7
|
* The URL for the request. Either absolute or relative to the base URL of the flow.
|
|
8
8
|
*/
|
|
@@ -22,4 +22,4 @@ export type SearchSearchRequest = {
|
|
|
22
22
|
*/
|
|
23
23
|
query: string;
|
|
24
24
|
};
|
|
25
|
-
//# sourceMappingURL=
|
|
25
|
+
//# sourceMappingURL=SearchResultSearchSearchRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchResultSearchSearchRequest.d.ts","sourceRoot":"","sources":["../../../../src/spec/responses/search/SearchResultSearchSearchRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAEvD;;EAEE;AACF,MAAM,MAAM,+BAA+B,GAAG;IAC1C;;MAEE;IACF,GAAG,EAAE,MAAM,CAAC;IACZ;;MAEE;IACF,MAAM,EAAE,UAAU,CAAC;IACnB;;;;MAIE;IACF,KAAK,EAAE,MAAM,CAAC;IACd;;MAEE;IACF,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC"}
|