@squonk/account-server-client 4.3.1 → 4.4.0-4-4.2174798239
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/rolldown_runtime.cjs +29 -0
- package/dist/api/actions/actions.cjs +85 -0
- package/dist/api/actions/actions.cjs.map +1 -0
- package/dist/api/actions/actions.d.cts +74 -0
- package/dist/api/actions/actions.d.cts.map +1 -0
- package/dist/api/actions/actions.d.ts +74 -0
- package/dist/api/actions/actions.d.ts.map +1 -0
- package/dist/api/actions/actions.js +79 -0
- package/dist/api/actions/actions.js.map +1 -0
- package/dist/api/api.schemas.cjs +142 -0
- package/dist/api/api.schemas.cjs.map +1 -0
- package/dist/api/api.schemas.d.cts +1032 -0
- package/dist/api/api.schemas.d.cts.map +1 -0
- package/dist/api/api.schemas.d.ts +1032 -0
- package/dist/api/api.schemas.d.ts.map +1 -0
- package/dist/api/api.schemas.js +118 -0
- package/dist/api/api.schemas.js.map +1 -0
- package/dist/api/asset/asset.cjs +464 -0
- package/dist/api/asset/asset.cjs.map +1 -0
- package/{asset → dist/api/asset}/asset.d.cts +132 -130
- package/dist/api/asset/asset.d.cts.map +1 -0
- package/{asset → dist/api/asset}/asset.d.ts +132 -130
- package/dist/api/asset/asset.d.ts.map +1 -0
- package/dist/api/asset/asset.js +431 -0
- package/dist/api/asset/asset.js.map +1 -0
- package/dist/api/charges/charges.cjs +272 -0
- package/dist/api/charges/charges.cjs.map +1 -0
- package/{charges → dist/api/charges}/charges.d.cts +106 -104
- package/dist/api/charges/charges.d.cts.map +1 -0
- package/{charges → dist/api/charges}/charges.d.ts +106 -104
- package/dist/api/charges/charges.d.ts.map +1 -0
- package/dist/api/charges/charges.js +248 -0
- package/dist/api/charges/charges.js.map +1 -0
- package/dist/api/event-stream/event-stream.cjs +230 -0
- package/dist/api/event-stream/event-stream.cjs.map +1 -0
- package/{event-stream → dist/api/event-stream}/event-stream.d.cts +75 -73
- package/dist/api/event-stream/event-stream.d.cts.map +1 -0
- package/{event-stream → dist/api/event-stream}/event-stream.d.ts +75 -73
- package/dist/api/event-stream/event-stream.d.ts.map +1 -0
- package/dist/api/event-stream/event-stream.js +212 -0
- package/dist/api/event-stream/event-stream.js.map +1 -0
- package/dist/api/merchant/merchant.cjs +139 -0
- package/dist/api/merchant/merchant.cjs.map +1 -0
- package/{merchant → dist/api/merchant}/merchant.d.cts +56 -54
- package/dist/api/merchant/merchant.d.cts.map +1 -0
- package/{merchant → dist/api/merchant}/merchant.d.ts +56 -54
- package/dist/api/merchant/merchant.d.ts.map +1 -0
- package/dist/api/merchant/merchant.js +127 -0
- package/dist/api/merchant/merchant.js.map +1 -0
- package/dist/api/organisation/organisation.cjs +341 -0
- package/dist/api/organisation/organisation.cjs.map +1 -0
- package/{organisation → dist/api/organisation}/organisation.d.cts +112 -110
- package/dist/api/organisation/organisation.d.cts.map +1 -0
- package/{organisation → dist/api/organisation}/organisation.d.ts +112 -110
- package/dist/api/organisation/organisation.d.ts.map +1 -0
- package/dist/api/organisation/organisation.js +314 -0
- package/dist/api/organisation/organisation.js.map +1 -0
- package/dist/api/product/product.cjs +513 -0
- package/dist/api/product/product.cjs.map +1 -0
- package/{product → dist/api/product}/product.d.cts +188 -186
- package/dist/api/product/product.d.cts.map +1 -0
- package/{product → dist/api/product}/product.d.ts +188 -186
- package/dist/api/product/product.d.ts.map +1 -0
- package/dist/api/product/product.js +468 -0
- package/dist/api/product/product.js.map +1 -0
- package/dist/api/state/state.cjs +76 -0
- package/dist/api/state/state.cjs.map +1 -0
- package/dist/api/state/state.d.cts +66 -0
- package/dist/api/state/state.d.cts.map +1 -0
- package/dist/api/state/state.d.ts +66 -0
- package/dist/api/state/state.d.ts.map +1 -0
- package/dist/api/state/state.js +70 -0
- package/dist/api/state/state.js.map +1 -0
- package/dist/api/unit/unit.cjs +568 -0
- package/dist/api/unit/unit.cjs.map +1 -0
- package/{unit → dist/api/unit}/unit.d.cts +167 -165
- package/dist/api/unit/unit.d.cts.map +1 -0
- package/{unit → dist/api/unit}/unit.d.ts +167 -165
- package/dist/api/unit/unit.d.ts.map +1 -0
- package/dist/api/unit/unit.js +523 -0
- package/dist/api/unit/unit.js.map +1 -0
- package/dist/api/user/user.cjs +380 -0
- package/dist/api/user/user.cjs.map +1 -0
- package/{user → dist/api/user}/user.d.cts +129 -127
- package/dist/api/user/user.d.cts.map +1 -0
- package/{user → dist/api/user}/user.d.ts +129 -127
- package/dist/api/user/user.d.ts.map +1 -0
- package/dist/api/user/user.js +350 -0
- package/dist/api/user/user.js.map +1 -0
- package/dist/custom-instance.cjs +49 -0
- package/dist/custom-instance.cjs.map +1 -0
- package/dist/custom-instance.d.cts +22 -0
- package/dist/custom-instance.d.cts.map +1 -0
- package/dist/custom-instance.d.ts +22 -0
- package/dist/custom-instance.d.ts.map +1 -0
- package/dist/custom-instance.js +44 -0
- package/dist/custom-instance.js.map +1 -0
- package/dist/index.cjs +31 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +4 -0
- package/dist/options-mutator.cjs +24 -0
- package/dist/options-mutator.cjs.map +1 -0
- package/dist/options-mutator.js +23 -0
- package/dist/options-mutator.js.map +1 -0
- package/orval.config.ts +24 -0
- package/package.json +163 -16
- package/pnpm-workspace.yaml +3 -0
- package/src/api/actions/actions.ts +249 -0
- package/src/{account-server-api.schemas.ts → api/api.schemas.ts} +82 -2
- package/src/{asset → api/asset}/asset.ts +8 -8
- package/src/{charges → api/charges}/charges.ts +9 -9
- package/src/{event-stream → api/event-stream}/event-stream.ts +7 -7
- package/src/{merchant → api/merchant}/merchant.ts +7 -7
- package/src/{organisation → api/organisation}/organisation.ts +8 -8
- package/src/{product → api/product}/product.ts +10 -10
- package/src/{state → api/state}/state.ts +6 -6
- package/src/{unit → api/unit}/unit.ts +9 -9
- package/src/{user → api/user}/user.ts +9 -9
- package/src/index.ts +2 -2
- package/src/options-mutator.ts +2 -2
- package/tsconfig.json +29 -0
- package/tsdown.config.ts +52 -0
- package/asset/asset.cjs +0 -281
- package/asset/asset.cjs.map +0 -1
- package/asset/asset.js +0 -281
- package/asset/asset.js.map +0 -1
- package/asset/package.json +0 -7
- package/charges/charges.cjs +0 -176
- package/charges/charges.cjs.map +0 -1
- package/charges/charges.js +0 -176
- package/charges/charges.js.map +0 -1
- package/charges/package.json +0 -7
- package/chunk-3WKSNKHE.js +0 -25
- package/chunk-3WKSNKHE.js.map +0 -1
- package/chunk-NY2VJJG7.cjs +0 -25
- package/chunk-NY2VJJG7.cjs.map +0 -1
- package/chunk-RB2KVIEK.cjs +0 -27
- package/chunk-RB2KVIEK.cjs.map +0 -1
- package/chunk-XYDLYMQ2.js +0 -27
- package/chunk-XYDLYMQ2.js.map +0 -1
- package/event-stream/event-stream.cjs +0 -144
- package/event-stream/event-stream.cjs.map +0 -1
- package/event-stream/event-stream.js +0 -144
- package/event-stream/event-stream.js.map +0 -1
- package/event-stream/package.json +0 -7
- package/index.cjs +0 -142
- package/index.cjs.map +0 -1
- package/index.d.cts +0 -979
- package/index.d.ts +0 -979
- package/index.js +0 -142
- package/index.js.map +0 -1
- package/merchant/merchant.cjs +0 -91
- package/merchant/merchant.cjs.map +0 -1
- package/merchant/merchant.js +0 -91
- package/merchant/merchant.js.map +0 -1
- package/merchant/package.json +0 -7
- package/organisation/organisation.cjs +0 -213
- package/organisation/organisation.cjs.map +0 -1
- package/organisation/organisation.js +0 -213
- package/organisation/organisation.js.map +0 -1
- package/organisation/package.json +0 -7
- package/product/package.json +0 -7
- package/product/product.cjs +0 -341
- package/product/product.cjs.map +0 -1
- package/product/product.js +0 -341
- package/product/product.js.map +0 -1
- package/state/package.json +0 -7
- package/state/state.cjs +0 -53
- package/state/state.cjs.map +0 -1
- package/state/state.d.cts +0 -64
- package/state/state.d.ts +0 -64
- package/state/state.js +0 -53
- package/state/state.js.map +0 -1
- package/unit/package.json +0 -7
- package/unit/unit.cjs +0 -339
- package/unit/unit.cjs.map +0 -1
- package/unit/unit.js +0 -339
- package/unit/unit.js.map +0 -1
- package/user/package.json +0 -7
- package/user/user.cjs +0 -226
- package/user/user.cjs.map +0 -1
- package/user/user.js +0 -226
- package/user/user.js.map +0 -1
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_custom_instance = require('../../custom-instance.cjs');
|
|
3
|
+
const require_options_mutator = require('../../options-mutator.cjs');
|
|
4
|
+
let __tanstack_react_query = require("@tanstack/react-query");
|
|
5
|
+
|
|
6
|
+
//#region src/api/organisation/organisation.ts
|
|
7
|
+
/**
|
|
8
|
+
* Generated by orval v7.16.1 🍺
|
|
9
|
+
* Do not edit manually.
|
|
10
|
+
* Account Server API
|
|
11
|
+
* The Informatics Matters Account Server API.
|
|
12
|
+
|
|
13
|
+
A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.
|
|
14
|
+
|
|
15
|
+
* OpenAPI spec version: 4.4
|
|
16
|
+
*/
|
|
17
|
+
/**
|
|
18
|
+
* Gets all the Organisations that you are a member of, or a specific Organisation by name.
|
|
19
|
+
|
|
20
|
+
You can see an Organisation if you are a member of it, the owner (creator) of it, or if you are an admin user.
|
|
21
|
+
|
|
22
|
+
* @summary Gets Organisations
|
|
23
|
+
*/
|
|
24
|
+
const getOrganisations = (params, options, signal) => {
|
|
25
|
+
return require_custom_instance.customInstance({
|
|
26
|
+
url: `/organisation`,
|
|
27
|
+
method: "GET",
|
|
28
|
+
params,
|
|
29
|
+
signal
|
|
30
|
+
}, options);
|
|
31
|
+
};
|
|
32
|
+
const getGetOrganisationsQueryKey = (params) => {
|
|
33
|
+
return [`/organisation`, ...params ? [params] : []];
|
|
34
|
+
};
|
|
35
|
+
const useGetOrganisationsQueryOptions = (params, options) => {
|
|
36
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
37
|
+
const queryKey = queryOptions?.queryKey ?? getGetOrganisationsQueryKey(params);
|
|
38
|
+
const queryFn = ({ signal }) => getOrganisations(params, requestOptions, signal);
|
|
39
|
+
return require_options_mutator.queryMutator({
|
|
40
|
+
...queryOptions,
|
|
41
|
+
queryKey,
|
|
42
|
+
queryFn
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* @summary Gets Organisations
|
|
47
|
+
*/
|
|
48
|
+
function useGetOrganisations(params, options, queryClient) {
|
|
49
|
+
const queryOptions = useGetOrganisationsQueryOptions(params, options);
|
|
50
|
+
const query = (0, __tanstack_react_query.useQuery)(queryOptions, queryClient);
|
|
51
|
+
query.queryKey = queryOptions.queryKey;
|
|
52
|
+
return query;
|
|
53
|
+
}
|
|
54
|
+
const useGetOrganisationsSuspenseQueryOptions = (params, options) => {
|
|
55
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
56
|
+
const queryKey = queryOptions?.queryKey ?? getGetOrganisationsQueryKey(params);
|
|
57
|
+
const queryFn = ({ signal }) => getOrganisations(params, requestOptions, signal);
|
|
58
|
+
return require_options_mutator.queryMutator({
|
|
59
|
+
...queryOptions,
|
|
60
|
+
queryKey,
|
|
61
|
+
queryFn
|
|
62
|
+
});
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* @summary Gets Organisations
|
|
66
|
+
*/
|
|
67
|
+
function useGetOrganisationsSuspense(params, options, queryClient) {
|
|
68
|
+
const queryOptions = useGetOrganisationsSuspenseQueryOptions(params, options);
|
|
69
|
+
const query = (0, __tanstack_react_query.useSuspenseQuery)(queryOptions, queryClient);
|
|
70
|
+
query.queryKey = queryOptions.queryKey;
|
|
71
|
+
return query;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Creates a new Organisation.
|
|
75
|
+
|
|
76
|
+
The **User** who creates the Organisation becomes the **Owner** of the Organisation. They are considered a *Member* (**User**) of the Organisation but are not present in the list of users, which a separate list of users explicitly added to the Organisation by the Owner or another Organisation User.
|
|
77
|
+
|
|
78
|
+
You need admin rights to use this method
|
|
79
|
+
|
|
80
|
+
* @summary Create a new organisation
|
|
81
|
+
*/
|
|
82
|
+
const createOrganisation = (organisationPostBodyBody, options, signal) => {
|
|
83
|
+
return require_custom_instance.customInstance({
|
|
84
|
+
url: `/organisation`,
|
|
85
|
+
method: "POST",
|
|
86
|
+
headers: { "Content-Type": "application/json" },
|
|
87
|
+
data: organisationPostBodyBody,
|
|
88
|
+
signal
|
|
89
|
+
}, options);
|
|
90
|
+
};
|
|
91
|
+
const useCreateOrganisationMutationOptions = (options) => {
|
|
92
|
+
const mutationKey = ["createOrganisation"];
|
|
93
|
+
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
94
|
+
...options,
|
|
95
|
+
mutation: {
|
|
96
|
+
...options.mutation,
|
|
97
|
+
mutationKey
|
|
98
|
+
}
|
|
99
|
+
} : {
|
|
100
|
+
mutation: { mutationKey },
|
|
101
|
+
request: void 0
|
|
102
|
+
};
|
|
103
|
+
const mutationFn = (props) => {
|
|
104
|
+
const { data } = props ?? {};
|
|
105
|
+
return createOrganisation(data, requestOptions);
|
|
106
|
+
};
|
|
107
|
+
return require_options_mutator.mutationMutator({
|
|
108
|
+
...mutationOptions,
|
|
109
|
+
mutationFn
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* @summary Create a new organisation
|
|
114
|
+
*/
|
|
115
|
+
const useCreateOrganisation = (options, queryClient) => {
|
|
116
|
+
return (0, __tanstack_react_query.useMutation)(useCreateOrganisationMutationOptions(options), queryClient);
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* Gets an Organisation. To see the Organisation you need admin rights or need to be a member of the Organisation or are its *creator*.
|
|
120
|
+
|
|
121
|
+
Members of an Organisation's **Unit** do not have access to the Organisation.
|
|
122
|
+
|
|
123
|
+
* @summary Gets an Organisation
|
|
124
|
+
*/
|
|
125
|
+
const getOrganisation = (orgId, options, signal) => {
|
|
126
|
+
return require_custom_instance.customInstance({
|
|
127
|
+
url: `/organisation/${orgId}`,
|
|
128
|
+
method: "GET",
|
|
129
|
+
signal
|
|
130
|
+
}, options);
|
|
131
|
+
};
|
|
132
|
+
const getGetOrganisationQueryKey = (orgId) => {
|
|
133
|
+
return [`/organisation/${orgId}`];
|
|
134
|
+
};
|
|
135
|
+
const useGetOrganisationQueryOptions = (orgId, options) => {
|
|
136
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
137
|
+
const queryKey = queryOptions?.queryKey ?? getGetOrganisationQueryKey(orgId);
|
|
138
|
+
const queryFn = ({ signal }) => getOrganisation(orgId, requestOptions, signal);
|
|
139
|
+
return require_options_mutator.queryMutator({
|
|
140
|
+
...queryOptions,
|
|
141
|
+
queryKey,
|
|
142
|
+
queryFn
|
|
143
|
+
});
|
|
144
|
+
};
|
|
145
|
+
/**
|
|
146
|
+
* @summary Gets an Organisation
|
|
147
|
+
*/
|
|
148
|
+
function useGetOrganisation(orgId, options, queryClient) {
|
|
149
|
+
const queryOptions = useGetOrganisationQueryOptions(orgId, options);
|
|
150
|
+
const query = (0, __tanstack_react_query.useQuery)(queryOptions, queryClient);
|
|
151
|
+
query.queryKey = queryOptions.queryKey;
|
|
152
|
+
return query;
|
|
153
|
+
}
|
|
154
|
+
const useGetOrganisationSuspenseQueryOptions = (orgId, options) => {
|
|
155
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
156
|
+
const queryKey = queryOptions?.queryKey ?? getGetOrganisationQueryKey(orgId);
|
|
157
|
+
const queryFn = ({ signal }) => getOrganisation(orgId, requestOptions, signal);
|
|
158
|
+
return require_options_mutator.queryMutator({
|
|
159
|
+
...queryOptions,
|
|
160
|
+
queryKey,
|
|
161
|
+
queryFn
|
|
162
|
+
});
|
|
163
|
+
};
|
|
164
|
+
/**
|
|
165
|
+
* @summary Gets an Organisation
|
|
166
|
+
*/
|
|
167
|
+
function useGetOrganisationSuspense(orgId, options, queryClient) {
|
|
168
|
+
const queryOptions = useGetOrganisationSuspenseQueryOptions(orgId, options);
|
|
169
|
+
const query = (0, __tanstack_react_query.useSuspenseQuery)(queryOptions, queryClient);
|
|
170
|
+
query.queryKey = queryOptions.queryKey;
|
|
171
|
+
return query;
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Used to update existing Organisation. You can change an Organisation's **name** or its **default_product_privacy**.
|
|
175
|
+
|
|
176
|
+
Changes to the default product privacy may conflict with those settings in any existing Units where the default product privacy of those existing units will be honoured. Any new Organisation value will only apply to new Units.
|
|
177
|
+
|
|
178
|
+
You have to be a member of the **Organisation**, its creator, or an administrator to patch an Organisation.
|
|
179
|
+
|
|
180
|
+
* @summary Adjust an existing Organisation
|
|
181
|
+
*/
|
|
182
|
+
const patchOrganisation = (orgId, organisationPatchBodyBody, options) => {
|
|
183
|
+
return require_custom_instance.customInstance({
|
|
184
|
+
url: `/organisation/${orgId}`,
|
|
185
|
+
method: "PATCH",
|
|
186
|
+
headers: { "Content-Type": "application/json" },
|
|
187
|
+
data: organisationPatchBodyBody
|
|
188
|
+
}, options);
|
|
189
|
+
};
|
|
190
|
+
const usePatchOrganisationMutationOptions = (options) => {
|
|
191
|
+
const mutationKey = ["patchOrganisation"];
|
|
192
|
+
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
193
|
+
...options,
|
|
194
|
+
mutation: {
|
|
195
|
+
...options.mutation,
|
|
196
|
+
mutationKey
|
|
197
|
+
}
|
|
198
|
+
} : {
|
|
199
|
+
mutation: { mutationKey },
|
|
200
|
+
request: void 0
|
|
201
|
+
};
|
|
202
|
+
const mutationFn = (props) => {
|
|
203
|
+
const { orgId, data } = props ?? {};
|
|
204
|
+
return patchOrganisation(orgId, data, requestOptions);
|
|
205
|
+
};
|
|
206
|
+
return require_options_mutator.mutationMutator({
|
|
207
|
+
...mutationOptions,
|
|
208
|
+
mutationFn
|
|
209
|
+
});
|
|
210
|
+
};
|
|
211
|
+
/**
|
|
212
|
+
* @summary Adjust an existing Organisation
|
|
213
|
+
*/
|
|
214
|
+
const usePatchOrganisation = (options, queryClient) => {
|
|
215
|
+
return (0, __tanstack_react_query.useMutation)(usePatchOrganisationMutationOptions(options), queryClient);
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* Before an Organisation can be deleted all its underlying **Units** must also be deleted, remembering that **Units** that have undeleted **Products** cannot be deleted.
|
|
219
|
+
|
|
220
|
+
You need admin rights to use this method
|
|
221
|
+
|
|
222
|
+
* @summary Deletes an Organisation
|
|
223
|
+
*/
|
|
224
|
+
const deleteOrganisation = (orgId, options) => {
|
|
225
|
+
return require_custom_instance.customInstance({
|
|
226
|
+
url: `/organisation/${orgId}`,
|
|
227
|
+
method: "DELETE"
|
|
228
|
+
}, options);
|
|
229
|
+
};
|
|
230
|
+
const useDeleteOrganisationMutationOptions = (options) => {
|
|
231
|
+
const mutationKey = ["deleteOrganisation"];
|
|
232
|
+
const { mutation: mutationOptions, request: requestOptions } = options ? options.mutation && "mutationKey" in options.mutation && options.mutation.mutationKey ? options : {
|
|
233
|
+
...options,
|
|
234
|
+
mutation: {
|
|
235
|
+
...options.mutation,
|
|
236
|
+
mutationKey
|
|
237
|
+
}
|
|
238
|
+
} : {
|
|
239
|
+
mutation: { mutationKey },
|
|
240
|
+
request: void 0
|
|
241
|
+
};
|
|
242
|
+
const mutationFn = (props) => {
|
|
243
|
+
const { orgId } = props ?? {};
|
|
244
|
+
return deleteOrganisation(orgId, requestOptions);
|
|
245
|
+
};
|
|
246
|
+
return require_options_mutator.mutationMutator({
|
|
247
|
+
...mutationOptions,
|
|
248
|
+
mutationFn
|
|
249
|
+
});
|
|
250
|
+
};
|
|
251
|
+
/**
|
|
252
|
+
* @summary Deletes an Organisation
|
|
253
|
+
*/
|
|
254
|
+
const useDeleteOrganisation = (options, queryClient) => {
|
|
255
|
+
return (0, __tanstack_react_query.useMutation)(useDeleteOrganisationMutationOptions(options), queryClient);
|
|
256
|
+
};
|
|
257
|
+
/**
|
|
258
|
+
* Gets the Default Organisation, a built-in Organisation used exclusively for **Personal Units**.
|
|
259
|
+
|
|
260
|
+
Any authorised user can see the Default Organisation.
|
|
261
|
+
|
|
262
|
+
* @summary Gets the Default Organisation
|
|
263
|
+
*/
|
|
264
|
+
const getDefaultOrganisation = (options, signal) => {
|
|
265
|
+
return require_custom_instance.customInstance({
|
|
266
|
+
url: `/default/organisation`,
|
|
267
|
+
method: "GET",
|
|
268
|
+
signal
|
|
269
|
+
}, options);
|
|
270
|
+
};
|
|
271
|
+
const getGetDefaultOrganisationQueryKey = () => {
|
|
272
|
+
return [`/default/organisation`];
|
|
273
|
+
};
|
|
274
|
+
const useGetDefaultOrganisationQueryOptions = (options) => {
|
|
275
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
276
|
+
const queryKey = queryOptions?.queryKey ?? getGetDefaultOrganisationQueryKey();
|
|
277
|
+
const queryFn = ({ signal }) => getDefaultOrganisation(requestOptions, signal);
|
|
278
|
+
return require_options_mutator.queryMutator({
|
|
279
|
+
...queryOptions,
|
|
280
|
+
queryKey,
|
|
281
|
+
queryFn
|
|
282
|
+
});
|
|
283
|
+
};
|
|
284
|
+
/**
|
|
285
|
+
* @summary Gets the Default Organisation
|
|
286
|
+
*/
|
|
287
|
+
function useGetDefaultOrganisation(options, queryClient) {
|
|
288
|
+
const queryOptions = useGetDefaultOrganisationQueryOptions(options);
|
|
289
|
+
const query = (0, __tanstack_react_query.useQuery)(queryOptions, queryClient);
|
|
290
|
+
query.queryKey = queryOptions.queryKey;
|
|
291
|
+
return query;
|
|
292
|
+
}
|
|
293
|
+
const useGetDefaultOrganisationSuspenseQueryOptions = (options) => {
|
|
294
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
295
|
+
const queryKey = queryOptions?.queryKey ?? getGetDefaultOrganisationQueryKey();
|
|
296
|
+
const queryFn = ({ signal }) => getDefaultOrganisation(requestOptions, signal);
|
|
297
|
+
return require_options_mutator.queryMutator({
|
|
298
|
+
...queryOptions,
|
|
299
|
+
queryKey,
|
|
300
|
+
queryFn
|
|
301
|
+
});
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* @summary Gets the Default Organisation
|
|
305
|
+
*/
|
|
306
|
+
function useGetDefaultOrganisationSuspense(options, queryClient) {
|
|
307
|
+
const queryOptions = useGetDefaultOrganisationSuspenseQueryOptions(options);
|
|
308
|
+
const query = (0, __tanstack_react_query.useSuspenseQuery)(queryOptions, queryClient);
|
|
309
|
+
query.queryKey = queryOptions.queryKey;
|
|
310
|
+
return query;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
//#endregion
|
|
314
|
+
exports.createOrganisation = createOrganisation;
|
|
315
|
+
exports.deleteOrganisation = deleteOrganisation;
|
|
316
|
+
exports.getDefaultOrganisation = getDefaultOrganisation;
|
|
317
|
+
exports.getGetDefaultOrganisationQueryKey = getGetDefaultOrganisationQueryKey;
|
|
318
|
+
exports.getGetOrganisationQueryKey = getGetOrganisationQueryKey;
|
|
319
|
+
exports.getGetOrganisationsQueryKey = getGetOrganisationsQueryKey;
|
|
320
|
+
exports.getOrganisation = getOrganisation;
|
|
321
|
+
exports.getOrganisations = getOrganisations;
|
|
322
|
+
exports.patchOrganisation = patchOrganisation;
|
|
323
|
+
exports.useCreateOrganisation = useCreateOrganisation;
|
|
324
|
+
exports.useCreateOrganisationMutationOptions = useCreateOrganisationMutationOptions;
|
|
325
|
+
exports.useDeleteOrganisation = useDeleteOrganisation;
|
|
326
|
+
exports.useDeleteOrganisationMutationOptions = useDeleteOrganisationMutationOptions;
|
|
327
|
+
exports.useGetDefaultOrganisation = useGetDefaultOrganisation;
|
|
328
|
+
exports.useGetDefaultOrganisationQueryOptions = useGetDefaultOrganisationQueryOptions;
|
|
329
|
+
exports.useGetDefaultOrganisationSuspense = useGetDefaultOrganisationSuspense;
|
|
330
|
+
exports.useGetDefaultOrganisationSuspenseQueryOptions = useGetDefaultOrganisationSuspenseQueryOptions;
|
|
331
|
+
exports.useGetOrganisation = useGetOrganisation;
|
|
332
|
+
exports.useGetOrganisationQueryOptions = useGetOrganisationQueryOptions;
|
|
333
|
+
exports.useGetOrganisationSuspense = useGetOrganisationSuspense;
|
|
334
|
+
exports.useGetOrganisationSuspenseQueryOptions = useGetOrganisationSuspenseQueryOptions;
|
|
335
|
+
exports.useGetOrganisations = useGetOrganisations;
|
|
336
|
+
exports.useGetOrganisationsQueryOptions = useGetOrganisationsQueryOptions;
|
|
337
|
+
exports.useGetOrganisationsSuspense = useGetOrganisationsSuspense;
|
|
338
|
+
exports.useGetOrganisationsSuspenseQueryOptions = useGetOrganisationsSuspenseQueryOptions;
|
|
339
|
+
exports.usePatchOrganisation = usePatchOrganisation;
|
|
340
|
+
exports.usePatchOrganisationMutationOptions = usePatchOrganisationMutationOptions;
|
|
341
|
+
//# sourceMappingURL=organisation.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organisation.cjs","names":["customInstance","queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisations>>>","queryMutator","mutationFn: MutationFunction<\n Awaited<ReturnType<typeof createOrganisation>>,\n { data: OrganisationPostBodyBody }\n >","mutationMutator","queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisation>>>","mutationFn: MutationFunction<\n Awaited<ReturnType<typeof patchOrganisation>>,\n { orgId: string; data: OrganisationPatchBodyBody }\n >","mutationFn: MutationFunction<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n { orgId: string }\n >","queryFn: QueryFunction<Awaited<ReturnType<typeof getDefaultOrganisation>>>"],"sources":["../../../src/api/organisation/organisation.ts"],"sourcesContent":["/**\n * Generated by orval v7.16.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.4\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 GetOrganisationsParams,\n OrganisationAllDetail,\n OrganisationGetDefaultResponse,\n OrganisationPatchBodyBody,\n OrganisationPostBodyBody,\n OrganisationPostResponse,\n OrganisationsGetResponse,\n} from \"../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 all the Organisations that you are a member of, or a specific Organisation by name.\n\nYou can see an Organisation if you are a member of it, the owner (creator) of it, or if you are an admin user.\n\n * @summary Gets Organisations\n */\nexport const getOrganisations = (\n params?: GetOrganisationsParams,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<OrganisationsGetResponse>(\n { url: `/organisation`, method: \"GET\", params, signal },\n options,\n );\n};\n\nexport const getGetOrganisationsQueryKey = (params?: GetOrganisationsParams) => {\n return [`/organisation`, ...(params ? [params] : [])] as const;\n};\n\nexport const useGetOrganisationsQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisations>>> = ({ signal }) =>\n getOrganisations(params, requestOptions, signal);\n\n const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });\n\n return customOptions as UseQueryOptions<\n Awaited<ReturnType<typeof getOrganisations>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetOrganisationsQueryResult = NonNullable<Awaited<ReturnType<typeof getOrganisations>>>;\nexport type GetOrganisationsQueryError = ErrorType<void | AsError>;\n\nexport function useGetOrganisations<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params: undefined | GetOrganisationsParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisations>>,\n TError,\n Awaited<ReturnType<typeof getOrganisations>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisations<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisations>>,\n TError,\n Awaited<ReturnType<typeof getOrganisations>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisations<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Organisations\n */\n\nexport function useGetOrganisations<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = useGetOrganisationsQueryOptions(params, 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 useGetOrganisationsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisations>>> = ({ signal }) =>\n getOrganisations(params, requestOptions, signal);\n\n const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });\n\n return customOptions as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getOrganisations>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetOrganisationsSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getOrganisations>>\n>;\nexport type GetOrganisationsSuspenseQueryError = ErrorType<void | AsError>;\n\nexport function useGetOrganisationsSuspense<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params: undefined | GetOrganisationsParams,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisationsSuspense<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisationsSuspense<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, 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 Organisations\n */\n\nexport function useGetOrganisationsSuspense<\n TData = Awaited<ReturnType<typeof getOrganisations>>,\n TError = ErrorType<void | AsError>,\n>(\n params?: GetOrganisationsParams,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisations>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = useGetOrganisationsSuspenseQueryOptions(params, 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 Organisation.\n\nThe **User** who creates the Organisation becomes the **Owner** of the Organisation. They are considered a *Member* (**User**) of the Organisation but are not present in the list of users, which a separate list of users explicitly added to the Organisation by the Owner or another Organisation User.\n\nYou need admin rights to use this method\n\n * @summary Create a new organisation\n */\nexport const createOrganisation = (\n organisationPostBodyBody: OrganisationPostBodyBody,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<OrganisationPostResponse>(\n {\n url: `/organisation`,\n method: \"POST\",\n headers: { \"Content-Type\": \"application/json\" },\n data: organisationPostBodyBody,\n signal,\n },\n options,\n );\n};\n\nexport const useCreateOrganisationMutationOptions = <\n TError = ErrorType<AsError | void>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof createOrganisation>>,\n TError,\n { data: OrganisationPostBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof createOrganisation>>,\n TError,\n { data: OrganisationPostBodyBody },\n TContext\n> => {\n const mutationKey = [\"createOrganisation\"];\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 createOrganisation>>,\n { data: OrganisationPostBodyBody }\n > = (props) => {\n const { data } = props ?? {};\n\n return createOrganisation(data, requestOptions);\n };\n\n const customOptions = mutationMutator({ ...mutationOptions, mutationFn });\n\n return customOptions;\n};\n\nexport type CreateOrganisationMutationResult = NonNullable<\n Awaited<ReturnType<typeof createOrganisation>>\n>;\nexport type CreateOrganisationMutationBody = OrganisationPostBodyBody;\nexport type CreateOrganisationMutationError = ErrorType<AsError | void>;\n\n/**\n * @summary Create a new organisation\n */\nexport const useCreateOrganisation = <TError = ErrorType<AsError | void>, TContext = unknown>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof createOrganisation>>,\n TError,\n { data: OrganisationPostBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof createOrganisation>>,\n TError,\n { data: OrganisationPostBodyBody },\n TContext\n> => {\n const mutationOptions = useCreateOrganisationMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\n/**\n * Gets an Organisation. To see the Organisation you need admin rights or need to be a member of the Organisation or are its *creator*.\n\nMembers of an Organisation's **Unit** do not have access to the Organisation.\n\n * @summary Gets an Organisation\n */\nexport const getOrganisation = (\n orgId: string,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<OrganisationAllDetail>(\n { url: `/organisation/${orgId}`, method: \"GET\", signal },\n options,\n );\n};\n\nexport const getGetOrganisationQueryKey = (orgId?: string) => {\n return [`/organisation/${orgId}`] as const;\n};\n\nexport const useGetOrganisationQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationQueryKey(orgId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisation>>> = ({ signal }) =>\n getOrganisation(orgId, requestOptions, signal);\n\n const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });\n\n return customOptions as UseQueryOptions<\n Awaited<ReturnType<typeof getOrganisation>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetOrganisationQueryResult = NonNullable<Awaited<ReturnType<typeof getOrganisation>>>;\nexport type GetOrganisationQueryError = ErrorType<void | AsError>;\n\nexport function useGetOrganisation<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisation>>,\n TError,\n Awaited<ReturnType<typeof getOrganisation>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisation<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getOrganisation>>,\n TError,\n Awaited<ReturnType<typeof getOrganisation>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisation<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets an Organisation\n */\n\nexport function useGetOrganisation<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = useGetOrganisationQueryOptions(orgId, 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 useGetOrganisationSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetOrganisationQueryKey(orgId);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getOrganisation>>> = ({ signal }) =>\n getOrganisation(orgId, requestOptions, signal);\n\n const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });\n\n return customOptions as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getOrganisation>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetOrganisationSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getOrganisation>>\n>;\nexport type GetOrganisationSuspenseQueryError = ErrorType<void | AsError>;\n\nexport function useGetOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, 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 an Organisation\n */\n\nexport function useGetOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n orgId: string,\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = useGetOrganisationSuspenseQueryOptions(orgId, 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 * Used to update existing Organisation. You can change an Organisation's **name** or its **default_product_privacy**.\n\nChanges to the default product privacy may conflict with those settings in any existing Units where the default product privacy of those existing units will be honoured. Any new Organisation value will only apply to new Units.\n\nYou have to be a member of the **Organisation**, its creator, or an administrator to patch an Organisation.\n\n * @summary Adjust an existing Organisation\n */\nexport const patchOrganisation = (\n orgId: string,\n organisationPatchBodyBody: OrganisationPatchBodyBody,\n options?: SecondParameter<typeof customInstance>,\n) => {\n return customInstance<void>(\n {\n url: `/organisation/${orgId}`,\n method: \"PATCH\",\n headers: { \"Content-Type\": \"application/json\" },\n data: organisationPatchBodyBody,\n },\n options,\n );\n};\n\nexport const usePatchOrganisationMutationOptions = <\n TError = ErrorType<void | AsError>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof patchOrganisation>>,\n TError,\n { orgId: string; data: OrganisationPatchBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof patchOrganisation>>,\n TError,\n { orgId: string; data: OrganisationPatchBodyBody },\n TContext\n> => {\n const mutationKey = [\"patchOrganisation\"];\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 patchOrganisation>>,\n { orgId: string; data: OrganisationPatchBodyBody }\n > = (props) => {\n const { orgId, data } = props ?? {};\n\n return patchOrganisation(orgId, data, requestOptions);\n };\n\n const customOptions = mutationMutator({ ...mutationOptions, mutationFn });\n\n return customOptions;\n};\n\nexport type PatchOrganisationMutationResult = NonNullable<\n Awaited<ReturnType<typeof patchOrganisation>>\n>;\nexport type PatchOrganisationMutationBody = OrganisationPatchBodyBody;\nexport type PatchOrganisationMutationError = ErrorType<void | AsError>;\n\n/**\n * @summary Adjust an existing Organisation\n */\nexport const usePatchOrganisation = <TError = ErrorType<void | AsError>, TContext = unknown>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof patchOrganisation>>,\n TError,\n { orgId: string; data: OrganisationPatchBodyBody },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof patchOrganisation>>,\n TError,\n { orgId: string; data: OrganisationPatchBodyBody },\n TContext\n> => {\n const mutationOptions = usePatchOrganisationMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\n/**\n * Before an Organisation can be deleted all its underlying **Units** must also be deleted, remembering that **Units** that have undeleted **Products** cannot be deleted.\n\nYou need admin rights to use this method\n\n * @summary Deletes an Organisation\n */\nexport const deleteOrganisation = (\n orgId: string,\n options?: SecondParameter<typeof customInstance>,\n) => {\n return customInstance<void>({ url: `/organisation/${orgId}`, method: \"DELETE\" }, options);\n};\n\nexport const useDeleteOrganisationMutationOptions = <\n TError = ErrorType<AsError | void>,\n TContext = unknown,\n>(options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n TError,\n { orgId: string },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}): UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n TError,\n { orgId: string },\n TContext\n> => {\n const mutationKey = [\"deleteOrganisation\"];\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 deleteOrganisation>>,\n { orgId: string }\n > = (props) => {\n const { orgId } = props ?? {};\n\n return deleteOrganisation(orgId, requestOptions);\n };\n\n const customOptions = mutationMutator({ ...mutationOptions, mutationFn });\n\n return customOptions;\n};\n\nexport type DeleteOrganisationMutationResult = NonNullable<\n Awaited<ReturnType<typeof deleteOrganisation>>\n>;\n\nexport type DeleteOrganisationMutationError = ErrorType<AsError | void>;\n\n/**\n * @summary Deletes an Organisation\n */\nexport const useDeleteOrganisation = <TError = ErrorType<AsError | void>, TContext = unknown>(\n options?: {\n mutation?: UseMutationOptions<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n TError,\n { orgId: string },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseMutationResult<\n Awaited<ReturnType<typeof deleteOrganisation>>,\n TError,\n { orgId: string },\n TContext\n> => {\n const mutationOptions = useDeleteOrganisationMutationOptions(options);\n\n return useMutation(mutationOptions, queryClient);\n};\n/**\n * Gets the Default Organisation, a built-in Organisation used exclusively for **Personal Units**.\n\nAny authorised user can see the Default Organisation.\n\n * @summary Gets the Default Organisation\n */\nexport const getDefaultOrganisation = (\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<OrganisationGetDefaultResponse>(\n { url: `/default/organisation`, method: \"GET\", signal },\n options,\n );\n};\n\nexport const getGetDefaultOrganisationQueryKey = () => {\n return [`/default/organisation`] as const;\n};\n\nexport const useGetDefaultOrganisationQueryOptions = <\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetDefaultOrganisationQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getDefaultOrganisation>>> = ({ signal }) =>\n getDefaultOrganisation(requestOptions, signal);\n\n const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });\n\n return customOptions as UseQueryOptions<\n Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetDefaultOrganisationQueryResult = NonNullable<\n Awaited<ReturnType<typeof getDefaultOrganisation>>\n>;\nexport type GetDefaultOrganisationQueryError = ErrorType<void | AsError>;\n\nexport function useGetDefaultOrganisation<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options: {\n query: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n > &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError,\n Awaited<ReturnType<typeof getDefaultOrganisation>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetDefaultOrganisation<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n > &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError,\n Awaited<ReturnType<typeof getDefaultOrganisation>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetDefaultOrganisation<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, 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 Default Organisation\n */\n\nexport function useGetDefaultOrganisation<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = useGetDefaultOrganisationQueryOptions(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 useGetDefaultOrganisationSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetDefaultOrganisationQueryKey();\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getDefaultOrganisation>>> = ({ signal }) =>\n getDefaultOrganisation(requestOptions, signal);\n\n const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });\n\n return customOptions as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetDefaultOrganisationSuspenseQueryResult = NonNullable<\n Awaited<ReturnType<typeof getDefaultOrganisation>>\n>;\nexport type GetDefaultOrganisationSuspenseQueryError = ErrorType<void | AsError>;\n\nexport function useGetDefaultOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options: {\n query: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetDefaultOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetDefaultOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, 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 Default Organisation\n */\n\nexport function useGetDefaultOrganisationSuspense<\n TData = Awaited<ReturnType<typeof getDefaultOrganisation>>,\n TError = ErrorType<void | AsError>,\n>(\n options?: {\n query?: Partial<\n UseSuspenseQueryOptions<Awaited<ReturnType<typeof getDefaultOrganisation>>, TError, TData>\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = useGetDefaultOrganisationSuspenseQueryOptions(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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAqDA,MAAa,oBACX,QACA,SACA,WACG;AACH,QAAOA,uCACL;EAAE,KAAK;EAAiB,QAAQ;EAAO;EAAQ;EAAQ,EACvD,QACD;;AAGH,MAAa,+BAA+B,WAAoC;AAC9E,QAAO,CAAC,iBAAiB,GAAI,SAAS,CAAC,OAAO,GAAG,EAAE,CAAE;;AAGvD,MAAa,mCAIX,QACA,YAIG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,EAAE;CAEtE,MAAM,WAAW,cAAc,YAAY,4BAA4B,OAAO;CAE9E,MAAMC,WAAwE,EAAE,aAC9E,iBAAiB,QAAQ,gBAAgB,OAAO;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