Skip to content

Commit

Permalink
feat(mobile-messaging): add Lists and date time for customAttributes (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
riskpp authored Jan 23, 2021
1 parent 3d1a73e commit bd8fbb3
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/@ionic-native/plugins/mobile-messaging/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ export type Event =
| 'installationUpdated'
| 'userUpdated'
| 'personalized'
| 'depersonalized';
| 'depersonalized'
| 'deeplink';

export interface CustomEvent {
definitionId: string;
Expand All @@ -27,6 +28,7 @@ export interface Configuration {
*/
applicationCode: string;
geofencingEnabled?: boolean;
inAppChatEnabled?: boolean;
/**
* Message storage save callback
*/
Expand Down Expand Up @@ -74,11 +76,11 @@ export interface UserData {
lastName?: string;
middleName?: string;
gender?: Gender;
birthday?: Date;
birthday?: string;
phones?: string[];
emails?: string[];
tags?: string[];
customAttributes?: Record<string, string | number | boolean>;
customAttributes?: Record<string, string | number | boolean | any[]>;
}

export interface Installation {
Expand Down Expand Up @@ -108,7 +110,7 @@ export interface UserIdentity {

export interface PersonalizeContext {
userIdentity: UserIdentity;
userAttributes?: Record<string, string>;
userAttributes?: Record<string, string | number | boolean | any[]>;
forceDepersonalize?: boolean;
}

Expand Down

0 comments on commit bd8fbb3

Please sign in to comment.