Manage Deployment Settings in Wacht
fetchDeploymentSettings()
Promise<DeploymentSettingsResponse>
: A promise that resolves to the deployment settings object.
updateAuthenticationSettings(settings: AuthenticationSettings)
settings
(AuthenticationSettings): The authentication settings to update.Promise<void>
: A promise that resolves when the settings are successfully updated.
updateDisplaySettings(settings: DisplaySettings)
settings
(DisplaySettings): The display settings to update.Promise<void>
: A promise that resolves when the settings are successfully updated.
updateB2BSettings(settings: B2BSettings)
settings
(B2BSettings): The B2B settings to update.Promise<void>
: A promise that resolves when the settings are successfully updated.
updateDeploymentRestrictions(restrictions: DeploymentRestrictions)
restrictions
(DeploymentRestrictions): The deployment restrictions to update.Promise<void>
: A promise that resolves when the restrictions are successfully updated.
fetchJwtTemplates()
Promise<JwtTemplateListResponse>
: A promise that resolves to a list of JWT templates.
createJwtTemplate(request: CreateJwtTemplateRequest)
request
(CreateJwtTemplateRequest): The request body containing the details of the new JWT template.Promise<JwtTemplate>
: A promise that resolves to the newly created JWT template object.
updateJwtTemplate(templateId: string, request: UpdateJwtTemplateRequest)
templateId
(string): The unique identifier of the JWT template to update.request
(UpdateJwtTemplateRequest): The request body containing the updated details of the JWT template.Promise<JwtTemplate>
: A promise that resolves to the updated JWT template object.
deleteJwtTemplate(templateId: string)
templateId
(string): The unique identifier of the JWT template to delete.Promise<void>
: A promise that resolves when the JWT template is successfully deleted.
fetchEmailTemplate(templateName: string)
templateName
(string): The name of the email template.Promise<EmailTemplate>
: A promise that resolves to the email template object.
updateEmailTemplate(templateName: string, template: EmailTemplate)
templateName
(string): The name of the email template to update.template
(EmailTemplate): The email template object with updated content.Promise<void>
: A promise that resolves when the email template is successfully updated.
fetchSocialConnections()
Promise<SocialConnection[]>
: A promise that resolves to a list of social connection objects.
upsertSocialConnection(connection: SocialConnection)
connection
(SocialConnection): The social connection object to create or update.Promise<SocialConnection>
: A promise that resolves to the created or updated social connection object.
uploadImage(imageType: string, fileContent: Uint8Array, fileName: string)
imageType
(string): The type of image being uploaded (e.g., ‘logo’).fileContent
(Uint8Array): The content of the image file.fileName
(string): The name of the image file.Promise<ImageUploadResponse>
: A promise that resolves to the image upload response, including the URL of the uploaded image.