Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Commit

Permalink
fix: apollo account endpoint and docs (#1743)
Browse files Browse the repository at this point in the history
- Restore creating/updating apollo accounts (but not GET)
- Add documentation to clarify supported feature matrix

## Test Plan

[Describe test plan here]

## Deployment instructions

[Add any special deployment instructions here]
  • Loading branch information
tomkit authored Oct 18, 2023
1 parent b4d23bf commit 5450b03
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 10 deletions.
13 changes: 10 additions & 3 deletions docs/docs/api/v2/engagement/get-account.api.mdx

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

1 change: 1 addition & 0 deletions docs/docs/providers/apollo.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Apollo is both a sales engagement connector and a data enrichment provider.
| Object | Soft delete supported | Sync strategy |
| --------------- | --------------------- | ------------- |
| Users | Yes | Full |
| Accounts | Yes | Full |
| Contacts | Yes | Full |
| Sequences | Yes | Full |
| Sequence States | Yes | Full |
Expand Down
6 changes: 4 additions & 2 deletions docs/docs/providers/gong.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ N/A

| Object | Soft delete supported | Sync strategy |
| ---------------- | --------------------- | ------------------- |
| `call` | No (Yes if "Full") | Full or Incremental |
| `detailedCall` | No (Yes if "Full") | Full or Incremental |
| `call` | No\* | Full or Incremental |
| `detailedCall` | No\* | Full or Incremental |
| `callTranscript` | Yes | Full |

[*] Soft deletes are supported if the sync strategy is "Full"

#### Supported custom objects:

N/A
Expand Down
1 change: 1 addition & 0 deletions openapi/v2/engagement/openapi.bundle.json

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

8 changes: 8 additions & 0 deletions openapi/v2/engagement/paths/accounts@{account_id}.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
get:
operationId: getAccount
summary: Get account
description: |
Support:
| Provider | Supported |
| ---------- | --------- |
| Salesloft | Yes |
| Outreach | Yes |
| Apollo | No |
tags:
- Accounts
security:
Expand Down
7 changes: 4 additions & 3 deletions packages/core/remotes/impl/apollo/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,8 @@ class ApolloClient extends AbstractEngagementRemoteClient {
)) as CreateCommonObjectRecordResponse<T>;
case 'contact':
return (await this.createContact(params as ContactCreateParams)) as CreateCommonObjectRecordResponse<T>;
case 'account': // return (await this.createAccount(params as AccountCreateParams)) as CreateCommonObjectRecordResponse<T>;
case 'account':
return (await this.createAccount(params as AccountCreateParams)) as CreateCommonObjectRecordResponse<T>;
case 'sequence':
case 'mailbox':
case 'user':
Expand All @@ -427,8 +428,8 @@ class ApolloClient extends AbstractEngagementRemoteClient {
): Promise<UpdateCommonObjectRecordResponse<T>> {
// TODO: figure out why type assertion is required here
switch (commonObjectType) {
// case 'account':
// return (await this.updateAccount(params as AccountUpdateParams)) as UpdateCommonObjectRecordResponse<T>;
case 'account':
return (await this.updateAccount(params as AccountUpdateParams)) as UpdateCommonObjectRecordResponse<T>;
case 'contact':
return (await this.updateContact(params as ContactUpdateParams)) as UpdateCommonObjectRecordResponse<T>;
default:
Expand Down
22 changes: 20 additions & 2 deletions packages/schemas/gen/v2/engagement.ts

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

1 comment on commit 5450b03

@vercel
Copy link

@vercel vercel bot commented on 5450b03 Oct 18, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

supaglue-docs – ./docs

supaglue-docs-git-main-supaglue.vercel.app
docs.supaglue.com
supaglue-docs-supaglue.vercel.app

Please sign in to comment.