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

Method getCustomerById

integrations/plain/src/index.ts:99–126  ·  view source on GitHub ↗
(
    key: IntegrationTaskKey,
    params: GetCustomerByIdParams
  )

Source from the content-addressed store, hash-verified

97 }
98
99 getCustomerById(
100 key: IntegrationTaskKey,
101 params: GetCustomerByIdParams
102 ): Promise<GetCustomerByIdResponse> {
103 return this.runTask(
104 key,
105 async (client) => {
106 const response = await client.getCustomerById(params);
107
108 if (response.error) {
109 throw response.error;
110 } else {
111 return response.data ? recursivelyRemoveTypenameProperties(response.data) : undefined;
112 }
113 },
114 {
115 name: "Get Customer By Id",
116 params,
117 icon: "plain",
118 properties: [
119 {
120 label: "Customer ID",
121 text: params.customerId,
122 },
123 ],
124 }
125 );
126 }
127
128 upsertCustomer(
129 key: IntegrationTaskKey,

Callers 1

plain.tsFile · 0.80

Calls 2

runTaskMethod · 0.95

Tested by

no test coverage detected