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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/dist/api/actions/actions.cjs +4 -4
  2. package/dist/api/actions/actions.cjs.map +1 -1
  3. package/dist/api/actions/actions.d.cts +35 -17
  4. package/dist/api/actions/actions.d.cts.map +1 -1
  5. package/dist/api/actions/actions.d.ts +35 -17
  6. package/dist/api/actions/actions.d.ts.map +1 -1
  7. package/dist/api/actions/actions.fetch.cjs +4 -4
  8. package/dist/api/actions/actions.fetch.cjs.map +1 -1
  9. package/dist/api/actions/actions.fetch.d.cts +35 -17
  10. package/dist/api/actions/actions.fetch.d.cts.map +1 -1
  11. package/dist/api/actions/actions.fetch.d.ts +35 -17
  12. package/dist/api/actions/actions.fetch.d.ts.map +1 -1
  13. package/dist/api/actions/actions.fetch.js +4 -4
  14. package/dist/api/actions/actions.fetch.js.map +1 -1
  15. package/dist/api/actions/actions.js +4 -4
  16. package/dist/api/actions/actions.js.map +1 -1
  17. package/dist/api/asset/asset.cjs +22 -22
  18. package/dist/api/asset/asset.cjs.map +1 -1
  19. package/dist/api/asset/asset.d.cts +76 -40
  20. package/dist/api/asset/asset.d.cts.map +1 -1
  21. package/dist/api/asset/asset.d.ts +76 -40
  22. package/dist/api/asset/asset.d.ts.map +1 -1
  23. package/dist/api/asset/asset.fetch.cjs +22 -22
  24. package/dist/api/asset/asset.fetch.cjs.map +1 -1
  25. package/dist/api/asset/asset.fetch.d.cts +76 -40
  26. package/dist/api/asset/asset.fetch.d.cts.map +1 -1
  27. package/dist/api/asset/asset.fetch.d.ts +76 -40
  28. package/dist/api/asset/asset.fetch.d.ts.map +1 -1
  29. package/dist/api/asset/asset.fetch.js +22 -22
  30. package/dist/api/asset/asset.fetch.js.map +1 -1
  31. package/dist/api/asset/asset.js +22 -22
  32. package/dist/api/asset/asset.js.map +1 -1
  33. package/dist/api/charges/charges.cjs +16 -16
  34. package/dist/api/charges/charges.cjs.map +1 -1
  35. package/dist/api/charges/charges.d.cts +137 -65
  36. package/dist/api/charges/charges.d.cts.map +1 -1
  37. package/dist/api/charges/charges.d.ts +137 -65
  38. package/dist/api/charges/charges.d.ts.map +1 -1
  39. package/dist/api/charges/charges.fetch.cjs +16 -16
  40. package/dist/api/charges/charges.fetch.cjs.map +1 -1
  41. package/dist/api/charges/charges.fetch.d.cts +137 -65
  42. package/dist/api/charges/charges.fetch.d.cts.map +1 -1
  43. package/dist/api/charges/charges.fetch.d.ts +137 -65
  44. package/dist/api/charges/charges.fetch.d.ts.map +1 -1
  45. package/dist/api/charges/charges.fetch.js +16 -16
  46. package/dist/api/charges/charges.fetch.js.map +1 -1
  47. package/dist/api/charges/charges.js +16 -16
  48. package/dist/api/charges/charges.js.map +1 -1
  49. package/dist/api/event-stream/event-stream.cjs +12 -12
  50. package/dist/api/event-stream/event-stream.cjs.map +1 -1
  51. package/dist/api/event-stream/event-stream.d.cts +71 -35
  52. package/dist/api/event-stream/event-stream.d.cts.map +1 -1
  53. package/dist/api/event-stream/event-stream.d.ts +71 -35
  54. package/dist/api/event-stream/event-stream.d.ts.map +1 -1
  55. package/dist/api/event-stream/event-stream.fetch.cjs +12 -12
  56. package/dist/api/event-stream/event-stream.fetch.cjs.map +1 -1
  57. package/dist/api/event-stream/event-stream.fetch.d.cts +71 -35
  58. package/dist/api/event-stream/event-stream.fetch.d.cts.map +1 -1
  59. package/dist/api/event-stream/event-stream.fetch.d.ts +71 -35
  60. package/dist/api/event-stream/event-stream.fetch.d.ts.map +1 -1
  61. package/dist/api/event-stream/event-stream.fetch.js +12 -12
  62. package/dist/api/event-stream/event-stream.fetch.js.map +1 -1
  63. package/dist/api/event-stream/event-stream.js +12 -12
  64. package/dist/api/event-stream/event-stream.js.map +1 -1
  65. package/dist/api/merchant/merchant.cjs +8 -8
  66. package/dist/api/merchant/merchant.cjs.map +1 -1
  67. package/dist/api/merchant/merchant.d.cts +69 -33
  68. package/dist/api/merchant/merchant.d.cts.map +1 -1
  69. package/dist/api/merchant/merchant.d.ts +69 -33
  70. package/dist/api/merchant/merchant.d.ts.map +1 -1
  71. package/dist/api/merchant/merchant.fetch.cjs +8 -8
  72. package/dist/api/merchant/merchant.fetch.cjs.map +1 -1
  73. package/dist/api/merchant/merchant.fetch.d.cts +69 -33
  74. package/dist/api/merchant/merchant.fetch.d.cts.map +1 -1
  75. package/dist/api/merchant/merchant.fetch.d.ts +69 -33
  76. package/dist/api/merchant/merchant.fetch.d.ts.map +1 -1
  77. package/dist/api/merchant/merchant.fetch.js +8 -8
  78. package/dist/api/merchant/merchant.fetch.js.map +1 -1
  79. package/dist/api/merchant/merchant.js +8 -8
  80. package/dist/api/merchant/merchant.js.map +1 -1
  81. package/dist/api/organisation/organisation.cjs +18 -18
  82. package/dist/api/organisation/organisation.cjs.map +1 -1
  83. package/dist/api/organisation/organisation.d.cts +106 -52
  84. package/dist/api/organisation/organisation.d.cts.map +1 -1
  85. package/dist/api/organisation/organisation.d.ts +106 -52
  86. package/dist/api/organisation/organisation.d.ts.map +1 -1
  87. package/dist/api/organisation/organisation.fetch.cjs +18 -18
  88. package/dist/api/organisation/organisation.fetch.cjs.map +1 -1
  89. package/dist/api/organisation/organisation.fetch.d.cts +106 -52
  90. package/dist/api/organisation/organisation.fetch.d.cts.map +1 -1
  91. package/dist/api/organisation/organisation.fetch.d.ts +106 -52
  92. package/dist/api/organisation/organisation.fetch.d.ts.map +1 -1
  93. package/dist/api/organisation/organisation.fetch.js +18 -18
  94. package/dist/api/organisation/organisation.fetch.js.map +1 -1
  95. package/dist/api/organisation/organisation.js +18 -18
  96. package/dist/api/organisation/organisation.js.map +1 -1
  97. package/dist/api/product/product.cjs +30 -30
  98. package/dist/api/product/product.cjs.map +1 -1
  99. package/dist/api/product/product.d.cts +208 -100
  100. package/dist/api/product/product.d.cts.map +1 -1
  101. package/dist/api/product/product.d.ts +208 -100
  102. package/dist/api/product/product.d.ts.map +1 -1
  103. package/dist/api/product/product.fetch.cjs +30 -30
  104. package/dist/api/product/product.fetch.cjs.map +1 -1
  105. package/dist/api/product/product.fetch.d.cts +208 -100
  106. package/dist/api/product/product.fetch.d.cts.map +1 -1
  107. package/dist/api/product/product.fetch.d.ts +208 -100
  108. package/dist/api/product/product.fetch.d.ts.map +1 -1
  109. package/dist/api/product/product.fetch.js +30 -30
  110. package/dist/api/product/product.fetch.js.map +1 -1
  111. package/dist/api/product/product.js +30 -30
  112. package/dist/api/product/product.js.map +1 -1
  113. package/dist/api/state/state.cjs +4 -4
  114. package/dist/api/state/state.cjs.map +1 -1
  115. package/dist/api/state/state.d.cts +35 -17
  116. package/dist/api/state/state.d.cts.map +1 -1
  117. package/dist/api/state/state.d.ts +35 -17
  118. package/dist/api/state/state.d.ts.map +1 -1
  119. package/dist/api/state/state.fetch.cjs +4 -4
  120. package/dist/api/state/state.fetch.cjs.map +1 -1
  121. package/dist/api/state/state.fetch.d.cts +35 -17
  122. package/dist/api/state/state.fetch.d.cts.map +1 -1
  123. package/dist/api/state/state.fetch.d.ts +35 -17
  124. package/dist/api/state/state.fetch.d.ts.map +1 -1
  125. package/dist/api/state/state.fetch.js +4 -4
  126. package/dist/api/state/state.fetch.js.map +1 -1
  127. package/dist/api/state/state.js +4 -4
  128. package/dist/api/state/state.js.map +1 -1
  129. package/dist/api/unit/unit.cjs +30 -30
  130. package/dist/api/unit/unit.cjs.map +1 -1
  131. package/dist/api/unit/unit.d.cts +144 -72
  132. package/dist/api/unit/unit.d.cts.map +1 -1
  133. package/dist/api/unit/unit.d.ts +144 -72
  134. package/dist/api/unit/unit.d.ts.map +1 -1
  135. package/dist/api/unit/unit.fetch.cjs +30 -30
  136. package/dist/api/unit/unit.fetch.cjs.map +1 -1
  137. package/dist/api/unit/unit.fetch.d.cts +144 -72
  138. package/dist/api/unit/unit.fetch.d.cts.map +1 -1
  139. package/dist/api/unit/unit.fetch.d.ts +144 -72
  140. package/dist/api/unit/unit.fetch.d.ts.map +1 -1
  141. package/dist/api/unit/unit.fetch.js +30 -30
  142. package/dist/api/unit/unit.fetch.js.map +1 -1
  143. package/dist/api/unit/unit.js +30 -30
  144. package/dist/api/unit/unit.js.map +1 -1
  145. package/dist/api/user/user.cjs +20 -20
  146. package/dist/api/user/user.cjs.map +1 -1
  147. package/dist/api/user/user.d.cts +107 -53
  148. package/dist/api/user/user.d.cts.map +1 -1
  149. package/dist/api/user/user.d.ts +107 -53
  150. package/dist/api/user/user.d.ts.map +1 -1
  151. package/dist/api/user/user.fetch.cjs +20 -20
  152. package/dist/api/user/user.fetch.cjs.map +1 -1
  153. package/dist/api/user/user.fetch.d.cts +107 -53
  154. package/dist/api/user/user.fetch.d.cts.map +1 -1
  155. package/dist/api/user/user.fetch.d.ts +107 -53
  156. package/dist/api/user/user.fetch.d.ts.map +1 -1
  157. package/dist/api/user/user.fetch.js +20 -20
  158. package/dist/api/user/user.fetch.js.map +1 -1
  159. package/dist/api/user/user.js +20 -20
  160. package/dist/api/user/user.js.map +1 -1
  161. package/package.json +7 -5
  162. package/src/api/actions/actions.fetch.ts +103 -12
  163. package/src/api/actions/actions.ts +103 -12
  164. package/src/api/asset/asset.fetch.ts +303 -94
  165. package/src/api/asset/asset.ts +303 -94
  166. package/src/api/charges/charges.fetch.ts +456 -54
  167. package/src/api/charges/charges.ts +456 -54
  168. package/src/api/event-stream/event-stream.fetch.ts +262 -58
  169. package/src/api/event-stream/event-stream.ts +262 -58
  170. package/src/api/merchant/merchant.fetch.ts +212 -28
  171. package/src/api/merchant/merchant.ts +212 -28
  172. package/src/api/organisation/organisation.fetch.ts +381 -86
  173. package/src/api/organisation/organisation.ts +381 -86
  174. package/src/api/product/product.fetch.ts +724 -130
  175. package/src/api/product/product.ts +724 -130
  176. package/src/api/state/state.fetch.ts +105 -16
  177. package/src/api/state/state.ts +105 -16
  178. package/src/api/unit/unit.fetch.ts +521 -146
  179. package/src/api/unit/unit.ts +521 -146
  180. package/src/api/user/user.fetch.ts +401 -101
  181. package/src/api/user/user.ts +401 -101
  182. package/tests/README.md +98 -0
  183. package/tests/component.test.tsx +191 -0
  184. package/tests/tsconfig.json +7 -0
  185. package/tests/type-tests.tsx +196 -0
@@ -7,7 +7,7 @@ import { ProductsGetTypesResponse } from "../api-schemas/productsGetTypesRespons
7
7
  import { UnitProductPostBodyBody } from "../api-schemas/unitProductPostBodyBody.js";
8
8
  import { UnitProductPostResponse } from "../api-schemas/unitProductPostResponse.js";
9
9
  import { ErrorType, customInstance } from "../../custom-axios.js";
10
- import { InvalidateOptions, QueryClient, QueryKey, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult } from "@tanstack/react-query";
10
+ import { DataTag, DefinedInitialDataOptions, DefinedUseQueryResult, InvalidateOptions, QueryClient, QueryKey, UndefinedInitialDataOptions, UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult } from "@tanstack/react-query";
11
11
 
12
12
  //#region src/api/product/product.d.ts
13
13
  type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
@@ -19,42 +19,60 @@ type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
19
19
  declare const getProductTypes: (options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<ProductsGetTypesResponse>;
20
20
  declare const getGetProductTypesQueryKey: () => readonly ["account-server", "product-type"];
21
21
  declare const getGetProductTypesQueryOptions: <TData = Awaited<ReturnType<typeof getProductTypes>>, TError = ErrorType<AsError | void>>(options?: {
22
- query?: UseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData>;
22
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData>>;
23
23
  request?: SecondParameter<typeof customInstance>;
24
24
  }) => UseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData> & {
25
- queryKey: QueryKey;
25
+ queryKey: DataTag<QueryKey, TData>;
26
26
  };
27
27
  type GetProductTypesQueryResult = NonNullable<Awaited<ReturnType<typeof getProductTypes>>>;
28
28
  type GetProductTypesQueryError = ErrorType<AsError | void>;
29
- /**
30
- * @summary Gets all Product Types
31
- */
29
+ declare function useGetProductTypes<TData = Awaited<ReturnType<typeof getProductTypes>>, TError = ErrorType<AsError | void>>(options: {
30
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, Awaited<ReturnType<typeof getProductTypes>>>, "initialData">;
31
+ request?: SecondParameter<typeof customInstance>;
32
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
33
+ queryKey: DataTag<QueryKey, TData>;
34
+ };
35
+ declare function useGetProductTypes<TData = Awaited<ReturnType<typeof getProductTypes>>, TError = ErrorType<AsError | void>>(options?: {
36
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, Awaited<ReturnType<typeof getProductTypes>>>, "initialData">;
37
+ request?: SecondParameter<typeof customInstance>;
38
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
39
+ queryKey: DataTag<QueryKey, TData>;
40
+ };
32
41
  declare function useGetProductTypes<TData = Awaited<ReturnType<typeof getProductTypes>>, TError = ErrorType<AsError | void>>(options?: {
33
- query?: UseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData>;
42
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData>>;
34
43
  request?: SecondParameter<typeof customInstance>;
35
- }): UseQueryResult<TData, TError> & {
36
- queryKey: QueryKey;
44
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
45
+ queryKey: DataTag<QueryKey, TData>;
37
46
  };
38
47
  /**
39
48
  * @summary Gets all Product Types
40
49
  */
41
50
  declare const invalidateGetProductTypes: (queryClient: QueryClient, options?: InvalidateOptions) => Promise<QueryClient>;
42
51
  declare const getGetProductTypesSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getProductTypes>>, TError = ErrorType<AsError | void>>(options?: {
43
- query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData>;
52
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData>>;
44
53
  request?: SecondParameter<typeof customInstance>;
45
54
  }) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData> & {
46
- queryKey: QueryKey;
55
+ queryKey: DataTag<QueryKey, TData>;
47
56
  };
48
57
  type GetProductTypesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getProductTypes>>>;
49
58
  type GetProductTypesSuspenseQueryError = ErrorType<AsError | void>;
50
- /**
51
- * @summary Gets all Product Types
52
- */
59
+ declare function useGetProductTypesSuspense<TData = Awaited<ReturnType<typeof getProductTypes>>, TError = ErrorType<AsError | void>>(options: {
60
+ query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData>>;
61
+ request?: SecondParameter<typeof customInstance>;
62
+ }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
63
+ queryKey: DataTag<QueryKey, TData>;
64
+ };
65
+ declare function useGetProductTypesSuspense<TData = Awaited<ReturnType<typeof getProductTypes>>, TError = ErrorType<AsError | void>>(options?: {
66
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData>>;
67
+ request?: SecondParameter<typeof customInstance>;
68
+ }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
69
+ queryKey: DataTag<QueryKey, TData>;
70
+ };
53
71
  declare function useGetProductTypesSuspense<TData = Awaited<ReturnType<typeof getProductTypes>>, TError = ErrorType<AsError | void>>(options?: {
54
- query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData>;
72
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductTypes>>, TError, TData>>;
55
73
  request?: SecondParameter<typeof customInstance>;
56
- }): UseSuspenseQueryResult<TData, TError> & {
57
- queryKey: QueryKey;
74
+ }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
75
+ queryKey: DataTag<QueryKey, TData>;
58
76
  };
59
77
  /**
60
78
  * 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.
@@ -64,42 +82,60 @@ declare function useGetProductTypesSuspense<TData = Awaited<ReturnType<typeof ge
64
82
  declare const getProductDefaultStorageCost: (options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<ProductsGetDefaultStorageCost>;
65
83
  declare const getGetProductDefaultStorageCostQueryKey: () => readonly ["account-server", "product-default-storage-cost"];
66
84
  declare const getGetProductDefaultStorageCostQueryOptions: <TData = Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError = ErrorType<AsError | void>>(options?: {
67
- query?: UseQueryOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, TData>;
85
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, TData>>;
68
86
  request?: SecondParameter<typeof customInstance>;
69
87
  }) => UseQueryOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, TData> & {
70
- queryKey: QueryKey;
88
+ queryKey: DataTag<QueryKey, TData>;
71
89
  };
72
90
  type GetProductDefaultStorageCostQueryResult = NonNullable<Awaited<ReturnType<typeof getProductDefaultStorageCost>>>;
73
91
  type GetProductDefaultStorageCostQueryError = ErrorType<AsError | void>;
74
- /**
75
- * @summary Gets the default cross-product storage cost
76
- */
92
+ declare function useGetProductDefaultStorageCost<TData = Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError = ErrorType<AsError | void>>(options: {
93
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, Awaited<ReturnType<typeof getProductDefaultStorageCost>>>, "initialData">;
94
+ request?: SecondParameter<typeof customInstance>;
95
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
96
+ queryKey: DataTag<QueryKey, TData>;
97
+ };
98
+ declare function useGetProductDefaultStorageCost<TData = Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError = ErrorType<AsError | void>>(options?: {
99
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, Awaited<ReturnType<typeof getProductDefaultStorageCost>>>, "initialData">;
100
+ request?: SecondParameter<typeof customInstance>;
101
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
102
+ queryKey: DataTag<QueryKey, TData>;
103
+ };
77
104
  declare function useGetProductDefaultStorageCost<TData = Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError = ErrorType<AsError | void>>(options?: {
78
- query?: UseQueryOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, TData>;
105
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, TData>>;
79
106
  request?: SecondParameter<typeof customInstance>;
80
- }): UseQueryResult<TData, TError> & {
81
- queryKey: QueryKey;
107
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
108
+ queryKey: DataTag<QueryKey, TData>;
82
109
  };
83
110
  /**
84
111
  * @summary Gets the default cross-product storage cost
85
112
  */
86
113
  declare const invalidateGetProductDefaultStorageCost: (queryClient: QueryClient, options?: InvalidateOptions) => Promise<QueryClient>;
87
114
  declare const getGetProductDefaultStorageCostSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError = ErrorType<AsError | void>>(options?: {
88
- query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, TData>;
115
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, TData>>;
89
116
  request?: SecondParameter<typeof customInstance>;
90
117
  }) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, TData> & {
91
- queryKey: QueryKey;
118
+ queryKey: DataTag<QueryKey, TData>;
92
119
  };
93
120
  type GetProductDefaultStorageCostSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getProductDefaultStorageCost>>>;
94
121
  type GetProductDefaultStorageCostSuspenseQueryError = ErrorType<AsError | void>;
95
- /**
96
- * @summary Gets the default cross-product storage cost
97
- */
122
+ declare function useGetProductDefaultStorageCostSuspense<TData = Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError = ErrorType<AsError | void>>(options: {
123
+ query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, TData>>;
124
+ request?: SecondParameter<typeof customInstance>;
125
+ }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
126
+ queryKey: DataTag<QueryKey, TData>;
127
+ };
128
+ declare function useGetProductDefaultStorageCostSuspense<TData = Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError = ErrorType<AsError | void>>(options?: {
129
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, TData>>;
130
+ request?: SecondParameter<typeof customInstance>;
131
+ }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
132
+ queryKey: DataTag<QueryKey, TData>;
133
+ };
98
134
  declare function useGetProductDefaultStorageCostSuspense<TData = Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError = ErrorType<AsError | void>>(options?: {
99
- query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, TData>;
135
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductDefaultStorageCost>>, TError, TData>>;
100
136
  request?: SecondParameter<typeof customInstance>;
101
- }): UseSuspenseQueryResult<TData, TError> & {
102
- queryKey: QueryKey;
137
+ }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
138
+ queryKey: DataTag<QueryKey, TData>;
103
139
  };
104
140
  /**
105
141
  * Gets Products you have access to, across all **Units** and **Organisations**
@@ -109,42 +145,60 @@ declare function useGetProductDefaultStorageCostSuspense<TData = Awaited<ReturnT
109
145
  declare const getProducts: (options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<ProductsGetResponse>;
110
146
  declare const getGetProductsQueryKey: () => readonly ["account-server", "product"];
111
147
  declare const getGetProductsQueryOptions: <TData = Awaited<ReturnType<typeof getProducts>>, TError = ErrorType<AsError | void>>(options?: {
112
- query?: UseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData>;
148
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData>>;
113
149
  request?: SecondParameter<typeof customInstance>;
114
150
  }) => UseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData> & {
115
- queryKey: QueryKey;
151
+ queryKey: DataTag<QueryKey, TData>;
116
152
  };
117
153
  type GetProductsQueryResult = NonNullable<Awaited<ReturnType<typeof getProducts>>>;
118
154
  type GetProductsQueryError = ErrorType<AsError | void>;
119
- /**
120
- * @summary Gets all Products
121
- */
155
+ declare function useGetProducts<TData = Awaited<ReturnType<typeof getProducts>>, TError = ErrorType<AsError | void>>(options: {
156
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getProducts>>, TError, Awaited<ReturnType<typeof getProducts>>>, "initialData">;
157
+ request?: SecondParameter<typeof customInstance>;
158
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
159
+ queryKey: DataTag<QueryKey, TData>;
160
+ };
161
+ declare function useGetProducts<TData = Awaited<ReturnType<typeof getProducts>>, TError = ErrorType<AsError | void>>(options?: {
162
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getProducts>>, TError, Awaited<ReturnType<typeof getProducts>>>, "initialData">;
163
+ request?: SecondParameter<typeof customInstance>;
164
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
165
+ queryKey: DataTag<QueryKey, TData>;
166
+ };
122
167
  declare function useGetProducts<TData = Awaited<ReturnType<typeof getProducts>>, TError = ErrorType<AsError | void>>(options?: {
123
- query?: UseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData>;
168
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData>>;
124
169
  request?: SecondParameter<typeof customInstance>;
125
- }): UseQueryResult<TData, TError> & {
126
- queryKey: QueryKey;
170
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
171
+ queryKey: DataTag<QueryKey, TData>;
127
172
  };
128
173
  /**
129
174
  * @summary Gets all Products
130
175
  */
131
176
  declare const invalidateGetProducts: (queryClient: QueryClient, options?: InvalidateOptions) => Promise<QueryClient>;
132
177
  declare const getGetProductsSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getProducts>>, TError = ErrorType<AsError | void>>(options?: {
133
- query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData>;
178
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData>>;
134
179
  request?: SecondParameter<typeof customInstance>;
135
180
  }) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData> & {
136
- queryKey: QueryKey;
181
+ queryKey: DataTag<QueryKey, TData>;
137
182
  };
138
183
  type GetProductsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getProducts>>>;
139
184
  type GetProductsSuspenseQueryError = ErrorType<AsError | void>;
140
- /**
141
- * @summary Gets all Products
142
- */
185
+ declare function useGetProductsSuspense<TData = Awaited<ReturnType<typeof getProducts>>, TError = ErrorType<AsError | void>>(options: {
186
+ query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData>>;
187
+ request?: SecondParameter<typeof customInstance>;
188
+ }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
189
+ queryKey: DataTag<QueryKey, TData>;
190
+ };
191
+ declare function useGetProductsSuspense<TData = Awaited<ReturnType<typeof getProducts>>, TError = ErrorType<AsError | void>>(options?: {
192
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData>>;
193
+ request?: SecondParameter<typeof customInstance>;
194
+ }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
195
+ queryKey: DataTag<QueryKey, TData>;
196
+ };
143
197
  declare function useGetProductsSuspense<TData = Awaited<ReturnType<typeof getProducts>>, TError = ErrorType<AsError | void>>(options?: {
144
- query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData>;
198
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProducts>>, TError, TData>>;
145
199
  request?: SecondParameter<typeof customInstance>;
146
- }): UseSuspenseQueryResult<TData, TError> & {
147
- queryKey: QueryKey;
200
+ }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
201
+ queryKey: DataTag<QueryKey, TData>;
148
202
  };
149
203
  /**
150
204
  * Gets Products you have access to based on an **Organisation**
@@ -154,42 +208,60 @@ declare function useGetProductsSuspense<TData = Awaited<ReturnType<typeof getPro
154
208
  declare const getProductsForOrganisation: (orgId: string, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<ProductsGetResponse>;
155
209
  declare const getGetProductsForOrganisationQueryKey: (orgId?: string) => readonly ["account-server", "product", "organisation", string | undefined];
156
210
  declare const getGetProductsForOrganisationQueryOptions: <TData = Awaited<ReturnType<typeof getProductsForOrganisation>>, TError = ErrorType<void | AsError>>(orgId: string, options?: {
157
- query?: UseQueryOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, TData>;
211
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, TData>>;
158
212
  request?: SecondParameter<typeof customInstance>;
159
213
  }) => UseQueryOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, TData> & {
160
- queryKey: QueryKey;
214
+ queryKey: DataTag<QueryKey, TData>;
161
215
  };
162
216
  type GetProductsForOrganisationQueryResult = NonNullable<Awaited<ReturnType<typeof getProductsForOrganisation>>>;
163
217
  type GetProductsForOrganisationQueryError = ErrorType<void | AsError>;
164
- /**
165
- * @summary Gets Products for an Organisation
166
- */
218
+ declare function useGetProductsForOrganisation<TData = Awaited<ReturnType<typeof getProductsForOrganisation>>, TError = ErrorType<void | AsError>>(orgId: string, options: {
219
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, Awaited<ReturnType<typeof getProductsForOrganisation>>>, "initialData">;
220
+ request?: SecondParameter<typeof customInstance>;
221
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
222
+ queryKey: DataTag<QueryKey, TData>;
223
+ };
224
+ declare function useGetProductsForOrganisation<TData = Awaited<ReturnType<typeof getProductsForOrganisation>>, TError = ErrorType<void | AsError>>(orgId: string, options?: {
225
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, Awaited<ReturnType<typeof getProductsForOrganisation>>>, "initialData">;
226
+ request?: SecondParameter<typeof customInstance>;
227
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
228
+ queryKey: DataTag<QueryKey, TData>;
229
+ };
167
230
  declare function useGetProductsForOrganisation<TData = Awaited<ReturnType<typeof getProductsForOrganisation>>, TError = ErrorType<void | AsError>>(orgId: string, options?: {
168
- query?: UseQueryOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, TData>;
231
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, TData>>;
169
232
  request?: SecondParameter<typeof customInstance>;
170
- }): UseQueryResult<TData, TError> & {
171
- queryKey: QueryKey;
233
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
234
+ queryKey: DataTag<QueryKey, TData>;
172
235
  };
173
236
  /**
174
237
  * @summary Gets Products for an Organisation
175
238
  */
176
239
  declare const invalidateGetProductsForOrganisation: (queryClient: QueryClient, orgId: string, options?: InvalidateOptions) => Promise<QueryClient>;
177
240
  declare const getGetProductsForOrganisationSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getProductsForOrganisation>>, TError = ErrorType<void | AsError>>(orgId: string, options?: {
178
- query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, TData>;
241
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, TData>>;
179
242
  request?: SecondParameter<typeof customInstance>;
180
243
  }) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, TData> & {
181
- queryKey: QueryKey;
244
+ queryKey: DataTag<QueryKey, TData>;
182
245
  };
183
246
  type GetProductsForOrganisationSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getProductsForOrganisation>>>;
184
247
  type GetProductsForOrganisationSuspenseQueryError = ErrorType<void | AsError>;
185
- /**
186
- * @summary Gets Products for an Organisation
187
- */
248
+ declare function useGetProductsForOrganisationSuspense<TData = Awaited<ReturnType<typeof getProductsForOrganisation>>, TError = ErrorType<void | AsError>>(orgId: string, options: {
249
+ query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, TData>>;
250
+ request?: SecondParameter<typeof customInstance>;
251
+ }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
252
+ queryKey: DataTag<QueryKey, TData>;
253
+ };
254
+ declare function useGetProductsForOrganisationSuspense<TData = Awaited<ReturnType<typeof getProductsForOrganisation>>, TError = ErrorType<void | AsError>>(orgId: string, options?: {
255
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, TData>>;
256
+ request?: SecondParameter<typeof customInstance>;
257
+ }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
258
+ queryKey: DataTag<QueryKey, TData>;
259
+ };
188
260
  declare function useGetProductsForOrganisationSuspense<TData = Awaited<ReturnType<typeof getProductsForOrganisation>>, TError = ErrorType<void | AsError>>(orgId: string, options?: {
189
- query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, TData>;
261
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductsForOrganisation>>, TError, TData>>;
190
262
  request?: SecondParameter<typeof customInstance>;
191
- }): UseSuspenseQueryResult<TData, TError> & {
192
- queryKey: QueryKey;
263
+ }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
264
+ queryKey: DataTag<QueryKey, TData>;
193
265
  };
194
266
  /**
195
267
  * 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**.
@@ -227,7 +299,7 @@ declare const useCreateUnitProduct: <TError = ErrorType<AsError | void>, TContex
227
299
  data: UnitProductPostBodyBody;
228
300
  }, TContext>;
229
301
  request?: SecondParameter<typeof customInstance>;
230
- }) => UseMutationResult<Awaited<ReturnType<typeof createUnitProduct>>, TError, {
302
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof createUnitProduct>>, TError, {
231
303
  unitId: string;
232
304
  data: UnitProductPostBodyBody;
233
305
  }, TContext>;
@@ -239,42 +311,60 @@ declare const useCreateUnitProduct: <TError = ErrorType<AsError | void>, TContex
239
311
  declare const getProductsForUnit: (unitId: string, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<ProductsGetResponse>;
240
312
  declare const getGetProductsForUnitQueryKey: (unitId?: string) => readonly ["account-server", "product", "unit", string | undefined];
241
313
  declare const getGetProductsForUnitQueryOptions: <TData = Awaited<ReturnType<typeof getProductsForUnit>>, TError = ErrorType<void | AsError>>(unitId: string, options?: {
242
- query?: UseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData>;
314
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData>>;
243
315
  request?: SecondParameter<typeof customInstance>;
244
316
  }) => UseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData> & {
245
- queryKey: QueryKey;
317
+ queryKey: DataTag<QueryKey, TData>;
246
318
  };
247
319
  type GetProductsForUnitQueryResult = NonNullable<Awaited<ReturnType<typeof getProductsForUnit>>>;
248
320
  type GetProductsForUnitQueryError = ErrorType<void | AsError>;
249
- /**
250
- * @summary Gets Products for an Organisational Unit
251
- */
321
+ declare function useGetProductsForUnit<TData = Awaited<ReturnType<typeof getProductsForUnit>>, TError = ErrorType<void | AsError>>(unitId: string, options: {
322
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, Awaited<ReturnType<typeof getProductsForUnit>>>, "initialData">;
323
+ request?: SecondParameter<typeof customInstance>;
324
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
325
+ queryKey: DataTag<QueryKey, TData>;
326
+ };
327
+ declare function useGetProductsForUnit<TData = Awaited<ReturnType<typeof getProductsForUnit>>, TError = ErrorType<void | AsError>>(unitId: string, options?: {
328
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, Awaited<ReturnType<typeof getProductsForUnit>>>, "initialData">;
329
+ request?: SecondParameter<typeof customInstance>;
330
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
331
+ queryKey: DataTag<QueryKey, TData>;
332
+ };
252
333
  declare function useGetProductsForUnit<TData = Awaited<ReturnType<typeof getProductsForUnit>>, TError = ErrorType<void | AsError>>(unitId: string, options?: {
253
- query?: UseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData>;
334
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData>>;
254
335
  request?: SecondParameter<typeof customInstance>;
255
- }): UseQueryResult<TData, TError> & {
256
- queryKey: QueryKey;
336
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
337
+ queryKey: DataTag<QueryKey, TData>;
257
338
  };
258
339
  /**
259
340
  * @summary Gets Products for an Organisational Unit
260
341
  */
261
342
  declare const invalidateGetProductsForUnit: (queryClient: QueryClient, unitId: string, options?: InvalidateOptions) => Promise<QueryClient>;
262
343
  declare const getGetProductsForUnitSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getProductsForUnit>>, TError = ErrorType<void | AsError>>(unitId: string, options?: {
263
- query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData>;
344
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData>>;
264
345
  request?: SecondParameter<typeof customInstance>;
265
346
  }) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData> & {
266
- queryKey: QueryKey;
347
+ queryKey: DataTag<QueryKey, TData>;
267
348
  };
268
349
  type GetProductsForUnitSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getProductsForUnit>>>;
269
350
  type GetProductsForUnitSuspenseQueryError = ErrorType<void | AsError>;
270
- /**
271
- * @summary Gets Products for an Organisational Unit
272
- */
351
+ declare function useGetProductsForUnitSuspense<TData = Awaited<ReturnType<typeof getProductsForUnit>>, TError = ErrorType<void | AsError>>(unitId: string, options: {
352
+ query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData>>;
353
+ request?: SecondParameter<typeof customInstance>;
354
+ }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
355
+ queryKey: DataTag<QueryKey, TData>;
356
+ };
357
+ declare function useGetProductsForUnitSuspense<TData = Awaited<ReturnType<typeof getProductsForUnit>>, TError = ErrorType<void | AsError>>(unitId: string, options?: {
358
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData>>;
359
+ request?: SecondParameter<typeof customInstance>;
360
+ }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
361
+ queryKey: DataTag<QueryKey, TData>;
362
+ };
273
363
  declare function useGetProductsForUnitSuspense<TData = Awaited<ReturnType<typeof getProductsForUnit>>, TError = ErrorType<void | AsError>>(unitId: string, options?: {
274
- query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData>;
364
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProductsForUnit>>, TError, TData>>;
275
365
  request?: SecondParameter<typeof customInstance>;
276
- }): UseSuspenseQueryResult<TData, TError> & {
277
- queryKey: QueryKey;
366
+ }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
367
+ queryKey: DataTag<QueryKey, TData>;
278
368
  };
279
369
  /**
280
370
  * Gets details of a specific Product that you have access to.
@@ -284,42 +374,60 @@ declare function useGetProductsForUnitSuspense<TData = Awaited<ReturnType<typeof
284
374
  declare const getProduct: (productId: string, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<ProductUnitGetResponse>;
285
375
  declare const getGetProductQueryKey: (productId?: string) => readonly ["account-server", "product", string | undefined];
286
376
  declare const getGetProductQueryOptions: <TData = Awaited<ReturnType<typeof getProduct>>, TError = ErrorType<AsError | void>>(productId: string, options?: {
287
- query?: UseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>;
377
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>>;
288
378
  request?: SecondParameter<typeof customInstance>;
289
379
  }) => UseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData> & {
290
- queryKey: QueryKey;
380
+ queryKey: DataTag<QueryKey, TData>;
291
381
  };
292
382
  type GetProductQueryResult = NonNullable<Awaited<ReturnType<typeof getProduct>>>;
293
383
  type GetProductQueryError = ErrorType<AsError | void>;
294
- /**
295
- * @summary Gets a Product
296
- */
384
+ declare function useGetProduct<TData = Awaited<ReturnType<typeof getProduct>>, TError = ErrorType<AsError | void>>(productId: string, options: {
385
+ query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getProduct>>, TError, Awaited<ReturnType<typeof getProduct>>>, "initialData">;
386
+ request?: SecondParameter<typeof customInstance>;
387
+ }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
388
+ queryKey: DataTag<QueryKey, TData>;
389
+ };
390
+ declare function useGetProduct<TData = Awaited<ReturnType<typeof getProduct>>, TError = ErrorType<AsError | void>>(productId: string, options?: {
391
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getProduct>>, TError, Awaited<ReturnType<typeof getProduct>>>, "initialData">;
392
+ request?: SecondParameter<typeof customInstance>;
393
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
394
+ queryKey: DataTag<QueryKey, TData>;
395
+ };
297
396
  declare function useGetProduct<TData = Awaited<ReturnType<typeof getProduct>>, TError = ErrorType<AsError | void>>(productId: string, options?: {
298
- query?: UseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>;
397
+ query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>>;
299
398
  request?: SecondParameter<typeof customInstance>;
300
- }): UseQueryResult<TData, TError> & {
301
- queryKey: QueryKey;
399
+ }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
400
+ queryKey: DataTag<QueryKey, TData>;
302
401
  };
303
402
  /**
304
403
  * @summary Gets a Product
305
404
  */
306
405
  declare const invalidateGetProduct: (queryClient: QueryClient, productId: string, options?: InvalidateOptions) => Promise<QueryClient>;
307
406
  declare const getGetProductSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getProduct>>, TError = ErrorType<AsError | void>>(productId: string, options?: {
308
- query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>;
407
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>>;
309
408
  request?: SecondParameter<typeof customInstance>;
310
409
  }) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData> & {
311
- queryKey: QueryKey;
410
+ queryKey: DataTag<QueryKey, TData>;
312
411
  };
313
412
  type GetProductSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getProduct>>>;
314
413
  type GetProductSuspenseQueryError = ErrorType<AsError | void>;
315
- /**
316
- * @summary Gets a Product
317
- */
414
+ declare function useGetProductSuspense<TData = Awaited<ReturnType<typeof getProduct>>, TError = ErrorType<AsError | void>>(productId: string, options: {
415
+ query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>>;
416
+ request?: SecondParameter<typeof customInstance>;
417
+ }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
418
+ queryKey: DataTag<QueryKey, TData>;
419
+ };
420
+ declare function useGetProductSuspense<TData = Awaited<ReturnType<typeof getProduct>>, TError = ErrorType<AsError | void>>(productId: string, options?: {
421
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>>;
422
+ request?: SecondParameter<typeof customInstance>;
423
+ }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
424
+ queryKey: DataTag<QueryKey, TData>;
425
+ };
318
426
  declare function useGetProductSuspense<TData = Awaited<ReturnType<typeof getProduct>>, TError = ErrorType<AsError | void>>(productId: string, options?: {
319
- query?: UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>;
427
+ query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getProduct>>, TError, TData>>;
320
428
  request?: SecondParameter<typeof customInstance>;
321
- }): UseSuspenseQueryResult<TData, TError> & {
322
- queryKey: QueryKey;
429
+ }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
430
+ queryKey: DataTag<QueryKey, TData>;
323
431
  };
324
432
  /**
325
433
  * 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**.
@@ -345,7 +453,7 @@ declare const useDeleteProduct: <TError = ErrorType<void | AsError>, TContext =
345
453
  productId: string;
346
454
  }, TContext>;
347
455
  request?: SecondParameter<typeof customInstance>;
348
- }) => UseMutationResult<Awaited<ReturnType<typeof deleteProduct>>, TError, {
456
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof deleteProduct>>, TError, {
349
457
  productId: string;
350
458
  }, TContext>;
351
459
  /**
@@ -380,7 +488,7 @@ declare const usePatchProduct: <TError = ErrorType<void | AsError>, TContext = u
380
488
  data: ProductPatchBodyBody;
381
489
  }, TContext>;
382
490
  request?: SecondParameter<typeof customInstance>;
383
- }) => UseMutationResult<Awaited<ReturnType<typeof patchProduct>>, TError, {
491
+ }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof patchProduct>>, TError, {
384
492
  productId: string;
385
493
  data: ProductPatchBodyBody;
386
494
  }, TContext>;