RocketChat/Rocket.Chat

View on GitHub
apps/meteor/app/push/server/definition.ts

Summary

Maintainability
A
0 mins
Test Coverage
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;
};