@wise/dynamic-flow-client 4.0.0-experimental-c80edb2 → 4.0.0-experimental-af37aae
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/main.js
CHANGED
|
@@ -5410,46 +5410,10 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
5410
5410
|
quotelessJson,
|
|
5411
5411
|
ZodError
|
|
5412
5412
|
});
|
|
5413
|
-
var
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
z.literal("default"),
|
|
5418
|
-
z.literal("remove-previous"),
|
|
5419
|
-
z.literal("remove-all"),
|
|
5420
|
-
z.literal("replace-current")
|
|
5421
|
-
]);
|
|
5422
|
-
var jsonElementSchema = z.lazy(
|
|
5423
|
-
() => z.union([
|
|
5424
|
-
z.string(),
|
|
5425
|
-
z.number(),
|
|
5426
|
-
z.boolean(),
|
|
5427
|
-
z.record(jsonElementSchema),
|
|
5428
|
-
z.array(jsonElementSchema)
|
|
5429
|
-
]).nullable()
|
|
5430
|
-
);
|
|
5431
|
-
var helpSchema = z.object({
|
|
5432
|
-
markdown: z.string()
|
|
5433
|
-
});
|
|
5434
|
-
var actionTypeSchema = z.union([
|
|
5435
|
-
z.literal("primary"),
|
|
5436
|
-
z.literal("secondary"),
|
|
5437
|
-
z.literal("link"),
|
|
5438
|
-
z.literal("positive"),
|
|
5439
|
-
z.literal("negative")
|
|
5440
|
-
]);
|
|
5441
|
-
var httpMethodSchema = z.union([
|
|
5442
|
-
z.literal("GET"),
|
|
5443
|
-
z.literal("POST"),
|
|
5444
|
-
z.literal("PUT"),
|
|
5445
|
-
z.literal("PATCH"),
|
|
5446
|
-
z.literal("DELETE")
|
|
5447
|
-
]);
|
|
5448
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
5449
|
-
var validateAsyncSchema = z.object({
|
|
5450
|
-
param: z.string(),
|
|
5451
|
-
method: httpMethodSchema,
|
|
5452
|
-
url: z.string()
|
|
5413
|
+
var imageSchema = z.object({
|
|
5414
|
+
text: z.string().optional(),
|
|
5415
|
+
url: z.string(),
|
|
5416
|
+
accessibilityDescription: z.string().optional()
|
|
5453
5417
|
});
|
|
5454
5418
|
var summaryProviderSchema = z.object({
|
|
5455
5419
|
providesTitle: z.boolean().optional(),
|
|
@@ -5457,128 +5421,6 @@ var summaryProviderSchema = z.object({
|
|
|
5457
5421
|
providesIcon: z.boolean().optional(),
|
|
5458
5422
|
providesImage: z.boolean().optional()
|
|
5459
5423
|
});
|
|
5460
|
-
var externalSchema = z.object({
|
|
5461
|
-
url: z.string()
|
|
5462
|
-
});
|
|
5463
|
-
var columnsLayoutBiasSchema = z.union([
|
|
5464
|
-
z.literal("none"),
|
|
5465
|
-
z.literal("left"),
|
|
5466
|
-
z.literal("right")
|
|
5467
|
-
]);
|
|
5468
|
-
var sizeSchema = z.union([
|
|
5469
|
-
z.literal("xs"),
|
|
5470
|
-
z.literal("sm"),
|
|
5471
|
-
z.literal("md"),
|
|
5472
|
-
z.literal("lg"),
|
|
5473
|
-
z.literal("xl")
|
|
5474
|
-
]);
|
|
5475
|
-
var dividerLayoutSchema = z.object({
|
|
5476
|
-
type: z.literal("divider"),
|
|
5477
|
-
control: z.string().optional(),
|
|
5478
|
-
margin: sizeSchema.optional()
|
|
5479
|
-
});
|
|
5480
|
-
var statusListLayoutStatusSchema = z.union([
|
|
5481
|
-
z.literal("not-done"),
|
|
5482
|
-
z.literal("pending"),
|
|
5483
|
-
z.literal("done")
|
|
5484
|
-
]);
|
|
5485
|
-
var loadingIndicatorLayoutSchema = z.object({
|
|
5486
|
-
type: z.literal("loading-indicator"),
|
|
5487
|
-
size: sizeSchema.optional(),
|
|
5488
|
-
control: z.string().optional(),
|
|
5489
|
-
margin: sizeSchema.optional()
|
|
5490
|
-
});
|
|
5491
|
-
var contextSchema = z.union([
|
|
5492
|
-
z.literal("positive"),
|
|
5493
|
-
z.literal("neutral"),
|
|
5494
|
-
z.literal("warning"),
|
|
5495
|
-
z.literal("negative"),
|
|
5496
|
-
z.literal("success"),
|
|
5497
|
-
z.literal("failure"),
|
|
5498
|
-
z.literal("info"),
|
|
5499
|
-
z.literal("primary")
|
|
5500
|
-
]);
|
|
5501
|
-
var instructionsLayoutItemSchema = z.object({
|
|
5502
|
-
text: z.string(),
|
|
5503
|
-
context: contextSchema,
|
|
5504
|
-
tag: z.string().optional()
|
|
5505
|
-
});
|
|
5506
|
-
var formLayoutSchemaReferenceSchema = z.object({
|
|
5507
|
-
$ref: z.string()
|
|
5508
|
-
});
|
|
5509
|
-
var modalLayoutTriggerSchema = z.object({
|
|
5510
|
-
title: z.string()
|
|
5511
|
-
});
|
|
5512
|
-
var instructionsLayoutSchema = z.object({
|
|
5513
|
-
type: z.literal("instructions"),
|
|
5514
|
-
title: z.string().optional(),
|
|
5515
|
-
items: z.array(instructionsLayoutItemSchema),
|
|
5516
|
-
control: z.string().optional(),
|
|
5517
|
-
margin: sizeSchema.optional()
|
|
5518
|
-
});
|
|
5519
|
-
var reviewLayoutFieldSchema = z.object({
|
|
5520
|
-
label: z.string(),
|
|
5521
|
-
value: z.string(),
|
|
5522
|
-
rawValue: z.string().optional(),
|
|
5523
|
-
help: helpSchema.optional(),
|
|
5524
|
-
tag: z.string().optional()
|
|
5525
|
-
});
|
|
5526
|
-
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
5527
|
-
var searchLayoutSchema = z.object({
|
|
5528
|
-
type: z.literal("search"),
|
|
5529
|
-
title: z.string(),
|
|
5530
|
-
method: httpMethodSchema,
|
|
5531
|
-
url: z.string(),
|
|
5532
|
-
param: z.string(),
|
|
5533
|
-
emptyMessage: z.string().optional(),
|
|
5534
|
-
control: z.string().optional(),
|
|
5535
|
-
margin: sizeSchema.optional()
|
|
5536
|
-
});
|
|
5537
|
-
var headingLayoutSchema = z.object({
|
|
5538
|
-
type: z.literal("heading"),
|
|
5539
|
-
text: z.string(),
|
|
5540
|
-
size: sizeSchema.optional(),
|
|
5541
|
-
align: alignSchema.optional(),
|
|
5542
|
-
control: z.string().optional(),
|
|
5543
|
-
margin: sizeSchema.optional()
|
|
5544
|
-
});
|
|
5545
|
-
var markdownLayoutSchema = z.object({
|
|
5546
|
-
type: z.literal("markdown"),
|
|
5547
|
-
content: z.string(),
|
|
5548
|
-
align: alignSchema.optional(),
|
|
5549
|
-
control: z.string().optional(),
|
|
5550
|
-
margin: sizeSchema.optional()
|
|
5551
|
-
});
|
|
5552
|
-
var paragraphLayoutSchema = z.object({
|
|
5553
|
-
type: z.literal("paragraph"),
|
|
5554
|
-
text: z.string(),
|
|
5555
|
-
align: alignSchema.optional(),
|
|
5556
|
-
control: z.string().optional(),
|
|
5557
|
-
margin: sizeSchema.optional()
|
|
5558
|
-
});
|
|
5559
|
-
var listLayoutStatusSchema = z.union([
|
|
5560
|
-
z.literal("warning"),
|
|
5561
|
-
z.literal("neutral"),
|
|
5562
|
-
z.literal("positive")
|
|
5563
|
-
]);
|
|
5564
|
-
var imageSchema = z.object({
|
|
5565
|
-
text: z.string().optional(),
|
|
5566
|
-
url: z.string(),
|
|
5567
|
-
accessibilityDescription: z.string().optional()
|
|
5568
|
-
});
|
|
5569
|
-
var errorResponseBodySchema = z.object({
|
|
5570
|
-
refreshFormUrl: z.string().optional(),
|
|
5571
|
-
analytics: z.record(z.string()).optional(),
|
|
5572
|
-
error: z.string().optional(),
|
|
5573
|
-
validation: jsonElementSchema.optional(),
|
|
5574
|
-
refreshUrl: z.string().optional()
|
|
5575
|
-
});
|
|
5576
|
-
var searchSearchRequestSchema = z.object({
|
|
5577
|
-
url: z.string(),
|
|
5578
|
-
method: httpMethodSchema,
|
|
5579
|
-
param: z.string(),
|
|
5580
|
-
query: z.string()
|
|
5581
|
-
});
|
|
5582
5424
|
var autocompleteTokenSchema = z.union([
|
|
5583
5425
|
z.literal("on"),
|
|
5584
5426
|
z.literal("name"),
|
|
@@ -5644,18 +5486,18 @@ var autocompleteTokenSchema = z.union([
|
|
|
5644
5486
|
z.literal("fax"),
|
|
5645
5487
|
z.literal("pager")
|
|
5646
5488
|
]);
|
|
5647
|
-
var
|
|
5648
|
-
z.
|
|
5649
|
-
z.literal("characters"),
|
|
5650
|
-
z.literal("sentences"),
|
|
5651
|
-
z.literal("words")
|
|
5652
|
-
]);
|
|
5653
|
-
var iconNamedSchema = z.object({
|
|
5654
|
-
name: z.string()
|
|
5655
|
-
});
|
|
5656
|
-
var iconTextSchema = z.object({
|
|
5657
|
-
text: z.string()
|
|
5489
|
+
var helpSchema = z.object({
|
|
5490
|
+
markdown: z.string()
|
|
5658
5491
|
});
|
|
5492
|
+
var jsonElementSchema = z.lazy(
|
|
5493
|
+
() => z.union([
|
|
5494
|
+
z.string(),
|
|
5495
|
+
z.number(),
|
|
5496
|
+
z.boolean(),
|
|
5497
|
+
z.record(jsonElementSchema),
|
|
5498
|
+
z.array(jsonElementSchema)
|
|
5499
|
+
]).nullable()
|
|
5500
|
+
);
|
|
5659
5501
|
var stringSchemaFormatSchema = z.union([
|
|
5660
5502
|
z.literal("date"),
|
|
5661
5503
|
z.literal("email"),
|
|
@@ -5664,84 +5506,105 @@ var stringSchemaFormatSchema = z.union([
|
|
|
5664
5506
|
z.literal("phone-number"),
|
|
5665
5507
|
z.literal("base64url")
|
|
5666
5508
|
]);
|
|
5667
|
-
var
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
exit: z.boolean().optional(),
|
|
5677
|
-
result: jsonElementSchema.optional(),
|
|
5678
|
-
data: jsonElementSchema.optional(),
|
|
5679
|
-
timeout: z.number().optional(),
|
|
5680
|
-
skipValidation: z.boolean().optional()
|
|
5681
|
-
});
|
|
5682
|
-
var navigationBackBehaviorSchema = z.object({
|
|
5683
|
-
title: z.string().optional(),
|
|
5684
|
-
action: actionSchema
|
|
5685
|
-
});
|
|
5686
|
-
var linkHandlerSchema = z.object({
|
|
5687
|
-
regexPattern: z.string(),
|
|
5688
|
-
action: actionSchema
|
|
5509
|
+
var autocapitalizationTypeSchema = z.union([
|
|
5510
|
+
z.literal("none"),
|
|
5511
|
+
z.literal("characters"),
|
|
5512
|
+
z.literal("sentences"),
|
|
5513
|
+
z.literal("words")
|
|
5514
|
+
]);
|
|
5515
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
5516
|
+
var externalSchema = z.object({
|
|
5517
|
+
url: z.string()
|
|
5689
5518
|
});
|
|
5690
5519
|
var stepErrorSchema = z.object({
|
|
5691
5520
|
error: z.string().optional(),
|
|
5692
5521
|
validation: jsonElementSchema.optional()
|
|
5693
5522
|
});
|
|
5694
|
-
var
|
|
5695
|
-
|
|
5696
|
-
});
|
|
5697
|
-
var pollingSchema = z.object({
|
|
5698
|
-
url: z.string(),
|
|
5699
|
-
interval: z.number().optional(),
|
|
5700
|
-
delay: z.number().optional(),
|
|
5701
|
-
timeout: z.number().optional(),
|
|
5702
|
-
maxAttempts: z.number(),
|
|
5703
|
-
onError: pollingOnErrorSchema
|
|
5704
|
-
});
|
|
5705
|
-
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
5706
|
-
var imageLayoutSchema = z.object({
|
|
5707
|
-
type: z.literal("image"),
|
|
5708
|
-
text: z.string().optional(),
|
|
5709
|
-
url: z.string(),
|
|
5710
|
-
size: sizeSchema.optional(),
|
|
5711
|
-
accessibilityDescription: z.string().optional(),
|
|
5712
|
-
control: z.string().optional(),
|
|
5713
|
-
margin: sizeSchema.optional()
|
|
5523
|
+
var iconNamedSchema = z.object({
|
|
5524
|
+
name: z.string()
|
|
5714
5525
|
});
|
|
5715
|
-
var
|
|
5716
|
-
|
|
5717
|
-
title: z.string(),
|
|
5718
|
-
description: z.string().optional(),
|
|
5719
|
-
disabled: z.boolean().optional(),
|
|
5720
|
-
icon: iconSchema.optional(),
|
|
5721
|
-
image: imageLayoutSchema.optional(),
|
|
5722
|
-
tag: z.string().optional()
|
|
5526
|
+
var iconTextSchema = z.object({
|
|
5527
|
+
text: z.string()
|
|
5723
5528
|
});
|
|
5724
|
-
var
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5731
|
-
|
|
5529
|
+
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
5530
|
+
var httpMethodSchema = z.union([
|
|
5531
|
+
z.literal("GET"),
|
|
5532
|
+
z.literal("POST"),
|
|
5533
|
+
z.literal("PUT"),
|
|
5534
|
+
z.literal("PATCH"),
|
|
5535
|
+
z.literal("DELETE")
|
|
5536
|
+
]);
|
|
5537
|
+
var sizeSchema = z.union([
|
|
5538
|
+
z.literal("xs"),
|
|
5539
|
+
z.literal("sm"),
|
|
5540
|
+
z.literal("md"),
|
|
5541
|
+
z.literal("lg"),
|
|
5542
|
+
z.literal("xl")
|
|
5543
|
+
]);
|
|
5544
|
+
var contextSchema = z.union([
|
|
5545
|
+
z.literal("positive"),
|
|
5546
|
+
z.literal("neutral"),
|
|
5547
|
+
z.literal("warning"),
|
|
5548
|
+
z.literal("negative"),
|
|
5549
|
+
z.literal("success"),
|
|
5550
|
+
z.literal("failure"),
|
|
5551
|
+
z.literal("info"),
|
|
5552
|
+
z.literal("primary")
|
|
5553
|
+
]);
|
|
5554
|
+
var imageLayoutSchema = z.object({
|
|
5555
|
+
type: z.literal("image"),
|
|
5556
|
+
text: z.string().optional(),
|
|
5557
|
+
url: z.string(),
|
|
5558
|
+
size: sizeSchema.optional(),
|
|
5559
|
+
accessibilityDescription: z.string().optional(),
|
|
5732
5560
|
control: z.string().optional(),
|
|
5733
5561
|
margin: sizeSchema.optional()
|
|
5734
5562
|
});
|
|
5735
|
-
var
|
|
5736
|
-
|
|
5737
|
-
|
|
5738
|
-
|
|
5563
|
+
var searchSearchRequestSchema = z.object({
|
|
5564
|
+
url: z.string(),
|
|
5565
|
+
method: httpMethodSchema,
|
|
5566
|
+
param: z.string(),
|
|
5567
|
+
query: z.string()
|
|
5568
|
+
});
|
|
5569
|
+
var errorResponseBodySchema = z.object({
|
|
5570
|
+
refreshFormUrl: z.string().optional(),
|
|
5571
|
+
analytics: z.record(z.string()).optional(),
|
|
5572
|
+
error: z.string().optional(),
|
|
5573
|
+
validation: jsonElementSchema.optional(),
|
|
5574
|
+
refreshUrl: z.string().optional()
|
|
5575
|
+
});
|
|
5576
|
+
var paragraphLayoutSchema = z.object({
|
|
5577
|
+
type: z.literal("paragraph"),
|
|
5578
|
+
text: z.string(),
|
|
5579
|
+
align: alignSchema.optional(),
|
|
5739
5580
|
control: z.string().optional(),
|
|
5740
5581
|
margin: sizeSchema.optional()
|
|
5741
5582
|
});
|
|
5742
|
-
var
|
|
5743
|
-
|
|
5744
|
-
|
|
5583
|
+
var instructionsLayoutItemSchema = z.object({
|
|
5584
|
+
text: z.string(),
|
|
5585
|
+
context: contextSchema,
|
|
5586
|
+
tag: z.string().optional()
|
|
5587
|
+
});
|
|
5588
|
+
var columnsLayoutBiasSchema = z.union([
|
|
5589
|
+
z.literal("none"),
|
|
5590
|
+
z.literal("left"),
|
|
5591
|
+
z.literal("right")
|
|
5592
|
+
]);
|
|
5593
|
+
var formLayoutSchemaReferenceSchema = z.object({
|
|
5594
|
+
$ref: z.string()
|
|
5595
|
+
});
|
|
5596
|
+
var headingLayoutSchema = z.object({
|
|
5597
|
+
type: z.literal("heading"),
|
|
5598
|
+
text: z.string(),
|
|
5599
|
+
size: sizeSchema.optional(),
|
|
5600
|
+
align: alignSchema.optional(),
|
|
5601
|
+
control: z.string().optional(),
|
|
5602
|
+
margin: sizeSchema.optional()
|
|
5603
|
+
});
|
|
5604
|
+
var dividerLayoutSchema = z.object({
|
|
5605
|
+
type: z.literal("divider"),
|
|
5606
|
+
control: z.string().optional(),
|
|
5607
|
+
margin: sizeSchema.optional()
|
|
5745
5608
|
});
|
|
5746
5609
|
var infoLayoutSchema = z.object({
|
|
5747
5610
|
type: z.literal("info"),
|
|
@@ -5750,25 +5613,105 @@ var infoLayoutSchema = z.object({
|
|
|
5750
5613
|
control: z.string().optional(),
|
|
5751
5614
|
margin: sizeSchema.optional()
|
|
5752
5615
|
});
|
|
5753
|
-
var
|
|
5754
|
-
type: z.literal("
|
|
5616
|
+
var instructionsLayoutSchema = z.object({
|
|
5617
|
+
type: z.literal("instructions"),
|
|
5755
5618
|
title: z.string().optional(),
|
|
5756
|
-
|
|
5619
|
+
items: z.array(instructionsLayoutItemSchema),
|
|
5757
5620
|
control: z.string().optional(),
|
|
5758
5621
|
margin: sizeSchema.optional()
|
|
5759
5622
|
});
|
|
5760
|
-
var
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
|
|
5623
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
5624
|
+
type: z.literal("loading-indicator"),
|
|
5625
|
+
size: sizeSchema.optional(),
|
|
5626
|
+
control: z.string().optional(),
|
|
5627
|
+
margin: sizeSchema.optional()
|
|
5628
|
+
});
|
|
5629
|
+
var markdownLayoutSchema = z.object({
|
|
5630
|
+
type: z.literal("markdown"),
|
|
5631
|
+
content: z.string(),
|
|
5632
|
+
align: alignSchema.optional(),
|
|
5633
|
+
control: z.string().optional(),
|
|
5634
|
+
margin: sizeSchema.optional()
|
|
5635
|
+
});
|
|
5636
|
+
var searchLayoutSchema = z.object({
|
|
5637
|
+
type: z.literal("search"),
|
|
5638
|
+
title: z.string(),
|
|
5639
|
+
method: httpMethodSchema,
|
|
5640
|
+
url: z.string(),
|
|
5641
|
+
param: z.string(),
|
|
5642
|
+
emptyMessage: z.string().optional(),
|
|
5643
|
+
control: z.string().optional(),
|
|
5644
|
+
margin: sizeSchema.optional()
|
|
5645
|
+
});
|
|
5646
|
+
var modalLayoutTriggerSchema = z.object({
|
|
5647
|
+
title: z.string()
|
|
5648
|
+
});
|
|
5649
|
+
var listLayoutStatusSchema = z.union([
|
|
5650
|
+
z.literal("warning"),
|
|
5651
|
+
z.literal("neutral"),
|
|
5652
|
+
z.literal("positive")
|
|
5653
|
+
]);
|
|
5654
|
+
var reviewLayoutFieldSchema = z.object({
|
|
5655
|
+
label: z.string(),
|
|
5656
|
+
value: z.string(),
|
|
5657
|
+
rawValue: z.string().optional(),
|
|
5658
|
+
help: helpSchema.optional(),
|
|
5769
5659
|
tag: z.string().optional()
|
|
5770
5660
|
});
|
|
5771
|
-
var
|
|
5661
|
+
var statusListLayoutStatusSchema = z.union([
|
|
5662
|
+
z.literal("not-done"),
|
|
5663
|
+
z.literal("pending"),
|
|
5664
|
+
z.literal("done")
|
|
5665
|
+
]);
|
|
5666
|
+
var linkSchema = z.object({
|
|
5667
|
+
url: z.string()
|
|
5668
|
+
});
|
|
5669
|
+
var actionTypeSchema = z.union([
|
|
5670
|
+
z.literal("primary"),
|
|
5671
|
+
z.literal("secondary"),
|
|
5672
|
+
z.literal("link"),
|
|
5673
|
+
z.literal("positive"),
|
|
5674
|
+
z.literal("negative")
|
|
5675
|
+
]);
|
|
5676
|
+
var navigationStackBehaviorSchema = z.union([
|
|
5677
|
+
z.literal("default"),
|
|
5678
|
+
z.literal("remove-previous"),
|
|
5679
|
+
z.literal("remove-all"),
|
|
5680
|
+
z.literal("replace-current")
|
|
5681
|
+
]);
|
|
5682
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
5683
|
+
var validateAsyncSchema = z.object({
|
|
5684
|
+
param: z.string(),
|
|
5685
|
+
method: httpMethodSchema,
|
|
5686
|
+
url: z.string()
|
|
5687
|
+
});
|
|
5688
|
+
var summarySummariserSchema = z.object({
|
|
5689
|
+
defaultTitle: z.string().optional(),
|
|
5690
|
+
defaultDescription: z.string().optional(),
|
|
5691
|
+
defaultIcon: iconSchema.optional(),
|
|
5692
|
+
defaultImage: imageLayoutSchema.optional(),
|
|
5693
|
+
providesTitle: z.boolean().optional(),
|
|
5694
|
+
providesDescription: z.boolean().optional(),
|
|
5695
|
+
providesIcon: z.boolean().optional(),
|
|
5696
|
+
providesImage: z.boolean().optional()
|
|
5697
|
+
});
|
|
5698
|
+
var actionSchema = z.object({
|
|
5699
|
+
title: z.string().optional(),
|
|
5700
|
+
type: actionTypeSchema.optional(),
|
|
5701
|
+
disabled: z.boolean().optional(),
|
|
5702
|
+
$id: z.string().optional(),
|
|
5703
|
+
$ref: z.string().optional(),
|
|
5704
|
+
id: z.string().optional(),
|
|
5705
|
+
url: z.string().optional(),
|
|
5706
|
+
method: httpMethodSchema.optional(),
|
|
5707
|
+
exit: z.boolean().optional(),
|
|
5708
|
+
result: jsonElementSchema.optional(),
|
|
5709
|
+
data: jsonElementSchema.optional(),
|
|
5710
|
+
timeout: z.number().optional(),
|
|
5711
|
+
skipValidation: z.boolean().optional()
|
|
5712
|
+
});
|
|
5713
|
+
var linkHandlerSchema = z.object({
|
|
5714
|
+
regexPattern: z.string(),
|
|
5772
5715
|
action: actionSchema
|
|
5773
5716
|
});
|
|
5774
5717
|
var searchResultActionSchema = z.object({
|
|
@@ -5787,24 +5730,43 @@ var searchResultSearchSchema = z.object({
|
|
|
5787
5730
|
image: imageLayoutSchema.optional(),
|
|
5788
5731
|
value: searchSearchRequestSchema
|
|
5789
5732
|
});
|
|
5733
|
+
var actionResponseBodySchema = z.object({
|
|
5734
|
+
action: actionSchema
|
|
5735
|
+
});
|
|
5736
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
5737
|
+
title: z.string(),
|
|
5738
|
+
action: actionSchema
|
|
5739
|
+
});
|
|
5740
|
+
var formLayoutSchema = z.object({
|
|
5741
|
+
type: z.literal("form"),
|
|
5742
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
5743
|
+
schemaId: z.string(),
|
|
5744
|
+
control: z.string().optional(),
|
|
5745
|
+
margin: sizeSchema.optional()
|
|
5746
|
+
});
|
|
5747
|
+
var decisionLayoutOptionSchema = z.object({
|
|
5748
|
+
action: actionSchema,
|
|
5749
|
+
title: z.string(),
|
|
5750
|
+
description: z.string().optional(),
|
|
5751
|
+
disabled: z.boolean().optional(),
|
|
5752
|
+
icon: iconSchema.optional(),
|
|
5753
|
+
image: imageLayoutSchema.optional(),
|
|
5754
|
+
tag: z.string().optional()
|
|
5755
|
+
});
|
|
5790
5756
|
var behaviorSchema = z.object({
|
|
5791
5757
|
action: actionSchema.optional(),
|
|
5792
5758
|
link: linkSchema.optional()
|
|
5793
5759
|
});
|
|
5794
|
-
var
|
|
5795
|
-
|
|
5796
|
-
|
|
5797
|
-
|
|
5798
|
-
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
|
|
5804
|
-
providesTitle: z.boolean().optional(),
|
|
5805
|
-
providesDescription: z.boolean().optional(),
|
|
5806
|
-
providesIcon: z.boolean().optional(),
|
|
5807
|
-
providesImage: z.boolean().optional()
|
|
5760
|
+
var buttonLayoutSchema = z.object({
|
|
5761
|
+
type: z.literal("button"),
|
|
5762
|
+
size: sizeSchema.optional(),
|
|
5763
|
+
title: z.string().optional(),
|
|
5764
|
+
action: actionSchema,
|
|
5765
|
+
context: contextSchema.optional(),
|
|
5766
|
+
disabled: z.boolean().optional(),
|
|
5767
|
+
pinOrder: z.number().optional(),
|
|
5768
|
+
control: z.string().optional(),
|
|
5769
|
+
margin: sizeSchema.optional()
|
|
5808
5770
|
});
|
|
5809
5771
|
var reviewLayoutSchema = z.object({
|
|
5810
5772
|
type: z.literal("review"),
|
|
@@ -5816,29 +5778,72 @@ var reviewLayoutSchema = z.object({
|
|
|
5816
5778
|
control: z.string().optional(),
|
|
5817
5779
|
margin: sizeSchema.optional()
|
|
5818
5780
|
});
|
|
5819
|
-
var
|
|
5781
|
+
var itemCallToActionSchema = z.object({
|
|
5820
5782
|
title: z.string(),
|
|
5821
5783
|
accessibilityDescription: z.string().optional(),
|
|
5822
5784
|
behavior: behaviorSchema
|
|
5823
5785
|
});
|
|
5824
|
-
var
|
|
5786
|
+
var listLayoutCallToActionSchema = z.object({
|
|
5825
5787
|
title: z.string(),
|
|
5826
5788
|
accessibilityDescription: z.string().optional(),
|
|
5827
5789
|
behavior: behaviorSchema
|
|
5828
5790
|
});
|
|
5829
|
-
var
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
|
|
5835
|
-
|
|
5791
|
+
var listLayoutItemSchema = z.object({
|
|
5792
|
+
description: z.string().optional(),
|
|
5793
|
+
status: listLayoutStatusSchema.optional(),
|
|
5794
|
+
icon: iconSchema.optional(),
|
|
5795
|
+
image: imageSchema.optional(),
|
|
5796
|
+
title: z.string().optional(),
|
|
5797
|
+
subtitle: z.string().optional(),
|
|
5798
|
+
value: z.string().optional(),
|
|
5799
|
+
subvalue: z.string().optional(),
|
|
5800
|
+
tag: z.string().optional()
|
|
5836
5801
|
});
|
|
5837
|
-
var
|
|
5802
|
+
var statusListLayoutItemSchema = z.object({
|
|
5803
|
+
title: z.string(),
|
|
5804
|
+
description: z.string().optional(),
|
|
5805
|
+
icon: iconSchema,
|
|
5806
|
+
status: statusListLayoutStatusSchema.optional(),
|
|
5807
|
+
callToAction: itemCallToActionSchema.optional(),
|
|
5808
|
+
tag: z.string().optional()
|
|
5809
|
+
});
|
|
5810
|
+
var pollingOnErrorSchema = z.object({
|
|
5811
|
+
action: actionSchema
|
|
5812
|
+
});
|
|
5813
|
+
var navigationBackBehaviorSchema = z.object({
|
|
5814
|
+
title: z.string().optional(),
|
|
5815
|
+
action: actionSchema
|
|
5816
|
+
});
|
|
5817
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
5818
|
+
var pollingSchema = z.object({
|
|
5819
|
+
url: z.string(),
|
|
5820
|
+
interval: z.number().optional(),
|
|
5821
|
+
delay: z.number().optional(),
|
|
5822
|
+
timeout: z.number().optional(),
|
|
5823
|
+
maxAttempts: z.number(),
|
|
5824
|
+
onError: pollingOnErrorSchema
|
|
5825
|
+
});
|
|
5826
|
+
var navigationSchema = z.object({
|
|
5827
|
+
backButton: navigationBackBehaviorSchema.optional(),
|
|
5828
|
+
back: navigationBackBehaviorSchema.optional(),
|
|
5829
|
+
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
5830
|
+
});
|
|
5831
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
5832
|
+
var searchResponseBodySchema = z.object({
|
|
5833
|
+
results: z.array(searchResultSchema)
|
|
5834
|
+
});
|
|
5835
|
+
var alertLayoutCallToActionSchema = z.object({
|
|
5838
5836
|
title: z.string(),
|
|
5839
5837
|
accessibilityDescription: z.string().optional(),
|
|
5840
5838
|
behavior: behaviorSchema
|
|
5841
5839
|
});
|
|
5840
|
+
var decisionLayoutSchema = z.object({
|
|
5841
|
+
type: z.literal("decision"),
|
|
5842
|
+
title: z.string().optional(),
|
|
5843
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
5844
|
+
control: z.string().optional(),
|
|
5845
|
+
margin: sizeSchema.optional()
|
|
5846
|
+
});
|
|
5842
5847
|
var listLayoutSchema = z.object({
|
|
5843
5848
|
type: z.literal("list"),
|
|
5844
5849
|
title: z.string().optional(),
|
|
@@ -5847,9 +5852,20 @@ var listLayoutSchema = z.object({
|
|
|
5847
5852
|
control: z.string().optional(),
|
|
5848
5853
|
margin: sizeSchema.optional()
|
|
5849
5854
|
});
|
|
5850
|
-
var
|
|
5851
|
-
|
|
5852
|
-
|
|
5855
|
+
var statusListLayoutSchema = z.object({
|
|
5856
|
+
type: z.literal("status-list"),
|
|
5857
|
+
items: z.array(statusListLayoutItemSchema),
|
|
5858
|
+
title: z.string().optional(),
|
|
5859
|
+
control: z.string().optional(),
|
|
5860
|
+
margin: sizeSchema.optional()
|
|
5861
|
+
});
|
|
5862
|
+
var alertLayoutSchema = z.object({
|
|
5863
|
+
type: z.literal("alert"),
|
|
5864
|
+
markdown: z.string(),
|
|
5865
|
+
context: contextSchema.optional(),
|
|
5866
|
+
control: z.string().optional(),
|
|
5867
|
+
margin: sizeSchema.optional(),
|
|
5868
|
+
callToAction: alertLayoutCallToActionSchema.optional()
|
|
5853
5869
|
});
|
|
5854
5870
|
var constSchemaSchema = z.object({
|
|
5855
5871
|
hidden: z.boolean().optional(),
|
|
@@ -5889,148 +5905,22 @@ var blobSchemaSchema = z.object({
|
|
|
5889
5905
|
source: uploadSourceSchema.optional(),
|
|
5890
5906
|
disabled: z.boolean().optional()
|
|
5891
5907
|
});
|
|
5892
|
-
var
|
|
5893
|
-
var statusListLayoutItemSchema = z.object({
|
|
5894
|
-
title: z.string(),
|
|
5895
|
-
description: z.string().optional(),
|
|
5896
|
-
icon: iconSchema,
|
|
5897
|
-
status: statusListLayoutStatusSchema.optional(),
|
|
5898
|
-
callToAction: itemCallToActionSchema.optional(),
|
|
5899
|
-
tag: z.string().optional()
|
|
5900
|
-
});
|
|
5901
|
-
var statusListLayoutSchema = z.object({
|
|
5902
|
-
type: z.literal("status-list"),
|
|
5903
|
-
items: z.array(statusListLayoutItemSchema),
|
|
5904
|
-
title: z.string().optional(),
|
|
5905
|
-
control: z.string().optional(),
|
|
5906
|
-
margin: sizeSchema.optional()
|
|
5907
|
-
});
|
|
5908
|
-
var persistAsyncSchema = z.lazy(
|
|
5909
|
-
() => z.object({
|
|
5910
|
-
param: z.string(),
|
|
5911
|
-
idProperty: z.string(),
|
|
5912
|
-
schema: schemaSchema,
|
|
5913
|
-
url: z.string(),
|
|
5914
|
-
method: httpMethodSchema
|
|
5915
|
-
})
|
|
5916
|
-
);
|
|
5917
|
-
var schemaSchema = z.lazy(
|
|
5918
|
-
() => z.union([
|
|
5919
|
-
allOfSchemaSchema,
|
|
5920
|
-
arraySchemaSchema,
|
|
5921
|
-
blobSchemaSchema,
|
|
5922
|
-
booleanSchemaSchema,
|
|
5923
|
-
constSchemaSchema,
|
|
5924
|
-
integerSchemaSchema,
|
|
5925
|
-
numberSchemaSchema,
|
|
5926
|
-
objectSchemaSchema,
|
|
5927
|
-
oneOfSchemaSchema,
|
|
5928
|
-
stringSchemaSchema
|
|
5929
|
-
])
|
|
5930
|
-
);
|
|
5931
|
-
var columnsLayoutSchema = z.lazy(
|
|
5932
|
-
() => z.object({
|
|
5933
|
-
type: z.literal("columns"),
|
|
5934
|
-
left: z.array(layoutSchema),
|
|
5935
|
-
right: z.array(layoutSchema),
|
|
5936
|
-
bias: columnsLayoutBiasSchema.optional(),
|
|
5937
|
-
control: z.string().optional(),
|
|
5938
|
-
margin: sizeSchema.optional()
|
|
5939
|
-
})
|
|
5940
|
-
);
|
|
5941
|
-
var layoutSchema = z.lazy(
|
|
5942
|
-
() => z.union([
|
|
5943
|
-
alertLayoutSchema,
|
|
5944
|
-
boxLayoutSchema,
|
|
5945
|
-
buttonLayoutSchema,
|
|
5946
|
-
columnsLayoutSchema,
|
|
5947
|
-
decisionLayoutSchema,
|
|
5948
|
-
dividerLayoutSchema,
|
|
5949
|
-
formLayoutSchema,
|
|
5950
|
-
headingLayoutSchema,
|
|
5951
|
-
imageLayoutSchema,
|
|
5952
|
-
infoLayoutSchema,
|
|
5953
|
-
instructionsLayoutSchema,
|
|
5954
|
-
listLayoutSchema,
|
|
5955
|
-
loadingIndicatorLayoutSchema,
|
|
5956
|
-
markdownLayoutSchema,
|
|
5957
|
-
modalLayoutSchema,
|
|
5958
|
-
paragraphLayoutSchema,
|
|
5959
|
-
reviewLayoutSchema,
|
|
5960
|
-
searchLayoutSchema,
|
|
5961
|
-
statusListLayoutSchema
|
|
5962
|
-
])
|
|
5963
|
-
);
|
|
5964
|
-
var modalLayoutContentSchema = z.lazy(
|
|
5965
|
-
() => z.object({
|
|
5966
|
-
title: z.string().optional(),
|
|
5967
|
-
components: z.array(layoutSchema)
|
|
5968
|
-
})
|
|
5969
|
-
);
|
|
5970
|
-
var boxLayoutSchema = z.lazy(
|
|
5971
|
-
() => z.object({
|
|
5972
|
-
type: z.literal("box"),
|
|
5973
|
-
components: z.array(layoutSchema),
|
|
5974
|
-
width: sizeSchema.optional(),
|
|
5975
|
-
border: z.boolean().optional(),
|
|
5976
|
-
control: z.string().optional(),
|
|
5977
|
-
margin: sizeSchema.optional()
|
|
5978
|
-
})
|
|
5979
|
-
);
|
|
5980
|
-
var modalLayoutSchema = z.lazy(
|
|
5981
|
-
() => z.object({
|
|
5982
|
-
type: z.literal("modal"),
|
|
5983
|
-
control: z.string().optional(),
|
|
5984
|
-
margin: sizeSchema.optional(),
|
|
5985
|
-
trigger: modalLayoutTriggerSchema,
|
|
5986
|
-
content: modalLayoutContentSchema
|
|
5987
|
-
})
|
|
5988
|
-
);
|
|
5989
|
-
var stepSchema = z.lazy(
|
|
5990
|
-
() => z.object({
|
|
5991
|
-
key: z.string().optional(),
|
|
5992
|
-
type: z.string().optional(),
|
|
5993
|
-
actions: z.array(actionSchema).optional(),
|
|
5994
|
-
refreshFormUrl: z.string().optional(),
|
|
5995
|
-
id: z.string(),
|
|
5996
|
-
title: z.string(),
|
|
5997
|
-
schemas: z.array(schemaSchema),
|
|
5998
|
-
layout: z.array(layoutSchema),
|
|
5999
|
-
description: z.string().optional(),
|
|
6000
|
-
model: jsonElementSchema.optional(),
|
|
6001
|
-
external: externalSchema.optional(),
|
|
6002
|
-
polling: pollingSchema.optional(),
|
|
6003
|
-
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
6004
|
-
analytics: z.record(z.string()).optional(),
|
|
6005
|
-
errors: stepErrorSchema.optional(),
|
|
6006
|
-
navigation: navigationSchema.optional(),
|
|
6007
|
-
refreshUrl: z.string().optional(),
|
|
6008
|
-
control: z.string().optional()
|
|
6009
|
-
})
|
|
6010
|
-
);
|
|
6011
|
-
var stringSchemaSchema = z.lazy(
|
|
5908
|
+
var numberSchemaSchema = z.lazy(
|
|
6012
5909
|
() => z.object({
|
|
6013
|
-
type: z.literal("
|
|
5910
|
+
type: z.literal("number"),
|
|
6014
5911
|
autofillProvider: z.string().optional(),
|
|
6015
|
-
promoted: z.boolean().optional(),
|
|
6016
|
-
refreshFormOnChange: z.boolean().optional(),
|
|
6017
|
-
refreshUrl: z.string().optional(),
|
|
6018
|
-
refreshFormUrl: z.string().optional(),
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
minLength: z.number().optional(),
|
|
6023
|
-
maxLength: z.number().optional(),
|
|
6024
|
-
minimum: z.string().optional(),
|
|
6025
|
-
maximum: z.string().optional(),
|
|
6026
|
-
pattern: z.string().optional(),
|
|
6027
|
-
autocapitalization: autocapitalizationTypeSchema.optional(),
|
|
6028
|
-
autocorrect: z.boolean().optional(),
|
|
5912
|
+
promoted: z.boolean().optional(),
|
|
5913
|
+
refreshFormOnChange: z.boolean().optional(),
|
|
5914
|
+
refreshUrl: z.string().optional(),
|
|
5915
|
+
refreshFormUrl: z.string().optional(),
|
|
5916
|
+
placeholder: z.string().optional(),
|
|
5917
|
+
minimum: z.number().optional(),
|
|
5918
|
+
maximum: z.number().optional(),
|
|
6029
5919
|
$id: z.string().optional(),
|
|
6030
5920
|
title: z.string().optional(),
|
|
6031
5921
|
description: z.string().optional(),
|
|
6032
5922
|
control: z.string().optional(),
|
|
6033
|
-
default: z.
|
|
5923
|
+
default: z.number().optional(),
|
|
6034
5924
|
hidden: z.boolean().optional(),
|
|
6035
5925
|
disabled: z.boolean().optional(),
|
|
6036
5926
|
icon: iconSchema.optional(),
|
|
@@ -6043,61 +5933,67 @@ var stringSchemaSchema = z.lazy(
|
|
|
6043
5933
|
validationAsync: validateAsyncSchema.optional(),
|
|
6044
5934
|
validationMessages: z.record(z.string()).optional(),
|
|
6045
5935
|
alert: alertLayoutSchema.optional(),
|
|
6046
|
-
cameraConfig: jsonElementSchema.optional(),
|
|
6047
|
-
accepts: z.array(z.string()).optional(),
|
|
6048
|
-
maxSize: z.number().optional(),
|
|
6049
|
-
source: uploadSourceSchema.optional(),
|
|
6050
5936
|
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6051
5937
|
autofillKey: z.string().optional(),
|
|
6052
5938
|
help: helpSchema.optional()
|
|
6053
5939
|
})
|
|
6054
5940
|
);
|
|
6055
|
-
var
|
|
5941
|
+
var persistAsyncSchema = z.lazy(
|
|
6056
5942
|
() => z.object({
|
|
6057
|
-
|
|
5943
|
+
param: z.string(),
|
|
5944
|
+
idProperty: z.string(),
|
|
5945
|
+
schema: schemaSchema,
|
|
5946
|
+
url: z.string(),
|
|
5947
|
+
method: httpMethodSchema
|
|
5948
|
+
})
|
|
5949
|
+
);
|
|
5950
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
5951
|
+
() => z.object({
|
|
5952
|
+
type: z.literal("array"),
|
|
6058
5953
|
promoted: z.boolean().optional(),
|
|
6059
|
-
refreshFormOnChange: z.boolean().optional(),
|
|
6060
|
-
refreshUrl: z.string().optional(),
|
|
6061
|
-
refreshFormUrl: z.string().optional(),
|
|
6062
|
-
promotion: jsonElementSchema.optional(),
|
|
6063
|
-
oneOf: z.array(schemaSchema),
|
|
6064
|
-
placeholder: z.string().optional(),
|
|
6065
5954
|
$id: z.string().optional(),
|
|
5955
|
+
items: z.array(schemaSchema),
|
|
6066
5956
|
title: z.string().optional(),
|
|
6067
5957
|
description: z.string().optional(),
|
|
6068
5958
|
control: z.string().optional(),
|
|
6069
|
-
default: jsonElementSchema.optional(),
|
|
6070
5959
|
hidden: z.boolean().optional(),
|
|
6071
5960
|
icon: iconSchema.optional(),
|
|
6072
5961
|
image: imageSchema.optional(),
|
|
6073
5962
|
keywords: z.array(z.string()).optional(),
|
|
6074
5963
|
summary: summaryProviderSchema.optional(),
|
|
6075
5964
|
analyticsId: z.string().optional(),
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6080
|
-
autofillKey: z.string().optional(),
|
|
6081
|
-
validationMessages: z.record(z.string()).optional(),
|
|
6082
|
-
disabled: z.boolean().optional()
|
|
5965
|
+
persistAsync: persistAsyncSchema.optional(),
|
|
5966
|
+
validationAsync: validateAsyncSchema.optional(),
|
|
5967
|
+
alert: alertLayoutSchema.optional()
|
|
6083
5968
|
})
|
|
6084
5969
|
);
|
|
6085
|
-
var
|
|
5970
|
+
var schemaSchema = z.lazy(
|
|
5971
|
+
() => z.union([
|
|
5972
|
+
allOfSchemaSchema,
|
|
5973
|
+
arraySchemaSchema,
|
|
5974
|
+
blobSchemaSchema,
|
|
5975
|
+
booleanSchemaSchema,
|
|
5976
|
+
constSchemaSchema,
|
|
5977
|
+
integerSchemaSchema,
|
|
5978
|
+
numberSchemaSchema,
|
|
5979
|
+
objectSchemaSchema,
|
|
5980
|
+
oneOfSchemaSchema,
|
|
5981
|
+
stringSchemaSchema
|
|
5982
|
+
])
|
|
5983
|
+
);
|
|
5984
|
+
var booleanSchemaSchema = z.lazy(
|
|
6086
5985
|
() => z.object({
|
|
6087
|
-
type: z.literal("
|
|
5986
|
+
type: z.literal("boolean"),
|
|
6088
5987
|
autofillProvider: z.string().optional(),
|
|
6089
5988
|
promoted: z.boolean().optional(),
|
|
6090
5989
|
refreshFormOnChange: z.boolean().optional(),
|
|
6091
5990
|
refreshUrl: z.string().optional(),
|
|
6092
5991
|
refreshFormUrl: z.string().optional(),
|
|
6093
|
-
placeholder: z.string().optional(),
|
|
6094
|
-
minimum: z.number().optional(),
|
|
6095
|
-
maximum: z.number().optional(),
|
|
6096
5992
|
$id: z.string().optional(),
|
|
6097
5993
|
title: z.string().optional(),
|
|
6098
5994
|
description: z.string().optional(),
|
|
6099
5995
|
control: z.string().optional(),
|
|
6100
|
-
default: z.
|
|
5996
|
+
default: z.boolean().optional(),
|
|
6101
5997
|
hidden: z.boolean().optional(),
|
|
6102
5998
|
disabled: z.boolean().optional(),
|
|
6103
5999
|
icon: iconSchema.optional(),
|
|
@@ -6108,19 +6004,17 @@ var numberSchemaSchema = z.lazy(
|
|
|
6108
6004
|
persistAsync: persistAsyncSchema.optional(),
|
|
6109
6005
|
refreshStepOnChange: z.boolean().optional(),
|
|
6110
6006
|
validationAsync: validateAsyncSchema.optional(),
|
|
6111
|
-
validationMessages: z.record(z.string()).optional(),
|
|
6112
6007
|
alert: alertLayoutSchema.optional(),
|
|
6113
|
-
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6114
6008
|
autofillKey: z.string().optional(),
|
|
6115
6009
|
help: helpSchema.optional()
|
|
6116
6010
|
})
|
|
6117
6011
|
);
|
|
6118
|
-
var
|
|
6012
|
+
var allOfSchemaSchema = z.lazy(
|
|
6119
6013
|
() => z.object({
|
|
6120
|
-
|
|
6014
|
+
disabled: z.boolean().optional(),
|
|
6121
6015
|
promoted: z.boolean().optional(),
|
|
6016
|
+
allOf: z.array(schemaSchema),
|
|
6122
6017
|
$id: z.string().optional(),
|
|
6123
|
-
items: z.array(schemaSchema),
|
|
6124
6018
|
title: z.string().optional(),
|
|
6125
6019
|
description: z.string().optional(),
|
|
6126
6020
|
control: z.string().optional(),
|
|
@@ -6130,11 +6024,12 @@ var arraySchemaTupleSchema = z.lazy(
|
|
|
6130
6024
|
keywords: z.array(z.string()).optional(),
|
|
6131
6025
|
summary: summaryProviderSchema.optional(),
|
|
6132
6026
|
analyticsId: z.string().optional(),
|
|
6133
|
-
persistAsync: persistAsyncSchema.optional(),
|
|
6134
|
-
validationAsync: validateAsyncSchema.optional(),
|
|
6135
6027
|
alert: alertLayoutSchema.optional()
|
|
6136
6028
|
})
|
|
6137
6029
|
);
|
|
6030
|
+
var arraySchemaSchema = z.lazy(
|
|
6031
|
+
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
6032
|
+
);
|
|
6138
6033
|
var integerSchemaSchema = z.lazy(
|
|
6139
6034
|
() => z.object({
|
|
6140
6035
|
type: z.literal("integer"),
|
|
@@ -6168,20 +6063,16 @@ var integerSchemaSchema = z.lazy(
|
|
|
6168
6063
|
help: helpSchema.optional()
|
|
6169
6064
|
})
|
|
6170
6065
|
);
|
|
6171
|
-
var
|
|
6172
|
-
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
6173
|
-
);
|
|
6174
|
-
var arraySchemaListSchema = z.lazy(
|
|
6066
|
+
var objectSchemaSchema = z.lazy(
|
|
6175
6067
|
() => z.object({
|
|
6176
|
-
type: z.literal("
|
|
6068
|
+
type: z.literal("object"),
|
|
6069
|
+
disabled: z.boolean().optional(),
|
|
6177
6070
|
promoted: z.boolean().optional(),
|
|
6071
|
+
help: helpSchema.optional(),
|
|
6072
|
+
properties: z.record(schemaSchema),
|
|
6073
|
+
displayOrder: z.array(z.string()),
|
|
6074
|
+
required: z.array(z.string()).optional(),
|
|
6178
6075
|
$id: z.string().optional(),
|
|
6179
|
-
items: schemaSchema,
|
|
6180
|
-
addItemTitle: z.string(),
|
|
6181
|
-
editItemTitle: z.string(),
|
|
6182
|
-
minItems: z.number().optional(),
|
|
6183
|
-
maxItems: z.number().optional(),
|
|
6184
|
-
placeholder: z.string().optional(),
|
|
6185
6076
|
title: z.string().optional(),
|
|
6186
6077
|
description: z.string().optional(),
|
|
6187
6078
|
control: z.string().optional(),
|
|
@@ -6189,46 +6080,64 @@ var arraySchemaListSchema = z.lazy(
|
|
|
6189
6080
|
icon: iconSchema.optional(),
|
|
6190
6081
|
image: imageSchema.optional(),
|
|
6191
6082
|
keywords: z.array(z.string()).optional(),
|
|
6192
|
-
summary:
|
|
6083
|
+
summary: summaryProviderSchema.optional(),
|
|
6193
6084
|
analyticsId: z.string().optional(),
|
|
6194
|
-
|
|
6195
|
-
validationAsync: validateAsyncSchema.optional(),
|
|
6196
|
-
alert: alertLayoutSchema.optional(),
|
|
6197
|
-
validationMessages: z.record(z.string()).optional(),
|
|
6198
|
-
disabled: z.boolean().optional()
|
|
6085
|
+
alert: alertLayoutSchema.optional()
|
|
6199
6086
|
})
|
|
6200
6087
|
);
|
|
6201
|
-
var
|
|
6088
|
+
var oneOfSchemaSchema = z.lazy(
|
|
6202
6089
|
() => z.object({
|
|
6203
|
-
|
|
6090
|
+
autofillProvider: z.string().optional(),
|
|
6204
6091
|
promoted: z.boolean().optional(),
|
|
6205
|
-
|
|
6092
|
+
refreshFormOnChange: z.boolean().optional(),
|
|
6093
|
+
refreshUrl: z.string().optional(),
|
|
6094
|
+
refreshFormUrl: z.string().optional(),
|
|
6095
|
+
promotion: jsonElementSchema.optional(),
|
|
6096
|
+
oneOf: z.array(schemaSchema),
|
|
6097
|
+
placeholder: z.string().optional(),
|
|
6206
6098
|
$id: z.string().optional(),
|
|
6207
6099
|
title: z.string().optional(),
|
|
6208
6100
|
description: z.string().optional(),
|
|
6209
6101
|
control: z.string().optional(),
|
|
6102
|
+
default: jsonElementSchema.optional(),
|
|
6210
6103
|
hidden: z.boolean().optional(),
|
|
6211
6104
|
icon: iconSchema.optional(),
|
|
6212
6105
|
image: imageSchema.optional(),
|
|
6213
6106
|
keywords: z.array(z.string()).optional(),
|
|
6214
6107
|
summary: summaryProviderSchema.optional(),
|
|
6215
6108
|
analyticsId: z.string().optional(),
|
|
6216
|
-
|
|
6109
|
+
refreshStepOnChange: z.boolean().optional(),
|
|
6110
|
+
alert: alertLayoutSchema.optional(),
|
|
6111
|
+
help: helpSchema.optional(),
|
|
6112
|
+
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6113
|
+
autofillKey: z.string().optional(),
|
|
6114
|
+
validationMessages: z.record(z.string()).optional(),
|
|
6115
|
+
disabled: z.boolean().optional()
|
|
6217
6116
|
})
|
|
6218
6117
|
);
|
|
6219
|
-
var
|
|
6118
|
+
var stringSchemaSchema = z.lazy(
|
|
6220
6119
|
() => z.object({
|
|
6221
|
-
type: z.literal("
|
|
6120
|
+
type: z.literal("string"),
|
|
6222
6121
|
autofillProvider: z.string().optional(),
|
|
6223
6122
|
promoted: z.boolean().optional(),
|
|
6224
6123
|
refreshFormOnChange: z.boolean().optional(),
|
|
6225
6124
|
refreshUrl: z.string().optional(),
|
|
6226
6125
|
refreshFormUrl: z.string().optional(),
|
|
6126
|
+
format: stringSchemaFormatSchema.optional(),
|
|
6127
|
+
displayFormat: z.string().optional(),
|
|
6128
|
+
placeholder: z.string().optional(),
|
|
6129
|
+
minLength: z.number().optional(),
|
|
6130
|
+
maxLength: z.number().optional(),
|
|
6131
|
+
minimum: z.string().optional(),
|
|
6132
|
+
maximum: z.string().optional(),
|
|
6133
|
+
pattern: z.string().optional(),
|
|
6134
|
+
autocapitalization: autocapitalizationTypeSchema.optional(),
|
|
6135
|
+
autocorrect: z.boolean().optional(),
|
|
6227
6136
|
$id: z.string().optional(),
|
|
6228
6137
|
title: z.string().optional(),
|
|
6229
6138
|
description: z.string().optional(),
|
|
6230
6139
|
control: z.string().optional(),
|
|
6231
|
-
default: z.
|
|
6140
|
+
default: z.string().optional(),
|
|
6232
6141
|
hidden: z.boolean().optional(),
|
|
6233
6142
|
disabled: z.boolean().optional(),
|
|
6234
6143
|
icon: iconSchema.optional(),
|
|
@@ -6239,21 +6148,28 @@ var booleanSchemaSchema = z.lazy(
|
|
|
6239
6148
|
persistAsync: persistAsyncSchema.optional(),
|
|
6240
6149
|
refreshStepOnChange: z.boolean().optional(),
|
|
6241
6150
|
validationAsync: validateAsyncSchema.optional(),
|
|
6151
|
+
validationMessages: z.record(z.string()).optional(),
|
|
6242
6152
|
alert: alertLayoutSchema.optional(),
|
|
6153
|
+
cameraConfig: jsonElementSchema.optional(),
|
|
6154
|
+
accepts: z.array(z.string()).optional(),
|
|
6155
|
+
maxSize: z.number().optional(),
|
|
6156
|
+
source: uploadSourceSchema.optional(),
|
|
6157
|
+
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6243
6158
|
autofillKey: z.string().optional(),
|
|
6244
6159
|
help: helpSchema.optional()
|
|
6245
6160
|
})
|
|
6246
6161
|
);
|
|
6247
|
-
var
|
|
6162
|
+
var arraySchemaListSchema = z.lazy(
|
|
6248
6163
|
() => z.object({
|
|
6249
|
-
type: z.literal("
|
|
6250
|
-
disabled: z.boolean().optional(),
|
|
6164
|
+
type: z.literal("array"),
|
|
6251
6165
|
promoted: z.boolean().optional(),
|
|
6252
|
-
help: helpSchema.optional(),
|
|
6253
|
-
properties: z.record(schemaSchema),
|
|
6254
|
-
displayOrder: z.array(z.string()),
|
|
6255
|
-
required: z.array(z.string()).optional(),
|
|
6256
6166
|
$id: z.string().optional(),
|
|
6167
|
+
items: schemaSchema,
|
|
6168
|
+
addItemTitle: z.string(),
|
|
6169
|
+
editItemTitle: z.string(),
|
|
6170
|
+
minItems: z.number().optional(),
|
|
6171
|
+
maxItems: z.number().optional(),
|
|
6172
|
+
placeholder: z.string().optional(),
|
|
6257
6173
|
title: z.string().optional(),
|
|
6258
6174
|
description: z.string().optional(),
|
|
6259
6175
|
control: z.string().optional(),
|
|
@@ -6261,9 +6177,93 @@ var objectSchemaSchema = z.lazy(
|
|
|
6261
6177
|
icon: iconSchema.optional(),
|
|
6262
6178
|
image: imageSchema.optional(),
|
|
6263
6179
|
keywords: z.array(z.string()).optional(),
|
|
6264
|
-
summary:
|
|
6180
|
+
summary: summarySummariserSchema.optional(),
|
|
6265
6181
|
analyticsId: z.string().optional(),
|
|
6266
|
-
|
|
6182
|
+
persistAsync: persistAsyncSchema.optional(),
|
|
6183
|
+
validationAsync: validateAsyncSchema.optional(),
|
|
6184
|
+
alert: alertLayoutSchema.optional(),
|
|
6185
|
+
validationMessages: z.record(z.string()).optional(),
|
|
6186
|
+
disabled: z.boolean().optional()
|
|
6187
|
+
})
|
|
6188
|
+
);
|
|
6189
|
+
var stepSchema = z.lazy(
|
|
6190
|
+
() => z.object({
|
|
6191
|
+
key: z.string().optional(),
|
|
6192
|
+
type: z.string().optional(),
|
|
6193
|
+
actions: z.array(actionSchema).optional(),
|
|
6194
|
+
refreshFormUrl: z.string().optional(),
|
|
6195
|
+
id: z.string(),
|
|
6196
|
+
title: z.string(),
|
|
6197
|
+
schemas: z.array(schemaSchema),
|
|
6198
|
+
layout: z.array(layoutSchema),
|
|
6199
|
+
description: z.string().optional(),
|
|
6200
|
+
model: jsonElementSchema.optional(),
|
|
6201
|
+
external: externalSchema.optional(),
|
|
6202
|
+
polling: pollingSchema.optional(),
|
|
6203
|
+
linkHandlers: z.array(linkHandlerSchema).optional(),
|
|
6204
|
+
analytics: z.record(z.string()).optional(),
|
|
6205
|
+
errors: stepErrorSchema.optional(),
|
|
6206
|
+
navigation: navigationSchema.optional(),
|
|
6207
|
+
refreshUrl: z.string().optional(),
|
|
6208
|
+
control: z.string().optional()
|
|
6209
|
+
})
|
|
6210
|
+
);
|
|
6211
|
+
var layoutSchema = z.lazy(
|
|
6212
|
+
() => z.union([
|
|
6213
|
+
alertLayoutSchema,
|
|
6214
|
+
boxLayoutSchema,
|
|
6215
|
+
buttonLayoutSchema,
|
|
6216
|
+
columnsLayoutSchema,
|
|
6217
|
+
decisionLayoutSchema,
|
|
6218
|
+
dividerLayoutSchema,
|
|
6219
|
+
formLayoutSchema,
|
|
6220
|
+
headingLayoutSchema,
|
|
6221
|
+
imageLayoutSchema,
|
|
6222
|
+
infoLayoutSchema,
|
|
6223
|
+
instructionsLayoutSchema,
|
|
6224
|
+
listLayoutSchema,
|
|
6225
|
+
loadingIndicatorLayoutSchema,
|
|
6226
|
+
markdownLayoutSchema,
|
|
6227
|
+
modalLayoutSchema,
|
|
6228
|
+
paragraphLayoutSchema,
|
|
6229
|
+
reviewLayoutSchema,
|
|
6230
|
+
searchLayoutSchema,
|
|
6231
|
+
statusListLayoutSchema
|
|
6232
|
+
])
|
|
6233
|
+
);
|
|
6234
|
+
var columnsLayoutSchema = z.lazy(
|
|
6235
|
+
() => z.object({
|
|
6236
|
+
type: z.literal("columns"),
|
|
6237
|
+
left: z.array(layoutSchema),
|
|
6238
|
+
right: z.array(layoutSchema),
|
|
6239
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
6240
|
+
control: z.string().optional(),
|
|
6241
|
+
margin: sizeSchema.optional()
|
|
6242
|
+
})
|
|
6243
|
+
);
|
|
6244
|
+
var modalLayoutContentSchema = z.lazy(
|
|
6245
|
+
() => z.object({
|
|
6246
|
+
title: z.string().optional(),
|
|
6247
|
+
components: z.array(layoutSchema)
|
|
6248
|
+
})
|
|
6249
|
+
);
|
|
6250
|
+
var boxLayoutSchema = z.lazy(
|
|
6251
|
+
() => z.object({
|
|
6252
|
+
type: z.literal("box"),
|
|
6253
|
+
components: z.array(layoutSchema),
|
|
6254
|
+
width: sizeSchema.optional(),
|
|
6255
|
+
border: z.boolean().optional(),
|
|
6256
|
+
control: z.string().optional(),
|
|
6257
|
+
margin: sizeSchema.optional()
|
|
6258
|
+
})
|
|
6259
|
+
);
|
|
6260
|
+
var modalLayoutSchema = z.lazy(
|
|
6261
|
+
() => z.object({
|
|
6262
|
+
type: z.literal("modal"),
|
|
6263
|
+
control: z.string().optional(),
|
|
6264
|
+
margin: sizeSchema.optional(),
|
|
6265
|
+
trigger: modalLayoutTriggerSchema,
|
|
6266
|
+
content: modalLayoutContentSchema
|
|
6267
6267
|
})
|
|
6268
6268
|
);
|
|
6269
6269
|
var validateStep = (step) => validate(step, stepSchema);
|
|
@@ -11677,27 +11677,25 @@ var listComponentToProps = (component, rendererMapperProps) => __spreadProps(__s
|
|
|
11677
11677
|
var stepComponentToProps = ({
|
|
11678
11678
|
uid,
|
|
11679
11679
|
back,
|
|
11680
|
+
control,
|
|
11680
11681
|
description,
|
|
11681
11682
|
error,
|
|
11682
11683
|
external,
|
|
11683
11684
|
loadingState,
|
|
11684
|
-
step,
|
|
11685
11685
|
title,
|
|
11686
|
-
components
|
|
11687
|
-
onAction
|
|
11686
|
+
components
|
|
11688
11687
|
}, rendererMapperProps) => {
|
|
11689
11688
|
const childrenProps = components.map((c) => componentToRendererProps(c, rendererMapperProps));
|
|
11690
11689
|
return __spreadValues({
|
|
11691
11690
|
type: "step",
|
|
11692
11691
|
uid,
|
|
11693
11692
|
back,
|
|
11693
|
+
control,
|
|
11694
11694
|
description,
|
|
11695
11695
|
error,
|
|
11696
11696
|
external,
|
|
11697
11697
|
loadingState,
|
|
11698
11698
|
title,
|
|
11699
|
-
step,
|
|
11700
|
-
onAction,
|
|
11701
11699
|
children: childrenProps.map(rendererMapperProps.render),
|
|
11702
11700
|
childrenProps
|
|
11703
11701
|
}, rendererMapperProps);
|