Skip to content

Commit

Permalink
Merge branch 'master' into am/avoid-undelivered-notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
AngusMorton committed Jul 30, 2024
2 parents e9c77be + 781cadb commit adbad2e
Show file tree
Hide file tree
Showing 133 changed files with 2,168 additions and 1,736 deletions.
7 changes: 7 additions & 0 deletions api-docs/docs/browser-tracker/browser-tracker.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,13 @@ export type EventBatch = GetBatch | PostBatch;
// @public (undocumented)
export type EventMethod = "post" | "get" | "beacon";

// @public
export interface EventPayloadAndContext {
context: Array<SelfDescribingJson>;
// Warning: (ae-forgotten-export) The symbol "PayloadBuilder" needs to be exported by the entry point index.module.d.ts
event: PayloadBuilder;
}

// @public (undocumented)
export type ExtendedCrossDomainLinkerAttributes = {
userId?: boolean;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@snowplow/browser-tracker](./browser-tracker.md) &gt; [EventPayloadAndContext](./browser-tracker.eventpayloadandcontext.md) &gt; [context](./browser-tracker.eventpayloadandcontext.context.md)

## EventPayloadAndContext.context property

List of context entities to track along with the event

<b>Signature:</b>

```typescript
context: Array<SelfDescribingJson>;
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@snowplow/browser-tracker](./browser-tracker.md) &gt; [EventPayloadAndContext](./browser-tracker.eventpayloadandcontext.md) &gt; [event](./browser-tracker.eventpayloadandcontext.event.md)

## EventPayloadAndContext.event property

Tracker payload for the event data

<b>Signature:</b>

```typescript
event: PayloadBuilder;
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@snowplow/browser-tracker](./browser-tracker.md) &gt; [EventPayloadAndContext](./browser-tracker.eventpayloadandcontext.md)

## EventPayloadAndContext interface

Interface for returning a built event (PayloadBuilder) and context (Array of SelfDescribingJson).

<b>Signature:</b>

```typescript
interface EventPayloadAndContext
```

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [context](./browser-tracker.eventpayloadandcontext.context.md) | Array&lt;SelfDescribingJson&gt; | List of context entities to track along with the event |
| [event](./browser-tracker.eventpayloadandcontext.event.md) | PayloadBuilder | Tracker payload for the event data |

1 change: 1 addition & 0 deletions api-docs/docs/browser-tracker/markdown/browser-tracker.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
| [ContextEvent](./browser-tracker.contextevent.md) | Argument for [ContextGenerator](./browser-tracker.contextgenerator.md) and [ContextFilter](./browser-tracker.contextfilter.md) callback |
| [DisableAnonymousTrackingConfiguration](./browser-tracker.disableanonymoustrackingconfiguration.md) | The configuration that can be changed when disabling anonymous tracking |
| [EnableAnonymousTrackingConfiguration](./browser-tracker.enableanonymoustrackingconfiguration.md) | The configuration that can be changed when enabling anonymous tracking |
| [EventPayloadAndContext](./browser-tracker.eventpayloadandcontext.md) | Interface for returning a built event (PayloadBuilder) and context (Array of SelfDescribingJson). |
| [FlushBufferConfiguration](./browser-tracker.flushbufferconfiguration.md) | The configuration that can be changed when flushing the buffer |
| [PageViewEvent](./browser-tracker.pageviewevent.md) | A Page View event Used for tracking a page view |
| [RuleSet](./browser-tracker.ruleset.md) | A ruleset has accept or reject properties that contain rules for matching Iglu schema URIs |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,7 @@ Build a Consent Granted Event Used for tracking when a user grants their consent
<b>Signature:</b>

```typescript
declare function buildConsentGranted(event: ConsentGrantedEvent): {
event: PayloadBuilder;
context: {
schema: string;
data: Record<string, unknown>;
}[];
};
declare function buildConsentGranted(event: ConsentGrantedEvent): EventPayloadAndContext;
```

## Parameters
Expand All @@ -26,7 +20,7 @@ declare function buildConsentGranted(event: ConsentGrantedEvent): {

<b>Returns:</b>

{ event: PayloadBuilder; context: { schema: string; data: Record&lt;string, unknown&gt;; }\[\]; }
EventPayloadAndContext

An object containing the PayloadBuilder to be sent to and a 'consent\_document' context

Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,7 @@ Build a Consent Withdrawn Event Used for tracking when a user withdraws their co
<b>Signature:</b>

```typescript
declare function buildConsentWithdrawn(event: ConsentWithdrawnEvent): {
event: PayloadBuilder;
context: {
schema: string;
data: Record<string, unknown>;
}[];
};
declare function buildConsentWithdrawn(event: ConsentWithdrawnEvent): EventPayloadAndContext;
```

## Parameters
Expand All @@ -26,7 +20,7 @@ declare function buildConsentWithdrawn(event: ConsentWithdrawnEvent): {

<b>Returns:</b>

{ event: PayloadBuilder; context: { schema: string; data: Record&lt;string, unknown&gt;; }\[\]; }
EventPayloadAndContext

An object containing the PayloadBuilder to be sent to and a 'consent\_document' context

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@snowplow/node-tracker](./node-tracker.md) &gt; [EventPayloadAndContext](./node-tracker.eventpayloadandcontext.md) &gt; [context](./node-tracker.eventpayloadandcontext.context.md)

## EventPayloadAndContext.context property

List of context entities to track along with the event

<b>Signature:</b>

```typescript
context: Array<SelfDescribingJson>;
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@snowplow/node-tracker](./node-tracker.md) &gt; [EventPayloadAndContext](./node-tracker.eventpayloadandcontext.md) &gt; [event](./node-tracker.eventpayloadandcontext.event.md)

## EventPayloadAndContext.event property

Tracker payload for the event data

<b>Signature:</b>

```typescript
event: PayloadBuilder;
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@snowplow/node-tracker](./node-tracker.md) &gt; [EventPayloadAndContext](./node-tracker.eventpayloadandcontext.md)

## EventPayloadAndContext interface

Interface for returning a built event (PayloadBuilder) and context (Array of SelfDescribingJson).

<b>Signature:</b>

```typescript
interface EventPayloadAndContext
```

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [context](./node-tracker.eventpayloadandcontext.context.md) | Array&lt;SelfDescribingJson&gt; | List of context entities to track along with the event |
| [event](./node-tracker.eventpayloadandcontext.event.md) | PayloadBuilder | Tracker payload for the event data |

1 change: 1 addition & 0 deletions api-docs/docs/node-tracker/markdown/node-tracker.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
| [EcommerceTransactionEvent](./node-tracker.ecommercetransactionevent.md) | An Ecommerce Transaction Event Allows for tracking common ecommerce events, this event is usually used when a customer completes a transaction. |
| [EcommerceTransactionItemEvent](./node-tracker.ecommercetransactionitemevent.md) | An Ecommerce Transaction Item Related to the [EcommerceTransactionEvent](./node-tracker.ecommercetransactionevent.md) Each Ecommerce Transaction may contain one or more EcommerceTransactionItem events |
| [Emitter](./node-tracker.emitter.md) | |
| [EventPayloadAndContext](./node-tracker.eventpayloadandcontext.md) | Interface for returning a built event (PayloadBuilder) and context (Array of SelfDescribingJson). |
| [FormFocusOrChangeEvent](./node-tracker.formfocusorchangeevent.md) | Represents either a Form Focus or Form Change event When a user focuses on a form element or when a user makes a change to a form element. |
| [FormSubmissionEvent](./node-tracker.formsubmissionevent.md) | A Form Submission Event Used to track when a user submits a form |
| [LinkClickEvent](./node-tracker.linkclickevent.md) | A Link Click Event Used when a user clicks on a link on a webpage, typically an anchor tag <code>&lt;a&gt;</code> |
Expand Down
22 changes: 8 additions & 14 deletions api-docs/docs/node-tracker/node-tracker.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,10 @@ export function buildAddToCart(event: AddToCartEvent): PayloadBuilder;
export function buildAdImpression(event: AdImpressionEvent): PayloadBuilder;

// @public
export function buildConsentGranted(event: ConsentGrantedEvent): {
event: PayloadBuilder;
context: {
schema: string;
data: Record<string, unknown>;
}[];
};
export function buildConsentGranted(event: ConsentGrantedEvent): EventPayloadAndContext;

// @public
export function buildConsentWithdrawn(event: ConsentWithdrawnEvent): {
event: PayloadBuilder;
context: {
schema: string;
data: Record<string, unknown>;
}[];
};
export function buildConsentWithdrawn(event: ConsentWithdrawnEvent): EventPayloadAndContext;

// @public
export function buildEcommerceTransaction(event: EcommerceTransactionEvent): PayloadBuilder;
Expand Down Expand Up @@ -216,6 +204,12 @@ export interface Emitter {
setAnonymization?: (shouldAnonymize: boolean) => void;
}

// @public
export interface EventPayloadAndContext {
context: Array<SelfDescribingJson>;
event: PayloadBuilder;
}

// @public
export interface FormFocusOrChangeEvent {
elementClasses?: Array<string> | null;
Expand Down
Loading

0 comments on commit adbad2e

Please sign in to comment.