@wise/dynamic-flow-client 4.0.0-experimental-c80edb2 → 4.0.0-experimental-dde19b5
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,26 +5486,215 @@ var autocompleteTokenSchema = z.union([
|
|
|
5644
5486
|
z.literal("fax"),
|
|
5645
5487
|
z.literal("pager")
|
|
5646
5488
|
]);
|
|
5489
|
+
var helpSchema = z.object({
|
|
5490
|
+
markdown: z.string()
|
|
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
|
+
);
|
|
5501
|
+
var stringSchemaFormatSchema = z.union([
|
|
5502
|
+
z.literal("date"),
|
|
5503
|
+
z.literal("email"),
|
|
5504
|
+
z.literal("numeric"),
|
|
5505
|
+
z.literal("password"),
|
|
5506
|
+
z.literal("phone-number"),
|
|
5507
|
+
z.literal("base64url")
|
|
5508
|
+
]);
|
|
5647
5509
|
var autocapitalizationTypeSchema = z.union([
|
|
5648
5510
|
z.literal("none"),
|
|
5649
5511
|
z.literal("characters"),
|
|
5650
5512
|
z.literal("sentences"),
|
|
5651
5513
|
z.literal("words")
|
|
5652
5514
|
]);
|
|
5515
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
5516
|
+
var externalSchema = z.object({
|
|
5517
|
+
url: z.string()
|
|
5518
|
+
});
|
|
5519
|
+
var stepErrorSchema = z.object({
|
|
5520
|
+
error: z.string().optional(),
|
|
5521
|
+
validation: jsonElementSchema.optional()
|
|
5522
|
+
});
|
|
5653
5523
|
var iconNamedSchema = z.object({
|
|
5654
5524
|
name: z.string()
|
|
5655
5525
|
});
|
|
5656
5526
|
var iconTextSchema = z.object({
|
|
5657
5527
|
text: z.string()
|
|
5658
5528
|
});
|
|
5659
|
-
var
|
|
5660
|
-
|
|
5661
|
-
z.literal("
|
|
5662
|
-
z.literal("
|
|
5663
|
-
z.literal("
|
|
5664
|
-
z.literal("
|
|
5665
|
-
z.literal("
|
|
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")
|
|
5666
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(),
|
|
5560
|
+
control: z.string().optional(),
|
|
5561
|
+
margin: sizeSchema.optional()
|
|
5562
|
+
});
|
|
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(),
|
|
5580
|
+
control: z.string().optional(),
|
|
5581
|
+
margin: sizeSchema.optional()
|
|
5582
|
+
});
|
|
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()
|
|
5608
|
+
});
|
|
5609
|
+
var infoLayoutSchema = z.object({
|
|
5610
|
+
type: z.literal("info"),
|
|
5611
|
+
markdown: z.string(),
|
|
5612
|
+
align: alignSchema.optional(),
|
|
5613
|
+
control: z.string().optional(),
|
|
5614
|
+
margin: sizeSchema.optional()
|
|
5615
|
+
});
|
|
5616
|
+
var instructionsLayoutSchema = z.object({
|
|
5617
|
+
type: z.literal("instructions"),
|
|
5618
|
+
title: z.string().optional(),
|
|
5619
|
+
items: z.array(instructionsLayoutItemSchema),
|
|
5620
|
+
control: z.string().optional(),
|
|
5621
|
+
margin: sizeSchema.optional()
|
|
5622
|
+
});
|
|
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(),
|
|
5659
|
+
tag: z.string().optional()
|
|
5660
|
+
});
|
|
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
|
+
});
|
|
5667
5698
|
var actionSchema = z.object({
|
|
5668
5699
|
title: z.string().optional(),
|
|
5669
5700
|
type: actionTypeSchema.optional(),
|
|
@@ -5679,36 +5710,37 @@ var actionSchema = z.object({
|
|
|
5679
5710
|
timeout: z.number().optional(),
|
|
5680
5711
|
skipValidation: z.boolean().optional()
|
|
5681
5712
|
});
|
|
5682
|
-
var navigationBackBehaviorSchema = z.object({
|
|
5683
|
-
title: z.string().optional(),
|
|
5684
|
-
action: actionSchema
|
|
5685
|
-
});
|
|
5686
5713
|
var linkHandlerSchema = z.object({
|
|
5687
5714
|
regexPattern: z.string(),
|
|
5688
5715
|
action: actionSchema
|
|
5689
5716
|
});
|
|
5690
|
-
var
|
|
5691
|
-
|
|
5692
|
-
|
|
5717
|
+
var searchResultActionSchema = z.object({
|
|
5718
|
+
type: z.literal("action"),
|
|
5719
|
+
title: z.string(),
|
|
5720
|
+
description: z.string().optional(),
|
|
5721
|
+
icon: iconSchema.optional(),
|
|
5722
|
+
image: imageLayoutSchema.optional(),
|
|
5723
|
+
value: actionSchema
|
|
5693
5724
|
});
|
|
5694
|
-
var
|
|
5725
|
+
var searchResultSearchSchema = z.object({
|
|
5726
|
+
type: z.literal("search"),
|
|
5727
|
+
title: z.string(),
|
|
5728
|
+
description: z.string().optional(),
|
|
5729
|
+
icon: iconSchema.optional(),
|
|
5730
|
+
image: imageLayoutSchema.optional(),
|
|
5731
|
+
value: searchSearchRequestSchema
|
|
5732
|
+
});
|
|
5733
|
+
var actionResponseBodySchema = z.object({
|
|
5695
5734
|
action: actionSchema
|
|
5696
5735
|
});
|
|
5697
|
-
var
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
delay: z.number().optional(),
|
|
5701
|
-
timeout: z.number().optional(),
|
|
5702
|
-
maxAttempts: z.number(),
|
|
5703
|
-
onError: pollingOnErrorSchema
|
|
5736
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
5737
|
+
title: z.string(),
|
|
5738
|
+
action: actionSchema
|
|
5704
5739
|
});
|
|
5705
|
-
var
|
|
5706
|
-
|
|
5707
|
-
|
|
5708
|
-
|
|
5709
|
-
url: z.string(),
|
|
5710
|
-
size: sizeSchema.optional(),
|
|
5711
|
-
accessibilityDescription: z.string().optional(),
|
|
5740
|
+
var formLayoutSchema = z.object({
|
|
5741
|
+
type: z.literal("form"),
|
|
5742
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
5743
|
+
schemaId: z.string(),
|
|
5712
5744
|
control: z.string().optional(),
|
|
5713
5745
|
margin: sizeSchema.optional()
|
|
5714
5746
|
});
|
|
@@ -5721,42 +5753,41 @@ var decisionLayoutOptionSchema = z.object({
|
|
|
5721
5753
|
image: imageLayoutSchema.optional(),
|
|
5722
5754
|
tag: z.string().optional()
|
|
5723
5755
|
});
|
|
5756
|
+
var behaviorSchema = z.object({
|
|
5757
|
+
action: actionSchema.optional(),
|
|
5758
|
+
link: linkSchema.optional()
|
|
5759
|
+
});
|
|
5724
5760
|
var buttonLayoutSchema = z.object({
|
|
5725
5761
|
type: z.literal("button"),
|
|
5726
5762
|
size: sizeSchema.optional(),
|
|
5727
|
-
title: z.string().optional(),
|
|
5728
|
-
action: actionSchema,
|
|
5729
|
-
context: contextSchema.optional(),
|
|
5730
|
-
disabled: z.boolean().optional(),
|
|
5731
|
-
pinOrder: z.number().optional(),
|
|
5732
|
-
control: z.string().optional(),
|
|
5733
|
-
margin: sizeSchema.optional()
|
|
5734
|
-
});
|
|
5735
|
-
var formLayoutSchema = z.object({
|
|
5736
|
-
type: z.literal("form"),
|
|
5737
|
-
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
5738
|
-
schemaId: z.string(),
|
|
5739
|
-
control: z.string().optional(),
|
|
5740
|
-
margin: sizeSchema.optional()
|
|
5741
|
-
});
|
|
5742
|
-
var reviewLayoutCallToActionSchema = z.object({
|
|
5743
|
-
title: z.string(),
|
|
5744
|
-
action: actionSchema
|
|
5745
|
-
});
|
|
5746
|
-
var infoLayoutSchema = z.object({
|
|
5747
|
-
type: z.literal("info"),
|
|
5748
|
-
markdown: z.string(),
|
|
5749
|
-
align: alignSchema.optional(),
|
|
5763
|
+
title: z.string().optional(),
|
|
5764
|
+
action: actionSchema,
|
|
5765
|
+
context: contextSchema.optional(),
|
|
5766
|
+
disabled: z.boolean().optional(),
|
|
5767
|
+
pinOrder: z.number().optional(),
|
|
5750
5768
|
control: z.string().optional(),
|
|
5751
5769
|
margin: sizeSchema.optional()
|
|
5752
5770
|
});
|
|
5753
|
-
var
|
|
5754
|
-
type: z.literal("
|
|
5771
|
+
var reviewLayoutSchema = z.object({
|
|
5772
|
+
type: z.literal("review"),
|
|
5773
|
+
orientation: z.string().optional(),
|
|
5774
|
+
action: actionSchema.optional(),
|
|
5775
|
+
fields: z.array(reviewLayoutFieldSchema),
|
|
5755
5776
|
title: z.string().optional(),
|
|
5756
|
-
|
|
5777
|
+
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
5757
5778
|
control: z.string().optional(),
|
|
5758
5779
|
margin: sizeSchema.optional()
|
|
5759
5780
|
});
|
|
5781
|
+
var itemCallToActionSchema = z.object({
|
|
5782
|
+
title: z.string(),
|
|
5783
|
+
accessibilityDescription: z.string().optional(),
|
|
5784
|
+
behavior: behaviorSchema
|
|
5785
|
+
});
|
|
5786
|
+
var listLayoutCallToActionSchema = z.object({
|
|
5787
|
+
title: z.string(),
|
|
5788
|
+
accessibilityDescription: z.string().optional(),
|
|
5789
|
+
behavior: behaviorSchema
|
|
5790
|
+
});
|
|
5760
5791
|
var listLayoutItemSchema = z.object({
|
|
5761
5792
|
description: z.string().optional(),
|
|
5762
5793
|
status: listLayoutStatusSchema.optional(),
|
|
@@ -5768,76 +5799,50 @@ var listLayoutItemSchema = z.object({
|
|
|
5768
5799
|
subvalue: z.string().optional(),
|
|
5769
5800
|
tag: z.string().optional()
|
|
5770
5801
|
});
|
|
5771
|
-
var
|
|
5772
|
-
action: actionSchema
|
|
5773
|
-
});
|
|
5774
|
-
var searchResultActionSchema = z.object({
|
|
5775
|
-
type: z.literal("action"),
|
|
5802
|
+
var statusListLayoutItemSchema = z.object({
|
|
5776
5803
|
title: z.string(),
|
|
5777
5804
|
description: z.string().optional(),
|
|
5778
|
-
icon: iconSchema
|
|
5779
|
-
|
|
5780
|
-
|
|
5805
|
+
icon: iconSchema,
|
|
5806
|
+
status: statusListLayoutStatusSchema.optional(),
|
|
5807
|
+
callToAction: itemCallToActionSchema.optional(),
|
|
5808
|
+
tag: z.string().optional()
|
|
5781
5809
|
});
|
|
5782
|
-
var
|
|
5783
|
-
|
|
5784
|
-
title: z.string(),
|
|
5785
|
-
description: z.string().optional(),
|
|
5786
|
-
icon: iconSchema.optional(),
|
|
5787
|
-
image: imageLayoutSchema.optional(),
|
|
5788
|
-
value: searchSearchRequestSchema
|
|
5810
|
+
var pollingOnErrorSchema = z.object({
|
|
5811
|
+
action: actionSchema
|
|
5789
5812
|
});
|
|
5790
|
-
var
|
|
5791
|
-
|
|
5792
|
-
|
|
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
|
|
5793
5825
|
});
|
|
5794
5826
|
var navigationSchema = z.object({
|
|
5795
5827
|
backButton: navigationBackBehaviorSchema.optional(),
|
|
5796
5828
|
back: navigationBackBehaviorSchema.optional(),
|
|
5797
5829
|
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
5798
5830
|
});
|
|
5799
|
-
var
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
defaultIcon: iconSchema.optional(),
|
|
5803
|
-
defaultImage: imageLayoutSchema.optional(),
|
|
5804
|
-
providesTitle: z.boolean().optional(),
|
|
5805
|
-
providesDescription: z.boolean().optional(),
|
|
5806
|
-
providesIcon: z.boolean().optional(),
|
|
5807
|
-
providesImage: z.boolean().optional()
|
|
5808
|
-
});
|
|
5809
|
-
var reviewLayoutSchema = z.object({
|
|
5810
|
-
type: z.literal("review"),
|
|
5811
|
-
orientation: z.string().optional(),
|
|
5812
|
-
action: actionSchema.optional(),
|
|
5813
|
-
fields: z.array(reviewLayoutFieldSchema),
|
|
5814
|
-
title: z.string().optional(),
|
|
5815
|
-
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
5816
|
-
control: z.string().optional(),
|
|
5817
|
-
margin: sizeSchema.optional()
|
|
5831
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
5832
|
+
var searchResponseBodySchema = z.object({
|
|
5833
|
+
results: z.array(searchResultSchema)
|
|
5818
5834
|
});
|
|
5819
5835
|
var alertLayoutCallToActionSchema = z.object({
|
|
5820
5836
|
title: z.string(),
|
|
5821
5837
|
accessibilityDescription: z.string().optional(),
|
|
5822
5838
|
behavior: behaviorSchema
|
|
5823
5839
|
});
|
|
5824
|
-
var
|
|
5825
|
-
|
|
5826
|
-
|
|
5827
|
-
|
|
5828
|
-
});
|
|
5829
|
-
var alertLayoutSchema = z.object({
|
|
5830
|
-
type: z.literal("alert"),
|
|
5831
|
-
markdown: z.string(),
|
|
5832
|
-
context: contextSchema.optional(),
|
|
5840
|
+
var decisionLayoutSchema = z.object({
|
|
5841
|
+
type: z.literal("decision"),
|
|
5842
|
+
title: z.string().optional(),
|
|
5843
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
5833
5844
|
control: z.string().optional(),
|
|
5834
|
-
margin: sizeSchema.optional()
|
|
5835
|
-
callToAction: alertLayoutCallToActionSchema.optional()
|
|
5836
|
-
});
|
|
5837
|
-
var listLayoutCallToActionSchema = z.object({
|
|
5838
|
-
title: z.string(),
|
|
5839
|
-
accessibilityDescription: z.string().optional(),
|
|
5840
|
-
behavior: behaviorSchema
|
|
5845
|
+
margin: sizeSchema.optional()
|
|
5841
5846
|
});
|
|
5842
5847
|
var listLayoutSchema = z.object({
|
|
5843
5848
|
type: z.literal("list"),
|
|
@@ -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
5912
|
promoted: z.boolean().optional(),
|
|
6016
5913
|
refreshFormOnChange: z.boolean().optional(),
|
|
6017
5914
|
refreshUrl: z.string().optional(),
|
|
6018
5915
|
refreshFormUrl: z.string().optional(),
|
|
6019
|
-
format: stringSchemaFormatSchema.optional(),
|
|
6020
|
-
displayFormat: z.string().optional(),
|
|
6021
5916
|
placeholder: z.string().optional(),
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
minimum: z.string().optional(),
|
|
6025
|
-
maximum: z.string().optional(),
|
|
6026
|
-
pattern: z.string().optional(),
|
|
6027
|
-
autocapitalization: autocapitalizationTypeSchema.optional(),
|
|
6028
|
-
autocorrect: z.boolean().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);
|
|
@@ -10391,7 +10391,18 @@ var mapStepToComponent = (_a) => {
|
|
|
10391
10391
|
]);
|
|
10392
10392
|
var _a2, _b2;
|
|
10393
10393
|
const { step, updateComponent } = restProps;
|
|
10394
|
-
const {
|
|
10394
|
+
const {
|
|
10395
|
+
id,
|
|
10396
|
+
control,
|
|
10397
|
+
description,
|
|
10398
|
+
errors,
|
|
10399
|
+
external,
|
|
10400
|
+
key,
|
|
10401
|
+
layout = [],
|
|
10402
|
+
navigation,
|
|
10403
|
+
polling,
|
|
10404
|
+
title
|
|
10405
|
+
} = step;
|
|
10395
10406
|
const backNavigation = (_a2 = navigation == null ? void 0 : navigation.back) != null ? _a2 : navigation == null ? void 0 : navigation.backButton;
|
|
10396
10407
|
const back = backNavigation ? {
|
|
10397
10408
|
title: backNavigation.title,
|
|
@@ -10431,6 +10442,7 @@ var mapStepToComponent = (_a) => {
|
|
|
10431
10442
|
uid,
|
|
10432
10443
|
back,
|
|
10433
10444
|
components,
|
|
10445
|
+
control,
|
|
10434
10446
|
description,
|
|
10435
10447
|
error: errors == null ? void 0 : errors.error,
|
|
10436
10448
|
external,
|
|
@@ -11677,27 +11689,25 @@ var listComponentToProps = (component, rendererMapperProps) => __spreadProps(__s
|
|
|
11677
11689
|
var stepComponentToProps = ({
|
|
11678
11690
|
uid,
|
|
11679
11691
|
back,
|
|
11692
|
+
control,
|
|
11680
11693
|
description,
|
|
11681
11694
|
error,
|
|
11682
11695
|
external,
|
|
11683
11696
|
loadingState,
|
|
11684
|
-
step,
|
|
11685
11697
|
title,
|
|
11686
|
-
components
|
|
11687
|
-
onAction
|
|
11698
|
+
components
|
|
11688
11699
|
}, rendererMapperProps) => {
|
|
11689
11700
|
const childrenProps = components.map((c) => componentToRendererProps(c, rendererMapperProps));
|
|
11690
11701
|
return __spreadValues({
|
|
11691
11702
|
type: "step",
|
|
11692
11703
|
uid,
|
|
11693
11704
|
back,
|
|
11705
|
+
control,
|
|
11694
11706
|
description,
|
|
11695
11707
|
error,
|
|
11696
11708
|
external,
|
|
11697
11709
|
loadingState,
|
|
11698
11710
|
title,
|
|
11699
|
-
step,
|
|
11700
|
-
onAction,
|
|
11701
11711
|
children: childrenProps.map(rendererMapperProps.render),
|
|
11702
11712
|
childrenProps
|
|
11703
11713
|
}, rendererMapperProps);
|