MCPcopy Index your code
hub / github.com/triggerdotdev/trigger.dev / eventSpec

Function eventSpec

integrations/shopify/src/utils.ts:22–40  ·  view source on GitHub ↗
({
  topic,
  examples,
  runProperties,
}: {
  topic: WebhookTopic;
  examples?: EventSpecificationExample[];
  runProperties?: (payload: TEvent) => DisplayProperty[];
})

Source from the content-addressed store, hash-verified

20};
21
22export const eventSpec = <TEvent>({
23 topic,
24 examples,
25 runProperties,
26}: {
27 topic: WebhookTopic;
28 examples?: EventSpecificationExample[];
29 runProperties?: (payload: TEvent) => DisplayProperty[];
30}): EventSpecification<TEvent> => {
31 return {
32 name: topic,
33 title: topicToTitle(topic),
34 source: "shopify.com",
35 icon: "shopify",
36 examples,
37 parsePayload: (payload) => payload as TEvent,
38 runProperties,
39 };
40};

Callers 1

shopifyEventFunction · 0.90

Calls 1

topicToTitleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…