Skip to content

Commit

Permalink
Auto commit to autodocs-wix-site-media-backend from WixDocs Server
Browse files Browse the repository at this point in the history
  • Loading branch information
wix-docs-feds committed Jan 7, 2024
1 parent bfe54c2 commit 639a9a5
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions wix-site-media-backend/wix-site-media-backend/Events.service.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand All @@ -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\": {}",
" * }",
" * }",
" */"
Expand Down Expand Up @@ -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:",
Expand Down Expand Up @@ -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\",",
Expand Down Expand Up @@ -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\"",
Expand Down

0 comments on commit 639a9a5

Please sign in to comment.