@umituz/react-native-ai-generation-content 1.83.2 → 1.83.4
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-ai-generation-content",
|
|
3
|
-
"version": "1.83.
|
|
3
|
+
"version": "1.83.4",
|
|
4
4
|
"description": "Provider-agnostic AI generation orchestration for React Native with result preview components",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "src/index.ts",
|
|
@@ -109,7 +109,7 @@ export function usePhotoBlockingGeneration(
|
|
|
109
109
|
const duration = typeof inputData?.duration === "number" ? inputData.duration : undefined;
|
|
110
110
|
const resolution = typeof inputData?.resolution === "string" ? inputData.resolution : undefined;
|
|
111
111
|
|
|
112
|
-
const
|
|
112
|
+
const result = await persistence.saveAsProcessing(userId, {
|
|
113
113
|
scenarioId: scenario.id,
|
|
114
114
|
scenarioTitle: scenario.title || scenario.id,
|
|
115
115
|
prompt,
|
|
@@ -117,10 +117,10 @@ export function usePhotoBlockingGeneration(
|
|
|
117
117
|
resolution,
|
|
118
118
|
creditCost,
|
|
119
119
|
});
|
|
120
|
-
creationIdRef.current = creationId;
|
|
120
|
+
creationIdRef.current = result.creationId;
|
|
121
121
|
|
|
122
122
|
if (typeof __DEV__ !== "undefined" && __DEV__) {
|
|
123
|
-
console.log("[PhotoBlockingGeneration] Saved as processing:", creationId);
|
|
123
|
+
console.log("[PhotoBlockingGeneration] Saved as processing:", result.creationId);
|
|
124
124
|
}
|
|
125
125
|
} catch (err) {
|
|
126
126
|
if (typeof __DEV__ !== "undefined" && __DEV__) {
|
package/src/exports/domain.ts
CHANGED
|
@@ -28,6 +28,10 @@ export type {
|
|
|
28
28
|
} from "../domain/entities";
|
|
29
29
|
export { DEFAULT_POLLING_CONFIG, DEFAULT_QUEUE_CONFIG } from "../domain/entities";
|
|
30
30
|
|
|
31
|
+
// Queue & Creation Status — canonical values used across all apps
|
|
32
|
+
export { QUEUE_STATUS, CREATION_STATUS } from "../domain/constants/queue-status.constants";
|
|
33
|
+
export type { QueueStatus, CreationStatus } from "../domain/constants/queue-status.constants";
|
|
34
|
+
|
|
31
35
|
// Processing Modes
|
|
32
36
|
export type { ImageProcessingMode, ModeConfig, ModeCatalog } from "../domain/entities/processing-modes.types";
|
|
33
37
|
export {
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Job Polling Constants
|
|
3
|
-
* Single Responsibility: Define polling configuration constants
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
export const POLLING_CONFIG = {
|
|
7
|
-
MAX_ATTEMPTS: 60,
|
|
8
|
-
INTERVAL_MS: 5000,
|
|
9
|
-
INITIAL_PROGRESS: 20,
|
|
10
|
-
FINAL_PROGRESS: 90,
|
|
11
|
-
COMPLETION_PROGRESS: 100,
|
|
12
|
-
} as const;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AI Generation Status Constants
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
export const FAL_AI_STATUS = {
|
|
6
|
-
IN_QUEUE: "IN_QUEUE",
|
|
7
|
-
QUEUED: "QUEUED",
|
|
8
|
-
IN_PROGRESS: "IN_PROGRESS",
|
|
9
|
-
PROCESSING: "PROCESSING",
|
|
10
|
-
COMPLETED: "COMPLETED",
|
|
11
|
-
FAILED: "FAILED",
|
|
12
|
-
} as const;
|
|
13
|
-
|
|
14
|
-
export const CREATION_STATUS = {
|
|
15
|
-
PENDING: "pending",
|
|
16
|
-
QUEUED: "queued",
|
|
17
|
-
PROCESSING: "processing",
|
|
18
|
-
COMPLETED: "completed",
|
|
19
|
-
FAILED: "failed",
|
|
20
|
-
} as const;
|
|
21
|
-
|
|
22
|
-
export const PROVIDER = {
|
|
23
|
-
FAL: "fal",
|
|
24
|
-
} as const;
|