From a023f1d770818206fb859f25caba8ef014719e16 Mon Sep 17 00:00:00 2001 From: github-actions Date: Fri, 19 Apr 2024 14:04:32 +0000 Subject: [PATCH] Generated docs for a2a1fe3cd960df6dbf3950008a8102ab4edd9b4f --- docs/enums/EventName.html | 10 +++---- docs/enums/ProfileProperty.html | 40 +++++++++++++-------------- docs/interfaces/Event.html | 10 +++---- docs/interfaces/KlaviyoInterface.html | 28 +++++++++---------- docs/interfaces/Location.html | 20 +++++++------- docs/interfaces/Profile.html | 22 +++++++-------- docs/types/EventProperties.html | 2 +- docs/types/ProfileProperties.html | 2 +- docs/types/ProfilePropertyKey.html | 2 +- docs/variables/Klaviyo.html | 2 +- 10 files changed, 69 insertions(+), 69 deletions(-) diff --git a/docs/enums/EventName.html b/docs/enums/EventName.html index dcd4a35..5c73ca1 100644 --- a/docs/enums/EventName.html +++ b/docs/enums/EventName.html @@ -1,10 +1,10 @@ EventName | klaviyo-react-native-sdk

EventName is a convenience enum for the names of common events that can be tracked.

-

Enumeration Members

Enumeration Members

ADDED_TO_CART_METRIC: number

The 'Added to Cart' event is used to track when a user adds a product to their cart.

-
OPENED_APP_METRIC: number

The 'Opened App' event is used to track when a user opens the app.

-
STARTED_CHECKOUT_METRIC: number

The 'Started Checkout' event is used to track when a user starts the checkout process.

-
VIEWED_PRODUCT_METRIC: number

The 'Viewed Product' event is used to track when a user views a product.

-

Generated using TypeDoc

\ No newline at end of file +
OPENED_APP_METRIC: number

The 'Opened App' event is used to track when a user opens the app.

+
STARTED_CHECKOUT_METRIC: number

The 'Started Checkout' event is used to track when a user starts the checkout process.

+
VIEWED_PRODUCT_METRIC: number

The 'Viewed Product' event is used to track when a user views a product.

+

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/enums/ProfileProperty.html b/docs/enums/ProfileProperty.html index 8286712..bd01d51 100644 --- a/docs/enums/ProfileProperty.html +++ b/docs/enums/ProfileProperty.html @@ -1,5 +1,5 @@ ProfileProperty | klaviyo-react-native-sdk

Enumeration ProfileProperty

Enum for various profile properties that can be set on a user

-

Enumeration Members

Enumeration Members

ADDRESS1 ADDRESS2 CITY COUNTRY @@ -19,25 +19,25 @@ TITLE ZIP

Enumeration Members

ADDRESS1: number

First line of street address

-
ADDRESS2: number

Second line of street address

-
CITY: number

City name

-
COUNTRY: number

Country name

-
EMAIL: number

Individual's email address

+
ADDRESS2: number

Second line of street address

+
CITY: number

City name

+
COUNTRY: number

Country name

+
EMAIL: number

Individual's email address

Deprecated

Setting identifiers via setProfileAttribute is deprecated, and this enum will be removed in an upcoming release. Use the corresponding setter function instead.

-
EXTERNAL_ID: number

A unique identifier used by customers to associate Klaviyo profiles with profiles in an external system, such as a point-of-sale system. Format varies based on the external system.

+
EXTERNAL_ID: number

A unique identifier used by customers to associate Klaviyo profiles with profiles in an external system, such as a point-of-sale system. Format varies based on the external system.

Deprecated

Setting identifiers via setProfileAttribute is deprecated, and this enum will be removed in an upcoming release. Use the corresponding setter function instead.

-
FIRST_NAME: number

Individual's first name

-
IMAGE: number

URL pointing to the location of a profile image

-
LAST_NAME: number

Individual's last name

-
LATITUDE: number

Latitude coordinate. We recommend providing a precision of four decimal places.

-
LOCATION: number

An object containing location information for this profile

-
LONGITUDE: number

Longitude coordinate. We recommend providing a precision of four decimal places.

-
ORGANIZATION: number

Name of the company or organization within the company for whom the individual works

-
PHONE_NUMBER: number

Individual's phone number in E.164 format

+
FIRST_NAME: number

Individual's first name

+
IMAGE: number

URL pointing to the location of a profile image

+
LAST_NAME: number

Individual's last name

+
LATITUDE: number

Latitude coordinate. We recommend providing a precision of four decimal places.

+
LOCATION: number

An object containing location information for this profile

+
LONGITUDE: number

Longitude coordinate. We recommend providing a precision of four decimal places.

+
ORGANIZATION: number

Name of the company or organization within the company for whom the individual works

+
PHONE_NUMBER: number

Individual's phone number in E.164 format

Deprecated

Setting identifiers via setProfileAttribute is deprecated, and this enum will be removed in an upcoming release. Use the corresponding setter function instead.

-
PROPERTIES: number

An object containing key/value pairs for any custom properties assigned to this profile

-
REGION: number

Region within a country, such as state or province

-
TIMEZONE: number

Time zone name. We recommend using time zones from the IANA Time Zone Database.

-
TITLE: number

Individual's job title

-
ZIP: number

Zip code

-

Generated using TypeDoc

\ No newline at end of file +
PROPERTIES: number

An object containing key/value pairs for any custom properties assigned to this profile

+
REGION: number

Region within a country, such as state or province

+
TIMEZONE: number

Time zone name. We recommend using time zones from the IANA Time Zone Database.

+
TITLE: number

Individual's job title

+
ZIP: number

Zip code

+

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/Event.html b/docs/interfaces/Event.html index 60bd903..cd96bac 100644 --- a/docs/interfaces/Event.html +++ b/docs/interfaces/Event.html @@ -1,19 +1,19 @@ Event | klaviyo-react-native-sdk

Interface for an event

-
interface Event {
    name: string | EventName;
    properties?: EventProperties;
    uniqueId?: string;
    value?: number;
}

Properties

interface Event {
    name: string | EventName;
    properties?: EventProperties;
    uniqueId?: string;
    value?: number;
}

Properties

name: string | EventName

Name of the event. Must be less than 128 characters.

-
properties?: EventProperties

Properties of this event. Any top level property (that are not objects) can be +

properties?: EventProperties

Properties of this event. Any top level property (that are not objects) can be used to create segments. The $extra property is a special property. This records any non-segmentable values that can be referenced later. For example, HTML templates are useful on a segment but are not used to create a segment. There are limits placed onto the size of the data present. This must not exceed 5 MB. This must not exceed 300 event properties. A single string cannot be larger than 100 KB. Each array must not exceed 4000 elements. The properties cannot contain more than 10 nested levels.

-
uniqueId?: string

A unique identifier for an event. If the uniqueId is repeated for the same +

uniqueId?: string

A unique identifier for an event. If the uniqueId is repeated for the same profile and metric, only the first processed event will be recorded. If this is not present, this will use the time to the second. Using the default, this limits only one event per profile per second.

-
value?: number

A numeric value to associate with this event. For example, the dollar amount of a purchase.

-

Generated using TypeDoc

\ No newline at end of file +
value?: number

A numeric value to associate with this event. For example, the dollar amount of a purchase.

+

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/KlaviyoInterface.html b/docs/interfaces/KlaviyoInterface.html index b34f1ba..38cef78 100644 --- a/docs/interfaces/KlaviyoInterface.html +++ b/docs/interfaces/KlaviyoInterface.html @@ -1,7 +1,7 @@ KlaviyoInterface | klaviyo-react-native-sdk

The Klaviyo React Native SDK Interface

This interface extends the KlaviyoEventAPI and KlaviyoProfileApi interfaces, providing a unified API for interacting with Klaviyo's event tracking and profile management features.

-
interface KlaviyoInterface {
    createEvent(event): void;
    getEmail(callback): null | String;
    getExternalId(callback): null | String;
    getPhoneNumber(callback): null | String;
    getPushToken(callback): null | String;
    initialize(apiKey): void;
    resetProfile(): void;
    setEmail(email): void;
    setExternalId(externalId): void;
    setPhoneNumber(phoneNumber): void;
    setProfile(profile): void;
    setProfileAttribute(propertyKey, value): void;
    setPushToken(token): void;
}

Hierarchy

  • KlaviyoEventAPI
  • KlaviyoProfileApi
  • KlaviyoPushApi
    • KlaviyoInterface

Methods

interface KlaviyoInterface {
    createEvent(event): void;
    getEmail(callback): null | String;
    getExternalId(callback): null | String;
    getPhoneNumber(callback): null | String;
    getPushToken(callback): null | String;
    initialize(apiKey): void;
    resetProfile(): void;
    setEmail(email): void;
    setExternalId(externalId): void;
    setPhoneNumber(phoneNumber): void;
    setProfile(profile): void;
    setProfileAttribute(propertyKey, value): void;
    setPushToken(token): void;
}

Hierarchy

  • KlaviyoEventAPI
  • KlaviyoProfileApi
  • KlaviyoPushApi
    • KlaviyoInterface

Methods

  • Create a new event to track a profile's activity.

    Parameters

    • event: Event

      The event to track

      -

    Returns void

  • Retrieve a profile's email address.

    +

Returns void

  • Retrieve a profile's email address.

    Parameters

    • callback: undefined | Function

      The callback function to handle the response

      -

    Returns null | String

  • Retrieve a profile's external ID.

    +

Returns null | String

  • Retrieve a profile's external ID.

    Parameters

    • callback: undefined | Function

      The callback function to handle the response

      -

    Returns null | String

  • Retrieve a profile's phone number.

    +

Returns null | String

Returns null | String

Returns void

Returns void

Returns void

Returns void

Returns void

Generated using TypeDoc

\ No newline at end of file +

Returns void

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/Location.html b/docs/interfaces/Location.html index 191b124..ec532b0 100644 --- a/docs/interfaces/Location.html +++ b/docs/interfaces/Location.html @@ -1,5 +1,5 @@ Location | klaviyo-react-native-sdk

Interface for location information of a profile

-
interface Location {
    address1?: string;
    address2?: string;
    city?: string;
    country?: string;
    latitude?: number;
    longitude?: number;
    region?: string;
    timezone?: string;
    zip?: string;
}

Properties

interface Location {
    address1?: string;
    address2?: string;
    city?: string;
    country?: string;
    latitude?: number;
    longitude?: number;
    region?: string;
    timezone?: string;
    zip?: string;
}

Properties

Properties

address1?: string

First line of street address

-
address2?: string

Second line of street address

-
city?: string

City name

-
country?: string

Country name

-
latitude?: number

Latitude coordinate. We recommend providing a precision of four decimal places.

-
longitude?: number

Longitude coordinate. We recommend providing a precision of four decimal places.

-
region?: string

Region within a country, such as state or province

-
timezone?: string

Time zone name. We recommend using time zones from the IANA Time Zone Database.

-
zip?: string

Zip code

-

Generated using TypeDoc

\ No newline at end of file +
address2?: string

Second line of street address

+
city?: string

City name

+
country?: string

Country name

+
latitude?: number

Latitude coordinate. We recommend providing a precision of four decimal places.

+
longitude?: number

Longitude coordinate. We recommend providing a precision of four decimal places.

+
region?: string

Region within a country, such as state or province

+
timezone?: string

Time zone name. We recommend using time zones from the IANA Time Zone Database.

+
zip?: string

Zip code

+

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/interfaces/Profile.html b/docs/interfaces/Profile.html index 70243a3..e910c1c 100644 --- a/docs/interfaces/Profile.html +++ b/docs/interfaces/Profile.html @@ -1,5 +1,5 @@ Profile | klaviyo-react-native-sdk

Interface for a profile

-
interface Profile {
    email?: string;
    externalId?: string;
    firstName?: string;
    image?: string;
    lastName?: string;
    location?: Location;
    organization?: string;
    phoneNumber?: string;
    properties?: ProfileProperties;
    title?: string;
}

Properties

interface Profile {
    email?: string;
    externalId?: string;
    firstName?: string;
    image?: string;
    lastName?: string;
    location?: Location;
    organization?: string;
    phoneNumber?: string;
    properties?: ProfileProperties;
    title?: string;
}

Properties

Properties

email?: string

Individual's email address

-
externalId?: string

A unique identifier used by customers to associate Klaviyo profiles with profiles in an external system, such as a point-of-sale system. Format varies based on the external system.

-
firstName?: string

Individual's first name

-
image?: string

URL pointing to the location of a profile image

-
lastName?: string

Individual's last name

-
location?: Location

An object containing location information for this profile

-
organization?: string

Name of the company or organization within the company for whom the individual works

-
phoneNumber?: string

Individual's phone number in E.164 format

-
properties?: ProfileProperties

An object containing key/value pairs for any custom properties assigned to this profile

-
title?: string

Individual's job title

-

Generated using TypeDoc

\ No newline at end of file +
externalId?: string

A unique identifier used by customers to associate Klaviyo profiles with profiles in an external system, such as a point-of-sale system. Format varies based on the external system.

+
firstName?: string

Individual's first name

+
image?: string

URL pointing to the location of a profile image

+
lastName?: string

Individual's last name

+
location?: Location

An object containing location information for this profile

+
organization?: string

Name of the company or organization within the company for whom the individual works

+
phoneNumber?: string

Individual's phone number in E.164 format

+
properties?: ProfileProperties

An object containing key/value pairs for any custom properties assigned to this profile

+
title?: string

Individual's job title

+

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/EventProperties.html b/docs/types/EventProperties.html index 5eb13a1..1ad4ce9 100644 --- a/docs/types/EventProperties.html +++ b/docs/types/EventProperties.html @@ -1,2 +1,2 @@ EventProperties | klaviyo-react-native-sdk

Type alias EventProperties

EventProperties: Record<string, Object>

Type for event properties

-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/ProfileProperties.html b/docs/types/ProfileProperties.html index 3bf5011..b8eaf6e 100644 --- a/docs/types/ProfileProperties.html +++ b/docs/types/ProfileProperties.html @@ -1,2 +1,2 @@ ProfileProperties | klaviyo-react-native-sdk

Type alias ProfileProperties

ProfileProperties: Record<ProfilePropertyKey, Object>

Type for profile properties

-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/types/ProfilePropertyKey.html b/docs/types/ProfilePropertyKey.html index 08ec5bb..7ef915e 100644 --- a/docs/types/ProfilePropertyKey.html +++ b/docs/types/ProfilePropertyKey.html @@ -1,2 +1,2 @@ ProfilePropertyKey | klaviyo-react-native-sdk

Type alias ProfilePropertyKey

ProfilePropertyKey: ProfileProperty | string

Type for a profile property key

-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file diff --git a/docs/variables/Klaviyo.html b/docs/variables/Klaviyo.html index 0ff0ada..31d3109 100644 --- a/docs/variables/Klaviyo.html +++ b/docs/variables/Klaviyo.html @@ -1,2 +1,2 @@ Klaviyo | klaviyo-react-native-sdk

Variable KlaviyoConst

Klaviyo: Spec = ...

Implementation of the KlaviyoInterface

-

Generated using TypeDoc

\ No newline at end of file +

Generated using TypeDoc

\ No newline at end of file