@squonk/data-manager-client 4.3.0 → 5.0.0-5-0.2173777171

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 (119) hide show
  1. package/accounting/accounting.cjs +55 -10
  2. package/accounting/accounting.cjs.map +1 -1
  3. package/accounting/accounting.d.cts +58 -1
  4. package/accounting/accounting.d.ts +58 -1
  5. package/accounting/accounting.js +46 -1
  6. package/accounting/accounting.js.map +1 -1
  7. package/admin/admin.cjs +15 -15
  8. package/admin/admin.cjs.map +1 -1
  9. package/admin/admin.d.cts +2 -0
  10. package/admin/admin.d.ts +2 -0
  11. package/admin/admin.js +1 -1
  12. package/admin/admin.js.map +1 -1
  13. package/application/application.cjs +5 -5
  14. package/application/application.cjs.map +1 -1
  15. package/application/application.js +1 -1
  16. package/application/application.js.map +1 -1
  17. package/{chunk-OYRETEBZ.js → chunk-76ADQBHZ.js} +3 -3
  18. package/chunk-76ADQBHZ.js.map +1 -0
  19. package/{chunk-ZLY5XEOQ.cjs → chunk-KHB5TJT7.cjs} +3 -3
  20. package/chunk-KHB5TJT7.cjs.map +1 -0
  21. package/chunk-RB2KVIEK.cjs.map +1 -1
  22. package/configuration/configuration.cjs +5 -5
  23. package/configuration/configuration.cjs.map +1 -1
  24. package/configuration/configuration.d.cts +1 -1
  25. package/configuration/configuration.d.ts +1 -1
  26. package/configuration/configuration.js +1 -1
  27. package/configuration/configuration.js.map +1 -1
  28. package/dataset/dataset.cjs +14 -14
  29. package/dataset/dataset.cjs.map +1 -1
  30. package/dataset/dataset.js +1 -1
  31. package/dataset/dataset.js.map +1 -1
  32. package/digest/digest.cjs +3 -3
  33. package/digest/digest.cjs.map +1 -1
  34. package/digest/digest.js +1 -1
  35. package/digest/digest.js.map +1 -1
  36. package/file-and-path/file-and-path.cjs +139 -17
  37. package/file-and-path/file-and-path.cjs.map +1 -1
  38. package/file-and-path/file-and-path.d.cts +162 -2
  39. package/file-and-path/file-and-path.d.ts +162 -2
  40. package/file-and-path/file-and-path.js +123 -1
  41. package/file-and-path/file-and-path.js.map +1 -1
  42. package/index.cjs +4 -2
  43. package/index.cjs.map +1 -1
  44. package/index.d.cts +53 -37
  45. package/index.d.ts +53 -37
  46. package/index.js +3 -1
  47. package/index.js.map +1 -1
  48. package/instance/instance.cjs +10 -10
  49. package/instance/instance.cjs.map +1 -1
  50. package/instance/instance.js +1 -1
  51. package/instance/instance.js.map +1 -1
  52. package/inventory/inventory.cjs +3 -3
  53. package/inventory/inventory.cjs.map +1 -1
  54. package/inventory/inventory.js +1 -1
  55. package/inventory/inventory.js.map +1 -1
  56. package/job/job.cjs +124 -8
  57. package/job/job.cjs.map +1 -1
  58. package/job/job.d.cts +159 -3
  59. package/job/job.d.ts +159 -3
  60. package/job/job.js +119 -3
  61. package/job/job.js.map +1 -1
  62. package/metadata/metadata.cjs +7 -7
  63. package/metadata/metadata.cjs.map +1 -1
  64. package/metadata/metadata.js +1 -1
  65. package/metadata/metadata.js.map +1 -1
  66. package/package.json +1 -1
  67. package/project/project.cjs +15 -137
  68. package/project/project.cjs.map +1 -1
  69. package/project/project.d.cts +3 -163
  70. package/project/project.d.ts +3 -163
  71. package/project/project.js +1 -123
  72. package/project/project.js.map +1 -1
  73. package/src/{data-manager-api.schemas.ts → API_TARGET_NAME.schemas.ts} +52 -43
  74. package/src/accounting/accounting.ts +244 -2
  75. package/src/admin/admin.ts +4 -2
  76. package/src/application/application.ts +2 -2
  77. package/src/configuration/configuration.ts +5 -9
  78. package/src/dataset/dataset.ts +2 -2
  79. package/src/digest/digest.ts +2 -2
  80. package/src/file-and-path/file-and-path.ts +602 -2
  81. package/src/index.ts +2 -2
  82. package/src/instance/instance.ts +2 -2
  83. package/src/inventory/inventory.ts +2 -2
  84. package/src/job/job.ts +599 -3
  85. package/src/metadata/metadata.ts +2 -2
  86. package/src/options-mutator.ts +2 -2
  87. package/src/project/project.ts +5 -604
  88. package/src/task/task.ts +2 -2
  89. package/src/type/type.ts +2 -2
  90. package/src/user/user.ts +2 -2
  91. package/src/workflow/workflow.ts +5 -3
  92. package/task/task.cjs +6 -6
  93. package/task/task.cjs.map +1 -1
  94. package/task/task.js +1 -1
  95. package/task/task.js.map +1 -1
  96. package/type/type.cjs +3 -3
  97. package/type/type.cjs.map +1 -1
  98. package/type/type.js +1 -1
  99. package/type/type.js.map +1 -1
  100. package/user/user.cjs +10 -10
  101. package/user/user.cjs.map +1 -1
  102. package/user/user.js +1 -1
  103. package/user/user.js.map +1 -1
  104. package/workflow/workflow.cjs +20 -20
  105. package/workflow/workflow.cjs.map +1 -1
  106. package/workflow/workflow.d.cts +3 -1
  107. package/workflow/workflow.d.ts +3 -1
  108. package/workflow/workflow.js +1 -1
  109. package/workflow/workflow.js.map +1 -1
  110. package/chunk-OYRETEBZ.js.map +0 -1
  111. package/chunk-ZLY5XEOQ.cjs.map +0 -1
  112. package/exchange-rate/exchange-rate.cjs +0 -255
  113. package/exchange-rate/exchange-rate.cjs.map +0 -1
  114. package/exchange-rate/exchange-rate.d.cts +0 -319
  115. package/exchange-rate/exchange-rate.d.ts +0 -319
  116. package/exchange-rate/exchange-rate.js +0 -255
  117. package/exchange-rate/exchange-rate.js.map +0 -1
  118. package/exchange-rate/package.json +0 -7
  119. package/src/exchange-rate/exchange-rate.ts +0 -1276
@@ -1,319 +0,0 @@
1
- import { UseQueryOptions, DataTag, QueryKey, DefinedInitialDataOptions, QueryClient, DefinedUseQueryResult, UndefinedInitialDataOptions, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult, UseMutationOptions, UseMutationResult } from '@tanstack/react-query';
2
- import { GetAllApplicationExchangeRatesParams, customInstance, GetAllExchangeRatesResponse, ErrorType, DmError, ExchangeRatePutBodyBody, GetApplicationExchangeRatesParams, GetExchangeRatesResponse, GetAllJobExchangeRatesParams, GetJobExchangeRatesParams } from '../index.cjs';
3
- import 'axios';
4
-
5
- type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
6
- /**
7
- * For every Application that has an exchange rate the current rate is returned. If you want a list of all Applications that have no exchange rate, set the `only_undefined` query option.
8
-
9
- If an Application has no specific rate it adopts the current value of the default Application Exchange Rate.
10
-
11
- * @summary Gets Exchange Rates for all Applications
12
- */
13
- declare const getAllApplicationExchangeRates: (params?: GetAllApplicationExchangeRatesParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<GetAllExchangeRatesResponse>;
14
- declare const getGetAllApplicationExchangeRatesQueryKey: (params?: GetAllApplicationExchangeRatesParams) => readonly ["/application/exchange-rate", ...GetAllApplicationExchangeRatesParams[]];
15
- declare const useGetAllApplicationExchangeRatesQueryOptions: <TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: {
16
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>;
17
- request?: SecondParameter<typeof customInstance>;
18
- }) => UseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData> & {
19
- queryKey: DataTag<QueryKey, TData, TError>;
20
- };
21
- type GetAllApplicationExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>>;
22
- type GetAllApplicationExchangeRatesQueryError = ErrorType<void | DmError>;
23
- declare function useGetAllApplicationExchangeRates<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(params: undefined | GetAllApplicationExchangeRatesParams, options: {
24
- query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, Awaited<ReturnType<typeof getAllApplicationExchangeRates>>>, "initialData">;
25
- request?: SecondParameter<typeof customInstance>;
26
- }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
27
- queryKey: DataTag<QueryKey, TData, TError>;
28
- };
29
- declare function useGetAllApplicationExchangeRates<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: {
30
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, Awaited<ReturnType<typeof getAllApplicationExchangeRates>>>, "initialData">;
31
- request?: SecondParameter<typeof customInstance>;
32
- }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
33
- queryKey: DataTag<QueryKey, TData, TError>;
34
- };
35
- declare function useGetAllApplicationExchangeRates<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: {
36
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>;
37
- request?: SecondParameter<typeof customInstance>;
38
- }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
39
- queryKey: DataTag<QueryKey, TData, TError>;
40
- };
41
- declare const useGetAllApplicationExchangeRatesSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: {
42
- query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>;
43
- request?: SecondParameter<typeof customInstance>;
44
- }) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData> & {
45
- queryKey: DataTag<QueryKey, TData, TError>;
46
- };
47
- type GetAllApplicationExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>>;
48
- type GetAllApplicationExchangeRatesSuspenseQueryError = ErrorType<void | DmError>;
49
- declare function useGetAllApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(params: undefined | GetAllApplicationExchangeRatesParams, options: {
50
- query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>;
51
- request?: SecondParameter<typeof customInstance>;
52
- }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
53
- queryKey: DataTag<QueryKey, TData, TError>;
54
- };
55
- declare function useGetAllApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: {
56
- query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>;
57
- request?: SecondParameter<typeof customInstance>;
58
- }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
59
- queryKey: DataTag<QueryKey, TData, TError>;
60
- };
61
- declare function useGetAllApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllApplicationExchangeRatesParams, options?: {
62
- query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllApplicationExchangeRates>>, TError, TData>>;
63
- request?: SecondParameter<typeof customInstance>;
64
- }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
65
- queryKey: DataTag<QueryKey, TData, TError>;
66
- };
67
- /**
68
- * Sets the Exchange Rate for a specific Application. The rate replaces any existing rate for the Application and applies to all future executions of the Application.
69
-
70
- If an Application has no specific rate it adopts the current value of the default Application Exchange Rate.
71
-
72
- You need `admin` privilege to use this method.
73
-
74
- * @summary Sets the Exchange Rate for a specific Application
75
- */
76
- declare const setApplicationExchangeRate: (applicationId: string, exchangeRatePutBodyBody: ExchangeRatePutBodyBody, options?: SecondParameter<typeof customInstance>) => Promise<void>;
77
- declare const useSetApplicationExchangeRateMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
78
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof setApplicationExchangeRate>>, TError, {
79
- applicationId: string;
80
- data: ExchangeRatePutBodyBody;
81
- }, TContext>;
82
- request?: SecondParameter<typeof customInstance>;
83
- }) => UseMutationOptions<Awaited<ReturnType<typeof setApplicationExchangeRate>>, TError, {
84
- applicationId: string;
85
- data: ExchangeRatePutBodyBody;
86
- }, TContext>;
87
- type SetApplicationExchangeRateMutationResult = NonNullable<Awaited<ReturnType<typeof setApplicationExchangeRate>>>;
88
- type SetApplicationExchangeRateMutationBody = ExchangeRatePutBodyBody;
89
- type SetApplicationExchangeRateMutationError = ErrorType<void | DmError>;
90
- /**
91
- * @summary Sets the Exchange Rate for a specific Application
92
- */
93
- declare const useSetApplicationExchangeRate: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
94
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof setApplicationExchangeRate>>, TError, {
95
- applicationId: string;
96
- data: ExchangeRatePutBodyBody;
97
- }, TContext>;
98
- request?: SecondParameter<typeof customInstance>;
99
- }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof setApplicationExchangeRate>>, TError, {
100
- applicationId: string;
101
- data: ExchangeRatePutBodyBody;
102
- }, TContext>;
103
- /**
104
- * Gets the exchange rate history for a specific Application. Rates are returned in reverse chronological order, with the most recent rate, the current rate, as the first entry in the list.
105
-
106
- * @summary Gets the Application's Exchange Rate history
107
- */
108
- declare const getApplicationExchangeRates: (applicationId: string, params?: GetApplicationExchangeRatesParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<GetExchangeRatesResponse>;
109
- declare const getGetApplicationExchangeRatesQueryKey: (applicationId: string, params?: GetApplicationExchangeRatesParams) => readonly [`/application/${string}/exchange-rate`, ...GetApplicationExchangeRatesParams[]];
110
- declare const useGetApplicationExchangeRatesQueryOptions: <TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(applicationId: string, params?: GetApplicationExchangeRatesParams, options?: {
111
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>;
112
- request?: SecondParameter<typeof customInstance>;
113
- }) => UseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData> & {
114
- queryKey: DataTag<QueryKey, TData, TError>;
115
- };
116
- type GetApplicationExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getApplicationExchangeRates>>>;
117
- type GetApplicationExchangeRatesQueryError = ErrorType<void | DmError>;
118
- declare function useGetApplicationExchangeRates<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(applicationId: string, params: undefined | GetApplicationExchangeRatesParams, options: {
119
- query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, Awaited<ReturnType<typeof getApplicationExchangeRates>>>, "initialData">;
120
- request?: SecondParameter<typeof customInstance>;
121
- }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
122
- queryKey: DataTag<QueryKey, TData, TError>;
123
- };
124
- declare function useGetApplicationExchangeRates<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(applicationId: string, params?: GetApplicationExchangeRatesParams, options?: {
125
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, Awaited<ReturnType<typeof getApplicationExchangeRates>>>, "initialData">;
126
- request?: SecondParameter<typeof customInstance>;
127
- }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
128
- queryKey: DataTag<QueryKey, TData, TError>;
129
- };
130
- declare function useGetApplicationExchangeRates<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(applicationId: string, params?: GetApplicationExchangeRatesParams, options?: {
131
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>;
132
- request?: SecondParameter<typeof customInstance>;
133
- }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
134
- queryKey: DataTag<QueryKey, TData, TError>;
135
- };
136
- declare const useGetApplicationExchangeRatesSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(applicationId: string, params?: GetApplicationExchangeRatesParams, options?: {
137
- query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>;
138
- request?: SecondParameter<typeof customInstance>;
139
- }) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData> & {
140
- queryKey: DataTag<QueryKey, TData, TError>;
141
- };
142
- type GetApplicationExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getApplicationExchangeRates>>>;
143
- type GetApplicationExchangeRatesSuspenseQueryError = ErrorType<void | DmError>;
144
- declare function useGetApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(applicationId: string, params: undefined | GetApplicationExchangeRatesParams, options: {
145
- query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>;
146
- request?: SecondParameter<typeof customInstance>;
147
- }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
148
- queryKey: DataTag<QueryKey, TData, TError>;
149
- };
150
- declare function useGetApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(applicationId: string, params?: GetApplicationExchangeRatesParams, options?: {
151
- query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>;
152
- request?: SecondParameter<typeof customInstance>;
153
- }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
154
- queryKey: DataTag<QueryKey, TData, TError>;
155
- };
156
- declare function useGetApplicationExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError = ErrorType<void | DmError>>(applicationId: string, params?: GetApplicationExchangeRatesParams, options?: {
157
- query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getApplicationExchangeRates>>, TError, TData>>;
158
- request?: SecondParameter<typeof customInstance>;
159
- }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
160
- queryKey: DataTag<QueryKey, TData, TError>;
161
- };
162
- /**
163
- * For every Job that has an exchange rate the current rate is returned. If you want a list of all Jobs that have no exchange rate, set the `only_undefined` query option.
164
-
165
- * @summary Gets Exchange Rates for all Jobs
166
- */
167
- declare const getAllJobExchangeRates: (params?: GetAllJobExchangeRatesParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<GetAllExchangeRatesResponse>;
168
- declare const getGetAllJobExchangeRatesQueryKey: (params?: GetAllJobExchangeRatesParams) => readonly ["/job/exchange-rate", ...GetAllJobExchangeRatesParams[]];
169
- declare const useGetAllJobExchangeRatesQueryOptions: <TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: {
170
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>;
171
- request?: SecondParameter<typeof customInstance>;
172
- }) => UseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData> & {
173
- queryKey: DataTag<QueryKey, TData, TError>;
174
- };
175
- type GetAllJobExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getAllJobExchangeRates>>>;
176
- type GetAllJobExchangeRatesQueryError = ErrorType<void | DmError>;
177
- declare function useGetAllJobExchangeRates<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(params: undefined | GetAllJobExchangeRatesParams, options: {
178
- query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, Awaited<ReturnType<typeof getAllJobExchangeRates>>>, "initialData">;
179
- request?: SecondParameter<typeof customInstance>;
180
- }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
181
- queryKey: DataTag<QueryKey, TData, TError>;
182
- };
183
- declare function useGetAllJobExchangeRates<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: {
184
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, Awaited<ReturnType<typeof getAllJobExchangeRates>>>, "initialData">;
185
- request?: SecondParameter<typeof customInstance>;
186
- }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
187
- queryKey: DataTag<QueryKey, TData, TError>;
188
- };
189
- declare function useGetAllJobExchangeRates<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: {
190
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>;
191
- request?: SecondParameter<typeof customInstance>;
192
- }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
193
- queryKey: DataTag<QueryKey, TData, TError>;
194
- };
195
- declare const useGetAllJobExchangeRatesSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: {
196
- query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>;
197
- request?: SecondParameter<typeof customInstance>;
198
- }) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData> & {
199
- queryKey: DataTag<QueryKey, TData, TError>;
200
- };
201
- type GetAllJobExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getAllJobExchangeRates>>>;
202
- type GetAllJobExchangeRatesSuspenseQueryError = ErrorType<void | DmError>;
203
- declare function useGetAllJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(params: undefined | GetAllJobExchangeRatesParams, options: {
204
- query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>;
205
- request?: SecondParameter<typeof customInstance>;
206
- }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
207
- queryKey: DataTag<QueryKey, TData, TError>;
208
- };
209
- declare function useGetAllJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: {
210
- query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>;
211
- request?: SecondParameter<typeof customInstance>;
212
- }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
213
- queryKey: DataTag<QueryKey, TData, TError>;
214
- };
215
- declare function useGetAllJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError = ErrorType<void | DmError>>(params?: GetAllJobExchangeRatesParams, options?: {
216
- query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getAllJobExchangeRates>>, TError, TData>>;
217
- request?: SecondParameter<typeof customInstance>;
218
- }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
219
- queryKey: DataTag<QueryKey, TData, TError>;
220
- };
221
- /**
222
- * Sets the Exchange Rate for a specific job. The rate replaces any existing rate for the Job and applies immediately and future job executions for this Job will inherit this rate.
223
-
224
- Exchange rates are divided by an internal **scale factor** prior to being applied. The scale factor has a value of 1,000. The scale factor is used to make the exchange rates a little easier to digest, because without this on some jobs we would need to support values ike '0.00001'. With a scale factor of `1,000` the exchange rate is a much more humanly-digestible, e.g. '0.00001' becomes '0.01'.
225
-
226
- If a Job has no specific rate it adopts the current value of the default Job Exchange Rate.
227
-
228
- You need `admin` privilege to use this method.
229
-
230
- * @summary Sets the Exchange Rate for a specific Job
231
- */
232
- declare const setJobPricing: (jobId: number, exchangeRatePutBodyBody: ExchangeRatePutBodyBody, options?: SecondParameter<typeof customInstance>) => Promise<void>;
233
- declare const useSetJobPricingMutationOptions: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
234
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof setJobPricing>>, TError, {
235
- jobId: number;
236
- data: ExchangeRatePutBodyBody;
237
- }, TContext>;
238
- request?: SecondParameter<typeof customInstance>;
239
- }) => UseMutationOptions<Awaited<ReturnType<typeof setJobPricing>>, TError, {
240
- jobId: number;
241
- data: ExchangeRatePutBodyBody;
242
- }, TContext>;
243
- type SetJobPricingMutationResult = NonNullable<Awaited<ReturnType<typeof setJobPricing>>>;
244
- type SetJobPricingMutationBody = ExchangeRatePutBodyBody;
245
- type SetJobPricingMutationError = ErrorType<void | DmError>;
246
- /**
247
- * @summary Sets the Exchange Rate for a specific Job
248
- */
249
- declare const useSetJobPricing: <TError = ErrorType<void | DmError>, TContext = unknown>(options?: {
250
- mutation?: UseMutationOptions<Awaited<ReturnType<typeof setJobPricing>>, TError, {
251
- jobId: number;
252
- data: ExchangeRatePutBodyBody;
253
- }, TContext>;
254
- request?: SecondParameter<typeof customInstance>;
255
- }, queryClient?: QueryClient) => UseMutationResult<Awaited<ReturnType<typeof setJobPricing>>, TError, {
256
- jobId: number;
257
- data: ExchangeRatePutBodyBody;
258
- }, TContext>;
259
- /**
260
- * Gets all the exchange rate history for a specific Job. Rates are returned in reverse chronological order, with the most recent rate, the current rate, as the first entry in the list.
261
-
262
- * @summary Gets Job Exchange Rates
263
- */
264
- declare const getJobExchangeRates: (jobId: number, params?: GetJobExchangeRatesParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<GetExchangeRatesResponse>;
265
- declare const getGetJobExchangeRatesQueryKey: (jobId: number, params?: GetJobExchangeRatesParams) => readonly [`/job/${number}/exchange-rate`, ...GetJobExchangeRatesParams[]];
266
- declare const useGetJobExchangeRatesQueryOptions: <TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobExchangeRatesParams, options?: {
267
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>;
268
- request?: SecondParameter<typeof customInstance>;
269
- }) => UseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData> & {
270
- queryKey: DataTag<QueryKey, TData, TError>;
271
- };
272
- type GetJobExchangeRatesQueryResult = NonNullable<Awaited<ReturnType<typeof getJobExchangeRates>>>;
273
- type GetJobExchangeRatesQueryError = ErrorType<void | DmError>;
274
- declare function useGetJobExchangeRates<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(jobId: number, params: undefined | GetJobExchangeRatesParams, options: {
275
- query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, Awaited<ReturnType<typeof getJobExchangeRates>>>, "initialData">;
276
- request?: SecondParameter<typeof customInstance>;
277
- }, queryClient?: QueryClient): DefinedUseQueryResult<TData, TError> & {
278
- queryKey: DataTag<QueryKey, TData, TError>;
279
- };
280
- declare function useGetJobExchangeRates<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobExchangeRatesParams, options?: {
281
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, Awaited<ReturnType<typeof getJobExchangeRates>>>, "initialData">;
282
- request?: SecondParameter<typeof customInstance>;
283
- }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
284
- queryKey: DataTag<QueryKey, TData, TError>;
285
- };
286
- declare function useGetJobExchangeRates<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobExchangeRatesParams, options?: {
287
- query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>;
288
- request?: SecondParameter<typeof customInstance>;
289
- }, queryClient?: QueryClient): UseQueryResult<TData, TError> & {
290
- queryKey: DataTag<QueryKey, TData, TError>;
291
- };
292
- declare const useGetJobExchangeRatesSuspenseQueryOptions: <TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobExchangeRatesParams, options?: {
293
- query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>;
294
- request?: SecondParameter<typeof customInstance>;
295
- }) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData> & {
296
- queryKey: DataTag<QueryKey, TData, TError>;
297
- };
298
- type GetJobExchangeRatesSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getJobExchangeRates>>>;
299
- type GetJobExchangeRatesSuspenseQueryError = ErrorType<void | DmError>;
300
- declare function useGetJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(jobId: number, params: undefined | GetJobExchangeRatesParams, options: {
301
- query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>;
302
- request?: SecondParameter<typeof customInstance>;
303
- }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
304
- queryKey: DataTag<QueryKey, TData, TError>;
305
- };
306
- declare function useGetJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobExchangeRatesParams, options?: {
307
- query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>;
308
- request?: SecondParameter<typeof customInstance>;
309
- }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
310
- queryKey: DataTag<QueryKey, TData, TError>;
311
- };
312
- declare function useGetJobExchangeRatesSuspense<TData = Awaited<ReturnType<typeof getJobExchangeRates>>, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobExchangeRatesParams, options?: {
313
- query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobExchangeRates>>, TError, TData>>;
314
- request?: SecondParameter<typeof customInstance>;
315
- }, queryClient?: QueryClient): UseSuspenseQueryResult<TData, TError> & {
316
- queryKey: DataTag<QueryKey, TData, TError>;
317
- };
318
-
319
- export { type GetAllApplicationExchangeRatesQueryError, type GetAllApplicationExchangeRatesQueryResult, type GetAllApplicationExchangeRatesSuspenseQueryError, type GetAllApplicationExchangeRatesSuspenseQueryResult, type GetAllJobExchangeRatesQueryError, type GetAllJobExchangeRatesQueryResult, type GetAllJobExchangeRatesSuspenseQueryError, type GetAllJobExchangeRatesSuspenseQueryResult, type GetApplicationExchangeRatesQueryError, type GetApplicationExchangeRatesQueryResult, type GetApplicationExchangeRatesSuspenseQueryError, type GetApplicationExchangeRatesSuspenseQueryResult, type GetJobExchangeRatesQueryError, type GetJobExchangeRatesQueryResult, type GetJobExchangeRatesSuspenseQueryError, type GetJobExchangeRatesSuspenseQueryResult, type SetApplicationExchangeRateMutationBody, type SetApplicationExchangeRateMutationError, type SetApplicationExchangeRateMutationResult, type SetJobPricingMutationBody, type SetJobPricingMutationError, type SetJobPricingMutationResult, getAllApplicationExchangeRates, getAllJobExchangeRates, getApplicationExchangeRates, getGetAllApplicationExchangeRatesQueryKey, getGetAllJobExchangeRatesQueryKey, getGetApplicationExchangeRatesQueryKey, getGetJobExchangeRatesQueryKey, getJobExchangeRates, setApplicationExchangeRate, setJobPricing, useGetAllApplicationExchangeRates, useGetAllApplicationExchangeRatesQueryOptions, useGetAllApplicationExchangeRatesSuspense, useGetAllApplicationExchangeRatesSuspenseQueryOptions, useGetAllJobExchangeRates, useGetAllJobExchangeRatesQueryOptions, useGetAllJobExchangeRatesSuspense, useGetAllJobExchangeRatesSuspenseQueryOptions, useGetApplicationExchangeRates, useGetApplicationExchangeRatesQueryOptions, useGetApplicationExchangeRatesSuspense, useGetApplicationExchangeRatesSuspenseQueryOptions, useGetJobExchangeRates, useGetJobExchangeRatesQueryOptions, useGetJobExchangeRatesSuspense, useGetJobExchangeRatesSuspenseQueryOptions, useSetApplicationExchangeRate, useSetApplicationExchangeRateMutationOptions, useSetJobPricing, useSetJobPricingMutationOptions };