main/index library
This code exports various classes and enums from the Synerise Flutter SDK. It allows the application developer to access the objects from the Synerise SDK without the importing them.
Classes
- ApiQuerySorting
-
The
ApiQuerySortingclass represents a sorting query for an API with a specified property and order. - AppearedInLocationEvent
- The AppearedInLocationEvent class represents an event where a client has appeared in a specific location, with latitude and longitude parameters.
- AppearedInLocationEventParameters
- The class defines two constant strings representing latitude and longitude parameters for an event.
- AssignVoucherData
- The AssignVoucherData class represents data related to a voucher, including its code, expiration date, redemption date, and creation/update timestamps.
- AssignVoucherResponse
- The AssignVoucherResponse class represents a response object with a message and optional data, which can be initialized from a map.
- BaseApiQuery
- The class represents a base API query with properties for limit, page, sorting, and includeMeta.
- BaseSettings
- CartEvent
- The class CartEvent defines a custom event with parameters for a shopping cart action.
- CartEventParameters
- The class defines constant strings for various parameters used in a cart event.
- ClientAccountInformation
- The class represents client account information with various properties such as email, phone, name, address, and agreements.
- ClientAccountRegisterContext
-
The
ClientAccountRegisterContextclass represents the context for registering a client account, including personal information, agreements, and attributes. - ClientAccountUpdateContext
-
The
ClientAccountUpdateContextclass represents the context for updating a client's account information, including personal details, agreements, and custom attributes. - ClientAgreements
-
The
ClientAgreementsclass represents a client's agreements for email, SMS, push notifications, Bluetooth, RFID, and Wi-Fi, and includes methods for setting and getting these agreements, as well as a constructor for creating objects from aMap. - ClientAuthContext
-
The
ClientAuthContextclass represents the authentication context of a client, including their ID, agreements, and attributes. - ClientConditionalAuthResult
-
The class
ClientConditionalAuthResultrepresents the result of a conditional authentication process, including the status and conditions. - ClientCondtitionalAuthContext
-
The
ClientCondtitionalAuthContextclass represents the authentication context of a client, including their ID, agreements, and attributes. - ClientImpl
- ClientSimpleAuthenticationData
-
The
ClientSimpleAuthenticationDataclass is a data model that represents the simple authentication data of a client. It contains various properties such as email, phone number, custom ID, UUID, first name, last name, display name, sex, birth date, avatar URL, company, address, city, province, zip code, country code, agreements, and attributes. - ContentImpl
- CustomEvent
- The CustomEvent class extends the Event class and defines a custom event type with a label, action, and parameters.
- Dependencies
- The class Dependencies contains two static constants representing MethodChannels for the Synerise Flutter SDK and its background operations.
- Document
-
The
Documentclass represents a document with an identifier, slug, schema, and optional content stored as a map. - Event
- The class "Event" defines a custom event with a type, label, action, and parameters, and provides a method to convert it to a map.
- GeneralSettings
- HitTimerEvent
- The HitTimerEvent class is an event that represents a hit timer event with a label and optional parameters.
- InAppMessageData
- The InAppMessageData class represents data for an in-app message campaign, including campaign hash, variant identifier, additional parameters, and a flag for testing.
- InAppMessagingSettings
- InjectorBannerListener
- InjectorImpl
- InjectorInAppMessageListener
- InjectorListener
- InjectorSettings
- InjectorWalkthroughListener
- LoggedInEvent
- The class represents an event of signing in user with a label, event type, and optional parameters.
- LoggedOutEvent
-
The
LoggedOutEventclass represents an event of signing out of a client with a label and optional parameters. - NotificationsImpl
- NotificationsListener
- NotificationsSettings
- ProductAddedToCartEvent
- The class represents an event of adding a product to a cart with relevant information.
- ProductAddedToFavoritesEvent
- ProductAddedToFavoritesEvent represents an event of adding a product to favorites with a label and optional parameters.
- ProductRemovedFromCartEvent
- The ProductRemovedFromCartEvent class represents an event where a product is removed from the cart.
- ProductViewedEvent
- The ProductViewedEvent class represents an event where a product has been viewed, with specific parameters such as the product ID and name.
- ProductViewedEventParameters
- The class defines constant strings for the parameters of a product viewed event.
- Promotion
- The Promotion class represents a promotional offer with various properties such as discount type, redemption limits, and expiration dates.
- PromotionDetails
-
The
PromotionDetailsclass represents details of a promotion, including the discount type, and provides methods for converting to and from aMap. - PromotionDiscountModeDetails
-
The class
PromotionDiscountModeDetailscontains information about the discount steps and usage trigger for a promotion. - PromotionDiscountStep
-
The
PromotionDiscountStepclass represents a step in a promotion that includes a discount value and a usage threshold. - PromotionDiscountTypeDetails
-
The
PromotionDiscountTypeDetailsclass represents details about a promotion discount type and includes methods for creating an instance from aMapand converting it to aMap. - PromotionIdentifier
- The PromotionIdentifier class represents a key-value pair object used to identify a promotion, with methods for converting to and from a map.
- PromotionResponse
- The code defines a Dart class for a promotion response and includes a private constructor and a function to convert a list of objects to a list of promotions.
- PromotionsApiQuery
-
The
PromotionsApiQueryclass is a subclass ofBaseApiQuerythat allows for filtering promotions by status and type. - PromotionsImpl
- PromotionSortingKey
- PushCancelledEvent
- The PushCancelledEvent class is a custom event that represents the cancellation of a push notification.
- PushClickedEvent
- The PushClickedEvent class is a custom event that represents a push notification click with a label and optional parameters.
- PushViewedEvent
- The PushViewedEvent class is a custom event that represents a push notification being viewed, with a label and optional parameters.
- Recommendation
- The class Recommendation represents a recommendation with attributes and an item ID, and can be converted to and from a map.
- RecommendationClickEvent
- The class represents a recommendation click event with specific parameters.
- RecommendationClickEventParameters
- The class defines static constants for parameters used in a recommendation click event.
- RecommendationEvent
-
The class
RecommendationEventextendsCustomEventand creates a new event for recommendations with a label, action, and parameters. - RecommendationOptions
- The class "RecommendationOptions" contains various properties for configuring recommendations, such as product IDs, filters, and display attributes.
- RecommendationResponse
- The code defines a Dart class for a recommendation response and includes a function to convert a list of objects to a list of recommendations.
- RecommendationSeenEvent
- This is a recommendation seen event with parameters such as product ID, product name, campaign ID, and campaign hash.
- RecommendationSeenEventParameters
- The class defines static constants for parameters related to a recommendation seen event.
- RecommendationViewEvent
- The class RecommendationViewEvent is used to create an event with specific parameters for tracking recommendation views.
- RecommendationViewParameters
- The class defines static constants for parameters used in recommendation views.
- RegisteredEvent
- The RegisteredEvent is an event of client registration with a label, parameters, and a specific type of 'client.register'.
- ScreenView
- The ScreenView class represents a screen view with various properties such as identifier, name, hashString, path, priority, audience information, data, createdAt and updatedAt timestamps.
- ScreenViewAudienceInfo
- The ScreenViewAudienceInfo class represents information about the audience of a screen view, including segments, query, and target type.
- SearchedEvent
-
The
SearchedEventclass is a custom event that represents a search action with a label and optional parameters. - SettingsImpl
- SettingsKeys
- The SharedEvent represents a shared event with a label and optional parameters.
- SyneriseInitializer
- Token
- The Token class represents a token with a string value, origin information, and an expiration date.
- TrackerImpl
- TrackerSettings
- UnitPrice
-
The
UnitPriceclass represents a unit price with an amount and currency, and has a method to convert it to a map. - VisitedScreenEvent
- The VisitedScreenEvent class is an event that represents a screen view with a label and optional parameters.
- VoucherCodesData
-
The
VoucherCodesDataclass represents voucher codes data and includes a constructor that takes aMapas an argument to create a new instance of the class. - VoucherCodesResponse
- The above code defines a Dart class and a private function to convert a list of data objects to a list of voucher codes data objects.
Enums
- ApiQuerySortingOrder
-
This is an enumeration in Dart that defines two values:
ascendinganddescending. Each value has a correspondingapiQuerySortingOrderstring value ('asc' forascendingand 'desc' fordescending). - ClientConditionalAuthStatus
-
ClientConditionalAuthStatusrepresents the status of conditional client process. Each enum value represents a different status and is associated with a string value. - ClientSex
-
This is defining an enumeration type called
ClientSexwith four possible values:notSpecified,male,female, andother. Each value is assigned a string representation that corresponds to the value's name in all caps. - ClientSignOutMode
-
ClientSignOutModerepresents the mode that is used to sign out a client, and has two values:signOutandsignOutWithSessionDestroy. - IdentityProvider
-
An enumeration called
IdentityProviderwith six possible values:SYNERISE,FACEBOOK,GOOGLE,OAUTH,APPLE, andUNKNOWN. - PromotionDiscountMode
-
This is defining an enumeration called
PromotionDiscountModewith two possible values:staticModeandstepMode. Each value is associated with a string value ('STATIC'and'STEP', respectively). ThegetPromotionDiscountModeFromStringmethod is used to convert a string value to the corresponding enum value. - PromotionDiscountType
-
This is defining an enumeration type called
PromotionDiscountTypewith seven possible values:none,percent,amount,twoForOne,points,multibuy, andexactPrice. Each value is associated with a string literal that represents the value in a human-readable format. ThegetPromotionDiscountTypeFromStringmethod is used to convert a string to the correspondingPromotionDiscountTypevalue. - PromotionDiscountUsageTrigger
-
This is defining an enum called
PromotionDiscountUsageTriggerwith two possible values:transactionandredeem. Each value is associated with a string value ('TRANSACTION'and'REDEEM'respectively). The enum also has a constructor that takes a string parameter and a methodgetPromotionDiscountUsageTriggerFromStringthat returns the corresponding enum value based on a given string input. There is also a methodpromotionDiscountUsageTriggerAsStringthat returns the string value associated with the enum value. - PromotionIdentifierKey
-
This is defining an enumeration called
PromotionIdentifierKeywith two possible values:uuidandcode. Each value is associated with a string value ('UUID'and'CODE'respectively). Theconst PromotionIdentifierKey(this.promotionIdentifierKey)constructor is used to initialize thepromotionIdentifierKeyfield with the string value associated with each enumeration value. - PromotionItemScope
-
This code is defining an enumeration type called
PromotionItemScopewith two possible values:lineItemandbasket. Each value is associated with a string value ('LINE_ITEM'and'BASKET', respectively) that represents the promotion item scope. - PromotionStatus
-
This is defining an enumeration called
PromotionStatuswith four possible values:none,active,assigned, andredeemed. Each value is associated with a string representation ('NONE','ACTIVE','ASSIGNED', and'REDEEMED', respectively). - PromotionType
-
This is an enum called
PromotionTypethat defines five possible values:unknown,membersOnly,custom,general, andhandbill. Each value is associated with a string representation. The enum also has a constructor that takes a string argument and a methodgetPromotionTypeFromStringthat returns aPromotionTypevalue based on a given string input. If the input string matches one of the defined enum values, then the corresponding enum value is returned. Otherwise, the valueunknownis returned. The enum also has a methodpromotionTypeAsStringthat returns the string representation of the enum value. - RecommendationFiltersJoinerRule
-
The
enum RecommendationFiltersJoinerRuleis defining a set of possible values for a recommendation filter joiner rule. It has three possible values:and,or, andreplace. - SyneriseSource
-
SyneriseSourcerepresents the possible source of Synerise activities. It has several possible values such as 'SIMPLE_PUSH', 'BANNER', 'WALKTHROUGH', etc. - TokenOrigin
-
TokenOriginrepresents the possible origins of a token. It has several possible values such as 'SYNERISE', 'FACEBOOK', 'GOOGLE', etc. - VoucherCodeStatus
-
This is defining an enumeration type called
VoucherCodeStatuswith four possible values:unassigned,assigned,redeemed, andcanceled. Each value is associated with a string representation ('UNASSIGNED','ASSIGNED','REDEEMED', and'CANCELED', respectively).
Properties
- settingsValues ↔ Map
-
getter/setter pair
- syneriseInitialized ↔ bool
-
getter/setter pair
Typedefs
-
GetFunction
= dynamic Function<
T>(String key, [bool isSupportedPlatform, dynamic androidDefault, dynamic iosDefault]) - InjectorBannerListenerFunction = void Function(InjectorBannerListener listener)
- InjectorInAppMessageListenerFunction = void Function(InjectorInAppMessageListener listener)
- InjectorListenerFunction = void Function(InjectorListener listener)
- InjectorWalkthroughListenerFunction = void Function(InjectorWalkthroughListener listener)
- NotificationsListenerFunction = void Function(NotificationsListener listener)
-
SetFunction
= dynamic Function<
T>(String key, dynamic value, [bool isSupportedPlatform])