@fanfare-io/fanfare-sdk-contracts 0.7.2 → 0.9.0
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/dist/beacon.d.ts +39 -0
- package/dist/beacon.js +19 -16
- package/package.json +1 -1
package/dist/beacon.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ export declare const BeaconEventEnrichmentPropertiesSchemaEntries: {
|
|
|
52
52
|
export declare const BeaconEventCoreSchema: v.ObjectSchema<{
|
|
53
53
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
54
54
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
55
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
55
56
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
56
57
|
readonly eventName: v.PicklistSchema<readonly ["pageView", "productImpression", "productClick", "productView", "searchSubmitted", "addToCart", "removeFromCart", "viewCart", "beginCheckout", "purchase", "qrScanned", "messageClicked", "messageOpened", "messageRead", "messageSent", "messageDelivered", "messageBounced", "messageComplained", "messageFailed"], undefined>;
|
|
57
58
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
@@ -321,6 +322,7 @@ export declare const PageViewEventSchema: v.ObjectSchema<{
|
|
|
321
322
|
}, undefined>, undefined>;
|
|
322
323
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
323
324
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
325
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
324
326
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
325
327
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
326
328
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -374,6 +376,7 @@ export declare const ProductImpressionEventSchema: v.ObjectSchema<{
|
|
|
374
376
|
}, undefined>, undefined>;
|
|
375
377
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
376
378
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
379
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
377
380
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
378
381
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
379
382
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -427,6 +430,7 @@ export declare const ProductClickEventSchema: v.ObjectSchema<{
|
|
|
427
430
|
}, undefined>, undefined>;
|
|
428
431
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
429
432
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
433
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
430
434
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
431
435
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
432
436
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -485,6 +489,7 @@ export declare const ProductViewEventSchema: v.ObjectSchema<{
|
|
|
485
489
|
}, undefined>, undefined>;
|
|
486
490
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
487
491
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
492
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
488
493
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
489
494
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
490
495
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -544,6 +549,7 @@ export declare const AddToCartEventSchema: v.ObjectSchema<{
|
|
|
544
549
|
}, undefined>, undefined>;
|
|
545
550
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
546
551
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
552
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
547
553
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
548
554
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
549
555
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -603,6 +609,7 @@ export declare const RemoveFromCartEventSchema: v.ObjectSchema<{
|
|
|
603
609
|
}, undefined>, undefined>;
|
|
604
610
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
605
611
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
612
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
606
613
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
607
614
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
608
615
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -657,6 +664,7 @@ export declare const ViewCartEventSchema: v.ObjectSchema<{
|
|
|
657
664
|
}, undefined>, undefined>;
|
|
658
665
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
659
666
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
667
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
660
668
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
661
669
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
662
670
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -712,6 +720,7 @@ export declare const BeginCheckoutEventSchema: v.ObjectSchema<{
|
|
|
712
720
|
}, undefined>, undefined>;
|
|
713
721
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
714
722
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
723
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
715
724
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
716
725
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
717
726
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -788,6 +797,7 @@ export declare const PurchaseEventSchema: v.ObjectSchema<{
|
|
|
788
797
|
}, undefined>, undefined>;
|
|
789
798
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
790
799
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
800
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
791
801
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
792
802
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
793
803
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -840,6 +850,7 @@ export declare const SearchSubmittedEventSchema: v.ObjectSchema<{
|
|
|
840
850
|
}, undefined>, undefined>;
|
|
841
851
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
842
852
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
853
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
843
854
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
844
855
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
845
856
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -894,6 +905,7 @@ export declare const QRScannedEventSchema: v.ObjectSchema<{
|
|
|
894
905
|
}, undefined>, undefined>;
|
|
895
906
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
896
907
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
908
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
897
909
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
898
910
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
899
911
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -949,6 +961,7 @@ export declare const MessageSentEventSchema: v.ObjectSchema<{
|
|
|
949
961
|
}, undefined>, undefined>;
|
|
950
962
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
951
963
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
964
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
952
965
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
953
966
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
954
967
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -1004,6 +1017,7 @@ export declare const MessageDeliveredEventSchema: v.ObjectSchema<{
|
|
|
1004
1017
|
}, undefined>, undefined>;
|
|
1005
1018
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1006
1019
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
1020
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1007
1021
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1008
1022
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
1009
1023
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -1060,6 +1074,7 @@ export declare const MessageBouncedEventSchema: v.ObjectSchema<{
|
|
|
1060
1074
|
}, undefined>, undefined>;
|
|
1061
1075
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1062
1076
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
1077
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1063
1078
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1064
1079
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
1065
1080
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -1116,6 +1131,7 @@ export declare const MessageComplainedEventSchema: v.ObjectSchema<{
|
|
|
1116
1131
|
}, undefined>, undefined>;
|
|
1117
1132
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1118
1133
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
1134
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1119
1135
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1120
1136
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
1121
1137
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -1171,6 +1187,7 @@ export declare const MessageClickedEventSchema: v.ObjectSchema<{
|
|
|
1171
1187
|
}, undefined>, undefined>;
|
|
1172
1188
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1173
1189
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
1190
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1174
1191
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1175
1192
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
1176
1193
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -1226,6 +1243,7 @@ export declare const MessageOpenedEventSchema: v.ObjectSchema<{
|
|
|
1226
1243
|
}, undefined>, undefined>;
|
|
1227
1244
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1228
1245
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
1246
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1229
1247
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1230
1248
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
1231
1249
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -1281,6 +1299,7 @@ export declare const MessageReadEventSchema: v.ObjectSchema<{
|
|
|
1281
1299
|
}, undefined>, undefined>;
|
|
1282
1300
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1283
1301
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
1302
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1284
1303
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1285
1304
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
1286
1305
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -1337,6 +1356,7 @@ export declare const MessageFailedEventSchema: v.ObjectSchema<{
|
|
|
1337
1356
|
}, undefined>, undefined>;
|
|
1338
1357
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1339
1358
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
1359
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1340
1360
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1341
1361
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
1342
1362
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -1388,6 +1408,7 @@ export declare const BeaconEventSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
|
1388
1408
|
}, undefined>, undefined>;
|
|
1389
1409
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1390
1410
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
1411
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1391
1412
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1392
1413
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
1393
1414
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -1440,6 +1461,7 @@ export declare const BeaconEventSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
|
1440
1461
|
}, undefined>, undefined>;
|
|
1441
1462
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1442
1463
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
1464
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1443
1465
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1444
1466
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
1445
1467
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -1492,6 +1514,7 @@ export declare const BeaconEventSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
|
1492
1514
|
}, undefined>, undefined>;
|
|
1493
1515
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1494
1516
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
1517
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1495
1518
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1496
1519
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
1497
1520
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -1549,6 +1572,7 @@ export declare const BeaconEventSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
|
1549
1572
|
}, undefined>, undefined>;
|
|
1550
1573
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1551
1574
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
1575
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1552
1576
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1553
1577
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
1554
1578
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -1607,6 +1631,7 @@ export declare const BeaconEventSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
|
1607
1631
|
}, undefined>, undefined>;
|
|
1608
1632
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1609
1633
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
1634
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1610
1635
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1611
1636
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
1612
1637
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -1665,6 +1690,7 @@ export declare const BeaconEventSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
|
1665
1690
|
}, undefined>, undefined>;
|
|
1666
1691
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1667
1692
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
1693
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1668
1694
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1669
1695
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
1670
1696
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -1718,6 +1744,7 @@ export declare const BeaconEventSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
|
1718
1744
|
}, undefined>, undefined>;
|
|
1719
1745
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1720
1746
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
1747
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1721
1748
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1722
1749
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
1723
1750
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -1772,6 +1799,7 @@ export declare const BeaconEventSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
|
1772
1799
|
}, undefined>, undefined>;
|
|
1773
1800
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1774
1801
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
1802
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1775
1803
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1776
1804
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
1777
1805
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -1847,6 +1875,7 @@ export declare const BeaconEventSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
|
1847
1875
|
}, undefined>, undefined>;
|
|
1848
1876
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1849
1877
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
1878
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1850
1879
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1851
1880
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
1852
1881
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -1898,6 +1927,7 @@ export declare const BeaconEventSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
|
1898
1927
|
}, undefined>, undefined>;
|
|
1899
1928
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1900
1929
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
1930
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1901
1931
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1902
1932
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
1903
1933
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -1951,6 +1981,7 @@ export declare const BeaconEventSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
|
1951
1981
|
}, undefined>, undefined>;
|
|
1952
1982
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1953
1983
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
1984
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
1954
1985
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
1955
1986
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
1956
1987
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -2005,6 +2036,7 @@ export declare const BeaconEventSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
|
2005
2036
|
}, undefined>, undefined>;
|
|
2006
2037
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
2007
2038
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
2039
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2008
2040
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
2009
2041
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
2010
2042
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -2059,6 +2091,7 @@ export declare const BeaconEventSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
|
2059
2091
|
}, undefined>, undefined>;
|
|
2060
2092
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
2061
2093
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
2094
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2062
2095
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
2063
2096
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
2064
2097
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -2114,6 +2147,7 @@ export declare const BeaconEventSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
|
2114
2147
|
}, undefined>, undefined>;
|
|
2115
2148
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
2116
2149
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
2150
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2117
2151
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
2118
2152
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
2119
2153
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -2169,6 +2203,7 @@ export declare const BeaconEventSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
|
2169
2203
|
}, undefined>, undefined>;
|
|
2170
2204
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
2171
2205
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
2206
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2172
2207
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
2173
2208
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
2174
2209
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -2223,6 +2258,7 @@ export declare const BeaconEventSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
|
2223
2258
|
}, undefined>, undefined>;
|
|
2224
2259
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
2225
2260
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
2261
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2226
2262
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
2227
2263
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
2228
2264
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -2277,6 +2313,7 @@ export declare const BeaconEventSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
|
2277
2313
|
}, undefined>, undefined>;
|
|
2278
2314
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
2279
2315
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
2316
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2280
2317
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
2281
2318
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
2282
2319
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -2331,6 +2368,7 @@ export declare const BeaconEventSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
|
2331
2368
|
}, undefined>, undefined>;
|
|
2332
2369
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
2333
2370
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
2371
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2334
2372
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
2335
2373
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
2336
2374
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
|
@@ -2386,6 +2424,7 @@ export declare const BeaconEventSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
|
2386
2424
|
}, undefined>, undefined>;
|
|
2387
2425
|
readonly organizationId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
2388
2426
|
readonly consumerId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>, undefined>;
|
|
2427
|
+
readonly isGuest: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
2389
2428
|
readonly eventId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 256, "validation.beacon.string.maxLength">]>;
|
|
2390
2429
|
readonly eventTimestamp: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, undefined>, v.MaxLengthAction<string, 64, "validation.beacon.timestamp.maxLength">]>;
|
|
2391
2430
|
readonly eventTimestampNs: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.MaxLengthAction<string, 32, "validation.beacon.timestampNs.maxLength">]>, undefined>;
|
package/dist/beacon.js
CHANGED
|
@@ -36,6 +36,9 @@ const t = v, C = 50, P = 64, _ = 2048, E = 256, N = 50, T = /^\d{1,12}(\.\d{1,8}
|
|
|
36
36
|
}, O = e.object({
|
|
37
37
|
organizationId: o,
|
|
38
38
|
consumerId: e.optional(o),
|
|
39
|
+
// Durable guest discriminator carried from the beacon token. When true, the
|
|
40
|
+
// consumer is a guest and is scoped out of activity/RFM/segmentation analytics.
|
|
41
|
+
isGuest: e.optional(e.boolean()),
|
|
39
42
|
eventId: o,
|
|
40
43
|
eventName: e.picklist(g),
|
|
41
44
|
eventTimestamp: l,
|
|
@@ -149,31 +152,31 @@ const t = v, C = 50, P = 64, _ = 2048, E = 256, N = 50, T = /^\d{1,12}(\.\d{1,8}
|
|
|
149
152
|
...s,
|
|
150
153
|
searchQuery: e.optional(a),
|
|
151
154
|
resultsCount: e.optional(i)
|
|
152
|
-
}),
|
|
155
|
+
}), G = e.strictObject({
|
|
153
156
|
...s,
|
|
154
157
|
experienceId: e.optional(o),
|
|
155
158
|
sequenceId: e.optional(o),
|
|
156
159
|
locationId: e.optional(o),
|
|
157
160
|
qrPayload: e.optional(a)
|
|
158
|
-
}),
|
|
161
|
+
}), j = e.picklist(["email", "sms"]), p = e.strictObject({
|
|
159
162
|
...s,
|
|
160
|
-
channel: e.optional(
|
|
163
|
+
channel: e.optional(j),
|
|
161
164
|
messageId: e.optional(o),
|
|
162
165
|
template: e.optional(o),
|
|
163
166
|
priority: e.optional(o),
|
|
164
167
|
consumerId: e.optional(o)
|
|
165
168
|
}), U = e.strictObject({
|
|
166
|
-
...
|
|
169
|
+
...p.entries,
|
|
167
170
|
bounceType: e.optional(o)
|
|
168
171
|
}), k = e.strictObject({
|
|
169
|
-
...
|
|
172
|
+
...p.entries,
|
|
170
173
|
complaintType: e.optional(o)
|
|
171
174
|
}), f = e.strictObject({
|
|
172
|
-
...
|
|
175
|
+
...p.entries,
|
|
173
176
|
retryCount: e.optional(i)
|
|
174
|
-
}), n = (
|
|
177
|
+
}), n = (r, h) => e.object({
|
|
175
178
|
...O.entries,
|
|
176
|
-
eventName: e.literal(
|
|
179
|
+
eventName: e.literal(r),
|
|
177
180
|
eventProperties: e.optional(h)
|
|
178
181
|
}), w = n(t.PAGE_VIEW, A), F = n(
|
|
179
182
|
t.PRODUCT_IMPRESSION,
|
|
@@ -181,10 +184,10 @@ const t = v, C = 50, P = 64, _ = 2048, E = 256, N = 50, T = /^\d{1,12}(\.\d{1,8}
|
|
|
181
184
|
), H = n(t.PRODUCT_CLICK, M), K = n(t.PRODUCT_VIEW, R), X = n(t.ADD_TO_CART, d), q = n(t.REMOVE_FROM_CART, y), Y = n(t.VIEW_CART, B), Q = n(t.BEGIN_CHECKOUT, L), z = n(t.PURCHASE, V), W = n(
|
|
182
185
|
t.SEARCH_SUBMITTED,
|
|
183
186
|
D
|
|
184
|
-
), $ = n(t.QR_SCANNED,
|
|
187
|
+
), $ = n(t.QR_SCANNED, G), J = n(t.MESSAGE_SENT, p), Z = n(t.MESSAGE_DELIVERED, p), ee = n(t.MESSAGE_BOUNCED, U), oe = n(
|
|
185
188
|
t.MESSAGE_COMPLAINED,
|
|
186
189
|
k
|
|
187
|
-
), te = n(t.MESSAGE_CLICKED,
|
|
190
|
+
), te = n(t.MESSAGE_CLICKED, p), ne = n(t.MESSAGE_OPENED, p), ae = n(t.MESSAGE_READ, p), ie = n(t.MESSAGE_FAILED, f), ce = e.union([
|
|
188
191
|
w,
|
|
189
192
|
F,
|
|
190
193
|
H,
|
|
@@ -205,8 +208,8 @@ const t = v, C = 50, P = 64, _ = 2048, E = 256, N = 50, T = /^\d{1,12}(\.\d{1,8}
|
|
|
205
208
|
ae,
|
|
206
209
|
ie
|
|
207
210
|
]);
|
|
208
|
-
function
|
|
209
|
-
return e.parse(ce, JSON.parse(
|
|
211
|
+
function pe(r) {
|
|
212
|
+
return e.parse(ce, JSON.parse(r));
|
|
210
213
|
}
|
|
211
214
|
export {
|
|
212
215
|
X as AddToCartEventSchema,
|
|
@@ -233,12 +236,12 @@ export {
|
|
|
233
236
|
T as MONETARY_AMOUNT_REGEX,
|
|
234
237
|
ee as MessageBouncedEventSchema,
|
|
235
238
|
U as MessageBouncedPropertiesSchema,
|
|
236
|
-
|
|
239
|
+
j as MessageChannelSchema,
|
|
237
240
|
te as MessageClickedEventSchema,
|
|
238
241
|
oe as MessageComplainedEventSchema,
|
|
239
242
|
k as MessageComplainedPropertiesSchema,
|
|
240
243
|
Z as MessageDeliveredEventSchema,
|
|
241
|
-
|
|
244
|
+
p as MessageEventPropertiesSchema,
|
|
242
245
|
ie as MessageFailedEventSchema,
|
|
243
246
|
f as MessageFailedPropertiesSchema,
|
|
244
247
|
ne as MessageOpenedEventSchema,
|
|
@@ -256,7 +259,7 @@ export {
|
|
|
256
259
|
x as PurchaseProductSchema,
|
|
257
260
|
V as PurchasePropertiesSchema,
|
|
258
261
|
$ as QRScannedEventSchema,
|
|
259
|
-
|
|
262
|
+
G as QRScannedPropertiesSchema,
|
|
260
263
|
u as RFM_SEGMENT_KEYS,
|
|
261
264
|
q as RemoveFromCartEventSchema,
|
|
262
265
|
y as RemoveFromCartPropertiesSchema,
|
|
@@ -265,5 +268,5 @@ export {
|
|
|
265
268
|
D as SearchSubmittedPropertiesSchema,
|
|
266
269
|
Y as ViewCartEventSchema,
|
|
267
270
|
B as ViewCartPropertiesSchema,
|
|
268
|
-
|
|
271
|
+
pe as deserializeBeaconEvent
|
|
269
272
|
};
|
package/package.json
CHANGED