feat(mobile-messaging): add Lists and date time for customAttributes (#3586)

This commit is contained in:
Olga Koroleva 2021-01-23 20:15:05 +03:00 committed by GitHub
parent 3d1a73ebcb
commit bd8fbb3e1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,7 +14,8 @@ export type Event =
| 'installationUpdated'
| 'userUpdated'
| 'personalized'
| 'depersonalized';
| 'depersonalized'
| 'deeplink';
export interface CustomEvent {
definitionId: string;
@ -27,6 +28,7 @@ export interface Configuration {
*/
applicationCode: string;
geofencingEnabled?: boolean;
inAppChatEnabled?: boolean;
/**
* Message storage save callback
*/
@ -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 {
@ -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;
}