@squonk/account-server-client 0.1.27-rc.1 → 0.1.29-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{chunk-GWBPVOL2.js → chunk-6EEIAH4R.js} +23 -2
- package/chunk-6EEIAH4R.js.map +1 -0
- package/chunk-NGBTCJWS.cjs +46 -0
- package/chunk-NGBTCJWS.cjs.map +1 -0
- package/{account-server-api.schemas-e6c5f956.d.ts → custom-instance-13412a15.d.ts} +19 -1
- package/index.cjs +5 -21
- package/index.cjs.map +1 -1
- package/index.d.ts +2 -20
- package/index.js +5 -21
- package/index.js.map +1 -1
- package/organisation/organisation.cjs +35 -30
- package/organisation/organisation.cjs.map +1 -1
- package/organisation/organisation.d.ts +33 -32
- package/organisation/organisation.js +42 -37
- package/organisation/organisation.js.map +1 -1
- package/package.json +1 -1
- package/product/product.cjs +65 -53
- package/product/product.cjs.map +1 -1
- package/product/product.d.ts +55 -54
- package/product/product.js +76 -64
- package/product/product.js.map +1 -1
- package/service/service.cjs +21 -23
- package/service/service.cjs.map +1 -1
- package/service/service.d.ts +18 -17
- package/service/service.js +23 -25
- package/service/service.js.map +1 -1
- package/src/organisation/organisation.ts +93 -69
- package/src/product/product.ts +165 -146
- package/src/service/service.ts +59 -57
- package/src/state/state.ts +34 -28
- package/src/unit/unit.ts +145 -130
- package/src/user/user.ts +148 -120
- package/state/state.cjs +12 -12
- package/state/state.cjs.map +1 -1
- package/state/state.d.ts +11 -10
- package/state/state.js +13 -13
- package/state/state.js.map +1 -1
- package/unit/unit.cjs +55 -50
- package/unit/unit.cjs.map +1 -1
- package/unit/unit.d.ts +54 -53
- package/unit/unit.js +66 -61
- package/unit/unit.js.map +1 -1
- package/user/user.cjs +50 -50
- package/user/user.cjs.map +1 -1
- package/user/user.d.ts +53 -52
- package/user/user.js +61 -61
- package/user/user.js.map +1 -1
- package/chunk-GWBPVOL2.js.map +0 -1
- package/chunk-N3RLW53G.cjs +0 -25
- package/chunk-N3RLW53G.cjs.map +0 -1
package/user/user.js
CHANGED
|
@@ -1,117 +1,117 @@
|
|
|
1
1
|
import {
|
|
2
|
-
__spreadValues
|
|
3
|
-
|
|
2
|
+
__spreadValues,
|
|
3
|
+
customInstance
|
|
4
|
+
} from "../chunk-6EEIAH4R.js";
|
|
4
5
|
|
|
5
6
|
// src/user/user.ts
|
|
6
|
-
import axios from "axios";
|
|
7
7
|
import {
|
|
8
8
|
useQuery,
|
|
9
9
|
useMutation
|
|
10
10
|
} from "react-query";
|
|
11
|
-
var
|
|
12
|
-
return
|
|
11
|
+
var getUserAccount = (options) => {
|
|
12
|
+
return customInstance({ url: `/user/account`, method: "get" }, options);
|
|
13
13
|
};
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
const { query: queryOptions,
|
|
17
|
-
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ??
|
|
18
|
-
const queryFn = () =>
|
|
14
|
+
var getGetUserAccountQueryKey = () => [`/user/account`];
|
|
15
|
+
var useGetUserAccount = (options) => {
|
|
16
|
+
const { query: queryOptions, request: requestOptions } = options || {};
|
|
17
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetUserAccountQueryKey();
|
|
18
|
+
const queryFn = () => getUserAccount(requestOptions);
|
|
19
19
|
const query = useQuery(queryKey, queryFn, queryOptions);
|
|
20
20
|
return __spreadValues({
|
|
21
21
|
queryKey
|
|
22
22
|
}, query);
|
|
23
23
|
};
|
|
24
|
-
var
|
|
25
|
-
return
|
|
24
|
+
var getOrganisationUsers = (orgId, options) => {
|
|
25
|
+
return customInstance({ url: `/organisation/${orgId}/user`, method: "get" }, options);
|
|
26
26
|
};
|
|
27
|
-
var
|
|
27
|
+
var getGetOrganisationUsersQueryKey = (orgId) => [
|
|
28
28
|
`/organisation/${orgId}/user`
|
|
29
29
|
];
|
|
30
|
-
var
|
|
31
|
-
const { query: queryOptions,
|
|
32
|
-
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ??
|
|
33
|
-
const queryFn = () =>
|
|
30
|
+
var useGetOrganisationUsers = (orgId, options) => {
|
|
31
|
+
const { query: queryOptions, request: requestOptions } = options || {};
|
|
32
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetOrganisationUsersQueryKey(orgId);
|
|
33
|
+
const queryFn = () => getOrganisationUsers(orgId, requestOptions);
|
|
34
34
|
const query = useQuery(queryKey, queryFn, __spreadValues({ enabled: !!orgId }, queryOptions));
|
|
35
35
|
return __spreadValues({
|
|
36
36
|
queryKey
|
|
37
37
|
}, query);
|
|
38
38
|
};
|
|
39
|
-
var
|
|
40
|
-
return
|
|
39
|
+
var addOrganisationUser = (orgId, userId, options) => {
|
|
40
|
+
return customInstance({ url: `/organisation/${orgId}/user/${userId}`, method: "put" }, options);
|
|
41
41
|
};
|
|
42
|
-
var
|
|
43
|
-
const { mutation: mutationOptions,
|
|
42
|
+
var useAddOrganisationUser = (options) => {
|
|
43
|
+
const { mutation: mutationOptions, request: requestOptions } = options || {};
|
|
44
44
|
const mutationFn = (props) => {
|
|
45
45
|
const { orgId, userId } = props || {};
|
|
46
|
-
return
|
|
46
|
+
return addOrganisationUser(orgId, userId, requestOptions);
|
|
47
47
|
};
|
|
48
48
|
return useMutation(mutationFn, mutationOptions);
|
|
49
49
|
};
|
|
50
|
-
var
|
|
51
|
-
return
|
|
50
|
+
var deleteOrganisationUser = (orgId, userId, options) => {
|
|
51
|
+
return customInstance({ url: `/organisation/${orgId}/user/${userId}`, method: "delete" }, options);
|
|
52
52
|
};
|
|
53
|
-
var
|
|
54
|
-
const { mutation: mutationOptions,
|
|
53
|
+
var useDeleteOrganisationUser = (options) => {
|
|
54
|
+
const { mutation: mutationOptions, request: requestOptions } = options || {};
|
|
55
55
|
const mutationFn = (props) => {
|
|
56
56
|
const { orgId, userId } = props || {};
|
|
57
|
-
return
|
|
57
|
+
return deleteOrganisationUser(orgId, userId, requestOptions);
|
|
58
58
|
};
|
|
59
59
|
return useMutation(mutationFn, mutationOptions);
|
|
60
60
|
};
|
|
61
|
-
var
|
|
62
|
-
return
|
|
61
|
+
var getOrganisationUnitUsers = (unitId, options) => {
|
|
62
|
+
return customInstance({ url: `/unit/${unitId}/user`, method: "get" }, options);
|
|
63
63
|
};
|
|
64
|
-
var
|
|
64
|
+
var getGetOrganisationUnitUsersQueryKey = (unitId) => [
|
|
65
65
|
`/unit/${unitId}/user`
|
|
66
66
|
];
|
|
67
|
-
var
|
|
68
|
-
const { query: queryOptions,
|
|
69
|
-
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ??
|
|
70
|
-
const queryFn = () =>
|
|
67
|
+
var useGetOrganisationUnitUsers = (unitId, options) => {
|
|
68
|
+
const { query: queryOptions, request: requestOptions } = options || {};
|
|
69
|
+
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetOrganisationUnitUsersQueryKey(unitId);
|
|
70
|
+
const queryFn = () => getOrganisationUnitUsers(unitId, requestOptions);
|
|
71
71
|
const query = useQuery(queryKey, queryFn, __spreadValues({ enabled: !!unitId }, queryOptions));
|
|
72
72
|
return __spreadValues({
|
|
73
73
|
queryKey
|
|
74
74
|
}, query);
|
|
75
75
|
};
|
|
76
|
-
var
|
|
77
|
-
return
|
|
76
|
+
var addOrganisationUnitUser = (unitId, userId, options) => {
|
|
77
|
+
return customInstance({ url: `/unit/${unitId}/user/${userId}`, method: "put" }, options);
|
|
78
78
|
};
|
|
79
|
-
var
|
|
80
|
-
const { mutation: mutationOptions,
|
|
79
|
+
var useAddOrganisationUnitUser = (options) => {
|
|
80
|
+
const { mutation: mutationOptions, request: requestOptions } = options || {};
|
|
81
81
|
const mutationFn = (props) => {
|
|
82
82
|
const { unitId, userId } = props || {};
|
|
83
|
-
return
|
|
83
|
+
return addOrganisationUnitUser(unitId, userId, requestOptions);
|
|
84
84
|
};
|
|
85
85
|
return useMutation(mutationFn, mutationOptions);
|
|
86
86
|
};
|
|
87
|
-
var
|
|
88
|
-
return
|
|
87
|
+
var deleteOrganisationUnitUser = (unitId, userId, options) => {
|
|
88
|
+
return customInstance({ url: `/unit/${unitId}/user/${userId}`, method: "delete" }, options);
|
|
89
89
|
};
|
|
90
|
-
var
|
|
91
|
-
const { mutation: mutationOptions,
|
|
90
|
+
var useDeleteOrganisationUnitUser = (options) => {
|
|
91
|
+
const { mutation: mutationOptions, request: requestOptions } = options || {};
|
|
92
92
|
const mutationFn = (props) => {
|
|
93
93
|
const { unitId, userId } = props || {};
|
|
94
|
-
return
|
|
94
|
+
return deleteOrganisationUnitUser(unitId, userId, requestOptions);
|
|
95
95
|
};
|
|
96
96
|
return useMutation(mutationFn, mutationOptions);
|
|
97
97
|
};
|
|
98
98
|
export {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
99
|
+
addOrganisationUnitUser,
|
|
100
|
+
addOrganisationUser,
|
|
101
|
+
deleteOrganisationUnitUser,
|
|
102
|
+
deleteOrganisationUser,
|
|
103
|
+
getGetOrganisationUnitUsersQueryKey,
|
|
104
|
+
getGetOrganisationUsersQueryKey,
|
|
105
|
+
getGetUserAccountQueryKey,
|
|
106
|
+
getOrganisationUnitUsers,
|
|
107
|
+
getOrganisationUsers,
|
|
108
|
+
getUserAccount,
|
|
109
|
+
useAddOrganisationUnitUser,
|
|
110
|
+
useAddOrganisationUser,
|
|
111
|
+
useDeleteOrganisationUnitUser,
|
|
112
|
+
useDeleteOrganisationUser,
|
|
113
|
+
useGetOrganisationUnitUsers,
|
|
114
|
+
useGetOrganisationUsers,
|
|
115
|
+
useGetUserAccount
|
|
116
116
|
};
|
|
117
117
|
//# sourceMappingURL=user.js.map
|
package/user/user.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/user/user.ts"],"sourcesContent":["/**\n * Generated by orval v6.7.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 **Products**, **Organisations**, **Units** and **Users**.\n\n * OpenAPI spec version: 0.1\n */\nimport axios, { AxiosRequestConfig, AxiosResponse, AxiosError } from \"axios\";\nimport {\n useQuery,\n useMutation,\n UseQueryOptions,\n UseMutationOptions,\n QueryFunction,\n MutationFunction,\n UseQueryResult,\n QueryKey,\n} from \"react-query\";\nimport type {\n UserAccountGetResponse,\n AsError,\n UsersGetResponse,\n} from \"../account-server-api.schemas\";\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype AsyncReturnType<T extends (...args: any) => Promise<any>> = T extends (\n ...args: any\n) => Promise<infer R>\n ? R\n : any;\n\n/**\n * Returns a summary of your account\n\n * @summary Get information about your account\n */\nexport const appApiUserGetAccount = (\n options?: AxiosRequestConfig\n): Promise<AxiosResponse<UserAccountGetResponse>> => {\n return axios.get(`/user/account`, options);\n};\n\nexport const getAppApiUserGetAccountQueryKey = () => [`/user/account`];\n\nexport type AppApiUserGetAccountQueryResult = NonNullable<\n AsyncReturnType<typeof appApiUserGetAccount>\n>;\nexport type AppApiUserGetAccountQueryError = AxiosError<void | AsError>;\n\nexport const useAppApiUserGetAccount = <\n TData = AsyncReturnType<typeof appApiUserGetAccount>,\n TError = AxiosError<void | AsError>\n>(options?: {\n query?: UseQueryOptions<\n AsyncReturnType<typeof appApiUserGetAccount>,\n TError,\n TData\n >;\n axios?: AxiosRequestConfig;\n}): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n const { query: queryOptions, axios: axiosOptions } = options || {};\n\n const queryKey = queryOptions?.queryKey ?? getAppApiUserGetAccountQueryKey();\n\n const queryFn: QueryFunction<\n AsyncReturnType<typeof appApiUserGetAccount>\n > = () => appApiUserGetAccount(axiosOptions);\n\n const query = useQuery<\n AsyncReturnType<typeof appApiUserGetAccount>,\n TError,\n TData\n >(queryKey, queryFn, queryOptions);\n\n return {\n queryKey,\n ...query,\n };\n};\n\n/**\n * Gets users in an Organisation. You have to be in the Organisation or an Admin user to use this endpoint\n\n * @summary Gets users in an organisation\n */\nexport const appApiUserOrgGetUsers = (\n orgId: string,\n options?: AxiosRequestConfig\n): Promise<AxiosResponse<UsersGetResponse>> => {\n return axios.get(`/organisation/${orgId}/user`, options);\n};\n\nexport const getAppApiUserOrgGetUsersQueryKey = (orgId: string) => [\n `/organisation/${orgId}/user`,\n];\n\nexport type AppApiUserOrgGetUsersQueryResult = NonNullable<\n AsyncReturnType<typeof appApiUserOrgGetUsers>\n>;\nexport type AppApiUserOrgGetUsersQueryError = AxiosError<AsError | void>;\n\nexport const useAppApiUserOrgGetUsers = <\n TData = AsyncReturnType<typeof appApiUserOrgGetUsers>,\n TError = AxiosError<AsError | void>\n>(\n orgId: string,\n options?: {\n query?: UseQueryOptions<\n AsyncReturnType<typeof appApiUserOrgGetUsers>,\n TError,\n TData\n >;\n axios?: AxiosRequestConfig;\n }\n): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n const { query: queryOptions, axios: axiosOptions } = options || {};\n\n const queryKey =\n queryOptions?.queryKey ?? getAppApiUserOrgGetUsersQueryKey(orgId);\n\n const queryFn: QueryFunction<\n AsyncReturnType<typeof appApiUserOrgGetUsers>\n > = () => appApiUserOrgGetUsers(orgId, axiosOptions);\n\n const query = useQuery<\n AsyncReturnType<typeof appApiUserOrgGetUsers>,\n TError,\n TData\n >(queryKey, queryFn, { enabled: !!orgId, ...queryOptions });\n\n return {\n queryKey,\n ...query,\n };\n};\n\n/**\n * Adds a user to an organisation. You have to be in the Organisation or an Admin user to use this endpoint\n\n * @summary Adds a user to an organisation\n */\nexport const appApiUserOrgUserPut = (\n orgId: string,\n userId: string,\n options?: AxiosRequestConfig\n): Promise<AxiosResponse<void>> => {\n return axios.put(`/organisation/${orgId}/user/${userId}`, undefined, options);\n};\n\nexport type AppApiUserOrgUserPutMutationResult = NonNullable<\n AsyncReturnType<typeof appApiUserOrgUserPut>\n>;\n\nexport type AppApiUserOrgUserPutMutationError = AxiosError<AsError>;\n\nexport const useAppApiUserOrgUserPut = <\n TError = AxiosError<AsError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n AsyncReturnType<typeof appApiUserOrgUserPut>,\n TError,\n { orgId: string; userId: string },\n TContext\n >;\n axios?: AxiosRequestConfig;\n}) => {\n const { mutation: mutationOptions, axios: axiosOptions } = options || {};\n\n const mutationFn: MutationFunction<\n AsyncReturnType<typeof appApiUserOrgUserPut>,\n { orgId: string; userId: string }\n > = (props) => {\n const { orgId, userId } = props || {};\n\n return appApiUserOrgUserPut(orgId, userId, axiosOptions);\n };\n\n return useMutation<\n AsyncReturnType<typeof appApiUserOrgUserPut>,\n TError,\n { orgId: string; userId: string },\n TContext\n >(mutationFn, mutationOptions);\n};\n/**\n * Removes a user from an organisation. You have to be in the Organisation or an Admin user to use this endpoint\n\n * @summary Deletes a user from an organisation\n */\nexport const appApiUserOrgUserDelete = (\n orgId: string,\n userId: string,\n options?: AxiosRequestConfig\n): Promise<AxiosResponse<void>> => {\n return axios.delete(`/organisation/${orgId}/user/${userId}`, options);\n};\n\nexport type AppApiUserOrgUserDeleteMutationResult = NonNullable<\n AsyncReturnType<typeof appApiUserOrgUserDelete>\n>;\n\nexport type AppApiUserOrgUserDeleteMutationError = AxiosError<AsError>;\n\nexport const useAppApiUserOrgUserDelete = <\n TError = AxiosError<AsError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n AsyncReturnType<typeof appApiUserOrgUserDelete>,\n TError,\n { orgId: string; userId: string },\n TContext\n >;\n axios?: AxiosRequestConfig;\n}) => {\n const { mutation: mutationOptions, axios: axiosOptions } = options || {};\n\n const mutationFn: MutationFunction<\n AsyncReturnType<typeof appApiUserOrgUserDelete>,\n { orgId: string; userId: string }\n > = (props) => {\n const { orgId, userId } = props || {};\n\n return appApiUserOrgUserDelete(orgId, userId, axiosOptions);\n };\n\n return useMutation<\n AsyncReturnType<typeof appApiUserOrgUserDelete>,\n TError,\n { orgId: string; userId: string },\n TContext\n >(mutationFn, mutationOptions);\n};\n/**\n * Gets users in an Organisational Unit. You have to be in the Organisation or Unit or an Admin user to use this endpoint\n\n * @summary Gets users in an Organisational Unit\n */\nexport const appApiUserGetUnitUsers = (\n unitId: string,\n options?: AxiosRequestConfig\n): Promise<AxiosResponse<UsersGetResponse>> => {\n return axios.get(`/unit/${unitId}/user`, options);\n};\n\nexport const getAppApiUserGetUnitUsersQueryKey = (unitId: string) => [\n `/unit/${unitId}/user`,\n];\n\nexport type AppApiUserGetUnitUsersQueryResult = NonNullable<\n AsyncReturnType<typeof appApiUserGetUnitUsers>\n>;\nexport type AppApiUserGetUnitUsersQueryError = AxiosError<AsError | void>;\n\nexport const useAppApiUserGetUnitUsers = <\n TData = AsyncReturnType<typeof appApiUserGetUnitUsers>,\n TError = AxiosError<AsError | void>\n>(\n unitId: string,\n options?: {\n query?: UseQueryOptions<\n AsyncReturnType<typeof appApiUserGetUnitUsers>,\n TError,\n TData\n >;\n axios?: AxiosRequestConfig;\n }\n): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n const { query: queryOptions, axios: axiosOptions } = options || {};\n\n const queryKey =\n queryOptions?.queryKey ?? getAppApiUserGetUnitUsersQueryKey(unitId);\n\n const queryFn: QueryFunction<\n AsyncReturnType<typeof appApiUserGetUnitUsers>\n > = () => appApiUserGetUnitUsers(unitId, axiosOptions);\n\n const query = useQuery<\n AsyncReturnType<typeof appApiUserGetUnitUsers>,\n TError,\n TData\n >(queryKey, queryFn, { enabled: !!unitId, ...queryOptions });\n\n return {\n queryKey,\n ...query,\n };\n};\n\n/**\n * Adds a user to an Organisational Unit.\n\nUsers cannot be added to **Independent Units** (Units that are part of the ***Default** Organisation).\n\nYou have to be in the Organisation or Unit or an Admin user to use this endpoint\n\n * @summary Adds a user to an Organisational Unit\n */\nexport const appApiUserUnitUserPut = (\n unitId: string,\n userId: string,\n options?: AxiosRequestConfig\n): Promise<AxiosResponse<void>> => {\n return axios.put(`/unit/${unitId}/user/${userId}`, undefined, options);\n};\n\nexport type AppApiUserUnitUserPutMutationResult = NonNullable<\n AsyncReturnType<typeof appApiUserUnitUserPut>\n>;\n\nexport type AppApiUserUnitUserPutMutationError = AxiosError<AsError>;\n\nexport const useAppApiUserUnitUserPut = <\n TError = AxiosError<AsError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n AsyncReturnType<typeof appApiUserUnitUserPut>,\n TError,\n { unitId: string; userId: string },\n TContext\n >;\n axios?: AxiosRequestConfig;\n}) => {\n const { mutation: mutationOptions, axios: axiosOptions } = options || {};\n\n const mutationFn: MutationFunction<\n AsyncReturnType<typeof appApiUserUnitUserPut>,\n { unitId: string; userId: string }\n > = (props) => {\n const { unitId, userId } = props || {};\n\n return appApiUserUnitUserPut(unitId, userId, axiosOptions);\n };\n\n return useMutation<\n AsyncReturnType<typeof appApiUserUnitUserPut>,\n TError,\n { unitId: string; userId: string },\n TContext\n >(mutationFn, mutationOptions);\n};\n/**\n * Removes a user from an Organisational Unit.\n\nUsers cannot be removed from **Independent Units** (Units that are part of the ***Default** Organisation).\n\nYou have to be in the Organisation or Unit or an Admin user to use this endpoint\n\n * @summary Deletes a user from an Organisational Unit\n */\nexport const appApiUserUnitUserDelete = (\n unitId: string,\n userId: string,\n options?: AxiosRequestConfig\n): Promise<AxiosResponse<void>> => {\n return axios.delete(`/unit/${unitId}/user/${userId}`, options);\n};\n\nexport type AppApiUserUnitUserDeleteMutationResult = NonNullable<\n AsyncReturnType<typeof appApiUserUnitUserDelete>\n>;\n\nexport type AppApiUserUnitUserDeleteMutationError = AxiosError<AsError>;\n\nexport const useAppApiUserUnitUserDelete = <\n TError = AxiosError<AsError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n AsyncReturnType<typeof appApiUserUnitUserDelete>,\n TError,\n { unitId: string; userId: string },\n TContext\n >;\n axios?: AxiosRequestConfig;\n}) => {\n const { mutation: mutationOptions, axios: axiosOptions } = options || {};\n\n const mutationFn: MutationFunction<\n AsyncReturnType<typeof appApiUserUnitUserDelete>,\n { unitId: string; userId: string }\n > = (props) => {\n const { unitId, userId } = props || {};\n\n return appApiUserUnitUserDelete(unitId, userId, axiosOptions);\n };\n\n return useMutation<\n AsyncReturnType<typeof appApiUserUnitUserDelete>,\n TError,\n { unitId: string; userId: string },\n TContext\n >(mutationFn, mutationOptions);\n};\n"],"mappings":";;;;;AAUA;AACA;AAAA;AAAA;AAAA;AA4BO,IAAM,uBAAuB,CAClC,YACmD;AACnD,SAAO,MAAM,IAAI,iBAAiB,OAAO;AAC3C;AAEO,IAAM,kCAAkC,MAAM,CAAC,eAAe;AAO9D,IAAM,0BAA0B,CAGrC,YAO4D;AAC5D,QAAM,EAAE,OAAO,cAAc,OAAO,iBAAiB,WAAW,CAAC;AAEjE,QAAM,WAAW,8CAAc,aAAY,gCAAgC;AAE3E,QAAM,UAEF,MAAM,qBAAqB,YAAY;AAE3C,QAAM,QAAQ,SAIZ,UAAU,SAAS,YAAY;AAEjC,SAAO;AAAA,IACL;AAAA,KACG;AAEP;AAOO,IAAM,wBAAwB,CACnC,OACA,YAC6C;AAC7C,SAAO,MAAM,IAAI,iBAAiB,cAAc,OAAO;AACzD;AAEO,IAAM,mCAAmC,CAAC,UAAkB;AAAA,EACjE,iBAAiB;AACnB;AAOO,IAAM,2BAA2B,CAItC,OACA,YAQ2D;AAC3D,QAAM,EAAE,OAAO,cAAc,OAAO,iBAAiB,WAAW,CAAC;AAEjE,QAAM,WACJ,8CAAc,aAAY,iCAAiC,KAAK;AAElE,QAAM,UAEF,MAAM,sBAAsB,OAAO,YAAY;AAEnD,QAAM,QAAQ,SAIZ,UAAU,SAAS,iBAAE,SAAS,CAAC,CAAC,SAAU,aAAc;AAE1D,SAAO;AAAA,IACL;AAAA,KACG;AAEP;AAOO,IAAM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AAe,UAAU,QAAW,OAAO;AACvE;AAQO,IAAM,2BAA2B,CAGtC,YAQI;AACJ,QAAM,EAAE,UAAU,iBAAiB,OAAO,iBAAiB,WAAW,CAAC;AAEvE,QAAM,aAGF,CAAC,UAAU;AACb,UAAM,EAAE,QAAQ,WAAW,SAAS,CAAC;AAErC,WAAO,sBAAsB,QAAQ,QAAQ,YAAY;AAAA,EAC3D;AAEA,SAAO,YAKL,YAAY,eAAe;AAC/B;AAUO,IAAM,2BAA2B,CACtC,QACA,QACA,YACiC;AACjC,SAAO,MAAM,OAAO,SAAS,eAAe,UAAU,OAAO;AAC/D;AAQO,IAAM,8BAA8B,CAGzC,YAQI;AACJ,QAAM,EAAE,UAAU,iBAAiB,OAAO,iBAAiB,WAAW,CAAC;AAEvE,QAAM,aAGF,CAAC,UAAU;AACb,UAAM,EAAE,QAAQ,WAAW,SAAS,CAAC;AAErC,WAAO,yBAAyB,QAAQ,QAAQ,YAAY;AAAA,EAC9D;AAEA,SAAO,YAKL,YAAY,eAAe;AAC/B;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../../src/user/user.ts"],"sourcesContent":["/**\n * Generated by orval v6.7.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 **Products**, **Organisations**, **Units** and **Users**.\n\n * OpenAPI spec version: 0.1\n */\nimport {\n useQuery,\n useMutation,\n UseQueryOptions,\n UseMutationOptions,\n QueryFunction,\n MutationFunction,\n UseQueryResult,\n QueryKey,\n} from \"react-query\";\nimport type {\n UserAccountGetResponse,\n AsError,\n UsersGetResponse,\n} from \"../account-server-api.schemas\";\nimport { customInstance, ErrorType } from \".././custom-instance\";\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype AsyncReturnType<T extends (...args: any) => Promise<any>> = T extends (\n ...args: any\n) => Promise<infer R>\n ? R\n : any;\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype SecondParameter<T extends (...args: any) => any> = T extends (\n config: any,\n args: infer P\n) => any\n ? P\n : never;\n\n/**\n * Returns a summary of your account\n\n * @summary Get information about your account\n */\nexport const getUserAccount = (\n options?: SecondParameter<typeof customInstance>\n) => {\n return customInstance<UserAccountGetResponse>(\n { url: `/user/account`, method: \"get\" },\n options\n );\n};\n\nexport const getGetUserAccountQueryKey = () => [`/user/account`];\n\nexport type GetUserAccountQueryResult = NonNullable<\n AsyncReturnType<typeof getUserAccount>\n>;\nexport type GetUserAccountQueryError = ErrorType<void | AsError>;\n\nexport const useGetUserAccount = <\n TData = AsyncReturnType<typeof getUserAccount>,\n TError = ErrorType<void | AsError>\n>(options?: {\n query?: UseQueryOptions<\n AsyncReturnType<typeof getUserAccount>,\n TError,\n TData\n >;\n request?: SecondParameter<typeof customInstance>;\n}): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n const { query: queryOptions, request: requestOptions } = options || {};\n\n const queryKey = queryOptions?.queryKey ?? getGetUserAccountQueryKey();\n\n const queryFn: QueryFunction<AsyncReturnType<typeof getUserAccount>> = () =>\n getUserAccount(requestOptions);\n\n const query = useQuery<AsyncReturnType<typeof getUserAccount>, TError, TData>(\n queryKey,\n queryFn,\n queryOptions\n );\n\n return {\n queryKey,\n ...query,\n };\n};\n\n/**\n * Gets users in an Organisation. You have to be in the Organisation or an Admin user to use this endpoint\n\n * @summary Gets users in an organisation\n */\nexport const getOrganisationUsers = (\n orgId: string,\n options?: SecondParameter<typeof customInstance>\n) => {\n return customInstance<UsersGetResponse>(\n { url: `/organisation/${orgId}/user`, method: \"get\" },\n options\n );\n};\n\nexport const getGetOrganisationUsersQueryKey = (orgId: string) => [\n `/organisation/${orgId}/user`,\n];\n\nexport type GetOrganisationUsersQueryResult = NonNullable<\n AsyncReturnType<typeof getOrganisationUsers>\n>;\nexport type GetOrganisationUsersQueryError = ErrorType<AsError | void>;\n\nexport const useGetOrganisationUsers = <\n TData = AsyncReturnType<typeof getOrganisationUsers>,\n TError = ErrorType<AsError | void>\n>(\n orgId: string,\n options?: {\n query?: UseQueryOptions<\n AsyncReturnType<typeof getOrganisationUsers>,\n TError,\n TData\n >;\n request?: SecondParameter<typeof customInstance>;\n }\n): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n const { query: queryOptions, request: requestOptions } = options || {};\n\n const queryKey =\n queryOptions?.queryKey ?? getGetOrganisationUsersQueryKey(orgId);\n\n const queryFn: QueryFunction<\n AsyncReturnType<typeof getOrganisationUsers>\n > = () => getOrganisationUsers(orgId, requestOptions);\n\n const query = useQuery<\n AsyncReturnType<typeof getOrganisationUsers>,\n TError,\n TData\n >(queryKey, queryFn, { enabled: !!orgId, ...queryOptions });\n\n return {\n queryKey,\n ...query,\n };\n};\n\n/**\n * Adds a user to an organisation. You have to be in the Organisation or an Admin user to use this endpoint\n\n * @summary Adds a user to an organisation\n */\nexport const addOrganisationUser = (\n orgId: string,\n userId: string,\n options?: SecondParameter<typeof customInstance>\n) => {\n return customInstance<void>(\n { url: `/organisation/${orgId}/user/${userId}`, method: \"put\" },\n options\n );\n};\n\nexport type AddOrganisationUserMutationResult = NonNullable<\n AsyncReturnType<typeof addOrganisationUser>\n>;\n\nexport type AddOrganisationUserMutationError = ErrorType<AsError>;\n\nexport const useAddOrganisationUser = <\n TError = ErrorType<AsError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n AsyncReturnType<typeof addOrganisationUser>,\n TError,\n { orgId: string; userId: string },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const { mutation: mutationOptions, request: requestOptions } = options || {};\n\n const mutationFn: MutationFunction<\n AsyncReturnType<typeof addOrganisationUser>,\n { orgId: string; userId: string }\n > = (props) => {\n const { orgId, userId } = props || {};\n\n return addOrganisationUser(orgId, userId, requestOptions);\n };\n\n return useMutation<\n AsyncReturnType<typeof addOrganisationUser>,\n TError,\n { orgId: string; userId: string },\n TContext\n >(mutationFn, mutationOptions);\n};\n/**\n * Removes a user from an organisation. You have to be in the Organisation or an Admin user to use this endpoint\n\n * @summary Deletes a user from an organisation\n */\nexport const deleteOrganisationUser = (\n orgId: string,\n userId: string,\n options?: SecondParameter<typeof customInstance>\n) => {\n return customInstance<void>(\n { url: `/organisation/${orgId}/user/${userId}`, method: \"delete\" },\n options\n );\n};\n\nexport type DeleteOrganisationUserMutationResult = NonNullable<\n AsyncReturnType<typeof deleteOrganisationUser>\n>;\n\nexport type DeleteOrganisationUserMutationError = ErrorType<AsError>;\n\nexport const useDeleteOrganisationUser = <\n TError = ErrorType<AsError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n AsyncReturnType<typeof deleteOrganisationUser>,\n TError,\n { orgId: string; userId: string },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const { mutation: mutationOptions, request: requestOptions } = options || {};\n\n const mutationFn: MutationFunction<\n AsyncReturnType<typeof deleteOrganisationUser>,\n { orgId: string; userId: string }\n > = (props) => {\n const { orgId, userId } = props || {};\n\n return deleteOrganisationUser(orgId, userId, requestOptions);\n };\n\n return useMutation<\n AsyncReturnType<typeof deleteOrganisationUser>,\n TError,\n { orgId: string; userId: string },\n TContext\n >(mutationFn, mutationOptions);\n};\n/**\n * Gets users in an Organisational Unit. You have to be in the Organisation or Unit or an Admin user to use this endpoint\n\n * @summary Gets users in an Organisational Unit\n */\nexport const getOrganisationUnitUsers = (\n unitId: string,\n options?: SecondParameter<typeof customInstance>\n) => {\n return customInstance<UsersGetResponse>(\n { url: `/unit/${unitId}/user`, method: \"get\" },\n options\n );\n};\n\nexport const getGetOrganisationUnitUsersQueryKey = (unitId: string) => [\n `/unit/${unitId}/user`,\n];\n\nexport type GetOrganisationUnitUsersQueryResult = NonNullable<\n AsyncReturnType<typeof getOrganisationUnitUsers>\n>;\nexport type GetOrganisationUnitUsersQueryError = ErrorType<AsError | void>;\n\nexport const useGetOrganisationUnitUsers = <\n TData = AsyncReturnType<typeof getOrganisationUnitUsers>,\n TError = ErrorType<AsError | void>\n>(\n unitId: string,\n options?: {\n query?: UseQueryOptions<\n AsyncReturnType<typeof getOrganisationUnitUsers>,\n TError,\n TData\n >;\n request?: SecondParameter<typeof customInstance>;\n }\n): UseQueryResult<TData, TError> & { queryKey: QueryKey } => {\n const { query: queryOptions, request: requestOptions } = options || {};\n\n const queryKey =\n queryOptions?.queryKey ?? getGetOrganisationUnitUsersQueryKey(unitId);\n\n const queryFn: QueryFunction<\n AsyncReturnType<typeof getOrganisationUnitUsers>\n > = () => getOrganisationUnitUsers(unitId, requestOptions);\n\n const query = useQuery<\n AsyncReturnType<typeof getOrganisationUnitUsers>,\n TError,\n TData\n >(queryKey, queryFn, { enabled: !!unitId, ...queryOptions });\n\n return {\n queryKey,\n ...query,\n };\n};\n\n/**\n * Adds a user to an Organisational Unit.\n\nUsers cannot be added to **Independent Units** (Units that are part of the ***Default** Organisation).\n\nYou have to be in the Organisation or Unit or an Admin user to use this endpoint\n\n * @summary Adds a user to an Organisational Unit\n */\nexport const addOrganisationUnitUser = (\n unitId: string,\n userId: string,\n options?: SecondParameter<typeof customInstance>\n) => {\n return customInstance<void>(\n { url: `/unit/${unitId}/user/${userId}`, method: \"put\" },\n options\n );\n};\n\nexport type AddOrganisationUnitUserMutationResult = NonNullable<\n AsyncReturnType<typeof addOrganisationUnitUser>\n>;\n\nexport type AddOrganisationUnitUserMutationError = ErrorType<AsError>;\n\nexport const useAddOrganisationUnitUser = <\n TError = ErrorType<AsError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n AsyncReturnType<typeof addOrganisationUnitUser>,\n TError,\n { unitId: string; userId: string },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const { mutation: mutationOptions, request: requestOptions } = options || {};\n\n const mutationFn: MutationFunction<\n AsyncReturnType<typeof addOrganisationUnitUser>,\n { unitId: string; userId: string }\n > = (props) => {\n const { unitId, userId } = props || {};\n\n return addOrganisationUnitUser(unitId, userId, requestOptions);\n };\n\n return useMutation<\n AsyncReturnType<typeof addOrganisationUnitUser>,\n TError,\n { unitId: string; userId: string },\n TContext\n >(mutationFn, mutationOptions);\n};\n/**\n * Removes a user from an Organisational Unit.\n\nUsers cannot be removed from **Independent Units** (Units that are part of the ***Default** Organisation).\n\nYou have to be in the Organisation or Unit or an Admin user to use this endpoint\n\n * @summary Deletes a user from an Organisational Unit\n */\nexport const deleteOrganisationUnitUser = (\n unitId: string,\n userId: string,\n options?: SecondParameter<typeof customInstance>\n) => {\n return customInstance<void>(\n { url: `/unit/${unitId}/user/${userId}`, method: \"delete\" },\n options\n );\n};\n\nexport type DeleteOrganisationUnitUserMutationResult = NonNullable<\n AsyncReturnType<typeof deleteOrganisationUnitUser>\n>;\n\nexport type DeleteOrganisationUnitUserMutationError = ErrorType<AsError>;\n\nexport const useDeleteOrganisationUnitUser = <\n TError = ErrorType<AsError>,\n TContext = unknown\n>(options?: {\n mutation?: UseMutationOptions<\n AsyncReturnType<typeof deleteOrganisationUnitUser>,\n TError,\n { unitId: string; userId: string },\n TContext\n >;\n request?: SecondParameter<typeof customInstance>;\n}) => {\n const { mutation: mutationOptions, request: requestOptions } = options || {};\n\n const mutationFn: MutationFunction<\n AsyncReturnType<typeof deleteOrganisationUnitUser>,\n { unitId: string; userId: string }\n > = (props) => {\n const { unitId, userId } = props || {};\n\n return deleteOrganisationUnitUser(unitId, userId, requestOptions);\n };\n\n return useMutation<\n AsyncReturnType<typeof deleteOrganisationUnitUser>,\n TError,\n { unitId: string; userId: string },\n TContext\n >(mutationFn, mutationOptions);\n};\n"],"mappings":";;;;;;AAUA;AAAA;AAAA;AAAA;AAqCO,IAAM,iBAAiB,CAC5B,YACG;AACH,SAAO,eACL,EAAE,KAAK,iBAAiB,QAAQ,MAAM,GACtC,OACF;AACF;AAEO,IAAM,4BAA4B,MAAM,CAAC,eAAe;AAOxD,IAAM,oBAAoB,CAG/B,YAO4D;AAC5D,QAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,CAAC;AAErE,QAAM,WAAW,8CAAc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Q,WAAW,SAAS,CAAC;AAErC,WAAO,2BAA2B,QAAQ,QAAQ,cAAc;AAAA,EAClE;AAEA,SAAO,YAKL,YAAY,eAAe;AAC/B;","names":[]}
|
package/chunk-GWBPVOL2.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/chunk-N3RLW53G.cjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var __defProp = Object.defineProperty;
|
|
2
|
-
var __defProps = Object.defineProperties;
|
|
3
|
-
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
-
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
-
var __spreadValues = (a, b) => {
|
|
9
|
-
for (var prop in b || (b = {}))
|
|
10
|
-
if (__hasOwnProp.call(b, prop))
|
|
11
|
-
__defNormalProp(a, prop, b[prop]);
|
|
12
|
-
if (__getOwnPropSymbols)
|
|
13
|
-
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
-
if (__propIsEnum.call(b, prop))
|
|
15
|
-
__defNormalProp(a, prop, b[prop]);
|
|
16
|
-
}
|
|
17
|
-
return a;
|
|
18
|
-
};
|
|
19
|
-
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
exports.__spreadValues = __spreadValues; exports.__spreadProps = __spreadProps;
|
|
25
|
-
//# sourceMappingURL=chunk-N3RLW53G.cjs.map
|
package/chunk-N3RLW53G.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":""}
|