fix(mobile-messaging): revision of optional parameters (#3667)

This commit is contained in:
Tereza Jurić 2021-06-29 13:45:10 +02:00 committed by GitHub
parent 4f13426a6d
commit 944d25147f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -35,14 +35,14 @@ export interface Configuration {
messageStorage?: string; messageStorage?: string;
defaultMessageStorage?: boolean; defaultMessageStorage?: boolean;
ios?: { ios?: {
notificationTypes?: string[]; notificationTypes?: string[]; // ['alert', 'badge', 'sound']
forceCleanup?: boolean; forceCleanup?: boolean;
logging?: boolean; logging?: boolean;
}; };
android?: { android?: {
notificationIcon: string; // a resource name for a status bar icon (without extension), located in '/platforms/android/app/src/main/res/mipmap' notificationIcon?: string; // a resource name for a status bar icon (without extension), located in '/platforms/android/app/src/main/res/mipmap'
multipleNotifications: boolean; multipleNotifications?: boolean; // set to 'true' to enable multiple notifications
notificationAccentColor: string; notificationAccentColor?: string; // set to hex color value in format '#RRGGBB' or '#AARRGGBB'
}; };
privacySettings?: { privacySettings?: {
applicationCodePersistingDisabled?: boolean; applicationCodePersistingDisabled?: boolean;
@ -91,7 +91,7 @@ export interface Installation {
sdkVersion?: string; sdkVersion?: string;
appVersion?: string; appVersion?: string;
os?: OS; os?: OS;
osVersion: string; osVersion?: string;
deviceManufacturer?: string; deviceManufacturer?: string;
deviceModel?: string; deviceModel?: string;
deviceSecure?: boolean; deviceSecure?: boolean;
@ -102,10 +102,13 @@ export interface Installation {
customAttributes?: Record<string, string | number | boolean>; customAttributes?: Record<string, string | number | boolean>;
} }
/**
* User's unique ID. One UserIdentity parameter must be provided if used.
*/
export interface UserIdentity { export interface UserIdentity {
phones?: string[]; phones?: string[];
emails?: string[]; emails?: string[];
externalUserId: string; externalUserId?: string;
} }
export interface PersonalizeContext { export interface PersonalizeContext {