@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,29 @@
|
|
|
1
|
+
//#region rolldown:runtime
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __copyProps = (to, from, except, desc) => {
|
|
9
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
10
|
+
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
11
|
+
key = keys[i];
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
13
|
+
__defProp(to, key, {
|
|
14
|
+
get: ((k) => from[k]).bind(null, key),
|
|
15
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
return to;
|
|
21
|
+
};
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
23
|
+
value: mod,
|
|
24
|
+
enumerable: true
|
|
25
|
+
}) : target, mod));
|
|
26
|
+
|
|
27
|
+
//#endregion
|
|
28
|
+
|
|
29
|
+
exports.__toESM = __toESM;
|
|
@@ -0,0 +1,85 @@
|
|
|
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/actions/actions.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
|
+
* This endpoint delivers Action records (protocol buffers) that can be selected based on a date and time range and limited to merchants, organisations, Units, or Products. You can receive Action content as a `PROTOCOL_STRING` (the default), or `JSON_STRING`. If you do not provide a `format` `PROTOCOL_STRING` will be assumed.
|
|
19
|
+
|
|
20
|
+
You can provide a `m_id`, `org_id`, `unit_id`, `product_id`, but only one.
|
|
21
|
+
|
|
22
|
+
You can also provide `from` and `until` dates to limit the response to Actions that occur on the days you select. Actions are returned that are not before the `from` data but are before the `until` date. If neither `from` or `until` is provided `from` is assumed to be from _today_ until _tomorrow_.
|
|
23
|
+
|
|
24
|
+
You need admin privilege to use this endpoint.
|
|
25
|
+
|
|
26
|
+
* @summary Gets Actions held on the Account Server
|
|
27
|
+
*/
|
|
28
|
+
const getActions = (params, options, signal) => {
|
|
29
|
+
return require_custom_instance.customInstance({
|
|
30
|
+
url: `/action`,
|
|
31
|
+
method: "GET",
|
|
32
|
+
params,
|
|
33
|
+
signal
|
|
34
|
+
}, options);
|
|
35
|
+
};
|
|
36
|
+
const getGetActionsQueryKey = (params) => {
|
|
37
|
+
return [`/action`, ...params ? [params] : []];
|
|
38
|
+
};
|
|
39
|
+
const useGetActionsQueryOptions = (params, options) => {
|
|
40
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
41
|
+
const queryKey = queryOptions?.queryKey ?? getGetActionsQueryKey(params);
|
|
42
|
+
const queryFn = ({ signal }) => getActions(params, requestOptions, signal);
|
|
43
|
+
return require_options_mutator.queryMutator({
|
|
44
|
+
...queryOptions,
|
|
45
|
+
queryKey,
|
|
46
|
+
queryFn
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* @summary Gets Actions held on the Account Server
|
|
51
|
+
*/
|
|
52
|
+
function useGetActions(params, options, queryClient) {
|
|
53
|
+
const queryOptions = useGetActionsQueryOptions(params, options);
|
|
54
|
+
const query = (0, __tanstack_react_query.useQuery)(queryOptions, queryClient);
|
|
55
|
+
query.queryKey = queryOptions.queryKey;
|
|
56
|
+
return query;
|
|
57
|
+
}
|
|
58
|
+
const useGetActionsSuspenseQueryOptions = (params, options) => {
|
|
59
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
60
|
+
const queryKey = queryOptions?.queryKey ?? getGetActionsQueryKey(params);
|
|
61
|
+
const queryFn = ({ signal }) => getActions(params, requestOptions, signal);
|
|
62
|
+
return require_options_mutator.queryMutator({
|
|
63
|
+
...queryOptions,
|
|
64
|
+
queryKey,
|
|
65
|
+
queryFn
|
|
66
|
+
});
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* @summary Gets Actions held on the Account Server
|
|
70
|
+
*/
|
|
71
|
+
function useGetActionsSuspense(params, options, queryClient) {
|
|
72
|
+
const queryOptions = useGetActionsSuspenseQueryOptions(params, options);
|
|
73
|
+
const query = (0, __tanstack_react_query.useSuspenseQuery)(queryOptions, queryClient);
|
|
74
|
+
query.queryKey = queryOptions.queryKey;
|
|
75
|
+
return query;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
//#endregion
|
|
79
|
+
exports.getActions = getActions;
|
|
80
|
+
exports.getGetActionsQueryKey = getGetActionsQueryKey;
|
|
81
|
+
exports.useGetActions = useGetActions;
|
|
82
|
+
exports.useGetActionsQueryOptions = useGetActionsQueryOptions;
|
|
83
|
+
exports.useGetActionsSuspense = useGetActionsSuspense;
|
|
84
|
+
exports.useGetActionsSuspenseQueryOptions = useGetActionsSuspenseQueryOptions;
|
|
85
|
+
//# sourceMappingURL=actions.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.cjs","names":["customInstance","queryFn: QueryFunction<Awaited<ReturnType<typeof getActions>>>","queryMutator"],"sources":["../../../src/api/actions/actions.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 { useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type { ActionGetResponse, GetActionsParams } from \"../api.schemas\";\n\nimport { customInstance } from \"../../custom-instance\";\nimport type { ErrorType } from \"../../custom-instance\";\nimport { queryMutator } from \"../../options-mutator\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * This endpoint delivers Action records (protocol buffers) that can be selected based on a date and time range and limited to merchants, organisations, Units, or Products. You can receive Action content as a `PROTOCOL_STRING` (the default), or `JSON_STRING`. If you do not provide a `format` `PROTOCOL_STRING` will be assumed.\n\nYou can provide a `m_id`, `org_id`, `unit_id`, `product_id`, but only one.\n\nYou can also provide `from` and `until` dates to limit the response to Actions that occur on the days you select. Actions are returned that are not before the `from` data but are before the `until` date. If neither `from` or `until` is provided `from` is assumed to be from _today_ until _tomorrow_.\n\nYou need admin privilege to use this endpoint.\n\n * @summary Gets Actions held on the Account Server\n */\nexport const getActions = (\n params?: GetActionsParams,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<ActionGetResponse>(\n { url: `/action`, method: \"GET\", params, signal },\n options,\n );\n};\n\nexport const getGetActionsQueryKey = (params?: GetActionsParams) => {\n return [`/action`, ...(params ? [params] : [])] as const;\n};\n\nexport const useGetActionsQueryOptions = <\n TData = Awaited<ReturnType<typeof getActions>>,\n TError = ErrorType<void>,\n>(\n params?: GetActionsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetActionsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getActions>>> = ({ signal }) =>\n getActions(params, requestOptions, signal);\n\n const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });\n\n return customOptions as UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n};\n\nexport type GetActionsQueryResult = NonNullable<Awaited<ReturnType<typeof getActions>>>;\nexport type GetActionsQueryError = ErrorType<void>;\n\nexport function useGetActions<\n TData = Awaited<ReturnType<typeof getActions>>,\n TError = ErrorType<void>,\n>(\n params: undefined | GetActionsParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getActions>>,\n TError,\n Awaited<ReturnType<typeof getActions>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetActions<\n TData = Awaited<ReturnType<typeof getActions>>,\n TError = ErrorType<void>,\n>(\n params?: GetActionsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getActions>>,\n TError,\n Awaited<ReturnType<typeof getActions>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetActions<\n TData = Awaited<ReturnType<typeof getActions>>,\n TError = ErrorType<void>,\n>(\n params?: GetActionsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Actions held on the Account Server\n */\n\nexport function useGetActions<\n TData = Awaited<ReturnType<typeof getActions>>,\n TError = ErrorType<void>,\n>(\n params?: GetActionsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = useGetActionsQueryOptions(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 useGetActionsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getActions>>,\n TError = ErrorType<void>,\n>(\n params?: GetActionsParams,\n options?: {\n query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetActionsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getActions>>> = ({ signal }) =>\n getActions(params, requestOptions, signal);\n\n const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });\n\n return customOptions as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getActions>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetActionsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getActions>>>;\nexport type GetActionsSuspenseQueryError = ErrorType<void>;\n\nexport function useGetActionsSuspense<\n TData = Awaited<ReturnType<typeof getActions>>,\n TError = ErrorType<void>,\n>(\n params: undefined | GetActionsParams,\n options: {\n query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetActionsSuspense<\n TData = Awaited<ReturnType<typeof getActions>>,\n TError = ErrorType<void>,\n>(\n params?: GetActionsParams,\n options?: {\n query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetActionsSuspense<\n TData = Awaited<ReturnType<typeof getActions>>,\n TError = ErrorType<void>,\n>(\n params?: GetActionsParams,\n options?: {\n query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Actions held on the Account Server\n */\n\nexport function useGetActionsSuspense<\n TData = Awaited<ReturnType<typeof getActions>>,\n TError = ErrorType<void>,\n>(\n params?: GetActionsParams,\n options?: {\n query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = useGetActionsSuspenseQueryOptions(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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CA,MAAa,cACX,QACA,SACA,WACG;AACH,QAAOA,uCACL;EAAE,KAAK;EAAW,QAAQ;EAAO;EAAQ;EAAQ,EACjD,QACD;;AAGH,MAAa,yBAAyB,WAA8B;AAClE,QAAO,CAAC,WAAW,GAAI,SAAS,CAAC,OAAO,GAAG,EAAE,CAAE;;AAGjD,MAAa,6BAIX,QACA,YAIG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,EAAE;CAEtE,MAAM,WAAW,cAAc,YAAY,sBAAsB,OAAO;CAExE,MAAMC,WAAkE,EAAE,aACxE,WAAW,QAAQ,gBAAgB,OAAO;AAI5C,QAFsBC,qCAAa;EAAE,GAAG;EAAc;EAAU;EAAS,CAAC;;;;;AA+D5E,SAAgB,cAId,QACA,SAIA,aACgF;CAChF,MAAM,eAAe,0BAA0B,QAAQ,QAAQ;CAE/D,MAAM,6CAAiB,cAAc,YAAY;AAIjD,OAAM,WAAW,aAAa;AAE9B,QAAO;;AAGT,MAAa,qCAIX,QACA,YAIG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,EAAE;CAEtE,MAAM,WAAW,cAAc,YAAY,sBAAsB,OAAO;CAExE,MAAMD,WAAkE,EAAE,aACxE,WAAW,QAAQ,gBAAgB,OAAO;AAI5C,QAFsBC,qCAAa;EAAE,GAAG;EAAc;EAAU;EAAS,CAAC;;;;;AAiD5E,SAAgB,sBAId,QACA,SAIA,aACwF;CACxF,MAAM,eAAe,kCAAkC,QAAQ,QAAQ;CAEvE,MAAM,qDAAyB,cAAc,YAAY;AAKzD,OAAM,WAAW,aAAa;AAE9B,QAAO"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { ActionGetResponse, GetActionsParams } from "../api.schemas.cjs";
|
|
2
|
+
import { ErrorType, customInstance } from "../../custom-instance.cjs";
|
|
3
|
+
import { DataTag, DefinedInitialDataOptions, DefinedUseQueryResult, QueryClient, QueryKey, UndefinedInitialDataOptions, UseQueryOptions, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult } from "@tanstack/react-query";
|
|
4
|
+
|
|
5
|
+
//#region src/api/actions/actions.d.ts
|
|
6
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
7
|
+
/**
|
|
8
|
+
* This endpoint delivers Action records (protocol buffers) that can be selected based on a date and time range and limited to merchants, organisations, Units, or Products. You can receive Action content as a `PROTOCOL_STRING` (the default), or `JSON_STRING`. If you do not provide a `format` `PROTOCOL_STRING` will be assumed.
|
|
9
|
+
|
|
10
|
+
You can provide a `m_id`, `org_id`, `unit_id`, `product_id`, but only one.
|
|
11
|
+
|
|
12
|
+
You can also provide `from` and `until` dates to limit the response to Actions that occur on the days you select. Actions are returned that are not before the `from` data but are before the `until` date. If neither `from` or `until` is provided `from` is assumed to be from _today_ until _tomorrow_.
|
|
13
|
+
|
|
14
|
+
You need admin privilege to use this endpoint.
|
|
15
|
+
|
|
16
|
+
* @summary Gets Actions held on the Account Server
|
|
17
|
+
*/
|
|
18
|
+
declare const getActions: (params?: GetActionsParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<ActionGetResponse>;
|
|
19
|
+
declare const getGetActionsQueryKey: (params?: GetActionsParams) => readonly ["/action", ...GetActionsParams[]];
|
|
20
|
+
declare const useGetActionsQueryOptions: <TData = Awaited<ReturnType<typeof getActions>>, TError = ErrorType<void>>(params?: GetActionsParams, options?: {
|
|
21
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;
|
|
22
|
+
request?: SecondParameter<typeof customInstance>;
|
|
23
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData> & {
|
|
24
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
25
|
+
};
|
|
26
|
+
type GetActionsQueryResult = NonNullable<Awaited<ReturnType<typeof getActions>>>;
|
|
27
|
+
type GetActionsQueryError = ErrorType<void>;
|
|
28
|
+
declare function useGetActions<TData = Awaited<ReturnType<typeof getActions>>, TError = ErrorType<void>>(params: undefined | GetActionsParams, options: {
|
|
29
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getActions>>, TError, Awaited<ReturnType<typeof getActions>>>, "initialData">;
|
|
30
|
+
request?: SecondParameter<typeof customInstance>;
|
|
31
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
32
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
33
|
+
};
|
|
34
|
+
declare function useGetActions<TData = Awaited<ReturnType<typeof getActions>>, TError = ErrorType<void>>(params?: GetActionsParams, options?: {
|
|
35
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getActions>>, TError, Awaited<ReturnType<typeof getActions>>>, "initialData">;
|
|
36
|
+
request?: SecondParameter<typeof customInstance>;
|
|
37
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
38
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
39
|
+
};
|
|
40
|
+
declare function useGetActions<TData = Awaited<ReturnType<typeof getActions>>, TError = ErrorType<void>>(params?: GetActionsParams, options?: {
|
|
41
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;
|
|
42
|
+
request?: SecondParameter<typeof customInstance>;
|
|
43
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
44
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
45
|
+
};
|
|
46
|
+
declare const useGetActionsSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getActions>>, TError = ErrorType<void>>(params?: GetActionsParams, options?: {
|
|
47
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;
|
|
48
|
+
request?: SecondParameter<typeof customInstance>;
|
|
49
|
+
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData> & {
|
|
50
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
51
|
+
};
|
|
52
|
+
type GetActionsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getActions>>>;
|
|
53
|
+
type GetActionsSuspenseQueryError = ErrorType<void>;
|
|
54
|
+
declare function useGetActionsSuspense<TData = Awaited<ReturnType<typeof getActions>>, TError = ErrorType<void>>(params: undefined | GetActionsParams, options: {
|
|
55
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;
|
|
56
|
+
request?: SecondParameter<typeof customInstance>;
|
|
57
|
+
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
58
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
59
|
+
};
|
|
60
|
+
declare function useGetActionsSuspense<TData = Awaited<ReturnType<typeof getActions>>, TError = ErrorType<void>>(params?: GetActionsParams, options?: {
|
|
61
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;
|
|
62
|
+
request?: SecondParameter<typeof customInstance>;
|
|
63
|
+
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
64
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
65
|
+
};
|
|
66
|
+
declare function useGetActionsSuspense<TData = Awaited<ReturnType<typeof getActions>>, TError = ErrorType<void>>(params?: GetActionsParams, options?: {
|
|
67
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;
|
|
68
|
+
request?: SecondParameter<typeof customInstance>;
|
|
69
|
+
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
70
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
71
|
+
};
|
|
72
|
+
//#endregion
|
|
73
|
+
export { GetActionsQueryError, GetActionsQueryResult, GetActionsSuspenseQueryError, GetActionsSuspenseQueryResult, getActions, getGetActionsQueryKey, useGetActions, useGetActionsQueryOptions, useGetActionsSuspense, useGetActionsSuspenseQueryOptions };
|
|
74
|
+
//# sourceMappingURL=actions.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.cts","names":[],"sources":["../../../src/api/actions/actions.ts"],"sourcesContent":[],"mappings":";;;;;KA+BK,yDAAyD,WAAW;AAHlB;AAgBvD;;;;;;;;AAWA;AAIA;AACoC,cAhBvB,UAgBuB,EAAA,CAAA,MAAA,CAAA,EAfzB,gBAeyB,EAAA,OAAA,CAAA,EAdxB,eAcwB,CAAA,OAdD,cAcC,CAAA,EAAA,MAAA,CAAA,EAbzB,WAayB,EAAA,GAbd,OAac,CAbd,iBAac,CAAA;AAAlB,cALL,qBAKK,EAAA,CAAA,MAAA,CAAA,EAL6B,gBAK7B,EAAA,GAAA,SAAA,CAAA,SAAA,EAAA,GAL6C,gBAK7C,EAAA,CAAA;AAAR,cADG,yBACH,EAAA,CAAA,QAAA,OAAA,CAAQ,UAAR,CAAA,OAA0B,UAA1B,CAAA,CAAA,EAAA,SACC,SADD,CAAA,IAAA,CAAA,CAAA,CAAA,MAAA,CAAA,EAGC,gBAHD,EAAA,OAKoD,CALpD,EAAA;EACC,KAAA,CAAA,EAIC,OAJD,CAIS,eAJT,CAIyB,OAJzB,CAIiC,UAJjC,CAAA,OAImD,UAJnD,CAAA,CAAA,EAIiE,MAJjE,EAIyE,KAJzE,CAAA,CAAA;EAEA,OAAA,CAAA,EAGG,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EAyHxB,OAzHwB,CAyHhB,uBAzHgB,CAyHQ,OAzHR,CAyHgB,UAzHhB,CAAA,OAyHkC,UAzHlC,CAAA,CAAA,EAyHgD,MAzHhD,EAyHwD,KAzHxD,CAAA,CAAA;EAAlB,OAAA,CAAA,EA0HJ,eA1HI,CAAA,OA0HmB,cA1HnB,CAAA;CAAR,EAAA,WAAA,CAAA,EA4HM,WA5HN,CAAA,EA6HP,sBA7HO,CA6HgB,KA7HhB,EA6HuB,MA7HvB,CAAA,GAAA;EAHF,QAAA,EAgI+C,OAhI/C,CAgIuD,QAhIvD,EAgIiE,KAhIjE,EAgIwE,MAhIxE,CAAA;CADF"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { ActionGetResponse, GetActionsParams } from "../api.schemas.js";
|
|
2
|
+
import { ErrorType, customInstance } from "../../custom-instance.js";
|
|
3
|
+
import { DataTag, DefinedInitialDataOptions, DefinedUseQueryResult, QueryClient, QueryKey, UndefinedInitialDataOptions, UseQueryOptions, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult } from "@tanstack/react-query";
|
|
4
|
+
|
|
5
|
+
//#region src/api/actions/actions.d.ts
|
|
6
|
+
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
7
|
+
/**
|
|
8
|
+
* This endpoint delivers Action records (protocol buffers) that can be selected based on a date and time range and limited to merchants, organisations, Units, or Products. You can receive Action content as a `PROTOCOL_STRING` (the default), or `JSON_STRING`. If you do not provide a `format` `PROTOCOL_STRING` will be assumed.
|
|
9
|
+
|
|
10
|
+
You can provide a `m_id`, `org_id`, `unit_id`, `product_id`, but only one.
|
|
11
|
+
|
|
12
|
+
You can also provide `from` and `until` dates to limit the response to Actions that occur on the days you select. Actions are returned that are not before the `from` data but are before the `until` date. If neither `from` or `until` is provided `from` is assumed to be from _today_ until _tomorrow_.
|
|
13
|
+
|
|
14
|
+
You need admin privilege to use this endpoint.
|
|
15
|
+
|
|
16
|
+
* @summary Gets Actions held on the Account Server
|
|
17
|
+
*/
|
|
18
|
+
declare const getActions: (params?: GetActionsParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<ActionGetResponse>;
|
|
19
|
+
declare const getGetActionsQueryKey: (params?: GetActionsParams) => readonly ["/action", ...GetActionsParams[]];
|
|
20
|
+
declare const useGetActionsQueryOptions: <TData = Awaited<ReturnType<typeof getActions>>, TError = ErrorType<void>>(params?: GetActionsParams, options?: {
|
|
21
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;
|
|
22
|
+
request?: SecondParameter<typeof customInstance>;
|
|
23
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData> & {
|
|
24
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
25
|
+
};
|
|
26
|
+
type GetActionsQueryResult = NonNullable<Awaited<ReturnType<typeof getActions>>>;
|
|
27
|
+
type GetActionsQueryError = ErrorType<void>;
|
|
28
|
+
declare function useGetActions<TData = Awaited<ReturnType<typeof getActions>>, TError = ErrorType<void>>(params: undefined | GetActionsParams, options: {
|
|
29
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getActions>>, TError, Awaited<ReturnType<typeof getActions>>>, "initialData">;
|
|
30
|
+
request?: SecondParameter<typeof customInstance>;
|
|
31
|
+
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
32
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
33
|
+
};
|
|
34
|
+
declare function useGetActions<TData = Awaited<ReturnType<typeof getActions>>, TError = ErrorType<void>>(params?: GetActionsParams, options?: {
|
|
35
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getActions>>, TError, Awaited<ReturnType<typeof getActions>>>, "initialData">;
|
|
36
|
+
request?: SecondParameter<typeof customInstance>;
|
|
37
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
38
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
39
|
+
};
|
|
40
|
+
declare function useGetActions<TData = Awaited<ReturnType<typeof getActions>>, TError = ErrorType<void>>(params?: GetActionsParams, options?: {
|
|
41
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;
|
|
42
|
+
request?: SecondParameter<typeof customInstance>;
|
|
43
|
+
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
44
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
45
|
+
};
|
|
46
|
+
declare const useGetActionsSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getActions>>, TError = ErrorType<void>>(params?: GetActionsParams, options?: {
|
|
47
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;
|
|
48
|
+
request?: SecondParameter<typeof customInstance>;
|
|
49
|
+
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData> & {
|
|
50
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
51
|
+
};
|
|
52
|
+
type GetActionsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getActions>>>;
|
|
53
|
+
type GetActionsSuspenseQueryError = ErrorType<void>;
|
|
54
|
+
declare function useGetActionsSuspense<TData = Awaited<ReturnType<typeof getActions>>, TError = ErrorType<void>>(params: undefined | GetActionsParams, options: {
|
|
55
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;
|
|
56
|
+
request?: SecondParameter<typeof customInstance>;
|
|
57
|
+
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
58
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
59
|
+
};
|
|
60
|
+
declare function useGetActionsSuspense<TData = Awaited<ReturnType<typeof getActions>>, TError = ErrorType<void>>(params?: GetActionsParams, options?: {
|
|
61
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;
|
|
62
|
+
request?: SecondParameter<typeof customInstance>;
|
|
63
|
+
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
64
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
65
|
+
};
|
|
66
|
+
declare function useGetActionsSuspense<TData = Awaited<ReturnType<typeof getActions>>, TError = ErrorType<void>>(params?: GetActionsParams, options?: {
|
|
67
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;
|
|
68
|
+
request?: SecondParameter<typeof customInstance>;
|
|
69
|
+
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
70
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
71
|
+
};
|
|
72
|
+
//#endregion
|
|
73
|
+
export { GetActionsQueryError, GetActionsQueryResult, GetActionsSuspenseQueryError, GetActionsSuspenseQueryResult, getActions, getGetActionsQueryKey, useGetActions, useGetActionsQueryOptions, useGetActionsSuspense, useGetActionsSuspenseQueryOptions };
|
|
74
|
+
//# sourceMappingURL=actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.d.ts","names":[],"sources":["../../../src/api/actions/actions.ts"],"sourcesContent":[],"mappings":";;;;;KA+BK,yDAAyD,WAAW;AAHlB;AAgBvD;;;;;;;;AAWA;AAIA;AACoC,cAhBvB,UAgBuB,EAAA,CAAA,MAAA,CAAA,EAfzB,gBAeyB,EAAA,OAAA,CAAA,EAdxB,eAcwB,CAAA,OAdD,cAcC,CAAA,EAAA,MAAA,CAAA,EAbzB,WAayB,EAAA,GAbd,OAac,CAbd,iBAac,CAAA;AAAlB,cALL,qBAKK,EAAA,CAAA,MAAA,CAAA,EAL6B,gBAK7B,EAAA,GAAA,SAAA,CAAA,SAAA,EAAA,GAL6C,gBAK7C,EA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B,CAAA,EAoHjC,sBApHiC,CAoHV,KApHU,EAoHH,MApHG,CAAA,GAAA;EAAlB,QAAA,EAoHqC,OApHrC,CAoH6C,QApH7C,EAoHuD,KApHvD,EAoH8D,MApH9D,CAAA;CAAR;AACA,iBAoHM,qBApHN,CAAA,QAqHA,OArHA,CAqHQ,UArHR,CAAA,OAqH0B,UArH1B,CAAA,CAAA,EAAA,SAsHC,SAtHD,CAAA,IAAA,CAAA,CAAA,CAAA,MAAA,CAAA,EAwHC,gBAxHD,EAAA,OACA,CADA,EAAA;EAC0B,KAAA,CAAA,EAyHxB,OAzHwB,CAyHhB,uBAzHgB,CAyHQ,OAzHR,CAyHgB,UAzHhB,CAAA,OAyHkC,UAzHlC,CAAA,CAAA,EAyHgD,MAzHhD,EAyHwD,KAzHxD,CAAA,CAAA;EAAlB,OAAA,CAAA,EA0HJ,eA1HI,CAAA,OA0HmB,cA1HnB,CAAA;CAAR,EAAA,WAAA,CAAA,EA4HM,WA5HN,CAAA,EA6HP,sBA7HO,CA6HgB,KA7HhB,EA6HuB,MA7HvB,CAAA,GAAA;EAHF,QAAA,EAgI+C,OAhI/C,CAgIuD,QAhIvD,EAgIiE,KAhIjE,EAgIwE,MAhIxE,CAAA;CADF"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { customInstance } from "../../custom-instance.js";
|
|
2
|
+
import { queryMutator } from "../../options-mutator.js";
|
|
3
|
+
import { useQuery, useSuspenseQuery } from "@tanstack/react-query";
|
|
4
|
+
|
|
5
|
+
//#region src/api/actions/actions.ts
|
|
6
|
+
/**
|
|
7
|
+
* Generated by orval v7.16.1 🍺
|
|
8
|
+
* Do not edit manually.
|
|
9
|
+
* Account Server API
|
|
10
|
+
* The Informatics Matters Account Server API.
|
|
11
|
+
|
|
12
|
+
A service that provides access to the Account Server, which gives *registered* users access to and management of **Organisations**, **Units**, **Products**, **Users**, and **Assets**.
|
|
13
|
+
|
|
14
|
+
* OpenAPI spec version: 4.4
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* This endpoint delivers Action records (protocol buffers) that can be selected based on a date and time range and limited to merchants, organisations, Units, or Products. You can receive Action content as a `PROTOCOL_STRING` (the default), or `JSON_STRING`. If you do not provide a `format` `PROTOCOL_STRING` will be assumed.
|
|
18
|
+
|
|
19
|
+
You can provide a `m_id`, `org_id`, `unit_id`, `product_id`, but only one.
|
|
20
|
+
|
|
21
|
+
You can also provide `from` and `until` dates to limit the response to Actions that occur on the days you select. Actions are returned that are not before the `from` data but are before the `until` date. If neither `from` or `until` is provided `from` is assumed to be from _today_ until _tomorrow_.
|
|
22
|
+
|
|
23
|
+
You need admin privilege to use this endpoint.
|
|
24
|
+
|
|
25
|
+
* @summary Gets Actions held on the Account Server
|
|
26
|
+
*/
|
|
27
|
+
const getActions = (params, options, signal) => {
|
|
28
|
+
return customInstance({
|
|
29
|
+
url: `/action`,
|
|
30
|
+
method: "GET",
|
|
31
|
+
params,
|
|
32
|
+
signal
|
|
33
|
+
}, options);
|
|
34
|
+
};
|
|
35
|
+
const getGetActionsQueryKey = (params) => {
|
|
36
|
+
return [`/action`, ...params ? [params] : []];
|
|
37
|
+
};
|
|
38
|
+
const useGetActionsQueryOptions = (params, options) => {
|
|
39
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
40
|
+
const queryKey = queryOptions?.queryKey ?? getGetActionsQueryKey(params);
|
|
41
|
+
const queryFn = ({ signal }) => getActions(params, requestOptions, signal);
|
|
42
|
+
return queryMutator({
|
|
43
|
+
...queryOptions,
|
|
44
|
+
queryKey,
|
|
45
|
+
queryFn
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* @summary Gets Actions held on the Account Server
|
|
50
|
+
*/
|
|
51
|
+
function useGetActions(params, options, queryClient) {
|
|
52
|
+
const queryOptions = useGetActionsQueryOptions(params, options);
|
|
53
|
+
const query = useQuery(queryOptions, queryClient);
|
|
54
|
+
query.queryKey = queryOptions.queryKey;
|
|
55
|
+
return query;
|
|
56
|
+
}
|
|
57
|
+
const useGetActionsSuspenseQueryOptions = (params, options) => {
|
|
58
|
+
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
59
|
+
const queryKey = queryOptions?.queryKey ?? getGetActionsQueryKey(params);
|
|
60
|
+
const queryFn = ({ signal }) => getActions(params, requestOptions, signal);
|
|
61
|
+
return queryMutator({
|
|
62
|
+
...queryOptions,
|
|
63
|
+
queryKey,
|
|
64
|
+
queryFn
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* @summary Gets Actions held on the Account Server
|
|
69
|
+
*/
|
|
70
|
+
function useGetActionsSuspense(params, options, queryClient) {
|
|
71
|
+
const queryOptions = useGetActionsSuspenseQueryOptions(params, options);
|
|
72
|
+
const query = useSuspenseQuery(queryOptions, queryClient);
|
|
73
|
+
query.queryKey = queryOptions.queryKey;
|
|
74
|
+
return query;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
//#endregion
|
|
78
|
+
export { getActions, getGetActionsQueryKey, useGetActions, useGetActionsQueryOptions, useGetActionsSuspense, useGetActionsSuspenseQueryOptions };
|
|
79
|
+
//# sourceMappingURL=actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"actions.js","names":["queryFn: QueryFunction<Awaited<ReturnType<typeof getActions>>>"],"sources":["../../../src/api/actions/actions.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 { useQuery, useSuspenseQuery } from \"@tanstack/react-query\";\nimport type {\n DataTag,\n DefinedInitialDataOptions,\n DefinedUseQueryResult,\n QueryClient,\n QueryFunction,\n QueryKey,\n UndefinedInitialDataOptions,\n UseQueryOptions,\n UseQueryResult,\n UseSuspenseQueryOptions,\n UseSuspenseQueryResult,\n} from \"@tanstack/react-query\";\n\nimport type { ActionGetResponse, GetActionsParams } from \"../api.schemas\";\n\nimport { customInstance } from \"../../custom-instance\";\nimport type { ErrorType } from \"../../custom-instance\";\nimport { queryMutator } from \"../../options-mutator\";\n\ntype SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];\n\n/**\n * This endpoint delivers Action records (protocol buffers) that can be selected based on a date and time range and limited to merchants, organisations, Units, or Products. You can receive Action content as a `PROTOCOL_STRING` (the default), or `JSON_STRING`. If you do not provide a `format` `PROTOCOL_STRING` will be assumed.\n\nYou can provide a `m_id`, `org_id`, `unit_id`, `product_id`, but only one.\n\nYou can also provide `from` and `until` dates to limit the response to Actions that occur on the days you select. Actions are returned that are not before the `from` data but are before the `until` date. If neither `from` or `until` is provided `from` is assumed to be from _today_ until _tomorrow_.\n\nYou need admin privilege to use this endpoint.\n\n * @summary Gets Actions held on the Account Server\n */\nexport const getActions = (\n params?: GetActionsParams,\n options?: SecondParameter<typeof customInstance>,\n signal?: AbortSignal,\n) => {\n return customInstance<ActionGetResponse>(\n { url: `/action`, method: \"GET\", params, signal },\n options,\n );\n};\n\nexport const getGetActionsQueryKey = (params?: GetActionsParams) => {\n return [`/action`, ...(params ? [params] : [])] as const;\n};\n\nexport const useGetActionsQueryOptions = <\n TData = Awaited<ReturnType<typeof getActions>>,\n TError = ErrorType<void>,\n>(\n params?: GetActionsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetActionsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getActions>>> = ({ signal }) =>\n getActions(params, requestOptions, signal);\n\n const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });\n\n return customOptions as UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData> & {\n queryKey: DataTag<QueryKey, TData, TError>;\n };\n};\n\nexport type GetActionsQueryResult = NonNullable<Awaited<ReturnType<typeof getActions>>>;\nexport type GetActionsQueryError = ErrorType<void>;\n\nexport function useGetActions<\n TData = Awaited<ReturnType<typeof getActions>>,\n TError = ErrorType<void>,\n>(\n params: undefined | GetActionsParams,\n options: {\n query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>> &\n Pick<\n DefinedInitialDataOptions<\n Awaited<ReturnType<typeof getActions>>,\n TError,\n Awaited<ReturnType<typeof getActions>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetActions<\n TData = Awaited<ReturnType<typeof getActions>>,\n TError = ErrorType<void>,\n>(\n params?: GetActionsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>> &\n Pick<\n UndefinedInitialDataOptions<\n Awaited<ReturnType<typeof getActions>>,\n TError,\n Awaited<ReturnType<typeof getActions>>\n >,\n \"initialData\"\n >;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetActions<\n TData = Awaited<ReturnType<typeof getActions>>,\n TError = ErrorType<void>,\n>(\n params?: GetActionsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Actions held on the Account Server\n */\n\nexport function useGetActions<\n TData = Awaited<ReturnType<typeof getActions>>,\n TError = ErrorType<void>,\n>(\n params?: GetActionsParams,\n options?: {\n query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = useGetActionsQueryOptions(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 useGetActionsSuspenseQueryOptions = <\n TData = Awaited<ReturnType<typeof getActions>>,\n TError = ErrorType<void>,\n>(\n params?: GetActionsParams,\n options?: {\n query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n) => {\n const { query: queryOptions, request: requestOptions } = options ?? {};\n\n const queryKey = queryOptions?.queryKey ?? getGetActionsQueryKey(params);\n\n const queryFn: QueryFunction<Awaited<ReturnType<typeof getActions>>> = ({ signal }) =>\n getActions(params, requestOptions, signal);\n\n const customOptions = queryMutator({ ...queryOptions, queryKey, queryFn });\n\n return customOptions as UseSuspenseQueryOptions<\n Awaited<ReturnType<typeof getActions>>,\n TError,\n TData\n > & { queryKey: DataTag<QueryKey, TData, TError> };\n};\n\nexport type GetActionsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getActions>>>;\nexport type GetActionsSuspenseQueryError = ErrorType<void>;\n\nexport function useGetActionsSuspense<\n TData = Awaited<ReturnType<typeof getActions>>,\n TError = ErrorType<void>,\n>(\n params: undefined | GetActionsParams,\n options: {\n query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetActionsSuspense<\n TData = Awaited<ReturnType<typeof getActions>>,\n TError = ErrorType<void>,\n>(\n params?: GetActionsParams,\n options?: {\n query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\nexport function useGetActionsSuspense<\n TData = Awaited<ReturnType<typeof getActions>>,\n TError = ErrorType<void>,\n>(\n params?: GetActionsParams,\n options?: {\n query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };\n/**\n * @summary Gets Actions held on the Account Server\n */\n\nexport function useGetActionsSuspense<\n TData = Awaited<ReturnType<typeof getActions>>,\n TError = ErrorType<void>,\n>(\n params?: GetActionsParams,\n options?: {\n query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getActions>>, TError, TData>>;\n request?: SecondParameter<typeof customInstance>;\n },\n queryClient?: QueryClient,\n): UseSuspenseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {\n const queryOptions = useGetActionsSuspenseQueryOptions(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"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA4CA,MAAa,cACX,QACA,SACA,WACG;AACH,QAAO,eACL;EAAE,KAAK;EAAW,QAAQ;EAAO;EAAQ;EAAQ,EACjD,QACD;;AAGH,MAAa,yBAAyB,WAA8B;AAClE,QAAO,CAAC,WAAW,GAAI,SAAS,CAAC,OAAO,GAAG,EAAE,CAAE;;AAGjD,MAAa,6BAIX,QACA,YAIG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,EAAE;CAEtE,MAAM,WAAW,cAAc,YAAY,sBAAsB,OAAO;CAExE,MAAMA,WAAkE,EAAE,aACxE,WAAW,QAAQ,gBAAgB,OAAO;AAI5C,QAFsB,aAAa;EAAE,GAAG;EAAc;EAAU;EAAS,CAAC;;;;;AA+D5E,SAAgB,cAId,QACA,SAIA,aACgF;CAChF,MAAM,eAAe,0BAA0B,QAAQ,QAAQ;CAE/D,MAAM,QAAQ,SAAS,cAAc,YAAY;AAIjD,OAAM,WAAW,aAAa;AAE9B,QAAO;;AAGT,MAAa,qCAIX,QACA,YAIG;CACH,MAAM,EAAE,OAAO,cAAc,SAAS,mBAAmB,WAAW,EAAE;CAEtE,MAAM,WAAW,cAAc,YAAY,sBAAsB,OAAO;CAExE,MAAMA,WAAkE,EAAE,aACxE,WAAW,QAAQ,gBAAgB,OAAO;AAI5C,QAFsB,aAAa;EAAE,GAAG;EAAc;EAAU;EAAS,CAAC;;;;;AAiD5E,SAAgB,sBAId,QACA,SAIA,aACwF;CACxF,MAAM,eAAe,kCAAkC,QAAQ,QAAQ;CAEvE,MAAM,QAAQ,iBAAiB,cAAc,YAAY;AAKzD,OAAM,WAAW,aAAa;AAE9B,QAAO"}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/api/api.schemas.ts
|
|
3
|
+
const EventStreamVersionGetResponseProtocol = {
|
|
4
|
+
ERROR_INTERNAL: "ERROR_INTERNAL",
|
|
5
|
+
SERVICE_NOT_PRESENT: "SERVICE_NOT_PRESENT",
|
|
6
|
+
WEBSOCKET: "WEBSOCKET"
|
|
7
|
+
};
|
|
8
|
+
const OrganisationGetDefaultResponseDefaultProductPrivacy = {
|
|
9
|
+
ALWAYS_PUBLIC: "ALWAYS_PUBLIC",
|
|
10
|
+
ALWAYS_PRIVATE: "ALWAYS_PRIVATE",
|
|
11
|
+
DEFAULT_PUBLIC: "DEFAULT_PUBLIC",
|
|
12
|
+
DEFAULT_PRIVATE: "DEFAULT_PRIVATE"
|
|
13
|
+
};
|
|
14
|
+
const ProductChargesGetResponseProductType = {
|
|
15
|
+
DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION: "DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION",
|
|
16
|
+
DATA_MANAGER_STORAGE_SUBSCRIPTION: "DATA_MANAGER_STORAGE_SUBSCRIPTION"
|
|
17
|
+
};
|
|
18
|
+
const ChargeSummaryType = {
|
|
19
|
+
PROCESSING: "PROCESSING",
|
|
20
|
+
STORAGE: "STORAGE"
|
|
21
|
+
};
|
|
22
|
+
const AssetDetailScope = {
|
|
23
|
+
USER: "USER",
|
|
24
|
+
PRODUCT: "PRODUCT",
|
|
25
|
+
UNIT: "UNIT",
|
|
26
|
+
ORGANISATION: "ORGANISATION",
|
|
27
|
+
GLOBAL: "GLOBAL"
|
|
28
|
+
};
|
|
29
|
+
const ProcessingChargesMerchantKind = { DATA_MANAGER: "DATA_MANAGER" };
|
|
30
|
+
const ProductDetailType = {
|
|
31
|
+
DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION: "DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION",
|
|
32
|
+
DATA_MANAGER_STORAGE_SUBSCRIPTION: "DATA_MANAGER_STORAGE_SUBSCRIPTION"
|
|
33
|
+
};
|
|
34
|
+
const ProductDetailFlavour = {
|
|
35
|
+
EVALUATION: "EVALUATION",
|
|
36
|
+
BRONZE: "BRONZE",
|
|
37
|
+
SILVER: "SILVER",
|
|
38
|
+
GOLD: "GOLD"
|
|
39
|
+
};
|
|
40
|
+
const ProductTypeServiceKind = { DATA_MANAGER: "DATA_MANAGER" };
|
|
41
|
+
const OrganisationAllDetailDefaultProductPrivacy = {
|
|
42
|
+
ALWAYS_PUBLIC: "ALWAYS_PUBLIC",
|
|
43
|
+
ALWAYS_PRIVATE: "ALWAYS_PRIVATE",
|
|
44
|
+
DEFAULT_PUBLIC: "DEFAULT_PUBLIC",
|
|
45
|
+
DEFAULT_PRIVATE: "DEFAULT_PRIVATE"
|
|
46
|
+
};
|
|
47
|
+
const OrganisationDetailDefaultProductPrivacy = {
|
|
48
|
+
ALWAYS_PUBLIC: "ALWAYS_PUBLIC",
|
|
49
|
+
ALWAYS_PRIVATE: "ALWAYS_PRIVATE",
|
|
50
|
+
DEFAULT_PUBLIC: "DEFAULT_PUBLIC",
|
|
51
|
+
DEFAULT_PRIVATE: "DEFAULT_PRIVATE"
|
|
52
|
+
};
|
|
53
|
+
const MerchantDetailKind = { DATA_MANAGER: "DATA_MANAGER" };
|
|
54
|
+
const MerchantSummaryKind = { DATA_MANAGER: "DATA_MANAGER" };
|
|
55
|
+
const UnitAllDetailDefaultProductPrivacy = {
|
|
56
|
+
ALWAYS_PUBLIC: "ALWAYS_PUBLIC",
|
|
57
|
+
ALWAYS_PRIVATE: "ALWAYS_PRIVATE",
|
|
58
|
+
DEFAULT_PUBLIC: "DEFAULT_PUBLIC",
|
|
59
|
+
DEFAULT_PRIVATE: "DEFAULT_PRIVATE"
|
|
60
|
+
};
|
|
61
|
+
const UnitDetailDefaultProductPrivacy = {
|
|
62
|
+
ALWAYS_PUBLIC: "ALWAYS_PUBLIC",
|
|
63
|
+
ALWAYS_PRIVATE: "ALWAYS_PRIVATE",
|
|
64
|
+
DEFAULT_PUBLIC: "DEFAULT_PUBLIC",
|
|
65
|
+
DEFAULT_PRIVATE: "DEFAULT_PRIVATE"
|
|
66
|
+
};
|
|
67
|
+
const AssetPostBodyBodyScope = {
|
|
68
|
+
USER: "USER",
|
|
69
|
+
PRODUCT: "PRODUCT",
|
|
70
|
+
UNIT: "UNIT",
|
|
71
|
+
ORGANISATION: "ORGANISATION",
|
|
72
|
+
GLOBAL: "GLOBAL"
|
|
73
|
+
};
|
|
74
|
+
const EventStreamPostBodyBodyFormat = {
|
|
75
|
+
PROTOCOL_STRING: "PROTOCOL_STRING",
|
|
76
|
+
JSON_STRING: "JSON_STRING"
|
|
77
|
+
};
|
|
78
|
+
const OrganisationPostBodyBodyDefaultProductPrivacy = {
|
|
79
|
+
ALWAYS_PUBLIC: "ALWAYS_PUBLIC",
|
|
80
|
+
ALWAYS_PRIVATE: "ALWAYS_PRIVATE",
|
|
81
|
+
DEFAULT_PUBLIC: "DEFAULT_PUBLIC",
|
|
82
|
+
DEFAULT_PRIVATE: "DEFAULT_PRIVATE"
|
|
83
|
+
};
|
|
84
|
+
const OrganisationUnitPostBodyBodyDefaultProductPrivacy = {
|
|
85
|
+
ALWAYS_PUBLIC: "ALWAYS_PUBLIC",
|
|
86
|
+
ALWAYS_PRIVATE: "ALWAYS_PRIVATE",
|
|
87
|
+
DEFAULT_PUBLIC: "DEFAULT_PUBLIC",
|
|
88
|
+
DEFAULT_PRIVATE: "DEFAULT_PRIVATE"
|
|
89
|
+
};
|
|
90
|
+
const OrganisationPatchBodyBodyDefaultProductPrivacy = {
|
|
91
|
+
ALWAYS_PUBLIC: "ALWAYS_PUBLIC",
|
|
92
|
+
ALWAYS_PRIVATE: "ALWAYS_PRIVATE",
|
|
93
|
+
DEFAULT_PUBLIC: "DEFAULT_PUBLIC",
|
|
94
|
+
DEFAULT_PRIVATE: "DEFAULT_PRIVATE"
|
|
95
|
+
};
|
|
96
|
+
const UnitPatchBodyBodyDefaultProductPrivacy = {
|
|
97
|
+
ALWAYS_PUBLIC: "ALWAYS_PUBLIC",
|
|
98
|
+
ALWAYS_PRIVATE: "ALWAYS_PRIVATE",
|
|
99
|
+
DEFAULT_PUBLIC: "DEFAULT_PUBLIC",
|
|
100
|
+
DEFAULT_PRIVATE: "DEFAULT_PRIVATE"
|
|
101
|
+
};
|
|
102
|
+
const UnitProductPostBodyBodyType = {
|
|
103
|
+
DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION: "DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION",
|
|
104
|
+
DATA_MANAGER_STORAGE_SUBSCRIPTION: "DATA_MANAGER_STORAGE_SUBSCRIPTION"
|
|
105
|
+
};
|
|
106
|
+
const UnitProductPostBodyBodyFlavour = {
|
|
107
|
+
EVALUATION: "EVALUATION",
|
|
108
|
+
BRONZE: "BRONZE",
|
|
109
|
+
SILVER: "SILVER",
|
|
110
|
+
GOLD: "GOLD"
|
|
111
|
+
};
|
|
112
|
+
const QFormatParameter = {
|
|
113
|
+
PROTOCOL_STRING: "PROTOCOL_STRING",
|
|
114
|
+
JSON_STRING: "JSON_STRING"
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
//#endregion
|
|
118
|
+
exports.AssetDetailScope = AssetDetailScope;
|
|
119
|
+
exports.AssetPostBodyBodyScope = AssetPostBodyBodyScope;
|
|
120
|
+
exports.ChargeSummaryType = ChargeSummaryType;
|
|
121
|
+
exports.EventStreamPostBodyBodyFormat = EventStreamPostBodyBodyFormat;
|
|
122
|
+
exports.EventStreamVersionGetResponseProtocol = EventStreamVersionGetResponseProtocol;
|
|
123
|
+
exports.MerchantDetailKind = MerchantDetailKind;
|
|
124
|
+
exports.MerchantSummaryKind = MerchantSummaryKind;
|
|
125
|
+
exports.OrganisationAllDetailDefaultProductPrivacy = OrganisationAllDetailDefaultProductPrivacy;
|
|
126
|
+
exports.OrganisationDetailDefaultProductPrivacy = OrganisationDetailDefaultProductPrivacy;
|
|
127
|
+
exports.OrganisationGetDefaultResponseDefaultProductPrivacy = OrganisationGetDefaultResponseDefaultProductPrivacy;
|
|
128
|
+
exports.OrganisationPatchBodyBodyDefaultProductPrivacy = OrganisationPatchBodyBodyDefaultProductPrivacy;
|
|
129
|
+
exports.OrganisationPostBodyBodyDefaultProductPrivacy = OrganisationPostBodyBodyDefaultProductPrivacy;
|
|
130
|
+
exports.OrganisationUnitPostBodyBodyDefaultProductPrivacy = OrganisationUnitPostBodyBodyDefaultProductPrivacy;
|
|
131
|
+
exports.ProcessingChargesMerchantKind = ProcessingChargesMerchantKind;
|
|
132
|
+
exports.ProductChargesGetResponseProductType = ProductChargesGetResponseProductType;
|
|
133
|
+
exports.ProductDetailFlavour = ProductDetailFlavour;
|
|
134
|
+
exports.ProductDetailType = ProductDetailType;
|
|
135
|
+
exports.ProductTypeServiceKind = ProductTypeServiceKind;
|
|
136
|
+
exports.QFormatParameter = QFormatParameter;
|
|
137
|
+
exports.UnitAllDetailDefaultProductPrivacy = UnitAllDetailDefaultProductPrivacy;
|
|
138
|
+
exports.UnitDetailDefaultProductPrivacy = UnitDetailDefaultProductPrivacy;
|
|
139
|
+
exports.UnitPatchBodyBodyDefaultProductPrivacy = UnitPatchBodyBodyDefaultProductPrivacy;
|
|
140
|
+
exports.UnitProductPostBodyBodyFlavour = UnitProductPostBodyBodyFlavour;
|
|
141
|
+
exports.UnitProductPostBodyBodyType = UnitProductPostBodyBodyType;
|
|
142
|
+
//# sourceMappingURL=api.schemas.cjs.map
|