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' | 'installationUpdated'
| 'userUpdated' | 'userUpdated'
| 'personalized' | 'personalized'
| 'depersonalized'; | 'depersonalized'
| 'deeplink';
export interface CustomEvent { export interface CustomEvent {
definitionId: string; definitionId: string;
@ -27,6 +28,7 @@ export interface Configuration {
*/ */
applicationCode: string; applicationCode: string;
geofencingEnabled?: boolean; geofencingEnabled?: boolean;
inAppChatEnabled?: boolean;
/** /**
* Message storage save callback * Message storage save callback
*/ */
@ -74,11 +76,11 @@ export interface UserData {
lastName?: string; lastName?: string;
middleName?: string; middleName?: string;
gender?: Gender; gender?: Gender;
birthday?: Date; birthday?: string;
phones?: string[]; phones?: string[];
emails?: string[]; emails?: string[];
tags?: string[]; tags?: string[];
customAttributes?: Record<string, string | number | boolean>; customAttributes?: Record<string, string | number | boolean | any[]>;
} }
export interface Installation { export interface Installation {
@ -108,7 +110,7 @@ export interface UserIdentity {
export interface PersonalizeContext { export interface PersonalizeContext {
userIdentity: UserIdentity; userIdentity: UserIdentity;
userAttributes?: Record<string, string>; userAttributes?: Record<string, string | number | boolean | any[]>;
forceDepersonalize?: boolean; forceDepersonalize?: boolean;
} }