diff --git a/lib/client.ts b/lib/client.ts index 21ed5c6..65456f6 100644 --- a/lib/client.ts +++ b/lib/client.ts @@ -72,7 +72,9 @@ type NotificationAPIClientSDK = { }> ): Promise; postUser(params: PostUserRequest): Promise; - getUserAccountMetadata(): Promise; + getUserAccountMetadata(): Promise<{ + userAccountMetadata: UserAccountMetadata; + }>; }; websocket: { object: WebSocket | undefined; @@ -106,7 +108,9 @@ type NotificationAPIClientSDK = { }): Promise; getPreferences(): Promise; identify(params: PostUserRequest): Promise; - getUserAccountMetadata(): Promise; + getUserAccountMetadata(): Promise<{ + userAccountMetadata: UserAccountMetadata; + }>; }; export const NotificationAPIClientSDK: NotificationAPIClientSDK = { diff --git a/package.json b/package.json index 749ef95..5f5bf00 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@notificationapi/core", - "version": "0.0.11", + "version": "0.0.12", "type": "module", "main": "dist/main.js", "types": "dist/main.d.ts",