@simplybusiness/services 1.6.10 → 1.6.11

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 CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.6.11
4
+
5
+ ### Patch Changes
6
+
7
+ - a5396bb: Add checkboxFormQuestionAnswered Snowplow event to RecommendationCard for tracking card selection
8
+ - Updated dependencies [3e7bebf]
9
+ - @simplybusiness/mobius@6.10.5
10
+
3
11
  ## 1.6.10
4
12
 
5
13
  ### Patch Changes
package/dist/cjs/index.js CHANGED
@@ -23,6 +23,7 @@ __export(index_exports, {
23
23
  AddressLookup: () => AddressLookup,
24
24
  Snowplow: () => Snowplow,
25
25
  SnowplowProvider: () => SnowplowProvider,
26
+ coverageSelectionPageEvents: () => coverageSelectionPageEvents,
26
27
  eventDefinitions: () => eventDefinitions,
27
28
  getAirbrake: () => getAirbrake,
28
29
  getAirbrakeEnvironment: () => getAirbrakeEnvironment,
@@ -1145,6 +1146,30 @@ var questionnaireEventDefinitions = [
1145
1146
  }
1146
1147
  ];
1147
1148
 
1149
+ // src/snowplow/event-definitions/coverage-selection.ts
1150
+ var coverageSelectionEventDefinitions = [
1151
+ {
1152
+ name: "checkboxFormQuestionAnswered",
1153
+ type: "unstructured",
1154
+ makePayload: (params) => {
1155
+ const { context, pageIndex, pageName, sectionName, question, answer } = params;
1156
+ return {
1157
+ schema: "iglu:com.simplybusiness/checkbox_form_question_answered/jsonschema/1-0-1",
1158
+ data: {
1159
+ site: context.site,
1160
+ vertical: context.vertical ?? "",
1161
+ journey_id: context.journeyId,
1162
+ page_index: pageIndex,
1163
+ page_name: pageName,
1164
+ section_name: sectionName,
1165
+ question,
1166
+ answer
1167
+ }
1168
+ };
1169
+ }
1170
+ }
1171
+ ];
1172
+
1148
1173
  // src/snowplow/event-definitions/referral.ts
1149
1174
  var referralEventDefinitions = [
1150
1175
  {
@@ -1170,7 +1195,8 @@ var eventDefinitions = [
1170
1195
  ...referralEventDefinitions,
1171
1196
  ...interventionEventDefinitions,
1172
1197
  ...questionnaireEventDefinitions,
1173
- ...personalisedCoverEventDefinitions
1198
+ ...personalisedCoverEventDefinitions,
1199
+ ...coverageSelectionEventDefinitions
1174
1200
  ];
1175
1201
  var qcpPageEvents = [...baseEventDefinitions, ...qcpEventDefinitions];
1176
1202
  var referralPageEvents = [
@@ -1183,6 +1209,10 @@ var personalisedCoverPageEvents = [
1183
1209
  ];
1184
1210
  var interventionPageEvents = [...interventionEventDefinitions];
1185
1211
  var questionnairePageEvents = [...questionnaireEventDefinitions];
1212
+ var coverageSelectionPageEvents = [
1213
+ ...baseEventDefinitions,
1214
+ ...coverageSelectionEventDefinitions
1215
+ ];
1186
1216
 
1187
1217
  // src/snowplow/getSnowplowConfig.ts
1188
1218
  var getSnowplowConfig = (pageData) => pageData.scripts?.find(({ metadata }) => metadata.name === "snowplow")?.props;
@@ -127,13 +127,18 @@
127
127
  ],
128
128
  "format": "esm"
129
129
  },
130
+ "src/snowplow/event-definitions/coverage-selection.ts": {
131
+ "bytes": 1016,
132
+ "imports": [],
133
+ "format": "esm"
134
+ },
130
135
  "src/snowplow/event-definitions/referral.ts": {
131
136
  "bytes": 509,
132
137
  "imports": [],
133
138
  "format": "esm"
134
139
  },
135
140
  "src/snowplow/event-definitions/index.ts": {
136
- "bytes": 1251,
141
+ "bytes": 1481,
137
142
  "imports": [
138
143
  {
139
144
  "path": "src/snowplow/event-definitions/base.ts",
@@ -160,6 +165,11 @@
160
165
  "kind": "import-statement",
161
166
  "original": "./questionnaire/questionnaire"
162
167
  },
168
+ {
169
+ "path": "src/snowplow/event-definitions/coverage-selection.ts",
170
+ "kind": "import-statement",
171
+ "original": "./coverage-selection"
172
+ },
163
173
  {
164
174
  "path": "src/snowplow/event-definitions/referral.ts",
165
175
  "kind": "import-statement",
@@ -322,7 +332,7 @@
322
332
  "entryPoint": "index.tsx",
323
333
  "inputs": {
324
334
  "index.tsx": {
325
- "bytesInOutput": 827
335
+ "bytesInOutput": 893
326
336
  },
327
337
  "src/address-lookup/index.ts": {
328
338
  "bytesInOutput": 2572
@@ -360,11 +370,14 @@
360
370
  "src/snowplow/event-definitions/questionnaire/questionnaire.ts": {
361
371
  "bytesInOutput": 5320
362
372
  },
373
+ "src/snowplow/event-definitions/coverage-selection.ts": {
374
+ "bytesInOutput": 639
375
+ },
363
376
  "src/snowplow/event-definitions/referral.ts": {
364
377
  "bytesInOutput": 379
365
378
  },
366
379
  "src/snowplow/event-definitions/index.ts": {
367
- "bytesInOutput": 615
380
+ "bytesInOutput": 760
368
381
  },
369
382
  "src/snowplow/getSnowplowConfig.ts": {
370
383
  "bytesInOutput": 117
@@ -376,7 +389,7 @@
376
389
  "bytesInOutput": 1196
377
390
  }
378
391
  },
379
- "bytes": 37790
392
+ "bytes": 38697
380
393
  }
381
394
  }
382
395
  }
package/dist/esm/index.js CHANGED
@@ -1104,6 +1104,30 @@ var questionnaireEventDefinitions = [
1104
1104
  }
1105
1105
  ];
1106
1106
 
1107
+ // src/snowplow/event-definitions/coverage-selection.ts
1108
+ var coverageSelectionEventDefinitions = [
1109
+ {
1110
+ name: "checkboxFormQuestionAnswered",
1111
+ type: "unstructured",
1112
+ makePayload: (params) => {
1113
+ const { context, pageIndex, pageName, sectionName, question, answer } = params;
1114
+ return {
1115
+ schema: "iglu:com.simplybusiness/checkbox_form_question_answered/jsonschema/1-0-1",
1116
+ data: {
1117
+ site: context.site,
1118
+ vertical: context.vertical ?? "",
1119
+ journey_id: context.journeyId,
1120
+ page_index: pageIndex,
1121
+ page_name: pageName,
1122
+ section_name: sectionName,
1123
+ question,
1124
+ answer
1125
+ }
1126
+ };
1127
+ }
1128
+ }
1129
+ ];
1130
+
1107
1131
  // src/snowplow/event-definitions/referral.ts
1108
1132
  var referralEventDefinitions = [
1109
1133
  {
@@ -1129,7 +1153,8 @@ var eventDefinitions = [
1129
1153
  ...referralEventDefinitions,
1130
1154
  ...interventionEventDefinitions,
1131
1155
  ...questionnaireEventDefinitions,
1132
- ...personalisedCoverEventDefinitions
1156
+ ...personalisedCoverEventDefinitions,
1157
+ ...coverageSelectionEventDefinitions
1133
1158
  ];
1134
1159
  var qcpPageEvents = [...baseEventDefinitions, ...qcpEventDefinitions];
1135
1160
  var referralPageEvents = [
@@ -1142,6 +1167,10 @@ var personalisedCoverPageEvents = [
1142
1167
  ];
1143
1168
  var interventionPageEvents = [...interventionEventDefinitions];
1144
1169
  var questionnairePageEvents = [...questionnaireEventDefinitions];
1170
+ var coverageSelectionPageEvents = [
1171
+ ...baseEventDefinitions,
1172
+ ...coverageSelectionEventDefinitions
1173
+ ];
1145
1174
 
1146
1175
  // src/snowplow/getSnowplowConfig.ts
1147
1176
  var getSnowplowConfig = (pageData) => pageData.scripts?.find(({ metadata }) => metadata.name === "snowplow")?.props;
@@ -1339,6 +1368,7 @@ export {
1339
1368
  AddressLookup,
1340
1369
  Snowplow,
1341
1370
  SnowplowProvider,
1371
+ coverageSelectionPageEvents,
1342
1372
  eventDefinitions,
1343
1373
  getAirbrake,
1344
1374
  getAirbrakeEnvironment,
@@ -127,13 +127,18 @@
127
127
  ],
128
128
  "format": "esm"
129
129
  },
130
+ "src/snowplow/event-definitions/coverage-selection.ts": {
131
+ "bytes": 1016,
132
+ "imports": [],
133
+ "format": "esm"
134
+ },
130
135
  "src/snowplow/event-definitions/referral.ts": {
131
136
  "bytes": 509,
132
137
  "imports": [],
133
138
  "format": "esm"
134
139
  },
135
140
  "src/snowplow/event-definitions/index.ts": {
136
- "bytes": 1251,
141
+ "bytes": 1481,
137
142
  "imports": [
138
143
  {
139
144
  "path": "src/snowplow/event-definitions/base.ts",
@@ -160,6 +165,11 @@
160
165
  "kind": "import-statement",
161
166
  "original": "./questionnaire/questionnaire"
162
167
  },
168
+ {
169
+ "path": "src/snowplow/event-definitions/coverage-selection.ts",
170
+ "kind": "import-statement",
171
+ "original": "./coverage-selection"
172
+ },
163
173
  {
164
174
  "path": "src/snowplow/event-definitions/referral.ts",
165
175
  "kind": "import-statement",
@@ -322,6 +332,7 @@
322
332
  "AddressLookup",
323
333
  "Snowplow",
324
334
  "SnowplowProvider",
335
+ "coverageSelectionPageEvents",
325
336
  "eventDefinitions",
326
337
  "getAirbrake",
327
338
  "getAirbrakeEnvironment",
@@ -374,11 +385,14 @@
374
385
  "src/snowplow/event-definitions/questionnaire/questionnaire.ts": {
375
386
  "bytesInOutput": 5320
376
387
  },
388
+ "src/snowplow/event-definitions/coverage-selection.ts": {
389
+ "bytesInOutput": 639
390
+ },
377
391
  "src/snowplow/event-definitions/referral.ts": {
378
392
  "bytesInOutput": 379
379
393
  },
380
394
  "src/snowplow/event-definitions/index.ts": {
381
- "bytesInOutput": 615
395
+ "bytesInOutput": 760
382
396
  },
383
397
  "src/snowplow/getSnowplowConfig.ts": {
384
398
  "bytesInOutput": 117
@@ -393,7 +407,7 @@
393
407
  "bytesInOutput": 0
394
408
  }
395
409
  },
396
- "bytes": 36214
410
+ "bytes": 37086
397
411
  }
398
412
  }
399
413
  }