ShopifyParseInput

tagtree · /shopify·interface

Input bundle for that couples a tagtree CacheSchema to a single Shopify webhook event. Annotate the assembled payload with this type before calling parseShopifyWebhook to ensure the schema's namespace, tenant type, and entities map are carried through the generic chain.

Properties

body
Record<string, unknown>
schema
CacheSchema<NS, T, Q, E>
tenant
T
topic
string

Example

const input: ShopifyParseInput<typeof ns, string, string, typeof entities> = {
    schema,
    tenant: shop.domain,
    topic: webhookTopic,
    body: JSON.parse(rawBody) as Record<string, unknown>,
};
const tags = parseShopifyWebhook(input);

parseShopifyWebhook verifyShopifyHmac

Sourceparser.ts:38Edit the JSDoc directly

On this page