@wise/dynamic-flow-client 4.0.0-experimental-b193e54 → 4.0.0-experimental-c80edb2
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 +468 -467
- package/build/main.mjs +468 -467
- package/package.json +4 -4
package/build/main.js
CHANGED
|
@@ -5410,10 +5410,46 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
5410
5410
|
quotelessJson,
|
|
5411
5411
|
ZodError
|
|
5412
5412
|
});
|
|
5413
|
-
var
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5413
|
+
var linkSchema = z.object({
|
|
5414
|
+
url: z.string()
|
|
5415
|
+
});
|
|
5416
|
+
var navigationStackBehaviorSchema = z.union([
|
|
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()
|
|
5417
5453
|
});
|
|
5418
5454
|
var summaryProviderSchema = z.object({
|
|
5419
5455
|
providesTitle: z.boolean().optional(),
|
|
@@ -5421,6 +5457,128 @@ var summaryProviderSchema = z.object({
|
|
|
5421
5457
|
providesIcon: z.boolean().optional(),
|
|
5422
5458
|
providesImage: z.boolean().optional()
|
|
5423
5459
|
});
|
|
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
|
+
});
|
|
5424
5582
|
var autocompleteTokenSchema = z.union([
|
|
5425
5583
|
z.literal("on"),
|
|
5426
5584
|
z.literal("name"),
|
|
@@ -5486,215 +5644,26 @@ var autocompleteTokenSchema = z.union([
|
|
|
5486
5644
|
z.literal("fax"),
|
|
5487
5645
|
z.literal("pager")
|
|
5488
5646
|
]);
|
|
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
|
-
]);
|
|
5509
5647
|
var autocapitalizationTypeSchema = z.union([
|
|
5510
5648
|
z.literal("none"),
|
|
5511
5649
|
z.literal("characters"),
|
|
5512
5650
|
z.literal("sentences"),
|
|
5513
5651
|
z.literal("words")
|
|
5514
5652
|
]);
|
|
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
|
-
});
|
|
5523
5653
|
var iconNamedSchema = z.object({
|
|
5524
5654
|
name: z.string()
|
|
5525
5655
|
});
|
|
5526
5656
|
var iconTextSchema = z.object({
|
|
5527
5657
|
text: z.string()
|
|
5528
5658
|
});
|
|
5529
|
-
var
|
|
5530
|
-
|
|
5531
|
-
z.literal("
|
|
5532
|
-
z.literal("
|
|
5533
|
-
z.literal("
|
|
5534
|
-
z.literal("
|
|
5535
|
-
z.literal("
|
|
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")
|
|
5659
|
+
var stringSchemaFormatSchema = z.union([
|
|
5660
|
+
z.literal("date"),
|
|
5661
|
+
z.literal("email"),
|
|
5662
|
+
z.literal("numeric"),
|
|
5663
|
+
z.literal("password"),
|
|
5664
|
+
z.literal("phone-number"),
|
|
5665
|
+
z.literal("base64url")
|
|
5681
5666
|
]);
|
|
5682
|
-
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
5683
|
-
var validateAsyncSchema = z.object({
|
|
5684
|
-
param: z.string(),
|
|
5685
|
-
method: httpMethodSchema,
|
|
5686
|
-
url: z.string()
|
|
5687
|
-
});
|
|
5688
|
-
var summarySummariserSchema = z.object({
|
|
5689
|
-
defaultTitle: z.string().optional(),
|
|
5690
|
-
defaultDescription: z.string().optional(),
|
|
5691
|
-
defaultIcon: iconSchema.optional(),
|
|
5692
|
-
defaultImage: imageLayoutSchema.optional(),
|
|
5693
|
-
providesTitle: z.boolean().optional(),
|
|
5694
|
-
providesDescription: z.boolean().optional(),
|
|
5695
|
-
providesIcon: z.boolean().optional(),
|
|
5696
|
-
providesImage: z.boolean().optional()
|
|
5697
|
-
});
|
|
5698
5667
|
var actionSchema = z.object({
|
|
5699
5668
|
title: z.string().optional(),
|
|
5700
5669
|
type: actionTypeSchema.optional(),
|
|
@@ -5710,37 +5679,36 @@ var actionSchema = z.object({
|
|
|
5710
5679
|
timeout: z.number().optional(),
|
|
5711
5680
|
skipValidation: z.boolean().optional()
|
|
5712
5681
|
});
|
|
5682
|
+
var navigationBackBehaviorSchema = z.object({
|
|
5683
|
+
title: z.string().optional(),
|
|
5684
|
+
action: actionSchema
|
|
5685
|
+
});
|
|
5713
5686
|
var linkHandlerSchema = z.object({
|
|
5714
5687
|
regexPattern: z.string(),
|
|
5715
5688
|
action: actionSchema
|
|
5716
5689
|
});
|
|
5717
|
-
var
|
|
5718
|
-
|
|
5719
|
-
|
|
5720
|
-
description: z.string().optional(),
|
|
5721
|
-
icon: iconSchema.optional(),
|
|
5722
|
-
image: imageLayoutSchema.optional(),
|
|
5723
|
-
value: actionSchema
|
|
5724
|
-
});
|
|
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
|
|
5690
|
+
var stepErrorSchema = z.object({
|
|
5691
|
+
error: z.string().optional(),
|
|
5692
|
+
validation: jsonElementSchema.optional()
|
|
5732
5693
|
});
|
|
5733
|
-
var
|
|
5694
|
+
var pollingOnErrorSchema = z.object({
|
|
5734
5695
|
action: actionSchema
|
|
5735
5696
|
});
|
|
5736
|
-
var
|
|
5737
|
-
|
|
5738
|
-
|
|
5697
|
+
var pollingSchema = z.object({
|
|
5698
|
+
url: z.string(),
|
|
5699
|
+
interval: z.number().optional(),
|
|
5700
|
+
delay: z.number().optional(),
|
|
5701
|
+
timeout: z.number().optional(),
|
|
5702
|
+
maxAttempts: z.number(),
|
|
5703
|
+
onError: pollingOnErrorSchema
|
|
5739
5704
|
});
|
|
5740
|
-
var
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5705
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
5706
|
+
var imageLayoutSchema = z.object({
|
|
5707
|
+
type: z.literal("image"),
|
|
5708
|
+
text: z.string().optional(),
|
|
5709
|
+
url: z.string(),
|
|
5710
|
+
size: sizeSchema.optional(),
|
|
5711
|
+
accessibilityDescription: z.string().optional(),
|
|
5744
5712
|
control: z.string().optional(),
|
|
5745
5713
|
margin: sizeSchema.optional()
|
|
5746
5714
|
});
|
|
@@ -5749,13 +5717,9 @@ var decisionLayoutOptionSchema = z.object({
|
|
|
5749
5717
|
title: z.string(),
|
|
5750
5718
|
description: z.string().optional(),
|
|
5751
5719
|
disabled: z.boolean().optional(),
|
|
5752
|
-
icon: iconSchema.optional(),
|
|
5753
|
-
image: imageLayoutSchema.optional(),
|
|
5754
|
-
tag: z.string().optional()
|
|
5755
|
-
});
|
|
5756
|
-
var behaviorSchema = z.object({
|
|
5757
|
-
action: actionSchema.optional(),
|
|
5758
|
-
link: linkSchema.optional()
|
|
5720
|
+
icon: iconSchema.optional(),
|
|
5721
|
+
image: imageLayoutSchema.optional(),
|
|
5722
|
+
tag: z.string().optional()
|
|
5759
5723
|
});
|
|
5760
5724
|
var buttonLayoutSchema = z.object({
|
|
5761
5725
|
type: z.literal("button"),
|
|
@@ -5768,25 +5732,30 @@ var buttonLayoutSchema = z.object({
|
|
|
5768
5732
|
control: z.string().optional(),
|
|
5769
5733
|
margin: sizeSchema.optional()
|
|
5770
5734
|
});
|
|
5771
|
-
var
|
|
5772
|
-
type: z.literal("
|
|
5773
|
-
|
|
5774
|
-
|
|
5775
|
-
fields: z.array(reviewLayoutFieldSchema),
|
|
5776
|
-
title: z.string().optional(),
|
|
5777
|
-
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
5735
|
+
var formLayoutSchema = z.object({
|
|
5736
|
+
type: z.literal("form"),
|
|
5737
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
5738
|
+
schemaId: z.string(),
|
|
5778
5739
|
control: z.string().optional(),
|
|
5779
5740
|
margin: sizeSchema.optional()
|
|
5780
5741
|
});
|
|
5781
|
-
var
|
|
5742
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
5782
5743
|
title: z.string(),
|
|
5783
|
-
|
|
5784
|
-
behavior: behaviorSchema
|
|
5744
|
+
action: actionSchema
|
|
5785
5745
|
});
|
|
5786
|
-
var
|
|
5787
|
-
|
|
5788
|
-
|
|
5789
|
-
|
|
5746
|
+
var infoLayoutSchema = z.object({
|
|
5747
|
+
type: z.literal("info"),
|
|
5748
|
+
markdown: z.string(),
|
|
5749
|
+
align: alignSchema.optional(),
|
|
5750
|
+
control: z.string().optional(),
|
|
5751
|
+
margin: sizeSchema.optional()
|
|
5752
|
+
});
|
|
5753
|
+
var decisionLayoutSchema = z.object({
|
|
5754
|
+
type: z.literal("decision"),
|
|
5755
|
+
title: z.string().optional(),
|
|
5756
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
5757
|
+
control: z.string().optional(),
|
|
5758
|
+
margin: sizeSchema.optional()
|
|
5790
5759
|
});
|
|
5791
5760
|
var listLayoutItemSchema = z.object({
|
|
5792
5761
|
description: z.string().optional(),
|
|
@@ -5799,50 +5768,76 @@ var listLayoutItemSchema = z.object({
|
|
|
5799
5768
|
subvalue: z.string().optional(),
|
|
5800
5769
|
tag: z.string().optional()
|
|
5801
5770
|
});
|
|
5802
|
-
var
|
|
5771
|
+
var actionResponseBodySchema = z.object({
|
|
5772
|
+
action: actionSchema
|
|
5773
|
+
});
|
|
5774
|
+
var searchResultActionSchema = z.object({
|
|
5775
|
+
type: z.literal("action"),
|
|
5803
5776
|
title: z.string(),
|
|
5804
5777
|
description: z.string().optional(),
|
|
5805
|
-
icon: iconSchema,
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
tag: z.string().optional()
|
|
5809
|
-
});
|
|
5810
|
-
var pollingOnErrorSchema = z.object({
|
|
5811
|
-
action: actionSchema
|
|
5778
|
+
icon: iconSchema.optional(),
|
|
5779
|
+
image: imageLayoutSchema.optional(),
|
|
5780
|
+
value: actionSchema
|
|
5812
5781
|
});
|
|
5813
|
-
var
|
|
5814
|
-
|
|
5815
|
-
|
|
5782
|
+
var searchResultSearchSchema = z.object({
|
|
5783
|
+
type: z.literal("search"),
|
|
5784
|
+
title: z.string(),
|
|
5785
|
+
description: z.string().optional(),
|
|
5786
|
+
icon: iconSchema.optional(),
|
|
5787
|
+
image: imageLayoutSchema.optional(),
|
|
5788
|
+
value: searchSearchRequestSchema
|
|
5816
5789
|
});
|
|
5817
|
-
var
|
|
5818
|
-
|
|
5819
|
-
|
|
5820
|
-
interval: z.number().optional(),
|
|
5821
|
-
delay: z.number().optional(),
|
|
5822
|
-
timeout: z.number().optional(),
|
|
5823
|
-
maxAttempts: z.number(),
|
|
5824
|
-
onError: pollingOnErrorSchema
|
|
5790
|
+
var behaviorSchema = z.object({
|
|
5791
|
+
action: actionSchema.optional(),
|
|
5792
|
+
link: linkSchema.optional()
|
|
5825
5793
|
});
|
|
5826
5794
|
var navigationSchema = z.object({
|
|
5827
5795
|
backButton: navigationBackBehaviorSchema.optional(),
|
|
5828
5796
|
back: navigationBackBehaviorSchema.optional(),
|
|
5829
5797
|
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
5830
5798
|
});
|
|
5831
|
-
var
|
|
5832
|
-
|
|
5833
|
-
|
|
5799
|
+
var summarySummariserSchema = z.object({
|
|
5800
|
+
defaultTitle: z.string().optional(),
|
|
5801
|
+
defaultDescription: z.string().optional(),
|
|
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()
|
|
5834
5818
|
});
|
|
5835
5819
|
var alertLayoutCallToActionSchema = z.object({
|
|
5836
5820
|
title: z.string(),
|
|
5837
5821
|
accessibilityDescription: z.string().optional(),
|
|
5838
5822
|
behavior: behaviorSchema
|
|
5839
5823
|
});
|
|
5840
|
-
var
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
|
|
5824
|
+
var itemCallToActionSchema = z.object({
|
|
5825
|
+
title: z.string(),
|
|
5826
|
+
accessibilityDescription: z.string().optional(),
|
|
5827
|
+
behavior: behaviorSchema
|
|
5828
|
+
});
|
|
5829
|
+
var alertLayoutSchema = z.object({
|
|
5830
|
+
type: z.literal("alert"),
|
|
5831
|
+
markdown: z.string(),
|
|
5832
|
+
context: contextSchema.optional(),
|
|
5844
5833
|
control: z.string().optional(),
|
|
5845
|
-
margin: sizeSchema.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
|
|
5846
5841
|
});
|
|
5847
5842
|
var listLayoutSchema = z.object({
|
|
5848
5843
|
type: z.literal("list"),
|
|
@@ -5852,20 +5847,9 @@ var listLayoutSchema = z.object({
|
|
|
5852
5847
|
control: z.string().optional(),
|
|
5853
5848
|
margin: sizeSchema.optional()
|
|
5854
5849
|
});
|
|
5855
|
-
var
|
|
5856
|
-
|
|
5857
|
-
|
|
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()
|
|
5850
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
5851
|
+
var searchResponseBodySchema = z.object({
|
|
5852
|
+
results: z.array(searchResultSchema)
|
|
5869
5853
|
});
|
|
5870
5854
|
var constSchemaSchema = z.object({
|
|
5871
5855
|
hidden: z.boolean().optional(),
|
|
@@ -5905,22 +5889,148 @@ var blobSchemaSchema = z.object({
|
|
|
5905
5889
|
source: uploadSourceSchema.optional(),
|
|
5906
5890
|
disabled: z.boolean().optional()
|
|
5907
5891
|
});
|
|
5908
|
-
var
|
|
5892
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
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
5909
|
() => z.object({
|
|
5910
|
-
|
|
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(
|
|
6012
|
+
() => z.object({
|
|
6013
|
+
type: z.literal("string"),
|
|
5911
6014
|
autofillProvider: z.string().optional(),
|
|
5912
6015
|
promoted: z.boolean().optional(),
|
|
5913
6016
|
refreshFormOnChange: z.boolean().optional(),
|
|
5914
6017
|
refreshUrl: z.string().optional(),
|
|
5915
6018
|
refreshFormUrl: z.string().optional(),
|
|
6019
|
+
format: stringSchemaFormatSchema.optional(),
|
|
6020
|
+
displayFormat: z.string().optional(),
|
|
5916
6021
|
placeholder: z.string().optional(),
|
|
5917
|
-
|
|
5918
|
-
|
|
6022
|
+
minLength: z.number().optional(),
|
|
6023
|
+
maxLength: z.number().optional(),
|
|
6024
|
+
minimum: z.string().optional(),
|
|
6025
|
+
maximum: z.string().optional(),
|
|
6026
|
+
pattern: z.string().optional(),
|
|
6027
|
+
autocapitalization: autocapitalizationTypeSchema.optional(),
|
|
6028
|
+
autocorrect: z.boolean().optional(),
|
|
5919
6029
|
$id: z.string().optional(),
|
|
5920
6030
|
title: z.string().optional(),
|
|
5921
6031
|
description: z.string().optional(),
|
|
5922
6032
|
control: z.string().optional(),
|
|
5923
|
-
default: z.
|
|
6033
|
+
default: z.string().optional(),
|
|
5924
6034
|
hidden: z.boolean().optional(),
|
|
5925
6035
|
disabled: z.boolean().optional(),
|
|
5926
6036
|
icon: iconSchema.optional(),
|
|
@@ -5933,67 +6043,61 @@ var numberSchemaSchema = z.lazy(
|
|
|
5933
6043
|
validationAsync: validateAsyncSchema.optional(),
|
|
5934
6044
|
validationMessages: z.record(z.string()).optional(),
|
|
5935
6045
|
alert: alertLayoutSchema.optional(),
|
|
6046
|
+
cameraConfig: jsonElementSchema.optional(),
|
|
6047
|
+
accepts: z.array(z.string()).optional(),
|
|
6048
|
+
maxSize: z.number().optional(),
|
|
6049
|
+
source: uploadSourceSchema.optional(),
|
|
5936
6050
|
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
5937
6051
|
autofillKey: z.string().optional(),
|
|
5938
6052
|
help: helpSchema.optional()
|
|
5939
6053
|
})
|
|
5940
6054
|
);
|
|
5941
|
-
var
|
|
5942
|
-
() => z.object({
|
|
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(
|
|
6055
|
+
var oneOfSchemaSchema = z.lazy(
|
|
5951
6056
|
() => z.object({
|
|
5952
|
-
|
|
6057
|
+
autofillProvider: z.string().optional(),
|
|
5953
6058
|
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(),
|
|
5954
6065
|
$id: z.string().optional(),
|
|
5955
|
-
items: z.array(schemaSchema),
|
|
5956
6066
|
title: z.string().optional(),
|
|
5957
6067
|
description: z.string().optional(),
|
|
5958
6068
|
control: z.string().optional(),
|
|
6069
|
+
default: jsonElementSchema.optional(),
|
|
5959
6070
|
hidden: z.boolean().optional(),
|
|
5960
6071
|
icon: iconSchema.optional(),
|
|
5961
6072
|
image: imageSchema.optional(),
|
|
5962
6073
|
keywords: z.array(z.string()).optional(),
|
|
5963
6074
|
summary: summaryProviderSchema.optional(),
|
|
5964
6075
|
analyticsId: z.string().optional(),
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
6076
|
+
refreshStepOnChange: z.boolean().optional(),
|
|
6077
|
+
alert: alertLayoutSchema.optional(),
|
|
6078
|
+
help: helpSchema.optional(),
|
|
6079
|
+
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6080
|
+
autofillKey: z.string().optional(),
|
|
6081
|
+
validationMessages: z.record(z.string()).optional(),
|
|
6082
|
+
disabled: z.boolean().optional()
|
|
5968
6083
|
})
|
|
5969
6084
|
);
|
|
5970
|
-
var
|
|
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(
|
|
6085
|
+
var numberSchemaSchema = z.lazy(
|
|
5985
6086
|
() => z.object({
|
|
5986
|
-
type: z.literal("
|
|
6087
|
+
type: z.literal("number"),
|
|
5987
6088
|
autofillProvider: z.string().optional(),
|
|
5988
6089
|
promoted: z.boolean().optional(),
|
|
5989
6090
|
refreshFormOnChange: z.boolean().optional(),
|
|
5990
6091
|
refreshUrl: z.string().optional(),
|
|
5991
6092
|
refreshFormUrl: z.string().optional(),
|
|
6093
|
+
placeholder: z.string().optional(),
|
|
6094
|
+
minimum: z.number().optional(),
|
|
6095
|
+
maximum: z.number().optional(),
|
|
5992
6096
|
$id: z.string().optional(),
|
|
5993
6097
|
title: z.string().optional(),
|
|
5994
6098
|
description: z.string().optional(),
|
|
5995
6099
|
control: z.string().optional(),
|
|
5996
|
-
default: z.
|
|
6100
|
+
default: z.number().optional(),
|
|
5997
6101
|
hidden: z.boolean().optional(),
|
|
5998
6102
|
disabled: z.boolean().optional(),
|
|
5999
6103
|
icon: iconSchema.optional(),
|
|
@@ -6004,17 +6108,19 @@ var booleanSchemaSchema = z.lazy(
|
|
|
6004
6108
|
persistAsync: persistAsyncSchema.optional(),
|
|
6005
6109
|
refreshStepOnChange: z.boolean().optional(),
|
|
6006
6110
|
validationAsync: validateAsyncSchema.optional(),
|
|
6111
|
+
validationMessages: z.record(z.string()).optional(),
|
|
6007
6112
|
alert: alertLayoutSchema.optional(),
|
|
6113
|
+
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6008
6114
|
autofillKey: z.string().optional(),
|
|
6009
6115
|
help: helpSchema.optional()
|
|
6010
6116
|
})
|
|
6011
6117
|
);
|
|
6012
|
-
var
|
|
6118
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
6013
6119
|
() => z.object({
|
|
6014
|
-
|
|
6120
|
+
type: z.literal("array"),
|
|
6015
6121
|
promoted: z.boolean().optional(),
|
|
6016
|
-
allOf: z.array(schemaSchema),
|
|
6017
6122
|
$id: z.string().optional(),
|
|
6123
|
+
items: z.array(schemaSchema),
|
|
6018
6124
|
title: z.string().optional(),
|
|
6019
6125
|
description: z.string().optional(),
|
|
6020
6126
|
control: z.string().optional(),
|
|
@@ -6024,12 +6130,11 @@ var allOfSchemaSchema = z.lazy(
|
|
|
6024
6130
|
keywords: z.array(z.string()).optional(),
|
|
6025
6131
|
summary: summaryProviderSchema.optional(),
|
|
6026
6132
|
analyticsId: z.string().optional(),
|
|
6133
|
+
persistAsync: persistAsyncSchema.optional(),
|
|
6134
|
+
validationAsync: validateAsyncSchema.optional(),
|
|
6027
6135
|
alert: alertLayoutSchema.optional()
|
|
6028
6136
|
})
|
|
6029
6137
|
);
|
|
6030
|
-
var arraySchemaSchema = z.lazy(
|
|
6031
|
-
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
6032
|
-
);
|
|
6033
6138
|
var integerSchemaSchema = z.lazy(
|
|
6034
6139
|
() => z.object({
|
|
6035
6140
|
type: z.literal("integer"),
|
|
@@ -6063,16 +6168,20 @@ var integerSchemaSchema = z.lazy(
|
|
|
6063
6168
|
help: helpSchema.optional()
|
|
6064
6169
|
})
|
|
6065
6170
|
);
|
|
6066
|
-
var
|
|
6171
|
+
var arraySchemaSchema = z.lazy(
|
|
6172
|
+
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
6173
|
+
);
|
|
6174
|
+
var arraySchemaListSchema = z.lazy(
|
|
6067
6175
|
() => z.object({
|
|
6068
|
-
type: z.literal("
|
|
6069
|
-
disabled: z.boolean().optional(),
|
|
6176
|
+
type: z.literal("array"),
|
|
6070
6177
|
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(),
|
|
6075
6178
|
$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(),
|
|
6076
6185
|
title: z.string().optional(),
|
|
6077
6186
|
description: z.string().optional(),
|
|
6078
6187
|
control: z.string().optional(),
|
|
@@ -6080,64 +6189,46 @@ var objectSchemaSchema = z.lazy(
|
|
|
6080
6189
|
icon: iconSchema.optional(),
|
|
6081
6190
|
image: imageSchema.optional(),
|
|
6082
6191
|
keywords: z.array(z.string()).optional(),
|
|
6083
|
-
summary:
|
|
6192
|
+
summary: summarySummariserSchema.optional(),
|
|
6084
6193
|
analyticsId: z.string().optional(),
|
|
6085
|
-
|
|
6194
|
+
persistAsync: persistAsyncSchema.optional(),
|
|
6195
|
+
validationAsync: validateAsyncSchema.optional(),
|
|
6196
|
+
alert: alertLayoutSchema.optional(),
|
|
6197
|
+
validationMessages: z.record(z.string()).optional(),
|
|
6198
|
+
disabled: z.boolean().optional()
|
|
6086
6199
|
})
|
|
6087
6200
|
);
|
|
6088
|
-
var
|
|
6201
|
+
var allOfSchemaSchema = z.lazy(
|
|
6089
6202
|
() => z.object({
|
|
6090
|
-
|
|
6203
|
+
disabled: z.boolean().optional(),
|
|
6091
6204
|
promoted: z.boolean().optional(),
|
|
6092
|
-
|
|
6093
|
-
refreshUrl: z.string().optional(),
|
|
6094
|
-
refreshFormUrl: z.string().optional(),
|
|
6095
|
-
promotion: jsonElementSchema.optional(),
|
|
6096
|
-
oneOf: z.array(schemaSchema),
|
|
6097
|
-
placeholder: z.string().optional(),
|
|
6205
|
+
allOf: z.array(schemaSchema),
|
|
6098
6206
|
$id: z.string().optional(),
|
|
6099
6207
|
title: z.string().optional(),
|
|
6100
6208
|
description: z.string().optional(),
|
|
6101
6209
|
control: z.string().optional(),
|
|
6102
|
-
default: jsonElementSchema.optional(),
|
|
6103
6210
|
hidden: z.boolean().optional(),
|
|
6104
6211
|
icon: iconSchema.optional(),
|
|
6105
6212
|
image: imageSchema.optional(),
|
|
6106
6213
|
keywords: z.array(z.string()).optional(),
|
|
6107
6214
|
summary: summaryProviderSchema.optional(),
|
|
6108
6215
|
analyticsId: z.string().optional(),
|
|
6109
|
-
|
|
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()
|
|
6216
|
+
alert: alertLayoutSchema.optional()
|
|
6116
6217
|
})
|
|
6117
6218
|
);
|
|
6118
|
-
var
|
|
6219
|
+
var booleanSchemaSchema = z.lazy(
|
|
6119
6220
|
() => z.object({
|
|
6120
|
-
type: z.literal("
|
|
6221
|
+
type: z.literal("boolean"),
|
|
6121
6222
|
autofillProvider: z.string().optional(),
|
|
6122
6223
|
promoted: z.boolean().optional(),
|
|
6123
6224
|
refreshFormOnChange: z.boolean().optional(),
|
|
6124
6225
|
refreshUrl: z.string().optional(),
|
|
6125
6226
|
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(),
|
|
6136
6227
|
$id: z.string().optional(),
|
|
6137
6228
|
title: z.string().optional(),
|
|
6138
6229
|
description: z.string().optional(),
|
|
6139
6230
|
control: z.string().optional(),
|
|
6140
|
-
default: z.
|
|
6231
|
+
default: z.boolean().optional(),
|
|
6141
6232
|
hidden: z.boolean().optional(),
|
|
6142
6233
|
disabled: z.boolean().optional(),
|
|
6143
6234
|
icon: iconSchema.optional(),
|
|
@@ -6148,28 +6239,21 @@ var stringSchemaSchema = z.lazy(
|
|
|
6148
6239
|
persistAsync: persistAsyncSchema.optional(),
|
|
6149
6240
|
refreshStepOnChange: z.boolean().optional(),
|
|
6150
6241
|
validationAsync: validateAsyncSchema.optional(),
|
|
6151
|
-
validationMessages: z.record(z.string()).optional(),
|
|
6152
6242
|
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(),
|
|
6158
6243
|
autofillKey: z.string().optional(),
|
|
6159
6244
|
help: helpSchema.optional()
|
|
6160
6245
|
})
|
|
6161
6246
|
);
|
|
6162
|
-
var
|
|
6247
|
+
var objectSchemaSchema = z.lazy(
|
|
6163
6248
|
() => z.object({
|
|
6164
|
-
type: z.literal("
|
|
6249
|
+
type: z.literal("object"),
|
|
6250
|
+
disabled: z.boolean().optional(),
|
|
6165
6251
|
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(),
|
|
6166
6256
|
$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(),
|
|
6173
6257
|
title: z.string().optional(),
|
|
6174
6258
|
description: z.string().optional(),
|
|
6175
6259
|
control: z.string().optional(),
|
|
@@ -6177,93 +6261,9 @@ var arraySchemaListSchema = z.lazy(
|
|
|
6177
6261
|
icon: iconSchema.optional(),
|
|
6178
6262
|
image: imageSchema.optional(),
|
|
6179
6263
|
keywords: z.array(z.string()).optional(),
|
|
6180
|
-
summary:
|
|
6264
|
+
summary: summaryProviderSchema.optional(),
|
|
6181
6265
|
analyticsId: z.string().optional(),
|
|
6182
|
-
|
|
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
|
|
6266
|
+
alert: alertLayoutSchema.optional()
|
|
6267
6267
|
})
|
|
6268
6268
|
);
|
|
6269
6269
|
var validateStep = (step) => validate(step, stepSchema);
|
|
@@ -8531,7 +8531,7 @@ var createUploadInputComponent = (uploadInputProps, updateComponent) => {
|
|
|
8531
8531
|
var stringSchemaToUploadInputComponent = (schemaMapperProps, mapperProps) => {
|
|
8532
8532
|
var _a;
|
|
8533
8533
|
const { schema, localValue, model, required = false } = schemaMapperProps;
|
|
8534
|
-
const { accepts, autocompleteHint, hidden, maxSize, source, validationMessages } = schema;
|
|
8534
|
+
const { accepts, autocompleteHint, cameraConfig, hidden, maxSize, source, validationMessages } = schema;
|
|
8535
8535
|
const { getErrorMessageFunctions, updateComponent, onRefresh, onValueChange } = mapperProps;
|
|
8536
8536
|
const errorMessageFunctions = getErrorMessageFunctions(validationMessages);
|
|
8537
8537
|
const { performPersistAsync } = getPersistAsyncInitialState(schemaMapperProps, mapperProps);
|
|
@@ -8547,6 +8547,7 @@ var stringSchemaToUploadInputComponent = (schemaMapperProps, mapperProps) => {
|
|
|
8547
8547
|
__spreadProps(__spreadValues({}, mapCommonSchemaProps(schemaMapperProps)), {
|
|
8548
8548
|
accepts,
|
|
8549
8549
|
autoComplete: getAutocompleteString(autocompleteHint),
|
|
8550
|
+
cameraConfig,
|
|
8550
8551
|
checks,
|
|
8551
8552
|
format: "base64",
|
|
8552
8553
|
maxSize,
|