Skip to content

Commit

Permalink
change(fcm): Remove deprecated FCM APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
lahirumaramba committed Nov 4, 2024
1 parent 3ae5c63 commit 886bd54
Show file tree
Hide file tree
Showing 13 changed files with 2,233 additions and 13,451 deletions.
14 changes: 2 additions & 12 deletions etc/firebase-admin.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -382,22 +382,12 @@ export namespace messaging {
export type Message = Message;
// Warning: (ae-forgotten-export) The symbol "Messaging" needs to be exported by the entry point default-namespace.d.ts
export type Messaging = Messaging;
// Warning: (ae-forgotten-export) The symbol "MessagingConditionResponse" needs to be exported by the entry point default-namespace.d.ts
export type MessagingConditionResponse = MessagingConditionResponse;
// Warning: (ae-forgotten-export) The symbol "MessagingDeviceGroupResponse" needs to be exported by the entry point default-namespace.d.ts
export type MessagingDeviceGroupResponse = MessagingDeviceGroupResponse;
// Warning: (ae-forgotten-export) The symbol "MessagingDeviceResult" needs to be exported by the entry point default-namespace.d.ts
export type MessagingDeviceResult = MessagingDeviceResult;
// Warning: (ae-forgotten-export) The symbol "MessagingDevicesResponse" needs to be exported by the entry point default-namespace.d.ts
export type MessagingDevicesResponse = MessagingDevicesResponse;
// Warning: (ae-forgotten-export) The symbol "MessagingOptions" needs to be exported by the entry point default-namespace.d.ts
export type MessagingOptions = MessagingOptions;
// Warning: (ae-forgotten-export) The symbol "MessagingPayload" needs to be exported by the entry point default-namespace.d.ts
export type MessagingPayload = MessagingPayload;
// Warning: (ae-forgotten-export) The symbol "MessagingTopicManagementResponse" needs to be exported by the entry point default-namespace.d.ts
export type MessagingTopicManagementResponse = MessagingTopicManagementResponse;
// Warning: (ae-forgotten-export) The symbol "MessagingTopicResponse" needs to be exported by the entry point default-namespace.d.ts
export type MessagingTopicResponse = MessagingTopicResponse;
// Warning: (ae-forgotten-export) The symbol "MulticastMessage" needs to be exported by the entry point default-namespace.d.ts
export type MulticastMessage = MulticastMessage;
// Warning: (ae-forgotten-export) The symbol "Notification" needs to be exported by the entry point default-namespace.d.ts
Expand Down Expand Up @@ -511,8 +501,8 @@ export function storage(app?: App): storage.Storage;

// @public (undocumented)
export namespace storage {
// Warning: (ae-forgotten-export) The symbol "Storage" needs to be exported by the entry point default-namespace.d.ts
export type Storage = Storage;
// Warning: (ae-forgotten-export) The symbol "Storage_2" needs to be exported by the entry point default-namespace.d.ts
export type Storage = Storage_2;
}

```
52 changes: 1 addition & 51 deletions etc/firebase-admin.messaging.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,20 +193,8 @@ export class Messaging {
// @deprecated
enableLegacyHttpTransport(): void;
send(message: Message, dryRun?: boolean): Promise<string>;
// @deprecated
sendAll(messages: Message[], dryRun?: boolean): Promise<BatchResponse>;
sendEach(messages: Message[], dryRun?: boolean): Promise<BatchResponse>;
sendEachForMulticast(message: MulticastMessage, dryRun?: boolean): Promise<BatchResponse>;
// @deprecated
sendMulticast(message: MulticastMessage, dryRun?: boolean): Promise<BatchResponse>;
// @deprecated
sendToCondition(condition: string, payload: MessagingPayload, options?: MessagingOptions): Promise<MessagingConditionResponse>;
// @deprecated
sendToDevice(registrationTokenOrTokens: string | string[], payload: MessagingPayload, options?: MessagingOptions): Promise<MessagingDevicesResponse>;
// @deprecated
sendToDeviceGroup(notificationKey: string, payload: MessagingPayload, options?: MessagingOptions): Promise<MessagingDeviceGroupResponse>;
// @deprecated
sendToTopic(topic: string, payload: MessagingPayload, options?: MessagingOptions): Promise<MessagingTopicResponse>;
subscribeToTopic(registrationTokenOrTokens: string | string[], topic: string): Promise<MessagingTopicManagementResponse>;
unsubscribeFromTopic(registrationTokenOrTokens: string | string[], topic: string): Promise<MessagingTopicManagementResponse>;
}
Expand Down Expand Up @@ -310,40 +298,6 @@ export class MessagingClientErrorCode {
};
}

// @public
export interface MessagingConditionResponse {
messageId: number;
}

// @public @deprecated
export interface MessagingDeviceGroupResponse {
failedRegistrationTokens: string[];
failureCount: number;
successCount: number;
}

// @public @deprecated
export interface MessagingDeviceResult {
canonicalRegistrationToken?: string;
// Warning: (ae-forgotten-export) The symbol "FirebaseError" needs to be exported by the entry point index.d.ts
error?: FirebaseError;
messageId?: string;
}

// @public @deprecated
export interface MessagingDevicesResponse {
// (undocumented)
canonicalRegistrationTokenCount: number;
// (undocumented)
failureCount: number;
// (undocumented)
multicastId: number;
// (undocumented)
results: MessagingDeviceResult[];
// (undocumented)
successCount: number;
}

// @public
export interface MessagingOptions {
// (undocumented)
Expand Down Expand Up @@ -371,11 +325,6 @@ export interface MessagingTopicManagementResponse {
successCount: number;
}

// @public
export interface MessagingTopicResponse {
messageId: number;
}

// @public
export interface MulticastMessage extends BaseMessage {
// (undocumented)
Expand Down Expand Up @@ -409,6 +358,7 @@ export interface NotificationMessagePayload {

// @public
export interface SendResponse {
// Warning: (ae-forgotten-export) The symbol "FirebaseError" needs to be exported by the entry point index.d.ts
error?: FirebaseError;
messageId?: string;
success: boolean;
Expand Down
5 changes: 3 additions & 2 deletions etc/firebase-admin.storage.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ export function getDownloadURL(file: File_2): Promise<string>;
// Warning: (ae-forgotten-export) The symbol "App" needs to be exported by the entry point index.d.ts
//
// @public
export function getStorage(app?: App): Storage;
export function getStorage(app?: App): Storage_2;

// @public
export class Storage {
class Storage_2 {
get app(): App;
bucket(name?: string): Bucket;
}
export { Storage_2 as Storage }

```
Loading

0 comments on commit 886bd54

Please sign in to comment.