@squonk/data-manager-client 3.1.0-beta.2 → 3.1.0
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/accounting/accounting.cjs +12 -12
- package/accounting/accounting.cjs.map +1 -1
- package/accounting/accounting.d.cts +103 -49
- package/accounting/accounting.d.ts +103 -49
- package/accounting/accounting.js +12 -12
- package/accounting/accounting.js.map +1 -1
- package/admin/admin.cjs +12 -12
- package/admin/admin.cjs.map +1 -1
- package/admin/admin.d.cts +168 -115
- package/admin/admin.d.ts +168 -115
- package/admin/admin.js +12 -12
- package/admin/admin.js.map +1 -1
- package/application/application.cjs +8 -8
- package/application/application.cjs.map +1 -1
- package/application/application.d.cts +69 -33
- package/application/application.d.ts +69 -33
- package/application/application.js +8 -8
- package/application/application.js.map +1 -1
- package/chunk-TKLTUR4R.cjs.map +1 -1
- package/configuration/configuration.cjs +4 -4
- package/configuration/configuration.cjs.map +1 -1
- package/configuration/configuration.d.cts +35 -17
- package/configuration/configuration.d.ts +35 -17
- package/configuration/configuration.js +4 -4
- package/configuration/configuration.js.map +1 -1
- package/dataset/dataset.cjs +16 -16
- package/dataset/dataset.cjs.map +1 -1
- package/dataset/dataset.d.cts +181 -110
- package/dataset/dataset.d.ts +181 -110
- package/dataset/dataset.js +16 -16
- package/dataset/dataset.js.map +1 -1
- package/digest/digest.cjs +4 -4
- package/digest/digest.cjs.map +1 -1
- package/digest/digest.d.cts +35 -17
- package/digest/digest.d.ts +35 -17
- package/digest/digest.js +4 -4
- package/digest/digest.js.map +1 -1
- package/exchange-rate/exchange-rate.cjs +16 -16
- package/exchange-rate/exchange-rate.cjs.map +1 -1
- package/exchange-rate/exchange-rate.d.cts +155 -84
- package/exchange-rate/exchange-rate.d.ts +155 -84
- package/exchange-rate/exchange-rate.js +16 -16
- package/exchange-rate/exchange-rate.js.map +1 -1
- package/file-and-path/file-and-path.cjs +8 -8
- package/file-and-path/file-and-path.cjs.map +1 -1
- package/file-and-path/file-and-path.d.cts +133 -98
- package/file-and-path/file-and-path.d.ts +133 -98
- package/file-and-path/file-and-path.js +8 -8
- package/file-and-path/file-and-path.js.map +1 -1
- package/index.cjs.map +1 -1
- package/index.d.cts +156 -68
- package/index.d.ts +156 -68
- package/index.js.map +1 -1
- package/instance/instance.cjs +8 -8
- package/instance/instance.cjs.map +1 -1
- package/instance/instance.d.cts +106 -71
- package/instance/instance.d.ts +106 -71
- package/instance/instance.js +8 -8
- package/instance/instance.js.map +1 -1
- package/inventory/inventory.cjs +4 -4
- package/inventory/inventory.cjs.map +1 -1
- package/inventory/inventory.d.cts +35 -17
- package/inventory/inventory.d.ts +35 -17
- package/inventory/inventory.js +4 -4
- package/inventory/inventory.js.map +1 -1
- package/job/job.cjs +12 -12
- package/job/job.cjs.map +1 -1
- package/job/job.d.cts +103 -49
- package/job/job.d.ts +103 -49
- package/job/job.js +12 -12
- package/job/job.js.map +1 -1
- package/metadata/metadata.cjs +8 -8
- package/metadata/metadata.cjs.map +1 -1
- package/metadata/metadata.d.cts +81 -46
- package/metadata/metadata.d.ts +81 -46
- package/metadata/metadata.js +8 -8
- package/metadata/metadata.js.map +1 -1
- package/package.json +7 -7
- package/project/project.cjs +16 -16
- package/project/project.cjs.map +1 -1
- package/project/project.d.cts +225 -154
- package/project/project.d.ts +225 -154
- package/project/project.js +16 -16
- package/project/project.js.map +1 -1
- package/src/accounting/accounting.ts +137 -13
- package/src/admin/admin.ts +217 -52
- package/src/application/application.ts +93 -9
- package/src/configuration/configuration.ts +49 -5
- package/src/data-manager-api.schemas.ts +156 -70
- package/src/dataset/dataset.ts +250 -42
- package/src/digest/digest.ts +49 -5
- package/src/exchange-rate/exchange-rate.ts +216 -29
- package/src/file-and-path/file-and-path.ts +172 -52
- package/src/instance/instance.ts +137 -27
- package/src/inventory/inventory.ts +49 -5
- package/src/job/job.ts +143 -13
- package/src/metadata/metadata.ts +116 -15
- package/src/project/project.ts +302 -75
- package/src/task/task.ts +111 -15
- package/src/type/type.ts +49 -5
- package/src/user/user.ts +149 -19
- package/task/task.cjs +8 -8
- package/task/task.cjs.map +1 -1
- package/task/task.d.cts +78 -43
- package/task/task.d.ts +78 -43
- package/task/task.js +8 -8
- package/task/task.js.map +1 -1
- package/type/type.cjs +4 -4
- package/type/type.cjs.map +1 -1
- package/type/type.d.cts +35 -17
- package/type/type.d.ts +35 -17
- package/type/type.js +4 -4
- package/type/type.js.map +1 -1
- package/user/user.cjs +12 -12
- package/user/user.cjs.map +1 -1
- package/user/user.d.cts +112 -59
- package/user/user.d.ts +112 -59
- package/user/user.js +12 -12
- package/user/user.js.map +1 -1
package/job/job.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UseQueryOptions, QueryKey, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query';
|
|
1
|
+
import { UseQueryOptions, QueryKey, DefinedInitialDataOptions, DefinedUseQueryResult, UndefinedInitialDataOptions, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import { GetJobsParams, customInstance, JobsGetResponse, ErrorType, DmError, GetJobByVersionParams, JobGetResponse, GetJobParams } from '../index.cjs';
|
|
3
3
|
import 'axios';
|
|
4
4
|
|
|
@@ -13,37 +13,55 @@ Job availability will vary as Jobs are added to the service.
|
|
|
13
13
|
declare const getJobs: (params?: GetJobsParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<JobsGetResponse>;
|
|
14
14
|
declare const getGetJobsQueryKey: (params?: GetJobsParams) => readonly ["data-manager-api", "/job", ...GetJobsParams[]];
|
|
15
15
|
declare const getGetJobsQueryOptions: <TData = JobsGetResponse, TError = ErrorType<DmError>>(params?: GetJobsParams, options?: {
|
|
16
|
-
query?: Partial<UseQueryOptions<
|
|
16
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData>>;
|
|
17
17
|
request?: SecondParameter<typeof customInstance>;
|
|
18
|
-
}
|
|
18
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData> & {
|
|
19
19
|
queryKey: QueryKey;
|
|
20
20
|
};
|
|
21
21
|
type GetJobsQueryResult = NonNullable<Awaited<ReturnType<typeof getJobs>>>;
|
|
22
22
|
type GetJobsQueryError = ErrorType<DmError>;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
declare function useGetJobs<TData = Awaited<ReturnType<typeof getJobs>>, TError = ErrorType<DmError>>(params: undefined | GetJobsParams, options: {
|
|
24
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData>, 'initialData'>;
|
|
25
|
+
request?: SecondParameter<typeof customInstance>;
|
|
26
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
27
|
+
queryKey: QueryKey;
|
|
28
|
+
};
|
|
29
|
+
declare function useGetJobs<TData = Awaited<ReturnType<typeof getJobs>>, TError = ErrorType<DmError>>(params?: GetJobsParams, options?: {
|
|
30
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData>, 'initialData'>;
|
|
31
|
+
request?: SecondParameter<typeof customInstance>;
|
|
32
|
+
}): UseQueryResult<TData, TError> & {
|
|
33
|
+
queryKey: QueryKey;
|
|
34
|
+
};
|
|
35
|
+
declare function useGetJobs<TData = Awaited<ReturnType<typeof getJobs>>, TError = ErrorType<DmError>>(params?: GetJobsParams, options?: {
|
|
36
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData>>;
|
|
28
37
|
request?: SecondParameter<typeof customInstance>;
|
|
29
|
-
}
|
|
38
|
+
}): UseQueryResult<TData, TError> & {
|
|
30
39
|
queryKey: QueryKey;
|
|
31
40
|
};
|
|
32
41
|
declare const getGetJobsSuspenseQueryOptions: <TData = JobsGetResponse, TError = ErrorType<DmError>>(params?: GetJobsParams, options?: {
|
|
33
|
-
query?: Partial<UseSuspenseQueryOptions<
|
|
42
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData>>;
|
|
34
43
|
request?: SecondParameter<typeof customInstance>;
|
|
35
|
-
}
|
|
44
|
+
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData> & {
|
|
36
45
|
queryKey: QueryKey;
|
|
37
46
|
};
|
|
38
47
|
type GetJobsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getJobs>>>;
|
|
39
48
|
type GetJobsSuspenseQueryError = ErrorType<DmError>;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
*/
|
|
43
|
-
declare const useGetJobsSuspense: <TData = JobsGetResponse, TError = ErrorType<DmError>>(params?: GetJobsParams, options?: {
|
|
44
|
-
query?: Partial<UseSuspenseQueryOptions<JobsGetResponse, TError, TData, QueryKey>> | undefined;
|
|
49
|
+
declare function useGetJobsSuspense<TData = Awaited<ReturnType<typeof getJobs>>, TError = ErrorType<DmError>>(params: undefined | GetJobsParams, options: {
|
|
50
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData>>;
|
|
45
51
|
request?: SecondParameter<typeof customInstance>;
|
|
46
|
-
}
|
|
52
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
53
|
+
queryKey: QueryKey;
|
|
54
|
+
};
|
|
55
|
+
declare function useGetJobsSuspense<TData = Awaited<ReturnType<typeof getJobs>>, TError = ErrorType<DmError>>(params?: GetJobsParams, options?: {
|
|
56
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData>>;
|
|
57
|
+
request?: SecondParameter<typeof customInstance>;
|
|
58
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
59
|
+
queryKey: QueryKey;
|
|
60
|
+
};
|
|
61
|
+
declare function useGetJobsSuspense<TData = Awaited<ReturnType<typeof getJobs>>, TError = ErrorType<DmError>>(params?: GetJobsParams, options?: {
|
|
62
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData>>;
|
|
63
|
+
request?: SecondParameter<typeof customInstance>;
|
|
64
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
47
65
|
queryKey: QueryKey;
|
|
48
66
|
};
|
|
49
67
|
/**
|
|
@@ -56,37 +74,55 @@ Job availability will vary as Jobs are added to the service. Jobs that have been
|
|
|
56
74
|
declare const getJobByVersion: (params: GetJobByVersionParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<JobGetResponse>;
|
|
57
75
|
declare const getGetJobByVersionQueryKey: (params: GetJobByVersionParams) => readonly ["data-manager-api", "/job/get-by-version", ...GetJobByVersionParams[]];
|
|
58
76
|
declare const getGetJobByVersionQueryOptions: <TData = JobGetResponse, TError = ErrorType<DmError>>(params: GetJobByVersionParams, options?: {
|
|
59
|
-
query?: Partial<UseQueryOptions<
|
|
77
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData>>;
|
|
60
78
|
request?: SecondParameter<typeof customInstance>;
|
|
61
|
-
}
|
|
79
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData> & {
|
|
62
80
|
queryKey: QueryKey;
|
|
63
81
|
};
|
|
64
82
|
type GetJobByVersionQueryResult = NonNullable<Awaited<ReturnType<typeof getJobByVersion>>>;
|
|
65
83
|
type GetJobByVersionQueryError = ErrorType<DmError>;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
84
|
+
declare function useGetJobByVersion<TData = Awaited<ReturnType<typeof getJobByVersion>>, TError = ErrorType<DmError>>(params: GetJobByVersionParams, options: {
|
|
85
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData>, 'initialData'>;
|
|
86
|
+
request?: SecondParameter<typeof customInstance>;
|
|
87
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
88
|
+
queryKey: QueryKey;
|
|
89
|
+
};
|
|
90
|
+
declare function useGetJobByVersion<TData = Awaited<ReturnType<typeof getJobByVersion>>, TError = ErrorType<DmError>>(params: GetJobByVersionParams, options?: {
|
|
91
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData>, 'initialData'>;
|
|
92
|
+
request?: SecondParameter<typeof customInstance>;
|
|
93
|
+
}): UseQueryResult<TData, TError> & {
|
|
94
|
+
queryKey: QueryKey;
|
|
95
|
+
};
|
|
96
|
+
declare function useGetJobByVersion<TData = Awaited<ReturnType<typeof getJobByVersion>>, TError = ErrorType<DmError>>(params: GetJobByVersionParams, options?: {
|
|
97
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData>>;
|
|
71
98
|
request?: SecondParameter<typeof customInstance>;
|
|
72
|
-
}
|
|
99
|
+
}): UseQueryResult<TData, TError> & {
|
|
73
100
|
queryKey: QueryKey;
|
|
74
101
|
};
|
|
75
102
|
declare const getGetJobByVersionSuspenseQueryOptions: <TData = JobGetResponse, TError = ErrorType<DmError>>(params: GetJobByVersionParams, options?: {
|
|
76
|
-
query?: Partial<UseSuspenseQueryOptions<
|
|
103
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData>>;
|
|
77
104
|
request?: SecondParameter<typeof customInstance>;
|
|
78
|
-
}
|
|
105
|
+
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData> & {
|
|
79
106
|
queryKey: QueryKey;
|
|
80
107
|
};
|
|
81
108
|
type GetJobByVersionSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getJobByVersion>>>;
|
|
82
109
|
type GetJobByVersionSuspenseQueryError = ErrorType<DmError>;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
110
|
+
declare function useGetJobByVersionSuspense<TData = Awaited<ReturnType<typeof getJobByVersion>>, TError = ErrorType<DmError>>(params: GetJobByVersionParams, options: {
|
|
111
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData>>;
|
|
112
|
+
request?: SecondParameter<typeof customInstance>;
|
|
113
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
114
|
+
queryKey: QueryKey;
|
|
115
|
+
};
|
|
116
|
+
declare function useGetJobByVersionSuspense<TData = Awaited<ReturnType<typeof getJobByVersion>>, TError = ErrorType<DmError>>(params: GetJobByVersionParams, options?: {
|
|
117
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData>>;
|
|
118
|
+
request?: SecondParameter<typeof customInstance>;
|
|
119
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
120
|
+
queryKey: QueryKey;
|
|
121
|
+
};
|
|
122
|
+
declare function useGetJobByVersionSuspense<TData = Awaited<ReturnType<typeof getJobByVersion>>, TError = ErrorType<DmError>>(params: GetJobByVersionParams, options?: {
|
|
123
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData>>;
|
|
88
124
|
request?: SecondParameter<typeof customInstance>;
|
|
89
|
-
}
|
|
125
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
90
126
|
queryKey: QueryKey;
|
|
91
127
|
};
|
|
92
128
|
/**
|
|
@@ -99,37 +135,55 @@ To run a job you need to use the `/instance` endpoint. The Job is controlled thr
|
|
|
99
135
|
declare const getJob: (jobId: number, params?: GetJobParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<JobGetResponse>;
|
|
100
136
|
declare const getGetJobQueryKey: (jobId: number, params?: GetJobParams) => readonly ["data-manager-api", `/job/${number}`, ...GetJobParams[]];
|
|
101
137
|
declare const getGetJobQueryOptions: <TData = JobGetResponse, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobParams, options?: {
|
|
102
|
-
query?: Partial<UseQueryOptions<
|
|
138
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>>;
|
|
103
139
|
request?: SecondParameter<typeof customInstance>;
|
|
104
|
-
}
|
|
140
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData> & {
|
|
105
141
|
queryKey: QueryKey;
|
|
106
142
|
};
|
|
107
143
|
type GetJobQueryResult = NonNullable<Awaited<ReturnType<typeof getJob>>>;
|
|
108
144
|
type GetJobQueryError = ErrorType<void | DmError>;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
*/
|
|
112
|
-
declare const useGetJob: <TData = JobGetResponse, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobParams, options?: {
|
|
113
|
-
query?: Partial<UseQueryOptions<JobGetResponse, TError, TData, QueryKey>> | undefined;
|
|
145
|
+
declare function useGetJob<TData = Awaited<ReturnType<typeof getJob>>, TError = ErrorType<void | DmError>>(jobId: number, params: undefined | GetJobParams, options: {
|
|
146
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>, 'initialData'>;
|
|
114
147
|
request?: SecondParameter<typeof customInstance>;
|
|
115
|
-
}
|
|
148
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
149
|
+
queryKey: QueryKey;
|
|
150
|
+
};
|
|
151
|
+
declare function useGetJob<TData = Awaited<ReturnType<typeof getJob>>, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobParams, options?: {
|
|
152
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>, 'initialData'>;
|
|
153
|
+
request?: SecondParameter<typeof customInstance>;
|
|
154
|
+
}): UseQueryResult<TData, TError> & {
|
|
155
|
+
queryKey: QueryKey;
|
|
156
|
+
};
|
|
157
|
+
declare function useGetJob<TData = Awaited<ReturnType<typeof getJob>>, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobParams, options?: {
|
|
158
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>>;
|
|
159
|
+
request?: SecondParameter<typeof customInstance>;
|
|
160
|
+
}): UseQueryResult<TData, TError> & {
|
|
116
161
|
queryKey: QueryKey;
|
|
117
162
|
};
|
|
118
163
|
declare const getGetJobSuspenseQueryOptions: <TData = JobGetResponse, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobParams, options?: {
|
|
119
|
-
query?: Partial<UseSuspenseQueryOptions<
|
|
164
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>>;
|
|
120
165
|
request?: SecondParameter<typeof customInstance>;
|
|
121
|
-
}
|
|
166
|
+
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData> & {
|
|
122
167
|
queryKey: QueryKey;
|
|
123
168
|
};
|
|
124
169
|
type GetJobSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getJob>>>;
|
|
125
170
|
type GetJobSuspenseQueryError = ErrorType<void | DmError>;
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
171
|
+
declare function useGetJobSuspense<TData = Awaited<ReturnType<typeof getJob>>, TError = ErrorType<void | DmError>>(jobId: number, params: undefined | GetJobParams, options: {
|
|
172
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>>;
|
|
173
|
+
request?: SecondParameter<typeof customInstance>;
|
|
174
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
175
|
+
queryKey: QueryKey;
|
|
176
|
+
};
|
|
177
|
+
declare function useGetJobSuspense<TData = Awaited<ReturnType<typeof getJob>>, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobParams, options?: {
|
|
178
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>>;
|
|
179
|
+
request?: SecondParameter<typeof customInstance>;
|
|
180
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
181
|
+
queryKey: QueryKey;
|
|
182
|
+
};
|
|
183
|
+
declare function useGetJobSuspense<TData = Awaited<ReturnType<typeof getJob>>, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobParams, options?: {
|
|
184
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>>;
|
|
131
185
|
request?: SecondParameter<typeof customInstance>;
|
|
132
|
-
}
|
|
186
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
133
187
|
queryKey: QueryKey;
|
|
134
188
|
};
|
|
135
189
|
|
package/job/job.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UseQueryOptions, QueryKey, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query';
|
|
1
|
+
import { UseQueryOptions, QueryKey, DefinedInitialDataOptions, DefinedUseQueryResult, UndefinedInitialDataOptions, UseQueryResult, UseSuspenseQueryOptions, UseSuspenseQueryResult } from '@tanstack/react-query';
|
|
2
2
|
import { GetJobsParams, customInstance, JobsGetResponse, ErrorType, DmError, GetJobByVersionParams, JobGetResponse, GetJobParams } from '../index.js';
|
|
3
3
|
import 'axios';
|
|
4
4
|
|
|
@@ -13,37 +13,55 @@ Job availability will vary as Jobs are added to the service.
|
|
|
13
13
|
declare const getJobs: (params?: GetJobsParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<JobsGetResponse>;
|
|
14
14
|
declare const getGetJobsQueryKey: (params?: GetJobsParams) => readonly ["data-manager-api", "/job", ...GetJobsParams[]];
|
|
15
15
|
declare const getGetJobsQueryOptions: <TData = JobsGetResponse, TError = ErrorType<DmError>>(params?: GetJobsParams, options?: {
|
|
16
|
-
query?: Partial<UseQueryOptions<
|
|
16
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData>>;
|
|
17
17
|
request?: SecondParameter<typeof customInstance>;
|
|
18
|
-
}
|
|
18
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData> & {
|
|
19
19
|
queryKey: QueryKey;
|
|
20
20
|
};
|
|
21
21
|
type GetJobsQueryResult = NonNullable<Awaited<ReturnType<typeof getJobs>>>;
|
|
22
22
|
type GetJobsQueryError = ErrorType<DmError>;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
declare function useGetJobs<TData = Awaited<ReturnType<typeof getJobs>>, TError = ErrorType<DmError>>(params: undefined | GetJobsParams, options: {
|
|
24
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData>, 'initialData'>;
|
|
25
|
+
request?: SecondParameter<typeof customInstance>;
|
|
26
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
27
|
+
queryKey: QueryKey;
|
|
28
|
+
};
|
|
29
|
+
declare function useGetJobs<TData = Awaited<ReturnType<typeof getJobs>>, TError = ErrorType<DmError>>(params?: GetJobsParams, options?: {
|
|
30
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData>, 'initialData'>;
|
|
31
|
+
request?: SecondParameter<typeof customInstance>;
|
|
32
|
+
}): UseQueryResult<TData, TError> & {
|
|
33
|
+
queryKey: QueryKey;
|
|
34
|
+
};
|
|
35
|
+
declare function useGetJobs<TData = Awaited<ReturnType<typeof getJobs>>, TError = ErrorType<DmError>>(params?: GetJobsParams, options?: {
|
|
36
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData>>;
|
|
28
37
|
request?: SecondParameter<typeof customInstance>;
|
|
29
|
-
}
|
|
38
|
+
}): UseQueryResult<TData, TError> & {
|
|
30
39
|
queryKey: QueryKey;
|
|
31
40
|
};
|
|
32
41
|
declare const getGetJobsSuspenseQueryOptions: <TData = JobsGetResponse, TError = ErrorType<DmError>>(params?: GetJobsParams, options?: {
|
|
33
|
-
query?: Partial<UseSuspenseQueryOptions<
|
|
42
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData>>;
|
|
34
43
|
request?: SecondParameter<typeof customInstance>;
|
|
35
|
-
}
|
|
44
|
+
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData> & {
|
|
36
45
|
queryKey: QueryKey;
|
|
37
46
|
};
|
|
38
47
|
type GetJobsSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getJobs>>>;
|
|
39
48
|
type GetJobsSuspenseQueryError = ErrorType<DmError>;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
*/
|
|
43
|
-
declare const useGetJobsSuspense: <TData = JobsGetResponse, TError = ErrorType<DmError>>(params?: GetJobsParams, options?: {
|
|
44
|
-
query?: Partial<UseSuspenseQueryOptions<JobsGetResponse, TError, TData, QueryKey>> | undefined;
|
|
49
|
+
declare function useGetJobsSuspense<TData = Awaited<ReturnType<typeof getJobs>>, TError = ErrorType<DmError>>(params: undefined | GetJobsParams, options: {
|
|
50
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData>>;
|
|
45
51
|
request?: SecondParameter<typeof customInstance>;
|
|
46
|
-
}
|
|
52
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
53
|
+
queryKey: QueryKey;
|
|
54
|
+
};
|
|
55
|
+
declare function useGetJobsSuspense<TData = Awaited<ReturnType<typeof getJobs>>, TError = ErrorType<DmError>>(params?: GetJobsParams, options?: {
|
|
56
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData>>;
|
|
57
|
+
request?: SecondParameter<typeof customInstance>;
|
|
58
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
59
|
+
queryKey: QueryKey;
|
|
60
|
+
};
|
|
61
|
+
declare function useGetJobsSuspense<TData = Awaited<ReturnType<typeof getJobs>>, TError = ErrorType<DmError>>(params?: GetJobsParams, options?: {
|
|
62
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobs>>, TError, TData>>;
|
|
63
|
+
request?: SecondParameter<typeof customInstance>;
|
|
64
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
47
65
|
queryKey: QueryKey;
|
|
48
66
|
};
|
|
49
67
|
/**
|
|
@@ -56,37 +74,55 @@ Job availability will vary as Jobs are added to the service. Jobs that have been
|
|
|
56
74
|
declare const getJobByVersion: (params: GetJobByVersionParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<JobGetResponse>;
|
|
57
75
|
declare const getGetJobByVersionQueryKey: (params: GetJobByVersionParams) => readonly ["data-manager-api", "/job/get-by-version", ...GetJobByVersionParams[]];
|
|
58
76
|
declare const getGetJobByVersionQueryOptions: <TData = JobGetResponse, TError = ErrorType<DmError>>(params: GetJobByVersionParams, options?: {
|
|
59
|
-
query?: Partial<UseQueryOptions<
|
|
77
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData>>;
|
|
60
78
|
request?: SecondParameter<typeof customInstance>;
|
|
61
|
-
}
|
|
79
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData> & {
|
|
62
80
|
queryKey: QueryKey;
|
|
63
81
|
};
|
|
64
82
|
type GetJobByVersionQueryResult = NonNullable<Awaited<ReturnType<typeof getJobByVersion>>>;
|
|
65
83
|
type GetJobByVersionQueryError = ErrorType<DmError>;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
84
|
+
declare function useGetJobByVersion<TData = Awaited<ReturnType<typeof getJobByVersion>>, TError = ErrorType<DmError>>(params: GetJobByVersionParams, options: {
|
|
85
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData>, 'initialData'>;
|
|
86
|
+
request?: SecondParameter<typeof customInstance>;
|
|
87
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
88
|
+
queryKey: QueryKey;
|
|
89
|
+
};
|
|
90
|
+
declare function useGetJobByVersion<TData = Awaited<ReturnType<typeof getJobByVersion>>, TError = ErrorType<DmError>>(params: GetJobByVersionParams, options?: {
|
|
91
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData>, 'initialData'>;
|
|
92
|
+
request?: SecondParameter<typeof customInstance>;
|
|
93
|
+
}): UseQueryResult<TData, TError> & {
|
|
94
|
+
queryKey: QueryKey;
|
|
95
|
+
};
|
|
96
|
+
declare function useGetJobByVersion<TData = Awaited<ReturnType<typeof getJobByVersion>>, TError = ErrorType<DmError>>(params: GetJobByVersionParams, options?: {
|
|
97
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData>>;
|
|
71
98
|
request?: SecondParameter<typeof customInstance>;
|
|
72
|
-
}
|
|
99
|
+
}): UseQueryResult<TData, TError> & {
|
|
73
100
|
queryKey: QueryKey;
|
|
74
101
|
};
|
|
75
102
|
declare const getGetJobByVersionSuspenseQueryOptions: <TData = JobGetResponse, TError = ErrorType<DmError>>(params: GetJobByVersionParams, options?: {
|
|
76
|
-
query?: Partial<UseSuspenseQueryOptions<
|
|
103
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData>>;
|
|
77
104
|
request?: SecondParameter<typeof customInstance>;
|
|
78
|
-
}
|
|
105
|
+
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData> & {
|
|
79
106
|
queryKey: QueryKey;
|
|
80
107
|
};
|
|
81
108
|
type GetJobByVersionSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getJobByVersion>>>;
|
|
82
109
|
type GetJobByVersionSuspenseQueryError = ErrorType<DmError>;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
110
|
+
declare function useGetJobByVersionSuspense<TData = Awaited<ReturnType<typeof getJobByVersion>>, TError = ErrorType<DmError>>(params: GetJobByVersionParams, options: {
|
|
111
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData>>;
|
|
112
|
+
request?: SecondParameter<typeof customInstance>;
|
|
113
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
114
|
+
queryKey: QueryKey;
|
|
115
|
+
};
|
|
116
|
+
declare function useGetJobByVersionSuspense<TData = Awaited<ReturnType<typeof getJobByVersion>>, TError = ErrorType<DmError>>(params: GetJobByVersionParams, options?: {
|
|
117
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData>>;
|
|
118
|
+
request?: SecondParameter<typeof customInstance>;
|
|
119
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
120
|
+
queryKey: QueryKey;
|
|
121
|
+
};
|
|
122
|
+
declare function useGetJobByVersionSuspense<TData = Awaited<ReturnType<typeof getJobByVersion>>, TError = ErrorType<DmError>>(params: GetJobByVersionParams, options?: {
|
|
123
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJobByVersion>>, TError, TData>>;
|
|
88
124
|
request?: SecondParameter<typeof customInstance>;
|
|
89
|
-
}
|
|
125
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
90
126
|
queryKey: QueryKey;
|
|
91
127
|
};
|
|
92
128
|
/**
|
|
@@ -99,37 +135,55 @@ To run a job you need to use the `/instance` endpoint. The Job is controlled thr
|
|
|
99
135
|
declare const getJob: (jobId: number, params?: GetJobParams, options?: SecondParameter<typeof customInstance>, signal?: AbortSignal) => Promise<JobGetResponse>;
|
|
100
136
|
declare const getGetJobQueryKey: (jobId: number, params?: GetJobParams) => readonly ["data-manager-api", `/job/${number}`, ...GetJobParams[]];
|
|
101
137
|
declare const getGetJobQueryOptions: <TData = JobGetResponse, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobParams, options?: {
|
|
102
|
-
query?: Partial<UseQueryOptions<
|
|
138
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>>;
|
|
103
139
|
request?: SecondParameter<typeof customInstance>;
|
|
104
|
-
}
|
|
140
|
+
}) => UseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData> & {
|
|
105
141
|
queryKey: QueryKey;
|
|
106
142
|
};
|
|
107
143
|
type GetJobQueryResult = NonNullable<Awaited<ReturnType<typeof getJob>>>;
|
|
108
144
|
type GetJobQueryError = ErrorType<void | DmError>;
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
*/
|
|
112
|
-
declare const useGetJob: <TData = JobGetResponse, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobParams, options?: {
|
|
113
|
-
query?: Partial<UseQueryOptions<JobGetResponse, TError, TData, QueryKey>> | undefined;
|
|
145
|
+
declare function useGetJob<TData = Awaited<ReturnType<typeof getJob>>, TError = ErrorType<void | DmError>>(jobId: number, params: undefined | GetJobParams, options: {
|
|
146
|
+
query: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>> & Pick<DefinedInitialDataOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>, 'initialData'>;
|
|
114
147
|
request?: SecondParameter<typeof customInstance>;
|
|
115
|
-
}
|
|
148
|
+
}): DefinedUseQueryResult<TData, TError> & {
|
|
149
|
+
queryKey: QueryKey;
|
|
150
|
+
};
|
|
151
|
+
declare function useGetJob<TData = Awaited<ReturnType<typeof getJob>>, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobParams, options?: {
|
|
152
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>> & Pick<UndefinedInitialDataOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>, 'initialData'>;
|
|
153
|
+
request?: SecondParameter<typeof customInstance>;
|
|
154
|
+
}): UseQueryResult<TData, TError> & {
|
|
155
|
+
queryKey: QueryKey;
|
|
156
|
+
};
|
|
157
|
+
declare function useGetJob<TData = Awaited<ReturnType<typeof getJob>>, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobParams, options?: {
|
|
158
|
+
query?: Partial<UseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>>;
|
|
159
|
+
request?: SecondParameter<typeof customInstance>;
|
|
160
|
+
}): UseQueryResult<TData, TError> & {
|
|
116
161
|
queryKey: QueryKey;
|
|
117
162
|
};
|
|
118
163
|
declare const getGetJobSuspenseQueryOptions: <TData = JobGetResponse, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobParams, options?: {
|
|
119
|
-
query?: Partial<UseSuspenseQueryOptions<
|
|
164
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>>;
|
|
120
165
|
request?: SecondParameter<typeof customInstance>;
|
|
121
|
-
}
|
|
166
|
+
}) => UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData> & {
|
|
122
167
|
queryKey: QueryKey;
|
|
123
168
|
};
|
|
124
169
|
type GetJobSuspenseQueryResult = NonNullable<Awaited<ReturnType<typeof getJob>>>;
|
|
125
170
|
type GetJobSuspenseQueryError = ErrorType<void | DmError>;
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
171
|
+
declare function useGetJobSuspense<TData = Awaited<ReturnType<typeof getJob>>, TError = ErrorType<void | DmError>>(jobId: number, params: undefined | GetJobParams, options: {
|
|
172
|
+
query: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>>;
|
|
173
|
+
request?: SecondParameter<typeof customInstance>;
|
|
174
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
175
|
+
queryKey: QueryKey;
|
|
176
|
+
};
|
|
177
|
+
declare function useGetJobSuspense<TData = Awaited<ReturnType<typeof getJob>>, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobParams, options?: {
|
|
178
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>>;
|
|
179
|
+
request?: SecondParameter<typeof customInstance>;
|
|
180
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
181
|
+
queryKey: QueryKey;
|
|
182
|
+
};
|
|
183
|
+
declare function useGetJobSuspense<TData = Awaited<ReturnType<typeof getJob>>, TError = ErrorType<void | DmError>>(jobId: number, params?: GetJobParams, options?: {
|
|
184
|
+
query?: Partial<UseSuspenseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>>;
|
|
131
185
|
request?: SecondParameter<typeof customInstance>;
|
|
132
|
-
}
|
|
186
|
+
}): UseSuspenseQueryResult<TData, TError> & {
|
|
133
187
|
queryKey: QueryKey;
|
|
134
188
|
};
|
|
135
189
|
|
package/job/job.js
CHANGED
|
@@ -27,24 +27,24 @@ var getGetJobsQueryOptions = (params, options) => {
|
|
|
27
27
|
const queryFn = ({ signal }) => getJobs(params, requestOptions, signal);
|
|
28
28
|
return { queryKey, queryFn, ...queryOptions };
|
|
29
29
|
};
|
|
30
|
-
|
|
30
|
+
function useGetJobs(params, options) {
|
|
31
31
|
const queryOptions = getGetJobsQueryOptions(params, options);
|
|
32
32
|
const query = useQuery(queryOptions);
|
|
33
33
|
query.queryKey = queryOptions.queryKey;
|
|
34
34
|
return query;
|
|
35
|
-
}
|
|
35
|
+
}
|
|
36
36
|
var getGetJobsSuspenseQueryOptions = (params, options) => {
|
|
37
37
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
38
38
|
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetJobsQueryKey(params);
|
|
39
39
|
const queryFn = ({ signal }) => getJobs(params, requestOptions, signal);
|
|
40
40
|
return { queryKey, queryFn, ...queryOptions };
|
|
41
41
|
};
|
|
42
|
-
|
|
42
|
+
function useGetJobsSuspense(params, options) {
|
|
43
43
|
const queryOptions = getGetJobsSuspenseQueryOptions(params, options);
|
|
44
44
|
const query = useSuspenseQuery(queryOptions);
|
|
45
45
|
query.queryKey = queryOptions.queryKey;
|
|
46
46
|
return query;
|
|
47
|
-
}
|
|
47
|
+
}
|
|
48
48
|
var getJobByVersion = (params, options, signal) => {
|
|
49
49
|
return customInstance(
|
|
50
50
|
{
|
|
@@ -65,24 +65,24 @@ var getGetJobByVersionQueryOptions = (params, options) => {
|
|
|
65
65
|
const queryFn = ({ signal }) => getJobByVersion(params, requestOptions, signal);
|
|
66
66
|
return { queryKey, queryFn, ...queryOptions };
|
|
67
67
|
};
|
|
68
|
-
|
|
68
|
+
function useGetJobByVersion(params, options) {
|
|
69
69
|
const queryOptions = getGetJobByVersionQueryOptions(params, options);
|
|
70
70
|
const query = useQuery(queryOptions);
|
|
71
71
|
query.queryKey = queryOptions.queryKey;
|
|
72
72
|
return query;
|
|
73
|
-
}
|
|
73
|
+
}
|
|
74
74
|
var getGetJobByVersionSuspenseQueryOptions = (params, options) => {
|
|
75
75
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
76
76
|
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetJobByVersionQueryKey(params);
|
|
77
77
|
const queryFn = ({ signal }) => getJobByVersion(params, requestOptions, signal);
|
|
78
78
|
return { queryKey, queryFn, ...queryOptions };
|
|
79
79
|
};
|
|
80
|
-
|
|
80
|
+
function useGetJobByVersionSuspense(params, options) {
|
|
81
81
|
const queryOptions = getGetJobByVersionSuspenseQueryOptions(params, options);
|
|
82
82
|
const query = useSuspenseQuery(queryOptions);
|
|
83
83
|
query.queryKey = queryOptions.queryKey;
|
|
84
84
|
return query;
|
|
85
|
-
}
|
|
85
|
+
}
|
|
86
86
|
var getJob = (jobId, params, options, signal) => {
|
|
87
87
|
return customInstance(
|
|
88
88
|
{
|
|
@@ -103,24 +103,24 @@ var getGetJobQueryOptions = (jobId, params, options) => {
|
|
|
103
103
|
const queryFn = ({ signal }) => getJob(jobId, params, requestOptions, signal);
|
|
104
104
|
return { queryKey, queryFn, enabled: !!jobId, ...queryOptions };
|
|
105
105
|
};
|
|
106
|
-
|
|
106
|
+
function useGetJob(jobId, params, options) {
|
|
107
107
|
const queryOptions = getGetJobQueryOptions(jobId, params, options);
|
|
108
108
|
const query = useQuery(queryOptions);
|
|
109
109
|
query.queryKey = queryOptions.queryKey;
|
|
110
110
|
return query;
|
|
111
|
-
}
|
|
111
|
+
}
|
|
112
112
|
var getGetJobSuspenseQueryOptions = (jobId, params, options) => {
|
|
113
113
|
const { query: queryOptions, request: requestOptions } = options ?? {};
|
|
114
114
|
const queryKey = (queryOptions == null ? void 0 : queryOptions.queryKey) ?? getGetJobQueryKey(jobId, params);
|
|
115
115
|
const queryFn = ({ signal }) => getJob(jobId, params, requestOptions, signal);
|
|
116
116
|
return { queryKey, queryFn, enabled: !!jobId, ...queryOptions };
|
|
117
117
|
};
|
|
118
|
-
|
|
118
|
+
function useGetJobSuspense(jobId, params, options) {
|
|
119
119
|
const queryOptions = getGetJobSuspenseQueryOptions(jobId, params, options);
|
|
120
120
|
const query = useSuspenseQuery(queryOptions);
|
|
121
121
|
query.queryKey = queryOptions.queryKey;
|
|
122
122
|
return query;
|
|
123
|
-
}
|
|
123
|
+
}
|
|
124
124
|
export {
|
|
125
125
|
getGetJobByVersionQueryKey,
|
|
126
126
|
getGetJobByVersionQueryOptions,
|