@squonk/account-server-client 4.2.5 → 4.3.1
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/asset/asset.cjs +99 -126
- package/asset/asset.cjs.map +1 -1
- package/asset/asset.d.cts +99 -99
- package/asset/asset.d.ts +99 -99
- package/asset/asset.js +107 -134
- package/asset/asset.js.map +1 -1
- package/charges/charges.cjs +73 -85
- package/charges/charges.cjs.map +1 -1
- package/charges/charges.d.cts +47 -47
- package/charges/charges.d.ts +47 -47
- package/charges/charges.js +78 -90
- package/charges/charges.js.map +1 -1
- package/chunk-3WKSNKHE.js +25 -0
- package/chunk-3WKSNKHE.js.map +1 -0
- package/chunk-NY2VJJG7.cjs +25 -0
- package/chunk-NY2VJJG7.cjs.map +1 -0
- package/{chunk-TKLTUR4R.cjs → chunk-RB2KVIEK.cjs} +1 -1
- package/chunk-RB2KVIEK.cjs.map +1 -0
- package/{chunk-EBOQPVLG.js → chunk-XYDLYMQ2.js} +1 -1
- package/chunk-XYDLYMQ2.js.map +1 -0
- package/event-stream/event-stream.cjs +53 -61
- package/event-stream/event-stream.cjs.map +1 -1
- package/event-stream/event-stream.d.cts +44 -44
- package/event-stream/event-stream.d.ts +44 -44
- package/event-stream/event-stream.js +58 -66
- package/event-stream/event-stream.js.map +1 -1
- package/index.cjs +49 -58
- package/index.cjs.map +1 -1
- package/index.d.cts +783 -765
- package/index.d.ts +783 -765
- package/index.js +48 -57
- package/index.js.map +1 -1
- package/merchant/merchant.cjs +38 -45
- package/merchant/merchant.cjs.map +1 -1
- package/merchant/merchant.d.cts +25 -25
- package/merchant/merchant.d.ts +25 -25
- package/merchant/merchant.js +42 -49
- package/merchant/merchant.js.map +1 -1
- package/organisation/organisation.cjs +77 -87
- package/organisation/organisation.cjs.map +1 -1
- package/organisation/organisation.d.cts +72 -70
- package/organisation/organisation.d.ts +72 -70
- package/organisation/organisation.js +83 -93
- package/organisation/organisation.js.map +1 -1
- package/package.json +13 -16
- package/product/product.cjs +143 -153
- package/product/product.cjs.map +1 -1
- package/product/product.d.cts +100 -100
- package/product/product.d.ts +100 -100
- package/product/product.js +153 -163
- package/product/product.js.map +1 -1
- package/src/account-server-api.schemas.ts +862 -860
- package/src/asset/asset.ts +899 -634
- package/src/charges/charges.ts +822 -498
- package/src/custom-instance.ts +3 -3
- package/src/event-stream/event-stream.ts +530 -344
- package/src/index.ts +2 -2
- package/src/merchant/merchant.ts +355 -234
- package/src/options-mutator.ts +27 -0
- package/src/organisation/organisation.ts +812 -504
- package/src/product/product.ts +1373 -841
- package/src/state/state.ts +174 -127
- package/src/unit/unit.ts +1273 -603
- package/src/user/user.ts +895 -564
- package/state/state.cjs +22 -24
- package/state/state.cjs.map +1 -1
- package/state/state.d.cts +14 -14
- package/state/state.d.ts +14 -14
- package/state/state.js +24 -26
- package/state/state.js.map +1 -1
- package/unit/unit.cjs +171 -106
- package/unit/unit.cjs.map +1 -1
- package/unit/unit.d.cts +200 -90
- package/unit/unit.d.ts +200 -90
- package/unit/unit.js +179 -114
- package/unit/unit.js.map +1 -1
- package/user/user.cjs +94 -110
- package/user/user.cjs.map +1 -1
- package/user/user.d.cts +77 -77
- package/user/user.d.ts +77 -77
- package/user/user.js +101 -117
- package/user/user.js.map +1 -1
- package/chunk-EBOQPVLG.js.map +0 -1
- package/chunk-TKLTUR4R.cjs.map +0 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { UseQueryOptions, DataTag, QueryKey, DefinedInitialDataOptions, DefinedUseQueryResult, UndefinedInitialDataOptions, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult, UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
1
|
+
import { UseQueryOptions, DataTag, QueryKey, DefinedInitialDataOptions, QueryClient, DefinedUseQueryResult, UndefinedInitialDataOptions, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult, UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
|
|
2
2
|
import { customInstance, EventStreamVersionGetResponse, ErrorType, AsError, EventStreamGetPostResponse, EventStreamPostBodyBody } from '../index.js';
|
|
3
3
|
import 'axios';
|
|
4
4
|
|
|
5
|
-
type SecondParameter<T extends (...args:
|
|
5
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
6
6
|
/**
|
|
7
7
|
* Gets the details of the installed event stream, which includes its **protocol**, and **name**.
|
|
8
8
|
|
|
9
9
|
* @summary Gets the details of the installed event stream
|
|
10
10
|
*/
|
|
11
11
|
declare const getEventStreamVersion: (options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<EventStreamVersionGetResponse>;
|
|
12
|
-
declare const getGetEventStreamVersionQueryKey: () => readonly ["
|
|
13
|
-
declare const
|
|
12
|
+
declare const getGetEventStreamVersionQueryKey: () => readonly ["/event-stream/version"];
|
|
13
|
+
declare const useGetEventStreamVersionQueryOptions: <TData = Awaited<ReturnType<typeof getEventStreamVersion>>, TError = ErrorType<void | AsError>>(options?: {
|
|
14
14
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>>;
|
|
15
15
|
request?: SecondParameter<typeof customInstance>;
|
|
16
16
|
}) => UseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData> & {
|
|
@@ -19,24 +19,24 @@ declare const getGetEventStreamVersionQueryOptions: <TData = EventStreamVersionG
|
|
|
19
19
|
type GetEventStreamVersionQueryResult = NonNullable<Awaited<ReturnType<typeof getEventStreamVersion>>>;
|
|
20
20
|
type GetEventStreamVersionQueryError = ErrorType<void | AsError>;
|
|
21
21
|
declare function useGetEventStreamVersion<TData = Awaited<ReturnType<typeof getEventStreamVersion>>, TError = ErrorType<void | AsError>>(options: {
|
|
22
|
-
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError,
|
|
22
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, Awaited<ReturnType<typeof getEventStreamVersion>>>, "initialData">;
|
|
23
23
|
request?: SecondParameter<typeof customInstance>;
|
|
24
|
-
}): DefinedUseQueryResult<TData, TError> & {
|
|
24
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
25
25
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
26
26
|
};
|
|
27
27
|
declare function useGetEventStreamVersion<TData = Awaited<ReturnType<typeof getEventStreamVersion>>, TError = ErrorType<void | AsError>>(options?: {
|
|
28
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError,
|
|
28
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, Awaited<ReturnType<typeof getEventStreamVersion>>>, "initialData">;
|
|
29
29
|
request?: SecondParameter<typeof customInstance>;
|
|
30
|
-
}): UseQueryResult<TData, TError> & {
|
|
30
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
31
31
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
32
32
|
};
|
|
33
33
|
declare function useGetEventStreamVersion<TData = Awaited<ReturnType<typeof getEventStreamVersion>>, TError = ErrorType<void | AsError>>(options?: {
|
|
34
34
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>>;
|
|
35
35
|
request?: SecondParameter<typeof customInstance>;
|
|
36
|
-
}): UseQueryResult<TData, TError> & {
|
|
36
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
37
37
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
38
38
|
};
|
|
39
|
-
declare const
|
|
39
|
+
declare const useGetEventStreamVersionSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getEventStreamVersion>>, TError = ErrorType<void | AsError>>(options?: {
|
|
40
40
|
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>>;
|
|
41
41
|
request?: SecondParameter<typeof customInstance>;
|
|
42
42
|
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData> & {
|
|
@@ -47,19 +47,19 @@ type GetEventStreamVersionSuspenseQueryError = ErrorType<void | AsError>;
|
|
|
47
47
|
declare function useGetEventStreamVersionSuspense<TData = Awaited<ReturnType<typeof getEventStreamVersion>>, TError = ErrorType<void | AsError>>(options: {
|
|
48
48
|
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>>;
|
|
49
49
|
request?: SecondParameter<typeof customInstance>;
|
|
50
|
-
}): UseSuspenseQueryResult<TData, TError> & {
|
|
50
|
+
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
51
51
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
52
52
|
};
|
|
53
53
|
declare function useGetEventStreamVersionSuspense<TData = Awaited<ReturnType<typeof getEventStreamVersion>>, TError = ErrorType<void | AsError>>(options?: {
|
|
54
54
|
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>>;
|
|
55
55
|
request?: SecondParameter<typeof customInstance>;
|
|
56
|
-
}): UseSuspenseQueryResult<TData, TError> & {
|
|
56
|
+
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
57
57
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
58
58
|
};
|
|
59
59
|
declare function useGetEventStreamVersionSuspense<TData = Awaited<ReturnType<typeof getEventStreamVersion>>, TError = ErrorType<void | AsError>>(options?: {
|
|
60
60
|
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>>;
|
|
61
61
|
request?: SecondParameter<typeof customInstance>;
|
|
62
|
-
}): UseSuspenseQueryResult<TData, TError> & {
|
|
62
|
+
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
63
63
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
64
64
|
};
|
|
65
65
|
/**
|
|
@@ -68,8 +68,8 @@ declare function useGetEventStreamVersionSuspense<TData = Awaited<ReturnType<typ
|
|
|
68
68
|
* @summary Gets the details of your event stream
|
|
69
69
|
*/
|
|
70
70
|
declare const getEventStream: (options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<EventStreamGetPostResponse>;
|
|
71
|
-
declare const getGetEventStreamQueryKey: () => readonly ["
|
|
72
|
-
declare const
|
|
71
|
+
declare const getGetEventStreamQueryKey: () => readonly ["/event-stream"];
|
|
72
|
+
declare const useGetEventStreamQueryOptions: <TData = Awaited<ReturnType<typeof getEventStream>>, TError = ErrorType<void | AsError>>(options?: {
|
|
73
73
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>>;
|
|
74
74
|
request?: SecondParameter<typeof customInstance>;
|
|
75
75
|
}) => UseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData> & {
|
|
@@ -78,24 +78,24 @@ declare const getGetEventStreamQueryOptions: <TData = EventStreamGetPostResponse
|
|
|
78
78
|
type GetEventStreamQueryResult = NonNullable<Awaited<ReturnType<typeof getEventStream>>>;
|
|
79
79
|
type GetEventStreamQueryError = ErrorType<void | AsError>;
|
|
80
80
|
declare function useGetEventStream<TData = Awaited<ReturnType<typeof getEventStream>>, TError = ErrorType<void | AsError>>(options: {
|
|
81
|
-
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getEventStream>>, TError,
|
|
81
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getEventStream>>, TError, Awaited<ReturnType<typeof getEventStream>>>, "initialData">;
|
|
82
82
|
request?: SecondParameter<typeof customInstance>;
|
|
83
|
-
}): DefinedUseQueryResult<TData, TError> & {
|
|
83
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
84
84
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
85
85
|
};
|
|
86
86
|
declare function useGetEventStream<TData = Awaited<ReturnType<typeof getEventStream>>, TError = ErrorType<void | AsError>>(options?: {
|
|
87
|
-
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getEventStream>>, TError,
|
|
87
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getEventStream>>, TError, Awaited<ReturnType<typeof getEventStream>>>, "initialData">;
|
|
88
88
|
request?: SecondParameter<typeof customInstance>;
|
|
89
|
-
}): UseQueryResult<TData, TError> & {
|
|
89
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
90
90
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
91
91
|
};
|
|
92
92
|
declare function useGetEventStream<TData = Awaited<ReturnType<typeof getEventStream>>, TError = ErrorType<void | AsError>>(options?: {
|
|
93
93
|
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>>;
|
|
94
94
|
request?: SecondParameter<typeof customInstance>;
|
|
95
|
-
}): UseQueryResult<TData, TError> & {
|
|
95
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
96
96
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
97
97
|
};
|
|
98
|
-
declare const
|
|
98
|
+
declare const useGetEventStreamSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getEventStream>>, TError = ErrorType<void | AsError>>(options?: {
|
|
99
99
|
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>>;
|
|
100
100
|
request?: SecondParameter<typeof customInstance>;
|
|
101
101
|
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData> & {
|
|
@@ -106,19 +106,19 @@ type GetEventStreamSuspenseQueryError = ErrorType<void | AsError>;
|
|
|
106
106
|
declare function useGetEventStreamSuspense<TData = Awaited<ReturnType<typeof getEventStream>>, TError = ErrorType<void | AsError>>(options: {
|
|
107
107
|
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>>;
|
|
108
108
|
request?: SecondParameter<typeof customInstance>;
|
|
109
|
-
}): UseSuspenseQueryResult<TData, TError> & {
|
|
109
|
+
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
110
110
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
111
111
|
};
|
|
112
112
|
declare function useGetEventStreamSuspense<TData = Awaited<ReturnType<typeof getEventStream>>, TError = ErrorType<void | AsError>>(options?: {
|
|
113
113
|
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>>;
|
|
114
114
|
request?: SecondParameter<typeof customInstance>;
|
|
115
|
-
}): UseSuspenseQueryResult<TData, TError> & {
|
|
115
|
+
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
116
116
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
117
117
|
};
|
|
118
118
|
declare function useGetEventStreamSuspense<TData = Awaited<ReturnType<typeof getEventStream>>, TError = ErrorType<void | AsError>>(options?: {
|
|
119
119
|
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>>;
|
|
120
120
|
request?: SecondParameter<typeof customInstance>;
|
|
121
|
-
}): UseSuspenseQueryResult<TData, TError> & {
|
|
121
|
+
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
122
122
|
queryKey: DataTag<QueryKey, TData, TError>;
|
|
123
123
|
};
|
|
124
124
|
/**
|
|
@@ -135,54 +135,54 @@ A user is only permitted one event stream.
|
|
|
135
135
|
* @summary Create a new event stream
|
|
136
136
|
*/
|
|
137
137
|
declare const createEventStream: (eventStreamPostBodyBody: EventStreamPostBodyBody, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<EventStreamGetPostResponse>;
|
|
138
|
-
declare const
|
|
139
|
-
mutation?: UseMutationOptions<
|
|
138
|
+
declare const useCreateEventStreamMutationOptions: <TError = ErrorType<AsError | void>, TContext = unknown>(options?: {
|
|
139
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createEventStream>>, TError, {
|
|
140
140
|
data: EventStreamPostBodyBody;
|
|
141
141
|
}, TContext>;
|
|
142
142
|
request?: SecondParameter<typeof customInstance>;
|
|
143
|
-
}) => UseMutationOptions<
|
|
143
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof createEventStream>>, TError, {
|
|
144
144
|
data: EventStreamPostBodyBody;
|
|
145
145
|
}, TContext>;
|
|
146
146
|
type CreateEventStreamMutationResult = NonNullable<Awaited<ReturnType<typeof createEventStream>>>;
|
|
147
147
|
type CreateEventStreamMutationBody = EventStreamPostBodyBody;
|
|
148
148
|
type CreateEventStreamMutationError = ErrorType<AsError | void>;
|
|
149
149
|
/**
|
|
150
|
-
* @summary Create a new event stream
|
|
151
|
-
*/
|
|
152
|
-
declare const useCreateEventStream: <
|
|
153
|
-
mutation?: UseMutationOptions<
|
|
150
|
+
* @summary Create a new event stream
|
|
151
|
+
*/
|
|
152
|
+
declare const useCreateEventStream: <TError = ErrorType<AsError | void>, TContext = unknown>(options?: {
|
|
153
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createEventStream>>, TError, {
|
|
154
154
|
data: EventStreamPostBodyBody;
|
|
155
155
|
}, TContext>;
|
|
156
156
|
request?: SecondParameter<typeof customInstance>;
|
|
157
|
-
}) => UseMutationResult<
|
|
157
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createEventStream>>, TError, {
|
|
158
158
|
data: EventStreamPostBodyBody;
|
|
159
159
|
}, TContext>;
|
|
160
160
|
/**
|
|
161
|
-
* You must be the user who created the event stream.
|
|
161
|
+
* You must be the user who created the event stream.
|
|
162
162
|
|
|
163
|
-
* @summary Deletes an existing event stream (that you created)
|
|
164
|
-
*/
|
|
163
|
+
* @summary Deletes an existing event stream (that you created)
|
|
164
|
+
*/
|
|
165
165
|
declare const deleteEventStream: (eventStreamId: number, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
166
|
-
declare const
|
|
167
|
-
mutation?: UseMutationOptions<
|
|
166
|
+
declare const useDeleteEventStreamMutationOptions: <TError = ErrorType<void | AsError>, TContext = unknown>(options?: {
|
|
167
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteEventStream>>, TError, {
|
|
168
168
|
eventStreamId: number;
|
|
169
169
|
}, TContext>;
|
|
170
170
|
request?: SecondParameter<typeof customInstance>;
|
|
171
|
-
}) => UseMutationOptions<
|
|
171
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof deleteEventStream>>, TError, {
|
|
172
172
|
eventStreamId: number;
|
|
173
173
|
}, TContext>;
|
|
174
174
|
type DeleteEventStreamMutationResult = NonNullable<Awaited<ReturnType<typeof deleteEventStream>>>;
|
|
175
175
|
type DeleteEventStreamMutationError = ErrorType<void | AsError>;
|
|
176
176
|
/**
|
|
177
|
-
* @summary Deletes an existing event stream (that you created)
|
|
178
|
-
*/
|
|
179
|
-
declare const useDeleteEventStream: <
|
|
180
|
-
mutation?: UseMutationOptions<
|
|
177
|
+
* @summary Deletes an existing event stream (that you created)
|
|
178
|
+
*/
|
|
179
|
+
declare const useDeleteEventStream: <TError = ErrorType<void | AsError>, TContext = unknown>(options?: {
|
|
180
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteEventStream>>, TError, {
|
|
181
181
|
eventStreamId: number;
|
|
182
182
|
}, TContext>;
|
|
183
183
|
request?: SecondParameter<typeof customInstance>;
|
|
184
|
-
}) => UseMutationResult<
|
|
184
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteEventStream>>, TError, {
|
|
185
185
|
eventStreamId: number;
|
|
186
186
|
}, TContext>;
|
|
187
187
|
|
|
188
|
-
export { type CreateEventStreamMutationBody, type CreateEventStreamMutationError, type CreateEventStreamMutationResult, type DeleteEventStreamMutationError, type DeleteEventStreamMutationResult, type GetEventStreamQueryError, type GetEventStreamQueryResult, type GetEventStreamSuspenseQueryError, type GetEventStreamSuspenseQueryResult, type GetEventStreamVersionQueryError, type GetEventStreamVersionQueryResult, type GetEventStreamVersionSuspenseQueryError, type GetEventStreamVersionSuspenseQueryResult, createEventStream, deleteEventStream,
|
|
188
|
+
export { type CreateEventStreamMutationBody, type CreateEventStreamMutationError, type CreateEventStreamMutationResult, type DeleteEventStreamMutationError, type DeleteEventStreamMutationResult, type GetEventStreamQueryError, type GetEventStreamQueryResult, type GetEventStreamSuspenseQueryError, type GetEventStreamSuspenseQueryResult, type GetEventStreamVersionQueryError, type GetEventStreamVersionQueryResult, type GetEventStreamVersionSuspenseQueryError, type GetEventStreamVersionSuspenseQueryResult, createEventStream, deleteEventStream, getEventStream, getEventStreamVersion, getGetEventStreamQueryKey, getGetEventStreamVersionQueryKey, useCreateEventStream, useCreateEventStreamMutationOptions, useDeleteEventStream, useDeleteEventStreamMutationOptions, useGetEventStream, useGetEventStreamQueryOptions, useGetEventStreamSuspense, useGetEventStreamSuspenseQueryOptions, useGetEventStreamVersion, useGetEventStreamVersionQueryOptions, useGetEventStreamVersionSuspense, useGetEventStreamVersionSuspenseQueryOptions };
|
|
@@ -1,84 +1,80 @@
|
|
|
1
|
+
import {
|
|
2
|
+
mutationMutator,
|
|
3
|
+
queryMutator
|
|
4
|
+
} from "../chunk-3WKSNKHE.js";
|
|
1
5
|
import {
|
|
2
6
|
customInstance
|
|
3
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-XYDLYMQ2.js";
|
|
4
8
|
|
|
5
9
|
// src/event-stream/event-stream.ts
|
|
6
|
-
import {
|
|
7
|
-
useMutation,
|
|
8
|
-
useQuery,
|
|
9
|
-
useSuspenseQuery
|
|
10
|
-
} from "@tanstack/react-query";
|
|
10
|
+
import { useMutation, useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
11
11
|
var getEventStreamVersion = (options, signal) => {
|
|
12
12
|
return customInstance(
|
|
13
|
-
{
|
|
14
|
-
url: `/event-stream/version`,
|
|
15
|
-
method: "GET",
|
|
16
|
-
signal
|
|
17
|
-
},
|
|
13
|
+
{ url: `/event-stream/version`, method: "GET", signal },
|
|
18
14
|
options
|
|
19
15
|
);
|
|
20
16
|
};
|
|
21
17
|
var getGetEventStreamVersionQueryKey = () => {
|
|
22
|
-
return [
|
|
18
|
+
return [`/event-stream/version`];
|
|
23
19
|
};
|
|
24
|
-
var
|
|
20
|
+
var useGetEventStreamVersionQueryOptions = (options) => {
|
|
25
21
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
26
|
-
const queryKey =
|
|
22
|
+
const queryKey = queryOptions?.queryKey ?? getGetEventStreamVersionQueryKey();
|
|
27
23
|
const queryFn = ({ signal }) => getEventStreamVersion(requestOptions, signal);
|
|
28
|
-
|
|
24
|
+
const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
|
|
25
|
+
return customOptions;
|
|
29
26
|
};
|
|
30
|
-
function useGetEventStreamVersion(options) {
|
|
31
|
-
const queryOptions =
|
|
32
|
-
const query = useQuery(queryOptions);
|
|
27
|
+
function useGetEventStreamVersion(options, queryClient) {
|
|
28
|
+
const queryOptions = useGetEventStreamVersionQueryOptions(options);
|
|
29
|
+
const query = useQuery(queryOptions, queryClient);
|
|
33
30
|
query.queryKey = queryOptions.queryKey;
|
|
34
31
|
return query;
|
|
35
32
|
}
|
|
36
|
-
var
|
|
33
|
+
var useGetEventStreamVersionSuspenseQueryOptions = (options) => {
|
|
37
34
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
38
|
-
const queryKey =
|
|
35
|
+
const queryKey = queryOptions?.queryKey ?? getGetEventStreamVersionQueryKey();
|
|
39
36
|
const queryFn = ({ signal }) => getEventStreamVersion(requestOptions, signal);
|
|
40
|
-
|
|
37
|
+
const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
|
|
38
|
+
return customOptions;
|
|
41
39
|
};
|
|
42
|
-
function useGetEventStreamVersionSuspense(options) {
|
|
43
|
-
const queryOptions =
|
|
44
|
-
const query = useSuspenseQuery(queryOptions);
|
|
40
|
+
function useGetEventStreamVersionSuspense(options, queryClient) {
|
|
41
|
+
const queryOptions = useGetEventStreamVersionSuspenseQueryOptions(options);
|
|
42
|
+
const query = useSuspenseQuery(queryOptions, queryClient);
|
|
45
43
|
query.queryKey = queryOptions.queryKey;
|
|
46
44
|
return query;
|
|
47
45
|
}
|
|
48
46
|
var getEventStream = (options, signal) => {
|
|
49
47
|
return customInstance(
|
|
50
|
-
{
|
|
51
|
-
url: `/event-stream`,
|
|
52
|
-
method: "GET",
|
|
53
|
-
signal
|
|
54
|
-
},
|
|
48
|
+
{ url: `/event-stream`, method: "GET", signal },
|
|
55
49
|
options
|
|
56
50
|
);
|
|
57
51
|
};
|
|
58
52
|
var getGetEventStreamQueryKey = () => {
|
|
59
|
-
return [
|
|
53
|
+
return [`/event-stream`];
|
|
60
54
|
};
|
|
61
|
-
var
|
|
55
|
+
var useGetEventStreamQueryOptions = (options) => {
|
|
62
56
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
63
|
-
const queryKey =
|
|
57
|
+
const queryKey = queryOptions?.queryKey ?? getGetEventStreamQueryKey();
|
|
64
58
|
const queryFn = ({ signal }) => getEventStream(requestOptions, signal);
|
|
65
|
-
|
|
59
|
+
const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
|
|
60
|
+
return customOptions;
|
|
66
61
|
};
|
|
67
|
-
function useGetEventStream(options) {
|
|
68
|
-
const queryOptions =
|
|
69
|
-
const query = useQuery(queryOptions);
|
|
62
|
+
function useGetEventStream(options, queryClient) {
|
|
63
|
+
const queryOptions = useGetEventStreamQueryOptions(options);
|
|
64
|
+
const query = useQuery(queryOptions, queryClient);
|
|
70
65
|
query.queryKey = queryOptions.queryKey;
|
|
71
66
|
return query;
|
|
72
67
|
}
|
|
73
|
-
var
|
|
68
|
+
var useGetEventStreamSuspenseQueryOptions = (options) => {
|
|
74
69
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
75
|
-
const queryKey =
|
|
70
|
+
const queryKey = queryOptions?.queryKey ?? getGetEventStreamQueryKey();
|
|
76
71
|
const queryFn = ({ signal }) => getEventStream(requestOptions, signal);
|
|
77
|
-
|
|
72
|
+
const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });
|
|
73
|
+
return customOptions;
|
|
78
74
|
};
|
|
79
|
-
function useGetEventStreamSuspense(options) {
|
|
80
|
-
const queryOptions =
|
|
81
|
-
const query = useSuspenseQuery(queryOptions);
|
|
75
|
+
function useGetEventStreamSuspense(options, queryClient) {
|
|
76
|
+
const queryOptions = useGetEventStreamSuspenseQueryOptions(options);
|
|
77
|
+
const query = useSuspenseQuery(queryOptions, queryClient);
|
|
82
78
|
query.queryKey = queryOptions.queryKey;
|
|
83
79
|
return query;
|
|
84
80
|
}
|
|
@@ -94,59 +90,55 @@ var createEventStream = (eventStreamPostBodyBody, options, signal) => {
|
|
|
94
90
|
options
|
|
95
91
|
);
|
|
96
92
|
};
|
|
97
|
-
var
|
|
93
|
+
var useCreateEventStreamMutationOptions = (options) => {
|
|
98
94
|
const mutationKey = ["createEventStream"];
|
|
99
95
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, request: void 0 };
|
|
100
96
|
const mutationFn = (props) => {
|
|
101
97
|
const { data } = props ?? {};
|
|
102
98
|
return createEventStream(data, requestOptions);
|
|
103
99
|
};
|
|
104
|
-
|
|
100
|
+
const customOptions = mutationMutator({ ...mutationOptions, mutationFn });
|
|
101
|
+
return customOptions;
|
|
105
102
|
};
|
|
106
|
-
var useCreateEventStream = (options) => {
|
|
107
|
-
const mutationOptions =
|
|
108
|
-
return useMutation(mutationOptions);
|
|
103
|
+
var useCreateEventStream = (options, queryClient) => {
|
|
104
|
+
const mutationOptions = useCreateEventStreamMutationOptions(options);
|
|
105
|
+
return useMutation(mutationOptions, queryClient);
|
|
109
106
|
};
|
|
110
107
|
var deleteEventStream = (eventStreamId, options) => {
|
|
111
|
-
return customInstance(
|
|
112
|
-
{
|
|
113
|
-
url: `/event-stream/${eventStreamId}`,
|
|
114
|
-
method: "DELETE"
|
|
115
|
-
},
|
|
116
|
-
options
|
|
117
|
-
);
|
|
108
|
+
return customInstance({ url: `/event-stream/${eventStreamId}`, method: "DELETE" }, options);
|
|
118
109
|
};
|
|
119
|
-
var
|
|
110
|
+
var useDeleteEventStreamMutationOptions = (options) => {
|
|
120
111
|
const mutationKey = ["deleteEventStream"];
|
|
121
112
|
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : { ...options, mutation: { ...options.mutation, mutationKey } } : { mutation: { mutationKey }, request: void 0 };
|
|
122
113
|
const mutationFn = (props) => {
|
|
123
114
|
const { eventStreamId } = props ?? {};
|
|
124
115
|
return deleteEventStream(eventStreamId, requestOptions);
|
|
125
116
|
};
|
|
126
|
-
|
|
117
|
+
const customOptions = mutationMutator({ ...mutationOptions, mutationFn });
|
|
118
|
+
return customOptions;
|
|
127
119
|
};
|
|
128
|
-
var useDeleteEventStream = (options) => {
|
|
129
|
-
const mutationOptions =
|
|
130
|
-
return useMutation(mutationOptions);
|
|
120
|
+
var useDeleteEventStream = (options, queryClient) => {
|
|
121
|
+
const mutationOptions = useDeleteEventStreamMutationOptions(options);
|
|
122
|
+
return useMutation(mutationOptions, queryClient);
|
|
131
123
|
};
|
|
132
124
|
export {
|
|
133
125
|
createEventStream,
|
|
134
126
|
deleteEventStream,
|
|
135
|
-
getCreateEventStreamMutationOptions,
|
|
136
|
-
getDeleteEventStreamMutationOptions,
|
|
137
127
|
getEventStream,
|
|
138
128
|
getEventStreamVersion,
|
|
139
129
|
getGetEventStreamQueryKey,
|
|
140
|
-
getGetEventStreamQueryOptions,
|
|
141
|
-
getGetEventStreamSuspenseQueryOptions,
|
|
142
130
|
getGetEventStreamVersionQueryKey,
|
|
143
|
-
getGetEventStreamVersionQueryOptions,
|
|
144
|
-
getGetEventStreamVersionSuspenseQueryOptions,
|
|
145
131
|
useCreateEventStream,
|
|
132
|
+
useCreateEventStreamMutationOptions,
|
|
146
133
|
useDeleteEventStream,
|
|
134
|
+
useDeleteEventStreamMutationOptions,
|
|
147
135
|
useGetEventStream,
|
|
136
|
+
useGetEventStreamQueryOptions,
|
|
148
137
|
useGetEventStreamSuspense,
|
|
138
|
+
useGetEventStreamSuspenseQueryOptions,
|
|
149
139
|
useGetEventStreamVersion,
|
|
150
|
-
|
|
140
|
+
useGetEventStreamVersionQueryOptions,
|
|
141
|
+
useGetEventStreamVersionSuspense,
|
|
142
|
+
useGetEventStreamVersionSuspenseQueryOptions
|
|
151
143
|
};
|
|
152
144
|
//# sourceMappingURL=event-stream.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/event-stream/event-stream.ts"],"sourcesContent":["// @ts-nocheck\n/**\n * Generated by orval v7.4.1 🍺\n * Do not edit manually.\n * Account Server API\n * The Informatics Matters Account Server API.\n\nA service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.\n\n * OpenAPI spec version: 4.2\n */\nimport {\n useMutation,\n useQuery,\n useSuspenseQuery\n} from '@tanstack/react-query'\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n MutationFunction,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseMutationOptions,\n UseMutationResult,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult\n} from '@tanstack/react-query'\nimport type {\n AsError,\n EventStreamGetPostResponse,\n EventStreamPostBodyBody,\n EventStreamVersionGetResponse\n} from '../account-server-api.schemas'\nimport { customInstance } from '.././custom-instance';\nimport type { ErrorType } from '.././custom-instance';\n\n\ntype SecondParameter<T extends (...args: any) => any> = Parameters<T>[1];\n\n\n/**\n * Gets the details of the installed event stream, which includes its **protocol**, and **name**.\n\n * @summary Gets the details of the installed event stream\n */\nexport const getEventStreamVersion = (\n \n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<EventStreamVersionGetResponse>(\n {url: `/event-stream/version`, method: 'GET', signal\n },\n options);\n }\n \n\nexport const getGetEventStreamVersionQueryKey = () => {\n return [\"account-server-api\", `/event-stream/version`] as const;\n }\n\n \nexport const getGetEventStreamVersionQueryOptions = <TData = Awaited<ReturnType<typeof getEventStreamVersion>>, TError = ErrorType<void | AsError>>( options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetEventStreamVersionQueryKey();\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getEventStreamVersion>>> = ({ signal }) => getEventStreamVersion(requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type GetEventStreamVersionQueryResult = NonNullable<Awaited<ReturnType<typeof getEventStreamVersion>>>\nexport type GetEventStreamVersionQueryError = ErrorType<void | AsError>\n\n\nexport function useGetEventStreamVersion<TData = Awaited<ReturnType<typeof getEventStreamVersion>>, TError = ErrorType<void | AsError>>(\n options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getEventStreamVersion>>,\n TError,\n TData\n > , 'initialData'\n >, request?: SecondParameter<typeof customInstance>}\n\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useGetEventStreamVersion<TData = Awaited<ReturnType<typeof getEventStreamVersion>>, TError = ErrorType<void | AsError>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getEventStreamVersion>>,\n TError,\n TData\n > , 'initialData'\n >, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useGetEventStreamVersion<TData = Awaited<ReturnType<typeof getEventStreamVersion>>, TError = ErrorType<void | AsError>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary Gets the details of the installed event stream\n */\n\nexport function useGetEventStreamVersion<TData = Awaited<ReturnType<typeof getEventStreamVersion>>, TError = ErrorType<void | AsError>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getGetEventStreamVersionQueryOptions(options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\nexport const getGetEventStreamVersionSuspenseQueryOptions = <TData = Awaited<ReturnType<typeof getEventStreamVersion>>, TError = ErrorType<void | AsError>>( options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetEventStreamVersionQueryKey();\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getEventStreamVersion>>> = ({ signal }) => getEventStreamVersion(requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type GetEventStreamVersionSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getEventStreamVersion>>>\nexport type GetEventStreamVersionSuspenseQueryError = ErrorType<void | AsError>\n\n\nexport function useGetEventStreamVersionSuspense<TData = Awaited<ReturnType<typeof getEventStreamVersion>>, TError = ErrorType<void | AsError>>(\n options: { query:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useGetEventStreamVersionSuspense<TData = Awaited<ReturnType<typeof getEventStreamVersion>>, TError = ErrorType<void | AsError>>(\n options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useGetEventStreamVersionSuspense<TData = Awaited<ReturnType<typeof getEventStreamVersion>>, TError = ErrorType<void | AsError>>(\n options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary Gets the details of the installed event stream\n */\n\nexport function useGetEventStreamVersionSuspense<TData = Awaited<ReturnType<typeof getEventStreamVersion>>, TError = ErrorType<void | AsError>>(\n options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getGetEventStreamVersionSuspenseQueryOptions(options)\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n/**\n * Gets the details of your event stream, if you have created one. The response includes the event stream **id** and the **location** where events can be accessed.\n\n * @summary Gets the details of your event stream\n */\nexport const getEventStream = (\n \n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<EventStreamGetPostResponse>(\n {url: `/event-stream`, method: 'GET', signal\n },\n options);\n }\n \n\nexport const getGetEventStreamQueryKey = () => {\n return [\"account-server-api\", `/event-stream`] as const;\n }\n\n \nexport const getGetEventStreamQueryOptions = <TData = Awaited<ReturnType<typeof getEventStream>>, TError = ErrorType<void | AsError>>( options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetEventStreamQueryKey();\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getEventStream>>> = ({ signal }) => getEventStream(requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type GetEventStreamQueryResult = NonNullable<Awaited<ReturnType<typeof getEventStream>>>\nexport type GetEventStreamQueryError = ErrorType<void | AsError>\n\n\nexport function useGetEventStream<TData = Awaited<ReturnType<typeof getEventStream>>, TError = ErrorType<void | AsError>>(\n options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>> & Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getEventStream>>,\n TError,\n TData\n > , 'initialData'\n >, request?: SecondParameter<typeof customInstance>}\n\n ): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useGetEventStream<TData = Awaited<ReturnType<typeof getEventStream>>, TError = ErrorType<void | AsError>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>> & Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getEventStream>>,\n TError,\n TData\n > , 'initialData'\n >, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useGetEventStream<TData = Awaited<ReturnType<typeof getEventStream>>, TError = ErrorType<void | AsError>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary Gets the details of your event stream\n */\n\nexport function useGetEventStream<TData = Awaited<ReturnType<typeof getEventStream>>, TError = ErrorType<void | AsError>>(\n options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getGetEventStreamQueryOptions(options)\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\nexport const getGetEventStreamSuspenseQueryOptions = <TData = Awaited<ReturnType<typeof getEventStream>>, TError = ErrorType<void | AsError>>( options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n) => {\n\nconst {query: queryOptions, request: requestOptions} = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetEventStreamQueryKey();\n\n \n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getEventStream>>> = ({ signal }) => getEventStream(requestOptions, signal);\n\n \n\n \n\n return { queryKey, queryFn, ...queryOptions} as UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }\n}\n\nexport type GetEventStreamSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getEventStream>>>\nexport type GetEventStreamSuspenseQueryError = ErrorType<void | AsError>\n\n\nexport function useGetEventStreamSuspense<TData = Awaited<ReturnType<typeof getEventStream>>, TError = ErrorType<void | AsError>>(\n options: { query:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useGetEventStreamSuspense<TData = Awaited<ReturnType<typeof getEventStream>>, TError = ErrorType<void | AsError>>(\n options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\nexport function useGetEventStreamSuspense<TData = Awaited<ReturnType<typeof getEventStream>>, TError = ErrorType<void | AsError>>(\n options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }\n/**\n * @summary Gets the details of your event stream\n */\n\nexport function useGetEventStreamSuspense<TData = Awaited<ReturnType<typeof getEventStream>>, TError = ErrorType<void | AsError>>(\n options?: { query?:Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>>, request?: SecondParameter<typeof customInstance>}\n\n ): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n\n const queryOptions = getGetEventStreamSuspenseQueryOptions(options)\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n\n query.queryKey = queryOptions.queryKey ;\n\n return query;\n}\n\n\n\n/**\n * Creates a new event stream for the authenticated user. Event streams deliver near-real-time events to the user, typically through a long-running *Socket*. The protocol is dependent on the Event Stream Service that has been installed. Our **Python FastAPI WebSocket** service is one such service.\n\nEvents are delivered to the client using the a `format` chosen here. Internally, events are **Protocol Buffer** objects that are delivered, by default as a single-line string using `MessageToString`. This is the `PROTOCOL_STRING` format. Clients can choose to receive messages as a JSON string using the format `JSON_STRING`. Using JSON strings will incur a small processing penalty but they are useful if the client does not have access to a library that can decode protocol buffer strings.\n\nThe response will include the event stream **id** and the **location** where events can be accessed.\n\nThe event streaming service is an optional component of the Account Server. If a service is not installed you will receive a corresponding **404** error response.\n\nA user is only permitted one event stream.\n\n * @summary Create a new event stream\n */\nexport const createEventStream = (\n eventStreamPostBodyBody: EventStreamPostBodyBody,\n options?: SecondParameter<typeof customInstance>,signal?: AbortSignal\n) => {\n \n \n return customInstance<EventStreamGetPostResponse>(\n {url: `/event-stream`, method: 'POST',\n headers: {'Content-Type': 'application/json', },\n data: eventStreamPostBodyBody, signal\n },\n options);\n }\n \n\n\nexport const getCreateEventStreamMutationOptions = <TData = Awaited<ReturnType<typeof createEventStream>>, TError = ErrorType<AsError | void>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<TData, TError,{data: EventStreamPostBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\nconst mutationKey = ['createEventStream'];\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof createEventStream>>, {data: EventStreamPostBodyBody}> = (props) => {\n const {data} = props ?? {};\n\n return createEventStream(data,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions } as UseMutationOptions<TData, TError,{data: EventStreamPostBodyBody}, TContext>}\n\n export type CreateEventStreamMutationResult = NonNullable<Awaited<ReturnType<typeof createEventStream>>>\n export type CreateEventStreamMutationBody = EventStreamPostBodyBody\n export type CreateEventStreamMutationError = ErrorType<AsError | void>\n\n /**\n * @summary Create a new event stream\n */\nexport const useCreateEventStream = <TData = Awaited<ReturnType<typeof createEventStream>>, TError = ErrorType<AsError | void>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<TData, TError,{data: EventStreamPostBodyBody}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationResult<\n TData,\n TError,\n {data: EventStreamPostBodyBody},\n TContext\n > => {\n\n const mutationOptions = getCreateEventStreamMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n /**\n * You must be the user who created the event stream.\n\n * @summary Deletes an existing event stream (that you created)\n */\nexport const deleteEventStream = (\n eventStreamId: number,\n options?: SecondParameter<typeof customInstance>,) => {\n \n \n return customInstance<void>(\n {url: `/event-stream/${eventStreamId}`, method: 'DELETE'\n },\n options);\n }\n \n\n\nexport const getDeleteEventStreamMutationOptions = <TData = Awaited<ReturnType<typeof deleteEventStream>>, TError = ErrorType<void | AsError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<TData, TError,{eventStreamId: number}, TContext>, request?: SecondParameter<typeof customInstance>}\n) => {\nconst mutationKey = ['deleteEventStream'];\nconst {mutation: mutationOptions, request: requestOptions} = options ?\n options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?\n options\n : {...options, mutation: {...options.mutation, mutationKey}}\n : {mutation: { mutationKey, }, request: undefined};\n\n \n\n\n const mutationFn: MutationFunction<Awaited<ReturnType<typeof deleteEventStream>>, {eventStreamId: number}> = (props) => {\n const {eventStreamId} = props ?? {};\n\n return deleteEventStream(eventStreamId,requestOptions)\n }\n\n \n\n\n return { mutationFn, ...mutationOptions } as UseMutationOptions<TData, TError,{eventStreamId: number}, TContext>}\n\n export type DeleteEventStreamMutationResult = NonNullable<Awaited<ReturnType<typeof deleteEventStream>>>\n \n export type DeleteEventStreamMutationError = ErrorType<void | AsError>\n\n /**\n * @summary Deletes an existing event stream (that you created)\n */\nexport const useDeleteEventStream = <TData = Awaited<ReturnType<typeof deleteEventStream>>, TError = ErrorType<void | AsError>,\n TContext = unknown>(options?: { mutation?:UseMutationOptions<TData, TError,{eventStreamId: number}, TContext>, request?: SecondParameter<typeof customInstance>}\n): UseMutationResult<\n TData,\n TError,\n {eventStreamId: number},\n TContext\n > => {\n\n const mutationOptions = getDeleteEventStreamMutationOptions(options);\n\n return useMutation(mutationOptions);\n }\n "],"mappings":";;;;;AAWA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAkCA,IAAM,wBAAwB,CAEpC,SAAiD,WAC7C;AAGC,SAAO;AAAA,IACP;AAAA,MAAC,KAAK;AAAA,MAAyB,QAAQ;AAAA,MAAO;AAAA,IAChD;AAAA,IACE;AAAA,EAAO;AACT;AAGG,IAAM,mCAAmC,MAAM;AAClD,SAAO,CAAC,sBAAsB,uBAAuB;AACrD;AAGG,IAAM,uCAAuC,CAAiG,YAChJ;AAEL,QAAM,EAAC,OAAO,cAAc,SAAS,eAAc,IAAI,WAAW,CAAC;AAEjE,QAAM,YAAY,6CAAc,aA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,CAC7B,eACH,YAAsD;AAGjD,SAAO;AAAA,IACP;AAAA,MAAC,KAAK,iBAAiB,aAAa;AAAA,MAAI,QAAQ;AAAA,IAClD;AAAA,IACE;AAAA,EAAO;AACT;AAIG,IAAM,sCAAsC,CAC3B,YACnB;AACL,QAAM,cAAc,CAAC,mBAAmB;AACxC,QAAM,EAAC,UAAU,iBAAiB,SAAS,eAAc,IAAI,UACvD,QAAQ,YAAY,iBAAiB,QAAQ,YAAY,QAAQ,SAAS,cAC1E,UACE,EAAC,GAAG,SAAS,UAAU,EAAC,GAAG,QAAQ,UAAU,YAAW,EAAC,IACzD,EAAC,UAAU,EAAE,YAAa,GAAG,SAAS,OAAS;AAKjD,QAAM,aAAuG,CAAC,UAAU;AACpH,UAAM,EAAC,cAAa,IAAI,SAAS,CAAC;AAElC,WAAQ,kBAAkB,eAAc,cAAc;AAAA,EACxD;AAKN,SAAQ,EAAE,YAAY,GAAG,gBAAgB;AAAwE;AAS5G,IAAM,uBAAuB,CACZ,YAMb;AAEL,QAAM,kBAAkB,oCAAoC,OAAO;AAEnE,SAAO,YAAY,eAAe;AACpC;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/event-stream/event-stream.ts"],"sourcesContent":["/**\n * Generated by orval v7.10.0 🍺\n * Do not edit manually.\n * Account Server API\n * The Informatics Matters Account Server API.\n\nA service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.\n\n * OpenAPI spec version: 4.3\n */\nimport { useMutation, useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n MutationFunction,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseMutationOptions,\n UseMutationResult,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type {\n AsError,\n EventStreamGetPostResponse,\n EventStreamPostBodyBody,\n EventStreamVersionGetResponse,\n} from \"../account-server-api.schemas\";\n\nimport { customInstance } from \".././custom-instance\";\nimport type { ErrorType } from \".././custom-instance\";\nimport { queryMutator } from \".././options-mutator\";\nimport { mutationMutator } from \".././options-mutator\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Gets the details of the installed event stream, which includes its **protocol**, and **name**.\n\n * @summary Gets the details of the installed event stream\n */\nexport const getEventStreamVersion = (\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<EventStreamVersionGetResponse>(\n { url: `/event-stream/version`, method: \"GET\", signal },\n options,\n );\n};\n\nexport const getGetEventStreamVersionQueryKey = () => {\n return [`/event-stream/version`] as const;\n};\n\nexport const useGetEventStreamVersionQueryOptions = <\n TData = Awaited<ReturnType<typeof getEventStreamVersion>>,\n TError = ErrorType<void | AsError>,\n>(options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetEventStreamVersionQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getEventStreamVersion>>> = ({ signal }) =>\n getEventStreamVersion(requestOptions, signal);\n\n const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });\n\n return customOptions as UseQueryOptions<\n Awaited<ReturnType<typeof getEventStreamVersion>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetEventStreamVersionQueryResult = NonNullable<\n Awaited<ReturnType<typeof getEventStreamVersion>>\n>;\nexport type GetEventStreamVersionQueryError = ErrorType<void | AsError>;\n\nexport function useGetEventStreamVersion<\n TData = Awaited<ReturnType<typeof getEventStreamVersion>>,\n TError = ErrorType<void | AsError>,\n>(\n options: {\n query: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>\n > &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getEventStreamVersion>>,\n TError,\n Awaited<ReturnType<typeof getEventStreamVersion>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetEventStreamVersion<\n TData = Awaited<ReturnType<typeof getEventStreamVersion>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>\n > &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getEventStreamVersion>>,\n TError,\n Awaited<ReturnType<typeof getEventStreamVersion>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetEventStreamVersion<\n TData = Awaited<ReturnType<typeof getEventStreamVersion>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets the details of the installed event stream\n */\n\nexport function useGetEventStreamVersion<\n TData = Awaited<ReturnType<typeof getEventStreamVersion>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = useGetEventStreamVersionQueryOptions(options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\nexport const useGetEventStreamVersionSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getEventStreamVersion>>,\n TError = ErrorType<void | AsError>,\n>(options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetEventStreamVersionQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getEventStreamVersion>>> = ({ signal }) =>\n getEventStreamVersion(requestOptions, signal);\n\n const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });\n\n return customOptions as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getEventStreamVersion>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetEventStreamVersionSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getEventStreamVersion>>\n>;\nexport type GetEventStreamVersionSuspenseQueryError = ErrorType<void | AsError>;\n\nexport function useGetEventStreamVersionSuspense<\n TData = Awaited<ReturnType<typeof getEventStreamVersion>>,\n TError = ErrorType<void | AsError>,\n>(\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetEventStreamVersionSuspense<\n TData = Awaited<ReturnType<typeof getEventStreamVersion>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetEventStreamVersionSuspense<\n TData = Awaited<ReturnType<typeof getEventStreamVersion>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets the details of the installed event stream\n */\n\nexport function useGetEventStreamVersionSuspense<\n TData = Awaited<ReturnType<typeof getEventStreamVersion>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStreamVersion>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = useGetEventStreamVersionSuspenseQueryOptions(options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * Gets the details of your event stream, if you have created one. The response includes the event stream **id** and the **location** where events can be accessed.\n\n * @summary Gets the details of your event stream\n */\nexport const getEventStream = (\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<EventStreamGetPostResponse>(\n { url: `/event-stream`, method: \"GET\", signal },\n options,\n );\n};\n\nexport const getGetEventStreamQueryKey = () => {\n return [`/event-stream`] as const;\n};\n\nexport const useGetEventStreamQueryOptions = <\n TData = Awaited<ReturnType<typeof getEventStream>>,\n TError = ErrorType<void | AsError>,\n>(options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetEventStreamQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getEventStream>>> = ({ signal }) =>\n getEventStream(requestOptions, signal);\n\n const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });\n\n return customOptions as UseQueryOptions<\n Awaited<ReturnType<typeof getEventStream>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetEventStreamQueryResult = NonNullable<Awaited<ReturnType<typeof getEventStream>>>;\nexport type GetEventStreamQueryError = ErrorType<void | AsError>;\n\nexport function useGetEventStream<\n TData = Awaited<ReturnType<typeof getEventStream>>,\n TError = ErrorType<void | AsError>,\n>(\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getEventStream>>,\n TError,\n Awaited<ReturnType<typeof getEventStream>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetEventStream<\n TData = Awaited<ReturnType<typeof getEventStream>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getEventStream>>,\n TError,\n Awaited<ReturnType<typeof getEventStream>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetEventStream<\n TData = Awaited<ReturnType<typeof getEventStream>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets the details of your event stream\n */\n\nexport function useGetEventStream<\n TData = Awaited<ReturnType<typeof getEventStream>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = useGetEventStreamQueryOptions(options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\nexport const useGetEventStreamSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getEventStream>>,\n TError = ErrorType<void | AsError>,\n>(options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetEventStreamQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getEventStream>>> = ({ signal }) =>\n getEventStream(requestOptions, signal);\n\n const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });\n\n return customOptions as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getEventStream>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetEventStreamSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getEventStream>>\n>;\nexport type GetEventStreamSuspenseQueryError = ErrorType<void | AsError>;\n\nexport function useGetEventStreamSuspense<\n TData = Awaited<ReturnType<typeof getEventStream>>,\n TError = ErrorType<void | AsError>,\n>(\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetEventStreamSuspense<\n TData = Awaited<ReturnType<typeof getEventStream>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetEventStreamSuspense<\n TData = Awaited<ReturnType<typeof getEventStream>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets the details of your event stream\n */\n\nexport function useGetEventStreamSuspense<\n TData = Awaited<ReturnType<typeof getEventStream>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getEventStream>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = useGetEventStreamSuspenseQueryOptions(options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * Creates a new event stream for the authenticated user. Event streams deliver near-real-time events to the user, typically through a long-running *Socket*. The protocol is dependent on the Event Stream Service that has been installed. Our **Python FastAPI WebSocket** service is one such service.\n\nEvents are delivered to the client using the a `format` chosen here. Internally, events are **Protocol Buffer** objects that are delivered, by default as a single-line string using `MessageToString`. This is the `PROTOCOL_STRING` format. Clients can choose to receive messages as a JSON string using the format `JSON_STRING`. Using JSON strings will incur a small processing penalty but they are useful if the client does not have access to a library that can decode protocol buffer strings.\n\nThe response will include the event stream **id** and the **location** where events can be accessed.\n\nThe event streaming service is an optional component of the Account Server. If a service is not installed you will receive a corresponding **404** error response.\n\nA user is only permitted one event stream.\n\n * @summary Create a new event stream\n */\nexport const createEventStream = (\n eventStreamPostBodyBody: EventStreamPostBodyBody,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<EventStreamGetPostResponse>(\n {\n url: `/event-stream`,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n data: eventStreamPostBodyBody,\n signal,\n },\n options,\n );\n};\n\nexport const useCreateEventStreamMutationOptions = <\n TError = ErrorType<AsError | void>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof createEventStream>>,\n TError,\n { data: EventStreamPostBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof createEventStream>>,\n TError,\n { data: EventStreamPostBodyBody },\n TContext\n> => {\n const mutationKey = [\"createEventStream\"];\n const { mutation: mutationOptions, request: requestOptions } = options\n ? options.mutation && \"mutationKey\" in options.mutation && options.mutation.mutationKey\n ? options\n : { ...options, mutation: { ...options.mutation, mutationKey } }\n : { mutation: { mutationKey }, request: undefined };\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof createEventStream>>,\n { data: EventStreamPostBodyBody }\n > = (props) => {\n const { data } = props ?? {};\n\n return createEventStream(data, requestOptions);\n };\n\n const customOptions = mutationMutator({ ...mutationOptions, mutationFn });\n\n return customOptions;\n};\n\nexport type CreateEventStreamMutationResult = NonNullable<\n Awaited<ReturnType<typeof createEventStream>>\n>;\nexport type CreateEventStreamMutationBody = EventStreamPostBodyBody;\nexport type CreateEventStreamMutationError = ErrorType<AsError | void>;\n\n/**\n * @summary Create a new event stream\n */\nexport const useCreateEventStream = <TError = ErrorType<AsError | void>, TContext = unknown>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof createEventStream>>,\n TError,\n { data: EventStreamPostBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof createEventStream>>,\n TError,\n { data: EventStreamPostBodyBody },\n TContext\n> => {\n const mutationOptions = useCreateEventStreamMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\n/**\n * You must be the user who created the event stream.\n\n * @summary Deletes an existing event stream (that you created)\n */\nexport const deleteEventStream = (\n eventStreamId: number,\n options?: SecondParameter<typeof customInstance>,\n) => {\n return customInstance<void>({ url: `/event-stream/${eventStreamId}`, method: \"DELETE\" }, options);\n};\n\nexport const useDeleteEventStreamMutationOptions = <\n TError = ErrorType<void | AsError>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof deleteEventStream>>,\n TError,\n { eventStreamId: number },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof deleteEventStream>>,\n TError,\n { eventStreamId: number },\n TContext\n> => {\n const mutationKey = [\"deleteEventStream\"];\n const { mutation: mutationOptions, request: requestOptions } = options\n ? options.mutation && \"mutationKey\" in options.mutation && options.mutation.mutationKey\n ? options\n : { ...options, mutation: { ...options.mutation, mutationKey } }\n : { mutation: { mutationKey }, request: undefined };\n\n const mutationFn: MutationFunction<\n Awaited<ReturnType<typeof deleteEventStream>>,\n { eventStreamId: number }\n > = (props) => {\n const { eventStreamId } = props ?? {};\n\n return deleteEventStream(eventStreamId, requestOptions);\n };\n\n const customOptions = mutationMutator({ ...mutationOptions, mutationFn });\n\n return customOptions;\n};\n\nexport type DeleteEventStreamMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteEventStream>>\n>;\n\nexport type DeleteEventStreamMutationError = ErrorType<void | AsError>;\n\n/**\n * @summary Deletes an existing event stream (that you created)\n */\nexport const useDeleteEventStream = <TError = ErrorType<void | AsError>, TContext = unknown>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof deleteEventStream>>,\n TError,\n { eventStreamId: number },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof deleteEventStream>>,\n TError,\n { eventStreamId: number },\n TContext\n> => {\n const mutationOptions = useDeleteEventStreamMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\n"],"mappings":";;;;;;;;;AAUA,SAAS,aAAa,UAAU,wBAAwB;AAqCjD,IAAM,wBAAwB,CACnC,SACA,WACG;AACH,SAAO;AAAA,IACL,EAAE,KAAK,yBAAyB,QAAQ,OAAO,OAAO;AAAA,IACtD;AAAA,EACF;AACF;AAEO,IAAM,mCAAmC,MAAM;AACpD,SAAO,CAAC,uBAAuB;AACjC;AAEO,IAAM,uCAAuC,CAGlD,YAKI;AACJ,QAAM,EAAE,OAAO,cAAc,SAAS,eAAe,IAAI,WAAW,CAAC;AAErE,QAAM,WAAW,cAAc,YAAY,iCAAiC;AAE5E,QAAM,UAA4E,CAAC,EAAE,OAAO,MAC1F,sBAAsB,gBAAgB,MAAM;AAE9C,QAAM,gBAAgB,aAAa,EAAE,GAAG,cAAc,UAAU,QAAQ,CAAC;AAEzE,SAAO;AAKT;AA+DO,SAAS,yBAId,SAMA,aACgF;AAChF,QAAM,eAAe,qCAAqC,OAAO;AAEjE,QAAM,QAAQ,SAAS,cAAc,WAAW;AAIhD,QAAM,WAAW,aAAa;AAE9B,SAAO;AACT;AAEO,IAAM,+CAA+C,CAG1D,YAKI;AACJ,QAAM,EAAE,OAAO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