Skip to content

Commit

Permalink
Remove event occurred properties (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
denis-rossati authored Aug 16, 2024
1 parent 3927a46 commit ebaaaee
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 80 deletions.
16 changes: 0 additions & 16 deletions src/schema/eventSchemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,22 +114,6 @@ export const eventOccurred = new ObjectType({
minLength: 1,
maxLength: 50,
}),
testId: new StringType({
minLength: 1,
maxLength: 50,
}),
groupId: new StringType({
minLength: 1,
maxLength: 50,
}),
personalizationId: new StringType({
minLength: 1,
maxLength: 50,
}),
audience: new StringType({
minLength: 1,
maxLength: 50,
}),
details: new ObjectType({
additionalProperties: new UnionType(
new NullType(),
Expand Down
4 changes: 0 additions & 4 deletions src/trackingEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,6 @@ export interface PostViewed extends BaseEvent {
export interface EventOccurred extends BaseEvent {
type: 'eventOccurred';
name: string;
testId?: string;
groupId?: string;
personalizationId?: string;
audience?: string;
details?: {[key: string]: string|number|boolean|null};
}

Expand Down
4 changes: 0 additions & 4 deletions test/facade/trackerFacade.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,6 @@ describe('A tracker facade', () => {
{
type: 'eventOccurred',
name: 'event-name',
personalizationId: 'foo',
audience: 'bar',
testId: 'baz',
groupId: 'barbaz',
details: {
foo: 'bar',
},
Expand Down
52 changes: 0 additions & 52 deletions test/schemas/eventSchemas.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,6 @@ describe('The "eventOccurred" payload schema', () => {
}],
[{
name: 'event-name',
personalizationId: 'foo',
audience: 'bar',
testId: 'baz',
groupId: 'barbaz',
details: {
number: 10,
null: null,
Expand Down Expand Up @@ -251,54 +247,6 @@ describe('The "eventOccurred" payload schema', () => {
{name: null},
'Expected value of type string at path \'/name\', actual null.',
],
[
{name: 'foo', personalizationId: ''},
'Expected at least 1 character at path \'/personalizationId\', actual 0.',
],
[
{name: 'foo', personalizationId: 'x'.repeat(51)},
'Expected at most 50 characters at path \'/personalizationId\', actual 51.',
],
[
{name: 'foo', personalizationId: null},
'Expected value of type string at path \'/personalizationId\', actual null.',
],
[
{name: 'foo', audience: ''},
'Expected at least 1 character at path \'/audience\', actual 0.',
],
[
{name: 'foo', audience: 'x'.repeat(51)},
'Expected at most 50 characters at path \'/audience\', actual 51.',
],
[
{name: 'foo', audience: null},
'Expected value of type string at path \'/audience\', actual null.',
],
[
{name: 'foo', testId: ''},
'Expected at least 1 character at path \'/testId\', actual 0.',
],
[
{name: 'foo', testId: 'x'.repeat(51)},
'Expected at most 50 characters at path \'/testId\', actual 51.',
],
[
{name: 'foo', testId: null},
'Expected value of type string at path \'/testId\', actual null.',
],
[
{name: 'foo', groupId: ''},
'Expected at least 1 character at path \'/groupId\', actual 0.',
],
[
{name: 'foo', groupId: 'x'.repeat(51)},
'Expected at most 50 characters at path \'/groupId\', actual 51.',
],
[
{name: 'foo', groupId: null},
'Expected value of type string at path \'/groupId\', actual null.',
],
[
{name: 'foo', details: null},
'Expected value of type object at path \'/details\', actual null.',
Expand Down
4 changes: 0 additions & 4 deletions test/tracker.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1204,10 +1204,6 @@ describe('A tracker', () => {
{
type: 'eventOccurred',
name: 'event-name',
personalizationId: 'foo',
audience: 'bar',
testId: 'baz',
groupId: 'barbaz',
details: {
foo: 'bar',
},
Expand Down

0 comments on commit ebaaaee

Please sign in to comment.