Models Reference


Indigitall Cordova SDK — Main Models

This document describes the main models of the Indigitall Cordova SDK, their properties and relationships.


Table of Contents

  1. Device
  2. Push
  3. Inbox
  4. Inbox MessagesCount
  5. Customer
  6. LiveActivity
  7. Topic
  8. InApp

Device

Represents the device registered in the Indigitall platform. Contains hardware, OS, app and push token information used for device registration and targeting.

PropertyTypeDescription
enableBooleanWhether push notifications are enabled on the device
deviceIdStringUnique device identifier assigned by Indigitall
pushTokenStringFCM (Android) or APNs (iOS) registration token used to deliver push notifications
platformStringPlatform identifier. Values: android, ios
versionStringIndigitall SDK version (e.g. 6.0.1)
productNameStringCordova product name (e.g. cordova)
productVersionStringPlugin version (e.g. 5.0.0)
osNameStringOperating system name (e.g. Android, iOS)
osVersionStringOS version (e.g. 14)
deviceBrandStringDevice manufacturer (e.g. Samsung)
deviceModelStringDevice model name (e.g. Galaxy S24)
operatorStringMobile network operator name
deviceTypeStringForm factor of the device. Values: mobile, tablet
appVersionStringVersion of the host application (e.g. 2.1.0)
localeStringBCP 47 locale code (e.g. es_ES)
timeZoneStringIANA time zone identifier (e.g. Europe/Madrid)
timeOffsetIntUTC offset in minutes (e.g. 120)
externalCodeStringExternal user identifier set by the integrator
externalAppsArray<ExternalApp>List of external applications linked to this device

Related model: ExternalApp

PropertyTypeDescription
idStringExternal app internal identifier
nameStringExternal app name
codeStringExternal app Android code

Push

Represents a push notification received from the Indigitall platform.

PropertyTypeDescription
idStringInternal push notification identifier
appKeyStringIndigitall application key
titleStringNotification title shown to the user
bodyStringNotification body text
iconStringURL of the notification icon
imageStringURL of the large image attached to the notification
gifStringURL of an animated GIF, if any
layoutStringNotification layout template identifier
dataStringArbitrary string payload defined in the campaign
silentBooleanIf true, the notification does not display a heads-up alert
securedDataStringEncrypted payload, if secure delivery is enabled
sendingIdStringIdentifier of the specific sending batch
campaignIdStringIdentifier of the campaign this push belongs to
pushIdStringPush notification identifier (same as id)
applicationIdStringIndigitall application identifier
sendEventAckBooleanIf true, an acknowledgement event must be sent back to the server
actionPushActionAction to execute when the user taps the notification
buttonsArray<PushButton>Action buttons displayed in the expanded notification

Related models

PushAction — Defines the action executed when the notification or a button is tapped.

PropertyTypeDescription
destroyBooleanIf true, the notification is dismissed after the action executes
typeStringAction type. Values: url, app, call, market, share, noAction
urlStringTarget URL to open in the browser
appStringDeep-link URI to open in another app
callStringPhone number to dial
marketStringApp store identifier to open
shareStringText content to share
topicsArray<String>Topic codes to subscribe/unsubscribe when the action executes
clickedButtonInt0-based index of the button pressed. -1 if the main notification body was tapped

PushButton — Action button displayed in an expanded push notification.

PropertyTypeDescription
labelStringButton display text
actionPushActionAction to execute when the button is tapped
topicsArray<String>Topic codes associated with this button

Inbox

Represents the user's notification inbox (message center), including pagination state and the list of stored notifications.

PropertyTypeDescription
lastAccessStringISO 8601 timestamp of the last time the inbox was opened
countIntTotal number of notifications stored in the inbox
pageSizeIntNumber of notifications per page
numPageIntCurrent page index (0-based)
notificationsArray<InboxNotification>List of all notifications in the current page
newNotificationsArray<InboxNotification>Only the new notifications since the last sync (same structure as notifications)

Related models

InboxNotification — A single notification entry stored in the inbox.

PropertyTypeDescription
idStringUnique inbox notification identifier
sentAtStringISO 8601 timestamp of when the notification was sent
statusStringInteraction status. Values: read, unread, deleted
sendingIdStringIdentifier of the sending batch
campaignIdStringIdentifier of the originating campaign
categoryInboxCategoryCategory this notification belongs to
messageInboxMessageContent of the notification

InboxCategory — Category used to group and filter inbox notifications.

PropertyTypeDescription
idIntCategory numeric identifier
codeStringCategory short code (e.g. promo)
nameStringCategory display name (e.g. Promotions)

InboxMessage — Notification content stored in the inbox.

PropertyTypeDescription
titleStringNotification title
bodyStringNotification body text
imageStringURL of the notification image
dataStringArbitrary string payload
securedDataStringEncrypted payload, if any
actionPushActionAction to execute when the notification is tapped
buttonsArray<PushButton>Action buttons for the inbox notification

Inbox MessagesCount

Represents the statistical counters for the user's inbox.

PropertyTypeDescription
clickIntTotal number of notifications clicked by the user
sentIntTotal number of notifications delivered to the inbox
deletedIntTotal number of notifications deleted by the user
lastAccessStringISO 8601 timestamp of the last inbox access
countIntNumber of unread notifications since lastAccess

Customer

Represents a customer/user profile registered in the Indigitall platform. Used to link a device to a specific user identity.

PropertyTypeDescription
idStringIndigitall internal customer record identifier
customerIdStringExternal user identifier provided by the integrator
applicationIdStringIndigitall application identifier
createdAtStringISO 8601 timestamp of when the customer record was created
updatedAtStringISO 8601 timestamp of the last update to the customer record

LiveActivity

Represents a Live Activity session registered in the Indigitall platform. On Android it uses FCM dynamic topics; on iOS it uses APNs Live Activity channels.

PropertyTypeDescription
laIdStringUnique Live Activity identifier
createdAtStringISO 8601 timestamp of when the Live Activity was created
updatedAtStringISO 8601 timestamp of the last status update
applicationIdStringIndigitall application identifier
liveActivityExternalIdStringExternal identifier set by the integrator to link this activity
statusStringCurrent state. Values: active, dismissed, ended
androidTopicIdStringFCM topic used to push updates to this Live Activity on Android

Topic

Represents a push notification topic (category) that a device can subscribe to or unsubscribe from. Used to segment users by areas of interest.

PropertyTypeDescription
codeStringUnique topic identifier used in API calls (e.g. news)
nameStringHuman-readable topic name shown to users (e.g. News)
visibleBooleanIf true, the topic is displayed in the topic list UI
subscribedBooleanWhether the current device is subscribed to this topic
parentCodeStringCode of the parent topic for hierarchical grouping. null if top-level

InApp

Represents an in-app message served by the Indigitall platform. Contains display configuration, content URL, show rules, and custom data.

PropertyTypeDescription
inAppIdStringUnique in-app message identifier
lastVersionIdStringIdentifier of the latest content version
showOnceBooleanIf true, the message is displayed only once per device
cacheTtlIntSeconds the in-app content is valid in local cache
creationDateStringISO 8601 creation timestamp
expiredDateStringISO 8601 expiry timestamp after which the message is no longer shown
versionIntContent version number
nameStringHuman-readable name of the in-app campaign
customDataObjectArbitrary custom key-value pairs defined in the campaign
schemaInAppSchemaDisplay template and dimensions
propertiesInAppPropertiesVisual and behavioral configuration of the in-app
inAppShowInAppShowRuntime display counters and dismissal state

Related models

InAppSchema — Template and size definition for the in-app container.

PropertyTypeDescription
codeStringTemplate code. Values: MODAL, BANNER, FULLSCREEN
widthIntDisplay width in dp
heightIntDisplay height in dp

InAppProperties — Visual and behavioral configuration of the in-app message.

PropertyTypeDescription
contentUrlStringURL of the HTML/web content to render inside the in-app
showTimeIntMilliseconds before the in-app auto-dismisses. 0 = no auto-dismiss
numberOfShowsIntMaximum number of times the message can be shown
numberOfClicksIntMaximum number of times the message can be clicked
dismissForeverBooleanIf true, dismissing the message prevents it from ever showing again
borderRadiusIntCorner radius in dp for the in-app container
actionInAppActionAction to execute when the user interacts with the in-app

InAppAction — Action executed when the in-app is tapped.

PropertyTypeDescription
destroyBooleanIf true, the in-app is dismissed after the action executes
typeStringAction type. Values: url, app, call, market, share
urlStringTarget URL to open
topicsArray<String>Topic codes to subscribe/unsubscribe when the action executes

InAppShow — Runtime counters tracking how the message has been interacted with.

PropertyTypeDescription
timesShowedIntNumber of times the message has been displayed so far
timesClickedIntNumber of times the message has been clicked so far
wasDismissedBooleantrue if the user explicitly dismissed the message

Relationships

Push
 ├── PushAction
 │    └── type {url, app, call, market, share, noAction}
 └── PushButton[]
      └── PushAction

Device
 └── ExternalApp[]

Inbox
 └── InboxNotification[]
      ├── InboxMessage
      │    ├── PushAction
      │    └── PushButton[]
      └── InboxCategory

InboxMessagesCount

Customer

LiveActivity

Topic

InApp
 ├── InAppSchema
 ├── InAppProperties
 │    └── InAppAction
 └── InAppShow