@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.mjs
CHANGED
|
@@ -5386,10 +5386,46 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
5386
5386
|
quotelessJson,
|
|
5387
5387
|
ZodError
|
|
5388
5388
|
});
|
|
5389
|
-
var
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5389
|
+
var linkSchema = z.object({
|
|
5390
|
+
url: z.string()
|
|
5391
|
+
});
|
|
5392
|
+
var navigationStackBehaviorSchema = z.union([
|
|
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()
|
|
5393
5429
|
});
|
|
5394
5430
|
var summaryProviderSchema = z.object({
|
|
5395
5431
|
providesTitle: z.boolean().optional(),
|
|
@@ -5397,6 +5433,128 @@ var summaryProviderSchema = z.object({
|
|
|
5397
5433
|
providesIcon: z.boolean().optional(),
|
|
5398
5434
|
providesImage: z.boolean().optional()
|
|
5399
5435
|
});
|
|
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
|
+
});
|
|
5400
5558
|
var autocompleteTokenSchema = z.union([
|
|
5401
5559
|
z.literal("on"),
|
|
5402
5560
|
z.literal("name"),
|
|
@@ -5462,215 +5620,26 @@ var autocompleteTokenSchema = z.union([
|
|
|
5462
5620
|
z.literal("fax"),
|
|
5463
5621
|
z.literal("pager")
|
|
5464
5622
|
]);
|
|
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
|
-
]);
|
|
5485
5623
|
var autocapitalizationTypeSchema = z.union([
|
|
5486
5624
|
z.literal("none"),
|
|
5487
5625
|
z.literal("characters"),
|
|
5488
5626
|
z.literal("sentences"),
|
|
5489
5627
|
z.literal("words")
|
|
5490
5628
|
]);
|
|
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
|
-
});
|
|
5499
5629
|
var iconNamedSchema = z.object({
|
|
5500
5630
|
name: z.string()
|
|
5501
5631
|
});
|
|
5502
5632
|
var iconTextSchema = z.object({
|
|
5503
5633
|
text: z.string()
|
|
5504
5634
|
});
|
|
5505
|
-
var
|
|
5506
|
-
|
|
5507
|
-
z.literal("
|
|
5508
|
-
z.literal("
|
|
5509
|
-
z.literal("
|
|
5510
|
-
z.literal("
|
|
5511
|
-
z.literal("
|
|
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")
|
|
5635
|
+
var stringSchemaFormatSchema = z.union([
|
|
5636
|
+
z.literal("date"),
|
|
5637
|
+
z.literal("email"),
|
|
5638
|
+
z.literal("numeric"),
|
|
5639
|
+
z.literal("password"),
|
|
5640
|
+
z.literal("phone-number"),
|
|
5641
|
+
z.literal("base64url")
|
|
5657
5642
|
]);
|
|
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
|
-
});
|
|
5674
5643
|
var actionSchema = z.object({
|
|
5675
5644
|
title: z.string().optional(),
|
|
5676
5645
|
type: actionTypeSchema.optional(),
|
|
@@ -5686,37 +5655,36 @@ var actionSchema = z.object({
|
|
|
5686
5655
|
timeout: z.number().optional(),
|
|
5687
5656
|
skipValidation: z.boolean().optional()
|
|
5688
5657
|
});
|
|
5658
|
+
var navigationBackBehaviorSchema = z.object({
|
|
5659
|
+
title: z.string().optional(),
|
|
5660
|
+
action: actionSchema
|
|
5661
|
+
});
|
|
5689
5662
|
var linkHandlerSchema = z.object({
|
|
5690
5663
|
regexPattern: z.string(),
|
|
5691
5664
|
action: actionSchema
|
|
5692
5665
|
});
|
|
5693
|
-
var
|
|
5694
|
-
|
|
5695
|
-
|
|
5696
|
-
description: z.string().optional(),
|
|
5697
|
-
icon: iconSchema.optional(),
|
|
5698
|
-
image: imageLayoutSchema.optional(),
|
|
5699
|
-
value: actionSchema
|
|
5700
|
-
});
|
|
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
|
|
5666
|
+
var stepErrorSchema = z.object({
|
|
5667
|
+
error: z.string().optional(),
|
|
5668
|
+
validation: jsonElementSchema.optional()
|
|
5708
5669
|
});
|
|
5709
|
-
var
|
|
5670
|
+
var pollingOnErrorSchema = z.object({
|
|
5710
5671
|
action: actionSchema
|
|
5711
5672
|
});
|
|
5712
|
-
var
|
|
5713
|
-
|
|
5714
|
-
|
|
5673
|
+
var pollingSchema = z.object({
|
|
5674
|
+
url: z.string(),
|
|
5675
|
+
interval: z.number().optional(),
|
|
5676
|
+
delay: z.number().optional(),
|
|
5677
|
+
timeout: z.number().optional(),
|
|
5678
|
+
maxAttempts: z.number(),
|
|
5679
|
+
onError: pollingOnErrorSchema
|
|
5715
5680
|
});
|
|
5716
|
-
var
|
|
5717
|
-
|
|
5718
|
-
|
|
5719
|
-
|
|
5681
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
5682
|
+
var imageLayoutSchema = z.object({
|
|
5683
|
+
type: z.literal("image"),
|
|
5684
|
+
text: z.string().optional(),
|
|
5685
|
+
url: z.string(),
|
|
5686
|
+
size: sizeSchema.optional(),
|
|
5687
|
+
accessibilityDescription: z.string().optional(),
|
|
5720
5688
|
control: z.string().optional(),
|
|
5721
5689
|
margin: sizeSchema.optional()
|
|
5722
5690
|
});
|
|
@@ -5725,13 +5693,9 @@ var decisionLayoutOptionSchema = z.object({
|
|
|
5725
5693
|
title: z.string(),
|
|
5726
5694
|
description: z.string().optional(),
|
|
5727
5695
|
disabled: z.boolean().optional(),
|
|
5728
|
-
icon: iconSchema.optional(),
|
|
5729
|
-
image: imageLayoutSchema.optional(),
|
|
5730
|
-
tag: z.string().optional()
|
|
5731
|
-
});
|
|
5732
|
-
var behaviorSchema = z.object({
|
|
5733
|
-
action: actionSchema.optional(),
|
|
5734
|
-
link: linkSchema.optional()
|
|
5696
|
+
icon: iconSchema.optional(),
|
|
5697
|
+
image: imageLayoutSchema.optional(),
|
|
5698
|
+
tag: z.string().optional()
|
|
5735
5699
|
});
|
|
5736
5700
|
var buttonLayoutSchema = z.object({
|
|
5737
5701
|
type: z.literal("button"),
|
|
@@ -5744,25 +5708,30 @@ var buttonLayoutSchema = z.object({
|
|
|
5744
5708
|
control: z.string().optional(),
|
|
5745
5709
|
margin: sizeSchema.optional()
|
|
5746
5710
|
});
|
|
5747
|
-
var
|
|
5748
|
-
type: z.literal("
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
fields: z.array(reviewLayoutFieldSchema),
|
|
5752
|
-
title: z.string().optional(),
|
|
5753
|
-
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
5711
|
+
var formLayoutSchema = z.object({
|
|
5712
|
+
type: z.literal("form"),
|
|
5713
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
5714
|
+
schemaId: z.string(),
|
|
5754
5715
|
control: z.string().optional(),
|
|
5755
5716
|
margin: sizeSchema.optional()
|
|
5756
5717
|
});
|
|
5757
|
-
var
|
|
5718
|
+
var reviewLayoutCallToActionSchema = z.object({
|
|
5758
5719
|
title: z.string(),
|
|
5759
|
-
|
|
5760
|
-
behavior: behaviorSchema
|
|
5720
|
+
action: actionSchema
|
|
5761
5721
|
});
|
|
5762
|
-
var
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5722
|
+
var infoLayoutSchema = z.object({
|
|
5723
|
+
type: z.literal("info"),
|
|
5724
|
+
markdown: z.string(),
|
|
5725
|
+
align: alignSchema.optional(),
|
|
5726
|
+
control: z.string().optional(),
|
|
5727
|
+
margin: sizeSchema.optional()
|
|
5728
|
+
});
|
|
5729
|
+
var decisionLayoutSchema = z.object({
|
|
5730
|
+
type: z.literal("decision"),
|
|
5731
|
+
title: z.string().optional(),
|
|
5732
|
+
options: z.array(decisionLayoutOptionSchema),
|
|
5733
|
+
control: z.string().optional(),
|
|
5734
|
+
margin: sizeSchema.optional()
|
|
5766
5735
|
});
|
|
5767
5736
|
var listLayoutItemSchema = z.object({
|
|
5768
5737
|
description: z.string().optional(),
|
|
@@ -5775,50 +5744,76 @@ var listLayoutItemSchema = z.object({
|
|
|
5775
5744
|
subvalue: z.string().optional(),
|
|
5776
5745
|
tag: z.string().optional()
|
|
5777
5746
|
});
|
|
5778
|
-
var
|
|
5747
|
+
var actionResponseBodySchema = z.object({
|
|
5748
|
+
action: actionSchema
|
|
5749
|
+
});
|
|
5750
|
+
var searchResultActionSchema = z.object({
|
|
5751
|
+
type: z.literal("action"),
|
|
5779
5752
|
title: z.string(),
|
|
5780
5753
|
description: z.string().optional(),
|
|
5781
|
-
icon: iconSchema,
|
|
5782
|
-
|
|
5783
|
-
|
|
5784
|
-
tag: z.string().optional()
|
|
5785
|
-
});
|
|
5786
|
-
var pollingOnErrorSchema = z.object({
|
|
5787
|
-
action: actionSchema
|
|
5754
|
+
icon: iconSchema.optional(),
|
|
5755
|
+
image: imageLayoutSchema.optional(),
|
|
5756
|
+
value: actionSchema
|
|
5788
5757
|
});
|
|
5789
|
-
var
|
|
5790
|
-
|
|
5791
|
-
|
|
5758
|
+
var searchResultSearchSchema = z.object({
|
|
5759
|
+
type: z.literal("search"),
|
|
5760
|
+
title: z.string(),
|
|
5761
|
+
description: z.string().optional(),
|
|
5762
|
+
icon: iconSchema.optional(),
|
|
5763
|
+
image: imageLayoutSchema.optional(),
|
|
5764
|
+
value: searchSearchRequestSchema
|
|
5792
5765
|
});
|
|
5793
|
-
var
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
interval: z.number().optional(),
|
|
5797
|
-
delay: z.number().optional(),
|
|
5798
|
-
timeout: z.number().optional(),
|
|
5799
|
-
maxAttempts: z.number(),
|
|
5800
|
-
onError: pollingOnErrorSchema
|
|
5766
|
+
var behaviorSchema = z.object({
|
|
5767
|
+
action: actionSchema.optional(),
|
|
5768
|
+
link: linkSchema.optional()
|
|
5801
5769
|
});
|
|
5802
5770
|
var navigationSchema = z.object({
|
|
5803
5771
|
backButton: navigationBackBehaviorSchema.optional(),
|
|
5804
5772
|
back: navigationBackBehaviorSchema.optional(),
|
|
5805
5773
|
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
5806
5774
|
});
|
|
5807
|
-
var
|
|
5808
|
-
|
|
5809
|
-
|
|
5775
|
+
var summarySummariserSchema = z.object({
|
|
5776
|
+
defaultTitle: z.string().optional(),
|
|
5777
|
+
defaultDescription: z.string().optional(),
|
|
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()
|
|
5810
5794
|
});
|
|
5811
5795
|
var alertLayoutCallToActionSchema = z.object({
|
|
5812
5796
|
title: z.string(),
|
|
5813
5797
|
accessibilityDescription: z.string().optional(),
|
|
5814
5798
|
behavior: behaviorSchema
|
|
5815
5799
|
});
|
|
5816
|
-
var
|
|
5817
|
-
|
|
5818
|
-
|
|
5819
|
-
|
|
5800
|
+
var itemCallToActionSchema = z.object({
|
|
5801
|
+
title: z.string(),
|
|
5802
|
+
accessibilityDescription: z.string().optional(),
|
|
5803
|
+
behavior: behaviorSchema
|
|
5804
|
+
});
|
|
5805
|
+
var alertLayoutSchema = z.object({
|
|
5806
|
+
type: z.literal("alert"),
|
|
5807
|
+
markdown: z.string(),
|
|
5808
|
+
context: contextSchema.optional(),
|
|
5820
5809
|
control: z.string().optional(),
|
|
5821
|
-
margin: sizeSchema.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
|
|
5822
5817
|
});
|
|
5823
5818
|
var listLayoutSchema = z.object({
|
|
5824
5819
|
type: z.literal("list"),
|
|
@@ -5828,20 +5823,9 @@ var listLayoutSchema = z.object({
|
|
|
5828
5823
|
control: z.string().optional(),
|
|
5829
5824
|
margin: sizeSchema.optional()
|
|
5830
5825
|
});
|
|
5831
|
-
var
|
|
5832
|
-
|
|
5833
|
-
|
|
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()
|
|
5826
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
5827
|
+
var searchResponseBodySchema = z.object({
|
|
5828
|
+
results: z.array(searchResultSchema)
|
|
5845
5829
|
});
|
|
5846
5830
|
var constSchemaSchema = z.object({
|
|
5847
5831
|
hidden: z.boolean().optional(),
|
|
@@ -5881,22 +5865,148 @@ var blobSchemaSchema = z.object({
|
|
|
5881
5865
|
source: uploadSourceSchema.optional(),
|
|
5882
5866
|
disabled: z.boolean().optional()
|
|
5883
5867
|
});
|
|
5884
|
-
var
|
|
5868
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
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
5885
|
() => z.object({
|
|
5886
|
-
|
|
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(
|
|
5988
|
+
() => z.object({
|
|
5989
|
+
type: z.literal("string"),
|
|
5887
5990
|
autofillProvider: z.string().optional(),
|
|
5888
5991
|
promoted: z.boolean().optional(),
|
|
5889
5992
|
refreshFormOnChange: z.boolean().optional(),
|
|
5890
5993
|
refreshUrl: z.string().optional(),
|
|
5891
5994
|
refreshFormUrl: z.string().optional(),
|
|
5995
|
+
format: stringSchemaFormatSchema.optional(),
|
|
5996
|
+
displayFormat: z.string().optional(),
|
|
5892
5997
|
placeholder: z.string().optional(),
|
|
5893
|
-
|
|
5894
|
-
|
|
5998
|
+
minLength: z.number().optional(),
|
|
5999
|
+
maxLength: z.number().optional(),
|
|
6000
|
+
minimum: z.string().optional(),
|
|
6001
|
+
maximum: z.string().optional(),
|
|
6002
|
+
pattern: z.string().optional(),
|
|
6003
|
+
autocapitalization: autocapitalizationTypeSchema.optional(),
|
|
6004
|
+
autocorrect: z.boolean().optional(),
|
|
5895
6005
|
$id: z.string().optional(),
|
|
5896
6006
|
title: z.string().optional(),
|
|
5897
6007
|
description: z.string().optional(),
|
|
5898
6008
|
control: z.string().optional(),
|
|
5899
|
-
default: z.
|
|
6009
|
+
default: z.string().optional(),
|
|
5900
6010
|
hidden: z.boolean().optional(),
|
|
5901
6011
|
disabled: z.boolean().optional(),
|
|
5902
6012
|
icon: iconSchema.optional(),
|
|
@@ -5909,67 +6019,61 @@ var numberSchemaSchema = z.lazy(
|
|
|
5909
6019
|
validationAsync: validateAsyncSchema.optional(),
|
|
5910
6020
|
validationMessages: z.record(z.string()).optional(),
|
|
5911
6021
|
alert: alertLayoutSchema.optional(),
|
|
6022
|
+
cameraConfig: jsonElementSchema.optional(),
|
|
6023
|
+
accepts: z.array(z.string()).optional(),
|
|
6024
|
+
maxSize: z.number().optional(),
|
|
6025
|
+
source: uploadSourceSchema.optional(),
|
|
5912
6026
|
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
5913
6027
|
autofillKey: z.string().optional(),
|
|
5914
6028
|
help: helpSchema.optional()
|
|
5915
6029
|
})
|
|
5916
6030
|
);
|
|
5917
|
-
var
|
|
5918
|
-
() => z.object({
|
|
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(
|
|
6031
|
+
var oneOfSchemaSchema = z.lazy(
|
|
5927
6032
|
() => z.object({
|
|
5928
|
-
|
|
6033
|
+
autofillProvider: z.string().optional(),
|
|
5929
6034
|
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(),
|
|
5930
6041
|
$id: z.string().optional(),
|
|
5931
|
-
items: z.array(schemaSchema),
|
|
5932
6042
|
title: z.string().optional(),
|
|
5933
6043
|
description: z.string().optional(),
|
|
5934
6044
|
control: z.string().optional(),
|
|
6045
|
+
default: jsonElementSchema.optional(),
|
|
5935
6046
|
hidden: z.boolean().optional(),
|
|
5936
6047
|
icon: iconSchema.optional(),
|
|
5937
6048
|
image: imageSchema.optional(),
|
|
5938
6049
|
keywords: z.array(z.string()).optional(),
|
|
5939
6050
|
summary: summaryProviderSchema.optional(),
|
|
5940
6051
|
analyticsId: z.string().optional(),
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
6052
|
+
refreshStepOnChange: z.boolean().optional(),
|
|
6053
|
+
alert: alertLayoutSchema.optional(),
|
|
6054
|
+
help: helpSchema.optional(),
|
|
6055
|
+
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6056
|
+
autofillKey: z.string().optional(),
|
|
6057
|
+
validationMessages: z.record(z.string()).optional(),
|
|
6058
|
+
disabled: z.boolean().optional()
|
|
5944
6059
|
})
|
|
5945
6060
|
);
|
|
5946
|
-
var
|
|
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(
|
|
6061
|
+
var numberSchemaSchema = z.lazy(
|
|
5961
6062
|
() => z.object({
|
|
5962
|
-
type: z.literal("
|
|
6063
|
+
type: z.literal("number"),
|
|
5963
6064
|
autofillProvider: z.string().optional(),
|
|
5964
6065
|
promoted: z.boolean().optional(),
|
|
5965
6066
|
refreshFormOnChange: z.boolean().optional(),
|
|
5966
6067
|
refreshUrl: z.string().optional(),
|
|
5967
6068
|
refreshFormUrl: z.string().optional(),
|
|
6069
|
+
placeholder: z.string().optional(),
|
|
6070
|
+
minimum: z.number().optional(),
|
|
6071
|
+
maximum: z.number().optional(),
|
|
5968
6072
|
$id: z.string().optional(),
|
|
5969
6073
|
title: z.string().optional(),
|
|
5970
6074
|
description: z.string().optional(),
|
|
5971
6075
|
control: z.string().optional(),
|
|
5972
|
-
default: z.
|
|
6076
|
+
default: z.number().optional(),
|
|
5973
6077
|
hidden: z.boolean().optional(),
|
|
5974
6078
|
disabled: z.boolean().optional(),
|
|
5975
6079
|
icon: iconSchema.optional(),
|
|
@@ -5980,17 +6084,19 @@ var booleanSchemaSchema = z.lazy(
|
|
|
5980
6084
|
persistAsync: persistAsyncSchema.optional(),
|
|
5981
6085
|
refreshStepOnChange: z.boolean().optional(),
|
|
5982
6086
|
validationAsync: validateAsyncSchema.optional(),
|
|
6087
|
+
validationMessages: z.record(z.string()).optional(),
|
|
5983
6088
|
alert: alertLayoutSchema.optional(),
|
|
6089
|
+
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
5984
6090
|
autofillKey: z.string().optional(),
|
|
5985
6091
|
help: helpSchema.optional()
|
|
5986
6092
|
})
|
|
5987
6093
|
);
|
|
5988
|
-
var
|
|
6094
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
5989
6095
|
() => z.object({
|
|
5990
|
-
|
|
6096
|
+
type: z.literal("array"),
|
|
5991
6097
|
promoted: z.boolean().optional(),
|
|
5992
|
-
allOf: z.array(schemaSchema),
|
|
5993
6098
|
$id: z.string().optional(),
|
|
6099
|
+
items: z.array(schemaSchema),
|
|
5994
6100
|
title: z.string().optional(),
|
|
5995
6101
|
description: z.string().optional(),
|
|
5996
6102
|
control: z.string().optional(),
|
|
@@ -6000,12 +6106,11 @@ var allOfSchemaSchema = z.lazy(
|
|
|
6000
6106
|
keywords: z.array(z.string()).optional(),
|
|
6001
6107
|
summary: summaryProviderSchema.optional(),
|
|
6002
6108
|
analyticsId: z.string().optional(),
|
|
6109
|
+
persistAsync: persistAsyncSchema.optional(),
|
|
6110
|
+
validationAsync: validateAsyncSchema.optional(),
|
|
6003
6111
|
alert: alertLayoutSchema.optional()
|
|
6004
6112
|
})
|
|
6005
6113
|
);
|
|
6006
|
-
var arraySchemaSchema = z.lazy(
|
|
6007
|
-
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
6008
|
-
);
|
|
6009
6114
|
var integerSchemaSchema = z.lazy(
|
|
6010
6115
|
() => z.object({
|
|
6011
6116
|
type: z.literal("integer"),
|
|
@@ -6039,16 +6144,20 @@ var integerSchemaSchema = z.lazy(
|
|
|
6039
6144
|
help: helpSchema.optional()
|
|
6040
6145
|
})
|
|
6041
6146
|
);
|
|
6042
|
-
var
|
|
6147
|
+
var arraySchemaSchema = z.lazy(
|
|
6148
|
+
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
6149
|
+
);
|
|
6150
|
+
var arraySchemaListSchema = z.lazy(
|
|
6043
6151
|
() => z.object({
|
|
6044
|
-
type: z.literal("
|
|
6045
|
-
disabled: z.boolean().optional(),
|
|
6152
|
+
type: z.literal("array"),
|
|
6046
6153
|
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(),
|
|
6051
6154
|
$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(),
|
|
6052
6161
|
title: z.string().optional(),
|
|
6053
6162
|
description: z.string().optional(),
|
|
6054
6163
|
control: z.string().optional(),
|
|
@@ -6056,64 +6165,46 @@ var objectSchemaSchema = z.lazy(
|
|
|
6056
6165
|
icon: iconSchema.optional(),
|
|
6057
6166
|
image: imageSchema.optional(),
|
|
6058
6167
|
keywords: z.array(z.string()).optional(),
|
|
6059
|
-
summary:
|
|
6168
|
+
summary: summarySummariserSchema.optional(),
|
|
6060
6169
|
analyticsId: z.string().optional(),
|
|
6061
|
-
|
|
6170
|
+
persistAsync: persistAsyncSchema.optional(),
|
|
6171
|
+
validationAsync: validateAsyncSchema.optional(),
|
|
6172
|
+
alert: alertLayoutSchema.optional(),
|
|
6173
|
+
validationMessages: z.record(z.string()).optional(),
|
|
6174
|
+
disabled: z.boolean().optional()
|
|
6062
6175
|
})
|
|
6063
6176
|
);
|
|
6064
|
-
var
|
|
6177
|
+
var allOfSchemaSchema = z.lazy(
|
|
6065
6178
|
() => z.object({
|
|
6066
|
-
|
|
6179
|
+
disabled: z.boolean().optional(),
|
|
6067
6180
|
promoted: z.boolean().optional(),
|
|
6068
|
-
|
|
6069
|
-
refreshUrl: z.string().optional(),
|
|
6070
|
-
refreshFormUrl: z.string().optional(),
|
|
6071
|
-
promotion: jsonElementSchema.optional(),
|
|
6072
|
-
oneOf: z.array(schemaSchema),
|
|
6073
|
-
placeholder: z.string().optional(),
|
|
6181
|
+
allOf: z.array(schemaSchema),
|
|
6074
6182
|
$id: z.string().optional(),
|
|
6075
6183
|
title: z.string().optional(),
|
|
6076
6184
|
description: z.string().optional(),
|
|
6077
6185
|
control: z.string().optional(),
|
|
6078
|
-
default: jsonElementSchema.optional(),
|
|
6079
6186
|
hidden: z.boolean().optional(),
|
|
6080
6187
|
icon: iconSchema.optional(),
|
|
6081
6188
|
image: imageSchema.optional(),
|
|
6082
6189
|
keywords: z.array(z.string()).optional(),
|
|
6083
6190
|
summary: summaryProviderSchema.optional(),
|
|
6084
6191
|
analyticsId: z.string().optional(),
|
|
6085
|
-
|
|
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()
|
|
6192
|
+
alert: alertLayoutSchema.optional()
|
|
6092
6193
|
})
|
|
6093
6194
|
);
|
|
6094
|
-
var
|
|
6195
|
+
var booleanSchemaSchema = z.lazy(
|
|
6095
6196
|
() => z.object({
|
|
6096
|
-
type: z.literal("
|
|
6197
|
+
type: z.literal("boolean"),
|
|
6097
6198
|
autofillProvider: z.string().optional(),
|
|
6098
6199
|
promoted: z.boolean().optional(),
|
|
6099
6200
|
refreshFormOnChange: z.boolean().optional(),
|
|
6100
6201
|
refreshUrl: z.string().optional(),
|
|
6101
6202
|
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(),
|
|
6112
6203
|
$id: z.string().optional(),
|
|
6113
6204
|
title: z.string().optional(),
|
|
6114
6205
|
description: z.string().optional(),
|
|
6115
6206
|
control: z.string().optional(),
|
|
6116
|
-
default: z.
|
|
6207
|
+
default: z.boolean().optional(),
|
|
6117
6208
|
hidden: z.boolean().optional(),
|
|
6118
6209
|
disabled: z.boolean().optional(),
|
|
6119
6210
|
icon: iconSchema.optional(),
|
|
@@ -6124,28 +6215,21 @@ var stringSchemaSchema = z.lazy(
|
|
|
6124
6215
|
persistAsync: persistAsyncSchema.optional(),
|
|
6125
6216
|
refreshStepOnChange: z.boolean().optional(),
|
|
6126
6217
|
validationAsync: validateAsyncSchema.optional(),
|
|
6127
|
-
validationMessages: z.record(z.string()).optional(),
|
|
6128
6218
|
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(),
|
|
6134
6219
|
autofillKey: z.string().optional(),
|
|
6135
6220
|
help: helpSchema.optional()
|
|
6136
6221
|
})
|
|
6137
6222
|
);
|
|
6138
|
-
var
|
|
6223
|
+
var objectSchemaSchema = z.lazy(
|
|
6139
6224
|
() => z.object({
|
|
6140
|
-
type: z.literal("
|
|
6225
|
+
type: z.literal("object"),
|
|
6226
|
+
disabled: z.boolean().optional(),
|
|
6141
6227
|
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(),
|
|
6142
6232
|
$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(),
|
|
6149
6233
|
title: z.string().optional(),
|
|
6150
6234
|
description: z.string().optional(),
|
|
6151
6235
|
control: z.string().optional(),
|
|
@@ -6153,93 +6237,9 @@ var arraySchemaListSchema = z.lazy(
|
|
|
6153
6237
|
icon: iconSchema.optional(),
|
|
6154
6238
|
image: imageSchema.optional(),
|
|
6155
6239
|
keywords: z.array(z.string()).optional(),
|
|
6156
|
-
summary:
|
|
6240
|
+
summary: summaryProviderSchema.optional(),
|
|
6157
6241
|
analyticsId: z.string().optional(),
|
|
6158
|
-
|
|
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
|
|
6242
|
+
alert: alertLayoutSchema.optional()
|
|
6243
6243
|
})
|
|
6244
6244
|
);
|
|
6245
6245
|
var validateStep = (step) => validate(step, stepSchema);
|
|
@@ -8507,7 +8507,7 @@ var createUploadInputComponent = (uploadInputProps, updateComponent) => {
|
|
|
8507
8507
|
var stringSchemaToUploadInputComponent = (schemaMapperProps, mapperProps) => {
|
|
8508
8508
|
var _a;
|
|
8509
8509
|
const { schema, localValue, model, required = false } = schemaMapperProps;
|
|
8510
|
-
const { accepts, autocompleteHint, hidden, maxSize, source, validationMessages } = schema;
|
|
8510
|
+
const { accepts, autocompleteHint, cameraConfig, hidden, maxSize, source, validationMessages } = schema;
|
|
8511
8511
|
const { getErrorMessageFunctions, updateComponent, onRefresh, onValueChange } = mapperProps;
|
|
8512
8512
|
const errorMessageFunctions = getErrorMessageFunctions(validationMessages);
|
|
8513
8513
|
const { performPersistAsync } = getPersistAsyncInitialState(schemaMapperProps, mapperProps);
|
|
@@ -8523,6 +8523,7 @@ var stringSchemaToUploadInputComponent = (schemaMapperProps, mapperProps) => {
|
|
|
8523
8523
|
__spreadProps(__spreadValues({}, mapCommonSchemaProps(schemaMapperProps)), {
|
|
8524
8524
|
accepts,
|
|
8525
8525
|
autoComplete: getAutocompleteString(autocompleteHint),
|
|
8526
|
+
cameraConfig,
|
|
8526
8527
|
checks,
|
|
8527
8528
|
format: "base64",
|
|
8528
8529
|
maxSize,
|