The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/apps/meteor/app/push/server/definition.ts

45 lines
702 B

export type PushOptions = {
sendTimeout?: number;
production?: boolean;
apn?: {
passphrase: string;
key: string;
cert: string;
gateway?: string;
};
gcm?: {
apiKey: string;
projectNumber: string;
};
gateways?: string[];
uniqueId: string;
getAuthorization?: () => Promise<string>;
};
export type PendingPushNotification = {
from: string;
title: string;
text: string;
badge?: number;
sound?: string;
notId?: number;
apn?: {
category?: string;
};
gcm?: {
style?: string;
image?: string;
};
payload?: Record<string, any>;
createdAt: Date;
createdBy?: string;
userId: string;
sent?: boolean;
sending?: number;
priority?: number;
contentAvailable?: 1 | 0;
};