@umituz/react-native-ai-generation-content 1.89.1 → 1.89.2
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 +1 -1
- package/src/domains/content-moderation/infrastructure/services/moderators/base.moderator.ts +1 -1
- package/src/domains/creations/infrastructure/repositories/creation-create.operations.ts +8 -8
- package/src/domains/creations/infrastructure/repositories/creation-update.operations.ts +1 -1
- package/src/domains/creations/infrastructure/repositories/creations-state-operations.ts +1 -1
- package/src/domains/generation/wizard/presentation/hooks/videoQueuePoller.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umituz/react-native-ai-generation-content",
|
|
3
|
-
"version": "1.89.
|
|
3
|
+
"version": "1.89.2",
|
|
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",
|
|
@@ -34,7 +34,7 @@ export abstract class BaseModerator {
|
|
|
34
34
|
|
|
35
35
|
protected getSuggestion(type: ViolationType): string {
|
|
36
36
|
if (this.customSuggestions?.[type]) {
|
|
37
|
-
return this.customSuggestions[type]
|
|
37
|
+
return this.customSuggestions[type]!;
|
|
38
38
|
}
|
|
39
39
|
return DEFAULT_SUGGESTIONS[type] || DEFAULT_SUGGESTIONS.default;
|
|
40
40
|
}
|
|
@@ -18,17 +18,17 @@ export async function createCreation(
|
|
|
18
18
|
type: creation.type,
|
|
19
19
|
uri: creation.uri,
|
|
20
20
|
createdAt: creation.createdAt,
|
|
21
|
-
deletedAt:
|
|
21
|
+
deletedAt: undefined,
|
|
22
22
|
metadata: creation.metadata ?? {},
|
|
23
23
|
isShared: creation.isShared ?? false,
|
|
24
24
|
isFavorite: creation.isFavorite ?? false,
|
|
25
|
-
status: creation.status ??
|
|
26
|
-
output: creation.output ??
|
|
27
|
-
prompt: creation.prompt ??
|
|
28
|
-
provider: creation.provider ??
|
|
29
|
-
requestId: creation.requestId ??
|
|
30
|
-
model: creation.model ??
|
|
31
|
-
startedAt: creation.startedAt ??
|
|
25
|
+
status: creation.status ?? undefined,
|
|
26
|
+
output: creation.output ?? undefined,
|
|
27
|
+
prompt: creation.prompt ?? undefined,
|
|
28
|
+
provider: creation.provider ?? undefined,
|
|
29
|
+
requestId: creation.requestId ?? undefined,
|
|
30
|
+
model: creation.model ?? undefined,
|
|
31
|
+
startedAt: creation.startedAt ?? undefined,
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
try {
|
|
@@ -96,7 +96,8 @@ export const pollQueueStatus = async (params: PollParams): Promise<void> => {
|
|
|
96
96
|
} else {
|
|
97
97
|
// Try to extract error from FAL job logs (error-level log takes priority)
|
|
98
98
|
const logs = status.logs ?? [];
|
|
99
|
-
const
|
|
99
|
+
const errorLogs = logs.filter((l: any) => l.level === "error");
|
|
100
|
+
const errorLog = errorLogs.length > 0 ? errorLogs[errorLogs.length - 1] : logs[logs.length - 1];
|
|
100
101
|
const failMessage =
|
|
101
102
|
errorLog?.message && errorLog.message !== "[object Object]"
|
|
102
103
|
? errorLog.message
|