@simplybusiness/services 2.9.0 → 2.9.2
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/CHANGELOG.md +15 -0
- package/dist/cjs/index.js +35 -0
- package/dist/cjs/index.js.map +3 -3
- package/dist/cjs/meta.json +58 -16
- package/dist/cjs/snowplow/SnowplowContext.js +35 -0
- package/dist/cjs/snowplow/SnowplowContext.js.map +3 -3
- package/dist/cjs/snowplow/event-definitions/index.js +35 -0
- package/dist/cjs/snowplow/event-definitions/index.js.map +3 -3
- package/dist/cjs/snowplow/event-definitions/post-quote.js +58 -0
- package/dist/cjs/snowplow/event-definitions/post-quote.js.map +7 -0
- package/dist/cjs/snowplow/index.js +35 -0
- package/dist/cjs/snowplow/index.js.map +3 -3
- package/dist/cjs/utils/testUtils.js +35 -0
- package/dist/cjs/utils/testUtils.js.map +3 -3
- package/dist/esm/chunk-JGY244PW.js +38 -0
- package/dist/esm/chunk-JGY244PW.js.map +7 -0
- package/dist/esm/{chunk-OO2V7OSK.js → chunk-LTZVVHMJ.js} +2 -2
- package/dist/esm/{chunk-WZR7RV55.js → chunk-PTMH6WK3.js} +5 -1
- package/dist/esm/chunk-PTMH6WK3.js.map +7 -0
- package/dist/esm/index.js +3 -2
- package/dist/esm/meta.json +116 -44
- package/dist/esm/snowplow/SnowplowContext.js +3 -2
- package/dist/esm/snowplow/event-definitions/index.js +2 -1
- package/dist/esm/snowplow/event-definitions/post-quote.js +7 -0
- package/dist/esm/snowplow/event-definitions/post-quote.js.map +7 -0
- package/dist/esm/snowplow/index.js +3 -2
- package/dist/esm/utils/testUtils.js +3 -2
- package/dist/esm/utils/testUtils.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/snowplow/event-definitions/post-quote.d.ts +2 -0
- package/package.json +2 -2
- package/src/snowplow/event-definitions/index.ts +2 -0
- package/src/snowplow/event-definitions/post-quote.test.ts +52 -0
- package/src/snowplow/event-definitions/post-quote.ts +34 -0
- package/dist/esm/chunk-WZR7RV55.js.map +0 -7
- /package/dist/esm/{chunk-OO2V7OSK.js.map → chunk-LTZVVHMJ.js.map} +0 -0
package/dist/cjs/meta.json
CHANGED
|
@@ -64,6 +64,11 @@
|
|
|
64
64
|
"imports": [],
|
|
65
65
|
"format": "esm"
|
|
66
66
|
},
|
|
67
|
+
"src/snowplow/event-definitions/post-quote.ts": {
|
|
68
|
+
"bytes": 889,
|
|
69
|
+
"imports": [],
|
|
70
|
+
"format": "esm"
|
|
71
|
+
},
|
|
67
72
|
"src/snowplow/event-definitions/intervention.ts": {
|
|
68
73
|
"bytes": 1044,
|
|
69
74
|
"imports": [],
|
|
@@ -128,13 +133,18 @@
|
|
|
128
133
|
"format": "esm"
|
|
129
134
|
},
|
|
130
135
|
"src/snowplow/event-definitions/index.ts": {
|
|
131
|
-
"bytes":
|
|
136
|
+
"bytes": 1455,
|
|
132
137
|
"imports": [
|
|
133
138
|
{
|
|
134
139
|
"path": "src/snowplow/event-definitions/base.ts",
|
|
135
140
|
"kind": "import-statement",
|
|
136
141
|
"original": "./base"
|
|
137
142
|
},
|
|
143
|
+
{
|
|
144
|
+
"path": "src/snowplow/event-definitions/post-quote.ts",
|
|
145
|
+
"kind": "import-statement",
|
|
146
|
+
"original": "./post-quote"
|
|
147
|
+
},
|
|
138
148
|
{
|
|
139
149
|
"path": "src/snowplow/event-definitions/intervention.ts",
|
|
140
150
|
"kind": "import-statement",
|
|
@@ -350,7 +360,7 @@
|
|
|
350
360
|
"imports": [],
|
|
351
361
|
"exports": [],
|
|
352
362
|
"inputs": {},
|
|
353
|
-
"bytes":
|
|
363
|
+
"bytes": 80399
|
|
354
364
|
},
|
|
355
365
|
"dist/cjs/index.js": {
|
|
356
366
|
"imports": [
|
|
@@ -404,6 +414,9 @@
|
|
|
404
414
|
"src/snowplow/event-definitions/base.ts": {
|
|
405
415
|
"bytesInOutput": 1634
|
|
406
416
|
},
|
|
417
|
+
"src/snowplow/event-definitions/post-quote.ts": {
|
|
418
|
+
"bytesInOutput": 780
|
|
419
|
+
},
|
|
407
420
|
"src/snowplow/event-definitions/intervention.ts": {
|
|
408
421
|
"bytesInOutput": 654
|
|
409
422
|
},
|
|
@@ -429,7 +442,7 @@
|
|
|
429
442
|
"bytesInOutput": 379
|
|
430
443
|
},
|
|
431
444
|
"src/snowplow/event-definitions/index.ts": {
|
|
432
|
-
"bytesInOutput":
|
|
445
|
+
"bytesInOutput": 687
|
|
433
446
|
},
|
|
434
447
|
"src/snowplow/getSnowplowConfig.ts": {
|
|
435
448
|
"bytesInOutput": 117
|
|
@@ -441,7 +454,7 @@
|
|
|
441
454
|
"bytesInOutput": 1186
|
|
442
455
|
}
|
|
443
456
|
},
|
|
444
|
-
"bytes":
|
|
457
|
+
"bytes": 43593
|
|
445
458
|
},
|
|
446
459
|
"dist/cjs/utils/index.js.map": {
|
|
447
460
|
"imports": [],
|
|
@@ -507,7 +520,7 @@
|
|
|
507
520
|
"imports": [],
|
|
508
521
|
"exports": [],
|
|
509
522
|
"inputs": {},
|
|
510
|
-
"bytes":
|
|
523
|
+
"bytes": 75434
|
|
511
524
|
},
|
|
512
525
|
"dist/cjs/utils/testUtils.js": {
|
|
513
526
|
"imports": [
|
|
@@ -566,6 +579,9 @@
|
|
|
566
579
|
"src/snowplow/event-definitions/base.ts": {
|
|
567
580
|
"bytesInOutput": 1634
|
|
568
581
|
},
|
|
582
|
+
"src/snowplow/event-definitions/post-quote.ts": {
|
|
583
|
+
"bytesInOutput": 780
|
|
584
|
+
},
|
|
569
585
|
"src/snowplow/event-definitions/intervention.ts": {
|
|
570
586
|
"bytesInOutput": 654
|
|
571
587
|
},
|
|
@@ -591,7 +607,7 @@
|
|
|
591
607
|
"bytesInOutput": 379
|
|
592
608
|
},
|
|
593
609
|
"src/snowplow/event-definitions/index.ts": {
|
|
594
|
-
"bytesInOutput":
|
|
610
|
+
"bytesInOutput": 687
|
|
595
611
|
},
|
|
596
612
|
"src/snowplow/Snowplow.ts": {
|
|
597
613
|
"bytesInOutput": 4556
|
|
@@ -600,7 +616,7 @@
|
|
|
600
616
|
"bytesInOutput": 119
|
|
601
617
|
}
|
|
602
618
|
},
|
|
603
|
-
"bytes":
|
|
619
|
+
"bytes": 41119
|
|
604
620
|
},
|
|
605
621
|
"dist/cjs/snowplow/Snowplow.js.map": {
|
|
606
622
|
"imports": [],
|
|
@@ -694,7 +710,7 @@
|
|
|
694
710
|
"imports": [],
|
|
695
711
|
"exports": [],
|
|
696
712
|
"inputs": {},
|
|
697
|
-
"bytes":
|
|
713
|
+
"bytes": 72062
|
|
698
714
|
},
|
|
699
715
|
"dist/cjs/snowplow/index.js": {
|
|
700
716
|
"imports": [
|
|
@@ -737,6 +753,9 @@
|
|
|
737
753
|
"src/snowplow/event-definitions/base.ts": {
|
|
738
754
|
"bytesInOutput": 1634
|
|
739
755
|
},
|
|
756
|
+
"src/snowplow/event-definitions/post-quote.ts": {
|
|
757
|
+
"bytesInOutput": 780
|
|
758
|
+
},
|
|
740
759
|
"src/snowplow/event-definitions/intervention.ts": {
|
|
741
760
|
"bytesInOutput": 654
|
|
742
761
|
},
|
|
@@ -762,7 +781,7 @@
|
|
|
762
781
|
"bytesInOutput": 379
|
|
763
782
|
},
|
|
764
783
|
"src/snowplow/event-definitions/index.ts": {
|
|
765
|
-
"bytesInOutput":
|
|
784
|
+
"bytesInOutput": 687
|
|
766
785
|
},
|
|
767
786
|
"src/snowplow/getSnowplowConfig.ts": {
|
|
768
787
|
"bytesInOutput": 117
|
|
@@ -774,7 +793,7 @@
|
|
|
774
793
|
"bytesInOutput": 1186
|
|
775
794
|
}
|
|
776
795
|
},
|
|
777
|
-
"bytes":
|
|
796
|
+
"bytes": 39698
|
|
778
797
|
},
|
|
779
798
|
"dist/cjs/snowplow/types.js.map": {
|
|
780
799
|
"imports": [],
|
|
@@ -797,7 +816,7 @@
|
|
|
797
816
|
"imports": [],
|
|
798
817
|
"exports": [],
|
|
799
818
|
"inputs": {},
|
|
800
|
-
"bytes":
|
|
819
|
+
"bytes": 71309
|
|
801
820
|
},
|
|
802
821
|
"dist/cjs/snowplow/SnowplowContext.js": {
|
|
803
822
|
"imports": [
|
|
@@ -840,6 +859,9 @@
|
|
|
840
859
|
"src/snowplow/event-definitions/base.ts": {
|
|
841
860
|
"bytesInOutput": 1634
|
|
842
861
|
},
|
|
862
|
+
"src/snowplow/event-definitions/post-quote.ts": {
|
|
863
|
+
"bytesInOutput": 780
|
|
864
|
+
},
|
|
843
865
|
"src/snowplow/event-definitions/intervention.ts": {
|
|
844
866
|
"bytesInOutput": 654
|
|
845
867
|
},
|
|
@@ -865,13 +887,13 @@
|
|
|
865
887
|
"bytesInOutput": 379
|
|
866
888
|
},
|
|
867
889
|
"src/snowplow/event-definitions/index.ts": {
|
|
868
|
-
"bytesInOutput":
|
|
890
|
+
"bytesInOutput": 687
|
|
869
891
|
},
|
|
870
892
|
"src/snowplow/Snowplow.ts": {
|
|
871
893
|
"bytesInOutput": 4556
|
|
872
894
|
}
|
|
873
895
|
},
|
|
874
|
-
"bytes":
|
|
896
|
+
"bytes": 39077
|
|
875
897
|
},
|
|
876
898
|
"dist/cjs/snowplow/event-definitions/base.js.map": {
|
|
877
899
|
"imports": [],
|
|
@@ -911,7 +933,7 @@
|
|
|
911
933
|
"imports": [],
|
|
912
934
|
"exports": [],
|
|
913
935
|
"inputs": {},
|
|
914
|
-
"bytes":
|
|
936
|
+
"bytes": 56644
|
|
915
937
|
},
|
|
916
938
|
"dist/cjs/snowplow/event-definitions/index.js": {
|
|
917
939
|
"imports": [],
|
|
@@ -919,11 +941,14 @@
|
|
|
919
941
|
"entryPoint": "src/snowplow/event-definitions/index.ts",
|
|
920
942
|
"inputs": {
|
|
921
943
|
"src/snowplow/event-definitions/index.ts": {
|
|
922
|
-
"bytesInOutput":
|
|
944
|
+
"bytesInOutput": 1132
|
|
923
945
|
},
|
|
924
946
|
"src/snowplow/event-definitions/base.ts": {
|
|
925
947
|
"bytesInOutput": 1634
|
|
926
948
|
},
|
|
949
|
+
"src/snowplow/event-definitions/post-quote.ts": {
|
|
950
|
+
"bytesInOutput": 780
|
|
951
|
+
},
|
|
927
952
|
"src/snowplow/event-definitions/intervention.ts": {
|
|
928
953
|
"bytesInOutput": 654
|
|
929
954
|
},
|
|
@@ -952,7 +977,7 @@
|
|
|
952
977
|
"bytesInOutput": 379
|
|
953
978
|
}
|
|
954
979
|
},
|
|
955
|
-
"bytes":
|
|
980
|
+
"bytes": 31669
|
|
956
981
|
},
|
|
957
982
|
"dist/cjs/snowplow/event-definitions/intervention.js.map": {
|
|
958
983
|
"imports": [],
|
|
@@ -991,6 +1016,23 @@
|
|
|
991
1016
|
},
|
|
992
1017
|
"bytes": 2994
|
|
993
1018
|
},
|
|
1019
|
+
"dist/cjs/snowplow/event-definitions/post-quote.js.map": {
|
|
1020
|
+
"imports": [],
|
|
1021
|
+
"exports": [],
|
|
1022
|
+
"inputs": {},
|
|
1023
|
+
"bytes": 1641
|
|
1024
|
+
},
|
|
1025
|
+
"dist/cjs/snowplow/event-definitions/post-quote.js": {
|
|
1026
|
+
"imports": [],
|
|
1027
|
+
"exports": [],
|
|
1028
|
+
"entryPoint": "src/snowplow/event-definitions/post-quote.ts",
|
|
1029
|
+
"inputs": {
|
|
1030
|
+
"src/snowplow/event-definitions/post-quote.ts": {
|
|
1031
|
+
"bytesInOutput": 956
|
|
1032
|
+
}
|
|
1033
|
+
},
|
|
1034
|
+
"bytes": 1843
|
|
1035
|
+
},
|
|
994
1036
|
"dist/cjs/snowplow/event-definitions/qcp.js.map": {
|
|
995
1037
|
"imports": [],
|
|
996
1038
|
"exports": [],
|
|
@@ -162,6 +162,40 @@ var baseEventDefinitions = [
|
|
|
162
162
|
}
|
|
163
163
|
];
|
|
164
164
|
|
|
165
|
+
// src/snowplow/event-definitions/post-quote.ts
|
|
166
|
+
var postQuoteEventDefinitions = [
|
|
167
|
+
{
|
|
168
|
+
name: "cancelAnytimeClicked",
|
|
169
|
+
type: "structured",
|
|
170
|
+
makePayload: (params) => ({
|
|
171
|
+
category: "combined_payment_page_selection",
|
|
172
|
+
action: "cancel_anytime",
|
|
173
|
+
label: params?.label,
|
|
174
|
+
property: window.location.href
|
|
175
|
+
})
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
name: "checkoutButtonClicked",
|
|
179
|
+
type: "structured",
|
|
180
|
+
makePayload: (params) => ({
|
|
181
|
+
category: "payment_page",
|
|
182
|
+
action: "checkout_button_clicked",
|
|
183
|
+
label: params?.label,
|
|
184
|
+
property: window.location.href
|
|
185
|
+
})
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
name: "paymentOptionClicked",
|
|
189
|
+
type: "structured",
|
|
190
|
+
makePayload: (params) => ({
|
|
191
|
+
category: "payment_option",
|
|
192
|
+
action: "payment_option_clicked",
|
|
193
|
+
label: params?.label,
|
|
194
|
+
property: window.location.href
|
|
195
|
+
})
|
|
196
|
+
}
|
|
197
|
+
];
|
|
198
|
+
|
|
165
199
|
// src/snowplow/event-definitions/intervention.ts
|
|
166
200
|
var interventionEventDefinitions = [
|
|
167
201
|
{
|
|
@@ -1194,6 +1228,7 @@ var referralEventDefinitions = [
|
|
|
1194
1228
|
// src/snowplow/event-definitions/index.ts
|
|
1195
1229
|
var eventDefinitions = [
|
|
1196
1230
|
...baseEventDefinitions,
|
|
1231
|
+
...postQuoteEventDefinitions,
|
|
1197
1232
|
...qcpEventDefinitions,
|
|
1198
1233
|
...referralEventDefinitions,
|
|
1199
1234
|
...interventionEventDefinitions,
|