diff --git a/wix-site-media-backend/wix-site-media-backend/Events.service.json b/wix-site-media-backend/wix-site-media-backend/Events.service.json index dd86e69401..c34d0c1365 100644 --- a/wix-site-media-backend/wix-site-media-backend/Events.service.json +++ b/wix-site-media-backend/wix-site-media-backend/Events.service.json @@ -98,7 +98,7 @@ "doc": null }, "docs": { - "summary": "Triggered when a file fails during essential post-upload processing.", + "summary": "Triggered when a file fails during post-upload processing.", "description": [], "examples": [ { @@ -117,14 +117,14 @@ " ", "/* Full event object:", " * {", + " * \"data\": {", + " * \"externalInfo\": {}", + " * },", " * \"metadata\": {", " * \"entityId\": \"d4dde1_f6660fb1274c41bf87514db2f5926ae0\",", " * \"eventTime\": \"2023-09-18T10:27:33.046Z\",", " * \"id\": \"8cf0189d-9f49-45c5-9f3c-bc7928a42e34\",", " * \"triggeredByAnonymizeRequest\": false", - " * },", - " * \"data\": {", - " * \"externalInfo\": {}", " * }", " * }", " */" @@ -178,11 +178,11 @@ "// Add the file if it doesn't exist.", "", "export function wixMediaSiteMedia_onFileDescriptorFileReady(event) {", - " const fileName = event.data.file.displayName;", + " const displayName = event.data.file.displayName;", " const parentFolderId = event.data.parentFolderId;", " const eventTime = event.metadata.eventTime;", "", - " console.log(`${fileName}, located in the parent folder with ID ${parentFolderId}, is ready to be used. Completion of post-upload processing was at ${eventTime}.`)", + " console.log(`${displayName}, located in the parent folder with ID ${parentFolderId}, is ready to be used. Completion of post-upload processing was at ${eventTime}.`)", "}", "", "/* Full event object:", @@ -359,20 +359,14 @@ "", "export function wixMediaSiteMedia_onFileDescriptorUpdated(event) {", " const eventTime = event.metadata.eventTime;", - " const fileName = event.entity.displayName;", + " const displayName = event.entity.displayName;", " const parentFolder = event.entity.parentFolderId;", " ", - " console.log(`${fileName}, currently located in the parent folder with ID ${parentFolder}, was updated at ${eventTime}.`)", + " console.log(`${displayName}, currently located in the parent folder with ID ${parentFolder}, was updated at ${eventTime}.`)", "}", "", "/* Full event object:", " * {", - " * \"metadata\": {", - " * \"id\": \"acfe4b7a-bc6a-41f5-8fb3-d0f1301fea51\",", - " * \"entityId\": \"d4dde1_e76448de45bf4deb912b373bc7c3ac6f~mv2.jpg\",", - " * \"eventTime\": \"2023-09-18T10:22:39.193Z\",", - " * \"triggeredByAnonymizeRequest\": false", - " * },", " * \"entity\": {", " * \"displayName\": \"image1\",", " * \"mediaType\": \"IMAGE\",", @@ -475,6 +469,12 @@ " * \"faces\": []", " * }", " * },", + " * \"metadata\": {", + " * \"entityId\": \"d4dde1_e76448de45bf4deb912b373bc7c3ac6f~mv2.jpg\",", + " * \"eventTime\": \"2023-09-18T10:22:39.193Z\",", + " * \"id\": \"acfe4b7a-bc6a-41f5-8fb3-d0f1301fea51\",", + " * \"triggeredByAnonymizeRequest\": false", + " * },", " * \"siteId\": \"c96bcd13-173a-4938-88e0-a126391adf49\",", " * \"thumbnailUrl\": \"https://static.wixstatic.com/media/d4dde1_e76448de45bf4deb912b373bc7c3ac6f~mv2.jpg\",", " * \"parentFolderId\": \"b2bc72834460412494c93617d88b8c89\"",