@simplybusiness/services 2.9.2 → 2.9.3
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 +7 -0
- package/dist/cjs/index.js +33 -0
- package/dist/cjs/index.js.map +2 -2
- package/dist/cjs/meta.json +28 -28
- package/dist/cjs/snowplow/SnowplowContext.js +33 -0
- package/dist/cjs/snowplow/SnowplowContext.js.map +2 -2
- package/dist/cjs/snowplow/event-definitions/index.js +33 -0
- package/dist/cjs/snowplow/event-definitions/index.js.map +2 -2
- package/dist/cjs/snowplow/event-definitions/personalised_cover.js +13 -0
- package/dist/cjs/snowplow/event-definitions/personalised_cover.js.map +2 -2
- package/dist/cjs/snowplow/event-definitions/post-quote.js +20 -0
- package/dist/cjs/snowplow/event-definitions/post-quote.js.map +2 -2
- package/dist/cjs/snowplow/index.js +33 -0
- package/dist/cjs/snowplow/index.js.map +2 -2
- package/dist/cjs/utils/testUtils.js +33 -0
- package/dist/cjs/utils/testUtils.js.map +2 -2
- package/dist/esm/{chunk-JGY244PW.js → chunk-FA7JCHOU.js} +21 -1
- package/dist/esm/{chunk-JGY244PW.js.map → chunk-FA7JCHOU.js.map} +2 -2
- package/dist/esm/{chunk-PTMH6WK3.js → chunk-SDHBYTZT.js} +3 -3
- package/dist/esm/{chunk-HFULBVWF.js → chunk-SSURKO77.js} +14 -1
- package/dist/esm/{chunk-HFULBVWF.js.map → chunk-SSURKO77.js.map} +2 -2
- package/dist/esm/{chunk-LTZVVHMJ.js → chunk-XRDMRHVL.js} +2 -2
- package/dist/esm/index.js +4 -4
- package/dist/esm/meta.json +40 -40
- package/dist/esm/snowplow/SnowplowContext.js +4 -4
- package/dist/esm/snowplow/event-definitions/index.js +3 -3
- package/dist/esm/snowplow/event-definitions/personalised_cover.js +1 -1
- package/dist/esm/snowplow/event-definitions/post-quote.js +1 -1
- package/dist/esm/snowplow/index.js +4 -4
- package/dist/esm/utils/testUtils.js +4 -4
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/snowplow/event-definitions/personalised_cover.test.ts +44 -0
- package/src/snowplow/event-definitions/personalised_cover.ts +16 -0
- package/src/snowplow/event-definitions/post-quote.test.ts +32 -0
- package/src/snowplow/event-definitions/post-quote.ts +20 -0
- /package/dist/esm/{chunk-PTMH6WK3.js.map → chunk-SDHBYTZT.js.map} +0 -0
- /package/dist/esm/{chunk-LTZVVHMJ.js.map → chunk-XRDMRHVL.js.map} +0 -0
package/dist/cjs/meta.json
CHANGED
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"format": "esm"
|
|
66
66
|
},
|
|
67
67
|
"src/snowplow/event-definitions/post-quote.ts": {
|
|
68
|
-
"bytes":
|
|
68
|
+
"bytes": 1483,
|
|
69
69
|
"imports": [],
|
|
70
70
|
"format": "esm"
|
|
71
71
|
},
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"format": "esm"
|
|
76
76
|
},
|
|
77
77
|
"src/snowplow/event-definitions/personalised_cover.ts": {
|
|
78
|
-
"bytes":
|
|
78
|
+
"bytes": 3184,
|
|
79
79
|
"imports": [
|
|
80
80
|
{
|
|
81
81
|
"path": "src/utils/index.ts",
|
|
@@ -360,7 +360,7 @@
|
|
|
360
360
|
"imports": [],
|
|
361
361
|
"exports": [],
|
|
362
362
|
"inputs": {},
|
|
363
|
-
"bytes":
|
|
363
|
+
"bytes": 82023
|
|
364
364
|
},
|
|
365
365
|
"dist/cjs/index.js": {
|
|
366
366
|
"imports": [
|
|
@@ -415,13 +415,13 @@
|
|
|
415
415
|
"bytesInOutput": 1634
|
|
416
416
|
},
|
|
417
417
|
"src/snowplow/event-definitions/post-quote.ts": {
|
|
418
|
-
"bytesInOutput":
|
|
418
|
+
"bytesInOutput": 1370
|
|
419
419
|
},
|
|
420
420
|
"src/snowplow/event-definitions/intervention.ts": {
|
|
421
421
|
"bytesInOutput": 654
|
|
422
422
|
},
|
|
423
423
|
"src/snowplow/event-definitions/personalised_cover.ts": {
|
|
424
|
-
"bytesInOutput":
|
|
424
|
+
"bytesInOutput": 2112
|
|
425
425
|
},
|
|
426
426
|
"src/snowplow/event-definitions/qcp.ts": {
|
|
427
427
|
"bytesInOutput": 8839
|
|
@@ -454,7 +454,7 @@
|
|
|
454
454
|
"bytesInOutput": 1186
|
|
455
455
|
}
|
|
456
456
|
},
|
|
457
|
-
"bytes":
|
|
457
|
+
"bytes": 44569
|
|
458
458
|
},
|
|
459
459
|
"dist/cjs/utils/index.js.map": {
|
|
460
460
|
"imports": [],
|
|
@@ -520,7 +520,7 @@
|
|
|
520
520
|
"imports": [],
|
|
521
521
|
"exports": [],
|
|
522
522
|
"inputs": {},
|
|
523
|
-
"bytes":
|
|
523
|
+
"bytes": 77058
|
|
524
524
|
},
|
|
525
525
|
"dist/cjs/utils/testUtils.js": {
|
|
526
526
|
"imports": [
|
|
@@ -580,13 +580,13 @@
|
|
|
580
580
|
"bytesInOutput": 1634
|
|
581
581
|
},
|
|
582
582
|
"src/snowplow/event-definitions/post-quote.ts": {
|
|
583
|
-
"bytesInOutput":
|
|
583
|
+
"bytesInOutput": 1370
|
|
584
584
|
},
|
|
585
585
|
"src/snowplow/event-definitions/intervention.ts": {
|
|
586
586
|
"bytesInOutput": 654
|
|
587
587
|
},
|
|
588
588
|
"src/snowplow/event-definitions/personalised_cover.ts": {
|
|
589
|
-
"bytesInOutput":
|
|
589
|
+
"bytesInOutput": 2112
|
|
590
590
|
},
|
|
591
591
|
"src/snowplow/event-definitions/qcp.ts": {
|
|
592
592
|
"bytesInOutput": 8839
|
|
@@ -616,7 +616,7 @@
|
|
|
616
616
|
"bytesInOutput": 119
|
|
617
617
|
}
|
|
618
618
|
},
|
|
619
|
-
"bytes":
|
|
619
|
+
"bytes": 42095
|
|
620
620
|
},
|
|
621
621
|
"dist/cjs/snowplow/Snowplow.js.map": {
|
|
622
622
|
"imports": [],
|
|
@@ -710,7 +710,7 @@
|
|
|
710
710
|
"imports": [],
|
|
711
711
|
"exports": [],
|
|
712
712
|
"inputs": {},
|
|
713
|
-
"bytes":
|
|
713
|
+
"bytes": 73686
|
|
714
714
|
},
|
|
715
715
|
"dist/cjs/snowplow/index.js": {
|
|
716
716
|
"imports": [
|
|
@@ -754,13 +754,13 @@
|
|
|
754
754
|
"bytesInOutput": 1634
|
|
755
755
|
},
|
|
756
756
|
"src/snowplow/event-definitions/post-quote.ts": {
|
|
757
|
-
"bytesInOutput":
|
|
757
|
+
"bytesInOutput": 1370
|
|
758
758
|
},
|
|
759
759
|
"src/snowplow/event-definitions/intervention.ts": {
|
|
760
760
|
"bytesInOutput": 654
|
|
761
761
|
},
|
|
762
762
|
"src/snowplow/event-definitions/personalised_cover.ts": {
|
|
763
|
-
"bytesInOutput":
|
|
763
|
+
"bytesInOutput": 2112
|
|
764
764
|
},
|
|
765
765
|
"src/snowplow/event-definitions/qcp.ts": {
|
|
766
766
|
"bytesInOutput": 8839
|
|
@@ -793,7 +793,7 @@
|
|
|
793
793
|
"bytesInOutput": 1186
|
|
794
794
|
}
|
|
795
795
|
},
|
|
796
|
-
"bytes":
|
|
796
|
+
"bytes": 40674
|
|
797
797
|
},
|
|
798
798
|
"dist/cjs/snowplow/types.js.map": {
|
|
799
799
|
"imports": [],
|
|
@@ -816,7 +816,7 @@
|
|
|
816
816
|
"imports": [],
|
|
817
817
|
"exports": [],
|
|
818
818
|
"inputs": {},
|
|
819
|
-
"bytes":
|
|
819
|
+
"bytes": 72933
|
|
820
820
|
},
|
|
821
821
|
"dist/cjs/snowplow/SnowplowContext.js": {
|
|
822
822
|
"imports": [
|
|
@@ -860,13 +860,13 @@
|
|
|
860
860
|
"bytesInOutput": 1634
|
|
861
861
|
},
|
|
862
862
|
"src/snowplow/event-definitions/post-quote.ts": {
|
|
863
|
-
"bytesInOutput":
|
|
863
|
+
"bytesInOutput": 1370
|
|
864
864
|
},
|
|
865
865
|
"src/snowplow/event-definitions/intervention.ts": {
|
|
866
866
|
"bytesInOutput": 654
|
|
867
867
|
},
|
|
868
868
|
"src/snowplow/event-definitions/personalised_cover.ts": {
|
|
869
|
-
"bytesInOutput":
|
|
869
|
+
"bytesInOutput": 2112
|
|
870
870
|
},
|
|
871
871
|
"src/snowplow/event-definitions/qcp.ts": {
|
|
872
872
|
"bytesInOutput": 8839
|
|
@@ -893,7 +893,7 @@
|
|
|
893
893
|
"bytesInOutput": 4556
|
|
894
894
|
}
|
|
895
895
|
},
|
|
896
|
-
"bytes":
|
|
896
|
+
"bytes": 40053
|
|
897
897
|
},
|
|
898
898
|
"dist/cjs/snowplow/event-definitions/base.js.map": {
|
|
899
899
|
"imports": [],
|
|
@@ -933,7 +933,7 @@
|
|
|
933
933
|
"imports": [],
|
|
934
934
|
"exports": [],
|
|
935
935
|
"inputs": {},
|
|
936
|
-
"bytes":
|
|
936
|
+
"bytes": 58268
|
|
937
937
|
},
|
|
938
938
|
"dist/cjs/snowplow/event-definitions/index.js": {
|
|
939
939
|
"imports": [],
|
|
@@ -947,7 +947,7 @@
|
|
|
947
947
|
"bytesInOutput": 1634
|
|
948
948
|
},
|
|
949
949
|
"src/snowplow/event-definitions/post-quote.ts": {
|
|
950
|
-
"bytesInOutput":
|
|
950
|
+
"bytesInOutput": 1370
|
|
951
951
|
},
|
|
952
952
|
"src/snowplow/event-definitions/intervention.ts": {
|
|
953
953
|
"bytesInOutput": 654
|
|
@@ -956,7 +956,7 @@
|
|
|
956
956
|
"bytesInOutput": 70
|
|
957
957
|
},
|
|
958
958
|
"src/snowplow/event-definitions/personalised_cover.ts": {
|
|
959
|
-
"bytesInOutput":
|
|
959
|
+
"bytesInOutput": 2112
|
|
960
960
|
},
|
|
961
961
|
"src/snowplow/event-definitions/qcp.ts": {
|
|
962
962
|
"bytesInOutput": 8839
|
|
@@ -977,7 +977,7 @@
|
|
|
977
977
|
"bytesInOutput": 379
|
|
978
978
|
}
|
|
979
979
|
},
|
|
980
|
-
"bytes":
|
|
980
|
+
"bytes": 32645
|
|
981
981
|
},
|
|
982
982
|
"dist/cjs/snowplow/event-definitions/intervention.js.map": {
|
|
983
983
|
"imports": [],
|
|
@@ -1000,7 +1000,7 @@
|
|
|
1000
1000
|
"imports": [],
|
|
1001
1001
|
"exports": [],
|
|
1002
1002
|
"inputs": {},
|
|
1003
|
-
"bytes":
|
|
1003
|
+
"bytes": 6080
|
|
1004
1004
|
},
|
|
1005
1005
|
"dist/cjs/snowplow/event-definitions/personalised_cover.js": {
|
|
1006
1006
|
"imports": [],
|
|
@@ -1008,19 +1008,19 @@
|
|
|
1008
1008
|
"entryPoint": "src/snowplow/event-definitions/personalised_cover.ts",
|
|
1009
1009
|
"inputs": {
|
|
1010
1010
|
"src/snowplow/event-definitions/personalised_cover.ts": {
|
|
1011
|
-
"bytesInOutput":
|
|
1011
|
+
"bytesInOutput": 2328
|
|
1012
1012
|
},
|
|
1013
1013
|
"src/utils/text.ts": {
|
|
1014
1014
|
"bytesInOutput": 70
|
|
1015
1015
|
}
|
|
1016
1016
|
},
|
|
1017
|
-
"bytes":
|
|
1017
|
+
"bytes": 3380
|
|
1018
1018
|
},
|
|
1019
1019
|
"dist/cjs/snowplow/event-definitions/post-quote.js.map": {
|
|
1020
1020
|
"imports": [],
|
|
1021
1021
|
"exports": [],
|
|
1022
1022
|
"inputs": {},
|
|
1023
|
-
"bytes":
|
|
1023
|
+
"bytes": 2579
|
|
1024
1024
|
},
|
|
1025
1025
|
"dist/cjs/snowplow/event-definitions/post-quote.js": {
|
|
1026
1026
|
"imports": [],
|
|
@@ -1028,10 +1028,10 @@
|
|
|
1028
1028
|
"entryPoint": "src/snowplow/event-definitions/post-quote.ts",
|
|
1029
1029
|
"inputs": {
|
|
1030
1030
|
"src/snowplow/event-definitions/post-quote.ts": {
|
|
1031
|
-
"bytesInOutput":
|
|
1031
|
+
"bytesInOutput": 1546
|
|
1032
1032
|
}
|
|
1033
1033
|
},
|
|
1034
|
-
"bytes":
|
|
1034
|
+
"bytes": 2433
|
|
1035
1035
|
},
|
|
1036
1036
|
"dist/cjs/snowplow/event-definitions/qcp.js.map": {
|
|
1037
1037
|
"imports": [],
|
|
@@ -193,6 +193,26 @@ var postQuoteEventDefinitions = [
|
|
|
193
193
|
label: params?.label,
|
|
194
194
|
property: window.location.href
|
|
195
195
|
})
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
name: "goBackToQuoteSelectionClicked",
|
|
199
|
+
type: "structured",
|
|
200
|
+
makePayload: () => ({
|
|
201
|
+
category: "payment_page_edit",
|
|
202
|
+
action: "go_back_to_quote_selection_clicked",
|
|
203
|
+
label: "go_back_to_quote_selection_clicked",
|
|
204
|
+
property: window.location.href
|
|
205
|
+
})
|
|
206
|
+
},
|
|
207
|
+
{
|
|
208
|
+
name: "cancelReturnToCheckoutButtonClicked",
|
|
209
|
+
type: "structured",
|
|
210
|
+
makePayload: () => ({
|
|
211
|
+
category: "payment_page_edit",
|
|
212
|
+
action: "cancel_return_to_checkout_button_clicked",
|
|
213
|
+
label: "cancel_return_to_checkout_button_clicked",
|
|
214
|
+
property: window.location.href
|
|
215
|
+
})
|
|
196
216
|
}
|
|
197
217
|
];
|
|
198
218
|
|
|
@@ -299,6 +319,19 @@ var personalisedCoverEventDefinitions = [
|
|
|
299
319
|
property
|
|
300
320
|
};
|
|
301
321
|
}
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
name: "personalisedCoverSectionViewed",
|
|
325
|
+
type: "structured",
|
|
326
|
+
makePayload: (params) => {
|
|
327
|
+
const { context, hasSuggestions } = params;
|
|
328
|
+
return {
|
|
329
|
+
category: "personalised_cover",
|
|
330
|
+
action: "personalised_cover_section_viewed",
|
|
331
|
+
label: context.vertical,
|
|
332
|
+
property: hasSuggestions ? "has_suggestions" : "no_suggestions"
|
|
333
|
+
};
|
|
334
|
+
}
|
|
302
335
|
}
|
|
303
336
|
];
|
|
304
337
|
|