Class MessengerAssetsManager
Methods
createPersona
- createPersona(name: string, body: any): Promise<string>
Parameters
Returns Promise<string>
deletePersona
- deletePersona(name: string): Promise<boolean>
Parameters
Returns Promise<boolean>
getAllAssets
- getAllAssets(resource: string): Promise<null | Map<string, string>>
Parameters
Returns Promise<null | Map<string, string>>
getAllAttachments
- getAllAttachments(): Promise<null | Map<string, string>>
Returns Promise<null | Map<string, string>>
getAllPersonas
- getAllPersonas(): Promise<null | Map<string, string>>
Returns Promise<null | Map<string, string>>
getAssetId
- getAssetId(resource: string, name: string): Promise<undefined | string>
Parameters
resource: string
name: string
Returns Promise<undefined | string>
getAttachment
- getAttachment(name: string): Promise<undefined | string>
Parameters
Returns Promise<undefined | string>
getPersona
- getPersona(name: string): Promise<undefined | string>
Parameters
Returns Promise<undefined | string>
renderAttachment
- renderAttachment(name: string, node: SociablyNode): Promise<string>
Parameters
Returns Promise<string>
saveAssetId
- saveAssetId(resource: string, name: string, id: string): Promise<boolean>
Parameters
resource: string
name: string
id: string
Returns Promise<boolean>
saveAttachment
- saveAttachment(name: string, id: string): Promise<boolean>
Parameters
Returns Promise<boolean>
savePersona
- savePersona(name: string, id: string): Promise<boolean>
Parameters
Returns Promise<boolean>
unsaveAssetId
- unsaveAssetId(resource: string, name: string): Promise<boolean>
Parameters
resource: string
name: string
Returns Promise<boolean>
unsaveAttachment
- unsaveAttachment(name: string): Promise<boolean>
Parameters
Returns Promise<boolean>
unsavePersona
- unsavePersona(name: string): Promise<boolean>
Parameters
Returns Promise<boolean>
MessengerAssetsManager stores name-to-id mapping for assets created in Messenger platform.