@uthana/react 0.2.0 → 0.3.1
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/README.md +91 -0
- package/dist/index.cjs +30 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +175 -1
- package/dist/index.d.ts +175 -1
- package/dist/index.js +29 -1
- package/dist/index.js.map +1 -1
- package/package.json +8 -3
- package/dist/UthanaProvider.d.ts +0 -24
- package/dist/UthanaProvider.d.ts.map +0 -1
- package/dist/client.d.ts +0 -15
- package/dist/client.d.ts.map +0 -1
- package/dist/hooks/characters.d.ts +0 -36
- package/dist/hooks/characters.d.ts.map +0 -1
- package/dist/hooks/index.d.ts +0 -11
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/jobs.d.ts +0 -8
- package/dist/hooks/jobs.d.ts.map +0 -1
- package/dist/hooks/motionDownloads.d.ts +0 -8
- package/dist/hooks/motionDownloads.d.ts.map +0 -1
- package/dist/hooks/motions.d.ts +0 -14
- package/dist/hooks/motions.d.ts.map +0 -1
- package/dist/hooks/org.d.ts +0 -8
- package/dist/hooks/org.d.ts.map +0 -1
- package/dist/hooks/ttm.d.ts +0 -16
- package/dist/hooks/ttm.d.ts.map +0 -1
- package/dist/hooks/useCharacters.d.ts +0 -36
- package/dist/hooks/useCharacters.d.ts.map +0 -1
- package/dist/hooks/useJobs.d.ts +0 -8
- package/dist/hooks/useJobs.d.ts.map +0 -1
- package/dist/hooks/useMotionDownloads.d.ts +0 -8
- package/dist/hooks/useMotionDownloads.d.ts.map +0 -1
- package/dist/hooks/useMotions.d.ts +0 -14
- package/dist/hooks/useMotions.d.ts.map +0 -1
- package/dist/hooks/useOrg.d.ts +0 -8
- package/dist/hooks/useOrg.d.ts.map +0 -1
- package/dist/hooks/useTtm.d.ts +0 -16
- package/dist/hooks/useTtm.d.ts.map +0 -1
- package/dist/hooks/useVtm.d.ts +0 -11
- package/dist/hooks/useVtm.d.ts.map +0 -1
- package/dist/hooks/vtm.d.ts +0 -11
- package/dist/hooks/vtm.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/modules/characters.d.ts +0 -262
- package/dist/modules/characters.d.ts.map +0 -1
- package/dist/modules/index.d.ts +0 -11
- package/dist/modules/index.d.ts.map +0 -1
- package/dist/modules/jobs.d.ts +0 -332
- package/dist/modules/jobs.d.ts.map +0 -1
- package/dist/modules/motionDownloads.d.ts +0 -332
- package/dist/modules/motionDownloads.d.ts.map +0 -1
- package/dist/modules/motions.d.ts +0 -511
- package/dist/modules/motions.d.ts.map +0 -1
- package/dist/modules/org.d.ts +0 -332
- package/dist/modules/org.d.ts.map +0 -1
- package/dist/modules/ttm.d.ts +0 -16
- package/dist/modules/ttm.d.ts.map +0 -1
- package/dist/modules/vtm.d.ts +0 -11
- package/dist/modules/vtm.d.ts.map +0 -1
|
@@ -1,262 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* (c) Copyright 2026 Uthana, Inc. All Rights Reserved
|
|
3
|
-
*/
|
|
4
|
-
import type { CreateCharacterResult, CreateFromGeneratedImageResult } from "@uthana/client";
|
|
5
|
-
/** Hook to list characters. */
|
|
6
|
-
export declare function useUthanaCharacters(): {
|
|
7
|
-
error: Error;
|
|
8
|
-
isError: true;
|
|
9
|
-
isPending: false;
|
|
10
|
-
isLoading: false;
|
|
11
|
-
isLoadingError: false;
|
|
12
|
-
isRefetchError: true;
|
|
13
|
-
isSuccess: false;
|
|
14
|
-
isPlaceholderData: false;
|
|
15
|
-
status: "error";
|
|
16
|
-
dataUpdatedAt: number;
|
|
17
|
-
errorUpdatedAt: number;
|
|
18
|
-
failureCount: number;
|
|
19
|
-
failureReason: Error | null;
|
|
20
|
-
errorUpdateCount: number;
|
|
21
|
-
isFetched: boolean;
|
|
22
|
-
isFetchedAfterMount: boolean;
|
|
23
|
-
isFetching: boolean;
|
|
24
|
-
isInitialLoading: boolean;
|
|
25
|
-
isPaused: boolean;
|
|
26
|
-
isRefetching: boolean;
|
|
27
|
-
isStale: boolean;
|
|
28
|
-
isEnabled: boolean;
|
|
29
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@uthana/client").Character[], Error>>;
|
|
30
|
-
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
31
|
-
promise: Promise<import("@uthana/client").Character[]>;
|
|
32
|
-
characters: import("@uthana/client").Character[] | undefined;
|
|
33
|
-
} | {
|
|
34
|
-
error: null;
|
|
35
|
-
isError: false;
|
|
36
|
-
isPending: false;
|
|
37
|
-
isLoading: false;
|
|
38
|
-
isLoadingError: false;
|
|
39
|
-
isRefetchError: false;
|
|
40
|
-
isSuccess: true;
|
|
41
|
-
isPlaceholderData: false;
|
|
42
|
-
status: "success";
|
|
43
|
-
dataUpdatedAt: number;
|
|
44
|
-
errorUpdatedAt: number;
|
|
45
|
-
failureCount: number;
|
|
46
|
-
failureReason: Error | null;
|
|
47
|
-
errorUpdateCount: number;
|
|
48
|
-
isFetched: boolean;
|
|
49
|
-
isFetchedAfterMount: boolean;
|
|
50
|
-
isFetching: boolean;
|
|
51
|
-
isInitialLoading: boolean;
|
|
52
|
-
isPaused: boolean;
|
|
53
|
-
isRefetching: boolean;
|
|
54
|
-
isStale: boolean;
|
|
55
|
-
isEnabled: boolean;
|
|
56
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@uthana/client").Character[], Error>>;
|
|
57
|
-
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
58
|
-
promise: Promise<import("@uthana/client").Character[]>;
|
|
59
|
-
characters: import("@uthana/client").Character[] | undefined;
|
|
60
|
-
} | {
|
|
61
|
-
error: Error;
|
|
62
|
-
isError: true;
|
|
63
|
-
isPending: false;
|
|
64
|
-
isLoading: false;
|
|
65
|
-
isLoadingError: true;
|
|
66
|
-
isRefetchError: false;
|
|
67
|
-
isSuccess: false;
|
|
68
|
-
isPlaceholderData: false;
|
|
69
|
-
status: "error";
|
|
70
|
-
dataUpdatedAt: number;
|
|
71
|
-
errorUpdatedAt: number;
|
|
72
|
-
failureCount: number;
|
|
73
|
-
failureReason: Error | null;
|
|
74
|
-
errorUpdateCount: number;
|
|
75
|
-
isFetched: boolean;
|
|
76
|
-
isFetchedAfterMount: boolean;
|
|
77
|
-
isFetching: boolean;
|
|
78
|
-
isInitialLoading: boolean;
|
|
79
|
-
isPaused: boolean;
|
|
80
|
-
isRefetching: boolean;
|
|
81
|
-
isStale: boolean;
|
|
82
|
-
isEnabled: boolean;
|
|
83
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@uthana/client").Character[], Error>>;
|
|
84
|
-
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
85
|
-
promise: Promise<import("@uthana/client").Character[]>;
|
|
86
|
-
characters: import("@uthana/client").Character[] | undefined;
|
|
87
|
-
} | {
|
|
88
|
-
error: null;
|
|
89
|
-
isError: false;
|
|
90
|
-
isPending: true;
|
|
91
|
-
isLoading: true;
|
|
92
|
-
isLoadingError: false;
|
|
93
|
-
isRefetchError: false;
|
|
94
|
-
isSuccess: false;
|
|
95
|
-
isPlaceholderData: false;
|
|
96
|
-
status: "pending";
|
|
97
|
-
dataUpdatedAt: number;
|
|
98
|
-
errorUpdatedAt: number;
|
|
99
|
-
failureCount: number;
|
|
100
|
-
failureReason: Error | null;
|
|
101
|
-
errorUpdateCount: number;
|
|
102
|
-
isFetched: boolean;
|
|
103
|
-
isFetchedAfterMount: boolean;
|
|
104
|
-
isFetching: boolean;
|
|
105
|
-
isInitialLoading: boolean;
|
|
106
|
-
isPaused: boolean;
|
|
107
|
-
isRefetching: boolean;
|
|
108
|
-
isStale: boolean;
|
|
109
|
-
isEnabled: boolean;
|
|
110
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@uthana/client").Character[], Error>>;
|
|
111
|
-
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
112
|
-
promise: Promise<import("@uthana/client").Character[]>;
|
|
113
|
-
characters: import("@uthana/client").Character[] | undefined;
|
|
114
|
-
} | {
|
|
115
|
-
error: null;
|
|
116
|
-
isError: false;
|
|
117
|
-
isPending: true;
|
|
118
|
-
isLoadingError: false;
|
|
119
|
-
isRefetchError: false;
|
|
120
|
-
isSuccess: false;
|
|
121
|
-
isPlaceholderData: false;
|
|
122
|
-
status: "pending";
|
|
123
|
-
dataUpdatedAt: number;
|
|
124
|
-
errorUpdatedAt: number;
|
|
125
|
-
failureCount: number;
|
|
126
|
-
failureReason: Error | null;
|
|
127
|
-
errorUpdateCount: number;
|
|
128
|
-
isFetched: boolean;
|
|
129
|
-
isFetchedAfterMount: boolean;
|
|
130
|
-
isFetching: boolean;
|
|
131
|
-
isLoading: boolean;
|
|
132
|
-
isInitialLoading: boolean;
|
|
133
|
-
isPaused: boolean;
|
|
134
|
-
isRefetching: boolean;
|
|
135
|
-
isStale: boolean;
|
|
136
|
-
isEnabled: boolean;
|
|
137
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@uthana/client").Character[], Error>>;
|
|
138
|
-
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
139
|
-
promise: Promise<import("@uthana/client").Character[]>;
|
|
140
|
-
characters: import("@uthana/client").Character[] | undefined;
|
|
141
|
-
} | {
|
|
142
|
-
isError: false;
|
|
143
|
-
error: null;
|
|
144
|
-
isPending: false;
|
|
145
|
-
isLoading: false;
|
|
146
|
-
isLoadingError: false;
|
|
147
|
-
isRefetchError: false;
|
|
148
|
-
isSuccess: true;
|
|
149
|
-
isPlaceholderData: true;
|
|
150
|
-
status: "success";
|
|
151
|
-
dataUpdatedAt: number;
|
|
152
|
-
errorUpdatedAt: number;
|
|
153
|
-
failureCount: number;
|
|
154
|
-
failureReason: Error | null;
|
|
155
|
-
errorUpdateCount: number;
|
|
156
|
-
isFetched: boolean;
|
|
157
|
-
isFetchedAfterMount: boolean;
|
|
158
|
-
isFetching: boolean;
|
|
159
|
-
isInitialLoading: boolean;
|
|
160
|
-
isPaused: boolean;
|
|
161
|
-
isRefetching: boolean;
|
|
162
|
-
isStale: boolean;
|
|
163
|
-
isEnabled: boolean;
|
|
164
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@uthana/client").Character[], Error>>;
|
|
165
|
-
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
166
|
-
promise: Promise<import("@uthana/client").Character[]>;
|
|
167
|
-
characters: import("@uthana/client").Character[] | undefined;
|
|
168
|
-
};
|
|
169
|
-
type Preview = {
|
|
170
|
-
key: string;
|
|
171
|
-
url: string;
|
|
172
|
-
};
|
|
173
|
-
type GenerateParams = {
|
|
174
|
-
from: "prompt";
|
|
175
|
-
prompt: string;
|
|
176
|
-
name?: string | null;
|
|
177
|
-
/** Return a preview key to auto-confirm without waiting for manual confirm(). */
|
|
178
|
-
onPreviewsReady?: (previews: Preview[]) => string | null | undefined | Promise<string | null | undefined>;
|
|
179
|
-
} | {
|
|
180
|
-
/**
|
|
181
|
-
* Upload an image file and generate a character from it.
|
|
182
|
-
* Always single-step — resolves directly to a finished character.
|
|
183
|
-
* No prompt or preview selection required.
|
|
184
|
-
*/
|
|
185
|
-
from: "image";
|
|
186
|
-
file: File | Blob;
|
|
187
|
-
name?: string | null;
|
|
188
|
-
};
|
|
189
|
-
type CreateFileParams = {
|
|
190
|
-
from: "file";
|
|
191
|
-
file: File | Blob | string;
|
|
192
|
-
auto_rig?: boolean | null;
|
|
193
|
-
front_facing?: boolean | null;
|
|
194
|
-
};
|
|
195
|
-
type ConfirmParams = {
|
|
196
|
-
image_key: string;
|
|
197
|
-
/** Optionally name the character at confirmation time. */
|
|
198
|
-
name?: string | null;
|
|
199
|
-
};
|
|
200
|
-
type CreateCharacterData = CreateCharacterResult | CreateFromGeneratedImageResult;
|
|
201
|
-
/**
|
|
202
|
-
* Unified hook for all character creation flows:
|
|
203
|
-
*
|
|
204
|
-
* **File upload (GLB/FBX)** — single step:
|
|
205
|
-
* ```ts
|
|
206
|
-
* creator.create({ from: "file", file });
|
|
207
|
-
* ```
|
|
208
|
-
*
|
|
209
|
-
* **Text prompt** — two steps. Call generate(), then either:
|
|
210
|
-
* - let `onPreviewsReady` auto-select a key and complete automatically, or
|
|
211
|
-
* - render `creator.previews`, then call `creator.confirm({ image_key })`.
|
|
212
|
-
*
|
|
213
|
-
* ```ts
|
|
214
|
-
* // Auto-select first preview
|
|
215
|
-
* creator.generate({ from: "prompt", prompt: "a knight in armor",
|
|
216
|
-
* onPreviewsReady: (previews) => previews[0].key });
|
|
217
|
-
*
|
|
218
|
-
* // Manual selection
|
|
219
|
-
* creator.generate({ from: "prompt", prompt: "a knight" });
|
|
220
|
-
* // ... render creator.previews, user picks one ...
|
|
221
|
-
* creator.confirm({ image_key: selected });
|
|
222
|
-
* ```
|
|
223
|
-
*
|
|
224
|
-
* **Image file** — single step (no preview selection):
|
|
225
|
-
* ```ts
|
|
226
|
-
* creator.generate({ from: "image", file });
|
|
227
|
-
* ```
|
|
228
|
-
*/
|
|
229
|
-
export declare function useUthanaCreateCharacter(): {
|
|
230
|
-
/** Start a text-prompt or image generation flow. */
|
|
231
|
-
generate: (params: GenerateParams) => Promise<void>;
|
|
232
|
-
/** Confirm a generated preview and create the character (step 2 of the prompt flow). */
|
|
233
|
-
confirm: (params: ConfirmParams) => Promise<void>;
|
|
234
|
-
/** Upload a GLB/FBX directly (single step). */
|
|
235
|
-
create: (params: CreateFileParams) => Promise<void>;
|
|
236
|
-
/** Preview images from a prompt generation. Render for user selection, then call confirm(). */
|
|
237
|
-
previews: Preview[] | null;
|
|
238
|
-
/** True while generate() or create()/confirm() are in flight. */
|
|
239
|
-
isPending: boolean;
|
|
240
|
-
isGenerating: boolean;
|
|
241
|
-
/** True after prompt generate() completes and previews are ready for selection. */
|
|
242
|
-
isAwaitingSelection: boolean;
|
|
243
|
-
isCreating: boolean;
|
|
244
|
-
isSuccess: boolean;
|
|
245
|
-
isError: boolean;
|
|
246
|
-
/** Final result — CreateCharacterResult (file) or CreateFromGeneratedImageResult (generate flows). */
|
|
247
|
-
character: CreateCharacterData | null;
|
|
248
|
-
error: Error | null;
|
|
249
|
-
/** Reset all state back to idle. */
|
|
250
|
-
reset: () => void;
|
|
251
|
-
};
|
|
252
|
-
/** Hook to rename a character. */
|
|
253
|
-
export declare function useUthanaRenameCharacter(): import("@tanstack/react-query").UseMutationResult<import("@uthana/client").Character, Error, {
|
|
254
|
-
character_id: string;
|
|
255
|
-
name: string;
|
|
256
|
-
}, unknown>;
|
|
257
|
-
/** Hook to delete a character. */
|
|
258
|
-
export declare function useUthanaDeleteCharacter(): import("@tanstack/react-query").UseMutationResult<import("@uthana/client").Character, Error, {
|
|
259
|
-
character_id: string;
|
|
260
|
-
}, unknown>;
|
|
261
|
-
export {};
|
|
262
|
-
//# sourceMappingURL=characters.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"characters.d.ts","sourceRoot":"","sources":["../../src/modules/characters.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAEV,qBAAqB,EACrB,8BAA8B,EAC/B,MAAM,gBAAgB,CAAC;AAMxB,+BAA+B;AAC/B,wBAAgB,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOlC;AAMD,KAAK,OAAO,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAE5C,KAAK,cAAc,GACf;IACE,IAAI,EAAE,QAAQ,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,iFAAiF;IACjF,eAAe,CAAC,EAAE,CAChB,QAAQ,EAAE,OAAO,EAAE,KAChB,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;CACrE,GACD;IACE;;;;OAIG;IACH,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB,CAAC;AAEN,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;CAC/B,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,0DAA0D;IAC1D,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB,CAAC;AAEF,KAAK,mBAAmB,GAAG,qBAAqB,GAAG,8BAA8B,CAAC;AAclF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,wBAAwB;IA0HpC,oDAAoD;uBA7DrC,cAAc;IA+D7B,wFAAwF;sBA/FzE,aAAa;IAiG5B,+CAA+C;qBAxBhC,gBAAgB;IA0B/B,+FAA+F;;IAE/F,iEAAiE;;;IAGjE,mFAAmF;;;;;IAKnF,sGAAsG;;;IAGtG,oCAAoC;;EAGvC;AAED,kCAAkC;AAClC,wBAAgB,wBAAwB;kBAIC,MAAM;UAAQ,MAAM;YAM5D;AAED,kCAAkC;AAClC,wBAAgB,wBAAwB;kBAIC,MAAM;YAK9C"}
|
package/dist/modules/index.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* (c) Copyright 2026 Uthana, Inc. All Rights Reserved
|
|
3
|
-
*/
|
|
4
|
-
export { useUthanaCharacters, useUthanaCreateCharacter, useUthanaDeleteCharacter, useUthanaRenameCharacter, } from "./characters";
|
|
5
|
-
export { useUthanaJob, useUthanaJobs } from "./jobs";
|
|
6
|
-
export { useUthanaIsMotionDownloadAllowed, useUthanaMotionDownloads } from "./motionDownloads";
|
|
7
|
-
export { useUthanaBakeWithChanges, useUthanaMotion, useUthanaMotionPreview, useUthanaMotions, useUthanaRateMotion, } from "./motions";
|
|
8
|
-
export { useUthanaOrg, useUthanaUser } from "./org";
|
|
9
|
-
export { useUthanaTtm } from "./ttm";
|
|
10
|
-
export { useUthanaVtm } from "./vtm";
|
|
11
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/modules/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACrD,OAAO,EAAE,gCAAgC,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC/F,OAAO,EACL,wBAAwB,EACxB,eAAe,EACf,sBAAsB,EACtB,gBAAgB,EAChB,mBAAmB,GACpB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC"}
|
package/dist/modules/jobs.d.ts
DELETED
|
@@ -1,332 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* (c) Copyright 2026 Uthana, Inc. All Rights Reserved
|
|
3
|
-
*/
|
|
4
|
-
/** Hook to list jobs. */
|
|
5
|
-
export declare function useUthanaJobs(method?: string | null): {
|
|
6
|
-
error: Error;
|
|
7
|
-
isError: true;
|
|
8
|
-
isPending: false;
|
|
9
|
-
isLoading: false;
|
|
10
|
-
isLoadingError: false;
|
|
11
|
-
isRefetchError: true;
|
|
12
|
-
isSuccess: false;
|
|
13
|
-
isPlaceholderData: false;
|
|
14
|
-
status: "error";
|
|
15
|
-
dataUpdatedAt: number;
|
|
16
|
-
errorUpdatedAt: number;
|
|
17
|
-
failureCount: number;
|
|
18
|
-
failureReason: Error | null;
|
|
19
|
-
errorUpdateCount: number;
|
|
20
|
-
isFetched: boolean;
|
|
21
|
-
isFetchedAfterMount: boolean;
|
|
22
|
-
isFetching: boolean;
|
|
23
|
-
isInitialLoading: boolean;
|
|
24
|
-
isPaused: boolean;
|
|
25
|
-
isRefetching: boolean;
|
|
26
|
-
isStale: boolean;
|
|
27
|
-
isEnabled: boolean;
|
|
28
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@uthana/client").Job[], Error>>;
|
|
29
|
-
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
30
|
-
promise: Promise<import("@uthana/client").Job[]>;
|
|
31
|
-
jobs: import("@uthana/client").Job[] | undefined;
|
|
32
|
-
} | {
|
|
33
|
-
error: null;
|
|
34
|
-
isError: false;
|
|
35
|
-
isPending: false;
|
|
36
|
-
isLoading: false;
|
|
37
|
-
isLoadingError: false;
|
|
38
|
-
isRefetchError: false;
|
|
39
|
-
isSuccess: true;
|
|
40
|
-
isPlaceholderData: false;
|
|
41
|
-
status: "success";
|
|
42
|
-
dataUpdatedAt: number;
|
|
43
|
-
errorUpdatedAt: number;
|
|
44
|
-
failureCount: number;
|
|
45
|
-
failureReason: Error | null;
|
|
46
|
-
errorUpdateCount: number;
|
|
47
|
-
isFetched: boolean;
|
|
48
|
-
isFetchedAfterMount: boolean;
|
|
49
|
-
isFetching: boolean;
|
|
50
|
-
isInitialLoading: boolean;
|
|
51
|
-
isPaused: boolean;
|
|
52
|
-
isRefetching: boolean;
|
|
53
|
-
isStale: boolean;
|
|
54
|
-
isEnabled: boolean;
|
|
55
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@uthana/client").Job[], Error>>;
|
|
56
|
-
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
57
|
-
promise: Promise<import("@uthana/client").Job[]>;
|
|
58
|
-
jobs: import("@uthana/client").Job[] | undefined;
|
|
59
|
-
} | {
|
|
60
|
-
error: Error;
|
|
61
|
-
isError: true;
|
|
62
|
-
isPending: false;
|
|
63
|
-
isLoading: false;
|
|
64
|
-
isLoadingError: true;
|
|
65
|
-
isRefetchError: false;
|
|
66
|
-
isSuccess: false;
|
|
67
|
-
isPlaceholderData: false;
|
|
68
|
-
status: "error";
|
|
69
|
-
dataUpdatedAt: number;
|
|
70
|
-
errorUpdatedAt: number;
|
|
71
|
-
failureCount: number;
|
|
72
|
-
failureReason: Error | null;
|
|
73
|
-
errorUpdateCount: number;
|
|
74
|
-
isFetched: boolean;
|
|
75
|
-
isFetchedAfterMount: boolean;
|
|
76
|
-
isFetching: boolean;
|
|
77
|
-
isInitialLoading: boolean;
|
|
78
|
-
isPaused: boolean;
|
|
79
|
-
isRefetching: boolean;
|
|
80
|
-
isStale: boolean;
|
|
81
|
-
isEnabled: boolean;
|
|
82
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@uthana/client").Job[], Error>>;
|
|
83
|
-
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
84
|
-
promise: Promise<import("@uthana/client").Job[]>;
|
|
85
|
-
jobs: import("@uthana/client").Job[] | undefined;
|
|
86
|
-
} | {
|
|
87
|
-
error: null;
|
|
88
|
-
isError: false;
|
|
89
|
-
isPending: true;
|
|
90
|
-
isLoading: true;
|
|
91
|
-
isLoadingError: false;
|
|
92
|
-
isRefetchError: false;
|
|
93
|
-
isSuccess: false;
|
|
94
|
-
isPlaceholderData: false;
|
|
95
|
-
status: "pending";
|
|
96
|
-
dataUpdatedAt: number;
|
|
97
|
-
errorUpdatedAt: number;
|
|
98
|
-
failureCount: number;
|
|
99
|
-
failureReason: Error | null;
|
|
100
|
-
errorUpdateCount: number;
|
|
101
|
-
isFetched: boolean;
|
|
102
|
-
isFetchedAfterMount: boolean;
|
|
103
|
-
isFetching: boolean;
|
|
104
|
-
isInitialLoading: boolean;
|
|
105
|
-
isPaused: boolean;
|
|
106
|
-
isRefetching: boolean;
|
|
107
|
-
isStale: boolean;
|
|
108
|
-
isEnabled: boolean;
|
|
109
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@uthana/client").Job[], Error>>;
|
|
110
|
-
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
111
|
-
promise: Promise<import("@uthana/client").Job[]>;
|
|
112
|
-
jobs: import("@uthana/client").Job[] | undefined;
|
|
113
|
-
} | {
|
|
114
|
-
error: null;
|
|
115
|
-
isError: false;
|
|
116
|
-
isPending: true;
|
|
117
|
-
isLoadingError: false;
|
|
118
|
-
isRefetchError: false;
|
|
119
|
-
isSuccess: false;
|
|
120
|
-
isPlaceholderData: false;
|
|
121
|
-
status: "pending";
|
|
122
|
-
dataUpdatedAt: number;
|
|
123
|
-
errorUpdatedAt: number;
|
|
124
|
-
failureCount: number;
|
|
125
|
-
failureReason: Error | null;
|
|
126
|
-
errorUpdateCount: number;
|
|
127
|
-
isFetched: boolean;
|
|
128
|
-
isFetchedAfterMount: boolean;
|
|
129
|
-
isFetching: boolean;
|
|
130
|
-
isLoading: boolean;
|
|
131
|
-
isInitialLoading: boolean;
|
|
132
|
-
isPaused: boolean;
|
|
133
|
-
isRefetching: boolean;
|
|
134
|
-
isStale: boolean;
|
|
135
|
-
isEnabled: boolean;
|
|
136
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@uthana/client").Job[], Error>>;
|
|
137
|
-
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
138
|
-
promise: Promise<import("@uthana/client").Job[]>;
|
|
139
|
-
jobs: import("@uthana/client").Job[] | undefined;
|
|
140
|
-
} | {
|
|
141
|
-
isError: false;
|
|
142
|
-
error: null;
|
|
143
|
-
isPending: false;
|
|
144
|
-
isLoading: false;
|
|
145
|
-
isLoadingError: false;
|
|
146
|
-
isRefetchError: false;
|
|
147
|
-
isSuccess: true;
|
|
148
|
-
isPlaceholderData: true;
|
|
149
|
-
status: "success";
|
|
150
|
-
dataUpdatedAt: number;
|
|
151
|
-
errorUpdatedAt: number;
|
|
152
|
-
failureCount: number;
|
|
153
|
-
failureReason: Error | null;
|
|
154
|
-
errorUpdateCount: number;
|
|
155
|
-
isFetched: boolean;
|
|
156
|
-
isFetchedAfterMount: boolean;
|
|
157
|
-
isFetching: boolean;
|
|
158
|
-
isInitialLoading: boolean;
|
|
159
|
-
isPaused: boolean;
|
|
160
|
-
isRefetching: boolean;
|
|
161
|
-
isStale: boolean;
|
|
162
|
-
isEnabled: boolean;
|
|
163
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@uthana/client").Job[], Error>>;
|
|
164
|
-
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
165
|
-
promise: Promise<import("@uthana/client").Job[]>;
|
|
166
|
-
jobs: import("@uthana/client").Job[] | undefined;
|
|
167
|
-
};
|
|
168
|
-
/** Hook to get a single job by ID. */
|
|
169
|
-
export declare function useUthanaJob(jobId: string | null): {
|
|
170
|
-
error: Error;
|
|
171
|
-
isError: true;
|
|
172
|
-
isPending: false;
|
|
173
|
-
isLoading: false;
|
|
174
|
-
isLoadingError: false;
|
|
175
|
-
isRefetchError: true;
|
|
176
|
-
isSuccess: false;
|
|
177
|
-
isPlaceholderData: false;
|
|
178
|
-
status: "error";
|
|
179
|
-
dataUpdatedAt: number;
|
|
180
|
-
errorUpdatedAt: number;
|
|
181
|
-
failureCount: number;
|
|
182
|
-
failureReason: Error | null;
|
|
183
|
-
errorUpdateCount: number;
|
|
184
|
-
isFetched: boolean;
|
|
185
|
-
isFetchedAfterMount: boolean;
|
|
186
|
-
isFetching: boolean;
|
|
187
|
-
isInitialLoading: boolean;
|
|
188
|
-
isPaused: boolean;
|
|
189
|
-
isRefetching: boolean;
|
|
190
|
-
isStale: boolean;
|
|
191
|
-
isEnabled: boolean;
|
|
192
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@uthana/client").Job, Error>>;
|
|
193
|
-
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
194
|
-
promise: Promise<import("@uthana/client").Job>;
|
|
195
|
-
job: import("@uthana/client").Job | undefined;
|
|
196
|
-
} | {
|
|
197
|
-
error: null;
|
|
198
|
-
isError: false;
|
|
199
|
-
isPending: false;
|
|
200
|
-
isLoading: false;
|
|
201
|
-
isLoadingError: false;
|
|
202
|
-
isRefetchError: false;
|
|
203
|
-
isSuccess: true;
|
|
204
|
-
isPlaceholderData: false;
|
|
205
|
-
status: "success";
|
|
206
|
-
dataUpdatedAt: number;
|
|
207
|
-
errorUpdatedAt: number;
|
|
208
|
-
failureCount: number;
|
|
209
|
-
failureReason: Error | null;
|
|
210
|
-
errorUpdateCount: number;
|
|
211
|
-
isFetched: boolean;
|
|
212
|
-
isFetchedAfterMount: boolean;
|
|
213
|
-
isFetching: boolean;
|
|
214
|
-
isInitialLoading: boolean;
|
|
215
|
-
isPaused: boolean;
|
|
216
|
-
isRefetching: boolean;
|
|
217
|
-
isStale: boolean;
|
|
218
|
-
isEnabled: boolean;
|
|
219
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@uthana/client").Job, Error>>;
|
|
220
|
-
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
221
|
-
promise: Promise<import("@uthana/client").Job>;
|
|
222
|
-
job: import("@uthana/client").Job | undefined;
|
|
223
|
-
} | {
|
|
224
|
-
error: Error;
|
|
225
|
-
isError: true;
|
|
226
|
-
isPending: false;
|
|
227
|
-
isLoading: false;
|
|
228
|
-
isLoadingError: true;
|
|
229
|
-
isRefetchError: false;
|
|
230
|
-
isSuccess: false;
|
|
231
|
-
isPlaceholderData: false;
|
|
232
|
-
status: "error";
|
|
233
|
-
dataUpdatedAt: number;
|
|
234
|
-
errorUpdatedAt: number;
|
|
235
|
-
failureCount: number;
|
|
236
|
-
failureReason: Error | null;
|
|
237
|
-
errorUpdateCount: number;
|
|
238
|
-
isFetched: boolean;
|
|
239
|
-
isFetchedAfterMount: boolean;
|
|
240
|
-
isFetching: boolean;
|
|
241
|
-
isInitialLoading: boolean;
|
|
242
|
-
isPaused: boolean;
|
|
243
|
-
isRefetching: boolean;
|
|
244
|
-
isStale: boolean;
|
|
245
|
-
isEnabled: boolean;
|
|
246
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@uthana/client").Job, Error>>;
|
|
247
|
-
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
248
|
-
promise: Promise<import("@uthana/client").Job>;
|
|
249
|
-
job: import("@uthana/client").Job | undefined;
|
|
250
|
-
} | {
|
|
251
|
-
error: null;
|
|
252
|
-
isError: false;
|
|
253
|
-
isPending: true;
|
|
254
|
-
isLoading: true;
|
|
255
|
-
isLoadingError: false;
|
|
256
|
-
isRefetchError: false;
|
|
257
|
-
isSuccess: false;
|
|
258
|
-
isPlaceholderData: false;
|
|
259
|
-
status: "pending";
|
|
260
|
-
dataUpdatedAt: number;
|
|
261
|
-
errorUpdatedAt: number;
|
|
262
|
-
failureCount: number;
|
|
263
|
-
failureReason: Error | null;
|
|
264
|
-
errorUpdateCount: number;
|
|
265
|
-
isFetched: boolean;
|
|
266
|
-
isFetchedAfterMount: boolean;
|
|
267
|
-
isFetching: boolean;
|
|
268
|
-
isInitialLoading: boolean;
|
|
269
|
-
isPaused: boolean;
|
|
270
|
-
isRefetching: boolean;
|
|
271
|
-
isStale: boolean;
|
|
272
|
-
isEnabled: boolean;
|
|
273
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@uthana/client").Job, Error>>;
|
|
274
|
-
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
275
|
-
promise: Promise<import("@uthana/client").Job>;
|
|
276
|
-
job: import("@uthana/client").Job | undefined;
|
|
277
|
-
} | {
|
|
278
|
-
error: null;
|
|
279
|
-
isError: false;
|
|
280
|
-
isPending: true;
|
|
281
|
-
isLoadingError: false;
|
|
282
|
-
isRefetchError: false;
|
|
283
|
-
isSuccess: false;
|
|
284
|
-
isPlaceholderData: false;
|
|
285
|
-
status: "pending";
|
|
286
|
-
dataUpdatedAt: number;
|
|
287
|
-
errorUpdatedAt: number;
|
|
288
|
-
failureCount: number;
|
|
289
|
-
failureReason: Error | null;
|
|
290
|
-
errorUpdateCount: number;
|
|
291
|
-
isFetched: boolean;
|
|
292
|
-
isFetchedAfterMount: boolean;
|
|
293
|
-
isFetching: boolean;
|
|
294
|
-
isLoading: boolean;
|
|
295
|
-
isInitialLoading: boolean;
|
|
296
|
-
isPaused: boolean;
|
|
297
|
-
isRefetching: boolean;
|
|
298
|
-
isStale: boolean;
|
|
299
|
-
isEnabled: boolean;
|
|
300
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@uthana/client").Job, Error>>;
|
|
301
|
-
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
302
|
-
promise: Promise<import("@uthana/client").Job>;
|
|
303
|
-
job: import("@uthana/client").Job | undefined;
|
|
304
|
-
} | {
|
|
305
|
-
isError: false;
|
|
306
|
-
error: null;
|
|
307
|
-
isPending: false;
|
|
308
|
-
isLoading: false;
|
|
309
|
-
isLoadingError: false;
|
|
310
|
-
isRefetchError: false;
|
|
311
|
-
isSuccess: true;
|
|
312
|
-
isPlaceholderData: true;
|
|
313
|
-
status: "success";
|
|
314
|
-
dataUpdatedAt: number;
|
|
315
|
-
errorUpdatedAt: number;
|
|
316
|
-
failureCount: number;
|
|
317
|
-
failureReason: Error | null;
|
|
318
|
-
errorUpdateCount: number;
|
|
319
|
-
isFetched: boolean;
|
|
320
|
-
isFetchedAfterMount: boolean;
|
|
321
|
-
isFetching: boolean;
|
|
322
|
-
isInitialLoading: boolean;
|
|
323
|
-
isPaused: boolean;
|
|
324
|
-
isRefetching: boolean;
|
|
325
|
-
isStale: boolean;
|
|
326
|
-
isEnabled: boolean;
|
|
327
|
-
refetch: (options?: import("@tanstack/query-core").RefetchOptions) => Promise<import("@tanstack/query-core").QueryObserverResult<import("@uthana/client").Job, Error>>;
|
|
328
|
-
fetchStatus: import("@tanstack/query-core").FetchStatus;
|
|
329
|
-
promise: Promise<import("@uthana/client").Job>;
|
|
330
|
-
job: import("@uthana/client").Job | undefined;
|
|
331
|
-
};
|
|
332
|
-
//# sourceMappingURL=jobs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jobs.d.ts","sourceRoot":"","sources":["../../src/modules/jobs.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,yBAAyB;AACzB,wBAAgB,aAAa,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOnD;AAED,sCAAsC;AACtC,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQhD"}
|