Interface: IGDPRUtil

GDPR related functionality

Table of contents

Methods

Methods

replaceConversationFiles

replaceConversationFiles(conversation, credentials, shouldReplace?, replacementFile?): Promise<FilesReplaced>

WARNING: This will remove all files permanently! Ask your account manager for permissions.

Parameters

Name Type Description
conversation any Conversation for which the files should be replaced.
credentials IObjectStoreCredentials Credentials for the object store where files are stored.
shouldReplace? IShouldReplace Matcher function that can be used to filter files.
replacementFile? IReplacementFile File that is used to replace current files. By default a 1x1 black png.

Returns

Promise<FilesReplaced>

Promise of files that have been replaced.


Interface: IObjectStoreCredentials

Properties:

  • username: string
  • password: string

Interface: IReplacementFile

Properties:

  • contentType: string
  • body: Buffer

Type: IShouldReplace

IShouldReplace: (path: string) => boolean

Type: FilesReplaced

FilesReplaced: string[]