Socket
Socket
Sign inDemoInstall

@panora/sdk-typescript

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@panora/sdk-typescript

The Panora SDK description


Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

Panora Typescript SDK

Table of Contents

  • About the API
  • Installation
  • Authentication
  • API Endpoint Services
  • API Models
  • Sample Usage
  • PanoraSDK Services
  • License

About the API

The Panora API description

Installation

npm install @panora/sdk-typescript    

Authentication

To see whether an endpoint needs a specific type of authentication check the endpoint's documentation.

Access Token

The PanoraSDK API uses access tokens as a form of authentication. You can set the access token when initializing the SDK through the constructor:

const sdk = new PanoraSDK('YOUR_ACCESS_TOKEN')

Or through the setAccessToken method:

const sdk = new PanoraSDK()
sdk.setAccessToken('YOUR_ACCESS_TOKEN')

You can also set it for each service individually:

const sdk = new PanoraSDK()
sdk.main.setAccessToken('YOUR_ACCESS_TOKEN')

Sample Usage

Here is a simple program demonstrating usage of this SDK. It can also be found in the examples/src/index.ts file in this directory.

When running the sample make sure to use npm install to install all the dependencies.

import { PanoraSDK } from '@panora/sdk-typescript';


const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.main
    .getHello();
  console.log(result);
})();
 

PanoraSDK Services

A list of all services and services methods.

Main

MethodDescription
getHello

Health

MethodDescription
getHealth

Protected

MethodDescription
getHelloProtected

Auth

MethodDescription
signUpRegister
signInLog In
getUsersGet users
getApiKeysRetrieve API Keys
generateApiKeyCreate API Key

Connections

MethodDescription
handleOAuthCallbackCapture oAuth callback
getConnectionsList Connections

Webhook

MethodDescription
createWebhookMetadataAdd webhook metadata
getWebhooksMetadataRetrieve webhooks metadata
updateWebhookStatusUpdate webhook status

LinkedUsers

MethodDescription
addLinkedUserAdd Linked User
getLinkedUsersRetrieve Linked Users
getLinkedUserRetrieve a Linked User

Organisations

MethodDescription
getOrganisationsRetrieve Organisations
createOrganisationCreate an Organisation

Projects

MethodDescription
getProjectsRetrieve projects
createProjectCreate a project

FieldMapping

MethodDescription
getFieldMappingsEntitiesRetrieve field mapping entities
getFieldMappingsRetrieve field mappings
getFieldMappingValuesRetrieve field mappings values
defineTargetFieldDefine target Field
mapFieldMap Custom Field
getCustomProviderPropertiesRetrieve Custom Properties

Events

MethodDescription
getEventsRetrieve Events
MethodDescription
createMagicLinkCreate a Magic Link
getMagicLinksRetrieve Magic Links
getMagicLinkRetrieve a Magic Link

Passthrough

MethodDescription
passthroughRequestMake a passthrough request

CrmContacts

MethodDescription
addContactCreate CRM Contact
getContactsList a batch of CRM Contacts
updateContactUpdate a CRM Contact
getContactRetrieve a CRM Contact
addContactsAdd a batch of CRM Contacts

CrmDeals

MethodDescription
addDealCreate a Deal
getDealsList a batch of Deals
getDealRetrieve a Deal
updateDealUpdate a Deal
addDealsAdd a batch of Deals

CrmNotes

MethodDescription
addNoteCreate a Note
getNotesList a batch of Notes
getNoteRetrieve a Note
addNotesAdd a batch of Notes

CrmCompanies

MethodDescription
addCompanyCreate a Company
getCompaniesList a batch of Companies
updateCompanyUpdate a Company
getCompanyRetrieve a Company
addCompaniesAdd a batch of Companies

CrmEngagements

MethodDescription
addEngagementCreate a Engagement
getEngagementsList a batch of Engagements
updateEngagementUpdate a Engagement
getEngagementRetrieve a Engagement
addEngagementsAdd a batch of Engagements

CrmStages

MethodDescription
getStagesList a batch of Stages
getStageRetrieve a Stage

CrmTasks

MethodDescription
addTaskCreate a Task
getTasksList a batch of Tasks
updateTaskUpdate a Task
getTaskRetrieve a Task
addTasksAdd a batch of Tasks

CrmUsers

MethodDescription
getUsersList a batch of Users
getUserRetrieve a User

TicketingTickets

MethodDescription
addTicketCreate a Ticket
getTicketsList a batch of Tickets
updateTicketUpdate a Ticket
getTicketRetrieve a Ticket
addTicketsAdd a batch of Tickets

TicketingComments

MethodDescription
addCommentCreate a Comment
getCommentsList a batch of Comments
getCommentRetrieve a Comment
addCommentsAdd a batch of Comments

TicketingUsers

MethodDescription
getUsersList a batch of Users
getUserRetrieve a User

TicketingAttachments

MethodDescription
addAttachmentCreate a Attachment
getAttachmentsList a batch of Attachments
getAttachmentRetrieve a Attachment
downloadAttachmentDownload a Attachment
addAttachmentsAdd a batch of Attachments

TicketingContacts

MethodDescription
getContactsList a batch of Contacts
getContactRetrieve a Contact

TicketingAccounts

MethodDescription
getAccountsList a batch of Accounts
getAccountRetrieve an Account

TicketingTags

MethodDescription
getTagsList a batch of Tags
getTagRetrieve a Tag

TicketingTeams

MethodDescription
getTeamsList a batch of Teams
getTeamRetrieve a Team

All Methods

getHello

  • HTTP Method: GET
  • Endpoint: /

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.main.getHello();
  console.log(result);
})();

getHealth

  • HTTP Method: GET
  • Endpoint: /health

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.health.getHealth();
  console.log(result);
})();

getHelloProtected

  • HTTP Method: GET
  • Endpoint: /protected

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.protected.getHelloProtected();
  console.log(result);
})();

signUp

Register

  • HTTP Method: POST
  • Endpoint: /auth/register

Required Parameters

| input | object | Request body. |

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = {
    email: 'email',
    first_name: 'first_name',
    id_organisation: 'id_organisation',
    last_name: 'last_name',
    password_hash: 'password_hash',
  };
  const result = await sdk.auth.signUp(input);
  console.log(result);
})();

signIn

Log In

  • HTTP Method: POST
  • Endpoint: /auth/login

Required Parameters

| input | object | Request body. |

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = { email: 'email', id_user: 'id_user', password_hash: 'password_hash' };
  const result = await sdk.auth.signIn(input);
  console.log(result);
})();

getUsers

Get users

  • HTTP Method: GET
  • Endpoint: /auth/users

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.auth.getUsers();
  console.log(result);
})();

getApiKeys

Retrieve API Keys

  • HTTP Method: GET
  • Endpoint: /auth/api-keys

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.auth.getApiKeys();
  console.log(result);
})();

generateApiKey

Create API Key

  • HTTP Method: POST
  • Endpoint: /auth/generate-apikey

Required Parameters

| input | object | Request body. |

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = { keyName: 'keyName', projectId: 'projectId', userId: 'userId' };
  const result = await sdk.auth.generateApiKey(input);
  console.log(result);
})();

handleOAuthCallback

Capture oAuth callback

  • HTTP Method: GET
  • Endpoint: /connections/oauth/callback

Required Parameters

NameTypeDescription
statestring
codestring
locationstring

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.connections.handleOAuthCallback('state', 'code', 'location');
  console.log(result);
})();

getConnections

List Connections

  • HTTP Method: GET
  • Endpoint: /connections

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.connections.getConnections();
  console.log(result);
})();

createWebhookMetadata

Add webhook metadata

  • HTTP Method: POST
  • Endpoint: /webhook

Required Parameters

| input | object | Request body. |

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = {
    description: 'description',
    id_project: 'id_project',
    scope: ['sit cupidatat ut', 'magna reprehenderit'],
    url: 'url',
  };
  const result = await sdk.webhook.createWebhookMetadata(input);
  console.log(result);
})();

getWebhooksMetadata

Retrieve webhooks metadata

  • HTTP Method: GET
  • Endpoint: /webhook

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.webhook.getWebhooksMetadata();
  console.log(result);
})();

updateWebhookStatus

Update webhook status

  • HTTP Method: PUT
  • Endpoint: /webhook/{id}

Required Parameters

NameTypeDescription
idstring

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.webhook.updateWebhookStatus('id');
  console.log(result);
})();

addLinkedUser

Add Linked User

  • HTTP Method: POST
  • Endpoint: /linked-users/create

Required Parameters

| input | object | Request body. |

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = {
    alias: 'alias',
    id_project: 'id_project',
    linked_user_origin_id: 'linked_user_origin_id',
  };
  const result = await sdk.linkedUsers.addLinkedUser(input);
  console.log(result);
})();

getLinkedUsers

Retrieve Linked Users

  • HTTP Method: GET
  • Endpoint: /linked-users

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.linkedUsers.getLinkedUsers();
  console.log(result);
})();

getLinkedUser

Retrieve a Linked User

  • HTTP Method: GET
  • Endpoint: /linked-users/single

Required Parameters

NameTypeDescription
originIdstring

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.linkedUsers.getLinkedUser('originId');
  console.log(result);
})();

getOrganisations

Retrieve Organisations

  • HTTP Method: GET
  • Endpoint: /organisations

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.organisations.getOrganisations();
  console.log(result);
})();

createOrganisation

Create an Organisation

  • HTTP Method: POST
  • Endpoint: /organisations/create

Required Parameters

| input | object | Request body. |

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = { name: 'name', stripe_customer_id: 'stripe_customer_id' };
  const result = await sdk.organisations.createOrganisation(input);
  console.log(result);
})();

getProjects

Retrieve projects

  • HTTP Method: GET
  • Endpoint: /projects

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.projects.getProjects();
  console.log(result);
})();

createProject

Create a project

  • HTTP Method: POST
  • Endpoint: /projects/create

Required Parameters

| input | object | Request body. |

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = { id_organization: 'id_organization', name: 'name' };
  const result = await sdk.projects.createProject(input);
  console.log(result);
})();

getFieldMappingsEntities

Retrieve field mapping entities

  • HTTP Method: GET
  • Endpoint: /field-mapping/entities

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.fieldMapping.getFieldMappingsEntities();
  console.log(result);
})();

getFieldMappings

Retrieve field mappings

  • HTTP Method: GET
  • Endpoint: /field-mapping/attribute

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.fieldMapping.getFieldMappings();
  console.log(result);
})();

getFieldMappingValues

Retrieve field mappings values

  • HTTP Method: GET
  • Endpoint: /field-mapping/value

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.fieldMapping.getFieldMappingValues();
  console.log(result);
})();

defineTargetField

Define target Field

  • HTTP Method: POST
  • Endpoint: /field-mapping/define

Required Parameters

| input | object | Request body. |

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = {
    data_type: 'data_type',
    description: 'description',
    name: 'name',
    object_type_owner: 'object_type_owner',
  };
  const result = await sdk.fieldMapping.defineTargetField(input);
  console.log(result);
})();

mapField

Map Custom Field

  • HTTP Method: POST
  • Endpoint: /field-mapping/map

Required Parameters

| input | object | Request body. |

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = {
    attributeId: 'attributeId',
    linked_user_id: 'linked_user_id',
    source_custom_field_id: 'source_custom_field_id',
    source_provider: 'source_provider',
  };
  const result = await sdk.fieldMapping.mapField(input);
  console.log(result);
})();

getCustomProviderProperties

Retrieve Custom Properties

  • HTTP Method: GET
  • Endpoint: /field-mapping/properties

Required Parameters

NameTypeDescription
linkedUserIdstring
providerIdstring

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.fieldMapping.getCustomProviderProperties('linkedUserId', 'providerId');
  console.log(result);
})();

getEvents

Retrieve Events

  • HTTP Method: GET
  • Endpoint: /events

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.events.getEvents();
  console.log(result);
})();

Create a Magic Link

  • HTTP Method: POST
  • Endpoint: /magic-link/create

Required Parameters

| input | object | Request body. |

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = {
    alias: 'alias',
    email: 'email',
    id_project: 'id_project',
    linked_user_origin_id: 'linked_user_origin_id',
  };
  const result = await sdk.magicLink.createMagicLink(input);
  console.log(result);
})();

Retrieve Magic Links

  • HTTP Method: GET
  • Endpoint: /magic-link

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.magicLink.getMagicLinks();
  console.log(result);
})();

Retrieve a Magic Link

  • HTTP Method: GET
  • Endpoint: /magic-link/single

Required Parameters

NameTypeDescription
idstring

Return Type

Returns a dict object.

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.magicLink.getMagicLink('id');
  console.log(result);
})();

passthroughRequest

Make a passthrough request

  • HTTP Method: POST
  • Endpoint: /passthrough

Required Parameters

NameTypeDescription
integrationIdstring
linkedUserIdstring
inputobjectRequest body.

Return Type

PassThroughResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = { data: {}, headers_: {}, method: 'PATCH', path: 'path' };
  const result = await sdk.passthrough.passthroughRequest(input, 'integrationId', 'linkedUserId');
  console.log(result);
})();

addContact

Create CRM Contact

  • HTTP Method: POST
  • Endpoint: /crm/contacts

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token
inputobjectRequest body.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original CRM software.

Return Type

AddContactResponse UnifiedContactOutput

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = {
    addresses: [],
    email_addresses: [],
    field_mappings: {},
    first_name: 'first_name',
    last_name: 'last_name',
    phone_numbers: [],
    user_id: 'user_id',
  };
  const result = await sdk.crmContacts.addContact(input, 'connection_token', { remoteData: true });
  console.log(result);
})();

getContacts

List a batch of CRM Contacts

  • HTTP Method: GET
  • Endpoint: /crm/contacts

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original CRM software.

Return Type

GetContactsResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.crmContacts.getContacts('connection_token', { remoteData: true });
  console.log(result);
})();

updateContact

Update a CRM Contact

  • HTTP Method: PATCH
  • Endpoint: /crm/contacts

Required Parameters

NameTypeDescription
idstring

Return Type

UnifiedContactOutput

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.crmContacts.updateContact('id');
  console.log(result);
})();

getContact

Retrieve a CRM Contact

  • HTTP Method: GET
  • Endpoint: /crm/contacts/{id}

Required Parameters

NameTypeDescription
idstringid of the contact you want to retrive.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original CRM software.

Return Type

GetContactResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.crmContacts.getContact('id', { remoteData: true });
  console.log(result);
})();

addContacts

Add a batch of CRM Contacts

  • HTTP Method: POST
  • Endpoint: /crm/contacts/batch

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token
inputobjectRequest body.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original CRM software.

Return Type

AddContactsResponse CrmContactsAddContactsResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = [{}, {}];
  const result = await sdk.crmContacts.addContacts(input, 'connection_token', { remoteData: true });
  console.log(result);
})();

addDeal

Create a Deal

  • HTTP Method: POST
  • Endpoint: /crm/deals

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token
inputobjectRequest body.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Crm software.

Return Type

AddDealResponse UnifiedDealOutput

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = { field_mappings: {} };
  const result = await sdk.crmDeals.addDeal(input, 'connection_token', { remoteData: true });
  console.log(result);
})();

getDeals

List a batch of Deals

  • HTTP Method: GET
  • Endpoint: /crm/deals

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Crm software.

Return Type

GetDealsResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.crmDeals.getDeals('connection_token', { remoteData: true });
  console.log(result);
})();

getDeal

Retrieve a Deal

  • HTTP Method: GET
  • Endpoint: /crm/deals/{id}

Required Parameters

NameTypeDescription
idstringid of the deal you want to retrieve.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Crm software.

Return Type

GetDealResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.crmDeals.getDeal('id', { remoteData: true });
  console.log(result);
})();

updateDeal

Update a Deal

  • HTTP Method: PATCH
  • Endpoint: /crm/deals/{id}

Required Parameters

NameTypeDescription
idstring

Return Type

UpdateDealResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.crmDeals.updateDeal('id');
  console.log(result);
})();

addDeals

Add a batch of Deals

  • HTTP Method: POST
  • Endpoint: /crm/deals/batch

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token
inputobjectRequest body.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Crm software.

Return Type

AddDealsResponse CrmDealsAddDealsResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = [{}, {}];
  const result = await sdk.crmDeals.addDeals(input, 'connection_token', { remoteData: true });
  console.log(result);
})();

addNote

Create a Note

  • HTTP Method: POST
  • Endpoint: /crm/notes

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token
inputobjectRequest body.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Crm software.

Return Type

AddNoteResponse UnifiedNoteOutput

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = { field_mappings: {} };
  const result = await sdk.crmNotes.addNote(input, 'connection_token', { remoteData: true });
  console.log(result);
})();

getNotes

List a batch of Notes

  • HTTP Method: GET
  • Endpoint: /crm/notes

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Crm software.

Return Type

GetNotesResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.crmNotes.getNotes('connection_token', { remoteData: true });
  console.log(result);
})();

getNote

Retrieve a Note

  • HTTP Method: GET
  • Endpoint: /crm/notes/{id}

Required Parameters

NameTypeDescription
idstringid of the note you want to retrieve.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Crm software.

Return Type

GetNoteResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.crmNotes.getNote('id', { remoteData: true });
  console.log(result);
})();

addNotes

Add a batch of Notes

  • HTTP Method: POST
  • Endpoint: /crm/notes/batch

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token
inputobjectRequest body.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Crm software.

Return Type

AddNotesResponse CrmNotesAddNotesResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = [{}, {}];
  const result = await sdk.crmNotes.addNotes(input, 'connection_token', { remoteData: true });
  console.log(result);
})();

addCompany

Create a Company

  • HTTP Method: POST
  • Endpoint: /crm/companies

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token
inputobjectRequest body.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Crm software.

Return Type

AddCompanyResponse UnifiedCompanyOutput

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = { field_mappings: {} };
  const result = await sdk.crmCompanies.addCompany(input, 'connection_token', { remoteData: true });
  console.log(result);
})();

getCompanies

List a batch of Companies

  • HTTP Method: GET
  • Endpoint: /crm/companies

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Crm software.

Return Type

GetCompaniesResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.crmCompanies.getCompanies('connection_token', { remoteData: true });
  console.log(result);
})();

updateCompany

Update a Company

  • HTTP Method: PATCH
  • Endpoint: /crm/companies

Required Parameters

NameTypeDescription
idstring

Return Type

UpdateCompanyResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.crmCompanies.updateCompany('id');
  console.log(result);
})();

getCompany

Retrieve a Company

  • HTTP Method: GET
  • Endpoint: /crm/companies/{id}

Required Parameters

NameTypeDescription
idstringid of the company you want to retrieve.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Crm software.

Return Type

GetCompanyResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.crmCompanies.getCompany('id', { remoteData: true });
  console.log(result);
})();

addCompanies

Add a batch of Companies

  • HTTP Method: POST
  • Endpoint: /crm/companies/batch

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token
inputobjectRequest body.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Crm software.

Return Type

AddCompaniesResponse CrmCompaniesAddCompaniesResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = [{}, {}];
  const result = await sdk.crmCompanies.addCompanies(input, 'connection_token', {
    remoteData: true,
  });
  console.log(result);
})();

addEngagement

Create a Engagement

  • HTTP Method: POST
  • Endpoint: /crm/engagements

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token
inputobjectRequest body.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Crm software.

Return Type

AddEngagementResponse UnifiedEngagementOutput

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = { field_mappings: {} };
  const result = await sdk.crmEngagements.addEngagement(input, 'connection_token', {
    remoteData: true,
  });
  console.log(result);
})();

getEngagements

List a batch of Engagements

  • HTTP Method: GET
  • Endpoint: /crm/engagements

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Crm software.

Return Type

GetEngagementsResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.crmEngagements.getEngagements('connection_token', { remoteData: true });
  console.log(result);
})();

updateEngagement

Update a Engagement

  • HTTP Method: PATCH
  • Endpoint: /crm/engagements

Required Parameters

NameTypeDescription
idstring

Return Type

UpdateEngagementResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.crmEngagements.updateEngagement('id');
  console.log(result);
})();

getEngagement

Retrieve a Engagement

  • HTTP Method: GET
  • Endpoint: /crm/engagements/{id}

Required Parameters

NameTypeDescription
idstringid of the engagement you want to retrieve.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Crm software.

Return Type

GetEngagementResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.crmEngagements.getEngagement('id', { remoteData: true });
  console.log(result);
})();

addEngagements

Add a batch of Engagements

  • HTTP Method: POST
  • Endpoint: /crm/engagements/batch

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token
inputobjectRequest body.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Crm software.

Return Type

AddEngagementsResponse CrmEngagementsAddEngagementsResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = [{}, {}];
  const result = await sdk.crmEngagements.addEngagements(input, 'connection_token', {
    remoteData: true,
  });
  console.log(result);
})();

getStages

List a batch of Stages

  • HTTP Method: GET
  • Endpoint: /crm/stages

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Crm software.

Return Type

GetStagesResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.crmStages.getStages('connection_token', { remoteData: true });
  console.log(result);
})();

getStage

Retrieve a Stage

  • HTTP Method: GET
  • Endpoint: /crm/stages/{id}

Required Parameters

NameTypeDescription
idstringid of the stage you want to retrieve.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Crm software.

Return Type

GetStageResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.crmStages.getStage('id', { remoteData: true });
  console.log(result);
})();

addTask

Create a Task

  • HTTP Method: POST
  • Endpoint: /crm/tasks

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token
inputobjectRequest body.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Crm software.

Return Type

AddTaskResponse UnifiedTaskOutput

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = { field_mappings: {} };
  const result = await sdk.crmTasks.addTask(input, 'connection_token', { remoteData: true });
  console.log(result);
})();

getTasks

List a batch of Tasks

  • HTTP Method: GET
  • Endpoint: /crm/tasks

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Crm software.

Return Type

GetTasksResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.crmTasks.getTasks('connection_token', { remoteData: true });
  console.log(result);
})();

updateTask

Update a Task

  • HTTP Method: PATCH
  • Endpoint: /crm/tasks

Required Parameters

NameTypeDescription
idstring

Return Type

UpdateTaskResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.crmTasks.updateTask('id');
  console.log(result);
})();

getTask

Retrieve a Task

  • HTTP Method: GET
  • Endpoint: /crm/tasks/{id}

Required Parameters

NameTypeDescription
idstringid of the task you want to retrieve.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Crm software.

Return Type

GetTaskResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.crmTasks.getTask('id', { remoteData: true });
  console.log(result);
})();

addTasks

Add a batch of Tasks

  • HTTP Method: POST
  • Endpoint: /crm/tasks/batch

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token
inputobjectRequest body.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Crm software.

Return Type

AddTasksResponse CrmTasksAddTasksResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = [{}, {}];
  const result = await sdk.crmTasks.addTasks(input, 'connection_token', { remoteData: true });
  console.log(result);
})();

getUsers

List a batch of Users

  • HTTP Method: GET
  • Endpoint: /crm/users

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Crm software.

Return Type

GetUsersResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.crmUsers.getUsers('connection_token', { remoteData: true });
  console.log(result);
})();

getUser

Retrieve a User

  • HTTP Method: GET
  • Endpoint: /crm/users/{id}

Required Parameters

NameTypeDescription
idstringid of the user you want to retrieve.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Crm software.

Return Type

GetUserResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.crmUsers.getUser('id', { remoteData: true });
  console.log(result);
})();

addTicket

Create a Ticket

  • HTTP Method: POST
  • Endpoint: /ticketing/tickets

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token
inputobjectRequest body.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Ticketing software.

Return Type

AddTicketResponse UnifiedTicketOutput

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = {
    account_id: 'account_id',
    assigned_to: ['aliquip', 'enim'],
    comment: ['pariatur nulla deserunt', 'irure incididunt Duis minim'],
    completed_at: '1912-09-29T15:29:41.0Z',
    contact_id: 'contact_id',
    description: ['Duis nostrud in', 'magna adipisicing'],
    due_date: '1945-12-08T15:08:52.0Z',
    field_mappings: {},
    name: 'name',
    parent_ticket: 'parent_ticket',
    priority: 'priority',
    status: 'status',
    tags: ['cillum', 'officia dolore'],
    type_: 'type',
  };
  const result = await sdk.ticketingTickets.addTicket(input, 'connection_token', {
    remoteData: true,
  });
  console.log(result);
})();

getTickets

List a batch of Tickets

  • HTTP Method: GET
  • Endpoint: /ticketing/tickets

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Ticketing software.

Return Type

GetTicketsResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.ticketingTickets.getTickets('connection_token', { remoteData: true });
  console.log(result);
})();

updateTicket

Update a Ticket

  • HTTP Method: PATCH
  • Endpoint: /ticketing/tickets

Required Parameters

NameTypeDescription
idstring

Return Type

UnifiedTicketOutput

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.ticketingTickets.updateTicket('id');
  console.log(result);
})();

getTicket

Retrieve a Ticket

  • HTTP Method: GET
  • Endpoint: /ticketing/tickets/{id}

Required Parameters

NameTypeDescription
idstringid of the ticket you want to retrive.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Ticketing software.

Return Type

GetTicketResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.ticketingTickets.getTicket('id', { remoteData: true });
  console.log(result);
})();

addTickets

Add a batch of Tickets

  • HTTP Method: POST
  • Endpoint: /ticketing/tickets/batch

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token
inputobjectRequest body.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Ticketing software.

Return Type

AddTicketsResponse TicketingTicketsAddTicketsResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = [{}, {}];
  const result = await sdk.ticketingTickets.addTickets(input, 'connection_token', {
    remoteData: true,
  });
  console.log(result);
})();

addComment

Create a Comment

  • HTTP Method: POST
  • Endpoint: /ticketing/comments

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token
inputobjectRequest body.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Ticketing software.

Return Type

AddCommentResponse UnifiedCommentOutput

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = {
    attachments: ['cillum sint dolor anim magna', 'labore mollit magna elit'],
    body: 'body',
    contact_id: 'contact_id',
    creator_type: 'creator_type',
    html_body: 'html_body',
    is_private: true,
    ticket_id: 'ticket_id',
    user_id: 'user_id',
  };
  const result = await sdk.ticketingComments.addComment(input, 'connection_token', {
    remoteData: true,
  });
  console.log(result);
})();

getComments

List a batch of Comments

  • HTTP Method: GET
  • Endpoint: /ticketing/comments

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Ticketing software.

Return Type

GetCommentsResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.ticketingComments.getComments('connection_token', { remoteData: true });
  console.log(result);
})();

getComment

Retrieve a Comment

  • HTTP Method: GET
  • Endpoint: /ticketing/comments/{id}

Required Parameters

NameTypeDescription
idstringid of the comment you want to retrive.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Ticketing software.

Return Type

GetCommentResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.ticketingComments.getComment('id', { remoteData: true });
  console.log(result);
})();

addComments

Add a batch of Comments

  • HTTP Method: POST
  • Endpoint: /ticketing/comments/batch

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token
inputobjectRequest body.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Ticketing software.

Return Type

AddCommentsResponse TicketingCommentsAddCommentsResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = [{}, {}];
  const result = await sdk.ticketingComments.addComments(input, 'connection_token', {
    remoteData: true,
  });
  console.log(result);
})();

getUsers

List a batch of Users

  • HTTP Method: GET
  • Endpoint: /ticketing/users

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Ticketing software.

Return Type

GetUsersResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.ticketingUsers.getUsers('connection_token', { remoteData: true });
  console.log(result);
})();

getUser

Retrieve a User

  • HTTP Method: GET
  • Endpoint: /ticketing/users/{id}

Required Parameters

NameTypeDescription
idstringid of the user you want to retrieve.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Ticketing software.

Return Type

GetUserResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.ticketingUsers.getUser('id', { remoteData: true });
  console.log(result);
})();

addAttachment

Create a Attachment

  • HTTP Method: POST
  • Endpoint: /ticketing/attachments

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token
inputobjectRequest body.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Ticketing software.

Return Type

AddAttachmentResponse UnifiedAttachmentOutput

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = {
    field_mappings: {},
    file_name: 'file_name',
    file_url: 'file_url',
    uploader: 'uploader',
  };
  const result = await sdk.ticketingAttachments.addAttachment(input, 'connection_token', {
    remoteData: true,
  });
  console.log(result);
})();

getAttachments

List a batch of Attachments

  • HTTP Method: GET
  • Endpoint: /ticketing/attachments

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Ticketing software.

Return Type

GetAttachmentsResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.ticketingAttachments.getAttachments('connection_token', {
    remoteData: true,
  });
  console.log(result);
})();

getAttachment

Retrieve a Attachment

  • HTTP Method: GET
  • Endpoint: /ticketing/attachments/{id}

Required Parameters

NameTypeDescription
idstringid of the attachment you want to retrive.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Ticketing software.

Return Type

GetAttachmentResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.ticketingAttachments.getAttachment('id', { remoteData: true });
  console.log(result);
})();

downloadAttachment

Download a Attachment

  • HTTP Method: GET
  • Endpoint: /ticketing/attachments/{id}/download

Required Parameters

NameTypeDescription
idstringid of the attachment you want to retrive.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Ticketing software.

Return Type

DownloadAttachmentResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.ticketingAttachments.downloadAttachment('id', { remoteData: true });
  console.log(result);
})();

addAttachments

Add a batch of Attachments

  • HTTP Method: POST
  • Endpoint: /ticketing/attachments/batch

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token
inputobjectRequest body.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Ticketing software.

Return Type

AddAttachmentsResponse TicketingAttachmentsAddAttachmentsResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const input = [{}, {}];
  const result = await sdk.ticketingAttachments.addAttachments(input, 'connection_token', {
    remoteData: true,
  });
  console.log(result);
})();

getContacts

List a batch of Contacts

  • HTTP Method: GET
  • Endpoint: /ticketing/contacts

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Ticketing software.

Return Type

GetContactsResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.ticketingContacts.getContacts('connection_token', { remoteData: true });
  console.log(result);
})();

getContact

Retrieve a Contact

  • HTTP Method: GET
  • Endpoint: /ticketing/contacts/{id}

Required Parameters

NameTypeDescription
idstringid of the contact you want to retrieve.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Ticketing software.

Return Type

GetContactResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.ticketingContacts.getContact('id', { remoteData: true });
  console.log(result);
})();

getAccounts

List a batch of Accounts

  • HTTP Method: GET
  • Endpoint: /ticketing/accounts

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Ticketing software.

Return Type

GetAccountsResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.ticketingAccounts.getAccounts('connection_token', { remoteData: true });
  console.log(result);
})();

getAccount

Retrieve an Account

  • HTTP Method: GET
  • Endpoint: /ticketing/accounts/{id}

Required Parameters

NameTypeDescription
idstringid of the account you want to retrieve.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Ticketing software.

Return Type

GetAccountResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.ticketingAccounts.getAccount('id', { remoteData: true });
  console.log(result);
})();

getTags

List a batch of Tags

  • HTTP Method: GET
  • Endpoint: /ticketing/tags

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Ticketing software.

Return Type

GetTagsResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.ticketingTags.getTags('connection_token', { remoteData: true });
  console.log(result);
})();

getTag

Retrieve a Tag

  • HTTP Method: GET
  • Endpoint: /ticketing/tags/{id}

Required Parameters

NameTypeDescription
idstringid of the tag you want to retrieve.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Ticketing software.

Return Type

GetTagResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.ticketingTags.getTag('id', { remoteData: true });
  console.log(result);
})();

getTeams

List a batch of Teams

  • HTTP Method: GET
  • Endpoint: /ticketing/teams

Required Parameters

NameTypeDescription
connectionTokenstringThe connection token

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Ticketing software.

Return Type

GetTeamsResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.ticketingTeams.getTeams('connection_token', { remoteData: true });
  console.log(result);
})();

getTeam

Retrieve a Team

  • HTTP Method: GET
  • Endpoint: /ticketing/teams/{id}

Required Parameters

NameTypeDescription
idstringid of the team you want to retrieve.

Optional Parameters

Optional parameters are passed as part of the last parameter to the method. Ex. {optionalParam1 : 'value1', optionalParam2: 'value2'}

NameTypeDescription
remoteDatabooleanSet to true to include data from the original Ticketing software.

Return Type

GetTeamResponse

Example Usage Code Snippet

import { PanoraSDK } from '@panora/sdk-typescript';

const sdk = new PanoraSDK({ accessToken: process.env.PANORASDK_ACCESS_TOKEN });

(async () => {
  const result = await sdk.ticketingTeams.getTeam('id', { remoteData: true });
  console.log(result);
})();

License

License: MIT. See license in LICENSE.

FAQs

Package last updated on 02 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc