@footballbingo/client 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sdk.gen.d.ts +2 -0
- package/dist/sdk.gen.js +2 -0
- package/dist/types.gen.d.ts +7 -0
- package/package.json +1 -1
package/dist/sdk.gen.d.ts
CHANGED
|
@@ -1131,6 +1131,8 @@ export declare const getUnreadNotificationCount: <ThrowOnError extends boolean =
|
|
|
1131
1131
|
export declare const markNotificationRead: <ThrowOnError extends boolean = false>(options: Options<MarkNotificationReadData, ThrowOnError>) => import("./client").RequestResult<MarkNotificationReadResponses, MarkNotificationReadErrors, ThrowOnError, "fields">;
|
|
1132
1132
|
/**
|
|
1133
1133
|
* List registered devices
|
|
1134
|
+
*
|
|
1135
|
+
* Returns the user's registered push devices. Send the optional X-Device-Token header containing the current device's push token to have that device flagged with isCurrent=true in the response.
|
|
1134
1136
|
*/
|
|
1135
1137
|
export declare const listNotificationDevices: <ThrowOnError extends boolean = false>(options?: Options<ListNotificationDevicesData, ThrowOnError>) => import("./client").RequestResult<ListNotificationDevicesResponses, ListNotificationDevicesErrors, ThrowOnError, "fields">;
|
|
1136
1138
|
/**
|
package/dist/sdk.gen.js
CHANGED
|
@@ -1861,6 +1861,8 @@ export const markNotificationRead = (options) => (options.client ?? client).put(
|
|
|
1861
1861
|
});
|
|
1862
1862
|
/**
|
|
1863
1863
|
* List registered devices
|
|
1864
|
+
*
|
|
1865
|
+
* Returns the user's registered push devices. Send the optional X-Device-Token header containing the current device's push token to have that device flagged with isCurrent=true in the response.
|
|
1864
1866
|
*/
|
|
1865
1867
|
export const listNotificationDevices = (options) => (options?.client ?? client).get({
|
|
1866
1868
|
security: [{ scheme: 'bearer', type: 'http' }],
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -4775,6 +4775,7 @@ export type NotificationDevice = {
|
|
|
4775
4775
|
} | null;
|
|
4776
4776
|
isActive: boolean;
|
|
4777
4777
|
disabledByUser: boolean;
|
|
4778
|
+
isCurrent: boolean;
|
|
4778
4779
|
lastUsedAt: string | null;
|
|
4779
4780
|
createdAt: string;
|
|
4780
4781
|
};
|
|
@@ -20091,6 +20092,12 @@ export type MarkNotificationReadResponses = {
|
|
|
20091
20092
|
export type MarkNotificationReadResponse = MarkNotificationReadResponses[keyof MarkNotificationReadResponses];
|
|
20092
20093
|
export type ListNotificationDevicesData = {
|
|
20093
20094
|
body?: never;
|
|
20095
|
+
headers?: {
|
|
20096
|
+
/**
|
|
20097
|
+
* The current device's push token. If provided, the matching device in the response will have isCurrent=true.
|
|
20098
|
+
*/
|
|
20099
|
+
'x-device-token'?: string;
|
|
20100
|
+
};
|
|
20094
20101
|
path?: never;
|
|
20095
20102
|
query?: never;
|
|
20096
20103
|
url: '/api/v1/notifications/devices';
|