@simplybusiness/services 1.2.8 → 1.2.9
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 +6 -0
- package/dist/cjs/index.js +471 -471
- package/dist/esm/index.js +471 -471
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/snowplow/event-definitions/{questionnaire.d.ts → questionnaire/questionnaire.d.ts} +1 -1
- package/dist/types/snowplow/event-definitions/{redaction.d.ts → questionnaire/redaction.d.ts} +1 -1
- package/package.json +1 -1
- package/src/mocks/eventDefinitions.ts +1 -1
- package/src/snowplow/event-definitions/index.ts +3 -3
- package/src/snowplow/event-definitions/personalised_cover.ts +3 -3
- package/src/snowplow/event-definitions/{questionnaire.test.ts → questionnaire/questionnaire.test.ts} +4 -4
- package/src/snowplow/event-definitions/{questionnaire.ts → questionnaire/questionnaire.ts} +3 -3
- package/src/snowplow/event-definitions/{redaction.ts → questionnaire/redaction.ts} +1 -1
- /package/dist/types/snowplow/event-definitions/{questionnaire.test.d.ts → questionnaire/questionnaire.test.d.ts} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { baseEventDefinitions } from "./base";
|
|
2
|
-
import { qcpEventDefinitions } from "./qcp";
|
|
3
|
-
import { referralEventDefinitions } from "./referral";
|
|
4
2
|
import { interventionEventDefinitions } from "./intervention";
|
|
5
|
-
import { questionnaireEventDefinitions } from "./questionnaire";
|
|
6
3
|
import { personalisedCoverEventDefinitions } from "./personalised_cover";
|
|
4
|
+
import { qcpEventDefinitions } from "./qcp";
|
|
5
|
+
import { questionnaireEventDefinitions } from "./questionnaire/questionnaire";
|
|
6
|
+
import { referralEventDefinitions } from "./referral";
|
|
7
7
|
|
|
8
8
|
// All events (keep up to date with new files)
|
|
9
9
|
export const eventDefinitions = [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { EventDefinition, ParamsType } from "../types";
|
|
2
|
-
import { redact } from "./redaction";
|
|
3
|
-
import { DELIMITER } from "../constants";
|
|
4
1
|
import { snakeCase } from "../../utils";
|
|
2
|
+
import { DELIMITER } from "../constants";
|
|
3
|
+
import type { EventDefinition, ParamsType } from "../types";
|
|
4
|
+
import { redact } from "./questionnaire/redaction";
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Event definitions for Snowplow
|
package/src/snowplow/event-definitions/{questionnaire.test.ts → questionnaire/questionnaire.test.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventDefinition } from "
|
|
1
|
+
import { EventDefinition } from "../../types";
|
|
2
2
|
import { questionnaireEventDefinitions } from "./questionnaire";
|
|
3
3
|
|
|
4
4
|
const findEventByName = (eventName: string): EventDefinition => {
|
|
@@ -28,7 +28,7 @@ describe("questionnaireEventDefinitions", () => {
|
|
|
28
28
|
|
|
29
29
|
expect(result).toEqual({
|
|
30
30
|
schema:
|
|
31
|
-
"iglu:com.simplybusiness/form_question_answered/jsonschema/1-0-
|
|
31
|
+
"iglu:com.simplybusiness/form_question_answered/jsonschema/1-0-4",
|
|
32
32
|
data: {
|
|
33
33
|
site: "uk",
|
|
34
34
|
page_index: 1,
|
|
@@ -57,7 +57,7 @@ describe("questionnaireEventDefinitions", () => {
|
|
|
57
57
|
|
|
58
58
|
expect(result).toEqual({
|
|
59
59
|
schema:
|
|
60
|
-
"iglu:com.simplybusiness/form_question_answered/jsonschema/1-0-
|
|
60
|
+
"iglu:com.simplybusiness/form_question_answered/jsonschema/1-0-4",
|
|
61
61
|
data: {
|
|
62
62
|
site: "uk",
|
|
63
63
|
page_index: 1,
|
|
@@ -86,7 +86,7 @@ describe("questionnaireEventDefinitions", () => {
|
|
|
86
86
|
|
|
87
87
|
expect(result).toEqual({
|
|
88
88
|
schema:
|
|
89
|
-
"iglu:com.simplybusiness/form_question_answered/jsonschema/1-0-
|
|
89
|
+
"iglu:com.simplybusiness/form_question_answered/jsonschema/1-0-4",
|
|
90
90
|
data: {
|
|
91
91
|
site: "uk",
|
|
92
92
|
page_index: 1,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DELIMITER } from "
|
|
2
|
-
import type { EventDefinition, ParamsType } from "
|
|
1
|
+
import { DELIMITER } from "../../constants";
|
|
2
|
+
import type { EventDefinition, ParamsType } from "../../types";
|
|
3
3
|
import { redact } from "./redaction";
|
|
4
4
|
|
|
5
5
|
// Questionnaire events
|
|
@@ -17,7 +17,7 @@ export const questionnaireEventDefinitions: EventDefinition[] = [
|
|
|
17
17
|
|
|
18
18
|
return {
|
|
19
19
|
schema:
|
|
20
|
-
"iglu:com.simplybusiness/form_question_answered/jsonschema/1-0-
|
|
20
|
+
"iglu:com.simplybusiness/form_question_answered/jsonschema/1-0-4",
|
|
21
21
|
data: {
|
|
22
22
|
site: context.site,
|
|
23
23
|
page_index: 1,
|
|
File without changes
|