diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 5b59ad5b..cdfaf895 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: caaaa8c3-6dd7-43a5-841e-c3193e68cc73 management: - docChecksum: 2327b64fd91c4a57b10876dd6c0a4c6b + docChecksum: 5a196cc6da2cb604a7fd4259723f2e1e docVersion: "1.0" speakeasyVersion: 1.351.3 generationVersion: 2.384.4 - releaseVersion: 0.3.0 - configChecksum: 2e831490eaeecbb0396e649e5d3c7781 + releaseVersion: 0.3.1 + configChecksum: 56847b6efc1a33bc05a0897c4c56a20c repoURL: https://github.com/panoratech/typescript-sdk.git installationURL: https://github.com/panoratech/typescript-sdk published: true @@ -27,8 +27,6 @@ features: sdkHooks: 0.1.0 unions: 2.85.6 generatedFiles: - - src/sdk/id.ts - - src/sdk/verifyevent.ts - src/sdk/webhooks.ts - src/sdk/tickets.ts - src/sdk/users.ts @@ -365,9 +363,7 @@ generatedFiles: - src/models/operations/retrievefilestoragegroup.ts - src/models/operations/listfilestorageusers.ts - src/models/operations/retrievefilestorageuser.ts - - src/models/components/string.ts - src/models/components/httpmetadata.ts - - src/models/components/number.ts - src/models/components/webhookresponse.ts - src/models/components/webhookdto.ts - src/models/components/signatureverificationdto.ts @@ -993,9 +989,7 @@ generatedFiles: - docs/models/operations/listfilestorageusersresponse.md - docs/models/operations/retrievefilestorageuserrequest.md - docs/models/operations/retrievefilestorageuserresponse.md - - docs/models/components/string.md - docs/models/components/httpmetadata.md - - docs/models/components/numbert.md - docs/models/components/webhookresponse.md - docs/models/components/webhookdto.md - docs/models/components/signatureverificationdto.md @@ -1142,8 +1136,6 @@ generatedFiles: - docs/lib/utils/retryconfig.md - docs/sdks/panora/README.md - docs/sdks/webhooks/README.md - - docs/sdks/id/README.md - - docs/sdks/verifyevent/README.md - docs/sdks/ticketing/README.md - docs/sdks/tickets/README.md - docs/sdks/users/README.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index a64b16e3..dee9cccd 100755 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -12,7 +12,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false typescript: - version: 0.3.0 + version: 0.3.1 additionalDependencies: dependencies: {} devDependencies: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 4df7aa37..0fcb71d2 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,8 +2,8 @@ speakeasyVersion: 1.351.3 sources: panora-open-api-swagger: sourceNamespace: panora-open-api-swagger - sourceRevisionDigest: sha256:c2c1ab1c70d9e9a0d8455bebb77a54a27072daa069423008323637118ee88920 - sourceBlobDigest: sha256:37410b694be7e94fa01ec091967925e7803d959652d3343927470e7b19a61aab + sourceRevisionDigest: sha256:df3565307c5ec85124da8ff0906b172ec7fb25dc5cdb38b51055c2ec0f1dcf6e + sourceBlobDigest: sha256:77e1918317bd4bffee6bc1a318e1c55287ebb01525628486bf6f6a4ad07be096 tags: - latest - main @@ -11,10 +11,10 @@ targets: my-first-target: source: panora-open-api-swagger sourceNamespace: panora-open-api-swagger - sourceRevisionDigest: sha256:c2c1ab1c70d9e9a0d8455bebb77a54a27072daa069423008323637118ee88920 - sourceBlobDigest: sha256:37410b694be7e94fa01ec091967925e7803d959652d3343927470e7b19a61aab + sourceRevisionDigest: sha256:df3565307c5ec85124da8ff0906b172ec7fb25dc5cdb38b51055c2ec0f1dcf6e + sourceBlobDigest: sha256:77e1918317bd4bffee6bc1a318e1c55287ebb01525628486bf6f6a4ad07be096 codeSamplesNamespace: code-samples-typescript-my-first-target - codeSamplesRevisionDigest: sha256:be82a7124c2f614d47a6c81575c95cd5ab58ea24f2ea2779b24729a98709539b + codeSamplesRevisionDigest: sha256:c5adcd1c6dd8cb47fe884ed485054cf30eba514eabf2fdeeeeabd9e69c7b2cde outLocation: /github/workspace/repo workflow: workflowVersion: 1.0.0 diff --git a/README.md b/README.md index 22edd67b..f40e21e8 100644 --- a/README.md +++ b/README.md @@ -87,15 +87,9 @@ run(); * [list](docs/sdks/webhooks/README.md#list) - List webhooks * [create](docs/sdks/webhooks/README.md#create) - Add webhook metadata - -### [webhooks.id](docs/sdks/id/README.md) - -* [delete](docs/sdks/id/README.md#delete) - Delete Webhook -* [updateStatus](docs/sdks/id/README.md#updatestatus) - Update webhook status - -### [webhooks.verifyevent](docs/sdks/verifyevent/README.md) - -* [verifyEvent](docs/sdks/verifyevent/README.md#verifyevent) - Verify payload signature of the webhook +* [delete](docs/sdks/webhooks/README.md#delete) - Delete Webhook +* [updateStatus](docs/sdks/webhooks/README.md#updatestatus) - Update webhook status +* [verifyEvent](docs/sdks/webhooks/README.md#verifyevent) - Verify payload signature of the webhook ### [ticketing.tickets](docs/sdks/tickets/README.md) diff --git a/RELEASES.md b/RELEASES.md index e0f0a68c..a2801740 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -58,4 +58,14 @@ Based on: ### Generated - [typescript v0.3.0] . ### Releases -- [NPM v0.3.0] https://www.npmjs.com/package/@panora/sdk/v/0.3.0 - . \ No newline at end of file +- [NPM v0.3.0] https://www.npmjs.com/package/@panora/sdk/v/0.3.0 - . + +## 2024-08-02 01:29:09 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.351.3 (2.384.4) https://github.com/speakeasy-api/speakeasy +### Generated +- [typescript v0.3.1] . +### Releases +- [NPM v0.3.1] https://www.npmjs.com/package/@panora/sdk/v/0.3.1 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index 6b58fc5b..307aa9da 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -3,19 +3,20 @@ info: title: CodeSamples overlay for typescript target version: 0.0.0 actions: - - target: $["paths"]["/ats/rejectreasons"]["get"] + - target: $["paths"]["/crm/notes/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsRejectReasons + label: retrieveCrmNote source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.rejectreasons.list({ + const result = await panora.crm.notes.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -23,19 +24,20 @@ actions: } run(); - - target: $["paths"]["/accounting/contacts"]["get"] + - target: $["paths"]["/hris/employerbenefits/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingContacts + label: retrieveHrisEmployerBenefit source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.contacts.list({ + const result = await panora.hris.employerbenefits.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -43,20 +45,19 @@ actions: } run(); - - target: $["paths"]["/ticketing/tickets/{id}"]["get"] + - target: $["paths"]["/accounting/accounts"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveTicketingTicket + label: listAccountingAccounts source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ticketing.tickets.retrieve({ + const result = await panora.accounting.accounts.list({ xConnectionToken: "", - id: "", }); // Handle the result @@ -64,20 +65,19 @@ actions: } run(); - - target: $["paths"]["/ticketing/collections/{id}"]["get"] + - target: $["paths"]["/hris/bankinfos"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveCollection + label: listHrisBankinfo source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ticketing.collections.retrieve({ + const result = await panora.hris.bankinfos.list({ xConnectionToken: "", - id: "", }); // Handle the result @@ -85,20 +85,20 @@ actions: } run(); - - target: $["paths"]["/ats/interviews"]["post"] + - target: $["paths"]["/hris/benefits/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createAtsInterview + label: retrieveHrisBenefit source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.interviews.create({ + const result = await panora.hris.benefits.retrieve({ xConnectionToken: "", - unifiedAtsInterviewInput: {}, + id: "", }); // Handle the result @@ -106,18 +106,18 @@ actions: } run(); - - target: $["paths"]["/ats/offices"]["get"] + - target: $["paths"]["/accounting/transactions"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsOffice + label: listAccountingTransaction source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.offices.list({ + const result = await panora.accounting.transactions.list({ xConnectionToken: "", }); @@ -126,26 +126,19 @@ actions: } run(); - - target: $["paths"]["/passthrough"]["post"] + - target: $["paths"]["/hris/companies"]["get"] update: x-codeSamples: - lang: typescript - label: request + label: listHrisCompanys source: |- import { Panora } from "@panora/sdk"; - import { Method } from "@panora/sdk/models/components"; const panora = new Panora(); async function run() { - const result = await panora.passthrough.request({ - integrationId: "", - linkedUserId: "", - vertical: "", - passThroughRequestDto: { - method: Method.Get, - path: "/dev", - }, + const result = await panora.hris.companies.list({ + xConnectionToken: "", }); // Handle the result @@ -153,18 +146,18 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/actions"]["get"] + - target: $["paths"]["/hris/timeoffbalances"]["get"] update: x-codeSamples: - lang: typescript - label: listMarketingautomationAction + label: listHrisTimeoffbalance source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.marketingautomation.actions.list({ + const result = await panora.hris.timeoffbalances.list({ xConnectionToken: "", }); @@ -173,18 +166,18 @@ actions: } run(); - - target: $["paths"]["/ats/candidates/{id}"]["get"] + - target: $["paths"]["/marketingautomation/contacts/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsCandidate + label: retrieveMarketingAutomationContact source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.candidates.retrieve({ + const result = await panora.marketingautomation.contacts.retrieve({ xConnectionToken: "", id: "", }); @@ -194,20 +187,20 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/lists"]["post"] + - target: $["paths"]["/ats/attachments"]["post"] update: x-codeSamples: - lang: typescript - label: createMarketingautomationList + label: createAtsAttachment source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.marketingautomation.lists.create({ + const result = await panora.ats.attachments.create({ xConnectionToken: "", - unifiedMarketingautomationListInput: {}, + unifiedAtsAttachmentInput: {}, }); // Handle the result @@ -215,20 +208,19 @@ actions: } run(); - - target: $["paths"]["/accounting/journalentries/{id}"]["get"] + - target: $["paths"]["/crm/stages"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingJournalEntry + label: listCrmStages source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.journalentries.retrieve({ + const result = await panora.crm.stages.list({ xConnectionToken: "", - id: "", }); // Handle the result @@ -236,18 +228,18 @@ actions: } run(); - - target: $["paths"]["/crm/users/{id}"]["get"] + - target: $["paths"]["/marketingautomation/lists/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveCrmUser + label: retrieveMarketingautomationList source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.crm.users.retrieve({ + const result = await panora.marketingautomation.lists.retrieve({ xConnectionToken: "", id: "", }); @@ -257,20 +249,20 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/campaigns"]["post"] + - target: $["paths"]["/accounting/incomestatements/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createMarketingautomationCampaign + label: retrieveAccountingIncomeStatement source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.marketingautomation.campaigns.create({ + const result = await panora.accounting.incomestatements.retrieve({ xConnectionToken: "", - unifiedMarketingautomationCampaignInput: {}, + id: "", }); // Handle the result @@ -278,20 +270,19 @@ actions: } run(); - - target: $["paths"]["/accounting/invoices"]["post"] + - target: $["paths"]["/accounting/vendorcredits"]["get"] update: x-codeSamples: - lang: typescript - label: createAccountingInvoice + label: listAccountingVendorCredit source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.invoices.create({ + const result = await panora.accounting.vendorcredits.list({ xConnectionToken: "", - unifiedAccountingInvoiceInput: {}, }); // Handle the result @@ -299,19 +290,20 @@ actions: } run(); - - target: $["paths"]["/ticketing/accounts"]["get"] + - target: $["paths"]["/filestorage/files/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listTicketingAccount + label: retrieveFilestorageFile source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ticketing.accounts.list({ + const result = await panora.filestorage.files.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -319,18 +311,18 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/messages/{id}"]["get"] + - target: $["paths"]["/ticketing/teams/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingautomationMessage + label: retrieveTicketingTeam source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.marketingautomation.messages.retrieve({ + const result = await panora.ticketing.teams.retrieve({ xConnectionToken: "", id: "", }); @@ -340,19 +332,20 @@ actions: } run(); - - target: $["paths"]["/accounting/cashflowstatements"]["get"] + - target: $["paths"]["/ats/interviews"]["post"] update: x-codeSamples: - lang: typescript - label: listAccountingCashflowStatement + label: createAtsInterview source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.cashflowstatements.list({ + const result = await panora.ats.interviews.create({ xConnectionToken: "", + unifiedAtsInterviewInput: {}, }); // Handle the result @@ -360,40 +353,20 @@ actions: } run(); - - target: $["paths"]["/webhooks/{id}"]["put"] - update: - x-codeSamples: - - lang: typescript - label: updateStatus - source: |- - import { Panora } from "@panora/sdk"; - - const panora = new Panora(); - - async function run() { - const result = await panora.webhooks.id.updateStatus({ - id: "", - }); - - // Handle the result - console.log(result) - } - - run(); - - target: $["paths"]["/crm/stages/{id}"]["get"] + - target: $["paths"]["/accounting/invoices"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveCrmStage + label: createAccountingInvoice source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.crm.stages.retrieve({ + const result = await panora.accounting.invoices.create({ xConnectionToken: "", - id: "", + unifiedAccountingInvoiceInput: {}, }); // Handle the result @@ -401,19 +374,18 @@ actions: } run(); - - target: $["paths"]["/accounting/payments/{id}"]["get"] + - target: $["paths"]["/webhooks/{id}"]["delete"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingPayment + label: delete source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.payments.retrieve({ - xConnectionToken: "", + const result = await panora.webhooks.delete({ id: "", }); @@ -422,18 +394,18 @@ actions: } run(); - - target: $["paths"]["/hris/companies"]["get"] + - target: $["paths"]["/crm/deals"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisCompanys + label: listCrmDeals source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.companies.list({ + const result = await panora.crm.deals.list({ xConnectionToken: "", }); @@ -442,20 +414,24 @@ actions: } run(); - - target: $["paths"]["/ats/applications/{id}"]["get"] + - target: $["paths"]["/crm/deals"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveAtsApplication + label: createCrmDeal source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.applications.retrieve({ + const result = await panora.crm.deals.create({ xConnectionToken: "", - id: "", + unifiedCrmDealInput: { + name: "", + description: "Multi-tiered human-resource model", + amount: 8592.13, + }, }); // Handle the result @@ -463,19 +439,22 @@ actions: } run(); - - target: $["paths"]["/accounting/expenses"]["get"] + - target: $["paths"]["/linked_users/batch"]["post"] update: x-codeSamples: - lang: typescript - label: listAccountingExpense + label: importBatch source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.expenses.list({ - xConnectionToken: "", + const result = await panora.linkedUsers.batch.importBatch({ + linkedUserOriginIds: [ + "", + ], + alias: "", }); // Handle the result @@ -483,18 +462,18 @@ actions: } run(); - - target: $["paths"]["/accounting/trackingcategories"]["get"] + - target: $["paths"]["/hris/dependents"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingTrackingCategorys + label: listHrisDependents source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.trackingcategories.list({ + const result = await panora.hris.dependents.list({ xConnectionToken: "", }); @@ -503,18 +482,18 @@ actions: } run(); - - target: $["paths"]["/ticketing/teams"]["get"] + - target: $["paths"]["/marketingautomation/users"]["get"] update: x-codeSamples: - lang: typescript - label: listTicketingTeams + label: listMarketingAutomationUsers source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ticketing.teams.list({ + const result = await panora.marketingautomation.users.list({ xConnectionToken: "", }); @@ -544,25 +523,19 @@ actions: } run(); - - target: $["paths"]["/field_mappings"]["post"] + - target: $["paths"]["/crm/tasks"]["get"] update: x-codeSamples: - lang: typescript - label: defineCustomField + label: listCrmTask source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.fieldMappings.defineCustomField({ - objectTypeOwner: "", - name: "", - description: "Balanced multimedia policy", - dataType: "point", - sourceCustomFieldId: "", - sourceProvider: "", - linkedUserId: "", + const result = await panora.crm.tasks.list({ + xConnectionToken: "", }); // Handle the result @@ -570,19 +543,20 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/lists"]["get"] + - target: $["paths"]["/marketingautomation/contacts"]["post"] update: x-codeSamples: - lang: typescript - label: listMarketingautomationLists + label: createMarketingAutomationContact source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.marketingautomation.lists.list({ + const result = await panora.marketingautomation.contacts.create({ xConnectionToken: "", + unifiedMarketingautomationContactInput: {}, }); // Handle the result @@ -590,20 +564,20 @@ actions: } run(); - - target: $["paths"]["/ats/activities"]["post"] + - target: $["paths"]["/marketingautomation/templates"]["post"] update: x-codeSamples: - lang: typescript - label: createAtsActivity + label: createMarketingautomationTemplate source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.activities.create({ + const result = await panora.marketingautomation.templates.create({ xConnectionToken: "", - unifiedAtsActivityInput: {}, + unifiedMarketingautomationTemplateInput: {}, }); // Handle the result @@ -611,19 +585,20 @@ actions: } run(); - - target: $["paths"]["/ats/applications"]["get"] + - target: $["paths"]["/accounting/payments"]["post"] update: x-codeSamples: - lang: typescript - label: listAtsApplication + label: createAccountingPayment source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.applications.list({ + const result = await panora.accounting.payments.create({ xConnectionToken: "", + unifiedAccountingPaymentInput: {}, }); // Handle the result @@ -631,19 +606,30 @@ actions: } run(); - - target: $["paths"]["/ticketing/collections"]["get"] + - target: $["paths"]["/filestorage/folders"]["post"] update: x-codeSamples: - lang: typescript - label: listTicketingCollections + label: createFilestorageFolder source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ticketing.collections.list({ + const result = await panora.filestorage.folders.create({ xConnectionToken: "", + remoteData: false, + unifiedFilestorageFolderInput: { + name: "", + size: "", + folderUrl: "", + description: "Multi-tiered human-resource model", + driveId: "", + parentFolderId: "", + sharedLink: "", + permission: "", + }, }); // Handle the result @@ -651,20 +637,20 @@ actions: } run(); - - target: $["paths"]["/linked_users"]["post"] + - target: $["paths"]["/hris/employeepayrollruns/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createLinkedUser + label: retrieveHrisEmployeePayrollRun source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.linkedUsers.create({ - linkedUserOriginId: "", - alias: "", + const result = await panora.hris.employeepayrollruns.retrieve({ + xConnectionToken: "", + id: "", }); // Handle the result @@ -672,20 +658,20 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/emails/{id}"]["get"] + - target: $["paths"]["/marketingautomation/campaigns"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingautomationEmail + label: createMarketingautomationCampaign source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.marketingautomation.emails.retrieve({ + const result = await panora.marketingautomation.campaigns.create({ xConnectionToken: "", - id: "", + unifiedMarketingautomationCampaignInput: {}, }); // Handle the result @@ -693,19 +679,20 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/events"]["get"] + - target: $["paths"]["/ats/departments/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listMarketingAutomationEvents + label: retrieveAtsDepartment source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.marketingautomation.events.list({ + const result = await panora.ats.departments.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -713,18 +700,18 @@ actions: } run(); - - target: $["paths"]["/accounting/trackingcategories/{id}"]["get"] + - target: $["paths"]["/filestorage/drives/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingTrackingCategory + label: retrieveFilestorageDrive source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.trackingcategories.retrieve({ + const result = await panora.filestorage.drives.retrieve({ xConnectionToken: "", id: "", }); @@ -734,22 +721,19 @@ actions: } run(); - - target: $["paths"]["/webhooks"]["post"] + - target: $["paths"]["/ticketing/comments"]["get"] update: x-codeSamples: - lang: typescript - label: createWebhookPublic + label: listTicketingComments source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.webhooks.create({ - url: "http://limp-pastry.org", - scope: [ - "", - ], + const result = await panora.ticketing.comments.list({ + xConnectionToken: "", }); // Handle the result @@ -757,18 +741,18 @@ actions: } run(); - - target: $["paths"]["/ticketing/tickets"]["get"] + - target: $["paths"]["/hris/groups"]["get"] update: x-codeSamples: - lang: typescript - label: listTicketingTicket + label: listHrisGroup source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ticketing.tickets.list({ + const result = await panora.hris.groups.list({ xConnectionToken: "", }); @@ -777,18 +761,18 @@ actions: } run(); - - target: $["paths"]["/crm/contacts/{id}"]["get"] + - target: $["paths"]["/ats/candidates/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveCrmContact + label: retrieveAtsCandidate source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.crm.contacts.retrieve({ + const result = await panora.ats.candidates.retrieve({ xConnectionToken: "", id: "", }); @@ -798,18 +782,18 @@ actions: } run(); - - target: $["paths"]["/ats/tags/{id}"]["get"] + - target: $["paths"]["/ats/offices/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsTag + label: retrieveAtsOffice source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.tags.retrieve({ + const result = await panora.ats.offices.retrieve({ xConnectionToken: "", id: "", }); @@ -819,18 +803,18 @@ actions: } run(); - - target: $["paths"]["/accounting/journalentries"]["get"] + - target: $["paths"]["/accounting/contacts"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingJournalEntry + label: listAccountingContacts source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.journalentries.list({ + const result = await panora.accounting.contacts.list({ xConnectionToken: "", }); @@ -839,20 +823,20 @@ actions: } run(); - - target: $["paths"]["/accounting/payments"]["post"] + - target: $["paths"]["/crm/contacts/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createAccountingPayment + label: retrieveCrmContact source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.payments.create({ + const result = await panora.crm.contacts.retrieve({ xConnectionToken: "", - unifiedAccountingPaymentInput: {}, + id: "", }); // Handle the result @@ -860,41 +844,43 @@ actions: } run(); - - target: $["paths"]["/filestorage/groups/{id}"]["get"] + - target: $["paths"]["/linked_users"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveFilestorageGroup + label: listLinkedUsers source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.filestorage.groups.retrieve({ - xConnectionToken: "", - id: "", - }); + const result = await panora.linkedUsers.list(); // Handle the result console.log(result) } run(); - - target: $["paths"]["/ticketing/accounts/{id}"]["get"] + - target: $["paths"]["/field_mappings"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveTicketingAccount + label: defineCustomField source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ticketing.accounts.retrieve({ - xConnectionToken: "", - id: "", + const result = await panora.fieldMappings.defineCustomField({ + objectTypeOwner: "", + name: "", + description: "Balanced multimedia policy", + dataType: "point", + sourceCustomFieldId: "", + sourceProvider: "", + linkedUserId: "", }); // Handle the result @@ -902,22 +888,19 @@ actions: } run(); - - target: $["paths"]["/crm/engagements"]["post"] + - target: $["paths"]["/hris/employeepayrollruns"]["get"] update: x-codeSamples: - lang: typescript - label: createCrmEngagement + label: listHrisEmployeePayrollRun source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.crm.engagements.create({ + const result = await panora.hris.employeepayrollruns.list({ xConnectionToken: "", - unifiedCrmEngagementInput: { - type: "", - }, }); // Handle the result @@ -925,18 +908,18 @@ actions: } run(); - - target: $["paths"]["/accounting/balancesheets"]["get"] + - target: $["paths"]["/marketingautomation/emails"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingBalanceSheets + label: listMarketingautomationEmails source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.balancesheets.list({ + const result = await panora.marketingautomation.emails.list({ xConnectionToken: "", }); @@ -945,20 +928,20 @@ actions: } run(); - - target: $["paths"]["/hris/employments/{id}"]["get"] + - target: $["paths"]["/marketingautomation/lists"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveHrisEmployment + label: createMarketingautomationList source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.employments.retrieve({ + const result = await panora.marketingautomation.lists.create({ xConnectionToken: "", - id: "", + unifiedMarketingautomationListInput: {}, }); // Handle the result @@ -966,20 +949,19 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/automations"]["post"] + - target: $["paths"]["/filestorage/users"]["get"] update: x-codeSamples: - lang: typescript - label: createMarketingautomationAutomation + label: listFilestorageUsers source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.marketingautomation.automations.create({ + const result = await panora.filestorage.users.list({ xConnectionToken: "", - unifiedMarketingautomationAutomationInput: {}, }); // Handle the result @@ -987,23 +969,19 @@ actions: } run(); - - target: $["paths"]["/ticketing/tickets"]["post"] + - target: $["paths"]["/ticketing/accounts"]["get"] update: x-codeSamples: - lang: typescript - label: createTicketingTicket + label: listTicketingAccount source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ticketing.tickets.create({ + const result = await panora.ticketing.accounts.list({ xConnectionToken: "", - unifiedTicketingTicketInput: { - name: "", - description: "Multi-tiered human-resource model", - }, }); // Handle the result @@ -1011,19 +989,20 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/automations"]["get"] + - target: $["paths"]["/hris/timeoffbalances/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listMarketingautomationAutomation + label: retrieveHrisTimeoffbalance source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.marketingautomation.automations.list({ + const result = await panora.hris.timeoffbalances.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -1031,19 +1010,20 @@ actions: } run(); - - target: $["paths"]["/ats/attachments"]["get"] + - target: $["paths"]["/ats/interviews/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsAttachment + label: retrieveAtsInterview source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.attachments.list({ + const result = await panora.ats.interviews.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -1051,20 +1031,23 @@ actions: } run(); - - target: $["paths"]["/accounting/expenses/{id}"]["get"] + - target: $["paths"]["/ticketing/tickets"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingExpense + label: createTicketingTicket source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.expenses.retrieve({ + const result = await panora.ticketing.tickets.create({ xConnectionToken: "", - id: "", + unifiedTicketingTicketInput: { + name: "", + description: "Multi-tiered human-resource model", + }, }); // Handle the result @@ -1072,19 +1055,20 @@ actions: } run(); - - target: $["paths"]["/accounting/transactions"]["get"] + - target: $["paths"]["/marketingautomation/emails/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingTransaction + label: retrieveMarketingautomationEmail source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.transactions.list({ + const result = await panora.marketingautomation.emails.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -1092,20 +1076,19 @@ actions: } run(); - - target: $["paths"]["/filestorage/files/{id}"]["get"] + - target: $["paths"]["/ats/activities"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveFilestorageFile + label: listAtsActivity source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.filestorage.files.retrieve({ + const result = await panora.ats.activities.list({ xConnectionToken: "", - id: "", }); // Handle the result @@ -1113,23 +1096,20 @@ actions: } run(); - - target: $["paths"]["/crm/contacts"]["post"] + - target: $["paths"]["/ats/activities"]["post"] update: x-codeSamples: - lang: typescript - label: createCrmContact + label: createAtsActivity source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.crm.contacts.create({ + const result = await panora.ats.activities.create({ xConnectionToken: "", - unifiedCrmContactInput: { - firstName: "Jed", - lastName: "Kuhn", - }, + unifiedAtsActivityInput: {}, }); // Handle the result @@ -1137,18 +1117,18 @@ actions: } run(); - - target: $["paths"]["/hris/paygroups"]["get"] + - target: $["paths"]["/ats/candidates"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisPaygroup + label: listAtsCandidate source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.paygroups.list({ + const result = await panora.ats.candidates.list({ xConnectionToken: "", }); @@ -1157,19 +1137,20 @@ actions: } run(); - - target: $["paths"]["/hris/timeoffs"]["get"] + - target: $["paths"]["/accounting/purchaseorders/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisTimeoffs + label: retrieveAccountingPurchaseOrder source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.timeoffs.list({ + const result = await panora.accounting.purchaseorders.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -1177,20 +1158,19 @@ actions: } run(); - - target: $["paths"]["/ats/departments/{id}"]["get"] + - target: $["paths"]["/filestorage/groups"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsDepartment + label: listFilestorageGroup source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.departments.retrieve({ + const result = await panora.filestorage.groups.list({ xConnectionToken: "", - id: "", }); // Handle the result @@ -1198,20 +1178,20 @@ actions: } run(); - - target: $["paths"]["/ats/offers/{id}"]["get"] + - target: $["paths"]["/linked_users"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveAtsOffer + label: createLinkedUser source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.offers.retrieve({ - xConnectionToken: "", - id: "", + const result = await panora.linkedUsers.create({ + linkedUserOriginId: "", + alias: "", }); // Handle the result @@ -1219,19 +1199,20 @@ actions: } run(); - - target: $["paths"]["/accounting/purchaseorders"]["get"] + - target: $["paths"]["/accounting/expenses/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingPurchaseOrder + label: retrieveAccountingExpense source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.purchaseorders.list({ + const result = await panora.accounting.expenses.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -1239,18 +1220,18 @@ actions: } run(); - - target: $["paths"]["/filestorage/folders/{id}"]["get"] + - target: $["paths"]["/filestorage/groups/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveFilestorageFolder + label: retrieveFilestorageGroup source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.filestorage.folders.retrieve({ + const result = await panora.filestorage.groups.retrieve({ xConnectionToken: "", id: "", }); @@ -1260,18 +1241,18 @@ actions: } run(); - - target: $["paths"]["/hris/employeepayrollruns/{id}"]["get"] + - target: $["paths"]["/accounting/payments/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisEmployeePayrollRun + label: retrieveAccountingPayment source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.employeepayrollruns.retrieve({ + const result = await panora.accounting.payments.retrieve({ xConnectionToken: "", id: "", }); @@ -1281,18 +1262,18 @@ actions: } run(); - - target: $["paths"]["/accounting/addresses/{id}"]["get"] + - target: $["paths"]["/hris/locations/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingAddress + label: retrieveHrisLocation source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.addresses.retrieve({ + const result = await panora.hris.locations.retrieve({ xConnectionToken: "", id: "", }); @@ -1302,19 +1283,20 @@ actions: } run(); - - target: $["paths"]["/accounting/taxrates"]["get"] + - target: $["paths"]["/accounting/accounts/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingTaxRate + label: retrieveAccountingAccount source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.taxrates.list({ + const result = await panora.accounting.accounts.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -1322,19 +1304,20 @@ actions: } run(); - - target: $["paths"]["/crm/stages"]["get"] + - target: $["paths"]["/ticketing/collections/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listCrmStages + label: retrieveCollection source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.crm.stages.list({ + const result = await panora.ticketing.collections.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -1342,19 +1325,20 @@ actions: } run(); - - target: $["paths"]["/hris/timeoffbalances"]["get"] + - target: $["paths"]["/ticketing/comments/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisTimeoffbalance + label: retrieveTicketingComment source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.timeoffbalances.list({ + const result = await panora.ticketing.comments.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -1362,20 +1346,20 @@ actions: } run(); - - target: $["paths"]["/ats/applications"]["post"] + - target: $["paths"]["/accounting/phonenumbers/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createAtsApplication + label: retrieveAccountingPhonenumber source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.applications.create({ + const result = await panora.accounting.phonenumbers.retrieve({ xConnectionToken: "", - unifiedAtsApplicationInput: {}, + id: "", }); // Handle the result @@ -1383,22 +1367,20 @@ actions: } run(); - - target: $["paths"]["/crm/notes"]["post"] + - target: $["paths"]["/accounting/transactions/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createCrmNote + label: retrieveAccountingTransaction source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.crm.notes.create({ + const result = await panora.accounting.transactions.retrieve({ xConnectionToken: "", - unifiedCrmNoteInput: { - content: "", - }, + id: "", }); // Handle the result @@ -1406,19 +1388,22 @@ actions: } run(); - - target: $["paths"]["/ats/offers"]["get"] + - target: $["paths"]["/crm/engagements"]["post"] update: x-codeSamples: - lang: typescript - label: listAtsOffer + label: createCrmEngagement source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.offers.list({ + const result = await panora.crm.engagements.create({ xConnectionToken: "", + unifiedCrmEngagementInput: { + type: "", + }, }); // Handle the result @@ -1426,18 +1411,18 @@ actions: } run(); - - target: $["paths"]["/ats/rejectreasons/{id}"]["get"] + - target: $["paths"]["/ats/applications/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsRejectReason + label: retrieveAtsApplication source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.rejectreasons.retrieve({ + const result = await panora.ats.applications.retrieve({ xConnectionToken: "", id: "", }); @@ -1447,20 +1432,19 @@ actions: } run(); - - target: $["paths"]["/ticketing/users/{id}"]["get"] + - target: $["paths"]["/marketingautomation/messages"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveTicketingUser + label: listMarketingautomationMessages source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ticketing.users.retrieve({ + const result = await panora.marketingautomation.messages.list({ xConnectionToken: "", - id: "", }); // Handle the result @@ -1468,18 +1452,18 @@ actions: } run(); - - target: $["paths"]["/ticketing/teams/{id}"]["get"] + - target: $["paths"]["/accounting/addresses/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveTicketingTeam + label: retrieveAccountingAddress source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ticketing.teams.retrieve({ + const result = await panora.accounting.addresses.retrieve({ xConnectionToken: "", id: "", }); @@ -1489,24 +1473,19 @@ actions: } run(); - - target: $["paths"]["/crm/deals"]["post"] + - target: $["paths"]["/accounting/cashflowstatements"]["get"] update: x-codeSamples: - lang: typescript - label: createCrmDeal + label: listAccountingCashflowStatement source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.crm.deals.create({ + const result = await panora.accounting.cashflowstatements.list({ xConnectionToken: "", - unifiedCrmDealInput: { - name: "", - description: "Multi-tiered human-resource model", - amount: 8592.13, - }, }); // Handle the result @@ -1514,20 +1493,19 @@ actions: } run(); - - target: $["paths"]["/ats/candidates"]["post"] + - target: $["paths"]["/ticketing/tickets"]["get"] update: x-codeSamples: - lang: typescript - label: createAtsCandidate + label: listTicketingTicket source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.candidates.create({ + const result = await panora.ticketing.tickets.list({ xConnectionToken: "", - unifiedAtsCandidateInput: {}, }); // Handle the result @@ -1535,19 +1513,22 @@ actions: } run(); - - target: $["paths"]["/hris/employees"]["get"] + - target: $["paths"]["/crm/companies"]["post"] update: x-codeSamples: - lang: typescript - label: listHrisEmployee + label: createCrmCompany source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.employees.list({ + const result = await panora.crm.companies.create({ xConnectionToken: "", + unifiedCrmCompanyInput: { + name: "", + }, }); // Handle the result @@ -1555,19 +1536,19 @@ actions: } run(); - - target: $["paths"]["/hris/employments"]["get"] + - target: $["paths"]["/linked_users/single"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisEmployment + label: retrieveLinkedUser source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.employments.list({ - xConnectionToken: "", + const result = await panora.linkedUsers.single.retrieve({ + id: "", }); // Handle the result @@ -1575,20 +1556,22 @@ actions: } run(); - - target: $["paths"]["/accounting/attachments/{id}"]["get"] + - target: $["paths"]["/field_mappings/define"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingAttachment + label: definitions source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.attachments.retrieve({ - xConnectionToken: "", - id: "", + const result = await panora.fieldMappings.define.definitions({ + objectTypeOwner: "", + name: "", + description: "Universal heuristic matrices", + dataType: "decimal", }); // Handle the result @@ -1596,18 +1579,18 @@ actions: } run(); - - target: $["paths"]["/hris/benefits/{id}"]["get"] + - target: $["paths"]["/hris/bankinfos/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisBenefit + label: retrieveHrisBankinfo source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.benefits.retrieve({ + const result = await panora.hris.bankinfos.retrieve({ xConnectionToken: "", id: "", }); @@ -1617,20 +1600,19 @@ actions: } run(); - - target: $["paths"]["/ats/activities/{id}"]["get"] + - target: $["paths"]["/hris/employments"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsActivity + label: listHrisEmployment source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.activities.retrieve({ + const result = await panora.hris.employments.list({ xConnectionToken: "", - id: "", }); // Handle the result @@ -1638,20 +1620,19 @@ actions: } run(); - - target: $["paths"]["/ats/scorecards/{id}"]["get"] + - target: $["paths"]["/ticketing/tags"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsScorecard + label: listTicketingTags source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.scorecards.retrieve({ + const result = await panora.ticketing.tags.list({ xConnectionToken: "", - id: "", }); // Handle the result @@ -1659,18 +1640,18 @@ actions: } run(); - - target: $["paths"]["/hris/dependents"]["get"] + - target: $["paths"]["/ats/scorecards"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisDependents + label: listAtsScorecard source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.dependents.list({ + const result = await panora.ats.scorecards.list({ xConnectionToken: "", }); @@ -1679,20 +1660,20 @@ actions: } run(); - - target: $["paths"]["/hris/employees/{id}"]["get"] + - target: $["paths"]["/accounting/attachments"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveHrisEmployee + label: createAccountingAttachment source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.employees.retrieve({ + const result = await panora.accounting.attachments.create({ xConnectionToken: "", - id: "", + unifiedAccountingAttachmentInput: {}, }); // Handle the result @@ -1700,20 +1681,19 @@ actions: } run(); - - target: $["paths"]["/hris/timeoffs"]["post"] + - target: $["paths"]["/accounting/balancesheets"]["get"] update: x-codeSamples: - lang: typescript - label: createHrisTimeoff + label: listAccountingBalanceSheets source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.timeoffs.create({ + const result = await panora.accounting.balancesheets.list({ xConnectionToken: "", - unifiedHrisTimeoffInput: {}, }); // Handle the result @@ -1721,20 +1701,19 @@ actions: } run(); - - target: $["paths"]["/ats/jobinterviewstages/{id}"]["get"] + - target: $["paths"]["/accounting/creditnotes"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsJobInterviewStage + label: listAccountingCreditNote source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.jobinterviewstages.retrieve({ + const result = await panora.accounting.creditnotes.list({ xConnectionToken: "", - id: "", }); // Handle the result @@ -1742,36 +1721,39 @@ actions: } run(); - - target: $["paths"]["/"]["get"] + - target: $["paths"]["/accounting/journalentries/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: hello + label: retrieveAccountingJournalEntry source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hello(); + const result = await panora.accounting.journalentries.retrieve({ + xConnectionToken: "", + id: "", + }); // Handle the result console.log(result) } run(); - - target: $["paths"]["/hris/benefits"]["get"] + - target: $["paths"]["/ats/attachments"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisBenefit + label: listAtsAttachment source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.benefits.list({ + const result = await panora.ats.attachments.list({ xConnectionToken: "", }); @@ -1780,20 +1762,19 @@ actions: } run(); - - target: $["paths"]["/crm/engagements/{id}"]["get"] + - target: $["paths"]["/ats/offices"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveCrmEngagement + label: listAtsOffice source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.crm.engagements.retrieve({ + const result = await panora.ats.offices.list({ xConnectionToken: "", - id: "", }); // Handle the result @@ -1801,18 +1782,18 @@ actions: } run(); - - target: $["paths"]["/ats/activities"]["get"] + - target: $["paths"]["/ats/jobs"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsActivity + label: listAtsJob source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.activities.list({ + const result = await panora.ats.jobs.list({ xConnectionToken: "", }); @@ -1821,18 +1802,18 @@ actions: } run(); - - target: $["paths"]["/ats/jobs/{id}"]["get"] + - target: $["paths"]["/filestorage/users/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsJob + label: retrieveFilestorageUser source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.jobs.retrieve({ + const result = await panora.filestorage.users.retrieve({ xConnectionToken: "", id: "", }); @@ -1842,22 +1823,19 @@ actions: } run(); - - target: $["paths"]["/linked_users/batch"]["post"] + - target: $["paths"]["/crm/notes"]["get"] update: x-codeSamples: - lang: typescript - label: importBatch + label: listCrmNote source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.linkedUsers.batch.importBatch({ - linkedUserOriginIds: [ - "", - ], - alias: "", + const result = await panora.crm.notes.list({ + xConnectionToken: "", }); // Handle the result @@ -1865,20 +1843,19 @@ actions: } run(); - - target: $["paths"]["/accounting/expenses"]["post"] + - target: $["paths"]["/hris/paygroups"]["get"] update: x-codeSamples: - lang: typescript - label: createAccountingExpense + label: listHrisPaygroup source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.expenses.create({ + const result = await panora.hris.paygroups.list({ xConnectionToken: "", - unifiedAccountingExpenseInput: {}, }); // Handle the result @@ -1886,19 +1863,20 @@ actions: } run(); - - target: $["paths"]["/filestorage/groups"]["get"] + - target: $["paths"]["/ats/jobs/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listFilestorageGroup + label: retrieveAtsJob source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.filestorage.groups.list({ + const result = await panora.ats.jobs.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -1906,19 +1884,20 @@ actions: } run(); - - target: $["paths"]["/crm/notes"]["get"] + - target: $["paths"]["/ats/scorecards/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listCrmNote + label: retrieveAtsScorecard source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.crm.notes.list({ + const result = await panora.ats.scorecards.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -1926,19 +1905,19 @@ actions: } run(); - - target: $["paths"]["/linked_users/fromRemoteId"]["get"] + - target: $["paths"]["/ats/eeocs"]["get"] update: x-codeSamples: - lang: typescript - label: remoteId + label: listAtsEeocs source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.linkedUsers.fromremoteid.remoteId({ - remoteId: "", + const result = await panora.ats.eeocs.list({ + xConnectionToken: "", }); // Handle the result @@ -1946,20 +1925,19 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/contacts"]["post"] + - target: $["paths"]["/accounting/purchaseorders"]["get"] update: x-codeSamples: - lang: typescript - label: createMarketingAutomationContact + label: listAccountingPurchaseOrder source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.marketingautomation.contacts.create({ + const result = await panora.accounting.purchaseorders.list({ xConnectionToken: "", - unifiedMarketingautomationContactInput: {}, }); // Handle the result @@ -1967,19 +1945,19 @@ actions: } run(); - - target: $["paths"]["/webhooks/{id}"]["delete"] + - target: $["paths"]["/accounting/taxrates"]["get"] update: x-codeSamples: - lang: typescript - label: delete + label: listAccountingTaxRate source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.webhooks.id.delete({ - id: "", + const result = await panora.accounting.taxrates.list({ + xConnectionToken: "", }); // Handle the result @@ -1987,22 +1965,19 @@ actions: } run(); - - target: $["paths"]["/ticketing/comments"]["post"] + - target: $["paths"]["/ticketing/users"]["get"] update: x-codeSamples: - lang: typescript - label: createTicketingComment + label: listTicketingUsers source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ticketing.comments.create({ + const result = await panora.ticketing.users.list({ xConnectionToken: "", - unifiedTicketingCommentInput: { - body: "", - }, }); // Handle the result @@ -2010,20 +1985,19 @@ actions: } run(); - - target: $["paths"]["/accounting/transactions/{id}"]["get"] + - target: $["paths"]["/sync/status/{vertical}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingTransaction + label: status source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.transactions.retrieve({ - xConnectionToken: "", - id: "", + const result = await panora.sync.status({ + vertical: "", }); // Handle the result @@ -2031,19 +2005,20 @@ actions: } run(); - - target: $["paths"]["/accounting/companyinfos"]["get"] + - target: $["paths"]["/marketingautomation/actions"]["post"] update: x-codeSamples: - lang: typescript - label: listAccountingCompanyInfos + label: createMarketingautomationAction source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.companyinfos.list({ + const result = await panora.marketingautomation.actions.create({ xConnectionToken: "", + unifiedMarketingautomationActionInput: {}, }); // Handle the result @@ -2051,19 +2026,20 @@ actions: } run(); - - target: $["paths"]["/accounting/invoices"]["get"] + - target: $["paths"]["/marketingautomation/campaigns/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingInvoice + label: retrieveMarketingautomationCampaign source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.invoices.list({ + const result = await panora.marketingautomation.campaigns.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -2071,20 +2047,20 @@ actions: } run(); - - target: $["paths"]["/crm/companies/{id}"]["get"] + - target: $["paths"]["/ats/candidates"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveCrmCompany + label: createAtsCandidate source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.crm.companies.retrieve({ + const result = await panora.ats.candidates.create({ xConnectionToken: "", - id: "", + unifiedAtsCandidateInput: {}, }); // Handle the result @@ -2092,22 +2068,19 @@ actions: } run(); - - target: $["paths"]["/field_mappings/map"]["post"] + - target: $["paths"]["/accounting/attachments"]["get"] update: x-codeSamples: - lang: typescript - label: map + label: listAccountingAttachments source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.fieldMappings.map.map({ - attributeId: "", - sourceCustomFieldId: "", - sourceProvider: "", - linkedUserId: "", + const result = await panora.accounting.attachments.list({ + xConnectionToken: "", }); // Handle the result @@ -2115,20 +2088,19 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/events/{id}"]["get"] + - target: $["paths"]["/crm/engagements"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingautomationEvent + label: listCrmEngagements source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.marketingautomation.events.retrieve({ + const result = await panora.crm.engagements.list({ xConnectionToken: "", - id: "", }); // Handle the result @@ -2136,18 +2108,18 @@ actions: } run(); - - target: $["paths"]["/hris/employeepayrollruns"]["get"] + - target: $["paths"]["/ats/applications"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisEmployeePayrollRun + label: listAtsApplication source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.employeepayrollruns.list({ + const result = await panora.ats.applications.list({ xConnectionToken: "", }); @@ -2156,18 +2128,18 @@ actions: } run(); - - target: $["paths"]["/accounting/purchaseorders/{id}"]["get"] + - target: $["paths"]["/accounting/cashflowstatements/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingPurchaseOrder + label: retrieveAccountingCashflowStatement source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.purchaseorders.retrieve({ + const result = await panora.accounting.cashflowstatements.retrieve({ xConnectionToken: "", id: "", }); @@ -2177,19 +2149,20 @@ actions: } run(); - - target: $["paths"]["/filestorage/drives"]["get"] + - target: $["paths"]["/accounting/contacts"]["post"] update: x-codeSamples: - lang: typescript - label: listFilestorageDrives + label: createAccountingContact source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.filestorage.drives.list({ + const result = await panora.accounting.contacts.create({ xConnectionToken: "", + unifiedAccountingContactInput: {}, }); // Handle the result @@ -2197,30 +2170,20 @@ actions: } run(); - - target: $["paths"]["/filestorage/folders"]["post"] + - target: $["paths"]["/accounting/expenses"]["post"] update: x-codeSamples: - lang: typescript - label: createFilestorageFolder + label: createAccountingExpense source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.filestorage.folders.create({ + const result = await panora.accounting.expenses.create({ xConnectionToken: "", - remoteData: false, - unifiedFilestorageFolderInput: { - name: "", - size: "", - folderUrl: "", - description: "Multi-tiered human-resource model", - driveId: "", - parentFolderId: "", - sharedLink: "", - permission: "", - }, + unifiedAccountingExpenseInput: {}, }); // Handle the result @@ -2228,19 +2191,22 @@ actions: } run(); - - target: $["paths"]["/ticketing/comments"]["get"] + - target: $["paths"]["/webhooks"]["post"] update: x-codeSamples: - lang: typescript - label: listTicketingComments + label: createWebhookPublic source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ticketing.comments.list({ - xConnectionToken: "", + const result = await panora.webhooks.create({ + url: "http://limp-pastry.org", + scope: [ + "", + ], }); // Handle the result @@ -2248,19 +2214,20 @@ actions: } run(); - - target: $["paths"]["/hris/locations"]["get"] + - target: $["paths"]["/crm/stages/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisLocation + label: retrieveCrmStage source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.locations.list({ + const result = await panora.crm.stages.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -2268,20 +2235,19 @@ actions: } run(); - - target: $["paths"]["/accounting/contacts/{id}"]["get"] + - target: $["paths"]["/accounting/companyinfos"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingContact + label: listAccountingCompanyInfos source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.contacts.retrieve({ + const result = await panora.accounting.companyinfos.list({ xConnectionToken: "", - id: "", }); // Handle the result @@ -2289,20 +2255,23 @@ actions: } run(); - - target: $["paths"]["/accounting/invoices/{id}"]["get"] + - target: $["paths"]["/webhooks/verifyEvent"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingInvoice + label: verifyEvent source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.invoices.retrieve({ - xConnectionToken: "", - id: "", + const result = await panora.webhooks.verifyEvent({ + payload: { + "key": "", + }, + signature: "", + secret: "", }); // Handle the result @@ -2310,36 +2279,38 @@ actions: } run(); - - target: $["paths"]["/health"]["get"] + - target: $["paths"]["/ats/tags"]["get"] update: x-codeSamples: - lang: typescript - label: health + label: listAtsTags source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.health(); + const result = await panora.ats.tags.list({ + xConnectionToken: "", + }); // Handle the result console.log(result) } run(); - - target: $["paths"]["/ats/users/{id}"]["get"] + - target: $["paths"]["/accounting/invoices/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsUser + label: retrieveAccountingInvoice source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.users.retrieve({ + const result = await panora.accounting.invoices.retrieve({ xConnectionToken: "", id: "", }); @@ -2349,18 +2320,18 @@ actions: } run(); - - target: $["paths"]["/ats/eeocs"]["get"] + - target: $["paths"]["/crm/contacts"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsEeocs + label: listCrmContacts source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.eeocs.list({ + const result = await panora.crm.contacts.list({ xConnectionToken: "", }); @@ -2390,19 +2361,20 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/campaigns"]["get"] + - target: $["paths"]["/ticketing/contacts/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listMarketingautomationCampaign + label: retrieveTicketingContact source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.marketingautomation.campaigns.list({ + const result = await panora.ticketing.contacts.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -2410,18 +2382,18 @@ actions: } run(); - - target: $["paths"]["/hris/employerbenefits/{id}"]["get"] + - target: $["paths"]["/accounting/trackingcategories/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisEmployerBenefit + label: retrieveAccountingTrackingCategory source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.employerbenefits.retrieve({ + const result = await panora.accounting.trackingcategories.retrieve({ xConnectionToken: "", id: "", }); @@ -2431,18 +2403,18 @@ actions: } run(); - - target: $["paths"]["/accounting/payments"]["get"] + - target: $["paths"]["/ticketing/attachments"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingPayment + label: listTicketingAttachments source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.payments.list({ + const result = await panora.ticketing.attachments.list({ xConnectionToken: "", }); @@ -2451,19 +2423,26 @@ actions: } run(); - - target: $["paths"]["/crm/tasks"]["get"] + - target: $["paths"]["/passthrough"]["post"] update: x-codeSamples: - lang: typescript - label: listCrmTask + label: request source: |- import { Panora } from "@panora/sdk"; + import { Method } from "@panora/sdk/models/components"; const panora = new Panora(); async function run() { - const result = await panora.crm.tasks.list({ - xConnectionToken: "", + const result = await panora.passthrough.request({ + integrationId: "", + linkedUserId: "", + vertical: "", + passThroughRequestDto: { + method: Method.Get, + path: "/dev", + }, }); // Handle the result @@ -2471,18 +2450,18 @@ actions: } run(); - - target: $["paths"]["/crm/tasks/{id}"]["get"] + - target: $["paths"]["/hris/employments/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveCrmTask + label: retrieveHrisEmployment source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.crm.tasks.retrieve({ + const result = await panora.hris.employments.retrieve({ xConnectionToken: "", id: "", }); @@ -2492,20 +2471,19 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/templates"]["post"] + - target: $["paths"]["/ats/interviews"]["get"] update: x-codeSamples: - lang: typescript - label: createMarketingautomationTemplate + label: listAtsInterview source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.marketingautomation.templates.create({ + const result = await panora.ats.interviews.list({ xConnectionToken: "", - unifiedMarketingautomationTemplateInput: {}, }); // Handle the result @@ -2513,18 +2491,18 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/templates/{id}"]["get"] + - target: $["paths"]["/ticketing/tags/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingautomationTemplate + label: retrieveTicketingTag source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.marketingautomation.templates.retrieve({ + const result = await panora.ticketing.tags.retrieve({ xConnectionToken: "", id: "", }); @@ -2534,18 +2512,18 @@ actions: } run(); - - target: $["paths"]["/ticketing/comments/{id}"]["get"] + - target: $["paths"]["/ats/eeocs/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveTicketingComment + label: retrieveAtsEeocs source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ticketing.comments.retrieve({ + const result = await panora.ats.eeocs.retrieve({ xConnectionToken: "", id: "", }); @@ -2555,18 +2533,18 @@ actions: } run(); - - target: $["paths"]["/hris/groups"]["get"] + - target: $["paths"]["/accounting/phonenumbers"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisGroup + label: listAccountingPhonenumber source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.groups.list({ + const result = await panora.accounting.phonenumbers.list({ xConnectionToken: "", }); @@ -2575,41 +2553,41 @@ actions: } run(); - - target: $["paths"]["/hris/timeoffs/{id}"]["get"] + - target: $["paths"]["/sync/resync"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveHrisTimeoff + label: resync source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.timeoffs.retrieve({ - xConnectionToken: "", - id: "", - }); + const result = await panora.sync.resync(); // Handle the result console.log(result) } run(); - - target: $["paths"]["/ticketing/tags/{id}"]["get"] + - target: $["paths"]["/crm/contacts"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveTicketingTag + label: createCrmContact source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ticketing.tags.retrieve({ + const result = await panora.crm.contacts.create({ xConnectionToken: "", - id: "", + unifiedCrmContactInput: { + firstName: "Jed", + lastName: "Kuhn", + }, }); // Handle the result @@ -2617,19 +2595,24 @@ actions: } run(); - - target: $["paths"]["/accounting/accounts"]["get"] + - target: $["paths"]["/crm/tasks"]["post"] update: x-codeSamples: - lang: typescript - label: listAccountingAccounts + label: createCrmTask source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.accounts.list({ + const result = await panora.crm.tasks.create({ xConnectionToken: "", + unifiedCrmTaskInput: { + subject: "", + content: "", + status: "", + }, }); // Handle the result @@ -2637,19 +2620,20 @@ actions: } run(); - - target: $["paths"]["/ticketing/attachments"]["get"] + - target: $["paths"]["/crm/tasks/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listTicketingAttachments + label: retrieveCrmTask source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ticketing.attachments.list({ + const result = await panora.crm.tasks.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -2657,22 +2641,22 @@ actions: } run(); - - target: $["paths"]["/field_mappings/define"]["post"] + - target: $["paths"]["/field_mappings/map"]["post"] update: x-codeSamples: - lang: typescript - label: definitions + label: map source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.fieldMappings.define.definitions({ - objectTypeOwner: "", - name: "", - description: "Universal heuristic matrices", - dataType: "decimal", + const result = await panora.fieldMappings.map.map({ + attributeId: "", + sourceCustomFieldId: "", + sourceProvider: "", + linkedUserId: "", }); // Handle the result @@ -2680,18 +2664,18 @@ actions: } run(); - - target: $["paths"]["/hris/timeoffbalances/{id}"]["get"] + - target: $["paths"]["/marketingautomation/automations/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisTimeoffbalance + label: retrieveMarketingautomationAutomation source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.timeoffbalances.retrieve({ + const result = await panora.marketingautomation.automations.retrieve({ xConnectionToken: "", id: "", }); @@ -2701,18 +2685,18 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/templates"]["get"] + - target: $["paths"]["/hris/benefits"]["get"] update: x-codeSamples: - lang: typescript - label: listMarketingautomationTemplates + label: listHrisBenefit source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.marketingautomation.templates.list({ + const result = await panora.hris.benefits.list({ xConnectionToken: "", }); @@ -2721,19 +2705,20 @@ actions: } run(); - - target: $["paths"]["/accounting/addresses"]["get"] + - target: $["paths"]["/marketingautomation/messages/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingAddress + label: retrieveMarketingautomationMessage source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.addresses.list({ + const result = await panora.marketingautomation.messages.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -2741,20 +2726,19 @@ actions: } run(); - - target: $["paths"]["/hris/bankinfos/{id}"]["get"] + - target: $["paths"]["/accounting/journalentries"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisBankinfo + label: listAccountingJournalEntry source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.bankinfos.retrieve({ + const result = await panora.accounting.journalentries.list({ xConnectionToken: "", - id: "", }); // Handle the result @@ -2762,19 +2746,22 @@ actions: } run(); - - target: $["paths"]["/filestorage/folders"]["get"] + - target: $["paths"]["/ticketing/comments"]["post"] update: x-codeSamples: - lang: typescript - label: listFilestorageFolder + label: createTicketingComment source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.filestorage.folders.list({ + const result = await panora.ticketing.comments.create({ xConnectionToken: "", + unifiedTicketingCommentInput: { + body: "", + }, }); // Handle the result @@ -2782,20 +2769,22 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/actions/{id}"]["get"] + - target: $["paths"]["/crm/notes"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingautomationAction + label: createCrmNote source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.marketingautomation.actions.retrieve({ + const result = await panora.crm.notes.create({ xConnectionToken: "", - id: "", + unifiedCrmNoteInput: { + content: "", + }, }); // Handle the result @@ -2803,20 +2792,19 @@ actions: } run(); - - target: $["paths"]["/ats/attachments"]["post"] + - target: $["paths"]["/marketingautomation/lists"]["get"] update: x-codeSamples: - lang: typescript - label: createAtsAttachment + label: listMarketingautomationLists source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.attachments.create({ + const result = await panora.marketingautomation.lists.list({ xConnectionToken: "", - unifiedAtsAttachmentInput: {}, }); // Handle the result @@ -2824,18 +2812,18 @@ actions: } run(); - - target: $["paths"]["/ats/candidates"]["get"] + - target: $["paths"]["/ats/users"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsCandidate + label: listAtsUsers source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.candidates.list({ + const result = await panora.ats.users.list({ xConnectionToken: "", }); @@ -2844,19 +2832,20 @@ actions: } run(); - - target: $["paths"]["/crm/engagements"]["get"] + - target: $["paths"]["/filestorage/folders/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listCrmEngagements + label: retrieveFilestorageFolder source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.crm.engagements.list({ + const result = await panora.filestorage.folders.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -2864,18 +2853,18 @@ actions: } run(); - - target: $["paths"]["/accounting/balancesheets/{id}"]["get"] + - target: $["paths"]["/accounting/taxrates/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingBalanceSheet + label: retrieveAccountingTaxRate source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.balancesheets.retrieve({ + const result = await panora.accounting.taxrates.retrieve({ xConnectionToken: "", id: "", }); @@ -2885,20 +2874,20 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/actions"]["post"] + - target: $["paths"]["/marketingautomation/automations"]["post"] update: x-codeSamples: - lang: typescript - label: createMarketingautomationAction + label: createMarketingautomationAutomation source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.marketingautomation.actions.create({ + const result = await panora.marketingautomation.automations.create({ xConnectionToken: "", - unifiedMarketingautomationActionInput: {}, + unifiedMarketingautomationAutomationInput: {}, }); // Handle the result @@ -2906,18 +2895,18 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/users/{id}"]["get"] + - target: $["paths"]["/ats/activities/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingAutomationUser + label: retrieveAtsActivity source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.marketingautomation.users.retrieve({ + const result = await panora.ats.activities.retrieve({ xConnectionToken: "", id: "", }); @@ -2927,20 +2916,19 @@ actions: } run(); - - target: $["paths"]["/accounting/taxrates/{id}"]["get"] + - target: $["paths"]["/ats/jobinterviewstages"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingTaxRate + label: listAtsJobInterviewStage source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.taxrates.retrieve({ + const result = await panora.ats.jobinterviewstages.list({ xConnectionToken: "", - id: "", }); // Handle the result @@ -2948,20 +2936,39 @@ actions: } run(); - - target: $["paths"]["/accounting/attachments"]["post"] + - target: $["paths"]["/crm/companies"]["get"] update: x-codeSamples: - lang: typescript - label: createAccountingAttachment + label: listCrmCompany + source: |- + import { Panora } from "@panora/sdk"; + + const panora = new Panora(); + + async function run() { + const result = await panora.crm.companies.list({ + xConnectionToken: "", + }); + + // Handle the result + console.log(result) + } + + run(); + - target: $["paths"]["/hris/payrollruns"]["get"] + update: + x-codeSamples: + - lang: typescript + label: listHrisPayrollRuns source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.attachments.create({ + const result = await panora.hris.payrollruns.list({ xConnectionToken: "", - unifiedAccountingAttachmentInput: {}, }); // Handle the result @@ -2969,20 +2976,24 @@ actions: } run(); - - target: $["paths"]["/accounting/creditnotes/{id}"]["get"] + - target: $["paths"]["/ticketing/attachments"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingCreditNote + label: createTicketingAttachment source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.creditnotes.retrieve({ + const result = await panora.ticketing.attachments.create({ xConnectionToken: "", - id: "", + unifiedTicketingAttachmentInput: { + fileName: "your_file_here", + fileUrl: "", + uploader: "", + }, }); // Handle the result @@ -2990,19 +3001,20 @@ actions: } run(); - - target: $["paths"]["/accounting/items"]["get"] + - target: $["paths"]["/accounting/attachments/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingItem + label: retrieveAccountingAttachment source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.items.list({ + const result = await panora.accounting.attachments.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -3010,19 +3022,20 @@ actions: } run(); - - target: $["paths"]["/sync/status/{vertical}"]["get"] + - target: $["paths"]["/accounting/items/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: status + label: retrieveAccountingItem source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.sync.status({ - vertical: "", + const result = await panora.accounting.items.retrieve({ + xConnectionToken: "", + id: "", }); // Handle the result @@ -3030,19 +3043,20 @@ actions: } run(); - - target: $["paths"]["/crm/deals"]["get"] + - target: $["paths"]["/accounting/purchaseorders"]["post"] update: x-codeSamples: - lang: typescript - label: listCrmDeals + label: createAccountingPurchaseOrder source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.crm.deals.list({ + const result = await panora.accounting.purchaseorders.create({ xConnectionToken: "", + unifiedAccountingPurchaseorderInput: {}, }); // Handle the result @@ -3050,18 +3064,18 @@ actions: } run(); - - target: $["paths"]["/hris/groups/{id}"]["get"] + - target: $["paths"]["/ticketing/accounts/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisGroup + label: retrieveTicketingAccount source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.groups.retrieve({ + const result = await panora.ticketing.accounts.retrieve({ xConnectionToken: "", id: "", }); @@ -3071,19 +3085,18 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/automations/{id}"]["get"] + - target: $["paths"]["/webhooks/{id}"]["put"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingautomationAutomation + label: updateStatus source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.marketingautomation.automations.retrieve({ - xConnectionToken: "", + const result = await panora.webhooks.updateStatus({ id: "", }); @@ -3092,20 +3105,20 @@ actions: } run(); - - target: $["paths"]["/ats/eeocs/{id}"]["get"] + - target: $["paths"]["/hris/timeoffs"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveAtsEeocs + label: createHrisTimeoff source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.eeocs.retrieve({ + const result = await panora.hris.timeoffs.create({ xConnectionToken: "", - id: "", + unifiedHrisTimeoffInput: {}, }); // Handle the result @@ -3113,20 +3126,19 @@ actions: } run(); - - target: $["paths"]["/hris/locations/{id}"]["get"] + - target: $["paths"]["/marketingautomation/templates"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisLocation + label: listMarketingautomationTemplates source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.locations.retrieve({ + const result = await panora.marketingautomation.templates.list({ xConnectionToken: "", - id: "", }); // Handle the result @@ -3134,20 +3146,20 @@ actions: } run(); - - target: $["paths"]["/accounting/journalentries"]["post"] + - target: $["paths"]["/ats/applications"]["post"] update: x-codeSamples: - lang: typescript - label: createAccountingJournalEntry + label: createAtsApplication source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.journalentries.create({ + const result = await panora.ats.applications.create({ xConnectionToken: "", - unifiedAccountingJournalentryInput: {}, + unifiedAtsApplicationInput: {}, }); // Handle the result @@ -3155,18 +3167,19 @@ actions: } run(); - - target: $["paths"]["/linked_users/single"]["get"] + - target: $["paths"]["/accounting/creditnotes/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveLinkedUser + label: retrieveAccountingCreditNote source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.linkedUsers.single.retrieve({ + const result = await panora.accounting.creditnotes.retrieve({ + xConnectionToken: "", id: "", }); @@ -3175,18 +3188,18 @@ actions: } run(); - - target: $["paths"]["/accounting/phonenumbers"]["get"] + - target: $["paths"]["/accounting/invoices"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingPhonenumber + label: listAccountingInvoice source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.phonenumbers.list({ + const result = await panora.accounting.invoices.list({ xConnectionToken: "", }); @@ -3195,39 +3208,36 @@ actions: } run(); - - target: $["paths"]["/crm/notes/{id}"]["get"] + - target: $["paths"]["/webhooks"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveCrmNote + label: listWebhooks source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.crm.notes.retrieve({ - xConnectionToken: "", - id: "", - }); + const result = await panora.webhooks.list(); // Handle the result console.log(result) } run(); - - target: $["paths"]["/crm/users"]["get"] + - target: $["paths"]["/ticketing/teams"]["get"] update: x-codeSamples: - lang: typescript - label: listCrmUsers + label: listTicketingTeams source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.crm.users.list({ + const result = await panora.ticketing.teams.list({ xConnectionToken: "", }); @@ -3236,19 +3246,20 @@ actions: } run(); - - target: $["paths"]["/hris/payrollruns"]["get"] + - target: $["paths"]["/crm/users/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisPayrollRuns + label: retrieveCrmUser source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.payrollruns.list({ + const result = await panora.crm.users.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -3256,18 +3267,18 @@ actions: } run(); - - target: $["paths"]["/ticketing/contacts"]["get"] + - target: $["paths"]["/hris/employees"]["get"] update: x-codeSamples: - lang: typescript - label: listTicketingContacts + label: listHrisEmployee source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ticketing.contacts.list({ + const result = await panora.hris.employees.list({ xConnectionToken: "", }); @@ -3276,18 +3287,18 @@ actions: } run(); - - target: $["paths"]["/accounting/vendorcredits/{id}"]["get"] + - target: $["paths"]["/ticketing/attachments/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingVendorCredit + label: retrieveTicketingAttachment source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.vendorcredits.retrieve({ + const result = await panora.ticketing.attachments.retrieve({ xConnectionToken: "", id: "", }); @@ -3297,20 +3308,19 @@ actions: } run(); - - target: $["paths"]["/filestorage/users/{id}"]["get"] + - target: $["paths"]["/crm/users"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveFilestorageUser + label: listCrmUsers source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.filestorage.users.retrieve({ + const result = await panora.crm.users.list({ xConnectionToken: "", - id: "", }); // Handle the result @@ -3318,19 +3328,20 @@ actions: } run(); - - target: $["paths"]["/filestorage/users"]["get"] + - target: $["paths"]["/hris/groups/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listFilestorageUsers + label: retrieveHrisGroup source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.filestorage.users.list({ + const result = await panora.hris.groups.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -3338,18 +3349,18 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/campaigns/{id}"]["get"] + - target: $["paths"]["/accounting/vendorcredits/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingautomationCampaign + label: retrieveAccountingVendorCredit source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.marketingautomation.campaigns.retrieve({ + const result = await panora.accounting.vendorcredits.retrieve({ xConnectionToken: "", id: "", }); @@ -3359,18 +3370,18 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/contacts"]["get"] + - target: $["paths"]["/accounting/trackingcategories"]["get"] update: x-codeSamples: - lang: typescript - label: listMarketingAutomationContacts + label: listAccountingTrackingCategorys source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.marketingautomation.contacts.list({ + const result = await panora.accounting.trackingcategories.list({ xConnectionToken: "", }); @@ -3379,19 +3390,20 @@ actions: } run(); - - target: $["paths"]["/accounting/incomestatements"]["get"] + - target: $["paths"]["/ticketing/tickets/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingIncomeStatement + label: retrieveTicketingTicket source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.incomestatements.list({ + const result = await panora.ticketing.tickets.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -3399,18 +3411,18 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/users"]["get"] + - target: $["paths"]["/marketingautomation/events"]["get"] update: x-codeSamples: - lang: typescript - label: listMarketingAutomationUsers + label: listMarketingAutomationEvents source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.marketingautomation.users.list({ + const result = await panora.marketingautomation.events.list({ xConnectionToken: "", }); @@ -3419,18 +3431,18 @@ actions: } run(); - - target: $["paths"]["/ticketing/tags"]["get"] + - target: $["paths"]["/ats/offers"]["get"] update: x-codeSamples: - lang: typescript - label: listTicketingTags + label: listAtsOffer source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ticketing.tags.list({ + const result = await panora.ats.offers.list({ xConnectionToken: "", }); @@ -3439,24 +3451,20 @@ actions: } run(); - - target: $["paths"]["/crm/tasks"]["post"] + - target: $["paths"]["/ats/rejectreasons/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createCrmTask + label: retrieveAtsRejectReason source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.crm.tasks.create({ + const result = await panora.ats.rejectreasons.retrieve({ xConnectionToken: "", - unifiedCrmTaskInput: { - subject: "", - content: "", - status: "", - }, + id: "", }); // Handle the result @@ -3464,20 +3472,20 @@ actions: } run(); - - target: $["paths"]["/accounting/contacts"]["post"] + - target: $["paths"]["/ats/users/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createAccountingContact + label: retrieveAtsUser source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.contacts.create({ + const result = await panora.ats.users.retrieve({ xConnectionToken: "", - unifiedAccountingContactInput: {}, + id: "", }); // Handle the result @@ -3485,20 +3493,19 @@ actions: } run(); - - target: $["paths"]["/ticketing/contacts/{id}"]["get"] + - target: $["paths"]["/accounting/addresses"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveTicketingContact + label: listAccountingAddress source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ticketing.contacts.retrieve({ + const result = await panora.accounting.addresses.list({ xConnectionToken: "", - id: "", }); // Handle the result @@ -3506,18 +3513,18 @@ actions: } run(); - - target: $["paths"]["/accounting/companyinfos/{id}"]["get"] + - target: $["paths"]["/accounting/balancesheets/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingCompanyInfo + label: retrieveAccountingBalanceSheet source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.companyinfos.retrieve({ + const result = await panora.accounting.balancesheets.retrieve({ xConnectionToken: "", id: "", }); @@ -3527,72 +3534,58 @@ actions: } run(); - - target: $["paths"]["/ticketing/attachments"]["post"] + - target: $["paths"]["/"]["get"] update: x-codeSamples: - lang: typescript - label: createTicketingAttachment + label: hello source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ticketing.attachments.create({ - xConnectionToken: "", - unifiedTicketingAttachmentInput: { - fileName: "your_file_here", - fileUrl: "", - uploader: "", - }, - }); + const result = await panora.hello(); // Handle the result console.log(result) } run(); - - target: $["paths"]["/sync/resync"]["post"] + - target: $["paths"]["/ticketing/users/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: resync + label: retrieveTicketingUser source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.sync.resync(); + const result = await panora.ticketing.users.retrieve({ + xConnectionToken: "", + id: "", + }); // Handle the result console.log(result) } run(); - - target: $["paths"]["/filestorage/files"]["post"] + - target: $["paths"]["/ticketing/contacts"]["get"] update: x-codeSamples: - lang: typescript - label: createFilestorageFile + label: listTicketingContacts source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.filestorage.files.create({ + const result = await panora.ticketing.contacts.list({ xConnectionToken: "", - remoteData: false, - unifiedFilestorageFileInput: { - name: "", - fileUrl: "", - mimeType: "", - size: "", - folderId: "", - permission: "", - sharedLink: "", - }, }); // Handle the result @@ -3600,18 +3593,18 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/emails"]["get"] + - target: $["paths"]["/hris/timeoffs"]["get"] update: x-codeSamples: - lang: typescript - label: listMarketingautomationEmails + label: listHrisTimeoffs source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.marketingautomation.emails.list({ + const result = await panora.hris.timeoffs.list({ xConnectionToken: "", }); @@ -3620,20 +3613,19 @@ actions: } run(); - - target: $["paths"]["/ats/interviews/{id}"]["get"] + - target: $["paths"]["/marketingautomation/contacts"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsInterview + label: listMarketingAutomationContacts source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.interviews.retrieve({ + const result = await panora.marketingautomation.contacts.list({ xConnectionToken: "", - id: "", }); // Handle the result @@ -3641,19 +3633,20 @@ actions: } run(); - - target: $["paths"]["/accounting/attachments"]["get"] + - target: $["paths"]["/marketingautomation/events/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingAttachments + label: retrieveMarketingautomationEvent source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.attachments.list({ + const result = await panora.marketingautomation.events.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -3661,19 +3654,20 @@ actions: } run(); - - target: $["paths"]["/accounting/creditnotes"]["get"] + - target: $["paths"]["/marketingautomation/templates/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingCreditNote + label: retrieveMarketingautomationTemplate source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.creditnotes.list({ + const result = await panora.marketingautomation.templates.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -3681,22 +3675,20 @@ actions: } run(); - - target: $["paths"]["/crm/companies"]["post"] + - target: $["paths"]["/ats/jobinterviewstages/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createCrmCompany + label: retrieveAtsJobInterviewStage source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.crm.companies.create({ + const result = await panora.ats.jobinterviewstages.retrieve({ xConnectionToken: "", - unifiedCrmCompanyInput: { - name: "", - }, + id: "", }); // Handle the result @@ -3704,18 +3696,18 @@ actions: } run(); - - target: $["paths"]["/ats/tags"]["get"] + - target: $["paths"]["/hris/locations"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsTags + label: listHrisLocation source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.tags.list({ + const result = await panora.hris.locations.list({ xConnectionToken: "", }); @@ -3724,18 +3716,18 @@ actions: } run(); - - target: $["paths"]["/crm/contacts"]["get"] + - target: $["paths"]["/marketingautomation/actions"]["get"] update: x-codeSamples: - lang: typescript - label: listCrmContacts + label: listMarketingautomationAction source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.crm.contacts.list({ + const result = await panora.marketingautomation.actions.list({ xConnectionToken: "", }); @@ -3744,18 +3736,18 @@ actions: } run(); - - target: $["paths"]["/ats/attachments/{id}"]["get"] + - target: $["paths"]["/marketingautomation/users/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsAttachment + label: retrieveMarketingAutomationUser source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.attachments.retrieve({ + const result = await panora.marketingautomation.users.retrieve({ xConnectionToken: "", id: "", }); @@ -3765,18 +3757,18 @@ actions: } run(); - - target: $["paths"]["/ats/jobs"]["get"] + - target: $["paths"]["/accounting/incomestatements"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsJob + label: listAccountingIncomeStatement source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.jobs.list({ + const result = await panora.accounting.incomestatements.list({ xConnectionToken: "", }); @@ -3785,20 +3777,19 @@ actions: } run(); - - target: $["paths"]["/accounting/cashflowstatements/{id}"]["get"] + - target: $["paths"]["/filestorage/drives"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingCashflowStatement + label: listFilestorageDrives source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.cashflowstatements.retrieve({ + const result = await panora.filestorage.drives.list({ xConnectionToken: "", - id: "", }); // Handle the result @@ -3806,37 +3797,50 @@ actions: } run(); - - target: $["paths"]["/linked_users"]["get"] + - target: $["paths"]["/filestorage/files"]["post"] update: x-codeSamples: - lang: typescript - label: listLinkedUsers + label: createFilestorageFile source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.linkedUsers.list(); + const result = await panora.filestorage.files.create({ + xConnectionToken: "", + remoteData: false, + unifiedFilestorageFileInput: { + name: "", + fileUrl: "", + mimeType: "", + size: "", + folderId: "", + permission: "", + sharedLink: "", + }, + }); // Handle the result console.log(result) } run(); - - target: $["paths"]["/marketingautomation/messages"]["get"] + - target: $["paths"]["/marketingautomation/actions/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listMarketingautomationMessages + label: retrieveMarketingautomationAction source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.marketingautomation.messages.list({ + const result = await panora.marketingautomation.actions.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -3844,19 +3848,20 @@ actions: } run(); - - target: $["paths"]["/hris/employerbenefits"]["get"] + - target: $["paths"]["/hris/employees"]["post"] update: x-codeSamples: - lang: typescript - label: listHrisEmployerBenefit + label: createHrisEmployee source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.employerbenefits.list({ + const result = await panora.hris.employees.create({ xConnectionToken: "", + unifiedHrisEmployeeInput: {}, }); // Handle the result @@ -3864,18 +3869,18 @@ actions: } run(); - - target: $["paths"]["/ats/offices/{id}"]["get"] + - target: $["paths"]["/hris/employees/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAtsOffice + label: retrieveHrisEmployee source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.offices.retrieve({ + const result = await panora.hris.employees.retrieve({ xConnectionToken: "", id: "", }); @@ -3885,18 +3890,18 @@ actions: } run(); - - target: $["paths"]["/ats/users"]["get"] + - target: $["paths"]["/marketingautomation/automations"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsUsers + label: listMarketingautomationAutomation source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.users.list({ + const result = await panora.marketingautomation.automations.list({ xConnectionToken: "", }); @@ -3905,19 +3910,20 @@ actions: } run(); - - target: $["paths"]["/accounting/vendorcredits"]["get"] + - target: $["paths"]["/accounting/contacts/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAccountingVendorCredit + label: retrieveAccountingContact source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.vendorcredits.list({ + const result = await panora.accounting.contacts.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -3925,20 +3931,19 @@ actions: } run(); - - target: $["paths"]["/accounting/phonenumbers/{id}"]["get"] + - target: $["paths"]["/ticketing/collections"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingPhonenumber + label: listTicketingCollections source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.phonenumbers.retrieve({ + const result = await panora.ticketing.collections.list({ xConnectionToken: "", - id: "", }); // Handle the result @@ -3946,19 +3951,20 @@ actions: } run(); - - target: $["paths"]["/ticketing/users"]["get"] + - target: $["paths"]["/crm/companies/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listTicketingUsers + label: retrieveCrmCompany source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ticketing.users.list({ + const result = await panora.crm.companies.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -3966,19 +3972,20 @@ actions: } run(); - - target: $["paths"]["/ats/scorecards"]["get"] + - target: $["paths"]["/hris/timeoffs/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsScorecard + label: retrieveHrisTimeoff source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.scorecards.list({ + const result = await panora.hris.timeoffs.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -3986,20 +3993,20 @@ actions: } run(); - - target: $["paths"]["/accounting/purchaseorders"]["post"] + - target: $["paths"]["/accounting/companyinfos/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: createAccountingPurchaseOrder + label: retrieveAccountingCompanyInfo source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.purchaseorders.create({ + const result = await panora.accounting.companyinfos.retrieve({ xConnectionToken: "", - unifiedAccountingPurchaseorderInput: {}, + id: "", }); // Handle the result @@ -4007,20 +4014,19 @@ actions: } run(); - - target: $["paths"]["/hris/paygroups/{id}"]["get"] + - target: $["paths"]["/hris/employerbenefits"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisPaygroup + label: listHrisEmployerBenefit source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.paygroups.retrieve({ + const result = await panora.hris.employerbenefits.list({ xConnectionToken: "", - id: "", }); // Handle the result @@ -4028,20 +4034,20 @@ actions: } run(); - - target: $["paths"]["/marketingautomation/contacts/{id}"]["get"] + - target: $["paths"]["/accounting/journalentries"]["post"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingAutomationContact + label: createAccountingJournalEntry source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.marketingautomation.contacts.retrieve({ + const result = await panora.accounting.journalentries.create({ xConnectionToken: "", - id: "", + unifiedAccountingJournalentryInput: {}, }); // Handle the result @@ -4049,18 +4055,18 @@ actions: } run(); - - target: $["paths"]["/ats/departments"]["get"] + - target: $["paths"]["/filestorage/files"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsDepartments + label: listFilestorageFile source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.departments.list({ + const result = await panora.filestorage.files.list({ xConnectionToken: "", }); @@ -4069,18 +4075,18 @@ actions: } run(); - - target: $["paths"]["/hris/bankinfos"]["get"] + - target: $["paths"]["/accounting/items"]["get"] update: x-codeSamples: - lang: typescript - label: listHrisBankinfo + label: listAccountingItem source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.bankinfos.list({ + const result = await panora.accounting.items.list({ xConnectionToken: "", }); @@ -4089,18 +4095,18 @@ actions: } run(); - - target: $["paths"]["/hris/dependents/{id}"]["get"] + - target: $["paths"]["/hris/paygroups/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveHrisDependent + label: retrieveHrisPaygroup source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.dependents.retrieve({ + const result = await panora.hris.paygroups.retrieve({ xConnectionToken: "", id: "", }); @@ -4110,38 +4116,39 @@ actions: } run(); - - target: $["paths"]["/webhooks"]["get"] + - target: $["paths"]["/ats/rejectreasons"]["get"] update: x-codeSamples: - lang: typescript - label: listWebhooks + label: listAtsRejectReasons source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.webhooks.list(); + const result = await panora.ats.rejectreasons.list({ + xConnectionToken: "", + }); // Handle the result console.log(result) } run(); - - target: $["paths"]["/marketingautomation/lists/{id}"]["get"] + - target: $["paths"]["/accounting/expenses"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveMarketingautomationList + label: listAccountingExpense source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.marketingautomation.lists.retrieve({ + const result = await panora.accounting.expenses.list({ xConnectionToken: "", - id: "", }); // Handle the result @@ -4149,19 +4156,20 @@ actions: } run(); - - target: $["paths"]["/ats/interviews"]["get"] + - target: $["paths"]["/hris/dependents/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsInterview + label: retrieveHrisDependent source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.interviews.list({ + const result = await panora.hris.dependents.retrieve({ xConnectionToken: "", + id: "", }); // Handle the result @@ -4169,20 +4177,19 @@ actions: } run(); - - target: $["paths"]["/accounting/accounts/{id}"]["get"] + - target: $["paths"]["/marketingautomation/campaigns"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingAccount + label: listMarketingautomationCampaign source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.accounts.retrieve({ + const result = await panora.marketingautomation.campaigns.list({ xConnectionToken: "", - id: "", }); // Handle the result @@ -4190,20 +4197,19 @@ actions: } run(); - - target: $["paths"]["/hris/employees"]["post"] + - target: $["paths"]["/accounting/payments"]["get"] update: x-codeSamples: - lang: typescript - label: createHrisEmployee + label: listAccountingPayment source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.hris.employees.create({ + const result = await panora.accounting.payments.list({ xConnectionToken: "", - unifiedHrisEmployeeInput: {}, }); // Handle the result @@ -4211,39 +4217,36 @@ actions: } run(); - - target: $["paths"]["/accounting/incomestatements/{id}"]["get"] + - target: $["paths"]["/health"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingIncomeStatement + label: health source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.incomestatements.retrieve({ - xConnectionToken: "", - id: "", - }); + const result = await panora.health(); // Handle the result console.log(result) } run(); - - target: $["paths"]["/filestorage/files"]["get"] + - target: $["paths"]["/ats/departments"]["get"] update: x-codeSamples: - lang: typescript - label: listFilestorageFile + label: listAtsDepartments source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.filestorage.files.list({ + const result = await panora.ats.departments.list({ xConnectionToken: "", }); @@ -4252,23 +4255,20 @@ actions: } run(); - - target: $["paths"]["/webhooks/verifyEvent"]["post"] + - target: $["paths"]["/crm/engagements/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: verifyEvent + label: retrieveCrmEngagement source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.webhooks.verifyevent.verifyEvent({ - payload: { - "key": "", - }, - signature: "", - secret: "", + const result = await panora.crm.engagements.retrieve({ + xConnectionToken: "", + id: "", }); // Handle the result @@ -4276,18 +4276,18 @@ actions: } run(); - - target: $["paths"]["/ticketing/attachments/{id}"]["get"] + - target: $["paths"]["/ats/attachments/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveTicketingAttachment + label: retrieveAtsAttachment source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ticketing.attachments.retrieve({ + const result = await panora.ats.attachments.retrieve({ xConnectionToken: "", id: "", }); @@ -4297,18 +4297,18 @@ actions: } run(); - - target: $["paths"]["/crm/companies"]["get"] + - target: $["paths"]["/filestorage/folders"]["get"] update: x-codeSamples: - lang: typescript - label: listCrmCompany + label: listFilestorageFolder source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.crm.companies.list({ + const result = await panora.filestorage.folders.list({ xConnectionToken: "", }); @@ -4317,18 +4317,18 @@ actions: } run(); - - target: $["paths"]["/filestorage/drives/{id}"]["get"] + - target: $["paths"]["/ats/offers/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveFilestorageDrive + label: retrieveAtsOffer source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.filestorage.drives.retrieve({ + const result = await panora.ats.offers.retrieve({ xConnectionToken: "", id: "", }); @@ -4338,19 +4338,19 @@ actions: } run(); - - target: $["paths"]["/ats/jobinterviewstages"]["get"] + - target: $["paths"]["/linked_users/fromRemoteId"]["get"] update: x-codeSamples: - lang: typescript - label: listAtsJobInterviewStage + label: remoteId source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.ats.jobinterviewstages.list({ - xConnectionToken: "", + const result = await panora.linkedUsers.fromremoteid.remoteId({ + remoteId: "", }); // Handle the result @@ -4358,18 +4358,18 @@ actions: } run(); - - target: $["paths"]["/accounting/items/{id}"]["get"] + - target: $["paths"]["/ats/tags/{id}"]["get"] update: x-codeSamples: - lang: typescript - label: retrieveAccountingItem + label: retrieveAtsTag source: |- import { Panora } from "@panora/sdk"; const panora = new Panora(); async function run() { - const result = await panora.accounting.items.retrieve({ + const result = await panora.ats.tags.retrieve({ xConnectionToken: "", id: "", }); diff --git a/docs/models/components/numbert.md b/docs/models/components/numbert.md deleted file mode 100644 index 3450d986..00000000 --- a/docs/models/components/numbert.md +++ /dev/null @@ -1,7 +0,0 @@ -# NumberT - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/components/string.md b/docs/models/components/string.md deleted file mode 100644 index b13a613c..00000000 --- a/docs/models/components/string.md +++ /dev/null @@ -1,7 +0,0 @@ -# String - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/operations/healthresponse.md b/docs/models/operations/healthresponse.md index 5e9ba420..86faff63 100644 --- a/docs/models/operations/healthresponse.md +++ b/docs/models/operations/healthresponse.md @@ -6,4 +6,4 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | | `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | -| `number` | [components.NumberT](../../models/components/numbert.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `number` | *number* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/helloresponse.md b/docs/models/operations/helloresponse.md index b40ca44f..4e670438 100644 --- a/docs/models/operations/helloresponse.md +++ b/docs/models/operations/helloresponse.md @@ -6,4 +6,4 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | | `httpMeta` | [components.HTTPMetadata](../../models/components/httpmetadata.md) | :heavy_check_mark: | N/A | -| `string` | [components.String](../../models/components/string.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `string` | *string* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdks/id/README.md b/docs/sdks/id/README.md deleted file mode 100644 index 1d00ae4f..00000000 --- a/docs/sdks/id/README.md +++ /dev/null @@ -1,91 +0,0 @@ -# Id -(*webhooks.id*) - -### Available Operations - -* [delete](#delete) - Delete Webhook -* [updateStatus](#updatestatus) - Update webhook status - -## delete - -Delete Webhook - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora(); - -async function run() { - const result = await panora.webhooks.id.delete({ - id: "", - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.DeleteRequest](../../models/operations/deleterequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | -| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | -| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | - - -### Response - -**Promise\<[operations.DeleteResponse](../../models/operations/deleteresponse.md)\>** -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | - -## updateStatus - -Update webhook status - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora(); - -async function run() { - const result = await panora.webhooks.id.updateStatus({ - id: "", - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.UpdateStatusRequest](../../models/operations/updatestatusrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | -| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | -| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | - - -### Response - -**Promise\<[operations.UpdateStatusResponse](../../models/operations/updatestatusresponse.md)\>** -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/verifyevent/README.md b/docs/sdks/verifyevent/README.md deleted file mode 100644 index 071b4f80..00000000 --- a/docs/sdks/verifyevent/README.md +++ /dev/null @@ -1,52 +0,0 @@ -# Verifyevent -(*webhooks.verifyevent*) - -### Available Operations - -* [verifyEvent](#verifyevent) - Verify payload signature of the webhook - -## verifyEvent - -Verify payload signature of the webhook - -### Example Usage - -```typescript -import { Panora } from "@panora/sdk"; - -const panora = new Panora(); - -async function run() { - const result = await panora.webhooks.verifyevent.verifyEvent({ - payload: { - "key": "", - }, - signature: "", - secret: "", - }); - - // Handle the result - console.log(result) -} - -run(); -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [components.SignatureVerificationDto](../../models/components/signatureverificationdto.md) | :heavy_check_mark: | The request object to use for the request. | -| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | -| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | -| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | - - -### Response - -**Promise\<[operations.VerifyEventResponse](../../models/operations/verifyeventresponse.md)\>** -### Errors - -| Error Object | Status Code | Content Type | -| --------------- | --------------- | --------------- | -| errors.SDKError | 4xx-5xx | */* | diff --git a/docs/sdks/webhooks/README.md b/docs/sdks/webhooks/README.md index 1dcc0304..05280eb6 100644 --- a/docs/sdks/webhooks/README.md +++ b/docs/sdks/webhooks/README.md @@ -5,6 +5,9 @@ * [list](#list) - List webhooks * [create](#create) - Add webhook metadata +* [delete](#delete) - Delete Webhook +* [updateStatus](#updatestatus) - Update webhook status +* [verifyEvent](#verifyevent) - Verify payload signature of the webhook ## list @@ -89,3 +92,133 @@ run(); | Error Object | Status Code | Content Type | | --------------- | --------------- | --------------- | | errors.SDKError | 4xx-5xx | */* | + +## delete + +Delete Webhook + +### Example Usage + +```typescript +import { Panora } from "@panora/sdk"; + +const panora = new Panora(); + +async function run() { + const result = await panora.webhooks.delete({ + id: "", + }); + + // Handle the result + console.log(result) +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.DeleteRequest](../../models/operations/deleterequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + + +### Response + +**Promise\<[operations.DeleteResponse](../../models/operations/deleteresponse.md)\>** +### Errors + +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 4xx-5xx | */* | + +## updateStatus + +Update webhook status + +### Example Usage + +```typescript +import { Panora } from "@panora/sdk"; + +const panora = new Panora(); + +async function run() { + const result = await panora.webhooks.updateStatus({ + id: "", + }); + + // Handle the result + console.log(result) +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.UpdateStatusRequest](../../models/operations/updatestatusrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + + +### Response + +**Promise\<[operations.UpdateStatusResponse](../../models/operations/updatestatusresponse.md)\>** +### Errors + +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 4xx-5xx | */* | + +## verifyEvent + +Verify payload signature of the webhook + +### Example Usage + +```typescript +import { Panora } from "@panora/sdk"; + +const panora = new Panora(); + +async function run() { + const result = await panora.webhooks.verifyEvent({ + payload: { + "key": "", + }, + signature: "", + secret: "", + }); + + // Handle the result + console.log(result) +} + +run(); +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [components.SignatureVerificationDto](../../models/components/signatureverificationdto.md) | :heavy_check_mark: | The request object to use for the request. | +| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. | +| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. | +| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. | + + +### Response + +**Promise\<[operations.VerifyEventResponse](../../models/operations/verifyeventresponse.md)\>** +### Errors + +| Error Object | Status Code | Content Type | +| --------------- | --------------- | --------------- | +| errors.SDKError | 4xx-5xx | */* | diff --git a/jsr.json b/jsr.json index 9c0b474a..a3153a48 100644 --- a/jsr.json +++ b/jsr.json @@ -2,7 +2,7 @@ { "name": "@panora/sdk", - "version": "0.3.0", + "version": "0.3.1", "exports": { ".": "./src/index.ts", "./models/errors": "./src/models/errors/index.ts", diff --git a/package-lock.json b/package-lock.json index 78b2a037..cb8bd4ce 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@panora/sdk", - "version": "0.3.0", + "version": "0.3.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@panora/sdk", - "version": "0.3.0", + "version": "0.3.1", "devDependencies": { "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", diff --git a/package.json b/package.json index 40d6b473..51157773 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@panora/sdk", - "version": "0.3.0", + "version": "0.3.1", "author": "Speakeasy", "main": "./index.js", "sideEffects": false, diff --git a/src/lib/config.ts b/src/lib/config.ts index f0ebfb45..a19c654a 100644 --- a/src/lib/config.ts +++ b/src/lib/config.ts @@ -61,7 +61,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null { export const SDK_METADATA = { language: "typescript", openapiDocVersion: "1.0", - sdkVersion: "0.3.0", + sdkVersion: "0.3.1", genVersion: "2.384.4", - userAgent: "speakeasy-sdk/typescript 0.3.0 2.384.4 1.0 @panora/sdk", + userAgent: "speakeasy-sdk/typescript 0.3.1 2.384.4 1.0 @panora/sdk", } as const; diff --git a/src/models/components/index.ts b/src/models/components/index.ts index 5d224eb0..bed49d64 100644 --- a/src/models/components/index.ts +++ b/src/models/components/index.ts @@ -12,13 +12,11 @@ export * from "./email.js"; export * from "./httpmetadata.js"; export * from "./linkeduserresponse.js"; export * from "./mapfieldtoproviderdto.js"; -export * from "./number.js"; export * from "./passthroughrequestdto.js"; export * from "./passthroughresponse.js"; export * from "./phone.js"; export * from "./resyncstatusdto.js"; export * from "./signatureverificationdto.js"; -export * from "./string.js"; export * from "./unifiedaccountingaccountinput.js"; export * from "./unifiedaccountingaccountoutput.js"; export * from "./unifiedaccountingaddressoutput.js"; diff --git a/src/models/components/number.ts b/src/models/components/number.ts deleted file mode 100644 index 3a80475f..00000000 --- a/src/models/components/number.ts +++ /dev/null @@ -1,31 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; - -export type NumberT = {}; - -/** @internal */ -export const NumberT$inboundSchema: z.ZodType = z.object({}); - -/** @internal */ -export type NumberT$Outbound = {}; - -/** @internal */ -export const NumberT$outboundSchema: z.ZodType = z.object( - {} -); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace NumberT$ { - /** @deprecated use `NumberT$inboundSchema` instead. */ - export const inboundSchema = NumberT$inboundSchema; - /** @deprecated use `NumberT$outboundSchema` instead. */ - export const outboundSchema = NumberT$outboundSchema; - /** @deprecated use `NumberT$Outbound` instead. */ - export type Outbound = NumberT$Outbound; -} diff --git a/src/models/components/string.ts b/src/models/components/string.ts deleted file mode 100644 index 5e36229f..00000000 --- a/src/models/components/string.ts +++ /dev/null @@ -1,29 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import * as z from "zod"; - -export type String = {}; - -/** @internal */ -export const String$inboundSchema: z.ZodType = z.object({}); - -/** @internal */ -export type String$Outbound = {}; - -/** @internal */ -export const String$outboundSchema: z.ZodType = z.object({}); - -/** - * @internal - * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. - */ -export namespace String$ { - /** @deprecated use `String$inboundSchema` instead. */ - export const inboundSchema = String$inboundSchema; - /** @deprecated use `String$outboundSchema` instead. */ - export const outboundSchema = String$outboundSchema; - /** @deprecated use `String$Outbound` instead. */ - export type Outbound = String$Outbound; -} diff --git a/src/models/operations/health.ts b/src/models/operations/health.ts index b7cf494e..12a9ee22 100644 --- a/src/models/operations/health.ts +++ b/src/models/operations/health.ts @@ -8,26 +8,25 @@ import * as z from "zod"; export type HealthResponse = { httpMeta: components.HTTPMetadata; - number?: components.NumberT | undefined; + number?: number | undefined; }; /** @internal */ export const HealthResponse$inboundSchema: z.ZodType = z .object({ HttpMeta: components.HTTPMetadata$inboundSchema, - Number: components.NumberT$inboundSchema.optional(), + number: z.number().optional(), }) .transform((v) => { return remap$(v, { HttpMeta: "httpMeta", - Number: "number", }); }); /** @internal */ export type HealthResponse$Outbound = { HttpMeta: components.HTTPMetadata$Outbound; - Number?: components.NumberT$Outbound | undefined; + number?: number | undefined; }; /** @internal */ @@ -38,12 +37,11 @@ export const HealthResponse$outboundSchema: z.ZodType< > = z .object({ httpMeta: components.HTTPMetadata$outboundSchema, - number: components.NumberT$outboundSchema.optional(), + number: z.number().optional(), }) .transform((v) => { return remap$(v, { httpMeta: "HttpMeta", - number: "Number", }); }); diff --git a/src/models/operations/hello.ts b/src/models/operations/hello.ts index b582162e..72de2277 100644 --- a/src/models/operations/hello.ts +++ b/src/models/operations/hello.ts @@ -8,26 +8,25 @@ import * as z from "zod"; export type HelloResponse = { httpMeta: components.HTTPMetadata; - string?: components.String | undefined; + string?: string | undefined; }; /** @internal */ export const HelloResponse$inboundSchema: z.ZodType = z .object({ HttpMeta: components.HTTPMetadata$inboundSchema, - String: components.String$inboundSchema.optional(), + string: z.string().optional(), }) .transform((v) => { return remap$(v, { HttpMeta: "httpMeta", - String: "string", }); }); /** @internal */ export type HelloResponse$Outbound = { HttpMeta: components.HTTPMetadata$Outbound; - String?: components.String$Outbound | undefined; + string?: string | undefined; }; /** @internal */ @@ -38,12 +37,11 @@ export const HelloResponse$outboundSchema: z.ZodType< > = z .object({ httpMeta: components.HTTPMetadata$outboundSchema, - string: components.String$outboundSchema.optional(), + string: z.string().optional(), }) .transform((v) => { return remap$(v, { httpMeta: "HttpMeta", - string: "String", }); }); diff --git a/src/sdk/id.ts b/src/sdk/id.ts deleted file mode 100644 index 6fddb3a7..00000000 --- a/src/sdk/id.ts +++ /dev/null @@ -1,163 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { SDKHooks } from "../hooks/hooks.js"; -import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; -import { encodeSimple as encodeSimple$ } from "../lib/encodings.js"; -import { HTTPClient } from "../lib/http.js"; -import * as schemas$ from "../lib/schemas.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as operations from "../models/operations/index.js"; - -export class Id extends ClientSDK { - private readonly options$: SDKOptions & { hooks?: SDKHooks }; - - constructor(options: SDKOptions = {}) { - const opt = options as unknown; - let hooks: SDKHooks; - if ( - typeof opt === "object" && - opt != null && - "hooks" in opt && - opt.hooks instanceof SDKHooks - ) { - hooks = opt.hooks; - } else { - hooks = new SDKHooks(); - } - - super({ - client: options.httpClient || new HTTPClient(), - baseURL: serverURLFromOptions(options), - hooks, - }); - - this.options$ = { ...options, hooks }; - void this.options$; - } - - /** - * Delete Webhook - */ - async delete( - request: operations.DeleteRequest, - options?: RequestOptions - ): Promise { - const input$ = request; - - const payload$ = schemas$.parse( - input$, - (value$) => operations.DeleteRequest$outboundSchema.parse(value$), - "Input validation failed" - ); - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }), - }; - const path$ = this.templateURLComponent("/webhooks/{id}")(pathParams$); - - const query$ = ""; - - const headers$ = new Headers({ - Accept: "application/json", - }); - - const context = { operationID: "delete", oAuth2Scopes: [], securitySource: null }; - - const request$ = this.createRequest$( - context, - { - method: "DELETE", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, - }, - options - ); - - const response = await this.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries || this.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$] = await this.matcher() - .void(200, operations.DeleteResponse$inboundSchema) - .json(201, operations.DeleteResponse$inboundSchema, { key: "WebhookResponse" }) - .fail(["4XX", "5XX"]) - .match(response, request$, { extraFields: responseFields$ }); - - return result$; - } - - /** - * Update webhook status - */ - async updateStatus( - request: operations.UpdateStatusRequest, - options?: RequestOptions - ): Promise { - const input$ = request; - - const payload$ = schemas$.parse( - input$, - (value$) => operations.UpdateStatusRequest$outboundSchema.parse(value$), - "Input validation failed" - ); - const body$ = null; - - const pathParams$ = { - id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }), - }; - const path$ = this.templateURLComponent("/webhooks/{id}")(pathParams$); - - const query$ = ""; - - const headers$ = new Headers({ - Accept: "application/json", - }); - - const context = { operationID: "updateStatus", oAuth2Scopes: [], securitySource: null }; - - const request$ = this.createRequest$( - context, - { - method: "PUT", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, - }, - options - ); - - const response = await this.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries || this.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$] = await this.matcher() - .void(200, operations.UpdateStatusResponse$inboundSchema) - .json(201, operations.UpdateStatusResponse$inboundSchema, { key: "WebhookResponse" }) - .fail(["4XX", "5XX"]) - .match(response, request$, { extraFields: responseFields$ }); - - return result$; - } -} diff --git a/src/sdk/sdk.ts b/src/sdk/sdk.ts index f1f6288b..ddaa7c9e 100644 --- a/src/sdk/sdk.ts +++ b/src/sdk/sdk.ts @@ -142,7 +142,7 @@ export class Panora extends ClientSDK { }; const [result$] = await this.matcher() - .json(200, operations.HelloResponse$inboundSchema, { key: "String" }) + .json(200, operations.HelloResponse$inboundSchema, { key: "string" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); @@ -184,7 +184,7 @@ export class Panora extends ClientSDK { }; const [result$] = await this.matcher() - .json(200, operations.HealthResponse$inboundSchema, { key: "Number" }) + .json(200, operations.HealthResponse$inboundSchema, { key: "number" }) .fail(["4XX", "5XX"]) .match(response, request$, { extraFields: responseFields$ }); diff --git a/src/sdk/verifyevent.ts b/src/sdk/verifyevent.ts deleted file mode 100644 index a5aca589..00000000 --- a/src/sdk/verifyevent.ts +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. - */ - -import { SDKHooks } from "../hooks/hooks.js"; -import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; -import { encodeJSON as encodeJSON$ } from "../lib/encodings.js"; -import { HTTPClient } from "../lib/http.js"; -import * as schemas$ from "../lib/schemas.js"; -import { ClientSDK, RequestOptions } from "../lib/sdks.js"; -import * as components from "../models/components/index.js"; -import * as operations from "../models/operations/index.js"; - -export class Verifyevent extends ClientSDK { - private readonly options$: SDKOptions & { hooks?: SDKHooks }; - - constructor(options: SDKOptions = {}) { - const opt = options as unknown; - let hooks: SDKHooks; - if ( - typeof opt === "object" && - opt != null && - "hooks" in opt && - opt.hooks instanceof SDKHooks - ) { - hooks = opt.hooks; - } else { - hooks = new SDKHooks(); - } - - super({ - client: options.httpClient || new HTTPClient(), - baseURL: serverURLFromOptions(options), - hooks, - }); - - this.options$ = { ...options, hooks }; - void this.options$; - } - - /** - * Verify payload signature of the webhook - */ - async verifyEvent( - request: components.SignatureVerificationDto, - options?: RequestOptions - ): Promise { - const input$ = request; - - const payload$ = schemas$.parse( - input$, - (value$) => components.SignatureVerificationDto$outboundSchema.parse(value$), - "Input validation failed" - ); - const body$ = encodeJSON$("body", payload$, { explode: true }); - - const path$ = this.templateURLComponent("/webhooks/verifyEvent")(); - - const query$ = ""; - - const headers$ = new Headers({ - "Content-Type": "application/json", - Accept: "application/json", - }); - - const context = { operationID: "verifyEvent", oAuth2Scopes: [], securitySource: null }; - - const request$ = this.createRequest$( - context, - { - method: "POST", - path: path$, - headers: headers$, - query: query$, - body: body$, - timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, - }, - options - ); - - const response = await this.do$(request$, { - context, - errorCodes: ["4XX", "5XX"], - retryConfig: options?.retries || this.options$.retryConfig, - retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], - }); - - const responseFields$ = { - HttpMeta: { Response: response, Request: request$ }, - }; - - const [result$] = await this.matcher() - .json(200, operations.VerifyEventResponse$inboundSchema, { key: "object" }) - .void(201, operations.VerifyEventResponse$inboundSchema) - .fail(["4XX", "5XX"]) - .match(response, request$, { extraFields: responseFields$ }); - - return result$; - } -} diff --git a/src/sdk/webhooks.ts b/src/sdk/webhooks.ts index d93b98fc..30021fe6 100644 --- a/src/sdk/webhooks.ts +++ b/src/sdk/webhooks.ts @@ -4,14 +4,12 @@ import { SDKHooks } from "../hooks/hooks.js"; import { SDKOptions, serverURLFromOptions } from "../lib/config.js"; -import { encodeJSON as encodeJSON$ } from "../lib/encodings.js"; +import { encodeJSON as encodeJSON$, encodeSimple as encodeSimple$ } from "../lib/encodings.js"; import { HTTPClient } from "../lib/http.js"; import * as schemas$ from "../lib/schemas.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; -import { Id } from "./id.js"; -import { Verifyevent } from "./verifyevent.js"; export class Webhooks extends ClientSDK { private readonly options$: SDKOptions & { hooks?: SDKHooks }; @@ -40,16 +38,6 @@ export class Webhooks extends ClientSDK { void this.options$; } - private _id?: Id; - get id(): Id { - return (this._id ??= new Id(this.options$)); - } - - private _verifyevent?: Verifyevent; - get verifyevent(): Verifyevent { - return (this._verifyevent ??= new Verifyevent(this.options$)); - } - /** * List webhooks */ @@ -159,4 +147,188 @@ export class Webhooks extends ClientSDK { return result$; } + + /** + * Delete Webhook + */ + async delete( + request: operations.DeleteRequest, + options?: RequestOptions + ): Promise { + const input$ = request; + + const payload$ = schemas$.parse( + input$, + (value$) => operations.DeleteRequest$outboundSchema.parse(value$), + "Input validation failed" + ); + const body$ = null; + + const pathParams$ = { + id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }), + }; + const path$ = this.templateURLComponent("/webhooks/{id}")(pathParams$); + + const query$ = ""; + + const headers$ = new Headers({ + Accept: "application/json", + }); + + const context = { operationID: "delete", oAuth2Scopes: [], securitySource: null }; + + const request$ = this.createRequest$( + context, + { + method: "DELETE", + path: path$, + headers: headers$, + query: query$, + body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, + }, + options + ); + + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); + + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$] = await this.matcher() + .void(200, operations.DeleteResponse$inboundSchema) + .json(201, operations.DeleteResponse$inboundSchema, { key: "WebhookResponse" }) + .fail(["4XX", "5XX"]) + .match(response, request$, { extraFields: responseFields$ }); + + return result$; + } + + /** + * Update webhook status + */ + async updateStatus( + request: operations.UpdateStatusRequest, + options?: RequestOptions + ): Promise { + const input$ = request; + + const payload$ = schemas$.parse( + input$, + (value$) => operations.UpdateStatusRequest$outboundSchema.parse(value$), + "Input validation failed" + ); + const body$ = null; + + const pathParams$ = { + id: encodeSimple$("id", payload$.id, { explode: false, charEncoding: "percent" }), + }; + const path$ = this.templateURLComponent("/webhooks/{id}")(pathParams$); + + const query$ = ""; + + const headers$ = new Headers({ + Accept: "application/json", + }); + + const context = { operationID: "updateStatus", oAuth2Scopes: [], securitySource: null }; + + const request$ = this.createRequest$( + context, + { + method: "PUT", + path: path$, + headers: headers$, + query: query$, + body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, + }, + options + ); + + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); + + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$] = await this.matcher() + .void(200, operations.UpdateStatusResponse$inboundSchema) + .json(201, operations.UpdateStatusResponse$inboundSchema, { key: "WebhookResponse" }) + .fail(["4XX", "5XX"]) + .match(response, request$, { extraFields: responseFields$ }); + + return result$; + } + + /** + * Verify payload signature of the webhook + */ + async verifyEvent( + request: components.SignatureVerificationDto, + options?: RequestOptions + ): Promise { + const input$ = request; + + const payload$ = schemas$.parse( + input$, + (value$) => components.SignatureVerificationDto$outboundSchema.parse(value$), + "Input validation failed" + ); + const body$ = encodeJSON$("body", payload$, { explode: true }); + + const path$ = this.templateURLComponent("/webhooks/verifyEvent")(); + + const query$ = ""; + + const headers$ = new Headers({ + "Content-Type": "application/json", + Accept: "application/json", + }); + + const context = { operationID: "verifyEvent", oAuth2Scopes: [], securitySource: null }; + + const request$ = this.createRequest$( + context, + { + method: "POST", + path: path$, + headers: headers$, + query: query$, + body: body$, + timeoutMs: options?.timeoutMs || this.options$.timeoutMs || -1, + }, + options + ); + + const response = await this.do$(request$, { + context, + errorCodes: ["4XX", "5XX"], + retryConfig: options?.retries || this.options$.retryConfig, + retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"], + }); + + const responseFields$ = { + HttpMeta: { Response: response, Request: request$ }, + }; + + const [result$] = await this.matcher() + .json(200, operations.VerifyEventResponse$inboundSchema, { key: "object" }) + .void(201, operations.VerifyEventResponse$inboundSchema) + .fail(["4XX", "5XX"]) + .match(response, request$, { extraFields: responseFields$ }); + + return result$; + } }