Skip to content

Commit

Permalink
Upgraded SDK (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesushernandez authored Jun 28, 2023
1 parent 8958794 commit f182fc3
Show file tree
Hide file tree
Showing 4 changed files with 3,016 additions and 8 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@radix-ui/react-checkbox": "^1.0.3",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-select": "^1.2.1",
"@team-plain/typescript-sdk": "^1.1.0",
"@team-plain/typescript-sdk": "2.4.0",
"@types/lodash": "^4.14.194",
"@types/ua-parser-js": "^0.7.36",
"assert-ts": "^0.3.4",
Expand Down
6 changes: 3 additions & 3 deletions pages/api/contact-form.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
return res.status(500).json({ error: upsertCustomerRes.error.message });
}

console.log(`Customer upserted ${upsertCustomerRes.data.id}`);
console.log(`Customer upserted ${upsertCustomerRes.data.customer.id}`);

const upsertTimelineEntryRes = await client.upsertCustomTimelineEntry({
customerId: upsertCustomerRes.data.id,
customerId: upsertCustomerRes.data.customer.id,
title: body.customeTimelineEntry.title,
components: body.customeTimelineEntry.components,
changeCustomerStatusToActive: true,
Expand All @@ -75,7 +75,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
console.log(`Custom timeline entry upserted ${upsertTimelineEntryRes.data.timelineEntry.id}.`);

const createIssueRes = await client.createIssue({
customerId: upsertCustomerRes.data.id,
customerId: upsertCustomerRes.data.customer.id,
issueTypeId: body.issue.issueTypeId,
priorityValue: body.issue.priority,
});
Expand Down
Loading

2 comments on commit f182fc3

@vercel
Copy link

@vercel vercel bot commented on f182fc3 Jun 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on f182fc3 Jun 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.