1
1
// This file is auto-generated by @hey-api/openapi-ts
2
2
3
- import {
4
- createClient ,
5
- createConfig ,
6
- type OptionsLegacyParser ,
7
- } from "@hey-api/client-fetch" ;
8
- import type {
9
- GetMessagesDashboardMessagesGetError ,
10
- GetMessagesDashboardMessagesGetResponse ,
11
- GetAlertsDashboardAlertsGetError ,
12
- GetAlertsDashboardAlertsGetResponse ,
13
- StreamSseDashboardAlertsNotificationGetError ,
14
- StreamSseDashboardAlertsNotificationGetResponse ,
15
- } from "./types.gen" ;
3
+ import { createClient , createConfig , type OptionsLegacyParser } from '@hey-api/client-fetch' ;
4
+ import type { GetMessagesDashboardMessagesGetError , GetMessagesDashboardMessagesGetResponse , GetAlertsDashboardAlertsGetError , GetAlertsDashboardAlertsGetResponse , StreamSseDashboardAlertsNotificationGetError , StreamSseDashboardAlertsNotificationGetResponse } from './types.gen' ;
16
5
17
6
export const client = createClient ( createConfig ( ) ) ;
18
7
19
8
/**
20
9
* Get Messages
21
10
* Get all the messages from the database and return them as a list of conversations.
22
11
*/
23
- export const getMessagesDashboardMessagesGet = <
24
- ThrowOnError extends boolean = false ,
25
- > (
26
- options ?: OptionsLegacyParser < unknown , ThrowOnError > ,
27
- ) => {
28
- return ( options ?. client ?? client ) . get <
29
- GetMessagesDashboardMessagesGetResponse ,
30
- GetMessagesDashboardMessagesGetError ,
31
- ThrowOnError
32
- > ( {
33
- ...options ,
34
- url : "/dashboard/messages" ,
35
- } ) ;
12
+ export const getMessagesDashboardMessagesGet = < ThrowOnError extends boolean = false > ( options ?: OptionsLegacyParser < unknown , ThrowOnError > ) => {
13
+ return ( options ?. client ?? client ) . get < GetMessagesDashboardMessagesGetResponse , GetMessagesDashboardMessagesGetError , ThrowOnError > ( {
14
+ ...options ,
15
+ url : '/dashboard/messages'
16
+ } ) ;
36
17
} ;
37
18
38
19
/**
39
20
* Get Alerts
40
21
* Get all the messages from the database and return them as a list of conversations.
41
22
*/
42
- export const getAlertsDashboardAlertsGet = <
43
- ThrowOnError extends boolean = false ,
44
- > (
45
- options ?: OptionsLegacyParser < unknown , ThrowOnError > ,
46
- ) => {
47
- return ( options ?. client ?? client ) . get <
48
- GetAlertsDashboardAlertsGetResponse ,
49
- GetAlertsDashboardAlertsGetError ,
50
- ThrowOnError
51
- > ( {
52
- ...options ,
53
- url : "/dashboard/alerts" ,
54
- } ) ;
23
+ export const getAlertsDashboardAlertsGet = < ThrowOnError extends boolean = false > ( options ?: OptionsLegacyParser < unknown , ThrowOnError > ) => {
24
+ return ( options ?. client ?? client ) . get < GetAlertsDashboardAlertsGetResponse , GetAlertsDashboardAlertsGetError , ThrowOnError > ( {
25
+ ...options ,
26
+ url : '/dashboard/alerts'
27
+ } ) ;
55
28
} ;
56
29
57
30
/**
58
31
* Stream Sse
59
32
* Send alerts event
60
33
*/
61
- export const streamSseDashboardAlertsNotificationGet = <
62
- ThrowOnError extends boolean = false ,
63
- > (
64
- options ?: OptionsLegacyParser < unknown , ThrowOnError > ,
65
- ) => {
66
- return ( options ?. client ?? client ) . get <
67
- StreamSseDashboardAlertsNotificationGetResponse ,
68
- StreamSseDashboardAlertsNotificationGetError ,
69
- ThrowOnError
70
- > ( {
71
- ...options ,
72
- url : "/dashboard/alerts_notification" ,
73
- } ) ;
74
- } ;
34
+ export const streamSseDashboardAlertsNotificationGet = < ThrowOnError extends boolean = false > ( options ?: OptionsLegacyParser < unknown , ThrowOnError > ) => {
35
+ return ( options ?. client ?? client ) . get < StreamSseDashboardAlertsNotificationGetResponse , StreamSseDashboardAlertsNotificationGetError , ThrowOnError > ( {
36
+ ...options ,
37
+ url : '/dashboard/alerts_notification'
38
+ } ) ;
39
+ } ;
0 commit comments