docs: fixes to customization docs (#9236)

Closes #9225, #9224, #9226, #9227

Closes DOCS-948, DOCS-947, DOCS-945, DOCS-946
This commit is contained in:
Shahed Nasser
2024-09-26 13:00:37 +00:00
committed by GitHub
parent 474ba92d48
commit ea2cc974cc
10 changed files with 53 additions and 45 deletions
@@ -176,7 +176,7 @@ import { syncBrandToSystemWorkflow } from "../workflows/sync-brand-to-system"
export default async function brandCreatedHandler({
event: { data },
container,
}: SubscriberArgs<Record<string, string>>) {
}: SubscriberArgs<{ id: string }>) {
await syncBrandToSystemWorkflow(container).run({
input: data,
})
@@ -53,7 +53,7 @@ export class BrandClient {
const moduleDef = configModule.modules[BRAND_MODULE]
if (typeof moduleDef !== "boolean") {
this.options_ = moduleDef.options
this.options_ = moduleDef.options as BrandClientOptions
}
}
}
@@ -101,7 +101,7 @@ export class BrandClient {
}`)
}
async createBrand(brand: Record<string, string>) {
async createBrand(brand: Record<string, any>) {
await this.sendRequest("/brands", "POST", brand)
}