Skip to content

Commit

Permalink
fix: Update salesloft sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyxiao committed Jan 12, 2024
1 parent a0b9571 commit f9423cb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion connectors/connector-salesloft/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"module": "./index.ts",
"dependencies": {
"@opensdks/runtime": "^0.0.14",
"@opensdks/sdk-salesloft": "0.0.14",
"@opensdks/sdk-salesloft": "0.0.15",
"@usevenice/cdk": "workspace:*",
"@usevenice/util": "workspace:*"
},
Expand Down
11 changes: 4 additions & 7 deletions pnpm-lock.yaml

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

Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ const mappers = {
export const salesloftAdapter = {
listContacts: async ({instance}) => {
const res = await instance.GET('/v2/people.json', {})
// TODO: Fix openAPI spec to return the right types here
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/no-explicit-any
const people = (res.data as any).data as Array<Salesloft['Person']>
return {hasNextPage: true, items: people.map(mappers.contact)}
return {hasNextPage: true, items: res.data.data.map(mappers.contact)}
},
} satisfies VerticalSalesEngagement<{instance: SalesloftSDK}>

0 comments on commit f9423cb

Please sign in to comment.