@umituz/react-native-ai-creations 1.1.0 → 1.2.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/package.json
CHANGED
|
@@ -13,9 +13,11 @@ export interface Creation {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export interface CreationDocument {
|
|
16
|
-
readonly uri
|
|
16
|
+
readonly uri?: string;
|
|
17
17
|
readonly originalImage?: string;
|
|
18
|
+
readonly originalImageUrl?: string;
|
|
18
19
|
readonly transformedImage?: string;
|
|
20
|
+
readonly transformedImageUrl?: string;
|
|
19
21
|
readonly transformationType?: string;
|
|
20
22
|
readonly type?: string;
|
|
21
23
|
readonly status?: string;
|
|
@@ -34,9 +36,9 @@ export function mapDocumentToCreation(
|
|
|
34
36
|
): Creation {
|
|
35
37
|
return {
|
|
36
38
|
id,
|
|
37
|
-
uri: data.transformedImage || data.uri,
|
|
39
|
+
uri: data.transformedImageUrl || data.transformedImage || data.uri || "",
|
|
38
40
|
type: data.transformationType || data.type || "unknown",
|
|
39
|
-
originalUri: data.originalImage,
|
|
41
|
+
originalUri: data.originalImageUrl || data.originalImage,
|
|
40
42
|
createdAt: data.createdAt?.toDate?.() || new Date(),
|
|
41
43
|
isShared: data.isShared ?? false,
|
|
42
44
|
};
|