@wise/dynamic-flow-client 4.0.2 → 4.1.0-experimental-6bb6f02
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/main.mjs
CHANGED
|
@@ -5404,11 +5404,37 @@ var z = /* @__PURE__ */ Object.freeze({
|
|
|
5404
5404
|
quotelessJson,
|
|
5405
5405
|
ZodError
|
|
5406
5406
|
});
|
|
5407
|
-
var
|
|
5408
|
-
|
|
5409
|
-
url: z.string()
|
|
5410
|
-
|
|
5411
|
-
|
|
5407
|
+
var linkBehaviorSchema = z.object({
|
|
5408
|
+
type: z.literal("link"),
|
|
5409
|
+
url: z.string()
|
|
5410
|
+
});
|
|
5411
|
+
var navigationStackBehaviorSchema = z.union([
|
|
5412
|
+
z.literal("default"),
|
|
5413
|
+
z.literal("remove-previous"),
|
|
5414
|
+
z.literal("remove-all"),
|
|
5415
|
+
z.literal("replace-current")
|
|
5416
|
+
]);
|
|
5417
|
+
var jsonElementSchema = z.lazy(
|
|
5418
|
+
() => z.union([
|
|
5419
|
+
z.string(),
|
|
5420
|
+
z.number(),
|
|
5421
|
+
z.boolean(),
|
|
5422
|
+
z.record(jsonElementSchema),
|
|
5423
|
+
z.array(jsonElementSchema)
|
|
5424
|
+
]).nullable()
|
|
5425
|
+
);
|
|
5426
|
+
var helpSchema = z.object({
|
|
5427
|
+
markdown: z.string()
|
|
5428
|
+
});
|
|
5429
|
+
var actionTypeSchema = z.union([
|
|
5430
|
+
z.literal("primary"),
|
|
5431
|
+
z.literal("secondary"),
|
|
5432
|
+
z.literal("link"),
|
|
5433
|
+
z.literal("positive"),
|
|
5434
|
+
z.literal("negative")
|
|
5435
|
+
]);
|
|
5436
|
+
var linkSchema = z.object({
|
|
5437
|
+
url: z.string()
|
|
5412
5438
|
});
|
|
5413
5439
|
var httpMethodSchema = z.union([
|
|
5414
5440
|
z.literal("GET"),
|
|
@@ -5417,8 +5443,54 @@ var httpMethodSchema = z.union([
|
|
|
5417
5443
|
z.literal("PATCH"),
|
|
5418
5444
|
z.literal("DELETE")
|
|
5419
5445
|
]);
|
|
5420
|
-
var
|
|
5421
|
-
|
|
5446
|
+
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
5447
|
+
var validateAsyncSchema = z.object({
|
|
5448
|
+
param: z.string(),
|
|
5449
|
+
method: httpMethodSchema,
|
|
5450
|
+
url: z.string()
|
|
5451
|
+
});
|
|
5452
|
+
var summaryProviderSchema = z.object({
|
|
5453
|
+
providesTitle: z.boolean().optional(),
|
|
5454
|
+
providesDescription: z.boolean().optional(),
|
|
5455
|
+
providesIcon: z.boolean().optional(),
|
|
5456
|
+
providesImage: z.boolean().optional()
|
|
5457
|
+
});
|
|
5458
|
+
var imageSchema = z.object({
|
|
5459
|
+
text: z.string().optional(),
|
|
5460
|
+
url: z.string().optional(),
|
|
5461
|
+
uri: z.string().optional(),
|
|
5462
|
+
accessibilityDescription: z.string().optional()
|
|
5463
|
+
});
|
|
5464
|
+
var externalSchema = z.object({
|
|
5465
|
+
url: z.string()
|
|
5466
|
+
});
|
|
5467
|
+
var columnsLayoutBiasSchema = z.union([
|
|
5468
|
+
z.literal("none"),
|
|
5469
|
+
z.literal("left"),
|
|
5470
|
+
z.literal("right")
|
|
5471
|
+
]);
|
|
5472
|
+
var sizeSchema = z.union([
|
|
5473
|
+
z.literal("xs"),
|
|
5474
|
+
z.literal("sm"),
|
|
5475
|
+
z.literal("md"),
|
|
5476
|
+
z.literal("lg"),
|
|
5477
|
+
z.literal("xl")
|
|
5478
|
+
]);
|
|
5479
|
+
var dividerLayoutSchema = z.object({
|
|
5480
|
+
type: z.literal("divider"),
|
|
5481
|
+
control: z.string().optional(),
|
|
5482
|
+
margin: sizeSchema.optional()
|
|
5483
|
+
});
|
|
5484
|
+
var statusListLayoutStatusSchema = z.union([
|
|
5485
|
+
z.literal("not-done"),
|
|
5486
|
+
z.literal("pending"),
|
|
5487
|
+
z.literal("done")
|
|
5488
|
+
]);
|
|
5489
|
+
var loadingIndicatorLayoutSchema = z.object({
|
|
5490
|
+
type: z.literal("loading-indicator"),
|
|
5491
|
+
size: sizeSchema.optional(),
|
|
5492
|
+
control: z.string().optional(),
|
|
5493
|
+
margin: sizeSchema.optional()
|
|
5422
5494
|
});
|
|
5423
5495
|
var contextSchema = z.union([
|
|
5424
5496
|
z.literal("positive"),
|
|
@@ -5430,24 +5502,92 @@ var contextSchema = z.union([
|
|
|
5430
5502
|
z.literal("info"),
|
|
5431
5503
|
z.literal("primary")
|
|
5432
5504
|
]);
|
|
5433
|
-
var
|
|
5434
|
-
text: z.string()
|
|
5505
|
+
var instructionsLayoutItemSchema = z.object({
|
|
5506
|
+
text: z.string(),
|
|
5507
|
+
context: contextSchema,
|
|
5508
|
+
tag: z.string().optional()
|
|
5509
|
+
});
|
|
5510
|
+
var formLayoutSchemaReferenceSchema = z.object({
|
|
5511
|
+
$ref: z.string()
|
|
5512
|
+
});
|
|
5513
|
+
var modalLayoutTriggerSchema = z.object({
|
|
5514
|
+
title: z.string()
|
|
5515
|
+
});
|
|
5516
|
+
var instructionsLayoutSchema = z.object({
|
|
5517
|
+
type: z.literal("instructions"),
|
|
5518
|
+
title: z.string().optional(),
|
|
5519
|
+
items: z.array(instructionsLayoutItemSchema),
|
|
5520
|
+
control: z.string().optional(),
|
|
5521
|
+
margin: sizeSchema.optional()
|
|
5522
|
+
});
|
|
5523
|
+
var reviewLayoutFieldSchema = z.object({
|
|
5524
|
+
label: z.string(),
|
|
5525
|
+
value: z.string(),
|
|
5526
|
+
rawValue: z.string().optional(),
|
|
5527
|
+
help: helpSchema.optional(),
|
|
5528
|
+
tag: z.string().optional()
|
|
5435
5529
|
});
|
|
5436
|
-
var sizeSchema = z.union([
|
|
5437
|
-
z.literal("xs"),
|
|
5438
|
-
z.literal("sm"),
|
|
5439
|
-
z.literal("md"),
|
|
5440
|
-
z.literal("lg"),
|
|
5441
|
-
z.literal("xl")
|
|
5442
|
-
]);
|
|
5443
|
-
var autocapitalizationTypeSchema = z.union([
|
|
5444
|
-
z.literal("none"),
|
|
5445
|
-
z.literal("characters"),
|
|
5446
|
-
z.literal("sentences"),
|
|
5447
|
-
z.literal("words")
|
|
5448
|
-
]);
|
|
5449
5530
|
var alignSchema = z.union([z.literal("left"), z.literal("center"), z.literal("right")]);
|
|
5450
|
-
var
|
|
5531
|
+
var searchLayoutSchema = z.object({
|
|
5532
|
+
type: z.literal("search"),
|
|
5533
|
+
title: z.string(),
|
|
5534
|
+
method: httpMethodSchema,
|
|
5535
|
+
url: z.string(),
|
|
5536
|
+
param: z.string(),
|
|
5537
|
+
emptyMessage: z.string().optional(),
|
|
5538
|
+
control: z.string().optional(),
|
|
5539
|
+
margin: sizeSchema.optional()
|
|
5540
|
+
});
|
|
5541
|
+
var headingLayoutSchema = z.object({
|
|
5542
|
+
type: z.literal("heading"),
|
|
5543
|
+
text: z.string(),
|
|
5544
|
+
size: sizeSchema.optional(),
|
|
5545
|
+
align: alignSchema.optional(),
|
|
5546
|
+
control: z.string().optional(),
|
|
5547
|
+
margin: sizeSchema.optional()
|
|
5548
|
+
});
|
|
5549
|
+
var imageLayoutSchema = z.object({
|
|
5550
|
+
type: z.literal("image"),
|
|
5551
|
+
text: z.string().optional(),
|
|
5552
|
+
url: z.string().optional(),
|
|
5553
|
+
accessibilityDescription: z.string().optional(),
|
|
5554
|
+
content: imageSchema.optional(),
|
|
5555
|
+
size: sizeSchema.optional(),
|
|
5556
|
+
control: z.string().optional(),
|
|
5557
|
+
margin: sizeSchema.optional()
|
|
5558
|
+
});
|
|
5559
|
+
var markdownLayoutSchema = z.object({
|
|
5560
|
+
type: z.literal("markdown"),
|
|
5561
|
+
content: z.string(),
|
|
5562
|
+
align: alignSchema.optional(),
|
|
5563
|
+
control: z.string().optional(),
|
|
5564
|
+
margin: sizeSchema.optional()
|
|
5565
|
+
});
|
|
5566
|
+
var paragraphLayoutSchema = z.object({
|
|
5567
|
+
type: z.literal("paragraph"),
|
|
5568
|
+
text: z.string(),
|
|
5569
|
+
align: alignSchema.optional(),
|
|
5570
|
+
control: z.string().optional(),
|
|
5571
|
+
margin: sizeSchema.optional()
|
|
5572
|
+
});
|
|
5573
|
+
var listLayoutStatusSchema = z.union([
|
|
5574
|
+
z.literal("warning"),
|
|
5575
|
+
z.literal("neutral"),
|
|
5576
|
+
z.literal("positive")
|
|
5577
|
+
]);
|
|
5578
|
+
var errorResponseBodySchema = z.object({
|
|
5579
|
+
refreshFormUrl: z.string().optional(),
|
|
5580
|
+
analytics: z.record(z.string()).optional(),
|
|
5581
|
+
error: z.string().optional(),
|
|
5582
|
+
validation: jsonElementSchema.optional(),
|
|
5583
|
+
refreshUrl: z.string().optional()
|
|
5584
|
+
});
|
|
5585
|
+
var searchSearchRequestSchema = z.object({
|
|
5586
|
+
url: z.string(),
|
|
5587
|
+
method: httpMethodSchema,
|
|
5588
|
+
param: z.string(),
|
|
5589
|
+
query: z.string()
|
|
5590
|
+
});
|
|
5451
5591
|
var autocompleteTokenSchema = z.union([
|
|
5452
5592
|
z.literal("on"),
|
|
5453
5593
|
z.literal("name"),
|
|
@@ -5503,184 +5643,39 @@ var autocompleteTokenSchema = z.union([
|
|
|
5503
5643
|
z.literal("phone-local-suffix"),
|
|
5504
5644
|
z.literal("phone-extension"),
|
|
5505
5645
|
z.literal("url"),
|
|
5506
|
-
z.literal("photo"),
|
|
5507
|
-
z.literal("impp"),
|
|
5508
|
-
z.literal("shipping"),
|
|
5509
|
-
z.literal("billing"),
|
|
5510
|
-
z.literal("home"),
|
|
5511
|
-
z.literal("work"),
|
|
5512
|
-
z.literal("mobile"),
|
|
5513
|
-
z.literal("fax"),
|
|
5514
|
-
z.literal("pager")
|
|
5515
|
-
]);
|
|
5516
|
-
var loadingIndicatorLayoutSchema = z.object({
|
|
5517
|
-
type: z.literal("loading-indicator"),
|
|
5518
|
-
size: sizeSchema.optional(),
|
|
5519
|
-
control: z.string().optional(),
|
|
5520
|
-
margin: sizeSchema.optional()
|
|
5521
|
-
});
|
|
5522
|
-
var paragraphLayoutSchema = z.object({
|
|
5523
|
-
type: z.literal("paragraph"),
|
|
5524
|
-
text: z.string(),
|
|
5525
|
-
align: alignSchema.optional(),
|
|
5526
|
-
control: z.string().optional(),
|
|
5527
|
-
margin: sizeSchema.optional()
|
|
5528
|
-
});
|
|
5529
|
-
var dividerLayoutSchema = z.object({
|
|
5530
|
-
type: z.literal("divider"),
|
|
5531
|
-
control: z.string().optional(),
|
|
5532
|
-
margin: sizeSchema.optional()
|
|
5533
|
-
});
|
|
5534
|
-
var listLayoutStatusSchema = z.union([
|
|
5535
|
-
z.literal("warning"),
|
|
5536
|
-
z.literal("neutral"),
|
|
5537
|
-
z.literal("positive")
|
|
5538
|
-
]);
|
|
5539
|
-
var formLayoutSchemaReferenceSchema = z.object({
|
|
5540
|
-
$ref: z.string()
|
|
5541
|
-
});
|
|
5542
|
-
var imageLayoutSchema = z.object({
|
|
5543
|
-
type: z.literal("image"),
|
|
5544
|
-
text: z.string().optional(),
|
|
5545
|
-
url: z.string().optional(),
|
|
5546
|
-
accessibilityDescription: z.string().optional(),
|
|
5547
|
-
content: imageSchema.optional(),
|
|
5548
|
-
size: sizeSchema.optional(),
|
|
5549
|
-
control: z.string().optional(),
|
|
5550
|
-
margin: sizeSchema.optional()
|
|
5551
|
-
});
|
|
5552
|
-
var statusListLayoutStatusSchema = z.union([
|
|
5553
|
-
z.literal("not-done"),
|
|
5554
|
-
z.literal("pending"),
|
|
5555
|
-
z.literal("done")
|
|
5556
|
-
]);
|
|
5557
|
-
var instructionsLayoutItemSchema = z.object({
|
|
5558
|
-
text: z.string(),
|
|
5559
|
-
context: contextSchema,
|
|
5560
|
-
tag: z.string().optional()
|
|
5561
|
-
});
|
|
5562
|
-
var modalLayoutTriggerSchema = z.object({
|
|
5563
|
-
title: z.string()
|
|
5564
|
-
});
|
|
5565
|
-
var searchLayoutSchema = z.object({
|
|
5566
|
-
type: z.literal("search"),
|
|
5567
|
-
title: z.string(),
|
|
5568
|
-
method: httpMethodSchema,
|
|
5569
|
-
url: z.string(),
|
|
5570
|
-
param: z.string(),
|
|
5571
|
-
emptyMessage: z.string().optional(),
|
|
5572
|
-
control: z.string().optional(),
|
|
5573
|
-
margin: sizeSchema.optional()
|
|
5574
|
-
});
|
|
5575
|
-
var infoLayoutSchema = z.object({
|
|
5576
|
-
type: z.literal("info"),
|
|
5577
|
-
markdown: z.string(),
|
|
5578
|
-
align: alignSchema.optional(),
|
|
5579
|
-
control: z.string().optional(),
|
|
5580
|
-
margin: sizeSchema.optional()
|
|
5581
|
-
});
|
|
5582
|
-
var formLayoutSchema = z.object({
|
|
5583
|
-
type: z.literal("form"),
|
|
5584
|
-
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
5585
|
-
schemaId: z.string(),
|
|
5586
|
-
control: z.string().optional(),
|
|
5587
|
-
margin: sizeSchema.optional()
|
|
5588
|
-
});
|
|
5589
|
-
var headingLayoutSchema = z.object({
|
|
5590
|
-
type: z.literal("heading"),
|
|
5591
|
-
text: z.string(),
|
|
5592
|
-
size: sizeSchema.optional(),
|
|
5593
|
-
align: alignSchema.optional(),
|
|
5594
|
-
control: z.string().optional(),
|
|
5595
|
-
margin: sizeSchema.optional()
|
|
5596
|
-
});
|
|
5597
|
-
var markdownLayoutSchema = z.object({
|
|
5598
|
-
type: z.literal("markdown"),
|
|
5599
|
-
content: z.string(),
|
|
5600
|
-
align: alignSchema.optional(),
|
|
5601
|
-
control: z.string().optional(),
|
|
5602
|
-
margin: sizeSchema.optional()
|
|
5603
|
-
});
|
|
5604
|
-
var columnsLayoutBiasSchema = z.union([
|
|
5605
|
-
z.literal("none"),
|
|
5606
|
-
z.literal("left"),
|
|
5607
|
-
z.literal("right")
|
|
5608
|
-
]);
|
|
5609
|
-
var helpSchema = z.object({
|
|
5610
|
-
markdown: z.string()
|
|
5611
|
-
});
|
|
5612
|
-
var searchSearchRequestSchema = z.object({
|
|
5613
|
-
url: z.string(),
|
|
5614
|
-
method: httpMethodSchema,
|
|
5615
|
-
param: z.string(),
|
|
5616
|
-
query: z.string()
|
|
5617
|
-
});
|
|
5618
|
-
var jsonElementSchema = z.lazy(
|
|
5619
|
-
() => z.union([
|
|
5620
|
-
z.string(),
|
|
5621
|
-
z.number(),
|
|
5622
|
-
z.boolean(),
|
|
5623
|
-
z.record(jsonElementSchema),
|
|
5624
|
-
z.array(jsonElementSchema)
|
|
5625
|
-
]).nullable()
|
|
5626
|
-
);
|
|
5627
|
-
var externalSchema = z.object({
|
|
5628
|
-
url: z.string()
|
|
5629
|
-
});
|
|
5630
|
-
var stepErrorSchema = z.object({
|
|
5631
|
-
error: z.string().optional(),
|
|
5632
|
-
validation: jsonElementSchema.optional()
|
|
5633
|
-
});
|
|
5634
|
-
var stringSchemaFormatSchema = z.union([
|
|
5635
|
-
z.literal("date"),
|
|
5636
|
-
z.literal("email"),
|
|
5637
|
-
z.literal("numeric"),
|
|
5638
|
-
z.literal("password"),
|
|
5639
|
-
z.literal("phone-number"),
|
|
5640
|
-
z.literal("base64url")
|
|
5641
|
-
]);
|
|
5642
|
-
var summarySummariserSchema = z.object({
|
|
5643
|
-
defaultTitle: z.string().optional(),
|
|
5644
|
-
defaultDescription: z.string().optional(),
|
|
5645
|
-
defaultIcon: iconSchema.optional(),
|
|
5646
|
-
defaultImage: imageSchema.optional(),
|
|
5647
|
-
providesTitle: z.boolean().optional(),
|
|
5648
|
-
providesDescription: z.boolean().optional(),
|
|
5649
|
-
providesIcon: z.boolean().optional(),
|
|
5650
|
-
providesImage: z.boolean().optional()
|
|
5651
|
-
});
|
|
5652
|
-
var validateAsyncSchema = z.object({
|
|
5653
|
-
param: z.string(),
|
|
5654
|
-
method: httpMethodSchema,
|
|
5655
|
-
url: z.string()
|
|
5656
|
-
});
|
|
5657
|
-
var summaryProviderSchema = z.object({
|
|
5658
|
-
providesTitle: z.boolean().optional(),
|
|
5659
|
-
providesDescription: z.boolean().optional(),
|
|
5660
|
-
providesIcon: z.boolean().optional(),
|
|
5661
|
-
providesImage: z.boolean().optional()
|
|
5662
|
-
});
|
|
5663
|
-
var uploadSourceSchema = z.union([z.literal("camera"), z.literal("file")]);
|
|
5664
|
-
var navigationStackBehaviorSchema = z.union([
|
|
5665
|
-
z.literal("default"),
|
|
5666
|
-
z.literal("remove-previous"),
|
|
5667
|
-
z.literal("remove-all"),
|
|
5668
|
-
z.literal("replace-current")
|
|
5646
|
+
z.literal("photo"),
|
|
5647
|
+
z.literal("impp"),
|
|
5648
|
+
z.literal("shipping"),
|
|
5649
|
+
z.literal("billing"),
|
|
5650
|
+
z.literal("home"),
|
|
5651
|
+
z.literal("work"),
|
|
5652
|
+
z.literal("mobile"),
|
|
5653
|
+
z.literal("fax"),
|
|
5654
|
+
z.literal("pager")
|
|
5669
5655
|
]);
|
|
5670
|
-
var
|
|
5671
|
-
z.literal("
|
|
5672
|
-
z.literal("
|
|
5673
|
-
z.literal("
|
|
5674
|
-
z.literal("
|
|
5675
|
-
z.literal("negative")
|
|
5656
|
+
var autocapitalizationTypeSchema = z.union([
|
|
5657
|
+
z.literal("none"),
|
|
5658
|
+
z.literal("characters"),
|
|
5659
|
+
z.literal("sentences"),
|
|
5660
|
+
z.literal("words")
|
|
5676
5661
|
]);
|
|
5677
|
-
var
|
|
5678
|
-
|
|
5679
|
-
type: z.literal("link"),
|
|
5680
|
-
url: z.string()
|
|
5662
|
+
var iconNamedSchema = z.object({
|
|
5663
|
+
name: z.string()
|
|
5681
5664
|
});
|
|
5682
|
-
var
|
|
5683
|
-
|
|
5665
|
+
var iconTextSchema = z.object({
|
|
5666
|
+
text: z.string()
|
|
5667
|
+
});
|
|
5668
|
+
var stringSchemaFormatSchema = z.union([
|
|
5669
|
+
z.literal("date"),
|
|
5670
|
+
z.literal("email"),
|
|
5671
|
+
z.literal("numeric"),
|
|
5672
|
+
z.literal("password"),
|
|
5673
|
+
z.literal("phone-number"),
|
|
5674
|
+
z.literal("base64url")
|
|
5675
|
+
]);
|
|
5676
|
+
var stepErrorSchema = z.object({
|
|
5677
|
+
error: z.string().optional(),
|
|
5678
|
+
validation: jsonElementSchema.optional()
|
|
5684
5679
|
});
|
|
5685
5680
|
var actionSchema = z.object({
|
|
5686
5681
|
title: z.string().optional(),
|
|
@@ -5697,6 +5692,21 @@ var actionSchema = z.object({
|
|
|
5697
5692
|
timeout: z.number().optional(),
|
|
5698
5693
|
skipValidation: z.boolean().optional()
|
|
5699
5694
|
});
|
|
5695
|
+
var iconSchema = z.union([iconNamedSchema, iconTextSchema]);
|
|
5696
|
+
var formLayoutSchema = z.object({
|
|
5697
|
+
type: z.literal("form"),
|
|
5698
|
+
schema: formLayoutSchemaReferenceSchema.optional(),
|
|
5699
|
+
schemaId: z.string(),
|
|
5700
|
+
control: z.string().optional(),
|
|
5701
|
+
margin: sizeSchema.optional()
|
|
5702
|
+
});
|
|
5703
|
+
var infoLayoutSchema = z.object({
|
|
5704
|
+
type: z.literal("info"),
|
|
5705
|
+
markdown: z.string(),
|
|
5706
|
+
align: alignSchema.optional(),
|
|
5707
|
+
control: z.string().optional(),
|
|
5708
|
+
margin: sizeSchema.optional()
|
|
5709
|
+
});
|
|
5700
5710
|
var listLayoutItemSchema = z.object({
|
|
5701
5711
|
description: z.string().optional(),
|
|
5702
5712
|
status: listLayoutStatusSchema.optional(),
|
|
@@ -5708,73 +5718,78 @@ var listLayoutItemSchema = z.object({
|
|
|
5708
5718
|
subvalue: z.string().optional(),
|
|
5709
5719
|
tag: z.string().optional()
|
|
5710
5720
|
});
|
|
5711
|
-
var
|
|
5712
|
-
|
|
5713
|
-
title: z.string().optional(),
|
|
5714
|
-
items: z.array(instructionsLayoutItemSchema),
|
|
5715
|
-
control: z.string().optional(),
|
|
5716
|
-
margin: sizeSchema.optional()
|
|
5717
|
-
});
|
|
5718
|
-
var reviewLayoutFieldSchema = z.object({
|
|
5719
|
-
label: z.string(),
|
|
5720
|
-
value: z.string(),
|
|
5721
|
-
rawValue: z.string().optional(),
|
|
5722
|
-
help: helpSchema.optional(),
|
|
5723
|
-
tag: z.string().optional()
|
|
5721
|
+
var actionResponseBodySchema = z.object({
|
|
5722
|
+
action: actionSchema
|
|
5724
5723
|
});
|
|
5725
|
-
var
|
|
5726
|
-
type: z.literal("
|
|
5724
|
+
var searchResultActionSchema = z.object({
|
|
5725
|
+
type: z.literal("action"),
|
|
5727
5726
|
title: z.string(),
|
|
5728
5727
|
description: z.string().optional(),
|
|
5729
5728
|
icon: iconSchema.optional(),
|
|
5730
5729
|
image: imageSchema.optional(),
|
|
5731
|
-
value:
|
|
5730
|
+
value: actionSchema
|
|
5732
5731
|
});
|
|
5733
|
-
var
|
|
5734
|
-
type: z.literal("
|
|
5732
|
+
var searchResultSearchSchema = z.object({
|
|
5733
|
+
type: z.literal("search"),
|
|
5735
5734
|
title: z.string(),
|
|
5736
5735
|
description: z.string().optional(),
|
|
5737
5736
|
icon: iconSchema.optional(),
|
|
5738
5737
|
image: imageSchema.optional(),
|
|
5739
|
-
value:
|
|
5738
|
+
value: searchSearchRequestSchema
|
|
5740
5739
|
});
|
|
5741
|
-
var
|
|
5740
|
+
var actionBehaviorSchema = z.object({
|
|
5741
|
+
type: z.literal("action"),
|
|
5742
5742
|
action: actionSchema
|
|
5743
5743
|
});
|
|
5744
|
-
var
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
error: z.string().optional(),
|
|
5748
|
-
validation: jsonElementSchema.optional(),
|
|
5749
|
-
refreshUrl: z.string().optional()
|
|
5744
|
+
var containerBehaviorSchema = z.object({
|
|
5745
|
+
action: actionSchema.optional(),
|
|
5746
|
+
link: linkSchema.optional()
|
|
5750
5747
|
});
|
|
5751
5748
|
var navigationBackBehaviorSchema = z.object({
|
|
5752
5749
|
title: z.string().optional(),
|
|
5753
5750
|
action: actionSchema
|
|
5754
5751
|
});
|
|
5755
|
-
var
|
|
5756
|
-
|
|
5757
|
-
|
|
5752
|
+
var summarySummariserSchema = z.object({
|
|
5753
|
+
defaultTitle: z.string().optional(),
|
|
5754
|
+
defaultDescription: z.string().optional(),
|
|
5755
|
+
defaultIcon: iconSchema.optional(),
|
|
5756
|
+
defaultImage: imageSchema.optional(),
|
|
5757
|
+
providesTitle: z.boolean().optional(),
|
|
5758
|
+
providesDescription: z.boolean().optional(),
|
|
5759
|
+
providesIcon: z.boolean().optional(),
|
|
5760
|
+
providesImage: z.boolean().optional()
|
|
5758
5761
|
});
|
|
5759
|
-
var
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
+
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
5763
|
+
var searchResponseBodySchema = z.object({
|
|
5764
|
+
results: z.array(searchResultSchema)
|
|
5762
5765
|
});
|
|
5763
5766
|
var behaviorSchema = z.union([
|
|
5764
5767
|
actionBehaviorSchema,
|
|
5765
5768
|
containerBehaviorSchema,
|
|
5766
5769
|
linkBehaviorSchema
|
|
5767
5770
|
]);
|
|
5768
|
-
var
|
|
5769
|
-
|
|
5770
|
-
|
|
5771
|
-
|
|
5771
|
+
var navigationSchema = z.object({
|
|
5772
|
+
backButton: navigationBackBehaviorSchema.optional(),
|
|
5773
|
+
back: navigationBackBehaviorSchema.optional(),
|
|
5774
|
+
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
5772
5775
|
});
|
|
5773
|
-
var
|
|
5774
|
-
|
|
5775
|
-
|
|
5776
|
-
|
|
5776
|
+
var linkHandlerSchema = z.object({
|
|
5777
|
+
regexPattern: z.string(),
|
|
5778
|
+
behavior: behaviorSchema.optional()
|
|
5779
|
+
});
|
|
5780
|
+
var pollingOnErrorSchema = z.object({
|
|
5781
|
+
action: actionSchema.optional(),
|
|
5782
|
+
behavior: behaviorSchema.optional()
|
|
5783
|
+
});
|
|
5784
|
+
var pollingSchema = z.object({
|
|
5785
|
+
interval: z.number().optional(),
|
|
5786
|
+
url: z.string(),
|
|
5787
|
+
delay: z.number().optional(),
|
|
5788
|
+
timeout: z.number().optional(),
|
|
5789
|
+
maxAttempts: z.number(),
|
|
5790
|
+
onError: pollingOnErrorSchema
|
|
5777
5791
|
});
|
|
5792
|
+
var summarySchema = z.union([summaryProviderSchema, summarySummariserSchema]);
|
|
5778
5793
|
var decisionLayoutOptionSchema = z.object({
|
|
5779
5794
|
action: actionSchema.optional(),
|
|
5780
5795
|
title: z.string(),
|
|
@@ -5785,11 +5800,6 @@ var decisionLayoutOptionSchema = z.object({
|
|
|
5785
5800
|
behavior: behaviorSchema.optional(),
|
|
5786
5801
|
tag: z.string().optional()
|
|
5787
5802
|
});
|
|
5788
|
-
var itemCallToActionSchema = z.object({
|
|
5789
|
-
title: z.string(),
|
|
5790
|
-
accessibilityDescription: z.string().optional(),
|
|
5791
|
-
behavior: behaviorSchema
|
|
5792
|
-
});
|
|
5793
5803
|
var buttonLayoutSchema = z.object({
|
|
5794
5804
|
type: z.literal("button"),
|
|
5795
5805
|
action: actionSchema.optional(),
|
|
@@ -5802,26 +5812,22 @@ var buttonLayoutSchema = z.object({
|
|
|
5802
5812
|
control: z.string().optional(),
|
|
5803
5813
|
margin: sizeSchema.optional()
|
|
5804
5814
|
});
|
|
5805
|
-
var searchResultSchema = z.union([searchResultActionSchema, searchResultSearchSchema]);
|
|
5806
|
-
var linkHandlerSchema = z.object({
|
|
5807
|
-
regexPattern: z.string(),
|
|
5808
|
-
behavior: behaviorSchema.optional()
|
|
5809
|
-
});
|
|
5810
|
-
var navigationSchema = z.object({
|
|
5811
|
-
backButton: navigationBackBehaviorSchema.optional(),
|
|
5812
|
-
back: navigationBackBehaviorSchema.optional(),
|
|
5813
|
-
stackBehavior: navigationStackBehaviorSchema.optional()
|
|
5814
|
-
});
|
|
5815
|
-
var pollingOnErrorSchema = z.object({
|
|
5816
|
-
action: actionSchema.optional(),
|
|
5817
|
-
behavior: behaviorSchema.optional()
|
|
5818
|
-
});
|
|
5819
5815
|
var reviewLayoutCallToActionSchema = z.object({
|
|
5820
5816
|
action: actionSchema.optional(),
|
|
5821
5817
|
title: z.string(),
|
|
5822
5818
|
accessibilityDescription: z.string().optional(),
|
|
5823
5819
|
behavior: behaviorSchema.optional()
|
|
5824
5820
|
});
|
|
5821
|
+
var alertLayoutCallToActionSchema = z.object({
|
|
5822
|
+
title: z.string(),
|
|
5823
|
+
accessibilityDescription: z.string().optional(),
|
|
5824
|
+
behavior: behaviorSchema
|
|
5825
|
+
});
|
|
5826
|
+
var itemCallToActionSchema = z.object({
|
|
5827
|
+
title: z.string(),
|
|
5828
|
+
accessibilityDescription: z.string().optional(),
|
|
5829
|
+
behavior: behaviorSchema
|
|
5830
|
+
});
|
|
5825
5831
|
var alertLayoutSchema = z.object({
|
|
5826
5832
|
type: z.literal("alert"),
|
|
5827
5833
|
markdown: z.string(),
|
|
@@ -5830,13 +5836,10 @@ var alertLayoutSchema = z.object({
|
|
|
5830
5836
|
margin: sizeSchema.optional(),
|
|
5831
5837
|
callToAction: alertLayoutCallToActionSchema.optional()
|
|
5832
5838
|
});
|
|
5833
|
-
var
|
|
5834
|
-
|
|
5835
|
-
|
|
5836
|
-
|
|
5837
|
-
items: z.array(listLayoutItemSchema),
|
|
5838
|
-
control: z.string().optional(),
|
|
5839
|
-
margin: sizeSchema.optional()
|
|
5839
|
+
var listLayoutCallToActionSchema = z.object({
|
|
5840
|
+
title: z.string(),
|
|
5841
|
+
accessibilityDescription: z.string().optional(),
|
|
5842
|
+
behavior: behaviorSchema
|
|
5840
5843
|
});
|
|
5841
5844
|
var decisionLayoutSchema = z.object({
|
|
5842
5845
|
type: z.literal("decision"),
|
|
@@ -5845,34 +5848,29 @@ var decisionLayoutSchema = z.object({
|
|
|
5845
5848
|
control: z.string().optional(),
|
|
5846
5849
|
margin: sizeSchema.optional()
|
|
5847
5850
|
});
|
|
5848
|
-
var
|
|
5849
|
-
|
|
5850
|
-
description: z.string().optional(),
|
|
5851
|
-
icon: iconSchema,
|
|
5852
|
-
status: statusListLayoutStatusSchema.optional(),
|
|
5853
|
-
callToAction: itemCallToActionSchema.optional(),
|
|
5854
|
-
tag: z.string().optional()
|
|
5855
|
-
});
|
|
5856
|
-
var reviewLayoutSchema = z.object({
|
|
5857
|
-
type: z.literal("review"),
|
|
5858
|
-
orientation: z.string().optional(),
|
|
5859
|
-
action: actionSchema.optional(),
|
|
5860
|
-
fields: z.array(reviewLayoutFieldSchema),
|
|
5851
|
+
var listLayoutSchema = z.object({
|
|
5852
|
+
type: z.literal("list"),
|
|
5861
5853
|
title: z.string().optional(),
|
|
5862
|
-
callToAction:
|
|
5854
|
+
callToAction: listLayoutCallToActionSchema.optional(),
|
|
5855
|
+
items: z.array(listLayoutItemSchema),
|
|
5863
5856
|
control: z.string().optional(),
|
|
5864
5857
|
margin: sizeSchema.optional()
|
|
5865
5858
|
});
|
|
5866
|
-
var
|
|
5867
|
-
|
|
5868
|
-
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5859
|
+
var constSchemaSchema = z.object({
|
|
5860
|
+
hidden: z.boolean().optional(),
|
|
5861
|
+
alert: alertLayoutSchema.optional(),
|
|
5862
|
+
control: z.string().optional(),
|
|
5863
|
+
promoted: z.boolean().optional(),
|
|
5864
|
+
$id: z.string().optional(),
|
|
5865
|
+
const: jsonElementSchema,
|
|
5866
|
+
title: z.string().optional(),
|
|
5867
|
+
description: z.string().optional(),
|
|
5868
|
+
icon: iconSchema.optional(),
|
|
5869
|
+
image: imageSchema.optional(),
|
|
5870
|
+
keywords: z.array(z.string()).optional(),
|
|
5871
|
+
summary: summaryProviderSchema.optional(),
|
|
5872
|
+
analyticsId: z.string().optional(),
|
|
5873
|
+
disabled: z.boolean().optional()
|
|
5876
5874
|
});
|
|
5877
5875
|
var blobSchemaSchema = z.object({
|
|
5878
5876
|
type: z.literal("blob"),
|
|
@@ -5896,21 +5894,23 @@ var blobSchemaSchema = z.object({
|
|
|
5896
5894
|
source: uploadSourceSchema.optional(),
|
|
5897
5895
|
disabled: z.boolean().optional()
|
|
5898
5896
|
});
|
|
5899
|
-
var
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5903
|
-
|
|
5904
|
-
$id: z.string().optional(),
|
|
5905
|
-
const: jsonElementSchema,
|
|
5897
|
+
var reviewLayoutSchema = z.object({
|
|
5898
|
+
type: z.literal("review"),
|
|
5899
|
+
orientation: z.string().optional(),
|
|
5900
|
+
action: actionSchema.optional(),
|
|
5901
|
+
fields: z.array(reviewLayoutFieldSchema),
|
|
5906
5902
|
title: z.string().optional(),
|
|
5903
|
+
callToAction: reviewLayoutCallToActionSchema.optional(),
|
|
5904
|
+
control: z.string().optional(),
|
|
5905
|
+
margin: sizeSchema.optional()
|
|
5906
|
+
});
|
|
5907
|
+
var statusListLayoutItemSchema = z.object({
|
|
5908
|
+
title: z.string(),
|
|
5907
5909
|
description: z.string().optional(),
|
|
5908
|
-
icon: iconSchema
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
analyticsId: z.string().optional(),
|
|
5913
|
-
disabled: z.boolean().optional()
|
|
5910
|
+
icon: iconSchema,
|
|
5911
|
+
status: statusListLayoutStatusSchema.optional(),
|
|
5912
|
+
callToAction: itemCallToActionSchema.optional(),
|
|
5913
|
+
tag: z.string().optional()
|
|
5914
5914
|
});
|
|
5915
5915
|
var statusListLayoutSchema = z.object({
|
|
5916
5916
|
type: z.literal("status-list"),
|
|
@@ -5919,6 +5919,39 @@ var statusListLayoutSchema = z.object({
|
|
|
5919
5919
|
control: z.string().optional(),
|
|
5920
5920
|
margin: sizeSchema.optional()
|
|
5921
5921
|
});
|
|
5922
|
+
var persistAsyncSchema = z.lazy(
|
|
5923
|
+
() => z.object({
|
|
5924
|
+
param: z.string(),
|
|
5925
|
+
idProperty: z.string(),
|
|
5926
|
+
schema: schemaSchema,
|
|
5927
|
+
url: z.string(),
|
|
5928
|
+
method: httpMethodSchema
|
|
5929
|
+
})
|
|
5930
|
+
);
|
|
5931
|
+
var schemaSchema = z.lazy(
|
|
5932
|
+
() => z.union([
|
|
5933
|
+
allOfSchemaSchema,
|
|
5934
|
+
arraySchemaSchema,
|
|
5935
|
+
blobSchemaSchema,
|
|
5936
|
+
booleanSchemaSchema,
|
|
5937
|
+
constSchemaSchema,
|
|
5938
|
+
integerSchemaSchema,
|
|
5939
|
+
numberSchemaSchema,
|
|
5940
|
+
objectSchemaSchema,
|
|
5941
|
+
oneOfSchemaSchema,
|
|
5942
|
+
stringSchemaSchema
|
|
5943
|
+
])
|
|
5944
|
+
);
|
|
5945
|
+
var columnsLayoutSchema = z.lazy(
|
|
5946
|
+
() => z.object({
|
|
5947
|
+
type: z.literal("columns"),
|
|
5948
|
+
left: z.array(layoutSchema),
|
|
5949
|
+
right: z.array(layoutSchema),
|
|
5950
|
+
bias: columnsLayoutBiasSchema.optional(),
|
|
5951
|
+
control: z.string().optional(),
|
|
5952
|
+
margin: sizeSchema.optional()
|
|
5953
|
+
})
|
|
5954
|
+
);
|
|
5922
5955
|
var layoutSchema = z.lazy(
|
|
5923
5956
|
() => z.union([
|
|
5924
5957
|
alertLayoutSchema,
|
|
@@ -5942,6 +5975,12 @@ var layoutSchema = z.lazy(
|
|
|
5942
5975
|
statusListLayoutSchema
|
|
5943
5976
|
])
|
|
5944
5977
|
);
|
|
5978
|
+
var modalLayoutContentSchema = z.lazy(
|
|
5979
|
+
() => z.object({
|
|
5980
|
+
title: z.string().optional(),
|
|
5981
|
+
components: z.array(layoutSchema)
|
|
5982
|
+
})
|
|
5983
|
+
);
|
|
5945
5984
|
var boxLayoutSchema = z.lazy(
|
|
5946
5985
|
() => z.object({
|
|
5947
5986
|
type: z.literal("box"),
|
|
@@ -5952,16 +5991,6 @@ var boxLayoutSchema = z.lazy(
|
|
|
5952
5991
|
margin: sizeSchema.optional()
|
|
5953
5992
|
})
|
|
5954
5993
|
);
|
|
5955
|
-
var columnsLayoutSchema = z.lazy(
|
|
5956
|
-
() => z.object({
|
|
5957
|
-
type: z.literal("columns"),
|
|
5958
|
-
left: z.array(layoutSchema),
|
|
5959
|
-
right: z.array(layoutSchema),
|
|
5960
|
-
bias: columnsLayoutBiasSchema.optional(),
|
|
5961
|
-
control: z.string().optional(),
|
|
5962
|
-
margin: sizeSchema.optional()
|
|
5963
|
-
})
|
|
5964
|
-
);
|
|
5965
5994
|
var modalLayoutSchema = z.lazy(
|
|
5966
5995
|
() => z.object({
|
|
5967
5996
|
type: z.literal("modal"),
|
|
@@ -5971,12 +6000,6 @@ var modalLayoutSchema = z.lazy(
|
|
|
5971
6000
|
content: modalLayoutContentSchema
|
|
5972
6001
|
})
|
|
5973
6002
|
);
|
|
5974
|
-
var modalLayoutContentSchema = z.lazy(
|
|
5975
|
-
() => z.object({
|
|
5976
|
-
title: z.string().optional(),
|
|
5977
|
-
components: z.array(layoutSchema)
|
|
5978
|
-
})
|
|
5979
|
-
);
|
|
5980
6003
|
var stepSchema = z.lazy(
|
|
5981
6004
|
() => z.object({
|
|
5982
6005
|
key: z.string().optional(),
|
|
@@ -5996,57 +6019,33 @@ var stepSchema = z.lazy(
|
|
|
5996
6019
|
errors: stepErrorSchema.optional(),
|
|
5997
6020
|
navigation: navigationSchema.optional(),
|
|
5998
6021
|
refreshUrl: z.string().optional(),
|
|
6022
|
+
refreshAfter: z.string().optional(),
|
|
5999
6023
|
control: z.string().optional()
|
|
6000
6024
|
})
|
|
6001
6025
|
);
|
|
6002
|
-
var
|
|
6003
|
-
() => z.union([
|
|
6004
|
-
allOfSchemaSchema,
|
|
6005
|
-
arraySchemaSchema,
|
|
6006
|
-
blobSchemaSchema,
|
|
6007
|
-
booleanSchemaSchema,
|
|
6008
|
-
constSchemaSchema,
|
|
6009
|
-
integerSchemaSchema,
|
|
6010
|
-
numberSchemaSchema,
|
|
6011
|
-
objectSchemaSchema,
|
|
6012
|
-
oneOfSchemaSchema,
|
|
6013
|
-
stringSchemaSchema
|
|
6014
|
-
])
|
|
6015
|
-
);
|
|
6016
|
-
var allOfSchemaSchema = z.lazy(
|
|
6017
|
-
() => z.object({
|
|
6018
|
-
disabled: z.boolean().optional(),
|
|
6019
|
-
promoted: z.boolean().optional(),
|
|
6020
|
-
allOf: z.array(schemaSchema),
|
|
6021
|
-
$id: z.string().optional(),
|
|
6022
|
-
title: z.string().optional(),
|
|
6023
|
-
description: z.string().optional(),
|
|
6024
|
-
control: z.string().optional(),
|
|
6025
|
-
hidden: z.boolean().optional(),
|
|
6026
|
-
icon: iconSchema.optional(),
|
|
6027
|
-
image: imageSchema.optional(),
|
|
6028
|
-
keywords: z.array(z.string()).optional(),
|
|
6029
|
-
summary: summaryProviderSchema.optional(),
|
|
6030
|
-
analyticsId: z.string().optional(),
|
|
6031
|
-
alert: alertLayoutSchema.optional()
|
|
6032
|
-
})
|
|
6033
|
-
);
|
|
6034
|
-
var arraySchemaSchema = z.lazy(
|
|
6035
|
-
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
6036
|
-
);
|
|
6037
|
-
var booleanSchemaSchema = z.lazy(
|
|
6026
|
+
var stringSchemaSchema = z.lazy(
|
|
6038
6027
|
() => z.object({
|
|
6039
|
-
type: z.literal("
|
|
6028
|
+
type: z.literal("string"),
|
|
6040
6029
|
autofillProvider: z.string().optional(),
|
|
6041
6030
|
promoted: z.boolean().optional(),
|
|
6042
6031
|
refreshFormOnChange: z.boolean().optional(),
|
|
6043
6032
|
refreshUrl: z.string().optional(),
|
|
6044
6033
|
refreshFormUrl: z.string().optional(),
|
|
6034
|
+
format: stringSchemaFormatSchema.optional(),
|
|
6035
|
+
displayFormat: z.string().optional(),
|
|
6036
|
+
placeholder: z.string().optional(),
|
|
6037
|
+
minLength: z.number().optional(),
|
|
6038
|
+
maxLength: z.number().optional(),
|
|
6039
|
+
minimum: z.string().optional(),
|
|
6040
|
+
maximum: z.string().optional(),
|
|
6041
|
+
pattern: z.string().optional(),
|
|
6042
|
+
autocapitalization: autocapitalizationTypeSchema.optional(),
|
|
6043
|
+
autocorrect: z.boolean().optional(),
|
|
6045
6044
|
$id: z.string().optional(),
|
|
6046
6045
|
title: z.string().optional(),
|
|
6047
6046
|
description: z.string().optional(),
|
|
6048
6047
|
control: z.string().optional(),
|
|
6049
|
-
default: z.
|
|
6048
|
+
default: z.string().optional(),
|
|
6050
6049
|
hidden: z.boolean().optional(),
|
|
6051
6050
|
disabled: z.boolean().optional(),
|
|
6052
6051
|
icon: iconSchema.optional(),
|
|
@@ -6057,42 +6056,45 @@ var booleanSchemaSchema = z.lazy(
|
|
|
6057
6056
|
persistAsync: persistAsyncSchema.optional(),
|
|
6058
6057
|
refreshStepOnChange: z.boolean().optional(),
|
|
6059
6058
|
validationAsync: validateAsyncSchema.optional(),
|
|
6059
|
+
validationMessages: z.record(z.string()).optional(),
|
|
6060
6060
|
alert: alertLayoutSchema.optional(),
|
|
6061
|
+
cameraConfig: jsonElementSchema.optional(),
|
|
6062
|
+
accepts: z.array(z.string()).optional(),
|
|
6063
|
+
maxSize: z.number().optional(),
|
|
6064
|
+
source: uploadSourceSchema.optional(),
|
|
6065
|
+
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6061
6066
|
autofillKey: z.string().optional(),
|
|
6062
6067
|
help: helpSchema.optional()
|
|
6063
6068
|
})
|
|
6064
6069
|
);
|
|
6065
|
-
var
|
|
6070
|
+
var oneOfSchemaSchema = z.lazy(
|
|
6066
6071
|
() => z.object({
|
|
6067
|
-
type: z.literal("integer"),
|
|
6068
6072
|
autofillProvider: z.string().optional(),
|
|
6069
6073
|
promoted: z.boolean().optional(),
|
|
6070
6074
|
refreshFormOnChange: z.boolean().optional(),
|
|
6071
6075
|
refreshUrl: z.string().optional(),
|
|
6072
6076
|
refreshFormUrl: z.string().optional(),
|
|
6077
|
+
promotion: jsonElementSchema.optional(),
|
|
6078
|
+
oneOf: z.array(schemaSchema),
|
|
6073
6079
|
placeholder: z.string().optional(),
|
|
6074
|
-
minimum: z.number().optional(),
|
|
6075
|
-
maximum: z.number().optional(),
|
|
6076
6080
|
$id: z.string().optional(),
|
|
6077
6081
|
title: z.string().optional(),
|
|
6078
6082
|
description: z.string().optional(),
|
|
6079
6083
|
control: z.string().optional(),
|
|
6080
|
-
default:
|
|
6084
|
+
default: jsonElementSchema.optional(),
|
|
6081
6085
|
hidden: z.boolean().optional(),
|
|
6082
|
-
disabled: z.boolean().optional(),
|
|
6083
6086
|
icon: iconSchema.optional(),
|
|
6084
6087
|
image: imageSchema.optional(),
|
|
6085
6088
|
keywords: z.array(z.string()).optional(),
|
|
6086
6089
|
summary: summaryProviderSchema.optional(),
|
|
6087
6090
|
analyticsId: z.string().optional(),
|
|
6088
|
-
persistAsync: persistAsyncSchema.optional(),
|
|
6089
6091
|
refreshStepOnChange: z.boolean().optional(),
|
|
6090
|
-
validationAsync: validateAsyncSchema.optional(),
|
|
6091
|
-
validationMessages: z.record(z.string()).optional(),
|
|
6092
6092
|
alert: alertLayoutSchema.optional(),
|
|
6093
|
+
help: helpSchema.optional(),
|
|
6093
6094
|
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6094
6095
|
autofillKey: z.string().optional(),
|
|
6095
|
-
|
|
6096
|
+
validationMessages: z.record(z.string()).optional(),
|
|
6097
|
+
disabled: z.boolean().optional()
|
|
6096
6098
|
})
|
|
6097
6099
|
);
|
|
6098
6100
|
var numberSchemaSchema = z.lazy(
|
|
@@ -6128,16 +6130,12 @@ var numberSchemaSchema = z.lazy(
|
|
|
6128
6130
|
help: helpSchema.optional()
|
|
6129
6131
|
})
|
|
6130
6132
|
);
|
|
6131
|
-
var
|
|
6133
|
+
var arraySchemaTupleSchema = z.lazy(
|
|
6132
6134
|
() => z.object({
|
|
6133
|
-
type: z.literal("
|
|
6134
|
-
disabled: z.boolean().optional(),
|
|
6135
|
+
type: z.literal("array"),
|
|
6135
6136
|
promoted: z.boolean().optional(),
|
|
6136
|
-
help: helpSchema.optional(),
|
|
6137
|
-
properties: z.record(schemaSchema),
|
|
6138
|
-
displayOrder: z.array(z.string()),
|
|
6139
|
-
required: z.array(z.string()).optional(),
|
|
6140
6137
|
$id: z.string().optional(),
|
|
6138
|
+
items: z.array(schemaSchema),
|
|
6141
6139
|
title: z.string().optional(),
|
|
6142
6140
|
description: z.string().optional(),
|
|
6143
6141
|
control: z.string().optional(),
|
|
@@ -6147,62 +6145,27 @@ var objectSchemaSchema = z.lazy(
|
|
|
6147
6145
|
keywords: z.array(z.string()).optional(),
|
|
6148
6146
|
summary: summaryProviderSchema.optional(),
|
|
6149
6147
|
analyticsId: z.string().optional(),
|
|
6148
|
+
persistAsync: persistAsyncSchema.optional(),
|
|
6149
|
+
validationAsync: validateAsyncSchema.optional(),
|
|
6150
6150
|
alert: alertLayoutSchema.optional()
|
|
6151
6151
|
})
|
|
6152
6152
|
);
|
|
6153
|
-
var
|
|
6154
|
-
() => z.object({
|
|
6155
|
-
autofillProvider: z.string().optional(),
|
|
6156
|
-
promoted: z.boolean().optional(),
|
|
6157
|
-
refreshFormOnChange: z.boolean().optional(),
|
|
6158
|
-
refreshUrl: z.string().optional(),
|
|
6159
|
-
refreshFormUrl: z.string().optional(),
|
|
6160
|
-
promotion: jsonElementSchema.optional(),
|
|
6161
|
-
oneOf: z.array(schemaSchema),
|
|
6162
|
-
placeholder: z.string().optional(),
|
|
6163
|
-
$id: z.string().optional(),
|
|
6164
|
-
title: z.string().optional(),
|
|
6165
|
-
description: z.string().optional(),
|
|
6166
|
-
control: z.string().optional(),
|
|
6167
|
-
default: jsonElementSchema.optional(),
|
|
6168
|
-
hidden: z.boolean().optional(),
|
|
6169
|
-
icon: iconSchema.optional(),
|
|
6170
|
-
image: imageSchema.optional(),
|
|
6171
|
-
keywords: z.array(z.string()).optional(),
|
|
6172
|
-
summary: summaryProviderSchema.optional(),
|
|
6173
|
-
analyticsId: z.string().optional(),
|
|
6174
|
-
refreshStepOnChange: z.boolean().optional(),
|
|
6175
|
-
alert: alertLayoutSchema.optional(),
|
|
6176
|
-
help: helpSchema.optional(),
|
|
6177
|
-
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6178
|
-
autofillKey: z.string().optional(),
|
|
6179
|
-
validationMessages: z.record(z.string()).optional(),
|
|
6180
|
-
disabled: z.boolean().optional()
|
|
6181
|
-
})
|
|
6182
|
-
);
|
|
6183
|
-
var stringSchemaSchema = z.lazy(
|
|
6153
|
+
var integerSchemaSchema = z.lazy(
|
|
6184
6154
|
() => z.object({
|
|
6185
|
-
type: z.literal("
|
|
6155
|
+
type: z.literal("integer"),
|
|
6186
6156
|
autofillProvider: z.string().optional(),
|
|
6187
6157
|
promoted: z.boolean().optional(),
|
|
6188
6158
|
refreshFormOnChange: z.boolean().optional(),
|
|
6189
6159
|
refreshUrl: z.string().optional(),
|
|
6190
6160
|
refreshFormUrl: z.string().optional(),
|
|
6191
|
-
format: stringSchemaFormatSchema.optional(),
|
|
6192
|
-
displayFormat: z.string().optional(),
|
|
6193
6161
|
placeholder: z.string().optional(),
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
minimum: z.string().optional(),
|
|
6197
|
-
maximum: z.string().optional(),
|
|
6198
|
-
pattern: z.string().optional(),
|
|
6199
|
-
autocapitalization: autocapitalizationTypeSchema.optional(),
|
|
6200
|
-
autocorrect: z.boolean().optional(),
|
|
6162
|
+
minimum: z.number().optional(),
|
|
6163
|
+
maximum: z.number().optional(),
|
|
6201
6164
|
$id: z.string().optional(),
|
|
6202
6165
|
title: z.string().optional(),
|
|
6203
6166
|
description: z.string().optional(),
|
|
6204
6167
|
control: z.string().optional(),
|
|
6205
|
-
default: z.
|
|
6168
|
+
default: z.number().optional(),
|
|
6206
6169
|
hidden: z.boolean().optional(),
|
|
6207
6170
|
disabled: z.boolean().optional(),
|
|
6208
6171
|
icon: iconSchema.optional(),
|
|
@@ -6215,15 +6178,14 @@ var stringSchemaSchema = z.lazy(
|
|
|
6215
6178
|
validationAsync: validateAsyncSchema.optional(),
|
|
6216
6179
|
validationMessages: z.record(z.string()).optional(),
|
|
6217
6180
|
alert: alertLayoutSchema.optional(),
|
|
6218
|
-
cameraConfig: jsonElementSchema.optional(),
|
|
6219
|
-
accepts: z.array(z.string()).optional(),
|
|
6220
|
-
maxSize: z.number().optional(),
|
|
6221
|
-
source: uploadSourceSchema.optional(),
|
|
6222
6181
|
autocompleteHint: z.array(autocompleteTokenSchema).optional(),
|
|
6223
6182
|
autofillKey: z.string().optional(),
|
|
6224
6183
|
help: helpSchema.optional()
|
|
6225
6184
|
})
|
|
6226
6185
|
);
|
|
6186
|
+
var arraySchemaSchema = z.lazy(
|
|
6187
|
+
() => z.union([arraySchemaListSchema, arraySchemaTupleSchema])
|
|
6188
|
+
);
|
|
6227
6189
|
var arraySchemaListSchema = z.lazy(
|
|
6228
6190
|
() => z.object({
|
|
6229
6191
|
type: z.literal("array"),
|
|
@@ -6251,32 +6213,71 @@ var arraySchemaListSchema = z.lazy(
|
|
|
6251
6213
|
disabled: z.boolean().optional()
|
|
6252
6214
|
})
|
|
6253
6215
|
);
|
|
6254
|
-
var
|
|
6216
|
+
var allOfSchemaSchema = z.lazy(
|
|
6255
6217
|
() => z.object({
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6218
|
+
disabled: z.boolean().optional(),
|
|
6219
|
+
promoted: z.boolean().optional(),
|
|
6220
|
+
allOf: z.array(schemaSchema),
|
|
6221
|
+
$id: z.string().optional(),
|
|
6222
|
+
title: z.string().optional(),
|
|
6223
|
+
description: z.string().optional(),
|
|
6224
|
+
control: z.string().optional(),
|
|
6225
|
+
hidden: z.boolean().optional(),
|
|
6226
|
+
icon: iconSchema.optional(),
|
|
6227
|
+
image: imageSchema.optional(),
|
|
6228
|
+
keywords: z.array(z.string()).optional(),
|
|
6229
|
+
summary: summaryProviderSchema.optional(),
|
|
6230
|
+
analyticsId: z.string().optional(),
|
|
6231
|
+
alert: alertLayoutSchema.optional()
|
|
6261
6232
|
})
|
|
6262
6233
|
);
|
|
6263
|
-
var
|
|
6234
|
+
var booleanSchemaSchema = z.lazy(
|
|
6264
6235
|
() => z.object({
|
|
6265
|
-
type: z.literal("
|
|
6236
|
+
type: z.literal("boolean"),
|
|
6237
|
+
autofillProvider: z.string().optional(),
|
|
6266
6238
|
promoted: z.boolean().optional(),
|
|
6239
|
+
refreshFormOnChange: z.boolean().optional(),
|
|
6240
|
+
refreshUrl: z.string().optional(),
|
|
6241
|
+
refreshFormUrl: z.string().optional(),
|
|
6267
6242
|
$id: z.string().optional(),
|
|
6268
|
-
items: z.array(schemaSchema),
|
|
6269
6243
|
title: z.string().optional(),
|
|
6270
6244
|
description: z.string().optional(),
|
|
6271
6245
|
control: z.string().optional(),
|
|
6246
|
+
default: z.boolean().optional(),
|
|
6272
6247
|
hidden: z.boolean().optional(),
|
|
6248
|
+
disabled: z.boolean().optional(),
|
|
6273
6249
|
icon: iconSchema.optional(),
|
|
6274
6250
|
image: imageSchema.optional(),
|
|
6275
6251
|
keywords: z.array(z.string()).optional(),
|
|
6276
6252
|
summary: summaryProviderSchema.optional(),
|
|
6277
6253
|
analyticsId: z.string().optional(),
|
|
6278
6254
|
persistAsync: persistAsyncSchema.optional(),
|
|
6255
|
+
refreshStepOnChange: z.boolean().optional(),
|
|
6279
6256
|
validationAsync: validateAsyncSchema.optional(),
|
|
6257
|
+
alert: alertLayoutSchema.optional(),
|
|
6258
|
+
autofillKey: z.string().optional(),
|
|
6259
|
+
help: helpSchema.optional()
|
|
6260
|
+
})
|
|
6261
|
+
);
|
|
6262
|
+
var objectSchemaSchema = z.lazy(
|
|
6263
|
+
() => z.object({
|
|
6264
|
+
type: z.literal("object"),
|
|
6265
|
+
disabled: z.boolean().optional(),
|
|
6266
|
+
promoted: z.boolean().optional(),
|
|
6267
|
+
help: helpSchema.optional(),
|
|
6268
|
+
properties: z.record(schemaSchema),
|
|
6269
|
+
displayOrder: z.array(z.string()),
|
|
6270
|
+
required: z.array(z.string()).optional(),
|
|
6271
|
+
$id: z.string().optional(),
|
|
6272
|
+
title: z.string().optional(),
|
|
6273
|
+
description: z.string().optional(),
|
|
6274
|
+
control: z.string().optional(),
|
|
6275
|
+
hidden: z.boolean().optional(),
|
|
6276
|
+
icon: iconSchema.optional(),
|
|
6277
|
+
image: imageSchema.optional(),
|
|
6278
|
+
keywords: z.array(z.string()).optional(),
|
|
6279
|
+
summary: summaryProviderSchema.optional(),
|
|
6280
|
+
analyticsId: z.string().optional(),
|
|
6280
6281
|
alert: alertLayoutSchema.optional()
|
|
6281
6282
|
})
|
|
6282
6283
|
);
|
|
@@ -6463,6 +6464,9 @@ var createStepComponent = (stepProps) => {
|
|
|
6463
6464
|
},
|
|
6464
6465
|
stop() {
|
|
6465
6466
|
stepPolling == null ? void 0 : stepPolling.stop();
|
|
6467
|
+
},
|
|
6468
|
+
getRefreshAfter() {
|
|
6469
|
+
return this.step.refreshAfter;
|
|
6466
6470
|
}
|
|
6467
6471
|
});
|
|
6468
6472
|
};
|
|
@@ -10498,7 +10502,8 @@ var mapStepToComponent = (_a) => {
|
|
|
10498
10502
|
step,
|
|
10499
10503
|
updateComponent,
|
|
10500
10504
|
trackEvent,
|
|
10501
|
-
onAction
|
|
10505
|
+
onAction,
|
|
10506
|
+
onRefresh
|
|
10502
10507
|
});
|
|
10503
10508
|
return stepComponent;
|
|
10504
10509
|
};
|
|
@@ -10936,6 +10941,13 @@ function useStableCallback(handler) {
|
|
|
10936
10941
|
return useCallback((...args) => ref.current ? ref.current(...args) : null, []);
|
|
10937
10942
|
}
|
|
10938
10943
|
|
|
10944
|
+
// src/revamp/utils/time-utils.ts
|
|
10945
|
+
var getTimeDiffInMs = (timestamp) => {
|
|
10946
|
+
const targetTime = new Date(timestamp).getTime();
|
|
10947
|
+
const currentTime = Date.now();
|
|
10948
|
+
return targetTime - currentTime;
|
|
10949
|
+
};
|
|
10950
|
+
|
|
10939
10951
|
// src/revamp/useDynamicFlowCore.tsx
|
|
10940
10952
|
function useDynamicFlowCore(props) {
|
|
10941
10953
|
const _a = props, { flowId, initialAction, initialStep, displayStepTitle = true } = _a, rest = __objRest(_a, ["flowId", "initialAction", "initialStep", "displayStepTitle"]);
|
|
@@ -10972,6 +10984,20 @@ function useDynamicFlowCore(props) {
|
|
|
10972
10984
|
trackCoreEvent("Step Shown", { isFirstStep: true });
|
|
10973
10985
|
}
|
|
10974
10986
|
}, []);
|
|
10987
|
+
const refreshAfter = stepComponent == null ? void 0 : stepComponent.getRefreshAfter();
|
|
10988
|
+
console.log({ refreshAfter });
|
|
10989
|
+
useEffect(() => {
|
|
10990
|
+
if (!refreshAfter) return;
|
|
10991
|
+
const timeLeft = getTimeDiffInMs(refreshAfter);
|
|
10992
|
+
if (timeLeft <= 0) {
|
|
10993
|
+
void (stepComponent == null ? void 0 : stepComponent.onRefresh(void 0));
|
|
10994
|
+
return;
|
|
10995
|
+
}
|
|
10996
|
+
const timeout = setTimeout(() => {
|
|
10997
|
+
void (stepComponent == null ? void 0 : stepComponent.onRefresh(void 0));
|
|
10998
|
+
}, timeLeft);
|
|
10999
|
+
return () => clearTimeout(timeout);
|
|
11000
|
+
}, [refreshAfter]);
|
|
10975
11001
|
const createStep = useCallback2((newStep, etag) => {
|
|
10976
11002
|
if (stepComponentRef.current) {
|
|
10977
11003
|
stepCount.current += 1;
|