@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
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { AsError, ProductPatchBodyBody, ProductUnitGetResponse, ProductsGetDefaultStorageCost, ProductsGetResponse, ProductsGetTypesResponse, UnitProductPostBodyBody, UnitProductPostResponse } from "../api.schemas.js";
|
|
2
|
+
import { ErrorType, customInstance } from "../../custom-instance.js";
|
|
3
|
+
import { DataTag, DefinedInitialDataOptions, DefinedUseQueryResult, QueryClient, QueryKey, UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult } from "@tanstack/react-query";
|
|
4
4
|
|
|
5
|
+
//#region src/api/product/product.d.ts
|
|
5
6
|
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
6
7
|
/**
|
|
7
8
|
* Gets Product Types you can purchase (subscribe to)
|
|
@@ -11,56 +12,56 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
|
|
11
12
|
declare const getProductTypes: (options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<ProductsGetTypesResponse>;
|
|
12
13
|
declare const getGetProductTypesQueryKey: () => readonly ["/product-type"];
|
|
13
14
|
declare const useGetProductTypesQueryOptions: <TData = Awaited<ReturnType<typeof getProductTypes>>, TError = ErrorType<AsError | void>>(options?: {
|
|
14
|
-
|
|
15
|
-
|
|
15
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData>>;
|
|
16
|
+
request?: SecondParameter<typeof customInstance>;
|
|
16
17
|
}) => UseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData> & {
|
|
17
|
-
|
|
18
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
18
19
|
};
|
|
19
20
|
type GetProductTypesQueryResult = NonNullable<Awaited<ReturnType<typeof getProductTypes>>>;
|
|
20
21
|
type GetProductTypesQueryError = ErrorType<AsError | void>;
|
|
21
22
|
declare function useGetProductTypes<TData = Awaited<ReturnType<typeof getProductTypes>>, TError = ErrorType<AsError | void>>(options: {
|
|
22
|
-
|
|
23
|
-
|
|
23
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, Awaited<ReturnType<typeof getProductTypes>>>, "initialData">;
|
|
24
|
+
request?: SecondParameter<typeof customInstance>;
|
|
24
25
|
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
25
|
-
|
|
26
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
26
27
|
};
|
|
27
28
|
declare function useGetProductTypes<TData = Awaited<ReturnType<typeof getProductTypes>>, TError = ErrorType<AsError | void>>(options?: {
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, Awaited<ReturnType<typeof getProductTypes>>>, "initialData">;
|
|
30
|
+
request?: SecondParameter<typeof customInstance>;
|
|
30
31
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
31
|
-
|
|
32
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
32
33
|
};
|
|
33
34
|
declare function useGetProductTypes<TData = Awaited<ReturnType<typeof getProductTypes>>, TError = ErrorType<AsError | void>>(options?: {
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData>>;
|
|
36
|
+
request?: SecondParameter<typeof customInstance>;
|
|
36
37
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
37
|
-
|
|
38
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
38
39
|
};
|
|
39
40
|
declare const useGetProductTypesSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getProductTypes>>, TError = ErrorType<AsError | void>>(options?: {
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData>>;
|
|
42
|
+
request?: SecondParameter<typeof customInstance>;
|
|
42
43
|
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData> & {
|
|
43
|
-
|
|
44
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
44
45
|
};
|
|
45
46
|
type GetProductTypesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getProductTypes>>>;
|
|
46
47
|
type GetProductTypesSuspenseQueryError = ErrorType<AsError | void>;
|
|
47
48
|
declare function useGetProductTypesSuspense<TData = Awaited<ReturnType<typeof getProductTypes>>, TError = ErrorType<AsError | void>>(options: {
|
|
48
|
-
|
|
49
|
-
|
|
49
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData>>;
|
|
50
|
+
request?: SecondParameter<typeof customInstance>;
|
|
50
51
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
51
|
-
|
|
52
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
52
53
|
};
|
|
53
54
|
declare function useGetProductTypesSuspense<TData = Awaited<ReturnType<typeof getProductTypes>>, TError = ErrorType<AsError | void>>(options?: {
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData>>;
|
|
56
|
+
request?: SecondParameter<typeof customInstance>;
|
|
56
57
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
57
|
-
|
|
58
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
58
59
|
};
|
|
59
60
|
declare function useGetProductTypesSuspense<TData = Awaited<ReturnType<typeof getProductTypes>>, TError = ErrorType<AsError | void>>(options?: {
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData>>;
|
|
62
|
+
request?: SecondParameter<typeof customInstance>;
|
|
62
63
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
63
|
-
|
|
64
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
64
65
|
};
|
|
65
66
|
/**
|
|
66
67
|
* The storage cost is returned along with its measurement units, typically a Coin value based on the the peak storage that was measured on each billable day.
|
|
@@ -70,56 +71,56 @@ declare function useGetProductTypesSuspense<TData = Awaited<ReturnType<typeof ge
|
|
|
70
71
|
declare const getProductDefaultStorageCost: (options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<ProductsGetDefaultStorageCost>;
|
|
71
72
|
declare const getGetProductDefaultStorageCostQueryKey: () => readonly ["/product-default-storage-cost"];
|
|
72
73
|
declare const useGetProductDefaultStorageCostQueryOptions: <TData = Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError = ErrorType<AsError | void>>(options?: {
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, TData>>;
|
|
75
|
+
request?: SecondParameter<typeof customInstance>;
|
|
75
76
|
}) => UseQueryOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, TData> & {
|
|
76
|
-
|
|
77
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
77
78
|
};
|
|
78
79
|
type GetProductDefaultStorageCostQueryResult = NonNullable<Awaited<ReturnType<typeof getProductDefaultStorageCost>>>;
|
|
79
80
|
type GetProductDefaultStorageCostQueryError = ErrorType<AsError | void>;
|
|
80
81
|
declare function useGetProductDefaultStorageCost<TData = Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError = ErrorType<AsError | void>>(options: {
|
|
81
|
-
|
|
82
|
-
|
|
82
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, Awaited<ReturnType<typeof getProductDefaultStorageCost>>>, "initialData">;
|
|
83
|
+
request?: SecondParameter<typeof customInstance>;
|
|
83
84
|
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
84
|
-
|
|
85
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
85
86
|
};
|
|
86
87
|
declare function useGetProductDefaultStorageCost<TData = Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError = ErrorType<AsError | void>>(options?: {
|
|
87
|
-
|
|
88
|
-
|
|
88
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, Awaited<ReturnType<typeof getProductDefaultStorageCost>>>, "initialData">;
|
|
89
|
+
request?: SecondParameter<typeof customInstance>;
|
|
89
90
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
90
|
-
|
|
91
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
91
92
|
};
|
|
92
93
|
declare function useGetProductDefaultStorageCost<TData = Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError = ErrorType<AsError | void>>(options?: {
|
|
93
|
-
|
|
94
|
-
|
|
94
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, TData>>;
|
|
95
|
+
request?: SecondParameter<typeof customInstance>;
|
|
95
96
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
96
|
-
|
|
97
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
97
98
|
};
|
|
98
99
|
declare const useGetProductDefaultStorageCostSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError = ErrorType<AsError | void>>(options?: {
|
|
99
|
-
|
|
100
|
-
|
|
100
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, TData>>;
|
|
101
|
+
request?: SecondParameter<typeof customInstance>;
|
|
101
102
|
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, TData> & {
|
|
102
|
-
|
|
103
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
103
104
|
};
|
|
104
105
|
type GetProductDefaultStorageCostSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getProductDefaultStorageCost>>>;
|
|
105
106
|
type GetProductDefaultStorageCostSuspenseQueryError = ErrorType<AsError | void>;
|
|
106
107
|
declare function useGetProductDefaultStorageCostSuspense<TData = Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError = ErrorType<AsError | void>>(options: {
|
|
107
|
-
|
|
108
|
-
|
|
108
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, TData>>;
|
|
109
|
+
request?: SecondParameter<typeof customInstance>;
|
|
109
110
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
110
|
-
|
|
111
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
111
112
|
};
|
|
112
113
|
declare function useGetProductDefaultStorageCostSuspense<TData = Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError = ErrorType<AsError | void>>(options?: {
|
|
113
|
-
|
|
114
|
-
|
|
114
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, TData>>;
|
|
115
|
+
request?: SecondParameter<typeof customInstance>;
|
|
115
116
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
116
|
-
|
|
117
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
117
118
|
};
|
|
118
119
|
declare function useGetProductDefaultStorageCostSuspense<TData = Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError = ErrorType<AsError | void>>(options?: {
|
|
119
|
-
|
|
120
|
-
|
|
120
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, TData>>;
|
|
121
|
+
request?: SecondParameter<typeof customInstance>;
|
|
121
122
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
122
|
-
|
|
123
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
123
124
|
};
|
|
124
125
|
/**
|
|
125
126
|
* Gets Products you have access to, across all **Units** and **Organisations**
|
|
@@ -129,56 +130,56 @@ declare function useGetProductDefaultStorageCostSuspense<TData = Awaited<ReturnT
|
|
|
129
130
|
declare const getProducts: (options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<ProductsGetResponse>;
|
|
130
131
|
declare const getGetProductsQueryKey: () => readonly ["/product"];
|
|
131
132
|
declare const useGetProductsQueryOptions: <TData = Awaited<ReturnType<typeof getProducts>>, TError = ErrorType<AsError | void>>(options?: {
|
|
132
|
-
|
|
133
|
-
|
|
133
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData>>;
|
|
134
|
+
request?: SecondParameter<typeof customInstance>;
|
|
134
135
|
}) => UseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData> & {
|
|
135
|
-
|
|
136
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
136
137
|
};
|
|
137
138
|
type GetProductsQueryResult = NonNullable<Awaited<ReturnType<typeof getProducts>>>;
|
|
138
139
|
type GetProductsQueryError = ErrorType<AsError | void>;
|
|
139
140
|
declare function useGetProducts<TData = Awaited<ReturnType<typeof getProducts>>, TError = ErrorType<AsError | void>>(options: {
|
|
140
|
-
|
|
141
|
-
|
|
141
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getProducts>>, TError, Awaited<ReturnType<typeof getProducts>>>, "initialData">;
|
|
142
|
+
request?: SecondParameter<typeof customInstance>;
|
|
142
143
|
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
143
|
-
|
|
144
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
144
145
|
};
|
|
145
146
|
declare function useGetProducts<TData = Awaited<ReturnType<typeof getProducts>>, TError = ErrorType<AsError | void>>(options?: {
|
|
146
|
-
|
|
147
|
-
|
|
147
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getProducts>>, TError, Awaited<ReturnType<typeof getProducts>>>, "initialData">;
|
|
148
|
+
request?: SecondParameter<typeof customInstance>;
|
|
148
149
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
149
|
-
|
|
150
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
150
151
|
};
|
|
151
152
|
declare function useGetProducts<TData = Awaited<ReturnType<typeof getProducts>>, TError = ErrorType<AsError | void>>(options?: {
|
|
152
|
-
|
|
153
|
-
|
|
153
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData>>;
|
|
154
|
+
request?: SecondParameter<typeof customInstance>;
|
|
154
155
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
155
|
-
|
|
156
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
156
157
|
};
|
|
157
158
|
declare const useGetProductsSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getProducts>>, TError = ErrorType<AsError | void>>(options?: {
|
|
158
|
-
|
|
159
|
-
|
|
159
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData>>;
|
|
160
|
+
request?: SecondParameter<typeof customInstance>;
|
|
160
161
|
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData> & {
|
|
161
|
-
|
|
162
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
162
163
|
};
|
|
163
164
|
type GetProductsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getProducts>>>;
|
|
164
165
|
type GetProductsSuspenseQueryError = ErrorType<AsError | void>;
|
|
165
166
|
declare function useGetProductsSuspense<TData = Awaited<ReturnType<typeof getProducts>>, TError = ErrorType<AsError | void>>(options: {
|
|
166
|
-
|
|
167
|
-
|
|
167
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData>>;
|
|
168
|
+
request?: SecondParameter<typeof customInstance>;
|
|
168
169
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
169
|
-
|
|
170
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
170
171
|
};
|
|
171
172
|
declare function useGetProductsSuspense<TData = Awaited<ReturnType<typeof getProducts>>, TError = ErrorType<AsError | void>>(options?: {
|
|
172
|
-
|
|
173
|
-
|
|
173
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData>>;
|
|
174
|
+
request?: SecondParameter<typeof customInstance>;
|
|
174
175
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
175
|
-
|
|
176
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
176
177
|
};
|
|
177
178
|
declare function useGetProductsSuspense<TData = Awaited<ReturnType<typeof getProducts>>, TError = ErrorType<AsError | void>>(options?: {
|
|
178
|
-
|
|
179
|
-
|
|
179
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData>>;
|
|
180
|
+
request?: SecondParameter<typeof customInstance>;
|
|
180
181
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
181
|
-
|
|
182
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
182
183
|
};
|
|
183
184
|
/**
|
|
184
185
|
* Gets Products you have access to based on an **Organisation**
|
|
@@ -186,58 +187,58 @@ declare function useGetProductsSuspense<TData = Awaited<ReturnType<typeof getPro
|
|
|
186
187
|
* @summary Gets Products for an Organisation
|
|
187
188
|
*/
|
|
188
189
|
declare const getProductsForOrganisation: (orgId: string, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<ProductsGetResponse>;
|
|
189
|
-
declare const getGetProductsForOrganisationQueryKey: (orgId
|
|
190
|
+
declare const getGetProductsForOrganisationQueryKey: (orgId?: string) => readonly [`/product/organisation/${string}`];
|
|
190
191
|
declare const useGetProductsForOrganisationQueryOptions: <TData = Awaited<ReturnType<typeof getProductsForOrganisation>>, TError = ErrorType<void | AsError>>(orgId: string, options?: {
|
|
191
|
-
|
|
192
|
-
|
|
192
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, TData>>;
|
|
193
|
+
request?: SecondParameter<typeof customInstance>;
|
|
193
194
|
}) => UseQueryOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, TData> & {
|
|
194
|
-
|
|
195
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
195
196
|
};
|
|
196
197
|
type GetProductsForOrganisationQueryResult = NonNullable<Awaited<ReturnType<typeof getProductsForOrganisation>>>;
|
|
197
198
|
type GetProductsForOrganisationQueryError = ErrorType<void | AsError>;
|
|
198
199
|
declare function useGetProductsForOrganisation<TData = Awaited<ReturnType<typeof getProductsForOrganisation>>, TError = ErrorType<void | AsError>>(orgId: string, options: {
|
|
199
|
-
|
|
200
|
-
|
|
200
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, Awaited<ReturnType<typeof getProductsForOrganisation>>>, "initialData">;
|
|
201
|
+
request?: SecondParameter<typeof customInstance>;
|
|
201
202
|
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
202
|
-
|
|
203
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
203
204
|
};
|
|
204
205
|
declare function useGetProductsForOrganisation<TData = Awaited<ReturnType<typeof getProductsForOrganisation>>, TError = ErrorType<void | AsError>>(orgId: string, options?: {
|
|
205
|
-
|
|
206
|
-
|
|
206
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, Awaited<ReturnType<typeof getProductsForOrganisation>>>, "initialData">;
|
|
207
|
+
request?: SecondParameter<typeof customInstance>;
|
|
207
208
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
208
|
-
|
|
209
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
209
210
|
};
|
|
210
211
|
declare function useGetProductsForOrganisation<TData = Awaited<ReturnType<typeof getProductsForOrganisation>>, TError = ErrorType<void | AsError>>(orgId: string, options?: {
|
|
211
|
-
|
|
212
|
-
|
|
212
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, TData>>;
|
|
213
|
+
request?: SecondParameter<typeof customInstance>;
|
|
213
214
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
214
|
-
|
|
215
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
215
216
|
};
|
|
216
217
|
declare const useGetProductsForOrganisationSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getProductsForOrganisation>>, TError = ErrorType<void | AsError>>(orgId: string, options?: {
|
|
217
|
-
|
|
218
|
-
|
|
218
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, TData>>;
|
|
219
|
+
request?: SecondParameter<typeof customInstance>;
|
|
219
220
|
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, TData> & {
|
|
220
|
-
|
|
221
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
221
222
|
};
|
|
222
223
|
type GetProductsForOrganisationSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getProductsForOrganisation>>>;
|
|
223
224
|
type GetProductsForOrganisationSuspenseQueryError = ErrorType<void | AsError>;
|
|
224
225
|
declare function useGetProductsForOrganisationSuspense<TData = Awaited<ReturnType<typeof getProductsForOrganisation>>, TError = ErrorType<void | AsError>>(orgId: string, options: {
|
|
225
|
-
|
|
226
|
-
|
|
226
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, TData>>;
|
|
227
|
+
request?: SecondParameter<typeof customInstance>;
|
|
227
228
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
228
|
-
|
|
229
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
229
230
|
};
|
|
230
231
|
declare function useGetProductsForOrganisationSuspense<TData = Awaited<ReturnType<typeof getProductsForOrganisation>>, TError = ErrorType<void | AsError>>(orgId: string, options?: {
|
|
231
|
-
|
|
232
|
-
|
|
232
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, TData>>;
|
|
233
|
+
request?: SecondParameter<typeof customInstance>;
|
|
233
234
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
234
|
-
|
|
235
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
235
236
|
};
|
|
236
237
|
declare function useGetProductsForOrganisationSuspense<TData = Awaited<ReturnType<typeof getProductsForOrganisation>>, TError = ErrorType<void | AsError>>(orgId: string, options?: {
|
|
237
|
-
|
|
238
|
-
|
|
238
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, TData>>;
|
|
239
|
+
request?: SecondParameter<typeof customInstance>;
|
|
239
240
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
240
|
-
|
|
241
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
241
242
|
};
|
|
242
243
|
/**
|
|
243
244
|
* Products are **Subscriptions** that you create in a **Unit** that allow you to use services provided by a **Merchant**. To create products you need to be a member of the **Unit** or the Unit's **Organisation**.
|
|
@@ -254,14 +255,14 @@ Users who are **Evaluators** can only create products in their Personal Unit, an
|
|
|
254
255
|
*/
|
|
255
256
|
declare const createUnitProduct: (unitId: string, unitProductPostBodyBody: UnitProductPostBodyBody, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<UnitProductPostResponse>;
|
|
256
257
|
declare const useCreateUnitProductMutationOptions: <TError = ErrorType<AsError | void>, TContext = unknown>(options?: {
|
|
257
|
-
|
|
258
|
-
unitId: string;
|
|
259
|
-
data: UnitProductPostBodyBody;
|
|
260
|
-
}, TContext>;
|
|
261
|
-
request?: SecondParameter<typeof customInstance>;
|
|
262
|
-
}) => UseMutationOptions<Awaited<ReturnType<typeof createUnitProduct>>, TError, {
|
|
258
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createUnitProduct>>, TError, {
|
|
263
259
|
unitId: string;
|
|
264
260
|
data: UnitProductPostBodyBody;
|
|
261
|
+
}, TContext>;
|
|
262
|
+
request?: SecondParameter<typeof customInstance>;
|
|
263
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof createUnitProduct>>, TError, {
|
|
264
|
+
unitId: string;
|
|
265
|
+
data: UnitProductPostBodyBody;
|
|
265
266
|
}, TContext>;
|
|
266
267
|
type CreateUnitProductMutationResult = NonNullable<Awaited<ReturnType<typeof createUnitProduct>>>;
|
|
267
268
|
type CreateUnitProductMutationBody = UnitProductPostBodyBody;
|
|
@@ -270,14 +271,14 @@ type CreateUnitProductMutationError = ErrorType<AsError | void>;
|
|
|
270
271
|
* @summary Creates a Product for a Unit
|
|
271
272
|
*/
|
|
272
273
|
declare const useCreateUnitProduct: <TError = ErrorType<AsError | void>, TContext = unknown>(options?: {
|
|
273
|
-
|
|
274
|
-
unitId: string;
|
|
275
|
-
data: UnitProductPostBodyBody;
|
|
276
|
-
}, TContext>;
|
|
277
|
-
request?: SecondParameter<typeof customInstance>;
|
|
278
|
-
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createUnitProduct>>, TError, {
|
|
274
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof createUnitProduct>>, TError, {
|
|
279
275
|
unitId: string;
|
|
280
276
|
data: UnitProductPostBodyBody;
|
|
277
|
+
}, TContext>;
|
|
278
|
+
request?: SecondParameter<typeof customInstance>;
|
|
279
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createUnitProduct>>, TError, {
|
|
280
|
+
unitId: string;
|
|
281
|
+
data: UnitProductPostBodyBody;
|
|
281
282
|
}, TContext>;
|
|
282
283
|
/**
|
|
283
284
|
* Gets products you have access to based on an Organisational **Unit**
|
|
@@ -285,58 +286,58 @@ declare const useCreateUnitProduct: <TError = ErrorType<AsError | void>, TContex
|
|
|
285
286
|
* @summary Gets Products for an Organisational Unit
|
|
286
287
|
*/
|
|
287
288
|
declare const getProductsForUnit: (unitId: string, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<ProductsGetResponse>;
|
|
288
|
-
declare const getGetProductsForUnitQueryKey: (unitId
|
|
289
|
+
declare const getGetProductsForUnitQueryKey: (unitId?: string) => readonly [`/product/unit/${string}`];
|
|
289
290
|
declare const useGetProductsForUnitQueryOptions: <TData = Awaited<ReturnType<typeof getProductsForUnit>>, TError = ErrorType<void | AsError>>(unitId: string, options?: {
|
|
290
|
-
|
|
291
|
-
|
|
291
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData>>;
|
|
292
|
+
request?: SecondParameter<typeof customInstance>;
|
|
292
293
|
}) => UseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData> & {
|
|
293
|
-
|
|
294
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
294
295
|
};
|
|
295
296
|
type GetProductsForUnitQueryResult = NonNullable<Awaited<ReturnType<typeof getProductsForUnit>>>;
|
|
296
297
|
type GetProductsForUnitQueryError = ErrorType<void | AsError>;
|
|
297
298
|
declare function useGetProductsForUnit<TData = Awaited<ReturnType<typeof getProductsForUnit>>, TError = ErrorType<void | AsError>>(unitId: string, options: {
|
|
298
|
-
|
|
299
|
-
|
|
299
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, Awaited<ReturnType<typeof getProductsForUnit>>>, "initialData">;
|
|
300
|
+
request?: SecondParameter<typeof customInstance>;
|
|
300
301
|
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
301
|
-
|
|
302
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
302
303
|
};
|
|
303
304
|
declare function useGetProductsForUnit<TData = Awaited<ReturnType<typeof getProductsForUnit>>, TError = ErrorType<void | AsError>>(unitId: string, options?: {
|
|
304
|
-
|
|
305
|
-
|
|
305
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, Awaited<ReturnType<typeof getProductsForUnit>>>, "initialData">;
|
|
306
|
+
request?: SecondParameter<typeof customInstance>;
|
|
306
307
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
307
|
-
|
|
308
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
308
309
|
};
|
|
309
310
|
declare function useGetProductsForUnit<TData = Awaited<ReturnType<typeof getProductsForUnit>>, TError = ErrorType<void | AsError>>(unitId: string, options?: {
|
|
310
|
-
|
|
311
|
-
|
|
311
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData>>;
|
|
312
|
+
request?: SecondParameter<typeof customInstance>;
|
|
312
313
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
313
|
-
|
|
314
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
314
315
|
};
|
|
315
316
|
declare const useGetProductsForUnitSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getProductsForUnit>>, TError = ErrorType<void | AsError>>(unitId: string, options?: {
|
|
316
|
-
|
|
317
|
-
|
|
317
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData>>;
|
|
318
|
+
request?: SecondParameter<typeof customInstance>;
|
|
318
319
|
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData> & {
|
|
319
|
-
|
|
320
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
320
321
|
};
|
|
321
322
|
type GetProductsForUnitSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getProductsForUnit>>>;
|
|
322
323
|
type GetProductsForUnitSuspenseQueryError = ErrorType<void | AsError>;
|
|
323
324
|
declare function useGetProductsForUnitSuspense<TData = Awaited<ReturnType<typeof getProductsForUnit>>, TError = ErrorType<void | AsError>>(unitId: string, options: {
|
|
324
|
-
|
|
325
|
-
|
|
325
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData>>;
|
|
326
|
+
request?: SecondParameter<typeof customInstance>;
|
|
326
327
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
327
|
-
|
|
328
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
328
329
|
};
|
|
329
330
|
declare function useGetProductsForUnitSuspense<TData = Awaited<ReturnType<typeof getProductsForUnit>>, TError = ErrorType<void | AsError>>(unitId: string, options?: {
|
|
330
|
-
|
|
331
|
-
|
|
331
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData>>;
|
|
332
|
+
request?: SecondParameter<typeof customInstance>;
|
|
332
333
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
333
|
-
|
|
334
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
334
335
|
};
|
|
335
336
|
declare function useGetProductsForUnitSuspense<TData = Awaited<ReturnType<typeof getProductsForUnit>>, TError = ErrorType<void | AsError>>(unitId: string, options?: {
|
|
336
|
-
|
|
337
|
-
|
|
337
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData>>;
|
|
338
|
+
request?: SecondParameter<typeof customInstance>;
|
|
338
339
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
339
|
-
|
|
340
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
340
341
|
};
|
|
341
342
|
/**
|
|
342
343
|
* Gets details of a specific Product that you have access to.
|
|
@@ -344,58 +345,58 @@ declare function useGetProductsForUnitSuspense<TData = Awaited<ReturnType<typeof
|
|
|
344
345
|
* @summary Gets a Product
|
|
345
346
|
*/
|
|
346
347
|
declare const getProduct: (productId: string, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<ProductUnitGetResponse>;
|
|
347
|
-
declare const getGetProductQueryKey: (productId
|
|
348
|
+
declare const getGetProductQueryKey: (productId?: string) => readonly [`/product/${string}`];
|
|
348
349
|
declare const useGetProductQueryOptions: <TData = Awaited<ReturnType<typeof getProduct>>, TError = ErrorType<AsError | void>>(productId: string, options?: {
|
|
349
|
-
|
|
350
|
-
|
|
350
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>>;
|
|
351
|
+
request?: SecondParameter<typeof customInstance>;
|
|
351
352
|
}) => UseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData> & {
|
|
352
|
-
|
|
353
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
353
354
|
};
|
|
354
355
|
type GetProductQueryResult = NonNullable<Awaited<ReturnType<typeof getProduct>>>;
|
|
355
356
|
type GetProductQueryError = ErrorType<AsError | void>;
|
|
356
357
|
declare function useGetProduct<TData = Awaited<ReturnType<typeof getProduct>>, TError = ErrorType<AsError | void>>(productId: string, options: {
|
|
357
|
-
|
|
358
|
-
|
|
358
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getProduct>>, TError, Awaited<ReturnType<typeof getProduct>>>, "initialData">;
|
|
359
|
+
request?: SecondParameter<typeof customInstance>;
|
|
359
360
|
}, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
|
|
360
|
-
|
|
361
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
361
362
|
};
|
|
362
363
|
declare function useGetProduct<TData = Awaited<ReturnType<typeof getProduct>>, TError = ErrorType<AsError | void>>(productId: string, options?: {
|
|
363
|
-
|
|
364
|
-
|
|
364
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getProduct>>, TError, Awaited<ReturnType<typeof getProduct>>>, "initialData">;
|
|
365
|
+
request?: SecondParameter<typeof customInstance>;
|
|
365
366
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
366
|
-
|
|
367
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
367
368
|
};
|
|
368
369
|
declare function useGetProduct<TData = Awaited<ReturnType<typeof getProduct>>, TError = ErrorType<AsError | void>>(productId: string, options?: {
|
|
369
|
-
|
|
370
|
-
|
|
370
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>>;
|
|
371
|
+
request?: SecondParameter<typeof customInstance>;
|
|
371
372
|
}, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
|
|
372
|
-
|
|
373
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
373
374
|
};
|
|
374
375
|
declare const useGetProductSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getProduct>>, TError = ErrorType<AsError | void>>(productId: string, options?: {
|
|
375
|
-
|
|
376
|
-
|
|
376
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>>;
|
|
377
|
+
request?: SecondParameter<typeof customInstance>;
|
|
377
378
|
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData> & {
|
|
378
|
-
|
|
379
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
379
380
|
};
|
|
380
381
|
type GetProductSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getProduct>>>;
|
|
381
382
|
type GetProductSuspenseQueryError = ErrorType<AsError | void>;
|
|
382
383
|
declare function useGetProductSuspense<TData = Awaited<ReturnType<typeof getProduct>>, TError = ErrorType<AsError | void>>(productId: string, options: {
|
|
383
|
-
|
|
384
|
-
|
|
384
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>>;
|
|
385
|
+
request?: SecondParameter<typeof customInstance>;
|
|
385
386
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
386
|
-
|
|
387
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
387
388
|
};
|
|
388
389
|
declare function useGetProductSuspense<TData = Awaited<ReturnType<typeof getProduct>>, TError = ErrorType<AsError | void>>(productId: string, options?: {
|
|
389
|
-
|
|
390
|
-
|
|
390
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>>;
|
|
391
|
+
request?: SecondParameter<typeof customInstance>;
|
|
391
392
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
392
|
-
|
|
393
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
393
394
|
};
|
|
394
395
|
declare function useGetProductSuspense<TData = Awaited<ReturnType<typeof getProduct>>, TError = ErrorType<AsError | void>>(productId: string, options?: {
|
|
395
|
-
|
|
396
|
-
|
|
396
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>>;
|
|
397
|
+
request?: SecondParameter<typeof customInstance>;
|
|
397
398
|
}, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
|
|
398
|
-
|
|
399
|
+
queryKey: DataTag<QueryKey, TData, TError>;
|
|
399
400
|
};
|
|
400
401
|
/**
|
|
401
402
|
* You need access to the Product and, if the Product is *claimable* the claim must be removed before the Product can be removed. An example claimable Product is a `DATA_MANAGER_PROJECT_TIER_SUBSCRIPTION` where the *claimable* commodity is a Data Manager **Project**. In this case you will need to delete the Data Manager **Project** before you can delete the Account Server **Product**.
|
|
@@ -404,12 +405,12 @@ declare function useGetProductSuspense<TData = Awaited<ReturnType<typeof getProd
|
|
|
404
405
|
*/
|
|
405
406
|
declare const deleteProduct: (productId: string, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
406
407
|
declare const useDeleteProductMutationOptions: <TError = ErrorType<void | AsError>, TContext = unknown>(options?: {
|
|
407
|
-
|
|
408
|
-
productId: string;
|
|
409
|
-
}, TContext>;
|
|
410
|
-
request?: SecondParameter<typeof customInstance>;
|
|
411
|
-
}) => UseMutationOptions<Awaited<ReturnType<typeof deleteProduct>>, TError, {
|
|
408
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteProduct>>, TError, {
|
|
412
409
|
productId: string;
|
|
410
|
+
}, TContext>;
|
|
411
|
+
request?: SecondParameter<typeof customInstance>;
|
|
412
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof deleteProduct>>, TError, {
|
|
413
|
+
productId: string;
|
|
413
414
|
}, TContext>;
|
|
414
415
|
type DeleteProductMutationResult = NonNullable<Awaited<ReturnType<typeof deleteProduct>>>;
|
|
415
416
|
type DeleteProductMutationError = ErrorType<void | AsError>;
|
|
@@ -417,12 +418,12 @@ type DeleteProductMutationError = ErrorType<void | AsError>;
|
|
|
417
418
|
* @summary Deletes an existing Product
|
|
418
419
|
*/
|
|
419
420
|
declare const useDeleteProduct: <TError = ErrorType<void | AsError>, TContext = unknown>(options?: {
|
|
420
|
-
|
|
421
|
-
productId: string;
|
|
422
|
-
}, TContext>;
|
|
423
|
-
request?: SecondParameter<typeof customInstance>;
|
|
424
|
-
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteProduct>>, TError, {
|
|
421
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof deleteProduct>>, TError, {
|
|
425
422
|
productId: string;
|
|
423
|
+
}, TContext>;
|
|
424
|
+
request?: SecondParameter<typeof customInstance>;
|
|
425
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteProduct>>, TError, {
|
|
426
|
+
productId: string;
|
|
426
427
|
}, TContext>;
|
|
427
428
|
/**
|
|
428
429
|
* Used to update some adjustable parameters of a Product, i.e. to extend its **Allowance** or **Limit**.
|
|
@@ -435,14 +436,14 @@ At the moment we only support Products associated with the Data Manager, and the
|
|
|
435
436
|
*/
|
|
436
437
|
declare const patchProduct: (productId: string, productPatchBodyBody: ProductPatchBodyBody, options?: SecondParameter<typeof customInstance>) => Promise<void>;
|
|
437
438
|
declare const usePatchProductMutationOptions: <TError = ErrorType<void | AsError>, TContext = unknown>(options?: {
|
|
438
|
-
|
|
439
|
-
productId: string;
|
|
440
|
-
data: ProductPatchBodyBody;
|
|
441
|
-
}, TContext>;
|
|
442
|
-
request?: SecondParameter<typeof customInstance>;
|
|
443
|
-
}) => UseMutationOptions<Awaited<ReturnType<typeof patchProduct>>, TError, {
|
|
439
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof patchProduct>>, TError, {
|
|
444
440
|
productId: string;
|
|
445
441
|
data: ProductPatchBodyBody;
|
|
442
|
+
}, TContext>;
|
|
443
|
+
request?: SecondParameter<typeof customInstance>;
|
|
444
|
+
}) => UseMutationOptions<Awaited<ReturnType<typeof patchProduct>>, TError, {
|
|
445
|
+
productId: string;
|
|
446
|
+
data: ProductPatchBodyBody;
|
|
446
447
|
}, TContext>;
|
|
447
448
|
type PatchProductMutationResult = NonNullable<Awaited<ReturnType<typeof patchProduct>>>;
|
|
448
449
|
type PatchProductMutationBody = ProductPatchBodyBody;
|
|
@@ -451,14 +452,15 @@ type PatchProductMutationError = ErrorType<void | AsError>;
|
|
|
451
452
|
* @summary Adjust an existing Product
|
|
452
453
|
*/
|
|
453
454
|
declare const usePatchProduct: <TError = ErrorType<void | AsError>, TContext = unknown>(options?: {
|
|
454
|
-
|
|
455
|
-
productId: string;
|
|
456
|
-
data: ProductPatchBodyBody;
|
|
457
|
-
}, TContext>;
|
|
458
|
-
request?: SecondParameter<typeof customInstance>;
|
|
459
|
-
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof patchProduct>>, TError, {
|
|
455
|
+
mutation?: UseMutationOptions<Awaited<ReturnType<typeof patchProduct>>, TError, {
|
|
460
456
|
productId: string;
|
|
461
457
|
data: ProductPatchBodyBody;
|
|
458
|
+
}, TContext>;
|
|
459
|
+
request?: SecondParameter<typeof customInstance>;
|
|
460
|
+
}, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof patchProduct>>, TError, {
|
|
461
|
+
productId: string;
|
|
462
|
+
data: ProductPatchBodyBody;
|
|
462
463
|
}, TContext>;
|
|
463
|
-
|
|
464
|
-
export {
|
|
464
|
+
//#endregion
|
|
465
|
+
export { CreateUnitProductMutationBody, CreateUnitProductMutationError, CreateUnitProductMutationResult, DeleteProductMutationError, DeleteProductMutationResult, GetProductDefaultStorageCostQueryError, GetProductDefaultStorageCostQueryResult, GetProductDefaultStorageCostSuspenseQueryError, GetProductDefaultStorageCostSuspenseQueryResult, GetProductQueryError, GetProductQueryResult, GetProductSuspenseQueryError, GetProductSuspenseQueryResult, GetProductTypesQueryError, GetProductTypesQueryResult, GetProductTypesSuspenseQueryError, GetProductTypesSuspenseQueryResult, GetProductsForOrganisationQueryError, GetProductsForOrganisationQueryResult, GetProductsForOrganisationSuspenseQueryError, GetProductsForOrganisationSuspenseQueryResult, GetProductsForUnitQueryError, GetProductsForUnitQueryResult, GetProductsForUnitSuspenseQueryError, GetProductsForUnitSuspenseQueryResult, GetProductsQueryError, GetProductsQueryResult, GetProductsSuspenseQueryError, GetProductsSuspenseQueryResult, PatchProductMutationBody, PatchProductMutationError, PatchProductMutationResult, createUnitProduct, deleteProduct, getGetProductDefaultStorageCostQueryKey, getGetProductQueryKey, getGetProductTypesQueryKey, getGetProductsForOrganisationQueryKey, getGetProductsForUnitQueryKey, getGetProductsQueryKey, getProduct, getProductDefaultStorageCost, getProductTypes, getProducts, getProductsForOrganisation, getProductsForUnit, patchProduct, useCreateUnitProduct, useCreateUnitProductMutationOptions, useDeleteProduct, useDeleteProductMutationOptions, useGetProduct, useGetProductDefaultStorageCost, useGetProductDefaultStorageCostQueryOptions, useGetProductDefaultStorageCostSuspense, useGetProductDefaultStorageCostSuspenseQueryOptions, useGetProductQueryOptions, useGetProductSuspense, useGetProductSuspenseQueryOptions, useGetProductTypes, useGetProductTypesQueryOptions, useGetProductTypesSuspense, useGetProductTypesSuspenseQueryOptions, useGetProducts, useGetProductsForOrganisation, useGetProductsForOrganisationQueryOptions, useGetProductsForOrganisationSuspense, useGetProductsForOrganisationSuspenseQueryOptions, useGetProductsForUnit, useGetProductsForUnitQueryOptions, useGetProductsForUnitSuspense, useGetProductsForUnitSuspenseQueryOptions, useGetProductsQueryOptions, useGetProductsSuspense, useGetProductsSuspenseQueryOptions, usePatchProduct, usePatchProductMutationOptions };
|
|
466
|
+
//# sourceMappingURL=product.d.ts.map
|