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