@squonk/account-server-client 4.4.0-4-4.2197467763 → 4.4.0-4-4.2200269934

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.
Files changed (185) hide show
  1. package/dist/api/actions/actions.cjs +4 -4
  2. package/dist/api/actions/actions.cjs.map +1 -1
  3. package/dist/api/actions/actions.d.cts +35 -17
  4. package/dist/api/actions/actions.d.cts.map +1 -1
  5. package/dist/api/actions/actions.d.ts +35 -17
  6. package/dist/api/actions/actions.d.ts.map +1 -1
  7. package/dist/api/actions/actions.fetch.cjs +4 -4
  8. package/dist/api/actions/actions.fetch.cjs.map +1 -1
  9. package/dist/api/actions/actions.fetch.d.cts +35 -17
  10. package/dist/api/actions/actions.fetch.d.cts.map +1 -1
  11. package/dist/api/actions/actions.fetch.d.ts +35 -17
  12. package/dist/api/actions/actions.fetch.d.ts.map +1 -1
  13. package/dist/api/actions/actions.fetch.js +4 -4
  14. package/dist/api/actions/actions.fetch.js.map +1 -1
  15. package/dist/api/actions/actions.js +4 -4
  16. package/dist/api/actions/actions.js.map +1 -1
  17. package/dist/api/asset/asset.cjs +22 -22
  18. package/dist/api/asset/asset.cjs.map +1 -1
  19. package/dist/api/asset/asset.d.cts +76 -40
  20. package/dist/api/asset/asset.d.cts.map +1 -1
  21. package/dist/api/asset/asset.d.ts +76 -40
  22. package/dist/api/asset/asset.d.ts.map +1 -1
  23. package/dist/api/asset/asset.fetch.cjs +22 -22
  24. package/dist/api/asset/asset.fetch.cjs.map +1 -1
  25. package/dist/api/asset/asset.fetch.d.cts +76 -40
  26. package/dist/api/asset/asset.fetch.d.cts.map +1 -1
  27. package/dist/api/asset/asset.fetch.d.ts +76 -40
  28. package/dist/api/asset/asset.fetch.d.ts.map +1 -1
  29. package/dist/api/asset/asset.fetch.js +22 -22
  30. package/dist/api/asset/asset.fetch.js.map +1 -1
  31. package/dist/api/asset/asset.js +22 -22
  32. package/dist/api/asset/asset.js.map +1 -1
  33. package/dist/api/charges/charges.cjs +16 -16
  34. package/dist/api/charges/charges.cjs.map +1 -1
  35. package/dist/api/charges/charges.d.cts +137 -65
  36. package/dist/api/charges/charges.d.cts.map +1 -1
  37. package/dist/api/charges/charges.d.ts +137 -65
  38. package/dist/api/charges/charges.d.ts.map +1 -1
  39. package/dist/api/charges/charges.fetch.cjs +16 -16
  40. package/dist/api/charges/charges.fetch.cjs.map +1 -1
  41. package/dist/api/charges/charges.fetch.d.cts +137 -65
  42. package/dist/api/charges/charges.fetch.d.cts.map +1 -1
  43. package/dist/api/charges/charges.fetch.d.ts +137 -65
  44. package/dist/api/charges/charges.fetch.d.ts.map +1 -1
  45. package/dist/api/charges/charges.fetch.js +16 -16
  46. package/dist/api/charges/charges.fetch.js.map +1 -1
  47. package/dist/api/charges/charges.js +16 -16
  48. package/dist/api/charges/charges.js.map +1 -1
  49. package/dist/api/event-stream/event-stream.cjs +12 -12
  50. package/dist/api/event-stream/event-stream.cjs.map +1 -1
  51. package/dist/api/event-stream/event-stream.d.cts +71 -35
  52. package/dist/api/event-stream/event-stream.d.cts.map +1 -1
  53. package/dist/api/event-stream/event-stream.d.ts +71 -35
  54. package/dist/api/event-stream/event-stream.d.ts.map +1 -1
  55. package/dist/api/event-stream/event-stream.fetch.cjs +12 -12
  56. package/dist/api/event-stream/event-stream.fetch.cjs.map +1 -1
  57. package/dist/api/event-stream/event-stream.fetch.d.cts +71 -35
  58. package/dist/api/event-stream/event-stream.fetch.d.cts.map +1 -1
  59. package/dist/api/event-stream/event-stream.fetch.d.ts +71 -35
  60. package/dist/api/event-stream/event-stream.fetch.d.ts.map +1 -1
  61. package/dist/api/event-stream/event-stream.fetch.js +12 -12
  62. package/dist/api/event-stream/event-stream.fetch.js.map +1 -1
  63. package/dist/api/event-stream/event-stream.js +12 -12
  64. package/dist/api/event-stream/event-stream.js.map +1 -1
  65. package/dist/api/merchant/merchant.cjs +8 -8
  66. package/dist/api/merchant/merchant.cjs.map +1 -1
  67. package/dist/api/merchant/merchant.d.cts +69 -33
  68. package/dist/api/merchant/merchant.d.cts.map +1 -1
  69. package/dist/api/merchant/merchant.d.ts +69 -33
  70. package/dist/api/merchant/merchant.d.ts.map +1 -1
  71. package/dist/api/merchant/merchant.fetch.cjs +8 -8
  72. package/dist/api/merchant/merchant.fetch.cjs.map +1 -1
  73. package/dist/api/merchant/merchant.fetch.d.cts +69 -33
  74. package/dist/api/merchant/merchant.fetch.d.cts.map +1 -1
  75. package/dist/api/merchant/merchant.fetch.d.ts +69 -33
  76. package/dist/api/merchant/merchant.fetch.d.ts.map +1 -1
  77. package/dist/api/merchant/merchant.fetch.js +8 -8
  78. package/dist/api/merchant/merchant.fetch.js.map +1 -1
  79. package/dist/api/merchant/merchant.js +8 -8
  80. package/dist/api/merchant/merchant.js.map +1 -1
  81. package/dist/api/organisation/organisation.cjs +18 -18
  82. package/dist/api/organisation/organisation.cjs.map +1 -1
  83. package/dist/api/organisation/organisation.d.cts +106 -52
  84. package/dist/api/organisation/organisation.d.cts.map +1 -1
  85. package/dist/api/organisation/organisation.d.ts +106 -52
  86. package/dist/api/organisation/organisation.d.ts.map +1 -1
  87. package/dist/api/organisation/organisation.fetch.cjs +18 -18
  88. package/dist/api/organisation/organisation.fetch.cjs.map +1 -1
  89. package/dist/api/organisation/organisation.fetch.d.cts +106 -52
  90. package/dist/api/organisation/organisation.fetch.d.cts.map +1 -1
  91. package/dist/api/organisation/organisation.fetch.d.ts +106 -52
  92. package/dist/api/organisation/organisation.fetch.d.ts.map +1 -1
  93. package/dist/api/organisation/organisation.fetch.js +18 -18
  94. package/dist/api/organisation/organisation.fetch.js.map +1 -1
  95. package/dist/api/organisation/organisation.js +18 -18
  96. package/dist/api/organisation/organisation.js.map +1 -1
  97. package/dist/api/product/product.cjs +30 -30
  98. package/dist/api/product/product.cjs.map +1 -1
  99. package/dist/api/product/product.d.cts +208 -100
  100. package/dist/api/product/product.d.cts.map +1 -1
  101. package/dist/api/product/product.d.ts +208 -100
  102. package/dist/api/product/product.d.ts.map +1 -1
  103. package/dist/api/product/product.fetch.cjs +30 -30
  104. package/dist/api/product/product.fetch.cjs.map +1 -1
  105. package/dist/api/product/product.fetch.d.cts +208 -100
  106. package/dist/api/product/product.fetch.d.cts.map +1 -1
  107. package/dist/api/product/product.fetch.d.ts +208 -100
  108. package/dist/api/product/product.fetch.d.ts.map +1 -1
  109. package/dist/api/product/product.fetch.js +30 -30
  110. package/dist/api/product/product.fetch.js.map +1 -1
  111. package/dist/api/product/product.js +30 -30
  112. package/dist/api/product/product.js.map +1 -1
  113. package/dist/api/state/state.cjs +4 -4
  114. package/dist/api/state/state.cjs.map +1 -1
  115. package/dist/api/state/state.d.cts +35 -17
  116. package/dist/api/state/state.d.cts.map +1 -1
  117. package/dist/api/state/state.d.ts +35 -17
  118. package/dist/api/state/state.d.ts.map +1 -1
  119. package/dist/api/state/state.fetch.cjs +4 -4
  120. package/dist/api/state/state.fetch.cjs.map +1 -1
  121. package/dist/api/state/state.fetch.d.cts +35 -17
  122. package/dist/api/state/state.fetch.d.cts.map +1 -1
  123. package/dist/api/state/state.fetch.d.ts +35 -17
  124. package/dist/api/state/state.fetch.d.ts.map +1 -1
  125. package/dist/api/state/state.fetch.js +4 -4
  126. package/dist/api/state/state.fetch.js.map +1 -1
  127. package/dist/api/state/state.js +4 -4
  128. package/dist/api/state/state.js.map +1 -1
  129. package/dist/api/unit/unit.cjs +30 -30
  130. package/dist/api/unit/unit.cjs.map +1 -1
  131. package/dist/api/unit/unit.d.cts +144 -72
  132. package/dist/api/unit/unit.d.cts.map +1 -1
  133. package/dist/api/unit/unit.d.ts +144 -72
  134. package/dist/api/unit/unit.d.ts.map +1 -1
  135. package/dist/api/unit/unit.fetch.cjs +30 -30
  136. package/dist/api/unit/unit.fetch.cjs.map +1 -1
  137. package/dist/api/unit/unit.fetch.d.cts +144 -72
  138. package/dist/api/unit/unit.fetch.d.cts.map +1 -1
  139. package/dist/api/unit/unit.fetch.d.ts +144 -72
  140. package/dist/api/unit/unit.fetch.d.ts.map +1 -1
  141. package/dist/api/unit/unit.fetch.js +30 -30
  142. package/dist/api/unit/unit.fetch.js.map +1 -1
  143. package/dist/api/unit/unit.js +30 -30
  144. package/dist/api/unit/unit.js.map +1 -1
  145. package/dist/api/user/user.cjs +20 -20
  146. package/dist/api/user/user.cjs.map +1 -1
  147. package/dist/api/user/user.d.cts +107 -53
  148. package/dist/api/user/user.d.cts.map +1 -1
  149. package/dist/api/user/user.d.ts +107 -53
  150. package/dist/api/user/user.d.ts.map +1 -1
  151. package/dist/api/user/user.fetch.cjs +20 -20
  152. package/dist/api/user/user.fetch.cjs.map +1 -1
  153. package/dist/api/user/user.fetch.d.cts +107 -53
  154. package/dist/api/user/user.fetch.d.cts.map +1 -1
  155. package/dist/api/user/user.fetch.d.ts +107 -53
  156. package/dist/api/user/user.fetch.d.ts.map +1 -1
  157. package/dist/api/user/user.fetch.js +20 -20
  158. package/dist/api/user/user.fetch.js.map +1 -1
  159. package/dist/api/user/user.js +20 -20
  160. package/dist/api/user/user.js.map +1 -1
  161. package/package.json +7 -5
  162. package/src/api/actions/actions.fetch.ts +103 -12
  163. package/src/api/actions/actions.ts +103 -12
  164. package/src/api/asset/asset.fetch.ts +303 -94
  165. package/src/api/asset/asset.ts +303 -94
  166. package/src/api/charges/charges.fetch.ts +456 -54
  167. package/src/api/charges/charges.ts +456 -54
  168. package/src/api/event-stream/event-stream.fetch.ts +262 -58
  169. package/src/api/event-stream/event-stream.ts +262 -58
  170. package/src/api/merchant/merchant.fetch.ts +212 -28
  171. package/src/api/merchant/merchant.ts +212 -28
  172. package/src/api/organisation/organisation.fetch.ts +381 -86
  173. package/src/api/organisation/organisation.ts +381 -86
  174. package/src/api/product/product.fetch.ts +724 -130
  175. package/src/api/product/product.ts +724 -130
  176. package/src/api/state/state.fetch.ts +105 -16
  177. package/src/api/state/state.ts +105 -16
  178. package/src/api/unit/unit.fetch.ts +521 -146
  179. package/src/api/unit/unit.ts +521 -146
  180. package/src/api/user/user.fetch.ts +401 -101
  181. package/src/api/user/user.ts +401 -101
  182. package/tests/README.md +98 -0
  183. package/tests/component.test.tsx +191 -0
  184. package/tests/tsconfig.json +7 -0
  185. package/tests/type-tests.tsx +196 -0
@@ -2,7 +2,7 @@ import { AsError } from "../api-schemas/asError.js";
2
2
  import { MerchantDetail } from "../api-schemas/merchantDetail.js";
3
3
  import { MerchantsGetResponse } from "../api-schemas/merchantsGetResponse.js";
4
4
  import { ErrorType, customFetch } from "../../custom-fetch.js";
5
- import { InvalidateOptions, QueryClient, QueryKey, UseQueryOptions, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult } from "@tanstack/react-query";
5
+ import { DataTag, DefinedInitialDataOptions, DefinedUseQueryResult, InvalidateOptions, QueryClient, QueryKey, UndefinedInitialDataOptions, UseQueryOptions, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult } from "@tanstack/react-query";
6
6
 
7
7
  //#region src/api/merchant/merchant.fetch.d.ts
8
8
  type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
@@ -40,42 +40,60 @@ declare const getGetMerchantsUrl: () => string;
40
40
  declare const getMerchants: (options?: RequestInit) => Promise<getMerchantsResponse>;
41
41
  declare const getGetMerchantsQueryKey: () => readonly ["account-server", "merchant"];
42
42
  declare const getGetMerchantsQueryOptions: <TData = Awaited<ReturnType<typeof getMerchants>>, TError = ErrorType<AsError | void>>(options?: {
43
- query?: UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;
43
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>>;
44
44
  request?: SecondParameter<typeof customFetch>;
45
45
  }) => UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData> & {
46
- queryKey: QueryKey;
46
+ queryKey: DataTag<QueryKey, TData>;
47
47
  };
48
48
  type GetMerchantsQueryResult = NonNullable<Awaited<ReturnType<typeof getMerchants>>>;
49
49
  type GetMerchantsQueryError = ErrorType<AsError | void>;
50
- /**
51
- * @summary Gets all Merchants
52
- */
50
+ declare function useGetMerchants<TData = Awaited<ReturnType<typeof getMerchants>>, TError = ErrorType<AsError | void>>(options: {
51
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getMerchants>>, TError, Awaited<ReturnType<typeof getMerchants>>>, "initialData">;
52
+ request?: SecondParameter<typeof customFetch>;
53
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
54
+ queryKey: DataTag<QueryKey, TData>;
55
+ };
56
+ declare function useGetMerchants<TData = Awaited<ReturnType<typeof getMerchants>>, TError = ErrorType<AsError | void>>(options?: {
57
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getMerchants>>, TError, Awaited<ReturnType<typeof getMerchants>>>, "initialData">;
58
+ request?: SecondParameter<typeof customFetch>;
59
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
60
+ queryKey: DataTag<QueryKey, TData>;
61
+ };
53
62
  declare function useGetMerchants<TData = Awaited<ReturnType<typeof getMerchants>>, TError = ErrorType<AsError | void>>(options?: {
54
- query?: UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;
63
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>>;
55
64
  request?: SecondParameter<typeof customFetch>;
56
- }): UseQueryResult<TData, TError> & {
57
- queryKey: QueryKey;
65
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
66
+ queryKey: DataTag<QueryKey, TData>;
58
67
  };
59
68
  /**
60
69
  * @summary Gets all Merchants
61
70
  */
62
71
  declare const invalidateGetMerchants: (queryClient: QueryClient, options?: InvalidateOptions) => Promise<QueryClient>;
63
72
  declare const getGetMerchantsSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getMerchants>>, TError = ErrorType<AsError | void>>(options?: {
64
- query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;
73
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>>;
65
74
  request?: SecondParameter<typeof customFetch>;
66
75
  }) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData> & {
67
- queryKey: QueryKey;
76
+ queryKey: DataTag<QueryKey, TData>;
68
77
  };
69
78
  type GetMerchantsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getMerchants>>>;
70
79
  type GetMerchantsSuspenseQueryError = ErrorType<AsError | void>;
71
- /**
72
- * @summary Gets all Merchants
73
- */
80
+ declare function useGetMerchantsSuspense<TData = Awaited<ReturnType<typeof getMerchants>>, TError = ErrorType<AsError | void>>(options: {
81
+ query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>>;
82
+ request?: SecondParameter<typeof customFetch>;
83
+ }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
84
+ queryKey: DataTag<QueryKey, TData>;
85
+ };
86
+ declare function useGetMerchantsSuspense<TData = Awaited<ReturnType<typeof getMerchants>>, TError = ErrorType<AsError | void>>(options?: {
87
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>>;
88
+ request?: SecondParameter<typeof customFetch>;
89
+ }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
90
+ queryKey: DataTag<QueryKey, TData>;
91
+ };
74
92
  declare function useGetMerchantsSuspense<TData = Awaited<ReturnType<typeof getMerchants>>, TError = ErrorType<AsError | void>>(options?: {
75
- query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;
93
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>>;
76
94
  request?: SecondParameter<typeof customFetch>;
77
- }): UseSuspenseQueryResult<TData, TError> & {
78
- queryKey: QueryKey;
95
+ }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
96
+ queryKey: DataTag<QueryKey, TData>;
79
97
  };
80
98
  /**
81
99
  * Gets a known Merchant
@@ -109,42 +127,60 @@ declare const getGetServiceUrl: (mId: number) => string;
109
127
  declare const getService: (mId: number, options?: RequestInit) => Promise<getServiceResponse>;
110
128
  declare const getGetServiceQueryKey: (mId?: number) => readonly ["account-server", "merchant", number | undefined];
111
129
  declare const getGetServiceQueryOptions: <TData = Awaited<ReturnType<typeof getService>>, TError = ErrorType<AsError | void>>(mId: number, options?: {
112
- query?: UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;
130
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>>;
113
131
  request?: SecondParameter<typeof customFetch>;
114
132
  }) => UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData> & {
115
- queryKey: QueryKey;
133
+ queryKey: DataTag<QueryKey, TData>;
116
134
  };
117
135
  type GetServiceQueryResult = NonNullable<Awaited<ReturnType<typeof getService>>>;
118
136
  type GetServiceQueryError = ErrorType<AsError | void>;
119
- /**
120
- * @summary Gets a specific Merchant
121
- */
137
+ declare function useGetService<TData = Awaited<ReturnType<typeof getService>>, TError = ErrorType<AsError | void>>(mId: number, options: {
138
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getService>>, TError, Awaited<ReturnType<typeof getService>>>, "initialData">;
139
+ request?: SecondParameter<typeof customFetch>;
140
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
141
+ queryKey: DataTag<QueryKey, TData>;
142
+ };
143
+ declare function useGetService<TData = Awaited<ReturnType<typeof getService>>, TError = ErrorType<AsError | void>>(mId: number, options?: {
144
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getService>>, TError, Awaited<ReturnType<typeof getService>>>, "initialData">;
145
+ request?: SecondParameter<typeof customFetch>;
146
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
147
+ queryKey: DataTag<QueryKey, TData>;
148
+ };
122
149
  declare function useGetService<TData = Awaited<ReturnType<typeof getService>>, TError = ErrorType<AsError | void>>(mId: number, options?: {
123
- query?: UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;
150
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>>;
124
151
  request?: SecondParameter<typeof customFetch>;
125
- }): UseQueryResult<TData, TError> & {
126
- queryKey: QueryKey;
152
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
153
+ queryKey: DataTag<QueryKey, TData>;
127
154
  };
128
155
  /**
129
156
  * @summary Gets a specific Merchant
130
157
  */
131
158
  declare const invalidateGetService: (queryClient: QueryClient, mId: number, options?: InvalidateOptions) => Promise<QueryClient>;
132
159
  declare const getGetServiceSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getService>>, TError = ErrorType<AsError | void>>(mId: number, options?: {
133
- query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;
160
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>>;
134
161
  request?: SecondParameter<typeof customFetch>;
135
162
  }) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData> & {
136
- queryKey: QueryKey;
163
+ queryKey: DataTag<QueryKey, TData>;
137
164
  };
138
165
  type GetServiceSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getService>>>;
139
166
  type GetServiceSuspenseQueryError = ErrorType<AsError | void>;
140
- /**
141
- * @summary Gets a specific Merchant
142
- */
167
+ declare function useGetServiceSuspense<TData = Awaited<ReturnType<typeof getService>>, TError = ErrorType<AsError | void>>(mId: number, options: {
168
+ query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>>;
169
+ request?: SecondParameter<typeof customFetch>;
170
+ }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
171
+ queryKey: DataTag<QueryKey, TData>;
172
+ };
173
+ declare function useGetServiceSuspense<TData = Awaited<ReturnType<typeof getService>>, TError = ErrorType<AsError | void>>(mId: number, options?: {
174
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>>;
175
+ request?: SecondParameter<typeof customFetch>;
176
+ }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
177
+ queryKey: DataTag<QueryKey, TData>;
178
+ };
143
179
  declare function useGetServiceSuspense<TData = Awaited<ReturnType<typeof getService>>, TError = ErrorType<AsError | void>>(mId: number, options?: {
144
- query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;
180
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>>;
145
181
  request?: SecondParameter<typeof customFetch>;
146
- }): UseSuspenseQueryResult<TData, TError> & {
147
- queryKey: QueryKey;
182
+ }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
183
+ queryKey: DataTag<QueryKey, TData>;
148
184
  };
149
185
  //#endregion
150
186
  export { GetMerchantsQueryError, GetMerchantsQueryResult, GetMerchantsSuspenseQueryError, GetMerchantsSuspenseQueryResult, GetServiceQueryError, GetServiceQueryResult, GetServiceSuspenseQueryError, GetServiceSuspenseQueryResult, getGetMerchantsQueryKey, getGetMerchantsQueryOptions, getGetMerchantsSuspenseQueryOptions, getGetMerchantsUrl, getGetServiceQueryKey, getGetServiceQueryOptions, getGetServiceSuspenseQueryOptions, getGetServiceUrl, getMerchants, getMerchantsResponse, getMerchantsResponse200, getMerchantsResponse400, getMerchantsResponse401, getMerchantsResponse403, getMerchantsResponseError, getMerchantsResponseSuccess, getService, getServiceResponse, getServiceResponse200, getServiceResponse400, getServiceResponse401, getServiceResponse403, getServiceResponseError, getServiceResponseSuccess, invalidateGetMerchants, invalidateGetService, useGetMerchants, useGetMerchantsSuspense, useGetService, useGetServiceSuspense };
@@ -1 +1 @@
1
- {"version":3,"file":"merchant.fetch.d.ts","names":[],"sources":["../../../src/api/merchant/merchant.fetch.ts"],"sourcesContent":[],"mappings":";;;;;;;KA2BK,yDAAyD,WAAW;;;AAFrB;AAWpD;AAEA;AAEA;AAEA;AAEY,KARA,uBAAA,GAQ2B;EAC3B,IAAA,EATkC,oBASlC;EACR,MAAA,EAAA,GAAA;CACA;AACA,KAVQ,uBAAA,GAUR;EACW,IAAA,EAX+B,OAW/B;EAAO,MAAA,EAAA,GAAA;AAEtB,CAAA;AAEa,KAbD,uBAAA,GAeX;EAEY,IAAA,EAAA,IAAA;EAAgC,MAAA,EAAA,GAAA;CAAsB;AAAR,KAf/C,uBAAA,GAe+C;EAAO,IAAA,EAfpB,OAeoB;EAIrD,MAAA,EAAA,GAAA;AAIb,CAAA;AACoC,KAtBxB,2BAAA,GAA8B,uBAsBN,GAAA;EAAlB,OAAA,EAtB6D,OAsB7D;CAAR;AACW,KAtBT,yBAAA,GAsBS,CArBjB,uBAqBiB,GApBjB,uBAoBiB,GAnBjB,uBAmBiB,CAAA,GAAA;EAAV,OAAA,EAlBI,OAkBJ;CAEyC;AAAlB,KAlBtB,oBAAA,GAAuB,2BAkBD,GAlB+B,yBAkB/B;AAAR,cAhBb,kBAgBa,EAAA,GAAA,GAAA,MAAA;AAA0C,cAZvD,YAYuD,EAAA,CAAA,OAAA,CAAA,EAZvB,WAYuB,EAAA,GAZT,OAYS,CAZD,oBAYC,CAAA;AAAQ,cAR/D,uBAQ+D,EAAA,GAAA,GAAA,SAAA,CAAA,gBAAA,EAAA,UAAA,CAAA;AAAlE,cAJG,2BAIH,EAAA,CAAA,QAHA,OAGA,CAHQ,UAGR,CAAA,OAH0B,YAG1B,CAAA,CAAA,EAAA,SAFC,SAED,CAFW,OAEX,GAAA,IAAA,CAAA,CAAA,CAAA,OAWoB,CAXpB,EAAA;EACyB,KAAA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F,CAAA,CAAA;EACA,OAAA,CAAA,EA4QU,eA5QV,CAAA,OA4QiC,WA5QjC,CAAA;CAH+C,EAAA,WAAA,CAAA,EAiRnC,WAjRmC,CAAA,EAkRhD,sBAlRgD,CAkRzB,KAlRyB,EAkRlB,MAlRkB,CAAA,GAAA;EAIzB,QAAA,EA8Q6B,OA9Q7B,CA8QqC,QA9QrC,EA8Q+C,KA9Q/C,CAAA;CAAU;AAAlB,iBA+QF,qBA/QE,CAAA,QAgRR,OAhRQ,CAgRA,UAhRA,CAAA,OAgRkB,UAhRlB,CAAA,CAAA,EAAA,SAiRP,SAjRO,CAiRG,OAjRH,GAAA,IAAA,CAAA,CAAA,CAAA,GAAA,EAAA,MAAA,EAAA,OAGkE,CAHlE,EAAA;EAAO,KAAA,CAAA,EAqRb,OArRa,CAqRL,uBArRK,CAqRmB,OArRnB,CAqR2B,UArR3B,CAAA,OAqR6C,UArR7C,CAAA,CAAA,EAqR2D,MArR3D,EAqRmE,KArRnE,CAAA,CAAA;EAGb,OAAA,CAAA,EAmRE,eAnRF,CAAA,OAmRyB,WAnRM,CAAA;CAAyC,EAAA,WAAA,CAAA,EAqRpE,WArRoE,CAAA,EAsRjF,sBAtRiF,CAsR1D,KAtR0D,EAsRnD,MAtRmD,CAAA,GAAA;EAAlB,QAAA,EAsRX,OAtRW,CAsRH,QAtRG,EAsRO,KAtRP,CAAA;CAAR"}
@@ -40,9 +40,9 @@ const getGetMerchantsQueryOptions = (options) => {
40
40
  /**
41
41
  * @summary Gets all Merchants
42
42
  */
43
- function useGetMerchants(options) {
43
+ function useGetMerchants(options, queryClient) {
44
44
  const queryOptions = getGetMerchantsQueryOptions(options);
45
- const query = useQuery(queryOptions);
45
+ const query = useQuery(queryOptions, queryClient);
46
46
  query.queryKey = queryOptions.queryKey;
47
47
  return query;
48
48
  }
@@ -69,9 +69,9 @@ const getGetMerchantsSuspenseQueryOptions = (options) => {
69
69
  /**
70
70
  * @summary Gets all Merchants
71
71
  */
72
- function useGetMerchantsSuspense(options) {
72
+ function useGetMerchantsSuspense(options, queryClient) {
73
73
  const queryOptions = getGetMerchantsSuspenseQueryOptions(options);
74
- const query = useSuspenseQuery(queryOptions);
74
+ const query = useSuspenseQuery(queryOptions, queryClient);
75
75
  query.queryKey = queryOptions.queryKey;
76
76
  return query;
77
77
  }
@@ -108,9 +108,9 @@ const getGetServiceQueryOptions = (mId, options) => {
108
108
  /**
109
109
  * @summary Gets a specific Merchant
110
110
  */
111
- function useGetService(mId, options) {
111
+ function useGetService(mId, options, queryClient) {
112
112
  const queryOptions = getGetServiceQueryOptions(mId, options);
113
- const query = useQuery(queryOptions);
113
+ const query = useQuery(queryOptions, queryClient);
114
114
  query.queryKey = queryOptions.queryKey;
115
115
  return query;
116
116
  }
@@ -137,9 +137,9 @@ const getGetServiceSuspenseQueryOptions = (mId, options) => {
137
137
  /**
138
138
  * @summary Gets a specific Merchant
139
139
  */
140
- function useGetServiceSuspense(mId, options) {
140
+ function useGetServiceSuspense(mId, options, queryClient) {
141
141
  const queryOptions = getGetServiceSuspenseQueryOptions(mId, options);
142
- const query = useSuspenseQuery(queryOptions);
142
+ const query = useSuspenseQuery(queryOptions, queryClient);
143
143
  query.queryKey = queryOptions.queryKey;
144
144
  return query;
145
145
  }
@@ -1 +1 @@
1
- {"version":3,"file":"merchant.fetch.js","names":["queryFn: QueryFunction<Awaited<ReturnType<typeof getMerchants>>>","queryFn: QueryFunction<Awaited<ReturnType<typeof getService>>>"],"sources":["../../../src/api/merchant/merchant.fetch.ts"],"sourcesContent":["/**\n * Generated by orval v7.17.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.4\n */\nimport { useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n InvalidateOptions,\n QueryClient,\n QueryFunction,\n QueryKey,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type { AsError, MerchantDetail, MerchantsGetResponse } from \".././api-schemas\";\n\nimport { customFetch } from \"../../custom-fetch\";\nimport type { ErrorType } from \"../../custom-fetch\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Gets Merchants known to the Account Server\n\nMerchants are software services (SaaS assets) whose facilities are known to and controlled by the Account Server\n\n * @summary Gets all Merchants\n */\nexport type getMerchantsResponse200 = { data: MerchantsGetResponse; status: 200 };\n\nexport type getMerchantsResponse400 = { data: AsError; status: 400 };\n\nexport type getMerchantsResponse401 = { data: void; status: 401 };\n\nexport type getMerchantsResponse403 = { data: AsError; status: 403 };\n\nexport type getMerchantsResponseSuccess = getMerchantsResponse200 & { headers: Headers };\nexport type getMerchantsResponseError = (\n | getMerchantsResponse400\n | getMerchantsResponse401\n | getMerchantsResponse403\n) & { headers: Headers };\n\nexport type getMerchantsResponse = getMerchantsResponseSuccess | getMerchantsResponseError;\n\nexport const getGetMerchantsUrl = () => {\n return `/merchant`;\n};\n\nexport const getMerchants = async (options?: RequestInit): Promise<getMerchantsResponse> => {\n return customFetch<getMerchantsResponse>(getGetMerchantsUrl(), { ...options, method: \"GET\" });\n};\n\nexport const getGetMerchantsQueryKey = () => {\n return [\"account-server\", \"merchant\"] as const;\n};\n\nexport const getGetMerchantsQueryOptions = <\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(options?: {\n query?: UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetMerchantsQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getMerchants>>> = ({ signal }) =>\n getMerchants({ signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getMerchants>>,\n TError,\n TData\n > & { queryKey: QueryKey };\n};\n\nexport type GetMerchantsQueryResult = NonNullable<Awaited<ReturnType<typeof getMerchants>>>;\nexport type GetMerchantsQueryError = ErrorType<AsError | void>;\n\n/**\n * @summary Gets all Merchants\n */\n\nexport function useGetMerchants<\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(options?: {\n query?: UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;\n request?: SecondParameter<typeof customFetch>;\n}): UseQueryResult<TData, TError> & { queryKey: QueryKey } {\n const queryOptions = getGetMerchantsQueryOptions(options);\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * @summary Gets all Merchants\n */\nexport const invalidateGetMerchants = async (\n queryClient: QueryClient,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetMerchantsQueryKey() }, options);\n\n return queryClient;\n};\n\nexport const getGetMerchantsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(options?: {\n query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetMerchantsQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getMerchants>>> = ({ signal }) =>\n getMerchants({ signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getMerchants>>,\n TError,\n TData\n > & { queryKey: QueryKey };\n};\n\nexport type GetMerchantsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getMerchants>>>;\nexport type GetMerchantsSuspenseQueryError = ErrorType<AsError | void>;\n\n/**\n * @summary Gets all Merchants\n */\n\nexport function useGetMerchantsSuspense<\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(options?: {\n query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;\n request?: SecondParameter<typeof customFetch>;\n}): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {\n const queryOptions = getGetMerchantsSuspenseQueryOptions(options);\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {\n queryKey: QueryKey;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * Gets a known Merchant\n\n * @summary Gets a specific Merchant\n */\nexport type getServiceResponse200 = { data: MerchantDetail; status: 200 };\n\nexport type getServiceResponse400 = { data: AsError; status: 400 };\n\nexport type getServiceResponse401 = { data: void; status: 401 };\n\nexport type getServiceResponse403 = { data: AsError; status: 403 };\n\nexport type getServiceResponseSuccess = getServiceResponse200 & { headers: Headers };\nexport type getServiceResponseError = (\n | getServiceResponse400\n | getServiceResponse401\n | getServiceResponse403\n) & { headers: Headers };\n\nexport type getServiceResponse = getServiceResponseSuccess | getServiceResponseError;\n\nexport const getGetServiceUrl = (mId: number) => {\n return `/merchant/${mId}`;\n};\n\nexport const getService = async (\n mId: number,\n options?: RequestInit,\n): Promise<getServiceResponse> => {\n return customFetch<getServiceResponse>(getGetServiceUrl(mId), { ...options, method: \"GET\" });\n};\n\nexport const getGetServiceQueryKey = (mId?: number) => {\n return [\"account-server\", \"merchant\", mId] as const;\n};\n\nexport const getGetServiceQueryOptions = <\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetServiceQueryKey(mId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getService>>> = ({ signal }) =>\n getService(mId, { signal, ...requestOptions });\n\n return { queryKey, queryFn, enabled: !!mId, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getService>>,\n TError,\n TData\n > & { queryKey: QueryKey };\n};\n\nexport type GetServiceQueryResult = NonNullable<Awaited<ReturnType<typeof getService>>>;\nexport type GetServiceQueryError = ErrorType<AsError | void>;\n\n/**\n * @summary Gets a specific Merchant\n */\n\nexport function useGetService<\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;\n request?: SecondParameter<typeof customFetch>;\n },\n): UseQueryResult<TData, TError> & { queryKey: QueryKey } {\n const queryOptions = getGetServiceQueryOptions(mId, options);\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * @summary Gets a specific Merchant\n */\nexport const invalidateGetService = async (\n queryClient: QueryClient,\n mId: number,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetServiceQueryKey(mId) }, options);\n\n return queryClient;\n};\n\nexport const getGetServiceSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetServiceQueryKey(mId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getService>>> = ({ signal }) =>\n getService(mId, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getService>>,\n TError,\n TData\n > & { queryKey: QueryKey };\n};\n\nexport type GetServiceSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getService>>>;\nexport type GetServiceSuspenseQueryError = ErrorType<AsError | void>;\n\n/**\n * @summary Gets a specific Merchant\n */\n\nexport function useGetServiceSuspense<\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;\n request?: SecondParameter<typeof customFetch>;\n },\n): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {\n const queryOptions = getGetServiceSuspenseQueryOptions(mId, options);\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {\n queryKey: QueryKey;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n"],"mappings":";;;;;;;;;;;;;;AAqDA,MAAa,2BAA2B;AACtC,QAAO;;AAGT,MAAa,eAAe,OAAO,YAAyD;AAC1F,QAAO,YAAkC,oBAAoB,EAAE;EAAE,GAAG;EAAS,QAAQ;EAAO,CAAC;;AAG/F,MAAa,gCAAgC;AAC3C,QAAO,CAAC,kBAAkB,WAAW;;AAGvC,MAAa,+BAGX,YAGI;CACJ,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,EAAE;CAEtE,MAAM,WAAW,cAAc,YAAY,yBAAyB;CAEpE,MAAMA,WAAoE,EAAE,aAC1E,aAAa;EAAE;EAAQ,GAAG;EAAgB,CAAC;AAE7C,QAAO;EAAE;EAAU;EAAS,GAAG;EAAc;;;;;AAc/C,SAAgB,gBAGd,SAGyD;CACzD,MAAM,eAAe,4BAA4B,QAAQ;CAEzD,MAAM,QAAQ,SAAS,aAAa;AAEpC,OAAM,WAAW,aAAa;AAE9B,QAAO;;;;;AAMT,MAAa,yBAAyB,OACpC,aACA,YACyB;AACzB,OAAM,YAAY,kBAAkB,EAAE,UAAU,yBAAyB,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ACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,EAAE;CAEtE,MAAM,WAAW,cAAc,YAAY,sBAAsB,IAAI;CAErE,MAAMA,WAAkE,EAAE,aACxE,WAAW,KAAK;EAAE;EAAQ,GAAG;EAAgB,CAAC;AAEhD,QAAO;EAAE;EAAU;EAAS,GAAG;EAAc;;;;;AAc/C,SAAgB,sBAId,KACA,SAIgE;CAChE,MAAM,eAAe,kCAAkC,KAAK,QAAQ;CAEpE,MAAM,QAAQ,iBAAiB,aAAa;AAI5C,OAAM,WAAW,aAAa;AAE9B,QAAO"}
1
+ {"version":3,"file":"merchant.fetch.js","names":["queryFn: QueryFunction<Awaited<ReturnType<typeof getMerchants>>>","queryFn: QueryFunction<Awaited<ReturnType<typeof getService>>>"],"sources":["../../../src/api/merchant/merchant.fetch.ts"],"sourcesContent":["/**\n * Generated by orval v7.17.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.4\n */\nimport { useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n InvalidateOptions,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type { AsError, MerchantDetail, MerchantsGetResponse } from \".././api-schemas\";\n\nimport { customFetch } from \"../../custom-fetch\";\nimport type { ErrorType } from \"../../custom-fetch\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Gets Merchants known to the Account Server\n\nMerchants are software services (SaaS assets) whose facilities are known to and controlled by the Account Server\n\n * @summary Gets all Merchants\n */\nexport type getMerchantsResponse200 = { data: MerchantsGetResponse; status: 200 };\n\nexport type getMerchantsResponse400 = { data: AsError; status: 400 };\n\nexport type getMerchantsResponse401 = { data: void; status: 401 };\n\nexport type getMerchantsResponse403 = { data: AsError; status: 403 };\n\nexport type getMerchantsResponseSuccess = getMerchantsResponse200 & { headers: Headers };\nexport type getMerchantsResponseError = (\n | getMerchantsResponse400\n | getMerchantsResponse401\n | getMerchantsResponse403\n) & { headers: Headers };\n\nexport type getMerchantsResponse = getMerchantsResponseSuccess | getMerchantsResponseError;\n\nexport const getGetMerchantsUrl = () => {\n return `/merchant`;\n};\n\nexport const getMerchants = async (options?: RequestInit): Promise<getMerchantsResponse> => {\n return customFetch<getMerchantsResponse>(getGetMerchantsUrl(), { ...options, method: \"GET\" });\n};\n\nexport const getGetMerchantsQueryKey = () => {\n return [\"account-server\", \"merchant\"] as const;\n};\n\nexport const getGetMerchantsQueryOptions = <\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetMerchantsQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getMerchants>>> = ({ signal }) =>\n getMerchants({ signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getMerchants>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData> };\n};\n\nexport type GetMerchantsQueryResult = NonNullable<Awaited<ReturnType<typeof getMerchants>>>;\nexport type GetMerchantsQueryError = ErrorType<AsError | void>;\n\nexport function useGetMerchants<\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getMerchants>>,\n TError,\n Awaited<ReturnType<typeof getMerchants>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetMerchants<\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getMerchants>>,\n TError,\n Awaited<ReturnType<typeof getMerchants>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetMerchants<\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\n/**\n * @summary Gets all Merchants\n */\n\nexport function useGetMerchants<\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {\n const queryOptions = getGetMerchantsQueryOptions(options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData>;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * @summary Gets all Merchants\n */\nexport const invalidateGetMerchants = async (\n queryClient: QueryClient,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetMerchantsQueryKey() }, options);\n\n return queryClient;\n};\n\nexport const getGetMerchantsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(options?: {\n query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetMerchantsQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getMerchants>>> = ({ signal }) =>\n getMerchants({ signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getMerchants>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData> };\n};\n\nexport type GetMerchantsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getMerchants>>>;\nexport type GetMerchantsSuspenseQueryError = ErrorType<AsError | void>;\n\nexport function useGetMerchantsSuspense<\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetMerchantsSuspense<\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetMerchantsSuspense<\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\n/**\n * @summary Gets all Merchants\n */\n\nexport function useGetMerchantsSuspense<\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {\n const queryOptions = getGetMerchantsSuspenseQueryOptions(options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData> };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * Gets a known Merchant\n\n * @summary Gets a specific Merchant\n */\nexport type getServiceResponse200 = { data: MerchantDetail; status: 200 };\n\nexport type getServiceResponse400 = { data: AsError; status: 400 };\n\nexport type getServiceResponse401 = { data: void; status: 401 };\n\nexport type getServiceResponse403 = { data: AsError; status: 403 };\n\nexport type getServiceResponseSuccess = getServiceResponse200 & { headers: Headers };\nexport type getServiceResponseError = (\n | getServiceResponse400\n | getServiceResponse401\n | getServiceResponse403\n) & { headers: Headers };\n\nexport type getServiceResponse = getServiceResponseSuccess | getServiceResponseError;\n\nexport const getGetServiceUrl = (mId: number) => {\n return `/merchant/${mId}`;\n};\n\nexport const getService = async (\n mId: number,\n options?: RequestInit,\n): Promise<getServiceResponse> => {\n return customFetch<getServiceResponse>(getGetServiceUrl(mId), { ...options, method: \"GET\" });\n};\n\nexport const getGetServiceQueryKey = (mId?: number) => {\n return [\"account-server\", \"merchant\", mId] as const;\n};\n\nexport const getGetServiceQueryOptions = <\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetServiceQueryKey(mId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getService>>> = ({ signal }) =>\n getService(mId, { signal, ...requestOptions });\n\n return { queryKey, queryFn, enabled: !!mId, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getService>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData> };\n};\n\nexport type GetServiceQueryResult = NonNullable<Awaited<ReturnType<typeof getService>>>;\nexport type GetServiceQueryError = ErrorType<AsError | void>;\n\nexport function useGetService<\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getService>>,\n TError,\n Awaited<ReturnType<typeof getService>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetService<\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getService>>,\n TError,\n Awaited<ReturnType<typeof getService>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetService<\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\n/**\n * @summary Gets a specific Merchant\n */\n\nexport function useGetService<\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {\n const queryOptions = getGetServiceQueryOptions(mId, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData>;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * @summary Gets a specific Merchant\n */\nexport const invalidateGetService = async (\n queryClient: QueryClient,\n mId: number,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetServiceQueryKey(mId) }, options);\n\n return queryClient;\n};\n\nexport const getGetServiceSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetServiceQueryKey(mId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getService>>> = ({ signal }) =>\n getService(mId, { signal, ...requestOptions });\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getService>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData> };\n};\n\nexport type GetServiceSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getService>>>;\nexport type GetServiceSuspenseQueryError = ErrorType<AsError | void>;\n\nexport function useGetServiceSuspense<\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options: {\n query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetServiceSuspense<\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetServiceSuspense<\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\n/**\n * @summary Gets a specific Merchant\n */\n\nexport function useGetServiceSuspense<\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>>;\n request?: SecondParameter<typeof customFetch>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {\n const queryOptions = getGetServiceSuspenseQueryOptions(mId, options);\n\n const query = useSuspenseQuery(queryOptions,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getGetMerchantsQueryOptions = (options) => {
42
42
  /**
43
43
  * @summary Gets all Merchants
44
44
  */
45
- function useGetMerchants(options) {
45
+ function useGetMerchants(options, queryClient) {
46
46
  const queryOptions = getGetMerchantsQueryOptions(options);
47
- const query = useQuery(queryOptions);
47
+ const query = useQuery(queryOptions, queryClient);
48
48
  query.queryKey = queryOptions.queryKey;
49
49
  return query;
50
50
  }
@@ -68,9 +68,9 @@ const getGetMerchantsSuspenseQueryOptions = (options) => {
68
68
  /**
69
69
  * @summary Gets all Merchants
70
70
  */
71
- function useGetMerchantsSuspense(options) {
71
+ function useGetMerchantsSuspense(options, queryClient) {
72
72
  const queryOptions = getGetMerchantsSuspenseQueryOptions(options);
73
- const query = useSuspenseQuery(queryOptions);
73
+ const query = useSuspenseQuery(queryOptions, queryClient);
74
74
  query.queryKey = queryOptions.queryKey;
75
75
  return query;
76
76
  }
@@ -107,9 +107,9 @@ const getGetServiceQueryOptions = (mId, options) => {
107
107
  /**
108
108
  * @summary Gets a specific Merchant
109
109
  */
110
- function useGetService(mId, options) {
110
+ function useGetService(mId, options, queryClient) {
111
111
  const queryOptions = getGetServiceQueryOptions(mId, options);
112
- const query = useQuery(queryOptions);
112
+ const query = useQuery(queryOptions, queryClient);
113
113
  query.queryKey = queryOptions.queryKey;
114
114
  return query;
115
115
  }
@@ -133,9 +133,9 @@ const getGetServiceSuspenseQueryOptions = (mId, options) => {
133
133
  /**
134
134
  * @summary Gets a specific Merchant
135
135
  */
136
- function useGetServiceSuspense(mId, options) {
136
+ function useGetServiceSuspense(mId, options, queryClient) {
137
137
  const queryOptions = getGetServiceSuspenseQueryOptions(mId, options);
138
- const query = useSuspenseQuery(queryOptions);
138
+ const query = useSuspenseQuery(queryOptions, queryClient);
139
139
  query.queryKey = queryOptions.queryKey;
140
140
  return query;
141
141
  }
@@ -1 +1 @@
1
- {"version":3,"file":"merchant.js","names":["queryFn: QueryFunction<Awaited<ReturnType<typeof getMerchants>>>","queryFn: QueryFunction<Awaited<ReturnType<typeof getService>>>"],"sources":["../../../src/api/merchant/merchant.ts"],"sourcesContent":["/**\n * Generated by orval v7.17.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.4\n */\nimport { useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n InvalidateOptions,\n QueryClient,\n QueryFunction,\n QueryKey,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type { AsError, MerchantDetail, MerchantsGetResponse } from \".././api-schemas\";\n\nimport { customInstance } from \"../../custom-axios\";\nimport type { ErrorType } from \"../../custom-axios\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Gets Merchants known to the Account Server\n\nMerchants are software services (SaaS assets) whose facilities are known to and controlled by the Account Server\n\n * @summary Gets all Merchants\n */\nexport const getMerchants = (\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<MerchantsGetResponse>({ url: `/merchant`, method: \"GET\", signal }, options);\n};\n\nexport const getGetMerchantsQueryKey = () => {\n return [\"account-server\", \"merchant\"] as const;\n};\n\nexport const getGetMerchantsQueryOptions = <\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(options?: {\n query?: UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetMerchantsQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getMerchants>>> = ({ signal }) =>\n getMerchants(requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getMerchants>>,\n TError,\n TData\n > & { queryKey: QueryKey };\n};\n\nexport type GetMerchantsQueryResult = NonNullable<Awaited<ReturnType<typeof getMerchants>>>;\nexport type GetMerchantsQueryError = ErrorType<AsError | void>;\n\n/**\n * @summary Gets all Merchants\n */\n\nexport function useGetMerchants<\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(options?: {\n query?: UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;\n request?: SecondParameter<typeof customInstance>;\n}): UseQueryResult<TData, TError> & { queryKey: QueryKey } {\n const queryOptions = getGetMerchantsQueryOptions(options);\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * @summary Gets all Merchants\n */\nexport const invalidateGetMerchants = async (\n queryClient: QueryClient,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetMerchantsQueryKey() }, options);\n\n return queryClient;\n};\n\nexport const getGetMerchantsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(options?: {\n query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetMerchantsQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getMerchants>>> = ({ signal }) =>\n getMerchants(requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getMerchants>>,\n TError,\n TData\n > & { queryKey: QueryKey };\n};\n\nexport type GetMerchantsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getMerchants>>>;\nexport type GetMerchantsSuspenseQueryError = ErrorType<AsError | void>;\n\n/**\n * @summary Gets all Merchants\n */\n\nexport function useGetMerchantsSuspense<\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(options?: {\n query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>;\n request?: SecondParameter<typeof customInstance>;\n}): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {\n const queryOptions = getGetMerchantsSuspenseQueryOptions(options);\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {\n queryKey: QueryKey;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * Gets a known Merchant\n\n * @summary Gets a specific Merchant\n */\nexport const getService = (\n mId: number,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<MerchantDetail>(\n { url: `/merchant/${mId}`, method: \"GET\", signal },\n options,\n );\n};\n\nexport const getGetServiceQueryKey = (mId?: number) => {\n return [\"account-server\", \"merchant\", mId] as const;\n};\n\nexport const getGetServiceQueryOptions = <\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetServiceQueryKey(mId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getService>>> = ({ signal }) =>\n getService(mId, requestOptions, signal);\n\n return { queryKey, queryFn, enabled: !!mId, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getService>>,\n TError,\n TData\n > & { queryKey: QueryKey };\n};\n\nexport type GetServiceQueryResult = NonNullable<Awaited<ReturnType<typeof getService>>>;\nexport type GetServiceQueryError = ErrorType<AsError | void>;\n\n/**\n * @summary Gets a specific Merchant\n */\n\nexport function useGetService<\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;\n request?: SecondParameter<typeof customInstance>;\n },\n): UseQueryResult<TData, TError> & { queryKey: QueryKey } {\n const queryOptions = getGetServiceQueryOptions(mId, options);\n\n const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * @summary Gets a specific Merchant\n */\nexport const invalidateGetService = async (\n queryClient: QueryClient,\n mId: number,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetServiceQueryKey(mId) }, options);\n\n return queryClient;\n};\n\nexport const getGetServiceSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetServiceQueryKey(mId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getService>>> = ({ signal }) =>\n getService(mId, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getService>>,\n TError,\n TData\n > & { queryKey: QueryKey };\n};\n\nexport type GetServiceSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getService>>>;\nexport type GetServiceSuspenseQueryError = ErrorType<AsError | void>;\n\n/**\n * @summary Gets a specific Merchant\n */\n\nexport function useGetServiceSuspense<\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>;\n request?: SecondParameter<typeof customInstance>;\n },\n): UseSuspenseQueryResult<TData, TError> & { queryKey: QueryKey } {\n const queryOptions = getGetServiceSuspenseQueryOptions(mId, options);\n\n const query = useSuspenseQuery(queryOptions) as UseSuspenseQueryResult<TData, TError> & {\n queryKey: QueryKey;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAoCA,MAAa,gBACX,SACA,WACG;AACH,QAAO,eAAqC;EAAE,KAAK;EAAa,QAAQ;EAAO;EAAQ,EAAE,QAAQ;;AAGnG,MAAa,gCAAgC;AAC3C,QAAO,CAAC,kBAAkB,WAAW;;AAGvC,MAAa,+BAGX,YAGI;CACJ,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,EAAE;CAEtE,MAAM,WAAW,cAAc,YAAY,yBAAyB;CAEpE,MAAMA,WAAoE,EAAE,aAC1E,aAAa,gBAAgB,OAAO;AAEtC,QAAO;EAAE;EAAU;EAAS,GAAG;EAAc;;;;;AAc/C,SAAgB,gBAGd,SAGyD;CACzD,MAAM,eAAe,4BAA4B,QAAQ;CAEzD,MAAM,QAAQ,SAAS,aAAa;AAEpC,OAAM,WAAW,aAAa;AAE9B,QAAO;;;;;AAMT,MAAa,yBAAyB,OACpC,aACA,YACyB;AACzB,OAAM,YAAY,kBAAkB,EAAE,UAAU,yBAAyB,EAAE,EAAE,QAAQ;AAErF,QAAO;;AAGT,MAAa,uCAGX,YAGI;CACJ,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,EAAE;CAEtE,MAAM,WAAW,cAAc,YAAY,yBAAyB;CAEpE,MAAMA,WAAoE,EAAE,aAC1E,aAAa,gBAAgB,OAAO;AAEtC,QAAO;EAAE;EAAU;EAAS,GAAG;EAAc;;;;;AAc/C,SAAgB,wBAGd,SAGiE;CACjE,MAAM,eAAe,oCAAoC,QAAQ;CAEjE,MAAM,QAAQ,iBAAiB,aAAa;AAI5C,OAAM,WAAW,aAAa;AAE9B,QAAO;;;;;;;AAQT,MAAa,cACX,KACA,SACA,WACG;AACH,QAAO,eACL;EAAE,KAAK,aAAa;EAAO,QAAQ;EAAO;EAAQ,EAClD,QACD;;AAGH,MAAa,yBAAyB,QAAiB;AACrD,QAAO;EAAC;EAAkB;EAAY;EAAI;;AAG5C,MAAa,6BAIX,KACA,YAIG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,EAAE;CAEtE,MAAM,WAAW,cAAc,YAAY,sBAAsB,IAAI;CAErE,MAAMC,WAAkE,EAAE,aACxE,WAAW,KAAK,gBAAgB,OAAO;AAEzC,QAAO;EAAE;EAAU;EAAS,SAAS,CAAC,CAAC;EAAK,GAAG;EAAc;;;;;AAc/D,SAAgB,cAId,KACA,SAIwD;CACxD,MAAM,eAAe,0BAA0B,KAAK,QAAQ;CAE5D,MAAM,QAAQ,SAAS,aAAa;AAEpC,OAAM,WAAW,aAAa;AAE9B,QAAO;;;;;AAMT,MAAa,uBAAuB,OAClC,aACA,KACA,YACyB;AACzB,OAAM,YAAY,kBAAkB,EAAE,UAAU,sBAAsB,IAAI,EAAE,EAAE,QAAQ;AAEtF,QAAO;;AAGT,MAAa,qCAIX,KACA,YAIG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,EAAE;CAEtE,MAAM,WAAW,cAAc,YAAY,sBAAsB,IAAI;CAErE,MAAMA,WAAkE,EAAE,aACxE,WAAW,KAAK,gBAAgB,OAAO;AAEzC,QAAO;EAAE;EAAU;EAAS,GAAG;EAAc;;;;;AAc/C,SAAgB,sBAId,KACA,SAIgE;CAChE,MAAM,eAAe,kCAAkC,KAAK,QAAQ;CAEpE,MAAM,QAAQ,iBAAiB,aAAa;AAI5C,OAAM,WAAW,aAAa;AAE9B,QAAO"}
1
+ {"version":3,"file":"merchant.js","names":["queryFn: QueryFunction<Awaited<ReturnType<typeof getMerchants>>>","queryFn: QueryFunction<Awaited<ReturnType<typeof getService>>>"],"sources":["../../../src/api/merchant/merchant.ts"],"sourcesContent":["/**\n * Generated by orval v7.17.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.4\n */\nimport { useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n InvalidateOptions,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type { AsError, MerchantDetail, MerchantsGetResponse } from \".././api-schemas\";\n\nimport { customInstance } from \"../../custom-axios\";\nimport type { ErrorType } from \"../../custom-axios\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * Gets Merchants known to the Account Server\n\nMerchants are software services (SaaS assets) whose facilities are known to and controlled by the Account Server\n\n * @summary Gets all Merchants\n */\nexport const getMerchants = (\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<MerchantsGetResponse>({ url: `/merchant`, method: \"GET\", signal }, options);\n};\n\nexport const getGetMerchantsQueryKey = () => {\n return [\"account-server\", \"merchant\"] as const;\n};\n\nexport const getGetMerchantsQueryOptions = <\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetMerchantsQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getMerchants>>> = ({ signal }) =>\n getMerchants(requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getMerchants>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData> };\n};\n\nexport type GetMerchantsQueryResult = NonNullable<Awaited<ReturnType<typeof getMerchants>>>;\nexport type GetMerchantsQueryError = ErrorType<AsError | void>;\n\nexport function useGetMerchants<\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getMerchants>>,\n TError,\n Awaited<ReturnType<typeof getMerchants>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetMerchants<\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getMerchants>>,\n TError,\n Awaited<ReturnType<typeof getMerchants>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetMerchants<\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\n/**\n * @summary Gets all Merchants\n */\n\nexport function useGetMerchants<\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {\n const queryOptions = getGetMerchantsQueryOptions(options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData>;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * @summary Gets all Merchants\n */\nexport const invalidateGetMerchants = async (\n queryClient: QueryClient,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetMerchantsQueryKey() }, options);\n\n return queryClient;\n};\n\nexport const getGetMerchantsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(options?: {\n query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetMerchantsQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getMerchants>>> = ({ signal }) =>\n getMerchants(requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getMerchants>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData> };\n};\n\nexport type GetMerchantsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getMerchants>>>;\nexport type GetMerchantsSuspenseQueryError = ErrorType<AsError | void>;\n\nexport function useGetMerchantsSuspense<\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetMerchantsSuspense<\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetMerchantsSuspense<\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\n/**\n * @summary Gets all Merchants\n */\n\nexport function useGetMerchantsSuspense<\n TData = Awaited<ReturnType<typeof getMerchants>>,\n TError = ErrorType<AsError | void>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getMerchants>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {\n const queryOptions = getGetMerchantsSuspenseQueryOptions(options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag<QueryKey, TData> };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * Gets a known Merchant\n\n * @summary Gets a specific Merchant\n */\nexport const getService = (\n mId: number,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<MerchantDetail>(\n { url: `/merchant/${mId}`, method: \"GET\", signal },\n options,\n );\n};\n\nexport const getGetServiceQueryKey = (mId?: number) => {\n return [\"account-server\", \"merchant\", mId] as const;\n};\n\nexport const getGetServiceQueryOptions = <\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetServiceQueryKey(mId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getService>>> = ({ signal }) =>\n getService(mId, requestOptions, signal);\n\n return { queryKey, queryFn, enabled: !!mId, ...queryOptions } as UseQueryOptions<\n Awaited<ReturnType<typeof getService>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData> };\n};\n\nexport type GetServiceQueryResult = NonNullable<Awaited<ReturnType<typeof getService>>>;\nexport type GetServiceQueryError = ErrorType<AsError | void>;\n\nexport function useGetService<\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getService>>,\n TError,\n Awaited<ReturnType<typeof getService>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetService<\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getService>>,\n TError,\n Awaited<ReturnType<typeof getService>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetService<\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\n/**\n * @summary Gets a specific Merchant\n */\n\nexport function useGetService<\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {\n const queryOptions = getGetServiceQueryOptions(mId, options);\n\n const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & {\n queryKey: DataTag<QueryKey, TData>;\n };\n\n query.queryKey = queryOptions.queryKey;\n\n return query;\n}\n\n/**\n * @summary Gets a specific Merchant\n */\nexport const invalidateGetService = async (\n queryClient: QueryClient,\n mId: number,\n options?: InvalidateOptions,\n): Promise<QueryClient> => {\n await queryClient.invalidateQueries({ queryKey: getGetServiceQueryKey(mId) }, options);\n\n return queryClient;\n};\n\nexport const getGetServiceSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetServiceQueryKey(mId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getService>>> = ({ signal }) =>\n getService(mId, requestOptions, signal);\n\n return { queryKey, queryFn, ...queryOptions } as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getService>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData> };\n};\n\nexport type GetServiceSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getService>>>;\nexport type GetServiceSuspenseQueryError = ErrorType<AsError | void>;\n\nexport function useGetServiceSuspense<\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options: {\n query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetServiceSuspense<\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\nexport function useGetServiceSuspense<\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };\n/**\n * @summary Gets a specific Merchant\n */\n\nexport function useGetServiceSuspense<\n TData = Awaited<ReturnType<typeof getService>>,\n TError = ErrorType<AsError | void>,\n>(\n mId: number,\n options?: {\n query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getService>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {\n const queryOptions = getGetServiceSuspenseQueryOptions(mId, options);\n\n const query = useSuspenseQuery(queryOptions, queryClient) as UseSuspenseQueryResult<\n TData,\n TError\n > & { queryKey: DataTag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BAAyB,QAAiB;AACrD,QAAO;EAAC;EAAkB;EAAY;EAAI;;AAG5C,MAAa,6BAIX,KACA,YAIG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,EAAE;CAEtE,MAAM,WAAW,cAAc,YAAY,sBAAsB,IAAI;CAErE,MAAMC,WAAkE,EAAE,aACxE,WAAW,KAAK,gBAAgB,OAAO;AAEzC,QAAO;EAAE;EAAU;EAAS,SAAS,CAAC,CAAC;EAAK,GAAG;EAAc;;;;;AA+D/D,SAAgB,cAId,KACA,SAIA,aACwE;CACxE,MAAM,eAAe,0BAA0B,KAAK,QAAQ;CAE5D,MAAM,QAAQ,SAAS,cAAc,YAAY;AAIjD,OAAM,WAAW,aAAa;AAE9B,QAAO;;;;;AAMT,MAAa,uBAAuB,OAClC,aACA,KACA,YACyB;AACzB,OAAM,YAAY,kBAAkB,EAAE,UAAU,sBAAsB,IAAI,EAAE,EAAE,QAAQ;AAEtF,QAAO;;AAGT,MAAa,qCAIX,KACA,YAIG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,EAAE;CAEtE,MAAM,WAAW,cAAc,YAAY,sBAAsB,IAAI;CAErE,MAAMA,WAAkE,EAAE,aACxE,WAAW,KAAK,gBAAgB,OAAO;AAEzC,QAAO;EAAE;EAAU;EAAS,GAAG;EAAc;;;;;AA+C/C,SAAgB,sBAId,KACA,SAIA,aACgF;CAChF,MAAM,eAAe,kCAAkC,KAAK,QAAQ;CAEpE,MAAM,QAAQ,iBAAiB,cAAc,YAAY;AAKzD,OAAM,WAAW,aAAa;AAE9B,QAAO"}
@@ -48,9 +48,9 @@ const getGetOrganisationsQueryOptions = (params, options) => {
48
48
  /**
49
49
  * @summary Gets Organisations
50
50
  */
51
- function useGetOrganisations(params, options) {
51
+ function useGetOrganisations(params, options, queryClient) {
52
52
  const queryOptions = getGetOrganisationsQueryOptions(params, options);
53
- const query = (0, __tanstack_react_query.useQuery)(queryOptions);
53
+ const query = (0, __tanstack_react_query.useQuery)(queryOptions, queryClient);
54
54
  query.queryKey = queryOptions.queryKey;
55
55
  return query;
56
56
  }
@@ -74,9 +74,9 @@ const getGetOrganisationsSuspenseQueryOptions = (params, options) => {
74
74
  /**
75
75
  * @summary Gets Organisations
76
76
  */
77
- function useGetOrganisationsSuspense(params, options) {
77
+ function useGetOrganisationsSuspense(params, options, queryClient) {
78
78
  const queryOptions = getGetOrganisationsSuspenseQueryOptions(params, options);
79
- const query = (0, __tanstack_react_query.useSuspenseQuery)(queryOptions);
79
+ const query = (0, __tanstack_react_query.useSuspenseQuery)(queryOptions, queryClient);
80
80
  query.queryKey = queryOptions.queryKey;
81
81
  return query;
82
82
  }
@@ -122,8 +122,8 @@ const getCreateOrganisationMutationOptions = (options) => {
122
122
  /**
123
123
  * @summary Create a new organisation
124
124
  */
125
- const useCreateOrganisation = (options) => {
126
- return (0, __tanstack_react_query.useMutation)(getCreateOrganisationMutationOptions(options));
125
+ const useCreateOrganisation = (options, queryClient) => {
126
+ return (0, __tanstack_react_query.useMutation)(getCreateOrganisationMutationOptions(options), queryClient);
127
127
  };
128
128
  /**
129
129
  * Gets an Organisation. To see the Organisation you need admin rights or need to be a member of the Organisation or are its *creator*.
@@ -160,9 +160,9 @@ const getGetOrganisationQueryOptions = (orgId, options) => {
160
160
  /**
161
161
  * @summary Gets an Organisation
162
162
  */
163
- function useGetOrganisation(orgId, options) {
163
+ function useGetOrganisation(orgId, options, queryClient) {
164
164
  const queryOptions = getGetOrganisationQueryOptions(orgId, options);
165
- const query = (0, __tanstack_react_query.useQuery)(queryOptions);
165
+ const query = (0, __tanstack_react_query.useQuery)(queryOptions, queryClient);
166
166
  query.queryKey = queryOptions.queryKey;
167
167
  return query;
168
168
  }
@@ -186,9 +186,9 @@ const getGetOrganisationSuspenseQueryOptions = (orgId, options) => {
186
186
  /**
187
187
  * @summary Gets an Organisation
188
188
  */
189
- function useGetOrganisationSuspense(orgId, options) {
189
+ function useGetOrganisationSuspense(orgId, options, queryClient) {
190
190
  const queryOptions = getGetOrganisationSuspenseQueryOptions(orgId, options);
191
- const query = (0, __tanstack_react_query.useSuspenseQuery)(queryOptions);
191
+ const query = (0, __tanstack_react_query.useSuspenseQuery)(queryOptions, queryClient);
192
192
  query.queryKey = queryOptions.queryKey;
193
193
  return query;
194
194
  }
@@ -233,8 +233,8 @@ const getPatchOrganisationMutationOptions = (options) => {
233
233
  /**
234
234
  * @summary Adjust an existing Organisation
235
235
  */
236
- const usePatchOrganisation = (options) => {
237
- return (0, __tanstack_react_query.useMutation)(getPatchOrganisationMutationOptions(options));
236
+ const usePatchOrganisation = (options, queryClient) => {
237
+ return (0, __tanstack_react_query.useMutation)(getPatchOrganisationMutationOptions(options), queryClient);
238
238
  };
239
239
  /**
240
240
  * Before an Organisation can be deleted all its underlying **Units** must also be deleted, remembering that **Units** that have undeleted **Products** cannot be deleted.
@@ -273,8 +273,8 @@ const getDeleteOrganisationMutationOptions = (options) => {
273
273
  /**
274
274
  * @summary Deletes an Organisation
275
275
  */
276
- const useDeleteOrganisation = (options) => {
277
- return (0, __tanstack_react_query.useMutation)(getDeleteOrganisationMutationOptions(options));
276
+ const useDeleteOrganisation = (options, queryClient) => {
277
+ return (0, __tanstack_react_query.useMutation)(getDeleteOrganisationMutationOptions(options), queryClient);
278
278
  };
279
279
  /**
280
280
  * Gets the Default Organisation, a built-in Organisation used exclusively for **Personal Units**.
@@ -310,9 +310,9 @@ const getGetDefaultOrganisationQueryOptions = (options) => {
310
310
  /**
311
311
  * @summary Gets the Default Organisation
312
312
  */
313
- function useGetDefaultOrganisation(options) {
313
+ function useGetDefaultOrganisation(options, queryClient) {
314
314
  const queryOptions = getGetDefaultOrganisationQueryOptions(options);
315
- const query = (0, __tanstack_react_query.useQuery)(queryOptions);
315
+ const query = (0, __tanstack_react_query.useQuery)(queryOptions, queryClient);
316
316
  query.queryKey = queryOptions.queryKey;
317
317
  return query;
318
318
  }
@@ -336,9 +336,9 @@ const getGetDefaultOrganisationSuspenseQueryOptions = (options) => {
336
336
  /**
337
337
  * @summary Gets the Default Organisation
338
338
  */
339
- function useGetDefaultOrganisationSuspense(options) {
339
+ function useGetDefaultOrganisationSuspense(options, queryClient) {
340
340
  const queryOptions = getGetDefaultOrganisationSuspenseQueryOptions(options);
341
- const query = (0, __tanstack_react_query.useSuspenseQuery)(queryOptions);
341
+ const query = (0, __tanstack_react_query.useSuspenseQuery)(queryOptions, queryClient);
342
342
  query.queryKey = queryOptions.queryKey;
343
343
  return query;
344
344
  }