Skip to main content

Function: mediaAttachmentService()

mediaAttachmentService(client): object

Defined in: service/MediaAttachmentService.ts:14

Service for managing media attachments

Parameters

client

GraphQLClient

Returns

createMediaAttachment()

createMediaAttachment(input): Promise<MediaAttachment>

Creates a new media attachment *

Parameters

input

MediaAttachmentInput

Media attachment creation input *

Returns

Promise<MediaAttachment>

Promise<MediaAttachment> The created media attachment

deleteMediaAttachment()

deleteMediaAttachment(id): Promise&lt;DeleteMediaAttachmentResponse>

Deletes a media attachment *

Parameters

id

number

MediaAttachment ID to delete *

Returns

Promise&lt;DeleteMediaAttachmentResponse>

Promise<boolean> Success status

updateMediaAttachment()

updateMediaAttachment(variables): Promise&lt;MediaAttachment>

Updates an existing media attachment *

Parameters

variables

MediaAttachmentUpdateVariables

Media attachment update input *

Returns

Promise&lt;MediaAttachment>

Promise<MediaAttachment> The updated media attachment