@shopify/shopify-api
Version:
Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks
6 lines • 1.24 kB
TypeScript
import { ConfigInterface } from '../base-types';
import { WebhookRegistry, RegisterReturn, RegisterParams } from './types';
export declare function register(config: ConfigInterface, webhookRegistry: WebhookRegistry): ({ session, }: RegisterParams) => Promise<RegisterReturn>;
export declare const TEMPLATE_GET_HANDLERS = "query shopifyApiReadWebhookSubscriptions {\n webhookSubscriptions(\n first: 250,\n after: {{END_CURSOR}},\n ) {\n edges {\n node {\n id\n topic\n includeFields\n metafieldNamespaces\n endpoint {\n __typename\n ... on WebhookHttpEndpoint {\n callbackUrl\n }\n ... on WebhookEventBridgeEndpoint {\n arn\n }\n ... on WebhookPubSubEndpoint {\n pubSubProject\n pubSubTopic\n }\n }\n }\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}";
export declare const TEMPLATE_MUTATION = "\n mutation shopifyApiCreateWebhookSubscription {\n {{MUTATION_NAME}}(\n {{IDENTIFIER}},\n {{MUTATION_PARAMS}}\n ) {\n userErrors {\n field\n message\n }\n }\n }\n";
//# sourceMappingURL=register.d.ts.map